/* Shared theme layer. Dark mode retains the established navy styling. */
.theme-switch{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:999px;margin-left:auto}
.theme-switch button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:7px 11px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:.875rem;font-weight:700;cursor:pointer}
.theme-switch button[aria-pressed=true]{background:#f0bc63;color:#07152d}.theme-switch button:focus-visible{outline:3px solid #bd9343;outline-offset:2px}
header .bar>nav{flex:1 1 100%;justify-content:flex-end}
@media(min-width:1250px){header .bar{column-gap:18px}header .bar>nav{order:1;flex:1 1 auto;justify-content:center;gap:0 15px}.theme-switch{order:2;margin-left:0}}
@media(max-width:599px){header .bar{gap:8px}.brand{font-size:.875rem;gap:7px}.brand img{width:35px}.theme-switch button{padding:6px 8px;font-size:.8125rem}header .bar>nav{justify-content:flex-start;gap:0 15px}.theme-switch{margin-left:auto}}
html[data-theme=light]{color-scheme:light;--navy:#faf8f2;--panel:#fff;--blue:#112949;--gold:#86601f;--white:#0b1c35;--muted:#4d5d70;--line:#dcdedc;--logo-beige:#f5f0e5;--logo-beige-line:#ded2ba}
html[data-theme=light] body{background:#faf8f2;color:#0b1c35}
html[data-theme=light] header{background:#fffdf8}
html[data-theme=light] nav a:hover{color:#0b1c35}
html[data-theme=light] .hero{background:radial-gradient(ellipse at 85% 40%,#f0e8d7,#faf8f2 70%)}
html[data-theme=light] :is(.programmes,.team-section,.home-people,.world-connections,.home-results){background:#faf8f2}
html[data-theme=light] :is(.tournaments,.home-feature,.home-values,.calendar-section,.results-section){background:linear-gradient(125deg,#faf8f2,#f0eee7)}
html[data-theme=light] :is(.early-four,.result-feature,.tournament-countdown,.fas-support){background:linear-gradient(130deg,#fff,#f5efdf);border-color:#c8ac74}
html[data-theme=light] :is(.button,.button:hover){background:#112949;border-color:#112949;color:#fff}
html[data-theme=light] :is(.contact-actions .secondary,.contact-actions .secondary:hover){background:#fff;color:#112949;border-color:#b39a68}
html[data-theme=light] :is(.card,.home-gallery){box-shadow:0 5px 20px #11294908}
html[data-theme=light] :is(.event-date,.pp-team-officials div,.result-record-card,.home-result-card,.archive-highlight,.calendar-filters,.calendar-event-card,.calendar-empty,#calendar-event-dialog,.world-map-directory,.cert-directory-help){background:#fff;color:#0b1c35}
html[data-theme=light] :is(.people-directory-card:hover,.calendar-event-card:hover){background:#f5f0e5}
html[data-theme=light] .network-wordmark{background:linear-gradient(135deg,#fff,#f3eddf)}
html[data-theme=light] .early-badge{background:#e6cc93;color:#10213d}
html[data-theme=light] .home-gallery{background:#fff;border-color:#ddcfb2;border-top-color:#bd9343}
html[data-theme=light] :is(.gallery-arrow,.gallery-viewer-nav button){background:#f5f0e5;border-color:#c8ba9e;color:#10213d}
html[data-theme=light] :is(.gallery-open,.gallery-full-image){background:#f1eee7}
html[data-theme=light] .gallery-open>span{background:#10213ddd;color:#fff}
html[data-theme=light] .gallery-dialog{background:#fff;color:#0b1c35;border-color:#bba574}
html[data-theme=light] .gallery-close{background:#fff;color:#10213d;border-color:#bba574}
html[data-theme=light] .gallery-playback{border-color:#bba574}
html[data-theme=light] .team-heading img{mix-blend-mode:normal}
html[data-theme=light] :is(.world-map-layout,.world-map-canvas){background:#f1f3f0}
html[data-theme=light] :is(.world-map-toolbar button,.world-country-list button,.map-kind-filter button,.calendar-view-switch button,.calendar-month-toolbar button,#calendar-clear-day,.calendar-secondary-button,.pp-schedule-filters button,.pp-language button){background:#fff;color:#10213d;border-color:#c8b995}
html[data-theme=light] :is(.world-country-list button[aria-pressed=true],.map-kind-filter button[aria-pressed=true],.calendar-view-switch button[aria-pressed=true],.pp-schedule-filters button[aria-pressed=true],.pp-language button[aria-pressed=true]){background:#e6cc93;color:#10213d}
html[data-theme=light] :is(.map-search-label input,.directory-controls input,.directory-controls select,.directory-controls button,.directory-pagination button,.calendar-filters input,.calendar-filters select,.archive-filters select){background:#fff;color:#10213d;border-color:#a7b0bc}
html[data-theme=light] :is(.calendar-weekdays,.pp-schedule caption,.pp-schedule th,.pp-roster th,.archive-table-scroll caption,.archive-table-scroll th){background:#eee6d4;color:#10213d}
html[data-theme=light] :is(.calendar-day,.pp-schedule tbody tr){background:#fff}
html[data-theme=light] :is(.calendar-day:hover,.calendar-day.is-selected){background:#f4e8cd}
html[data-theme=light] .calendar-day-blank{background:#eeede8}
html[data-theme=light] .calendar-day.is-today .calendar-day-number{background:#e6cc93;color:#10213d}
html[data-theme=light] :is(.pp-schedule tbody tr:nth-child(even),.pp-roster tr:nth-child(even),.archive-table-scroll tbody tr:nth-child(even)){background:#f5f3ed}
html[data-theme=light] .pp-schedule tbody tr[data-category=girls]{background:#f4eff5}
html[data-theme=light] .result-record-mark{background:#f1eee7}
html[data-theme=light] .story-timeline h3:before{color:#86601f}
html[data-theme=light] .hub-hero{background:linear-gradient(125deg,#fff,#f2ead8);color:#10213d}
html[data-theme=light] .hub-hero :is(h1,h2,p,.kicker){color:#10213d}
html[data-theme=light] .hub-hero .kicker{color:#86601f}
html[data-theme=light] :is(.edition-tabs a[aria-selected=true],.team-category-filters button[aria-pressed=true]){background:#e6cc93;color:#10213d}
html[data-theme=light] .tournament-hub .button{background:#112949;color:#fff}
html[data-theme=light] .team-filter-label select{background:#fff;color:#10213d}
/* Player and official cards use the same readable light palette as their profiles. */
html[data-theme=light] .afa-person{background:#fff;color:#0b1c35;border-color:#dcdedc}
html[data-theme=light] .afa-person :is(h3,h4){color:#0b1c35}
html[data-theme=light] .afa-person p{color:#4d5d70}
html[data-theme=light] .afa-photo-pending{background:#f0f3f6;color:#4d5d70}
html[data-theme=light] .team-detail-close{background:#fff;color:#10213d;border-color:#b39a68}
html[data-theme=light] .certificate-page .cert-main{background:radial-gradient(ellipse at 85% 25%,#f0e8d7,#faf8f2 70%)}
html[data-theme=light] .certificate-page .cert-preview{background:#eee6d4;color:#10213d}
html[data-theme=light] .certificate-page .cert-secondary{background:#112949;color:#fff;border-color:#112949}
html[data-theme=light] .certificate-page .cert-file-actions .cert-secondary{background:#fff;color:#10213d;border-color:#bba574}
html[data-theme=light] [data-tier=black]{--tier-bg:#edf0f3;--tier-accent:#3a4351;--tier-ink:#142238;--tier-pill:#202937;--tier-pill-ink:#fff}
html[data-theme=light] [data-tier=bronze]{--tier-bg:#fbf0e7;--tier-accent:#975b32;--tier-ink:#563117;--tier-pill:#975b32;--tier-pill-ink:#fff}
html[data-theme=light] [data-tier=silver]{--tier-bg:#eef1f6;--tier-accent:#657286;--tier-ink:#24354d;--tier-pill:#c9d2df;--tier-pill-ink:#172230}
html[data-theme=light] :is([data-tier=gold],[data-tier=level-3]){--tier-bg:#fbf4df;--tier-accent:#88601a;--tier-ink:#4f370b;--tier-pill:#e6cc93;--tier-pill-ink:#211800}
html[data-theme=light] [data-tier=level-0]{--tier-bg:#eaf6f0;--tier-accent:#20765f;--tier-ink:#164a3d;--tier-pill:#20765f;--tier-pill-ink:#fff}
html[data-theme=light] [data-tier=level-1]{--tier-bg:#edf3fc;--tier-accent:#37669d;--tier-ink:#183a64;--tier-pill:#37669d;--tier-pill-ink:#fff}
html[data-theme=light] [data-tier=level-2]{--tier-bg:#f3edf9;--tier-accent:#78539c;--tier-ink:#493162;--tier-pill:#78539c;--tier-pill-ink:#fff}
@media print{.theme-switch{display:none}}
html[data-theme=light] .tournament-hub .edition-tabs a{color:#4d5d70}
html[data-theme=light] .tournament-hub .edition-tabs a[aria-selected=true]{color:#10213d}
html[data-theme=light] :is(.archive-score,.archive-team summary,.archive-source-note summary,.fas-support-ms,.cert-year,.certificate-page .cert-event-availability){color:#86601f}
html[data-theme=light] :is(.archive-highlight>p,.archive-highlight figcaption,.archive-score small,.archive-source-note,.fas-support-meta,.cert-directory-hero p,.cert-directory-help p,.cert-directory-help .cert-help,.cert-protected-events summary span){color:#4d5d70}
html[data-theme=light] .world-map-legend i{border:1px solid #768398}
html[data-theme=light] .map-pin:focus circle,html[data-theme=light] .map-pin.is-selected circle{stroke:#10213d}
html[data-theme=light] .calendar-day-chip{color:#10213d}
@media(min-width:680px){html[data-theme=light] .calendar-day-chip{background:#f0eadc}}
