:root {
    --page-width: 1480px;
    --background: #08111d;
    --surface: #0f1b2a;
    --surface-raised: #142235;
    --surface-soft: #192a40;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.15);
    --text: #f3f6fa;
    --muted: #9aabbe;
    --accent: #f2b84b;
    --accent-strong: #ffd27a;
    --afc: #df5a5a;
    --nfc: #5c8ee6;
    --success: #5ac9a4;
    --warning: #f2b84b;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    font-weight: 400;
    line-height: 1.55;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

strong,
b {
    font-weight: 600;
}

.page-shell {
    width: min(calc(100% - 2rem), var(--page-width));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.5rem;
    left: 0.5rem;
    transform: translateY(-150%);
    border-radius: 0.55rem;
    padding: 0.7rem 1rem;
    background: white;
    color: black;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 17, 29, 0.9);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand__mark {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(242, 184, 75, 0.45);
    border-radius: 0.8rem;
    background: rgba(242, 184, 75, 0.12);
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-weight: 600;
}

.brand small {
    color: var(--muted);
    font-size: 0.72rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.hero {
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 82% 20%, rgba(92, 142, 230, 0.11), transparent 30rem),
        linear-gradient(180deg, rgba(20, 34, 53, 0.55), rgba(8, 17, 29, 0));
}

.hero__inner {
    display: grid;
    min-height: 300px;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
    align-items: center;
    gap: 3rem;
    padding-block: 3.5rem;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero__summary {
    max-width: 680px;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.eyebrow {
    margin: 0 0 0.55rem;
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.season-chip,
.season-countdown {
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: rgba(15, 27, 42, 0.86);
    box-shadow: var(--shadow);
}

.season-chip {
    display: grid;
    min-height: 180px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.season-chip span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.season-chip strong {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

.season-countdown {
    padding: 1.25rem;
}

.season-countdown__label {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.countdown-grid div {
    display: grid;
    min-width: 0;
    gap: 0.1rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.8rem 0.35rem;
    background: rgba(255, 255, 255, 0.025);
    text-align: center;
}

.countdown-grid span {
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-grid small {
    color: var(--muted);
    font-size: 0.64rem;
    text-transform: uppercase;
}

.season-countdown__date,
.season-countdown__started {
    display: block;
    margin: 0.8rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.section-block {
    padding-block: 3rem;
}

.section-block--compact {
    padding-top: 1.25rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.section-heading--scoreboard {
    align-items: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.section-note {
    max-width: 500px;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: right;
}

.data-notice {
    display: flex;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(242, 184, 75, 0.3);
    border-radius: 0.85rem;
    padding: 0.78rem 0.95rem;
    background: rgba(242, 184, 75, 0.07);
    color: var(--muted);
    font-size: 0.8rem;
}

.data-notice strong {
    flex: 0 0 auto;
    color: var(--accent-strong);
    font-weight: 600;
}

.data-notice--live {
    border-color: rgba(90, 201, 164, 0.3);
    background: rgba(90, 201, 164, 0.07);
}

.data-notice--live strong {
    color: var(--success);
}

.data-notice--warning {
    border-color: rgba(242, 184, 75, 0.45);
}

.week-selector {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.week-selector label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 500;
}

.week-selector select,
.week-selector button {
    border: 1px solid var(--line-strong);
    border-radius: 0.65rem;
    padding: 0.55rem 0.75rem;
    background: var(--surface-raised);
    color: var(--text);
    font-weight: 500;
}

.scoreboard-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: -0.3rem 0 0.95rem;
    color: var(--muted);
    font-size: 0.74rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(90, 201, 164, 0.28);
    border-radius: 999px;
    padding: 0.36rem 0.65rem;
    background: rgba(90, 201, 164, 0.07);
    color: #bcebdc;
    font-size: 0.74rem;
    font-weight: 500;
}

.status-pill::before {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--success);
    content: "";
}

.empty-panel {
    display: grid;
    min-height: 120px;
    place-content: center;
    gap: 0.3rem;
    border: 1px dashed var(--line-strong);
    border-radius: 1rem;
    padding: 1.25rem;
    background: rgba(15, 27, 42, 0.5);
    color: var(--muted);
    text-align: center;
}

.empty-panel strong {
    color: var(--text);
    font-weight: 600;
}

.empty-panel code {
    color: var(--accent-strong);
}

.scoreboard,
.preseason-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    width: 100%;
}

.scoreboard {
    overflow-x: clip;
    overflow-y: visible;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    padding: 0.85rem;
    background: rgba(15, 27, 42, 0.55);
}

.game-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 0.95rem;
    background: var(--surface);
    transition: border-color 150ms ease, background 150ms ease;
}

.game-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-raised);
}

.game-card--preseason {
    background: rgba(20, 34, 53, 0.72);
}

.game-card__status {
    margin-bottom: 0.65rem;
    color: var(--accent-strong);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.game-card__team {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 1.08rem;
}

.game-card__team strong {
    font-weight: 600;
}

.game-card__team span {
    font-variant-numeric: tabular-nums;
}

.game-card__team strong,
.game-card__team span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.game-card__footer {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.7rem;
    color: var(--muted);
    font-size: 0.7rem;
}

.game-card__footer time {
    margin: 0;
}

.game-card__footer span {
    color: #c6d2df;
    font-weight: 500;
}

.game-card--live {
    border-color: rgba(90, 201, 164, 0.55);
}

.game-card--live .game-card__status {
    color: var(--success);
}

.conference-stack {
    display: grid;
    gap: 1.15rem;
}

.conference-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: rgba(15, 27, 42, 0.65);
}

.conference-panel__header {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1rem;
}

.conference-panel__header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.conference-panel__header span {
    color: var(--muted);
    font-size: 0.78rem;
}

.conference-panel--afc .conference-panel__header {
    box-shadow: inset 4px 0 0 var(--afc);
}

.conference-panel--nfc .conference-panel__header {
    box-shadow: inset 4px 0 0 var(--nfc);
}

.division-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 1px;
    background: var(--line);
}

.division-card {
    min-width: 0;
    background: var(--surface);
}

.division-card__header {
    display: grid;
    min-height: 50px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.7rem;
    border-bottom: 1px solid var(--line);
    padding: 0.72rem;
    background: rgba(255, 255, 255, 0.02);
}

.division-card__header h4 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.standing-columns,
.team-record {
    display: grid;
    grid-template-columns: repeat(3, 1.55rem);
    gap: 0.22rem;
    text-align: center;
}

.standing-columns {
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 500;
}

.team-item + .team-item {
    border-top: 1px solid var(--line);
}

.team-row {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    border: 0;
    padding: 0.7rem 0.72rem;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.team-row:hover,
.team-row:focus-visible,
.team-row[aria-expanded="true"] {
    background: var(--surface-soft);
}

.team-row:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.team-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.58rem;
}

.team-identity strong,
.team-identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-identity strong {
    font-size: 0.86rem;
    font-weight: 550;
}

.team-identity small {
    color: var(--muted);
    font-size: 0.66rem;
}

.team-badge {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 0.62rem;
    background: rgba(8, 17, 29, 0.8);
    color: var(--accent-strong);
    font-size: 0.64rem;
    font-weight: 600;
}

.team-record {
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.team-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.62rem;
    border-top: 1px solid var(--line);
    padding: 0.82rem;
    background: rgba(8, 17, 29, 0.62);
}

.team-details[hidden] {
    display: none;
}

.team-details div {
    display: grid;
}

.team-details span {
    color: var(--muted);
    font-size: 0.64rem;
}

.team-details strong {
    font-size: 0.8rem;
    font-weight: 550;
}

.team-details__next,
.team-link {
    grid-column: 1 / -1;
}

.team-link {
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
}

.team-link:hover,
.team-link:focus-visible {
    text-decoration: underline;
}

.previous-scores {
    border-block: 1px solid var(--line);
    background: #060d17;
}

.ticker {
    overflow: hidden;
    white-space: nowrap;
}

.ticker__track {
    display: inline-flex;
    min-width: 100%;
    gap: 2.25rem;
    padding-block: 0.82rem;
    animation: score-ticker 42s linear infinite;
}

.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
    animation-play-state: paused;
}

.ticker__item {
    color: #d7e0ea;
    font-size: 0.8rem;
}

.ticker__item strong {
    margin-right: 0.35rem;
    color: var(--success);
    font-weight: 600;
}

.ticker--empty {
    padding-block: 0.82rem;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

@keyframes score-ticker {
    from { transform: translateX(8vw); }
    to { transform: translateX(-100%); }
}

.news-source-status {
    display: grid;
    justify-items: end;
    gap: 0.15rem;
    color: var(--muted);
    font-size: 0.7rem;
    text-align: right;
}

.news-source-status strong {
    color: var(--success);
    font-size: 0.76rem;
    font-weight: 550;
}

.news-source-status--warning strong {
    color: var(--accent-strong);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.news-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    background: var(--surface);
}

.news-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--surface-raised);
}

.news-card__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.news-card__meta {
    margin: 0 0 0.55rem;
    color: var(--accent-strong);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 550;
    line-height: 1.35;
}

.news-card h3 a {
    text-decoration: none;
}

.news-card h3 a:hover,
.news-card h3 a:focus-visible {
    text-decoration: underline;
}

.news-card__summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.9rem;
}

.news-team-tag {
    border: 1px solid rgba(90, 201, 164, 0.28);
    border-radius: 999px;
    padding: 0.22rem 0.5rem;
    background: rgba(90, 201, 164, 0.07);
    color: var(--success);
    font-size: 0.65rem;
    font-weight: 550;
    text-decoration: none;
}

.news-team-tag:hover,
.news-team-tag:focus-visible {
    border-color: var(--success);
}

.team-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.team-summary-card {
    display: grid;
    gap: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 0.95rem;
    background: var(--surface);
}

.team-summary-card span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
}

.team-summary-card strong {
    font-size: 1.25rem;
    font-weight: 600;
}

.team-schedule-list {
    display: grid;
    gap: 0.7rem;
}

.team-schedule-row {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.82rem;
    padding: 0.8rem 0.95rem;
    background: var(--surface);
}

.team-schedule-row small {
    display: block;
    color: var(--muted);
}

.team-schedule-row__score {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.team-schedule-row__status {
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 550;
    text-transform: uppercase;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 1.8rem;
    background: #060d17;
    color: var(--muted);
    font-size: 0.75rem;
}

.site-footer .page-shell {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #cbd6e1;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

@media (max-width: 1180px) {
    .scoreboard,
    .preseason-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .division-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .season-countdown {
        max-width: 560px;
    }

    .scoreboard,
    .preseason-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer .page-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(calc(100% - 1rem), var(--page-width));
    }

    .site-header__inner {
        min-height: 64px;
    }

    .brand small {
        display: none;
    }

    .site-nav {
        gap: 0.65rem;
    }

    .site-nav a {
        font-size: 0.75rem;
    }

    .site-nav a:first-child,
    .site-nav a:nth-child(2) {
        display: none;
    }

    .hero__inner {
        min-height: 0;
        padding-block: 2.5rem;
    }

    .section-block {
        padding-block: 2.2rem;
    }

    .section-block--compact {
        padding-top: 0.75rem;
    }

    .section-heading,
    .data-notice,
    .scoreboard-meta,
    .week-selector {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-note,
    .news-source-status {
        justify-items: start;
        text-align: left;
    }

    .week-selector select {
        width: 100%;
    }

    .scoreboard,
    .preseason-grid,
    .division-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .scoreboard {
        padding: 0.6rem;
    }

    .conference-panel__header span {
        display: none;
    }

    .team-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-schedule-row {
        grid-template-columns: 1fr auto;
    }

    .team-schedule-row__status {
        grid-column: 1 / -1;
    }

    .ticker__track {
        animation: none;
        white-space: normal;
        flex-wrap: wrap;
        gap: 0.5rem 1.1rem;
    }
}

@media (max-width: 480px) {
    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-schedule-row {
        grid-template-columns: 1fr;
    }

    .team-schedule-row__status {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ticker__track {
        animation: none;
    }

    .game-card {
        transition: none;
    }
}


/* Milestone 5.1 — lighter typography and refined interface */
:root {
    --page-width: 1420px;
    --background: #0a1220;
    --surface: #101b2a;
    --surface-raised: #152235;
    --surface-soft: #19283b;
    --line: rgba(230, 237, 245, 0.085);
    --line-strong: rgba(230, 237, 245, 0.16);
    --text: #edf2f7;
    --muted: #9cacbd;
    --accent: #e9b65a;
    --accent-strong: #f2c977;
    --shadow: none;
}

body {
    letter-spacing: -0.004em;
}

strong,
b {
    font-weight: 500;
}

.site-header {
    background: rgba(10, 18, 32, 0.88);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025);
}

.site-header__inner {
    min-height: 64px;
}

.brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 0.72rem;
    font-weight: 600;
}

.brand strong {
    font-weight: 520;
    letter-spacing: -0.015em;
}

.site-nav a {
    border-radius: 999px;
    padding: 0.42rem 0.66rem;
    font-weight: 450;
    transition: background 150ms ease, color 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.055);
    text-decoration: none;
}

.hero {
    background:
        radial-gradient(circle at 86% 10%, rgba(92, 142, 230, 0.095), transparent 28rem),
        linear-gradient(180deg, rgba(21, 34, 53, 0.42), rgba(10, 18, 32, 0));
}

.hero__inner {
    min-height: 260px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 2.5rem;
    padding-block: 2.8rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.9rem);
    font-weight: 560;
    letter-spacing: -0.042em;
}

.hero__summary {
    max-width: 640px;
    font-size: clamp(0.96rem, 1.5vw, 1.08rem);
}

.eyebrow {
    color: #d9b872;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.season-countdown {
    border-radius: 1rem;
    background: rgba(16, 27, 42, 0.72);
}

.countdown-grid div {
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.018);
}

.countdown-grid span {
    font-weight: 520;
}

.section-block {
    padding-block: 2.65rem;
}

.section-heading {
    margin-bottom: 1.05rem;
}

.section-heading h2 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 540;
    letter-spacing: -0.025em;
}

.data-notice {
    border-radius: 0.72rem;
    background: rgba(242, 184, 75, 0.045);
}

.data-notice strong,
.data-notice--live strong {
    font-weight: 500;
}

.week-selector label,
.week-selector select,
.week-selector button,
.status-pill {
    font-weight: 450;
}

.week-selector select,
.week-selector button {
    border-radius: 0.72rem;
    background: rgba(21, 34, 53, 0.88);
}

.scoreboard,
.conference-panel {
    border-radius: 1rem;
    background: rgba(16, 27, 42, 0.55);
}

.game-card {
    border-radius: 0.82rem;
    background: rgba(16, 27, 42, 0.84);
    transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.game-card:hover {
    transform: translateY(-1px);
}

.game-card__status {
    font-weight: 500;
    letter-spacing: 0.055em;
}

.game-card__team strong {
    font-weight: 520;
}

.conference-panel__header h3 {
    font-weight: 520;
}

.division-card__header h4 {
    font-weight: 500;
}

.team-identity strong,
.team-details strong,
.team-badge {
    font-weight: 500;
}

.team-row {
    padding-block: 0.74rem;
}

.team-row:hover,
.team-row:focus-visible,
.team-row[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.045);
}

.ticker__item strong {
    font-weight: 500;
}

.news-source-status__health {
    color: var(--success);
    font-size: 0.76rem;
    font-weight: 500;
}

.news-source-status--warning .news-source-status__health {
    color: var(--accent-strong);
}

.news-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem 0.9rem;
    flex-wrap: wrap;
    margin: -0.15rem 0 1rem;
    border-block: 1px solid var(--line);
    padding-block: 0.8rem;
}

.news-toolbar[hidden] {
    display: none;
}

.news-toolbar__label,
.news-results {
    color: var(--muted);
    font-size: 0.72rem;
}

.news-results {
    margin-left: auto;
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.news-filter {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.38rem 0.68rem;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 450;
}

.news-filter:hover,
.news-filter:focus-visible {
    border-color: var(--line-strong);
    color: var(--text);
}

.news-filter.is-active {
    border-color: rgba(242, 201, 119, 0.38);
    background: rgba(242, 201, 119, 0.09);
    color: var(--accent-strong);
}

.news-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.78rem;
}

.news-card {
    border-radius: 0.82rem;
    background: rgba(16, 27, 42, 0.78);
    transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.news-card:hover {
    border-color: var(--line-strong);
    background: rgba(21, 34, 53, 0.86);
    transform: translateY(-1px);
}

.news-card[hidden] {
    display: none;
}

.news-card__body {
    padding: 0.95rem;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 0.36rem;
    color: var(--muted);
    font-weight: 450;
    letter-spacing: 0.02em;
    text-transform: none;
}

.news-card__source {
    color: var(--accent-strong);
}

.news-card h3 {
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.42;
}

.news-card h3 a:hover,
.news-card h3 a:focus-visible {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.news-team-tag {
    font-weight: 500;
}

.empty-panel strong,
.team-summary-card strong,
.team-schedule-row__score,
.team-schedule-row__status {
    font-weight: 500;
}

@media (max-width: 1180px) {
    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .hero__inner {
        padding-block: 2.25rem;
    }

    .news-toolbar {
        align-items: flex-start;
    }

    .news-toolbar__label,
    .news-results {
        width: 100%;
    }

    .news-results {
        margin-left: 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}


/* Milestone 5.9 — return to Milestone 5.1 dark theme with new logo */
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 17, 29, 0.92);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    min-height: 82px;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0;
    text-decoration: none;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.brand:hover,
.brand:focus-visible {
    background: transparent;
}

.brand__logo {
    display: block;
    width: clamp(290px, 30vw, 445px);
    max-height: 62px;
    height: auto;
    object-fit: contain;
    object-position: left center;
    mix-blend-mode: screen;
    filter: brightness(1.15) saturate(1.08);
}

.site-nav a {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    background: transparent;
}

@media (max-width: 900px) {
    .brand__logo {
        width: clamp(235px, 42vw, 340px);
        max-height: 56px;
    }
}

@media (max-width: 720px) {
    .site-header__inner {
        min-height: 72px;
    }

    .brand__logo {
        width: clamp(200px, 54vw, 285px);
        max-height: 50px;
    }
}


/* Milestone 5.10 — brighter dark-theme logo and remove data status box */
.brand__logo {
    filter: brightness(1.42) saturate(1.22) contrast(1.08);
    mix-blend-mode: screen;
}


/* Milestone 5.14 — no-blob brighter header logo */
.brand__logo {
    display: block;
    width: clamp(300px, 30vw, 455px);
    max-height: 64px;
    height: auto;
    object-fit: contain;
    object-position: left center;
    mix-blend-mode: screen;
    filter: brightness(1.08) saturate(1.06);
}

@media (max-width: 900px) {
    .brand__logo {
        width: clamp(240px, 42vw, 350px);
        max-height: 58px;
    }
}

@media (max-width: 720px) {
    .brand__logo {
        width: clamp(205px, 54vw, 295px);
        max-height: 52px;
    }
}


/* Milestone 5.15 — gold header logo */
.brand__logo {
    display: block;
    width: clamp(300px, 30vw, 455px);
    max-height: 64px;
    height: auto;
    object-fit: contain;
    object-position: left center;
    mix-blend-mode: normal;
    filter: none;
}

@media (max-width: 900px) {
    .brand__logo {
        width: clamp(240px, 42vw, 350px);
        max-height: 58px;
    }
}

@media (max-width: 720px) {
    .brand__logo {
        width: clamp(205px, 54vw, 295px);
        max-height: 52px;
    }
}


/* Milestone 5.16 — transparent gold logo, no gray panel */
.brand {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand__logo {
    display: block;
    width: clamp(300px, 30vw, 455px);
    max-height: 64px;
    height: auto;
    object-fit: contain;
    object-position: left center;
    mix-blend-mode: normal;
    filter: none;
}

@media (max-width: 900px) {
    .brand__logo {
        width: clamp(240px, 42vw, 350px);
        max-height: 58px;
    }
}

@media (max-width: 720px) {
    .brand__logo {
        width: clamp(205px, 54vw, 295px);
        max-height: 52px;
    }
}


/* Milestone 5.17 — mobile-friendly layout, option 1: simple wrapping navigation */
@media (max-width: 980px) {
    .site-header {
        position: sticky;
    }

    .site-header__inner {
        min-height: auto;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.65rem 1rem;
        padding-block: 0.7rem;
    }

    .brand {
        flex: 1 1 100%;
        justify-content: center;
    }

    .brand__logo {
        width: min(82vw, 360px);
        max-height: 58px;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        gap: 0.35rem;
        overflow-x: auto;
        padding-bottom: 0.1rem;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav a {
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 0.42rem 0.72rem;
        background: rgba(255, 255, 255, 0.035);
        color: var(--text);
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        border-color: var(--line-strong);
        background: rgba(255, 255, 255, 0.07);
    }

    .hero__inner {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-block: 2.25rem;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.25rem);
    }

    .hero__summary {
        max-width: 100%;
        font-size: 1rem;
    }

    .season-countdown {
        max-width: 100%;
    }

    .section-heading,
    .section-heading--scoreboard {
        align-items: flex-start;
        gap: 1rem;
    }

    .section-heading--scoreboard {
        flex-direction: column;
    }

    .week-selector {
        width: 100%;
        align-items: stretch;
    }

    .week-selector select,
    .week-selector button {
        width: 100%;
        min-height: 44px;
    }

    .scoreboard,
    .preseason-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .conference-panel__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .division-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-details__grid {
        grid-template-columns: 1fr;
    }

    .previous-scores {
        padding-block: 0.75rem;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(calc(100% - 1.15rem), var(--page-width));
    }

    .site-header__inner {
        padding-block: 0.55rem 0.65rem;
    }

    .brand {
        justify-content: center;
    }

    .brand__logo {
        width: min(84vw, 320px);
        max-height: 52px;
    }

    .site-nav {
        justify-content: flex-start;
        padding-inline: 0.15rem;
    }

    .site-nav a {
        padding: 0.4rem 0.64rem;
        font-size: 0.76rem;
    }

    .hero__inner {
        padding-block: 1.9rem;
    }

    .eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .hero h1 {
        font-size: clamp(2rem, 13vw, 2.8rem);
        letter-spacing: -0.04em;
    }

    .season-countdown {
        border-radius: 0.95rem;
        padding: 1rem;
    }

    .countdown-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .countdown-grid div {
        border-radius: 0.68rem;
        padding: 0.68rem 0.22rem;
    }

    .countdown-grid span {
        font-size: clamp(1.3rem, 7vw, 1.75rem);
    }

    .countdown-grid small {
        font-size: 0.56rem;
    }

    .section-block {
        padding-block: 1.75rem;
    }

    .section-heading {
        margin-bottom: 1rem;
    }

    .section-heading h2 {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .section-note {
        width: 100%;
    }

    .scoreboard,
    .preseason-grid,
    .news-grid,
    .division-grid {
        grid-template-columns: 1fr;
    }

    .scoreboard,
    .conference-panel {
        padding: 0.55rem;
    }

    .game-card {
        min-height: auto;
    }

    .game-card__team {
        font-size: 1rem;
    }

    .game-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .conference-panel {
        border-radius: 0.95rem;
    }

    .division-card__header,
    .team-row {
        padding-inline: 0.75rem;
    }

    .team-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.65rem;
    }

    .team-identity {
        min-width: 0;
    }

    .team-identity strong,
    .team-identity small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .standing-columns,
    .team-record {
        gap: 0.48rem;
    }

    .news-toolbar {
        align-items: flex-start;
    }

    .news-filters {
        width: 100%;
    }

    .news-filter {
        min-height: 38px;
    }

    .site-footer .page-shell {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 430px) {
    .brand__logo {
        width: min(88vw, 280px);
        max-height: 48px;
    }

    .site-nav a {
        font-size: 0.72rem;
        padding-inline: 0.58rem;
    }

    .countdown-grid {
        gap: 0.32rem;
    }

    .countdown-grid div {
        padding-block: 0.58rem;
    }

    .week-selector label {
        font-size: 0.68rem;
    }

    .team-row {
        align-items: start;
    }

    .team-record {
        font-size: 0.72rem;
    }
}


/* Milestone 5.23 — preseason week history */
.preseason-note {
    margin: -0.35rem 0 1rem;
}

.game-card__status--labeled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.game-card__status--labeled span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card__status--labeled [data-game-status] {
    flex: 0 0 auto;
}


/* Milestone 5.24 — keep week selectors at their section after GET reload */
#scores,
#preseason {
    scroll-margin-top: 7rem;
}

@media (max-width: 980px) {
    #scores,
    #preseason {
        scroll-margin-top: 10rem;
    }
}

/* Milestone 5.27 — live scoreboard controls and preseason archive */
.scoreboard-controls {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.score-refresh-button {
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 0.7rem;
    padding: 0.62rem 0.9rem;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.score-refresh-button:hover,
.score-refresh-button:focus-visible {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.score-refresh-button:active {
    transform: translateY(1px);
}

.score-refresh-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.preseason-archive {
    border-block: 1px solid var(--line);
}

.preseason-archive__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.25rem;
    cursor: pointer;
    list-style: none;
}

.preseason-archive__summary::-webkit-details-marker {
    display: none;
}

.preseason-archive__heading {
    display: grid;
    gap: 0.3rem;
}

.preseason-archive__heading .eyebrow {
    margin: 0;
}

.preseason-archive__title {
    color: var(--text);
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    font-weight: 650;
    letter-spacing: -0.025em;
}

.preseason-archive__toggle {
    flex: 0 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 0.45rem 0.72rem;
    color: var(--muted);
    font-size: 0.76rem;
}

.preseason-archive [data-preseason-hide] {
    display: none;
}

.preseason-archive[open] [data-preseason-show] {
    display: none;
}

.preseason-archive[open] [data-preseason-hide] {
    display: inline;
}

.preseason-archive__content {
    padding-bottom: 1.5rem;
}

.preseason-archive__toolbar {
    margin-bottom: 1rem;
}

.preseason-archive__toolbar .preseason-note {
    margin: 0;
}

@media (max-width: 720px) {
    .scoreboard-controls {
        width: 100%;
        justify-content: stretch;
        align-items: stretch;
    }

    .scoreboard-controls .week-selector {
        flex: 1 1 100%;
    }

    .score-refresh-button {
        width: 100%;
        min-height: 44px;
    }

    .preseason-archive__summary {
        align-items: flex-start;
    }

    .preseason-archive__toggle {
        margin-top: 0.1rem;
    }
}
