/*
 * Standalone 2026 Finalists page, V2.
 * Loads the shared awards base stylesheet and mirrors How It Works finalist cards.
 * Scoped to the standalone template; does not modify the gala page.
 */
.top10-finalists-page {
    background: #fff;
    color: var(--top10-dark, #171717);
}
.top10-finalists-page .gala-finalists-section {
    border-top: none;
    background: #f6f6f6;
}
.top10-finalists-page .finalists-content-heading {
    max-width: 770px;
    margin: 0 auto 28px;
    text-align: center;
}
.top10-finalists-page .finalists-content-heading .header-title { margin-bottom: 16px !important; }
.top10-finalists-page .finalists-content-heading p,
.top10-finalists-page section.section .finalists-content-heading p {
    margin: 0 auto !important;
    color: #626262;
    max-width: 690px;
    font-size: 16px !important;
}
.top10-finalists-page .finalists-swipe-hint {
    display: none;
    margin-top: 15px;
    color: #bd180f;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.top10-finalists-page .finalist-bio-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #e02419;
    color: #fff !important;
    padding: 12px 16px;
    cursor: pointer;
    border: 0;
    font: 700 13px "Montserrat",sans-serif;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.top10-finalists-page .finalist-bio-button:hover { background: #bd180f; }
.top10-finalists-page .finalist-bio-button:focus-visible,
.top10-finalists-page .finalist-modal-close:focus-visible {
    outline: 3px solid #e02419;
    outline-offset: 3px;
}
@media (max-width: 580px) {
    .top10-finalists-page .finalists-swipe-hint { display: inline-block; }
}

/* These card and lightbox rules are retained from the existing Gala template. */
/*************************************************************/
/********************* MEET THE FINALISTS *********************/
/*************************************************************/
.gala-finalists-section {
    background: var(--top10-surface);
    border-top: 1px solid var(--top10-border);
    border-bottom: 1px solid var(--top10-border);
    scroll-margin-top: 30px;
}
.finalists-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 42px;
}
.finalist-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--top10-border);
    border-radius: 16px;
    background: #fff;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.055);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.finalist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--top10-shadow);
}
.finalist-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #e8e8e8;
}
.finalist-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}
.finalist-card:hover .finalist-card-image img {
    transform: scale(1.025);
}
.finalist-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}
.finalist-card-name {
    margin: 0 0 8px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--top10-dark);
    text-align: left;
}
.finalist-card-role {
    margin: 0 0 14px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--top10-muted);
    text-align: left !important;
}
.finalist-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    margin-bottom: 18px;
}
.finalist-card-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f2f2f2;
    font-family: "Montserrat", sans-serif !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #555;
}
.finalist-bio-button {
    width: 100%;
}
/* Finalist bio lightbox */
.finalist-modal[hidden] {
    display: none;
}
.finalist-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
}
.finalist-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(4px);
}
.finalist-modal-dialog {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: stretch;
    width: min(1040px, 100%);
    height: min(760px, 90vh);
    max-height: 90vh;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}
/* Use the same uncropped portrait treatment as the homepage recipient popup. */
.finalist-modal-image-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    height: 100%;
    padding: 14px;
    overflow: hidden;
    background: linear-gradient(150deg, #dedede 0%, #f2f2f2 53%, #e2e2e2 100%);
}
.finalist-modal-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    object-position: top center;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
}

.finalist-modal-content::-webkit-scrollbar {
    width: 10px;
}
.finalist-modal-content::-webkit-scrollbar-track {
    background: #f2f2f2;
}
.finalist-modal-content::-webkit-scrollbar-thumb {
    border: 2px solid #f2f2f2;
    border-radius: 999px;
    background: #b9b9b9;
}
.finalist-modal-content {
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 40px 46px 48px;
    text-align: left;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}
.finalist-modal-content .section-eyebrow {
    margin-bottom: 10px;
}
.finalist-modal-name {
    margin: 0 48px 8px 0 !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.08;
    color: var(--top10-dark);
}
.finalist-modal-role {
    margin: 0 0 16px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: var(--top10-muted);
    text-align: left !important;
}
.finalist-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.finalist-modal-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--tln-red-100);
    font-family: "Montserrat", sans-serif !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: var(--tln-red-700);
}
.finalist-modal-bio p,
section.section .finalist-modal-bio p {
    max-width: none;
    margin: 0 0 1rem !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #444;
    text-align: left !important;
}
.finalist-modal-bio p:last-child {
    margin-bottom: 0 !important;
}
.finalist-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--tln-red-500);
    font-size: 27px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
}
.finalist-modal-close:hover {
    background: var(--tln-red-600);
}
body.finalist-modal-open {
    overflow: hidden;
}
@media (max-width: 1100px) {
    .finalists-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .finalists-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .finalist-card-content {
        padding: 16px;
    }
    .finalist-card-name {
        font-size: 18px;
    }
    .finalist-modal {
        padding: 14px;
    }
    .finalist-modal-dialog {
        display: block;
        width: min(620px, 100%);
        height: auto;
        max-height: 92vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .finalist-modal-image-wrap {
        width: 100%;
        height: auto;
        max-height: none;
        padding: 18px 18px 0;
        background: #ececec;
    }
    .finalist-modal-image {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 360px;
        margin: 0 auto;
        object-fit: contain;
        object-position: top center;
        border-radius: 10px;
    }
    .finalist-modal-content {
        height: auto;
        overflow: visible;
        padding: 26px 22px 34px;
    }
}
@media (max-width: 580px) {
    .gala-finalists-section {
        overflow: hidden;
    }
    .gala-finalists-section .content-wrapper {
        overflow: visible;
    }
    .gala-finalists-section .section-heading {
        padding-left: 2px;
        padding-right: 2px;
    }
    .finalists-grid {
        display: flex;
        gap: 14px;
        margin-top: 30px;
        margin-right: -22px;
        margin-left: -22px;
        padding:
            4px
            22px
            20px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 22px;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .finalists-grid::-webkit-scrollbar {
        display: none;
    }
    .finalist-card {
        flex:
            0
            0
            min(82vw, 330px);
        width:
            min(82vw, 330px);
        max-width: none;
        margin: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    .finalist-card-image {
        aspect-ratio: 4 / 4.6;
    }
    .finalist-card-content {
        padding: 16px;
    }
    .finalist-card-role {
        display: -webkit-box;
        min-height: 42px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .finalist-card-meta {
        margin-bottom: 14px;
    }
}


/* One unified 2026 finalists/recipients grid - no dark banner and no second winners section. */
.top10-finalists-page .gala-finalists-section {
    padding: clamp(48px, 6vw, 84px) 24px clamp(65px, 7vw, 98px);
    background: #f6f6f6;
}
.top10-finalists-page .finalists-content-heading { max-width: 850px; }
.top10-finalists-page .finalists-content-heading .header-title {
    margin-bottom: 16px !important;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
}
.top10-finalists-page .top10-unified-finalists-grid {
    grid-auto-rows: 1fr;
    align-items: stretch;
    margin-top: 32px;
}
.top10-finalists-page .top10-unified-finalist-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.top10-finalists-page .top10-unified-finalist-card .finalist-card-image { flex-shrink: 0; }
.top10-finalists-page .top10-unified-finalist-card .finalist-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.top10-finalists-page .top10-unified-finalist-card .finalist-card-name {
    font-size: clamp(16px, 1.65vw, 19px);
    line-height: 1.25;
}
.top10-finalists-page .top10-unified-finalist-card .finalist-card-role {
    font-size: 12px !important;
    min-height: 3.3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.top10-finalists-page .top10-unified-finalist-card .finalist-card-meta { margin-top: auto; }
.top10-finalists-page .top10-unified-finalist-card .finalist-bio-button { margin-top: 0; }
.top10-finalists-page .top10-finalists-award-badge {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 1;
    display: inline-flex;
    max-width: calc(100% - 22px);
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    font: 800 9px/1.2 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: .045em;
    white-space: normal;
}
.top10-finalists-page .top10-finalists-award-badge.is-recipient { background: #e02419; }
.top10-finalists-page .top10-finalists-award-badge.is-nominee { background: #414141; }
.top10-finalists-page .top10-finalists-award-badge.is-finalist { background: #414141; }
.top10-finalists-page .top10-profile-modal-video { margin: 8px 0 25px; }
.top10-finalists-page .top10-profile-modal-video[hidden] { display: none !important; }
.top10-finalists-page .top10-profile-modal-video iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 10px;
    background: #171717;
}
@media (max-width: 580px) {
    .top10-finalists-page .gala-finalists-section { padding: 40px 20px 65px; }
    .top10-finalists-page .top10-unified-finalists-grid { align-items: stretch; }
    .top10-finalists-page .top10-unified-finalist-card { height: auto; align-self: stretch; }
    .top10-finalists-page .top10-unified-finalist-card .finalist-card-role { min-height: 3em; }
}
