@charset "UTF-8";

/* Home page */
.home-content {
    margin: 10px 10px 0;
}

.home-shortcuts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 25px 0 0;
}

.home-shortcut {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 94px;
    padding: 12px 18px;
    border: 2.6px solid var(--pwg-theme-border);
    border-radius: 22px;
    color:var(--pwg-theme-text,#000);
    background:var(--pwg-theme-surface,#fff);
    box-shadow: 0 3px 10px rgba(6, 45, 87, .05);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.home-shortcut:hover {
    border-color: var(--pwg-theme-border-hover);
    background:var(--pwg-theme-tint);
    box-shadow: 0 9px 22px rgba(6, 45, 87, .13);
    transform: translateY(-3px) scale(1.01);
}

.home-shortcut:focus-visible {
    outline: 3px solid #062d57;
    outline-offset: 4px;
}

.home-shortcut-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--pwg-accent) 14%, transparent);
}

.home-shortcut-icon svg {
    width: 52px;
    height: 52px;
    fill: none;
    stroke: var(--pwg-theme-link);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-shortcut-title {
    min-width: 0;
    text-align: center;
    font-family: "Alegreya Sans SC", sans-serif;
    font-size: clamp(1.3rem, 1.15rem + .55vw, 1.7rem);
    font-weight: 700;
    line-height: 1.05;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0;
}

.home-content ol li {
    margin: 5px;
}

.home-research-card {
    display: block;
    isolation: isolate;
    justify-self: stretch;
    width: 100%;
    padding: 14px;
    color:var(--pwg-theme-text,#000);
    text-align: center;
    background:var(--pwg-theme-surface,#fff);
    border: 2.6px solid var(--pwg-theme-border);
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(6, 45, 87, .05);
    font-size: 100%;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.home-research-card:hover,
.home-research-card:focus-visible {
    color:var(--pwg-theme-text,#000);
    text-decoration: none;
    border-color: var(--pwg-theme-border-hover);
    background:var(--pwg-theme-tint);
    box-shadow: 0 9px 22px rgba(6, 45, 87, .13);
    transform: translateY(-3px) scale(1.01);
}

.home-research-card:focus-visible {
    outline: 3px solid #062d57;
    outline-offset: 4px;
}

.home-research-card h2 {
    width: 100%;
    margin: 0 0 14px;
    text-align: center;
    color:var(--pwg-theme-text,#000);
    font-family: "Alegreya Sans SC", sans-serif;
    font-size: 180%;
    font-weight: 700;
    line-height: 1.1;
}

.home-research-card > p {
    margin: 0;
}

.home-research-card img {
    --home-image-side-padding: 20px;
    position: relative;
    top: 0;
    width: 90%;
    height: auto;
    padding: 0 var(--home-image-side-padding);
    object-fit: cover;
    /* Round the visible image, excluding its horizontal padding. */
    clip-path: inset(0 var(--home-image-side-padding) round 18px);
}

/* Blend white artwork into the card while retaining its original dark labels. */
.home-databases-art img {
    mix-blend-mode: multiply;
}

.home-section {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    color:var(--pwg-theme-text,#000);
    background:var(--pwg-theme-surface,#fff);
    border: 2.6px solid var(--pwg-theme-border);
    border-radius: 25px;
}

.home-section:last-of-type {
    margin-bottom: 25px;
}

.home-section > h2 {
    margin: 0 0 14px;
    color:var(--pwg-theme-text,#000);
    font-family: "Alegreya Sans SC", sans-serif;
    font-size: 180%;
    font-weight: 700;
    text-align: center;
}

.home-section > p {
    margin: 0;
    padding: 0 30px;
    color:var(--pwg-theme-text,#000);
    text-align: center;
}

.home-section > p > a {
    font-size: 100%;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.home-section > ul {
    margin-top: 0;
    list-style-type: none;
}

.home-section > ul > li {
    padding-top: 20px;
}

.home-section > ul > li:first-of-type {
    padding-top: 0;
}

.home-section > ul > li:last-of-type {
    padding-bottom: 20px;
}

.home-section > .home-publication-list {
    margin: 0 0 12px;
    padding-left: 28px;
    list-style: disc outside;
    text-align: left;
}

.home-section > .home-publication-list > .home-publication-item {
    margin: 8px 0;
    padding: 0 0 8px;
    font-size: clamp(.875rem, .825rem + .25vw, 1rem);
    line-height: 1.55;
}

.home-publication-list .pub-title {
    font-style: italic;
}

.home-publication-list .pub-journal strong {
    font-weight: 700;
}

.home-publication-list .doi > a:first-child {
    color:var(--pwg-theme-link);
    font-weight: 500;
}

.home-section img {
    width: 100%;
    padding: 0 20px;
    text-align: center;
}

.home-section a.paper-pdf img,
.home-section a.archive-pdf img,
.home-content ol li a.paper-pdf img,
.home-content ol li a.archive-pdf img {
    display: block;
    width: auto;
    max-width: none;
    height: 21px;
    margin: 0;
    padding: 0;
}

.home-section a.paper-pdf,
.home-section a.archive-pdf {
    display: inline-block;
    margin-left: .55em;
    padding: 0;
    font-size: 90%;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
}

.home-section a.archive-pdf {
    color:var(--pwg-theme-text,#000);
}

.home-section .home-publication-list .pub-pdf:hover,
.home-section .home-publication-list .pub-pdf:focus-visible {
    text-decoration: none;
    filter: brightness(.94);
}

.home-section .home-publication-list .pub-pdf:focus-visible {
    outline: 2px solid var(--pwg-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (min-width: 769px) {
    .home-content {
        width: var(--pwg-frame-width);
        max-width: none;
        margin: 36px auto 0;
    }

    .home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-shortcuts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px;
    }

    .home-shortcut {
        display: flex;
        justify-content: center;
        gap: clamp(10px, .8vw, 14px);
        min-height: 132px;
        padding: 18px clamp(18px, 1.8vw, 28px);
    }

    .home-shortcut-icon {
        width: clamp(68px, 5.2vw, 82px);
        height: clamp(68px, 5.2vw, 82px);
    }

    .home-shortcut-icon svg {
        width: clamp(50px, 4vw, 62px);
        height: clamp(50px, 4vw, 62px);
    }

    .home-content ol {
        margin: 20px;
        text-align: justify;
    }

    .home-research-card img {
        --home-image-side-padding: 30px;
        width: min(600px, 100%);
        height: auto;
        aspect-ratio: 30 / 17;
    }

    .home-section > ul {
        list-style-type: disc;
    }
}

@media (max-width: 768px) {
    .home-section > ul {
        margin: 0;
        padding: 0;
        text-align: center;
    }
}

@media (max-width:260px) {
    .home-page,
    .home-content {
        min-width: 0;
        max-width: 100%;
    }

    .home-content {
        margin-right: 0;
        margin-left: 0;
    }

    .home-grid,
    .home-shortcuts {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-research-card,
    .home-shortcut,
    .home-section {
        width: 100%;
        max-width: 100%;
    }

    .home-research-card {
        padding: 10px;
    }

    .home-research-card img {
        --home-image-side-padding: 0px;
        width: 100%;
        max-width: 100%;
    }

    .home-shortcut {
        grid-template-columns: minmax(0, 28%) minmax(0, 72%);
        gap: 4px;
        padding: 8px;
    }

    .home-shortcut-icon {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .home-shortcut-icon svg {
        width: 76%;
        height: auto;
    }

    .home-section {
        padding: 10px;
    }

    .home-section > p {
        padding-right: 0;
        padding-left: 0;
    }

    .home-section > .home-publication-list {
        padding-left: 1.25rem;
    }

    .home-publication-list .doi-link {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
