/* The Oval Office — page styles shared by /stats and every page the scripts generate
   (Insights, guides, 404). Header and footer colours live in components.css. */
        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            background: var(--color-surface);
            overflow-x: hidden;
            padding-top: 80px;
        }

        /* ── Header / Nav (colours from .site-header / .nav-* in components.css) ── */
        header.site-header {
            position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
            animation: slideDown 0.6s ease-out;
        }
        @keyframes slideDown {
            from { transform: translateY(-100%); opacity: 0; }
            to   { transform: translateY(0);     opacity: 1; }
        }
        nav.site-nav { max-width: 1400px; margin: 0 auto; }
        .logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
        .logo img { height: auto; }
        .nav-links { flex-shrink: 0; }

        /* Nav dropdown: layout only */
        .nav-dropdown { position: relative; }
        .nav-dropdown-menu {
            display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
            padding-top: 16px; z-index: 1000;
        }
        .nav-dropdown:hover .nav-dropdown-menu,
        .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
        .nav-dropdown-trigger { cursor: pointer; }

        @media (max-width: 768px) {
            nav.site-nav { padding: 1rem 1.25rem; }
            .logo img { width: 180px; }
            .nav-links { gap: 0.75rem; }
            .nav-links .btn { padding: 0.55rem 1rem; font-size: 0.875rem; }
            .nav-links > .nav-link, .nav-links > .nav-dropdown { display: none; }
        }

        /* ── Page header (navy band in both themes) ───────── */
        .page-hero {
            background: var(--color-footer);
            padding: 4rem 2rem 3rem;
            text-align: center;
        }
        .page-hero h1 {
            font-family: var(--font-display);
            font-size: 3rem; font-weight: 700; line-height: 1.15; color: var(--color-on-footer);
            letter-spacing: -0.01em; margin-bottom: 0.75rem;
        }
        @media (max-width: 480px) {
            .page-hero h1 { font-size: 2.25rem; }
        }
        .page-hero p {
            color: var(--color-on-footer-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto;
        }

        /* ── Stats grid ───────────────────────────────────── */
        .stats-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 3.5rem 2rem 5rem;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }
        .page-intro { max-width: 760px; margin: 3.5rem auto 0; padding: 0 1.5rem; line-height: 1.7; color: var(--color-text); }
        .page-intro h2 { font: 700 1.5rem/1.25 var(--font-display); color: var(--color-primary); margin-bottom: 0.75rem; }
        .page-intro p { margin-bottom: 1rem; color: var(--color-text-muted); }
        .page-intro a { color: var(--color-accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
        @media (max-width: 900px)  { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 580px)  { .stats-grid { grid-template-columns: 1fr; } }

        /* ── Tournament card (colours, stripe, hover from .tournament-card) ── */
        .stats-card.tournament-card {
            padding: 0;
            text-decoration: none;
            color: inherit;
        }
        .stats-card--locked { cursor: default; opacity: 0.72; }
        .tournament-card.stats-card--locked:hover {
            transform: none; box-shadow: none; border-color: var(--color-border);
        }

        .stats-card-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }

        /* Status pill */
        .stats-badge {
            display: inline-flex; align-self: flex-start;
            align-items: center; gap: 0.3rem;
            font-size: 0.72rem; font-weight: 700;
            padding: 3px 10px; border-radius: var(--radius-2xl);
            letter-spacing: 0.4px; text-transform: uppercase;
            margin-bottom: 1rem;
        }
        .stats-badge--complete    { background: var(--color-success-tint); color: var(--color-success-on-tint); }
        .stats-badge--coming-soon { background: var(--color-border-subtle); color: var(--color-text-muted); }
        .stats-badge--sitting-out { background: var(--color-border-subtle); color: var(--color-text-muted); }
        .stats-badge--covering { background: var(--color-orange-tint); color: var(--color-orange-text); }

        .stats-card-body h3 {
            font-family: var(--font-display);
            font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15;
            color: var(--color-primary); margin-bottom: 0.4rem;
        }
        .stats-card-meta {
            font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted);
            text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.85rem;
        }
        .stats-card-body p {
            font-size: 0.88rem; color: var(--color-text-muted);
            line-height: 1.55; margin-bottom: 1.5rem; flex: 1;
        }
        .stats-card-cta {
            display: inline-flex; align-items: center; gap: 0.4rem;
            padding: 0.55rem 1.2rem;
            background: var(--color-action); color: var(--color-on-action);
            border-radius: var(--radius-2xl); font-size: 0.85rem; font-weight: 600;
            text-decoration: none; transition: background 0.2s; align-self: flex-start;
        }
        .stats-card:hover .stats-card-cta { background: var(--color-action-hover); }
        .stats-card--locked .stats-card-cta,
        .stats-card--locked:hover .stats-card-cta {
            background: var(--color-border); color: var(--color-text-muted); pointer-events: none;
        }

        /* ── Footer: layout width only (colours from .site-footer) ── */
        .footer-inner { max-width: 1200px; margin: 0 auto; }

        /* ── Notify Modal ─────────────────────────────────── */
        .notify-overlay {
            display: none; position: fixed; inset: 0;
            background: var(--color-overlay); backdrop-filter: blur(6px);
            z-index: 9999; align-items: center; justify-content: center; padding: 1rem;
        }
        .notify-overlay.open { display: flex; }
        .notify-modal { width: 100%; animation: modalSlideIn 0.3s ease; }
        @keyframes modalSlideIn {
            from { opacity: 0; transform: translateY(20px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0)    scale(1);    }
        }
        .notify-modal .modal-sub { line-height: 1.5; }
        .notify-form-group { margin-bottom: 1rem; }
        .notify-form-group > label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--color-text); }
        .notify-form-group > label.notify-checkbox-label { display: flex; margin-bottom: 0; }
        .notify-checkbox-group { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
        /* Page's custom checkbox tiles (differs from the plain shared list) */
        .notify-checkbox-label {
            gap: 0.7rem;
            padding: 0.75rem 1rem; border: var(--border-card) solid var(--color-border); border-radius: var(--radius-md);
            font-weight: 500; font-size: 0.92rem; transition: border-color 0.2s, background 0.2s;
        }
        .notify-checkbox-label:hover { background: var(--color-surface); border-color: var(--color-accent-soft); }
        .notify-checkbox-label .cb-text { flex: 1; align-self: center; line-height: 1.4; }
        .notify-checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
        .notify-checkbox-label:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
        .notify-checkbox-label .checkmark {
            width: 20px; height: 20px; border: var(--border-card) solid var(--color-border); border-radius: 5px;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s;
        }
        .notify-checkbox-label input:checked ~ .checkmark { background: var(--color-action); border-color: var(--color-action); color: var(--color-on-action); }
        .notify-checkbox-label input:checked ~ .checkmark::after { content: '✓'; font-size: 12px; font-weight: 700; }
        .notify-checkbox-label.checked { border-color: var(--color-accent); background: var(--color-accent-tint); }
        .notify-submit-btn.btn {
            padding: 0.9rem; border-radius: var(--radius-2xl);
            font-size: 1rem; font-weight: 700; margin-top: 0;
        }
        .notify-success { display: none; text-align: center; padding: 1rem 0; }
        .notify-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }
        .notify-success h4 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 0.5rem; color: var(--color-primary); }

        /* Competition hubs */
        .hub-section { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
        .hub-section h2 { font: 700 1.75rem/1.15 var(--font-display); letter-spacing: -0.01em; color: var(--color-primary); margin: 0 0 0.4rem; }
        .hub-section > p { color: var(--color-text-muted); margin: 0 0 1.25rem; max-width: 68ch; }
        .hub-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
        .hub-list { display: grid; gap: 0.75rem; }
        .hub-list a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-raised); text-decoration: none; color: inherit; }
        .hub-list a:hover { border-color: var(--color-accent-soft); }
        .hub-list strong { display: block; font: 700 1.05rem/1.3 var(--font-display); color: var(--color-primary); margin-bottom: 0.2rem; }
        .hub-list span { color: var(--color-text-muted); font-size: 0.92rem; }
        .hub-cross { max-width: 1100px; margin: 0 auto; padding: 1rem 1.5rem 4rem; }
        .hub-cross a { font-weight: 600; color: var(--color-accent-text); }
        .page-hero .round-status { color: var(--color-on-footer); margin: 0 auto 1rem; }
        .page-hero .round-status .is-live { color: #86efac; }
        @media (max-width: 800px) { .hub-tools { grid-template-columns: 1fr; } }

        /* Nations Championship hub */
        .nc-hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.35rem; }
        .page-hero .nc-hero-ctas .btn-secondary { color: var(--color-on-footer); border-color: rgba(255,255,255,.45); }
        .page-hero .nc-hero-ctas .btn-secondary:hover { background: rgba(255,255,255,.12); color: var(--color-on-footer); }
        .nc-hub { max-width: 920px; margin: 0 auto; padding: 2.25rem 1.25rem 4.5rem; }
        .nc-midcta { margin: 0 0 3rem; }
        .nc-midcta .g-railcta { margin: 0; }
        .nc-block { margin: 0 0 3rem; }
        .nc-block h2 { font: 700 1.75rem/1.15 var(--font-display); letter-spacing: -0.01em; color: var(--color-primary); margin: 0 0 0.2rem; }
        .nc-subhead { margin: 0 0 1rem; font: 700 1.2rem/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--color-text-muted); }
        .nc-round { margin: 1.4rem 0 0.5rem; font: 700 1.05rem/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--color-primary); }
        .fx-list { display: flex; flex-direction: column; gap: 0.85rem; }
        .fx-row, .fx-up { background: var(--color-raised); border: 1px solid var(--color-border); border-radius: 14px; }
        .fx-row summary, .fx-up { display: block; padding: 1.2rem 2.6rem 1.05rem 1.25rem; text-align: center; }
        .fx-row summary { position: relative; cursor: pointer; list-style: none; }
        .fx-row summary::-webkit-details-marker { display: none; }
        .fx-row summary::after {
            content: "";
            position: absolute;
            right: 1rem;
            top: 1.85rem;
            width: 0.5rem;
            height: 0.5rem;
            border-right: 2px solid var(--color-text-muted);
            border-bottom: 2px solid var(--color-text-muted);
            transform: rotate(45deg);
        }
        .fx-row[open] summary { border-bottom: 1px solid var(--color-border-subtle); }
        .fx-row[open] summary::after { transform: rotate(-135deg); top: 2rem; }
        .fx-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 1rem; width: 100%; color: var(--color-primary); }
        .fx-side { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0; }
        .fx-home { justify-self: start; }
        .fx-away { justify-self: end; }
        .fx-side .flag { width: 52px; height: 36px; margin: 0; }
        .fx-code { font: 700 1.85rem/1 var(--font-display); letter-spacing: 0.04em; }
        .fx-score { display: inline-flex; align-items: baseline; justify-content: center; gap: 0.45rem; font: 700 2rem/1 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
        .fx-score .is-win { color: var(--color-action); }
        .fx-sep, .fx-vs { color: var(--color-text-muted); font-weight: 600; font-size: 1.35rem; }
        .fx-meta { display: block; margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.4; color: var(--color-text-muted); }
        .fx-more { padding: 0.7rem 1.25rem 0.9rem; font-size: 0.92rem; }
        .fx-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 2rem; }
        .fx-cols > div:first-child { text-align: left; }
        .fx-cols > div:last-child { text-align: right; }
        .fx-cols ul { list-style: none; margin: 0; padding: 0; }
        .fx-cols li { margin: 0.2rem 0; font-weight: 600; color: var(--color-primary); }
        .fx-pts { font-weight: 500; color: var(--color-text-muted); }
        .fx-potm { display: inline-block; margin-left: 0.35rem; padding: 0.08rem 0.35rem; border-radius: 4px; background: var(--color-action); color: var(--color-on-action); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; vertical-align: 1px; }
        .fx-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0.25rem; }
        .nc-group { margin: 1.25rem 0 0.45rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-muted); }
        .nc-note { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }
        .nc-note a { color: var(--color-accent-text); font-weight: 600; }
        .nc-faq details { border-top: 1px solid var(--color-border); padding: 0.85rem 0; }
        .nc-faq details:last-child { border-bottom: 1px solid var(--color-border); }
        .nc-faq summary { cursor: pointer; font-weight: 700; color: var(--color-primary); }
        .nc-faq details p { margin: 0.55rem 0 0.2rem; color: var(--color-text-muted); max-width: 68ch; }
        @media (max-width: 640px) {
            .fx-row summary, .fx-up { padding: 1rem 2.1rem 0.9rem 0.85rem; }
            .fx-side { gap: 0.45rem; }
            .fx-side .flag { width: 36px; height: 24px; }
            .fx-code { font-size: 1.25rem; }
            .fx-score { font-size: 1.45rem; }
            .fx-sep, .fx-vs { font-size: 1rem; }
            .fx-cols > div:first-child,
            .fx-cols > div:last-child { text-align: center; }
        }
        .sn-years { display: flex; justify-content: center; align-items: center; gap: 0.45rem; margin: 0 0 1.75rem; }
        .sn-year-btn { font: 700 1rem/1 var(--font-body); border: 1px solid var(--color-border); background: var(--color-raised); color: var(--color-text); border-radius: 999px; padding: 0.6rem 1.15rem; cursor: pointer; }
        .sn-year-btn.is-on { background: var(--color-action); border-color: var(--color-action); color: var(--color-on-action); }
        .sn-year-arrow { color: var(--color-text-muted); font-weight: 700; }
        .sn-year { display: none; }
        .sn-year.is-on { display: block; }
        .fx-empty { margin: 0; color: var(--color-text-muted); font-weight: 500; }
        .notify-success p { color: var(--color-text-muted); font-size: 0.95rem; }
