/* Homepage Spotlight, scoped to the approved two-column design. */
.fdc-home-events .fdc-spotlight {
    --sp-ink: #132d3e;
    --sp-muted: #49636f;
    --sp-border: #d8e5e9;
    --sp-teal: #0b656d;
    --sp-radius: 14px;
    --sp-band: #fdf7e5;
    margin: 0 0 28px;
    padding: clamp(20px, 2.6vw, 34px) 0;
    background: var(--sp-band);
    color: var(--sp-ink);
    text-align: left;
}
/* Extend the band across the viewport while keeping the cards aligned with the page. */
.podium-events .fdc-home-events > .fdc-spotlight {
    order: -3;
    box-shadow: 0 0 0 100vmax var(--sp-band);
    clip-path: inset(0 -100vmax);
}
body.home .podium-events:has(.fdc-spotlight) { padding-top: 0; }
.fdc-spotlight [hidden] { display: none !important; }
.fdc-spotlight :is(h2, h3, h4, p, ol, ul) { margin: 0; }
.fdc-spotlight :is(button, summary) { font-family: inherit; }
.fdc-spotlight :is(a, button, summary):focus-visible { outline: 2px solid #08757d; outline-offset: 2px; }
.fdc-spotlight .fdc-sp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 14px;
    margin-bottom: 12px;
}
.fdc-home-events .fdc-spotlight .fdc-sp-head h2 {
    margin: 0;
    color: var(--sp-ink);
    font-size: clamp(25px, 3vw, 36px);
    letter-spacing: -.035em;
    line-height: 1.12;
}
.fdc-spotlight .fdc-sp-columns { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 11px; }
.fdc-spotlight .fdc-sp-column { display: grid; align-content: start; gap: 11px; min-width: 0; }
.fdc-spotlight .fdc-sp-panel { padding: 11px 13px; min-width: 0; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); background: #fff; }
.fdc-spotlight .fdc-sp-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin-bottom: 5px; }
.fdc-spotlight :is(.fdc-sp-panel-head, .fdc-sp-personal) h3 { color: var(--sp-ink); font-size: 16px; font-weight: 800; line-height: 1.2; }
.fdc-spotlight .fdc-sp-note { color: var(--sp-muted); font-size: 12px; line-height: 1.4; }

.fdc-spotlight .fdc-sp-monthly {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 207px;
    min-width: 0;
    padding: 13px 14px;
    border-radius: var(--sp-radius);
    color: #fff;
    background: linear-gradient(90deg, #041d33e9, #062b43a8 58%, #062b4338), url('fdc-spotlight-ocean.webp') 68% 44% / cover no-repeat, #092f43;
}
.fdc-spotlight .fdc-sp-monthly h3 { color: #b8f4ef; font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.fdc-spotlight .fdc-sp-monthly p { color: #e3f2f6; font-size: 13px; }
.fdc-spotlight .fdc-sp-monthly :is(a, button):focus-visible { outline-color: #b8f4ef; }
.fdc-spotlight .fdc-sp-slide { display: grid; gap: 5px; justify-items: start; min-width: 0; }
.fdc-spotlight .fdc-sp-feature { display: contents; }
.fdc-spotlight .fdc-sp-feature-photo { display: block; flex: none; }
.fdc-spotlight .fdc-sp-record-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; color: #ddf3f6; font-size: 12px; }
.fdc-spotlight .fdc-sp-record { padding: 2px 7px; border-radius: 5px; background: #a9efdf; color: #06343a; font-weight: 800; }
.fdc-spotlight .fdc-sp-mark { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; }
.fdc-spotlight .fdc-sp-mark strong { color: #fff; font-size: clamp(36px, 5vw, 58px); line-height: .98; letter-spacing: -.043em; }
.fdc-spotlight .fdc-sp-mark span { color: #c9f4ef; font-size: 12px; font-weight: 700; }
.fdc-spotlight .fdc-sp-monthly-footer { display: flex; width: 100%; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
.fdc-spotlight .fdc-sp-monthly-footer > span { flex: 1 1 155px; color: #e4f1f6; font-size: 12px; overflow-wrap: anywhere; }
.fdc-spotlight .fdc-sp-monthly-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; max-width: 100%; }
.fdc-spotlight .fdc-sp-controls, .fdc-spotlight .fdc-sp-periods { display: flex; flex-wrap: wrap; gap: 4px; }
.fdc-spotlight :is(.fdc-sp-controls, .fdc-sp-periods) button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 33px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #edf5f6;
    color: #365b68;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    cursor: pointer;
}
.fdc-spotlight .fdc-sp-controls button { background: #082d46; border-color: #8bd5d6; color: #eaffff; }
.fdc-spotlight .fdc-sp-controls button[aria-pressed="true"] { background: #b4f1eb; border-color: #b4f1eb; color: #07383d; }
.fdc-spotlight .fdc-sp-periods button[aria-pressed="true"] { background: #dcf1ed; border-color: #bcddd6; color: #0a535d; }
.fdc-spotlight .fdc-sp-action, .fdc-spotlight .fdc-sp-monthly .fdc-result-video-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    height: auto;
    min-height: 34px;
    padding: 5px 8px;
    border: 1px solid #c4dde1;
    border-radius: 7px;
    background: #f1faf9;
    color: #0a5561;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}
.fdc-spotlight .fdc-sp-monthly-actions .fdc-sp-action { min-height: 40px; }
/* Override the shared icon-only video control for the labeled Spotlight action. */
.fdc-spotlight .fdc-sp-monthly .fdc-result-video-button {
    height: auto !important;
    min-height: 44px !important;
    padding: 6px 12px !important;
    border: 1px solid #a0f3dd !important;
    border-radius: 8px !important;
    background: #a0f3dd !important;
    color: #06363a !important;
    box-shadow: 0 0 0 2px #a0f3dd33 !important;
    font-size: 13px;
}
.fdc-spotlight .fdc-sp-monthly .fdc-result-video-icon { width: 20px; height: 20px; }
.fdc-spotlight .fdc-sp-action:hover { background: #baf0e8; }
.fdc-spotlight .fdc-sp-monthly .fdc-result-video-button:hover { background: #c5f9ed !important; }
.fdc-spotlight .fdc-sp-monthly .fdc-result-video-button:focus-visible { outline: 2px solid #b8f4ef; }

.fdc-spotlight .fdc-sp-list { list-style: none; padding: 0; margin: 0; }
.fdc-spotlight .fdc-sp-list > li { margin: 0; }
.fdc-spotlight .fdc-sp-list > li + li { border-top: 1px solid #e5edf0; }
.fdc-spotlight .fdc-sp-athlete {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 5px;
    color: var(--sp-ink);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.22;
}
.fdc-spotlight .fdc-sp-monthly .fdc-sp-athlete { color: #fff; }
.fdc-spotlight .fdc-sp-athlete strong { min-width: 0; overflow-wrap: anywhere; }
.fdc-spotlight .fdc-sp-avatar,
.fdc-spotlight .fdc-sp-flag { display: block; flex: none; margin: 0; object-fit: cover; }
.fdc-spotlight .fdc-sp-avatar { width: 29px; height: 29px; border-radius: 50%; background: #d9ecee; box-shadow: 0 0 0 1px #54778335; }
.fdc-spotlight .fdc-sp-flag { width: 15px; height: 11px; border-radius: 2px; }
.fdc-spotlight .fdc-sp-personal .fdc-sp-avatar { width: 39px; height: 39px; }
.fdc-spotlight .fdc-sp-recent-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 5px 0; }
.fdc-spotlight .fdc-sp-recent-row .fdc-sp-note { padding-left: 34px; margin-top: -5px; }
.fdc-spotlight .fdc-sp-result-link { display: grid; text-align: right; color: var(--sp-teal); font-size: 12px; text-decoration: none; line-height: 1.3; }
.fdc-spotlight .fdc-sp-result-link strong { font-size: 14px; }
.fdc-spotlight :is(.fdc-sp-athlete, .fdc-sp-result-link):hover { text-decoration: underline; }
.fdc-spotlight .fdc-sp-more { margin-top: 3px; }
.fdc-spotlight .fdc-sp-more summary { display: list-item; width: fit-content; max-width: 100%; color: var(--sp-teal); font-size: 12px; font-weight: 750; cursor: pointer; }

.fdc-spotlight .fdc-sp-rank-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.fdc-spotlight .fdc-sp-rank-group { min-width: 0; }
.fdc-spotlight .fdc-sp-rank-group h4 { margin-bottom: 3px; color: #436071; font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.fdc-spotlight .fdc-sp-rank-row { display: flex; align-items: center; gap: 4px; padding: 4px 0; min-width: 0; }
.fdc-spotlight .fdc-sp-rank-row .fdc-sp-athlete { flex: 1; font-size: 12px; }
.fdc-spotlight .fdc-sp-rank-position { color: var(--sp-teal); font-size: 11px; font-weight: 800; }
.fdc-spotlight .fdc-sp-points { flex: none; color: #335761; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.fdc-spotlight .fdc-sp-country { position: relative; isolation: isolate; overflow: hidden; background: #e6f2e5; border-color: #ccdcca; }
.fdc-spotlight .fdc-sp-country-art {
    position: absolute;
    z-index: -1;
    top: -17px;
    right: -14px;
    width: min(47%, 200px);
    height: 115px;
    object-fit: cover;
    opacity: .24;
    transform: rotate(-8deg);
    -webkit-mask-image: linear-gradient(240deg, #000 12%, #000a 40%, transparent 82%);
    mask-image: linear-gradient(240deg, #000 12%, #000a 40%, transparent 82%);
    pointer-events: none;
}
.fdc-spotlight .fdc-sp-country-name {
    padding: 3px 8px;
    border-radius: 5px;
    background: #f3faf3;
    color: #26554c;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 750;
}
.fdc-spotlight .fdc-sp-country-link { display: inline-block; margin-top: 3px; color: #0a5f55; font-size: 12px; font-weight: 800; }
.fdc-spotlight .fdc-sp-personal {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 11px;
    gap: 5px 9px;
    padding: 9px 11px;
    border: 1px solid #badfd4;
    border-radius: var(--sp-radius);
    background: #d8eee9;
}
.fdc-spotlight .fdc-sp-personal-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 7px; color: var(--sp-muted); font-size: 12px; line-height: 1.4; }
.fdc-spotlight .fdc-sp-personal-meta strong { color: #115c62; }
.fdc-spotlight .fdc-sp-pb { padding: 1px 4px; border-radius: 5px; background: #eaf7df; color: #205b3e; font-size: 11px; font-weight: 750; }

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    .fdc-spotlight .fdc-sp-columns {
        grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
        grid-template-areas: "monthly rankings" "latest latest";
        gap: 12px;
    }
    .fdc-spotlight .fdc-sp-columns > .fdc-sp-column:first-child { display: contents; }
    .fdc-spotlight .fdc-sp-columns > .fdc-sp-column:nth-child(2) {
        grid-area: rankings;
        align-content: stretch;
    }
    .fdc-spotlight .fdc-sp-monthly { grid-area: monthly; align-content: space-between; }
    .fdc-spotlight .fdc-sp-slide { gap: 8px; }
    .fdc-spotlight .fdc-sp-feature {
        --sp-portrait-width: clamp(106px, 9.5vw, 128px);
        position: relative;
        display: grid;
        align-content: center;
        justify-items: start;
        gap: 6px;
        width: 100%;
        min-height: calc(var(--sp-portrait-width) * 1.2);
        padding-inline-end: calc(var(--sp-portrait-width) + 16px);
        box-sizing: border-box;
    }
    .fdc-spotlight .fdc-sp-feature .fdc-sp-athlete { position: static; font-size: 15px; }
    .fdc-spotlight .fdc-sp-feature-photo {
        position: absolute;
        inset-block-start: 50%;
        inset-inline-end: 0;
        width: var(--sp-portrait-width);
        aspect-ratio: 5 / 6;
        transform: translateY(-50%);
        overflow: hidden;
        border: 1px solid #b9e3e8a6;
        border-radius: 9px;
        box-sizing: border-box;
        background: #195269;
        box-shadow: 0 3px 12px #081f2b69;
    }
    .fdc-spotlight .fdc-sp-feature-photo .fdc-sp-avatar {
        width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
    }
    .fdc-spotlight .fdc-sp-feature .fdc-sp-athlete:focus-visible .fdc-sp-feature-photo {
        outline: 2px solid #b8f4ef;
        outline-offset: 2px;
    }
    .fdc-spotlight .fdc-sp-latest { grid-area: latest; }
    .fdc-spotlight .fdc-sp-latest > .fdc-sp-list {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
    }
    .fdc-spotlight .fdc-sp-latest > .fdc-sp-list > li:not(:last-child) { padding-inline-end: 12px; }
    .fdc-spotlight .fdc-sp-latest > .fdc-sp-list > li + li {
        border-top: 0;
        border-inline-start: 1px solid #e5edf0;
        padding-inline-start: 12px;
    }
}
@media (max-width: 760px) {
    .fdc-spotlight .fdc-sp-columns { grid-template-columns: minmax(0, 1fr); }
    .fdc-home-events .fdc-spotlight { margin-bottom: 18px; }
}
@media (max-width: 550px) {
    .fdc-spotlight .fdc-sp-rank-row { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; }
    .fdc-spotlight .fdc-sp-rank-row :is(.fdc-sp-rank-position, .fdc-sp-flag) { display: none; }
    .fdc-spotlight .fdc-sp-rank-row .fdc-sp-points { padding-left: 34px; }
    .fdc-spotlight .fdc-sp-personal { gap: 5px 7px; padding-inline: 8px; }
    .fdc-spotlight .fdc-sp-personal .fdc-sp-avatar { width: 32px; height: 32px; }
    .fdc-spotlight .fdc-sp-personal h3 { font-size: 14px; }
}
@media (max-width: 360px) {
    .fdc-spotlight .fdc-sp-panel, .fdc-spotlight .fdc-sp-monthly { padding-inline: 9px; }
    .fdc-spotlight .fdc-sp-personal h3 { overflow-wrap: anywhere; }
    .fdc-spotlight .fdc-sp-personal .fdc-sp-action { grid-column: 2; justify-self: start; }
}
@media (pointer: coarse) {
    .fdc-spotlight :is(.fdc-sp-action, .fdc-sp-monthly-actions .fdc-sp-action, .fdc-sp-controls button, .fdc-sp-periods button) { min-height: 44px; }
    .fdc-spotlight .fdc-sp-more summary { min-height: 44px; align-content: center; }
}
