html {
    box-sizing: border-box;
}

html body.yhdenvertaisuus *, html body.yhdenvertaisuus *:before, html body.yhdenvertaisuus *:after {
    box-sizing: border-box;
}

html body.yhdenvertaisuus body {
    color: #222222;
    line-height: 1.5;
}

html body.yhdenvertaisuus .btn, html body.yhdenvertaisuus .btn-primary {
    border: 3px solid #e9e8e9;
    background: white;
    border-radius: 25px;
    padding: 10px 24px;
    text-shadow: none;
}

html body.yhdenvertaisuus .btn-primary {
    border-color: #1b3891;
    color: #1b3891;
}

html body.yhdenvertaisuus input[type="text"],
html body.yhdenvertaisuus input[type="number"],
html body.yhdenvertaisuus input[type="password"],
html body.yhdenvertaisuus input[type="date"] {
    height: 40px;
}

html body.yhdenvertaisuus textarea {
    min-height: 10em;
}

html body.yhdenvertaisuus p {
    line-height: 1.5;
}

html body.yhdenvertaisuus .journal-content-article a {
    color: #3366CC;
}
html body.yhdenvertaisuus .journal-content-article p a {
    text-decoration: underline;
}

html body.yhdenvertaisuus h2 {
    font-size: 24px;
    line-height: 1.25;
}

html body.yhdenvertaisuus h3 {
    font-size: 22px;
    line-height: 1.5;
}

html body.yhdenvertaisuus h1, html body.yhdenvertaisuus h2, html body.yhdenvertaisuus h3, html body.yhdenvertaisuus h4, html body.yhdenvertaisuus h5 {
    text-transform: uppercase;
    color: #222222;
    font-weight: 700;
}

html body.yhdenvertaisuus h1, html body.yhdenvertaisuus h2 {
    line-height: 1.25;
}

html body.yhdenvertaisuus h3, html body.yhdenvertaisuus h4, html body.yhdenvertaisuus h5 {
    line-height: 1.5;
}

html body.yhdenvertaisuus .yja-accordion .yja-accordion-wrapper .yja-accordion-toggle {
    background-color: #1b3891;
    color: white;
    font-weight: 400;
    padding: 10px;
    margin-bottom: 0;
    cursor: pointer;
}

html body.yhdenvertaisuus .yja-accordion .yja-accordion-wrapper .yja-accordion-toggle i {
    color: white;
}

html body.yhdenvertaisuus .yja-accordion .yja-accordion-wrapper .yja-accordion-content {
    display: none;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #1b3891;
    border-top: 0;
}

html body.yhdenvertaisuus .yja-accordion .yja-accordion-wrapper.open .yja-accordion-content {
    display: block;
}

html body.yhdenvertaisuus .article--main article {
    position: relative;
    z-index: 10;
    width: 100%;
}

html body.yhdenvertaisuus .article--main figure {
    display: block;
    margin: 0;
    padding: 0;
}

@media screen and (min-width: 1024px) {
    html body.yhdenvertaisuus .article--main article {
        width: 40%;
    }

    html body.yhdenvertaisuus .article--main figure {
        width: 70%;
        position: absolute;
        right: 0;
        bottom: 0;
    }
}

html body.yhdenvertaisuus #content .breadcrumb li {
    font-size: .875rem;
}

html body.yhdenvertaisuus #content .breadcrumb li a {
    color: #3366CC;
    text-shadow: none;
}

html body.yhdenvertaisuus #content .breadcrumb {
    padding: 15px 0 !important;
}

@media screen and (min-width: 1024px) {
    html body.yhdenvertaisuus .lifts--frontpage {
        display: -moz-flex;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-flow: row;
        flex-flow: row;
        -ms-flex-pack: start;
        -moz-justify-content: flex-start;
        justify-content: flex-start;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    html body.yhdenvertaisuus .lifts--frontpage .lift {
        width: 31.62393%;
        margin-left: 2.5641%;
    }

    html body.yhdenvertaisuus .lifts--frontpage .lift:nth-child(3n+1) {
        margin-left: 0;
    }
}

html body.yhdenvertaisuus .lift figure {
    margin: 0;
}

html body.yhdenvertaisuus .lift figure > img {
    max-width: 100%;
}

html body.yhdenvertaisuus .lift h3 {
    font-size: 20px;
    line-height: 1.5;
    color: #474747;
    font-weight: 700;
}

html body.yhdenvertaisuus .lift p {
    font-size: 17px;
}

html body.yhdenvertaisuus .lift p a {
    text-decoration: none;
}

html body.yhdenvertaisuus .lift p a:hover {
    text-decoration: underline;
}

html body.yhdenvertaisuus .lift a:after {
    display: inline-block;
    content: ">";
    margin-left: .25em;
}

html body.yhdenvertaisuus .lift--simple {
    text-align: center;
    font-weight: 700;
}

html body.yhdenvertaisuus .lift--simple a:after {
    display: none;
}

html body.yhdenvertaisuus .masthead {
    background-image: linear-gradient(to left, #cf0082, #cf0082 50%, white 50%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

@media screen and (min-width: 1023px) {
    html body.yhdenvertaisuus .masthead {
        height: 400px;
    }
}

html body.yhdenvertaisuus .masthead img {
    width: auto;
    max-width: 1158px;
    height: 400px;
    position: absolute;
}

@media screen and (min-width: 1024px) and (max-width: 1599px) {
    html body.yhdenvertaisuus .masthead img {
        right: 28vw;
    }
}

@media screen and (min-width: 1600px) {
    html body.yhdenvertaisuus .masthead img {
        right: 38vw;
    }
}

@media screen and (max-width: 1023px) {
    html body.yhdenvertaisuus .masthead img {
        left: auto;
        margin-left: 0;
        position: relative;
        height: auto;
        width: 100%;
    }
}

html body.yhdenvertaisuus .masthead .masthead__container {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: end;
    justify-content: flex-end;
    height: 400px;
    max-width: 1140px;
    margin: 0 auto;
}

@media screen and (max-width: 1023px) {
    html body.yhdenvertaisuus .masthead .masthead__container {
        height: auto;
        max-width: 100%;
        background-color: #cf0082;
    }
}

html body.yhdenvertaisuus .masthead .masthead__container:after {
    content: "";
    position: absolute;
    right: 0;
    width: 100%;
    height: 400px;
    background: url("/documents/5232670/5235369/masthead_background.png") no-repeat right top;
    background-size: contain;
}

@media screen and (max-width: 1023px) {
    html body.yhdenvertaisuus .masthead .masthead__container:after {
        display: none;
    }
}

html body.yhdenvertaisuus .masthead .masthead__content {
    background-color: transparent;
    z-index: 1;
    padding: 20px 0;
}

@media screen and (max-width: 765px) {
    html body.yhdenvertaisuus .masthead .masthead__content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 1023px) {
    html body.yhdenvertaisuus .masthead .masthead__content {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media screen and (min-width: 1024px) {
    html body.yhdenvertaisuus .masthead .masthead__content {
        padding: 0;
        width: 340px;
        -ms-flex-item-align: center;
        align-self: center;
    }
}

html body.yhdenvertaisuus .masthead .masthead__content h1, html body.yhdenvertaisuus .masthead .masthead__content p {
    color: white;
}

html body.yhdenvertaisuus .masthead .masthead__content h1 {
    font-size: 27px;
    line-height: 1;
    text-transform: uppercase;
}

html body.yhdenvertaisuus .masthead .masthead__content p {
    font-size: 17px;
    line-height: 1.5;
}

html body.yhdenvertaisuus .masthead .masthead__content p + p {
    margin-top: 30px;
}

@media screen and (min-width: 1024px) {
    html body.yhdenvertaisuus .masthead + .container {
        margin-top: -90px;
    }
}

html body.yhdenvertaisuus .hed-section {
    border: none;
    color: #222222;
}

html body.yhdenvertaisuus #main-content .portlet-title {
    font-weight: 700;
    font-size: 22px;
}

html body.yhdenvertaisuus #main-content.landingpage-layout #column-2 .portlet-title {
    font-size: 24px;
}

html body.yhdenvertaisuus #main-content .portlet-asset-publisher h6 a {
    color: #222222;
}

html body.yhdenvertaisuus #main-content .portlet-body .feed-item {
    border-bottom: none;
}

html body.yhdenvertaisuus footer {
    background-color: #cf0082;
}

html body.yhdenvertaisuus footer p,
html body.yhdenvertaisuus footer p a,
html body.yhdenvertaisuus footer a,
html body.yhdenvertaisuus footer h3 {
    color: white;
}

html body.yhdenvertaisuus footer a {
    text-decoration: underline;
}

html body.yhdenvertaisuus footer p > a.btn-primary {
    display: block;
    margin-bottom: 13px;
    text-align: center;
    font-weight: 700;
    font-size: 17px;
}

html body.yhdenvertaisuus footer p > a > img {
    display: inline-block;
}

html body.yhdenvertaisuus footer p > a + a > img {
    margin-left: 10px;
}

html body.yhdenvertaisuus #header .logo {
    max-width: 350px;
    width: 100%;
}

html body.yhdenvertaisuus #header .logo img {
    width: 100%;
    max-height: auto;
}

html body.yhdenvertaisuus .signed-in .mobile-menu-actions,
html body.yhdenvertaisuus .mobile-menu-actions {
    top: 70px;
}

html body.yhdenvertaisuus .mobile-menu-actions button {
    background-color: #1b3891;
}

html body.yhdenvertaisuus #header .header-top {
    border-bottom: 0;
}

@media (max-width: 979px) {
    html body.yhdenvertaisuus #header .top-right-area {
        margin-top: 0;
    }

    html body.yhdenvertaisuus #header .header-top {
        background-color: white;
        min-height: 130px;
    }

    html body.yhdenvertaisuus #header .logo {
        margin-left: 20px;
    }
}

@media screen and (min-width: 980px) {
    html body.yhdenvertaisuus #header .header-top {
        background-color: white;
        height: 158px;
    }

    html body.yhdenvertaisuus #header .top-right-area {
        top: 50px;
    }

    html body.yhdenvertaisuus #header .logo {
        margin-left: 0;
        margin-top: 34px;
    }
}

html body.yhdenvertaisuus #header .header-bottom {
    background-color: #1b3891;
    border-bottom: 0;
}

/* -------- LANGUAGE SELECTION ------- */
html body.yhdenvertaisuus .langs {
    color: #1b3891;
    font-size: 16px;
    margin-top: 7px;
}

html body.yhdenvertaisuus .langs a {
    color: #1b3891;
}

html body.yhdenvertaisuus #languageSelectionMenu li.currentLan > a {
    color: #222;
}

/* -------- NAVIGATION ----- */

html body.yhdenvertaisuus #heading .navbar .nav > li.selected {
    background: #fff !important;
}

html body.yhdenvertaisuus #header .navbar .nav li a {
    color: white;
}

html body.yhdenvertaisuus #header .navbar .nav li a:hover {
    color: white;
    background: rgba(0,0,0,.25) !important;
}

html body.yhdenvertaisuus #header .navbar .nav > .active > a {
    color: #222;
}

html body.yhdenvertaisuus #header .navbar .nav > .active > a:hover {
    background: rgba(0,0,0,.1) !important;
    color: #222;
}

html body.yhdenvertaisuus #header .navbar .nav li.active .lfr-nav-child-toggle {
    color: #222;
}

html body.yhdenvertaisuus #header .navbar .nav li.active:hover .lfr-nav-child-toggle {
    color: #222;
}


html body.yhdenvertaisuus #header .navbar .nav ul.dropdown-menu li > a {
    border-bottom-style: solid;
    border-bottom-color: #e9e8e9;
    color: #1b3891;
    background: transparent !important;
}

html body.yhdenvertaisuus #header .navbar .nav ul.dropdown-menu li > a:hover,
html body.yhdenvertaisuus #header .navbar .nav ul.dropdown-menu li > a:active
html body.yhdenvertaisuus #header .navbar .nav ul.dropdown-menu li > a:focus {
    color: #1b3891;
    background: transparent !important;
    text-decoration: underline;
}

html body.yhdenvertaisuus #header .navbar .nav ul.dropdown-menu li:last-child > a {
    border-bottom: 0;
}

html body.yhdenvertaisuus #column-9 .portlet-navigation {
    padding: 0;
}

html body.yhdenvertaisuus .list-menu {
    padding: 0;
}

html body.yhdenvertaisuus .list-menu li {
    padding: 11px;
    border-bottom-style: solid;
    border-bottom-color: #e9e8e9;
}

html body.yhdenvertaisuus .list-menu li:last-child {
    border-bottom: 0;
}

html body.yhdenvertaisuus .yja-search-portlet h1 + input[type='text'] + button {
    font-weight: 700;
    margin-left: 10px;
    padding: 10px 25px;
}

html body.yhdenvertaisuus .yja-image-carousel .image-gallery-text-wrapper > h4 {
    color: white;
}

html body.yhdenvertaisuus .owl-theme .owl-dots .owl-dot span {
    border: 1px solid #595959;
}

html body.yhdenvertaisuus .locale-actions a {
    color: #3366CC;
}

html body.yhdenvertaisuus .list-menu .list-menu__title {
    font-size: 1rem;
    text-transform: none;
    margin-bottom: 0;
    padding: 11px;
    margin-top: 0;
}

/* masthed element changes */
@media screen and (min-width: 1024px){
    html body.yhdenvertaisuus .masthead{
        height: auto !important;
        position: relative;
    }
    html body.yhdenvertaisuus .masthead img{
        height: 100% !important;
        min-height: 400px;
        max-width: unset;
    }
    html body.yhdenvertaisuus .masthead .masthead__content{
        margin-bottom: 2rem;
    }
    html body.yhdenvertaisuus .masthead .masthead__container{
        min-height: 400px;
        height: 100%;
    }
    html body.yhdenvertaisuus .masthead .masthead__container:after{
        min-height: 400px;
        height: 100% !important;
    }

    .col-md-3 .list-menu a,
    .col-md-3 .feed-item a{
        word-wrap: break-word;
        hyphens: auto;
    }
}

/* --------- Hanke-porteltti --------- */
.kohde-portlet .sorting__tools input[checked]+label {
    pointer-events: none;
}

.kohde-portlet .sorting__tools label {
    color: #1b3891;
}

.kohde-portlet .sorting__tools label > svg {
    color: #1b3891;
    fill: #1b3891;
}

html body.yhdenvertaisuus .feed-item .meta .date,
html body.yhdenvertaisuus .feed-item .meta .time,
html body.yhdenvertaisuus .feed-item .meta .nickname,
html body.yhdenvertaisuus .feed-item .meta .text,
html body.yhdenvertaisuus .feed-item .meta .comments,
html body.yhdenvertaisuus .feed-item .meta .ministries,
html body.yhdenvertaisuus .feed-item .meta .bullettin-number,
html body.yhdenvertaisuus .feed-item .meta .author {
    font-size: .875rem;
}

html body.yhdenvertaisuus .portlet-boundary_fi_yja_socialshare_portlet_SocialSharePortletGray_ .popup {
    height: 26px;
    line-height: 26px;
    width: 26px;
    text-align: center;
}

html body.yhdenvertaisuus .portlet-boundary_fi_yja_socialshare_portlet_SocialSharePortletGray_ .popup span {
    padding: 0;
}

/* Asset publisher pagination */
html body.yhdenvertaisuus .lfr-pagination-buttons.pager li.disabled a {
    color: #595959;
}

/* News list year filters */
html body.yhdenvertaisuus .nav-pills > li.active > a {
    background-color: #1b3891;
}

html body.yhdenvertaisuus #mobile_searchform_static .search-btn {
    background-color: #1b3891;
}

html body.yhdenvertaisuus .fessWrapper button.searchButton.btn.btn-primary {
    padding: 0 15px;
    height: auto;
    width: auto;
    border-width: 2px;
    box-shadow: none;
}

.yhdenvertaisuus .yja-accordion .yja-accordion-toggle.text-black {
    border-radius: 3px;
}
.yhdenvertaisuus .yja-accordion .yja-accordion-toggle.text-black button{
    color: #222 !important;
}
.yhdenvertaisuus .yja-accordion .yja-accordion-toggle.text-black .icon{
    color: #222 !important;
}

/* Sidebar dropdown menus */
.yhdenvertaisuus .list-menu li.has-children ul{
    display: none;
}
.yhdenvertaisuus .list-menu li.has-children.open > ul,
.yhdenvertaisuus .list-menu li.has-children.selected > ul{
    display: block;
}
.yhdenvertaisuus .list-menu li.has-children ul > li{
    padding-right: 0;
    border-bottom: 1px solid #e9e8e9;
}
.yhdenvertaisuus .list-menu li.has-children ul > li:last-of-type{
    border-bottom: 0;
}
.yhdenvertaisuus .list-menu li.has-children > a {
    max-width: calc(100% - 50px);
    display: block;
}
.yhdenvertaisuus .list-menu .toggle-menu{
    background: #fff;
    border: 0;
    box-shadow: none;
    position: absolute;
    right: 0;
    top: 3px;
}
.yhdenvertaisuus .list-menu li.has-children.open > .toggle-menu,
.yhdenvertaisuus .list-menu li.has-children.selected > .toggle-menu {
    transform: rotate(180deg);
}
.yhdenvertaisuus .list-menu li.has-children{
    position: relative;
}

@media screen and (max-width: 767px){
    .yhdenvertaisuus h1{
        font-size: 2rem;
    }
}

html body.yhdenvertaisuus .mm-listitem.selected > a,
.mm-listitem_selected > .mm-listitem__text, 
.mm-listview li.selected:nth-child(1) > .mm-listitem__text{
    background: #fff !important;
    color: #222 !important;
}
html body.yhdenvertaisuus .mm-listitem.selected > a:after{
    border-color: #737373 !important;
}
html body.yhdenvertaisuus .mm-listitem__btn:after{
    border-color: #fff !important;
}