/**
 * Production-style header/footer and homepage layout (matches tullinimike.fi).
 */

body {
    background: #fff;
    margin: 0;
}

#fullwidth-header-area,
#full-width-navigation,
#fullwidth-footer-area {
    width: 100%;
}

#fullwidth-header-area {
    background: #fff;
}

#fullwidth-header-area #header {
    background: #fff;
    color: #0054b6;
    padding: 0;
}

#fullwidth-header-area #header #content,
#full-width-navigation #page,
body > #page,
#fullwidth-footer-area #page {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

#fullwidth-header-area #header #content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 10px;
    overflow: visible;
}

.header__logo {
    flex: 0 0 auto;
}

.header__logo-image {
    margin: 10px 0;
    height: 64px;
    vertical-align: middle;
}

.header__name-and-slogan {
    flex: 0 0 auto;
    margin: 0 0 0 14px;
}

#fullwidth-header-area #header .header__site-link,
#fullwidth-header-area #header #site-name a {
    color: #0054b6;
    text-decoration: none;
}

#palveluhinnasto {
    flex: 0 0 auto;
    height: 30px;
    background: red;
    text-align: center;
    color: white;
    border-radius: 8px;
    padding: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 30px;
    margin: 0 0 0 20px;
}

.header__region.region-header {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0 1em;
    color: #0054b6;
    position: relative;
}

#block-menu-secondary-menu {
    margin: 0;
}

#block-menu-secondary-menu ul {
    margin: 0;
    padding: 1.5em 0;
    list-style: none;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

#block-menu-secondary-menu ul li {
    list-style: none;
}

#block-menu-secondary-menu ul li a {
    text-decoration: none;
}

#header div#block-user-login {
    padding: 1em;
    border: 1px solid #f8f8f8;
    border-right: 2px solid #c4c4c4;
    border-bottom: 2px solid #c4c4c4;
    color: #000;
    display: none;
    box-shadow: 2px 2px 5px #00000040;
    background-color: #fbfbfb;
    font-weight: normal;
}

#header div#block-user-login label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 0.25em;
}

#header div#block-user-login .form-text {
    width: 100%;
    box-sizing: border-box;
}

#header div#block-user-login .form-required {
    color: #c00;
}

#header .block-user {
    position: absolute;
    right: 0;
    top: 100%;
    max-width: 220px;
    z-index: 99;
}

#header input.form-submit {
    width: 100%;
    margin-top: 0.5em;
    cursor: pointer;
}

#fullwidth-footer-area,
#fullwidth-footer-area #page {
    background-color: #f3f3f3;
    color: #979797;
}

#fullwidth-footer-area a {
    color: #979797;
}

.region-bottom {
    display: flex;
    flex-flow: row wrap;
    padding: 18px 10px;
    justify-content: space-between;
    align-items: flex-start;
}

.region-bottom > .block {
    display: block;
    margin: 0;
    flex: 1 1 280px;
}

.region-bottom ul {
    margin-left: 25px;
    padding: 0;
}

.grey-footer-title {
    color: #979797;
    font-size: 1.2em;
    font-weight: bold;
}

#footer {
    background: transparent;
    padding-top: 1em;
}

#footer p {
    text-align: center;
    margin: 1em 0;
}

#footer a {
    color: #979797;
}

.navigation-copyright {
    text-align: right;
}

body > #page {
    min-height: calc(100vh - 144px);
    background: #fff;
}

#main,
#main #content {
    background: #fff;
}

#etusivu {
    padding: 1em 0 0;
}

#etusivu .panel-pane.pane-1.raidoitus {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
}

div#etusivu .pane-1.raidoitus {
    background: url('/assets/images/raita_tausta.gif') repeat;
    padding: 12px 16px;
}

div#etusivu .pane-1.raidoitus p {
    margin: 0 0 1em;
    padding: 2px 5px;
}

div#etusivu .pane-1.raidoitus a {
    color: #0054b6;
}

#etusivu .right .panel-pane {
    margin: 0 0 1em;
}

#etusivu .right .panel-pane .pane-title {
    padding: 0;
    margin: 0;
}

#etusivu .right .panel-pane .inside {
    padding: 0 12px 12px;
}

.right {
  float: right;
}
.panel-display.panel-twocol-63-37-stacked .line .unit.left {
    width: 63%;
    float: left;
}

.panel-display.panel-twocol-63-37-stacked .line .unit.right.lastUnit {
    width: 37%;
    display: table-cell;
    float: none;
}

.panel-display .line:after,
.panel-display .lastUnit:after {
    clear: both;
    content: "";
    display: block;
}

.lastUnit .inside {
    margin: 0 0 1em 0.5em;
}

.panel-display .left .inside {
    margin: 0 0.5em 1em 0;
}

#hakuboxi form p {
    margin: 0.75em 0;
    padding: 0;
}

#hakuboxi form label {
    display: block;
    margin-bottom: 0.35em;
}

#hakuboxi input.pikahakuinput {
    width: calc(100% - 2em);
    max-width: none;
    margin-right: 0;
    box-sizing: border-box;
}

#hakuboxi input.submitButton {
    vertical-align: top;
    cursor: pointer;
}

div.pikalinkit a {
    text-decoration: none;
    color: #0054b6;
}

div.pikalinkit ul {
    margin: 0.5em 0 0 25px;
    padding: 0;
}

div.pikalinkit ul li {
    list-style-image: url('/assets/images/list_type_arrow.gif');
    margin: 0.35em 0;
}

.active-trail.active a,
li.active a {
    text-decoration: underline !important;
}

body.page-nimikkeisto > #page {
    background: #fff;
}

body.page-nimikkeisto #nimikkeistoFormit input[type="text"] {
    min-width: 200px;
}

body.page-nimikkeisto #nimikkeistoFormit input[type="submit"] {
    background-color: #d1d1d1;
    border: 1px solid #d1d1d1;
    cursor: pointer;
}

@media all and (min-width: 480px) {
    body.front #main {
        padding-top: 0;
    }
}

@media all and (max-width: 767px) {
    .panel-display.panel-twocol-63-37-stacked .line .unit.left,
    .panel-display.panel-twocol-63-37-stacked .line .unit.right.lastUnit {
        width: 100%;
        float: none;
        display: block;
    }

    .lastUnit .inside,
    .panel-display .left .inside {
        margin: 0 0 1em;
    }

    #palveluhinnasto {
        margin: 12px 0 0;
    }

    .header__region.region-header {
        margin-left: 0;
        width: 100%;
    }

    .navigation-copyright {
        text-align: left;
    }
}
.custom-combobox-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  margin-left: -1px;
  padding: 0;
}
