@import "fonts.css";
@import "base.css";
@import "header-footer.css";
@import "bricks.css";

/*------------------------*/
/* theme colors
/*------------------------*/

:root {
    --textDarker: #1e282d;
    --textDark: rgba(38, 50, 56, 1);
    --textMedium: rgba(38, 50, 56, 0.7);
    --borderMedium: rgba(38, 50, 56, 0.2);
    --borderLight: rgba(38, 50, 56, 0.075);
    --accent: #f4b500;
    --accentDarker: #e6ac00;
    --light: rgba(38, 50, 56, 0.035);
    --fontBody: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --fontTitles: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/*------------------------*/
/* turn grayscale off
/*------------------------*/

img {filter: grayscale(0);}

/*------------------------*/
/* colorize_image
/*------------------------*/

.colorize_image {filter: contrast(1) sepia(1) hue-rotate(160deg) grayscale(0.8)!important;}

/*------------------------*/
/* black_2_textDark
/*------------------------*/

.map::after, .black_2_textDark {filter: contrast(0.7) sepia(1) hue-rotate(160deg)!important;}

/*------------------------*/
/* black_2_textMedium
/*------------------------*/

.black_2_textMedium {filter: contrast(0.3) sepia(0.3) hue-rotate(160deg) brightness(1.4)!important;}

/*------------------------*/
/* black_2_accent
/*------------------------*/

.black_2_accent {filter: contrast(0.11) sepia(1) hue-rotate(340deg) contrast(13)!important;}


/*------------------------ CSS overrides below ------------------------*/

body {
    background: #ffffff;
    color: var(--textDark);
}

html {
    font-size: 16px;
}

.innerbody {
    background: #ffffff;
}

h1,
h2,
h3,
a.logo {
    letter-spacing: 0;
}

header {
    border-bottom: 1px solid rgba(38, 50, 56, 0.08);
}

header a.logo img,
footer a.logo img {
    filter: none !important;
}

header > .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

header .navnav > ul > li a {
    font-size: 1rem;
}

a.logo {
    font-size: 1.45rem;
    font-weight: 750;
}

a.logo img.inline {
    height: 1.75rem;
    border-radius: 4px;
}

a.logo > div.has_subtitle > div span:nth-child(2) {
    color: var(--textMedium);
    font-size: 0.78rem;
}

section:not(.intro) {
    color: #3c4b53;
    font-family: var(--fontBody);
    font-size: 1.12rem;
    line-height: 1.72;
}

section:not(.intro) h1,
section:not(.intro) h2 {
    color: #17232b;
    font-family: var(--fontTitles);
    font-size: 2.65rem;
    font-weight: 780;
    line-height: 1.12;
    margin-bottom: 1.2rem;
    text-wrap: balance;
}

section:not(.intro) h3,
.container.post h3,
section.docs h3 {
    color: #17232b;
    font-family: var(--fontTitles);
    font-size: 1.32rem;
    font-weight: 760;
    line-height: 1.25;
}

section:not(.intro) p,
section:not(.intro) li {
    font-size: 1.08rem;
}

section:not(.intro) strong {
    color: #21313a;
    font-weight: 720;
}

.intro {
    background: #ffffff;
    text-align: left;
    padding: clamp(3.25rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem);
    border-bottom: 1px solid rgba(38, 50, 56, 0.08);
}

.intro .container.small {
    max-width: 84rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: center;
}

.intro h1 {
    color: #17232b;
    font-size: clamp(3.2rem, 8vw, 6.6rem);
    line-height: 0.96;
    max-width: 13ch;
    margin-bottom: 1.2rem;
    font-weight: 760;
}

.intro h2 {
    color: #33434b;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.25;
    max-width: 31ch;
    margin-top: 0;
    margin-bottom: 1.15rem;
    font-weight: 560;
}

.intro .container.small > :not(:last-child) {
    grid-column: 1;
}

.intro .container.small > p {
    max-width: 52rem;
}

.intro .container.small > p strong {
    color: #51616a;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0;
}

.intro .container.small > p:last-child {
    grid-column: 2;
    grid-row: 1 / span 7;
    justify-self: end;
    align-self: center;
    margin: 0;
}

.intro img {
    width: min(340px, 100%);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    justify-self: end;
    margin: 0;
    border: 1px solid rgba(38, 50, 56, 0.12);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1.7rem;
}

.affiliation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    margin-top: 1.8rem;
}

.affiliation-actions .button {
    margin: 0;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    margin-top: 1.8rem;
}

.contact-actions .button {
    margin: 0;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    max-width: 56rem;
    margin: 1.6rem 0 0;
    padding: 0;
}

.keyword-list li {
    list-style: none;
    color: #2f3d44;
    background: #f8faf9;
    border: 1px solid rgba(38, 50, 56, 0.16);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.58rem 0.78rem;
}

.wide {
    background: #ffffff;
}

.small {
    background: #edf5f2;
}

.features {
    background: #f7f8f6;
}

.research-themes {
    display: grid;
    gap: 0.8rem;
    max-width: 62rem;
    margin: 1.5rem auto 0;
}

.research-themes article {
    background: #ffffff;
    border: 1px solid var(--borderLight);
    border-radius: 8px;
    padding: 1.25rem 1.35rem;
}

.research-themes article h3 {
    margin: 0 0 0.75rem;
    color: #17232b;
    font-size: 1.18rem;
    font-weight: 750;
}

.research-accordion-content {
    padding: 0;
    color: #3c4b53;
}

.research-accordion-content p {
    margin: 0;
}

.research-accordion-content .research-links {
    margin-top: 1rem;
    font-size: 0.98rem;
    font-weight: 700;
}

.research-accordion-content .research-links a {
    color: #007bb3;
}

body.filename__index section.features > .container.small {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.features ul.grid.features > li {
    background: #ffffff;
    border: 1px solid var(--borderLight);
    border-radius: 8px;
    font-size: 1.04rem;
    padding: 1.45rem 1.35rem 1.55rem;
    box-sizing: border-box;
}

.features ul.grid.features > li h3 {
    font-size: 1.26rem;
    color: #17232b;
}

.image {
    background: #ffffff;
}

.image .image img {
    border-radius: 8px;
    border: 1px solid var(--borderLight);
}

.wide img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--borderLight);
    background: #ffffff;
}

video.player {
    width: 100%;
    max-height: 620px;
    border-radius: 8px;
    border: 1px solid var(--borderLight);
    background: #111820;
}

figcaption {
    color: var(--textMedium);
    font-size: 0.95rem;
    margin-top: 0.6rem;
}

.inverse-ecg-note {
    max-width: 76ch;
    margin: 1.1rem 0 1.3rem;
    padding: 1rem 1.15rem;
    color: #314149;
    background: #f4f8fa;
    border-left: 4px solid #009df1;
    border-radius: 0 8px 8px 0;
}

.inverse-ecg-note p {
    font-size: 1.03rem;
    line-height: 1.62;
}

.inverse-ecg-note a {
    color: #006da8;
    font-weight: 700;
}

.inverse-ecg-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 1.6rem);
    margin: 1.2rem 0 2.2rem;
}

.inverse-ecg-gallery figure {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}

.inverse-ecg-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid var(--borderLight);
    border-radius: 8px;
    background: #ffffff;
}

.inverse-ecg-gallery figcaption {
    color: #4c5a62;
    font-size: 0.96rem;
    line-height: 1.45;
}

a.button {
    border-radius: 6px;
    padding: 0.62em 1.1em;
    font-size: 1rem;
    letter-spacing: 0;
    color: #17232b;
}

@media (max-width: 760px) {
    header + section:not(.bgimage) {
        padding-top: 8.5rem!important;
    }

    .intro .container.small {
        grid-template-columns: 1fr;
    }

    .intro h1 {
        font-size: clamp(3rem, 17vw, 4.5rem);
    }

    .intro h2 {
        max-width: 100%;
    }

    .intro .container.small > p:last-child {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 1rem;
    }

    .intro img {
        justify-self: start;
        width: min(220px, 100%);
    }

    .keyword-list {
        gap: 0.45rem;
    }

    .keyword-list li {
        font-size: 0.82rem;
        padding: 0.52rem 0.66rem;
    }

    .inverse-ecg-gallery {
        grid-template-columns: 1fr;
    }
}

/*------------------------ Stronger homepage treatment ------------------------*/

body.filename__index {
    background: #05070d;
}

body.filename__index .innerbody {
    background: #ffffff;
}

body.filename__index header,
body.filename__index header.sticky {
    background: #05070d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

body.filename__index header a.logo,
body.filename__index header .navnav > ul > li > a {
    color: rgba(255, 255, 255, 0.86);
}

body.filename__index a.logo > div.has_subtitle > div span:nth-child(2),
body.filename__index header .navnav > ul > li a {
    color: rgba(255, 255, 255, 0.66);
    font-size: clamp(0.98rem, 1.05vw, 1.08rem);
}

body.filename__index header .navnav > ul > li::after {
    background-color: #2ab7ff;
}

body.filename__index header a.button {
    background: #009df1;
    color: #ffffff;
}

body.filename__index header + section:not(.bgimage) {
    padding-top: clamp(5.5rem, 7vw, 7rem)!important;
}

body.filename__index .intro {
    min-height: auto;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: rgba(222, 226, 230, 0.82);
    background:
        linear-gradient(135deg, rgba(0, 157, 241, 0.16) 0%, rgba(5, 7, 13, 0) 36%),
        linear-gradient(225deg, rgba(0, 29, 108, 0.42) 0%, rgba(5, 7, 13, 0) 42%),
        #05070d;
    border-bottom: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.6rem, 5vw, 4rem);
    text-align: center;
}

body.filename__index .intro .container.small {
    max-width: min(92rem, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: transparent;
}

body.filename__index .intro h1 {
    max-width: 14ch;
    margin: 0 0 0.95rem;
    color: #b9eaff;
    font-family: var(--fontBody);
    font-size: clamp(3.8rem, 8.5vw, 7.2rem);
    font-weight: 700;
    line-height: 1.02;
    text-wrap: balance;
}

body.filename__index .intro h2 {
    max-width: 34ch;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
    font-weight: 620;
    line-height: 1.18;
    text-wrap: balance;
}

body.filename__index .intro .container.small > :not(:last-child) {
    grid-column: auto;
}

body.filename__index .intro .container.small > p {
    max-width: 68ch;
    color: rgba(231, 238, 243, 0.84);
    font-size: clamp(1.12rem, 1.34vw, 1.28rem);
    font-weight: 350;
    line-height: 1.56;
    text-wrap: pretty;
}

body.filename__index .intro .container.small > p strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.08rem, 1.32vw, 1.24rem);
    font-weight: 650;
}

body.filename__index .intro .container.small > p:last-child {
    order: -1;
    width: clamp(10rem, 17vw, 16rem);
    aspect-ratio: 1;
    margin: 0 auto 1.45rem;
    padding: 0;
    border-radius: 0.8rem;
    overflow: hidden;
}

body.filename__index .intro .container.small > p:last-child img {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0.8rem;
    object-fit: cover;
    object-position: 53% 50%;
}

body.filename__index .keyword-list {
    justify-content: center;
    max-width: 76rem;
    gap: 0.36rem;
    margin-top: 1.35rem;
    color: #ffffff;
}

body.filename__index .keyword-list li {
    color: #ffffff;
    background-color: rgba(0, 93, 145, 0.86);
    background-image: linear-gradient(135deg, rgba(0, 55, 116, 0.96) 0%, rgba(0, 136, 194, 0.92) 100%);
    border: 1px solid rgba(127, 217, 255, 0.28);
    border-radius: 6px;
    font-size: clamp(0.78rem, 0.9vw, 0.95rem);
    font-weight: 750;
    letter-spacing: 0;
    padding: 0.42rem 0.62rem;
    white-space: nowrap;
}

body.filename__index .hero-actions {
    justify-content: center;
    gap: 0.9rem;
    margin-top: 1.45rem;
}

body.filename__index .hero-actions .button {
    background: #009df1;
    color: #ffffff;
    padding: 0.78rem 1.28rem;
    font-size: clamp(1.05rem, 1.18vw, 1.18rem);
}

body.filename__index .hero-profile-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.15rem;
}

body.filename__index .hero-profile-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(2.55rem, 3.2vw, 3.25rem);
    height: clamp(2.55rem, 3.2vw, 3.25rem);
    border-radius: 50%;
    background: rgba(0, 64, 102, 0.58);
    border: 1px solid rgba(127, 217, 255, 0.22);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

body.filename__index .hero-profile-links a:hover {
    background: rgba(0, 157, 241, 0.8);
    transform: translateY(-2px);
}

body.filename__index .hero-profile-links img {
    width: 48%;
    height: 48%;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    filter: invert(1);
}

body.filename__index .intro + .wide {
    padding-top: clamp(2.2rem, 4vw, 3.2rem);
}

@media (min-width: 900px) {
    body.filename__index .intro {
        text-align: left;
    }

    body.filename__index .intro .container.small {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(10rem, 15rem);
        column-gap: clamp(2rem, 6vw, 5rem);
        align-items: center;
    }

    body.filename__index .intro .container.small > p:last-child {
        order: initial;
        grid-column: 2;
        grid-row: 1 / span 7;
        margin: 0;
        justify-self: center;
    }

    body.filename__index .keyword-list,
    body.filename__index .hero-actions,
    body.filename__index .hero-profile-links {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    body.filename__index header + section:not(.bgimage) {
        padding-top: 7.5rem!important;
    }

    body.filename__index .intro {
        min-height: auto;
        padding-bottom: 4rem;
    }

    body.filename__index .intro h1 {
        font-size: clamp(3.35rem, 18vw, 5.2rem);
    }

    body.filename__index .intro h2 {
        font-size: clamp(1.35rem, 7vw, 2rem);
    }

    body.filename__index .intro .container.small > p {
        font-size: 1.05rem;
    }

    body.filename__index .keyword-list li {
        white-space: normal;
    }
}
