/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../font/montserrat-v26-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: bold;
  font-weight: 500;
  src: url('../font/montserrat-v26-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: bold;
  font-weight: 700;
  src: url('../font/montserrat-v26-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

* {
    box-sizing: border-box;
}

:root {
   --primary: #7f68c8;
   --secondary1: #9ad8f1;
   --secondary2: #fe6e63;
   --secondary3: #bbe3e9;
   --secondary4: #eaf4f9;
   /* --placeholder-text: #9ad8f1; */
   --placeholder-text: #65a3bb;
   --overlay-color: rgba(127, 104, 200, 0.95);
   --dot1: #d5ceee;
   --dot2: #b2a4de;
   --dot3: #7f68c8;
   --dot4: #7f68c8;
}

body, html {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
    font-size: 15px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* -- General styling -- */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.05rem;
}

h1 {
    color: var(--secondary2);
    font-size: 1.5rem;
    margin-top: 50px;
}

h1.page-title {
    text-align: center;
}

@media(max-width: 600px) {
    h1.page-title {
        text-align: left;
    }
}

a {
    text-decoration: none;
    color: var(--primary);
}
p {
    line-height: 150%;
}

button, a.btn, input[type="submit"], input[type="reset"], input[type="button"], a.koop-button, a.button {
    border-radius: 20px;
    padding: 0.6em 1.1em;
    line-height: 120%;
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
}

a.copy-link {
    position: relative;
}

a.copy-link span.url-copied {
    position: absolute;
    top: 100%;
    left: -100px;
    background-color: var(--secondary2);
    color: white;
    border-radius: 20px;
    padding: 10px;
    width: 200px;
    height: auto;
    font-size: 1rem;
    text-align: center;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

summary {
    list-style: none
}

summary::-webkit-details-marker {
    display: none;
}

/* -- Main layout -- */
.page-wrapper {
    display: flex;
    box-sizing: border-box;
    min-height: 100vh;
    flex-direction: column;
}

header.top, footer {
    flex-grow: 0;
    flex-shrink: 0;
}

div.content {
    flex-grow: 1;
}

/* -- Box -- */
.box {
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
}

/* -- Top header -- */
header.top {
    width: 100%;
    margin: 0;
    background-image: url('../images/raster-home.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    padding-top: 30px;
    padding-bottom: 200px;
}

header.top.small {
    padding-bottom: 0px;
    background-image: url('../images/raster-alt.png');
}

header.top div.box img {
    width: 100%;
    height: auto;
}

@media(max-width: 600px) {
    header.top {
        padding-bottom: 100px;
    }
}

/* -- Top menu -- */
div.menu {
    margin: 0 auto;
    width: 100%;
    padding-right: 30px;
    max-width: 1300px;
    text-align: right;
}

div.menu a.login {
    margin-right: 0px;
}

div.menu a.home img {
    height: 20px;
    width: 22px;
    margin-left: 20px;
    margin-right: 10px;
}

div.menu a.home:hover img {
    content: url('../images/home-hover.svg');
}

div.menu a.login img {
    height: 30px;
    width: auto;
}

div.menu details.mobile-menu {
    display: inline-block;
    color: var(--secondary2);
    font-size: 40px;
    cursor: pointer;
    list-style: none;
}

div.menu div.desktop-menu a {
    display: inline-block;
    margin-right: 20px;
    color: var(--secondary2);
}

div.menu details.mobile-menu span.icon-cancel {
    display: none;
}

div.menu details.mobile-menu[open] span.icon-menu {
   display: none;
}

div.menu details.mobile-menu[open] span.icon-cancel {
   display: inline-block;
}

div.menu details.mobile-menu summary {
    position: relative;
    z-index: 100;
    list-style: none;
}

div.menu details.mobile-menu span::before {
    margin-right: 0;
}

div.menu div.desktop-menu {
    display: inline-block;
}

div.menu details.mobile-menu {
    display: none;
}

@media(min-width: 800px) {
    div.menu a.login {
        margin-right: 0;
    }
}

@media(max-width: 800px) {
    div.menu details.mobile-menu {
        display: inline-block;
    }

    div.menu div.desktop-menu {
        display: none;
    }

    div.menu a.login {
        margin-right: 10px;
    }
}

@media(max-width: 1140px) {
    header.top div.menu {
        right: 10px;
    }
}

header.top nav.top-menu {
    padding-top: 80px;
}

header.top details.mobile-menu nav.top-menu {
    position: absolute;
    top: 0;
    right: 0;
    padding-top: 70px;
    padding-right: 0px;
    display: block;
    width: 200px;
    height: 300px;
    z-index: 10;
    border: none;
}

header.top nav.top-menu div.wrapper {
    background-color: white;
    border: solid;
    border-color: var(--light-grey);
    border-width: 1px;
    border-radius: 0;
    width: auto;
}

header.top nav.top-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header.top nav.top-menu ul li {
    margin: 0;
    padding: 0;
    line-height: 15px;
    text-align: left;
    border-bottom: solid;
    border-color: var(--light-grey);
    border-width: 1px;
    border-radius: 0;
    color: var(--grey-text);
    font-weight: 300;
    font-size: 0.9rem;
}

header.top nav.top-menu ul li:hover {
    background-color: var(--secondary2);
    color: white;
}

header.top nav.top-menu ul li.sub {
    padding-left: 40px;
}

header.top nav.top-menu ul a {
    display: block;
    color: var(--secondary2);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 20px 10px;
}

header.top nav.top-menu ul li:hover a {
    color: white;
}

header.top nav.top-menu ul li:last-child {
    border-bottom: none;
}


@media(max-width: 500px) {
    header.top details.mobile-menu nav.top-menu {
       right: -8px;
       width: calc(100vw - 2px);
       height: auto;
    }
}


/* -- Top Search -- */
header.top div.search {
    display: grid;
    grid-template-columns: auto 300px auto;
    width: 100%;
    margin-top: 50px;
}

@media(max-width: 750px) {
    header.top div.search {
        grid-template-columns: auto auto auto;
    }
}

header.top.small div.search {
    grid-template-columns: auto 500px;
}

header.top.small div.logo-search-wrapper {
    display: grid;
    grid-template-columns: 50% 50%;
    column-gap: 50px;
    width: 100%;
    max-width: 1300px;
    margin: 20px auto 20px auto;
    padding-right: 70px;
}

header.top.small div.logo-search-wrapper div.logo img {
    margin-top: -40px;
    max-width: 500px;
}

header.top form.search {
    display: grid;
    grid-template-columns: auto 60px;
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
    height: 60px;
    background-color: white;
    border-radius: 80px;
    margin-bottom: 15px;
}

header.top.small form.search {
    margin-bottom: 20px;
}

header.top form.search.small {
    float: right;
    max-width: 330px;
    margin: 0;
}


header.top:not(.small) div.search {
    transition: grid-template-columns 0.5s ease-in-out, left 1s ease-in-out;
}

@media(min-width: 600px) {
    header.top:not(.small) div.search:hover,
    header.top:not(.small) div.search:focus,
    header.top:not(.small) div.search:focus-within {
        grid-template-columns: auto 500px auto;
    }
}

@media(max-width: 1140px) {
    header.top.small {
        padding-bottom: 20px;
    }

    header.top.small div.logo-search-wrapper {
        grid-template-columns: 1fr 1fr;
        margin: 50px auto 20px auto;
        padding-right: 30px;
    }

    header.top.small div.box.logo a.mobile-only img {
        position: absolute;
        top: 50px;
        left: 20px;
        max-height: 200px;
        width: auto;
    }

    header.top.small div.search {
        margin: 0 auto;
    }

    header.top form.search {
        grid-template-columns: auto 40px;
    }

    header.top.small div.box.logo {
        max-height: 100px;
        width: auto;
    }
}

@media(max-width: 600px) {
    header.top.small div.logo-search-wrapper {
        grid-template-columns: 1fr;
    }

    header.top.small div.search {
        grid-template-columns: 1fr;
        margin-left: 10px;
        width: calc(100vw - 20px);
    }

    header.top.small div.search div:first-child {
        display: none;
    }

    header.top form.search {
        height: 50px;
    }
}


@media(max-width: 500px) {
    header.top.small div.box.logo a.mobile-only img {
        position: absolute;
        top: 50px;
        left: 20px;
        max-height: 100px;
        width: auto;
    }

    header.top form.search.small {
        max-width: 100%;
        width: 100%;
        text-align: center;
        float: none !important;
    }

    header.top a.show-all.small {
        display: block;
        margin: 10px auto;
        float: none !important;
        text-align: center;
    }
}


header.top form.search input[type=text] {
    border: none;
    height: calc(100% - 20px);
    margin: 10px 45px 10px 30px;
    outline: none;
}

header.top.small form.search input[type=text] {
    margin-right: 75px;
}


header.top form.search input[type=text]:focus {
    border-color: transparent;
}

header.top form.search input[type=text]::placeholder {
    color: var(--placeholder-text);
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
}

header.top form.search button {
    border: none;
    font-size: 1rem;
    text-align: center;
    background-color: var(--secondary2);
    color: white;
    padding: 0;
    padding-left: 1px;
    width: 30px;
    height: 30px;
    border-radius: 25px;
    margin-top: 15px;
    cursor: pointer;
}

header.top form.search button span {
    width: 25px;
    height: 25px;
    line-height: 25px;
    display: block;
    text-align: center;
    margin-left: 3px;
    margin-top: 0;
}

header.top form.search button span::before {
    margin-left: 0;
}

@media(max-width: 600px) {
    header.top form.search button {
        border: none;
        font-size: 16px;
        text-align: center;
        background-color: var(--secondary2);
        color: white;
        padding: 3px;
        width: 30px;
        height: 30px;
        border-radius: 25px;
        margin-top: 10px;
        cursor: pointer;
    }

    header.top form.search button span {
        margin-left: 2px;
    }
}

header.top div.search nav.search-links,
div.ism nav.search-links {
    margin-top: 10px;
    height: 50px;
    display: flex;
    flex-direction: column;
    text-align: right;
    align-items: end;
    justify-content: space-between;
    font-size: 22px;
}

header.top div.search nav.search-links a,
div.ism nav.search-links a {
    display: block;
    color: var(--primary);
}

@media(max-width: 900px) {
    header.top div.search nav.search-links {
        display: none;
    }
}

header.top div.search-filters {
    text-align: center;
}

header.top a.show-all {
    display: inline-block;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    line-height: 1.5rem;
    padding: 0.6em 1.5em;
}

header.top a.show-all.small {
    margin-top: 20px;
    margin-right: 20px;
    float: right;
    font-size: 0.85rem;
}

header.top a.show-all img {
    margin-left: 10px;
    vertical-align: sub;
}

@media(max-width: 1140px) {
    header.top div.logo img {
        max-width: 600px;
    }
}

@media(max-width: 450px) {
    header.top a.show-all {
        font-size: 0.7rem;
    }

    header.top.small a.show-all {
        font-size: 0.7rem;
    }
}


/* -- Content -- */
div.content {
    margin: 0;
    padding: 0;
    padding-bottom: 50px;
    background-image: url(../images/bg.png);
    background-repeat: repeat-x;
    background-size: 1px 100%;
}

div.content.home {
    padding-bottom: 0;
}

/* -- Home -- */
div.home-top {
    display: grid;
    grid-template-columns: 33% auto;
    column-gap: 50px;
}

div.home-top div.ism {
    position: relative;
    background-color: white;
    margin-top: -70px;
    border: solid;
    border-color: var(--secondary2);
    border-radius: 40px;
    border-width: 1px;
    padding: 30px;
    border-width: 1px;
}

div.home-top div.ism h3 {
    color: var(--secondary2);
    text-align: left;
}

div.home-top div.ism ul {
    list-style: none;
    margin-bottom: 0;
    margin-left: 0;
    padding-left: 0;
}

div.home-top div.ism ul li {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

div.home-top div.ism ul li:last-child {
    margin-bottom: 0;
}

div.home-top div.ism ul li a {
    position: relative;
    color: black;
    padding-left: 28px;
}


div.home-top div.ism ul li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    background-image: url(../images/eye.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    width: 20px;
    height: 100%;
}

div.home-top div.ism nav.search-links {
    display: none;
}

@media(max-width: 900px) {
    div.home-top div.ism nav.search-links {
        position: absolute;
        right: -100px;
        top: 40%;
        display: block;
    }

    div.home-top div.ism nav.search-links a {
        font-size: 2rem;
    }
}

@media(max-width: 600px) {
    div.home-top div.ism nav.search-links {
        right: -50px;
    }
}

div.home-top div.intro {
    margin-top: 40px;
}

div.home-top div.intro div.wrapper {
    background-color: var(--secondary2);
    color: white;
    border: solid;
    border-color: var(--secondary2);
    border-radius: 40px;
    border-width: 1px;
    padding: 50px;
    font-size: 0.9rem;
    line-height: 150%;
}

div.home-bottom {
    display: block;
    margin-top: 50px;
}

@media(max-width: 1000px) {
    div.home-bottom div.newsletter {
        margin: 0 auto;
    }
}

@media(max-width: 600px) {
    div.home-top div.intro div.wrapper {
        padding: 30px;
    }
}

/* -- Home news -- */
div.home-bottom div.news {
    padding-top: 30px;
    position: relative;
    margin: 0 auto;
    max-width: 1100px;
    width: 100%;
    margin-bottom: 40px;
}

div.home-bottom div.news h3 {
    color: var(--secondary2);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0 0 30px 0;
}


div.home-bottom div.news h3 a {
    color: var(--secondary2);
}

div.news-carousel time {
    display: block;
    color: var(--secondary2);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 20px;
}

div.news-carousel h2 {
    margin-top: 0;
    font-size: 1.3rem;
}

div.news-carousel p {
    font-size: 0.9rem;
}

div.news-carousel div.owl-dots {
    position: absolute;
    top: -90px;
    right: -10px;
}

div.news-carousel div.owl-dots button {
    border: solid;
    border-color: transparent;
    width: 35px;
    height: 35px;
    margin-right: 10px;
    border-radius: 35px;
    border-width: 1px;
}

div.news-carousel div.owl-dots button:last-child {
    margin-right: 0;
}


div.news-carousel div.owl-dots button.active {
    border-color: var(--secondary1);
}

div.news-carousel div.owl-dots button span {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 20px;
    vertical-align: bottom;
}

div.news-carousel div.owl-dots button:nth-child(1) span {background-color: var(--dot1);}
div.news-carousel div.owl-dots button:nth-child(2) span {background-color: var(--dot2);}
div.news-carousel div.owl-dots button:nth-child(3) span {background-color: var(--dot3);}
div.news-carousel div.owl-dots button:nth-child(4) span {background-color: var(--dot4);}

div.home-bottom div.news a {
    color: black;
}

div.home-bottom div.newsletter {
    background-color: var(--secondary1);
}

div.home-bottom div.newsletter form {
    display: grid;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    grid-template-columns: 33% 33% 34%;
    max-width: 1100px;
    column-gap: 20px;
    border-radius: none;
    padding: 40px 0 40px 0;
}

div.home-bottom div.newsletter form div.newsletter-heading p {
    font-size: 0.9rem;
}

div.home-bottom form.newsletter input[type=submit] {
    width: 100%;
    border: none;
}

@media(max-width: 1250px) {
    div.home-bottom form.newsletter div.newsletter-fields:last-child {
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 2;
        grid-row-end: 3;
    }
}

@media(max-width: 1140px) {
    div.home-bottom div.newsletter form {
        padding: 40px 20px 40px 20px;
    }
}

@media(max-width: 1000px) {
    div.home-bottom div.news {
        max-width: calc(100vw - 20px);
    }

    div.news-carousel div.owl-dots {
        position: absolute;
        top: -65px;
        right: -10px;
    }

    div.home-top div.ism h3 {
        text-align: left;
    }

    div.home-top div.ism ul {
        margin-left: 0;
        padding-left: 0;
    }
}

@media(max-width: 950px) {
    div.home-bottom form.newsletter div.newsletter-fields {
        grid-column-start: 2;
        grid-column-end: 4;
        padding-right: 50px;
    }

    div.home-bottom form.newsletter div.newsletter-fields:last-child {
        grid-column-start: 2;
        grid-column-end: 4;
    }
}

@media(max-width: 750px) {
    div.home-top {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 750px) {
    div.home-bottom div.newsletter form {
        grid-template-columns: 1fr;
    }

    div.home-bottom form.newsletter div.newsletter-fields {
        grid-column-start: auto;
        grid-column-end: auto;
        padding-right: 0px;
    }

    div.home-bottom form.newsletter div.newsletter-fields:last-child {
        grid-column-start: auto;
        grid-column-end: auto;
        grid-row-start: auto;
        grid-row-end: auto;
    }
}



/* -- Newsletter -- */
form.newsletter {
    background-color: var(--secondary1);
    border-radius: 40px;
    border-width: 1px;
    padding: 35px 50px 35px 50px;
    max-width: 550px;
}

div.newsletter-page div.newsletter {
    margin: 50px auto;
}

div.newsletter-page form.newsletter {
    margin: 0 auto;
}

form.newsletter h3 {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

form.newsletter p {
    color: white;
}

form.newsletter p b {
    color: var(--primary);
}

form.newsletter input {
    display: block;
    border: none;
    background-color: white;
    width: 100%;
    margin-bottom: 20px;
    height: 50px;
    line-height: 30px;
    padding: 10px 20px;
}

form.newsletter input[type=submit] {
    width: auto;
    margin: 0 auto;
    text-transform: uppercase;
    color: white;
    background-color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
    padding: 5px 20px;
    letter-spacing: 2px;
    border-radius: 0;
}

form.newsletter input[type=text]::placeholder,
form.newsletter input[type=email]::placeholder {
    color: var(--placeholder-text);
    font-family: "Montserrat", sans-serif;
}

div.newsletter-confirmation p {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

@media(max-width: 600px) {
    form.newsletter {
        padding: 30px;
    }

    form.newsletter input {
        padding: 10px 10px;
    }
}

div.newsletter ul.errors {
    margin-left: 0;
    padding-left: 0;
    list-style: inside;
    margin-bottom: 20px;
}

div.newsletter ul.errors li {
    color: red;
}

div.newsletter input {
    border: solid;
    border-color: white;
    border-width: 2px;
}

div.newsletter input:focus {
    outline-color: var(--primary);
}

div.newsletter input.error {
    border-color: red;
}

/* -- Studies filters -- */
nav.study-filters form {
    margin-top: 20px;
    text-align: center;
}

nav.study-filters.top {
    margin-bottom: 70px;
}

nav.study-filters.top li,
nav.study-filters.top li label,
nav.study-filters.top li input {
    cursor: pointer;
}

nav.study-filters details {
    display: inline;
    position: relative;
    color: var(--primary);
    margin-right: 20px;
}

nav.study-filters details summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.9rem;
}

nav.study-filters.top details summary {
    font-weight: 500;
    text-align: center;
}

nav.study-filters details[open] summary {
    font-weight: bold;
    color: var(--secondary2);
}

nav.study-filters details summary [class^="icon-"]::before,
nav.study-filters details summary [class*=" icon-"]::before {
    border: solid;
    border-width: 1px;
    border-color: var(--primary);
    border-radius: 5px;
    font-size: 12px;
    padding: 2px;
}

nav.study-filters details[open] summary [class^="icon-"]::before,
nav.study-filters details[open] summary [class*=" icon-"]::before {
    border-color: var(--secondary2);
}

nav.study-filters details ul {
    position: absolute;
    top: 30px;
    left: 0;
    background-color: white;
    width: auto;
    overflow: visible;
    min-width: 200px;
    border: solid;
    border-color: var(--secondary2);
    border-width: 1px;
    text-align: left;
    list-style: none;
    margin: 0;
    padding: 5px 0px 0 0px;
    z-index: 100;
}


nav.study-filters details ul li {
    display: block;
    color: var(--secondary2);
    font-size: 0.9rem;
    margin-bottom: 5px;
    white-space: nowrap;
    padding: 0 20px;
}

nav.study-filters details ul li.header {
    font-weight: 500;
    font-size: 0.8rem;
}

nav.study-filters details ul li.indent {
    margin-left: 20px;
}

nav.study-filters details ul li.header:not(:first-child, :last-child) {
    border-top: solid;
    border-width: 1px;
    margin-top: 10px;
    padding-top: 5px;
}


nav.study-filters details ul li.indent {
    margin-left: 20px;
}

nav.study-filters details ul li label {
    margin-left: 5px;
    font-size: 0.8rem;
}

nav.study-filters details[open] summary [class^="icon-"]::before,
nav.study-filters details[open] summary [class*=" icon-"]::before {
    content: '\e805';
}

a.clear-filters {
    position: relative;
    display: inline-block;
    color: var(--secondary2);
    font-size: 0.9rem;
    padding-left: 20px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

a.clear-filters.disabled {
    color: #999;
    cursor: not-allowed;
}

a.clear-filters:after {
    position: absolute;
    content: "";
    display: block;
    background-color: var(--secondary2);
    height: 30px;
    width: 1px;
    top: -5px;
    left: 0;
}

p.filtered-out-everything {
    display: none;
    text-align: center;
    margin-top: 50px;
    font-weight: bold;
}

a.show-filters {
    display: none;
}

nav.study-filters.archive a.show-filters {
    background-color: var(--secondary1);
}

nav.study-filters.archive details summary {
}

nav.study-filters p.result-count {
    color: var(--primary);
    font-size: 0.9rem;
}

nav.study-filters input[type=checkbox] {
    display: inline-grid;
    place-content: center;
    -webkit-appearance: none;
    appearance: none;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid var(--primary);
    border-radius: 0.15em;
}

nav.study-filters input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--primary);
}

nav.study-filters input[type="checkbox"]:checked::before {
  transform: scale(1);
}


nav.study-filters input[type=radio] {
    display: inline-grid;
    place-content: center;
    -webkit-appearance: none;
    appearance: none;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid var(--primary);
    border-radius: 1em;
}

nav.study-filters input[type="radio"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--primary);
    border-radius: 1em;
}

nav.study-filters input[type="radio"]:checked::before {
  transform: scale(1);
}

@media(max-width: 1100px) {
    nav.study-filters.top form {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        row-gap: 10px;
        margin-top: 20px;
        margin-left: 10px;
        text-align: center;
    }
}

@media(max-width: 800px) {
    nav.study-filters form {
        display: none;
    }

    nav.study-filters.top form {
        display: block;
    }

    a.show-filters {
        display: inline-block;
        width: auto;
        margin: 20px 10px 0px 10px;
        text-align: center;
    }

    a.show-filters small {
        text-transform: initial;
        font-size: 0.7rem;
    }

    nav.study-filters details, a.clear-filters {
        display: block;
        margin-top: 20px;
        margin-left: 10px;
        text-align: center;
    }

    nav.study-filters.top form {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        margin-top: 20px;
        margin-left: 10px;
        text-align: center;
    }

    nav.study-filters details ul li label,
    nav.study-filters details ul li.header {
        font-size: 1rem;
    }

    a.clear-filters {
        padding-left: 0;
        margin-left: 0;
    }

    a.clear-filters:after {
        display: none;
    }

}

@media(max-width: 650px) {
    nav.study-filters.top form {
        grid-template-columns: 1fr 1fr;
    }
}


@media(max-width: 450px) {
    nav.study-filters.top form {
        grid-template-columns: 1fr;
    }

    nav.study-filters.top details ul {
        width: 100%;
    }
}

/* -- Study -- */
h2.study-overview {
    margin-bottom: 0;
    margin-top: 50px;
    color: var(--secondary2);
}

h1.study-name {
    margin-top: 0;
    color: black;
}

nav.links {
    text-align: center;
}

header.studies-top {
    padding: 10px;
}

table.study {
    display: table;
    margin: 0 auto;
    max-width: 1100px;
    border: solid;
    border-width: 1px;
    border-color: var(--secondary1);
    border-radius: 40px;
    background-color: white;
}

table.study td, table.study th {
    padding: 30px;
    border-bottom: solid;
    border-width: 1px;
    border-color: var(--secondary1);
    text-align: left;
}

table.study th:not(:first-child) {
    border-left: solid;
    border-width: 1px;
    border-color: var(--secondary1);
    text-align: center;
}

table.study th {
    text-transform: uppercase;
}

table.study tr:last-child td, table.study tr:last-child th {
    border-bottom: none;
}

table.study th {
    border-right: solid;
    border-width: 1px;
    border-color: var(--secondary1);
}

table.study img {
    width: auto;
    max-width: 100%;
    height: auto;
}


@media(max-width: 1140px) {
    table.study {
        margin: auto 10px;
    }
}

@media(max-width: 800px) {
    table.study {
        display: block;
        margin: auto 10px;
        border-radius: 0;
        border-color: var(--secondary3);
    }

    table.study th {
        border-right: none;
        background-color: var(--secondary4);
        padding: 10px 20px;
    }

    table.study td {
        padding: 10px 20px;
    }

    table.study td,
    table.study th {
        display: block;
    }

    table.study th:not(:first-child) {
        display: inline-block;
        background-color: white;
        text-align: left;
        border: none;
        padding-right: 0;
        text-transform: capitalize;
    }

    table.study th:not(:first-child)::after {
        content:":";
    }

    table.study th:not(:first-child) + td {
        display: inline;
        border: none;
        padding-left: 3px;
    }

    table.study tr:has(th:not(:first-child) + td) {
        position: relative;
    }

    table.study tr:has(th:not(:first-child) + td)::after {
        position: absolute;
        content: "";
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: var(--secondary4);
        z-index: 100;
    }
}

@media(max-width: 600px) {
    table.study a.login {
        font-size: 0.8rem;
    }
}

/* -- News -- */
header.news-top {
    text-align: center;
}

header.news-top p {
    max-width: 700px;
    margin: 0 auto;
}


section.news-grid {
   display: grid;
   margin-top: 50px;
   grid-template-columns: calc(50% - 25px) calc(50% - 25px);
   column-gap: 50px;
}

section.news-grid a.news {
    position: relative;
    padding: 0;
    margin-bottom: 50px;
}

section.news-grid img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

section.news-grid h2 {
    color: black;
    font-size: 1.3rem;
    margin-top: 5px;
}

section.news-grid p {
    color: black;
    font-size: 0.9rem;
}

section.news-grid time {
    color: var(--secondary2);
}

div.news-item time {
    display: block;
    color: black;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

div.news-item img {
    width: auto;
    max-width: 100%;
    height: auto;
}

div.news-item h1 {
    text-align: center;
}

@media(max-width: 600px) {
    section.news-grid {
       grid-template-columns: 1fr;
       padding: 0 20px;
    }

    a.news-item p {
        padding: 20px;
    }

    div.news-item h1 {
        text-align: left;
    }

    div.news-item time {
        text-align: left;
    }
}

/* -- Login -- */
div.content.login {
    background-color: var(--secondary1);
    display: block;
    overflow: auto;
}

div.content.login div.box {
    max-width: 600px;
    text-align: left;
}

div.content.login h1 {
    color: white;
    padding-left: 100px;
    margin-bottom: 30px;
}

div.content.login form {
    border-radius: 60px;
    padding: 20px 100px;
    background-color: rgba(255,255,255,0.35);
}

div.content.login form input:not([type=submit]) {
    display: block;
    margin: 30px 0;
    border-radius: 25px;
    padding: 10px 20px;
    border: none;
    height: 50px;
    width: 100%;
}

div.content.login form input:not([type=submit])::placeholder {
    color: #f3565f;
    font-family: "Montserrat", sans-serif;
}

div.content.login form input[type=submit] {
    display: block;
    margin: 0 auto;
    border-radius: 0;
}

p.error {
    color: red;
}

@media(max-width: 800px) {
    div.content.login form {
        padding: 20px 50px;
        border-radius: 40px;
    }
}

@media(max-width: 600px) {
    div.content.login form {
        border-radius: 20px;
        padding: 20px 20px;
    }
}

/* -- About us -- */
div.about-us h2.section-title {
    color: var(--secondary2);
    margin-top: 50px;
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

div.about-us ul.sites,
div.about-us ul.sponsors {
    display: grid;
    list-style: none;
    grid-template-columns: auto 1fr 1fr 1fr;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 50px;
    row-gap: 50px;
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin-top: 30px;
    grid-auto-rows: 1fr;
}

div.about-us ul.sites {
    margin-bottom: 100px;
}

div.about-us ul.sponsors {
    justify-content: center;
    justify-items: center;
}

div.about-us ul.sites li, div.about-us ul.sponsors li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: solid;
    border-color: var(--secondary2);
    border-radius: 20px;
    border-width: 1px;
    border-width: 1px;
    background-color: white;
}


div.about-us ul.sites li a, div.about-us ul.sponsors li a {
    display: grid;
    margin: 30px;
    width: 100%;
    height: 100%;
    align-content: center;
}

div.about-us ul.sites li img,
div.about-us ul.sponsors li img {
    object-fit: contain;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
}

@media(max-width: 1000px) {
    div.about-us ul.sites,
    div.about-us ul.sponsors {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media(max-width: 800px) {
    div.about-us ul.sites,
    div.about-us ul.sponsors {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 500px) {
    div.about-us ul.sites,
    div.about-us ul.sponsors {
        grid-template-columns: 1fr;
    }
}

/* -- Studies / Search -- */
div.content section.studies-page {
    display: grid;
    grid-template-columns: 300px auto;
    column-gap: 50px;
    text-align: left;
    margin: 0 auto;
    max-width: 1300px;
}

h1.page-title.studies.has-search {
    margin-bottom: 10px;
}

@media(max-width: 1300px) {
    div.content section.studies-page {
        max-width: calc(100vw - 100px);
    }
}

@media(max-width: 1140px) {
    div.content section.studies-page {
        max-width: calc(100vw - 100px);
    }
}

@media(min-width: 800px) {
    div.content section.studies-page form {
        display: block !important;
    }
}

@media(max-width: 800px) {
    div.content section.studies-page {
        grid-template-columns: 1fr;
    }

    div.content section.studies-page h2.refine {
        display: none;
    }

    div.content section.studies-page a.clear-filters {
        display: inline-block;
    }
}

div.content section.studies-page h1 {
    text-align: left;
}

section.studies-page section.study-grid {
    display: block;
    margin-top: 50px;
}

section.studies-page section.study-grid a.study {
    display: block;
    border-bottom: solid;
    border-color: var(--secondary2);
    border-width: 1px;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

section.study-grid a.study span.type {
    color: var(--secondary2);
    text-transform: uppercase;
}

section.study-grid a.study h2 {
    margin-top: 3px;
}

section.studies-page section.study-grid a.study:last-child {
    border-bottom: none;
}

section.studies-page section.study-grid h2 {
   color: var(--secondary2);
   margin-bottom: 0;
   font-size: 1.2rem;
}

section.studies-page section.study-grid h3 {
   color: black;
   margin-bottom: 0;
   margin-top: 10px;
   font-size: 0.9rem;
}

section.studies-page section.study-grid p {
    color: black;
    margin-top: 0;
    font-size: 0.9rem;
}


section.studies-page aside {
    text-align: left;
}

section.studies-page nav.study-filters form {
    text-align: left;
}

section.studies-page details ul {
    position: static;
    display: block;
}

section.studies-page aside h2 {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary2);
    font-size: 1rem;
    margin-right: 5px;
    margin-top: 50px;
}

section.studies-page a.clear-filters {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: bold;
}

section.studies-page a.clear-filters.disabled {
    color: #999;
    cursor: not-allowed;
}

section.studies-page details {
    display: block;
}

section.studies-page details ul {
    border: none;
    padding-left: 0;
    margin-bottom: 20px;
    background-color: transparent;
}

section.studies-page nav.study-filters details ul li {
    margin: 3px 0;
    color: var(--primary);
}

section.studies-page nav.study-filters details ul li.indent {
    margin-left: 20px;
}

section.studies-page nav.study-filters details summary [class^="icon-"]::before,
section.studies-page nav.study-filters details summary [class*=" icon-"]::before {
    display: none;
}


section.studies-page nav.study-filters details.population ul li.header:not(:first-child, :last-child) {
    border-top: none;
}

/*
section.studies-page details.population li:not(.header) {
    margin-left: 20px;
}
*/


section.study-grid a.study span.read-more {
    display: block;
    text-align: right;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 2px;
    z-index: 10;
    font-size: 0.9rem;
    line-height: 1.3rem;
}

section.study-grid a.study span.read-more span.icon-search {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    border-radius: 100%;
    font-size: 1rem;
    padding: 0.15rem;
    padding-bottom: 0.18rem;
    font-weight: normal;
}

section.study-grid.archive a.study span.type {
    color: #666;
}

section.study-grid.archive a.study h2 {
    color: var(--secondary3);
}

section.study-grid.archive a.study span.read-more {
    color: var(--secondary3);
}

section.study-grid.archive a.study span.read-more span.icon-search {
    background-color: var(--secondary3);
}

p.reset-search {
    margin-top: 0;
}

a.reset-search {
    position: relative;
    display: inline-block;
    color: var(--primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    left: -5px;
}

a.reset-search span {
    position: relative;
    color: var(--secondary2);
    font-size: 1.1rem;
    top: 2px;
}

/* -- Regular page --*/
div.content.regular-page p {
    line-height: 175%;
}

/* -- Footer -- */
footer div.footer-top {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    background-color: white;
    padding: 50px;
}

footer div.footer-top div.logo {
    display: flex;
    align-items: center;
}

footer div.footer-top div.logo img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

@media(max-width: 700px) {
    footer div.footer-top {
        grid-template-columns: 65% 35%;
    }

    footer div.footer-top div.logo img {
        object-fit: contain;
    }

    nav.footer-nav a {
        font-size: 0.9rem;
    }
}


footer div.footer-top .footer-nav {
    display: flex;
    justify-content: end;
}

footer div.footer-top .footer-nav ul {
    list-style: none;
}

footer div.footer-top .footer-nav li {
    margin-bottom: 5px;
}

footer div.footer-top .footer-nav a {
    color: black;
}

div.copyright {
    display: block;
    width: 100%;
    background-color: var(--primary);
    color: white;
    padding: 15px 25px;
    text-align: center;
}

@media(max-width: 600px) {
    footer div.footer-top {
        grid-template-columns: 1fr;
    }

    footer div.footer-top .footer-nav {
        justify-content: center;
    }
}

/* -- Cookie message -- */
section.cookie-message {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 20px;
    background-color: var(--secondary4);
    color: black;
}

section.cookie-message p {
    display: block;
    margin: 0 auto;
    max-width: 800px;
    font-size: 1rem;
}

section.cookie-message div.buttons {
    display: flex;
    margin: 20px auto 0 auto;
    max-width: 800px;
    justify-content: space-evenly;
}

section.cookie-message div.buttons a {
    display: block;
}

section.cookie-message div.buttons a.cookie-accept {
    background: #40BF71;
}

section.cookie-message div.buttons a.cookie-deny {
    background: var(--secondary2);
}

@media(max-width: 400px) {
    section.cookie-message p {
        font-size: 0.9rem;
    }

    section.cookie-message div.buttons a.btn {
        zoom: 0.8;
    }
}

/* -- General responsiveness -- */
@media(max-width: 1140px) {
    div.box {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}
