/* Light appearance stays inherited. Only the header control affects both themes. */
.theme-toggle{width:44px;height:44px;flex:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid #c5d3c6;border-radius:50%;background:#eff2ec;color:#103529;font-size:24px;line-height:1}.theme-toggle:hover{border-color:#9b8048}.theme-toggle:focus-visible{outline:3px solid #9b7526;outline-offset:3px}.site-header .header-inner{gap:18px}.site-header .directory-link{min-height:44px;display:inline-flex;align-items:center}.theme-icon{display:block}.site-header .official-brand{flex-shrink:1}
@media(max-width:700px){.site-header .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;padding-top:8px;padding-bottom:8px}.site-header .official-brand{grid-column:1;grid-row:1 / 3;width:190px;max-width:100%}.site-header .directory-link{grid-column:2;grid-row:1;margin:0;min-height:32px;justify-content:center}.site-header .season-label{grid-column:2;grid-row:2;font-size:8px;text-align:center;padding:3px 6px}.theme-toggle{grid-column:3;grid-row:1 / 3}}
/* Explicit baseline light tokens; V9 structure is retained without a green wash. */
html[data-theme="light"]{--green:#103529;--green2:#184737;--green3:#285845;--gold:#d5bb7e;--gold2:#e6ce95;--cream:#f7f6f1;--paper:#fff;--ink:#162a22;--muted:#697970;--line:#e5e8e1;--wash:#eff2ec;color-scheme:light}
[data-theme="light"] body{background:#f7f6f1;color:#162a22}
[data-theme="light"] :is(.profile-v9 .profile-metrics,.profile-panel-body,.history-round,.player-directory>a){background:#fff;color:#173b2d}
[data-theme="light"] .profile-panel{background:#eff2ec;color:#173b2d}
[data-theme="light"] .profile-panel>summary{color:#163f2f}
html[data-theme="dark"]{--cream:#121416;--paper:#1e2124;--ink:#f3f4f2;--muted:#c3c8cc;--line:#454a4e;--wash:#292d31;--shadow:none;color-scheme:dark}
[data-theme="dark"] body{background:#121416;color:#f3f4f2}
[data-theme="dark"] :is(.site-header,.tab-shell){background:#191c1f;border-color:#454a4e;box-shadow:none}
[data-theme="dark"] .preview-ribbon{background:#25292d;color:#c3c8cc}
[data-theme="dark"] :is(.directory-link,.season-label){color:#f3f4f2;border-color:#6d816c}
[data-theme="dark"] .theme-toggle{background:#314435;border-color:#829276;color:#ead49c}
[data-theme="dark"] .official-brand{background:white;border-radius:2px}
[data-theme="dark"] .tabs button{color:#c3c8cc}
[data-theme="dark"] .tabs button[aria-selected="true"]{color:#ead49c;border-color:#d5bb7e}
[data-theme="dark"] .event-navigation{background:#10271e}
[data-theme="dark"] .event-navigation span{color:#a8b9ae}
[data-theme="dark"] .body-container{color:#f3f4f2}
[data-theme="dark"] :is(.event-summary,.event-article,.player-result,.leaderboard,.card,.profile-metrics,.player-directory>a,.profile-panel-body,.history-round){background:#1e2124;border-color:#454a4e;color:#f3f4f2}
[data-theme="dark"] :is(.winner-line h2,.winner-line>strong,.overview-podium h3,.prize-list strong,.results-heading h2,.leader-points,.result-person h3,.result-total,.round-section h3,.hole-readout-list strong,.event-article h2,.event-article h3,.editorial-highlight h4,.profile-header h1,.profile-directory-heading h1,.profile-page h2,.profile-metrics strong,.player-directory strong,.history-score>strong,.profile-scorecard-link,.all-appearances>summary,.profile-panel>summary,.history-round>summary){color:#f3f4f2}
[data-theme="dark"] :is(.event-intro,.prize-list span,.results-heading p,.result-person p,.round-intro,.chart-players label,.event-article p,.archive-pdf,.profile-back,.profile-header p,.profile-scope,.profile-metrics span,.profile-subtle,.profile-oom,.profile-achievements small,.profile-panel summary small,.history-date,.history-score>span,.profile-section-heading>span,.round-facts dt,.performance-chart figcaption,.player-directory small,.source-note p,.source-note details,.source-note summary,.scorecard-key){color:#c3c8cc}
[data-theme="dark"] :is(.winner-note,.result-person>small,.leaderboard tbody th small,.editorial-highlight h4 span,.player-result[data-position="1"] .result-position){color:#e6cc90}
[data-theme="dark"] :is(.prize-list,.round-section,.shared-legend,.source-note,.profile-panel,.profile-v9 .profile-metrics){background:#292d31;border-color:#4d5358}
[data-theme="dark"] :is(.overview-podium li:first-child,.leaderboard tbody>tr[data-position="1"]){background:#383528}
[data-theme="dark"] :is(.leaderboard tbody>tr[data-position="2"],.leaderboard tbody>tr[data-position="3"]){background:#292d31}
[data-theme="dark"] :is(.leaderboard td,.leaderboard th,.event-article section,.profile-header,.oom-contributions li,.history-round-body,.profile-panel[open]>summary,.prize-list>div,.profile-metrics>div){border-color:#454a4e}
[data-theme="dark"] .leaderboard thead th{background:#183c2a;color:#eef4e6}
[data-theme="dark"] :is(.expand-scorecard,.inline-disclosure>summary,.chart-actions button){background:#304936;color:#e4edda;border-color:#68805d}
[data-theme="dark"] .inline-disclosure[open]>summary{background:#426044;color:#fff}
[data-theme="dark"] .result-position{color:#d9dee0}
[data-theme="dark"] :is(.result-total,.player-result[data-position="2"] .result-position,.player-result[data-position="3"] .result-position){background:#343a40}
[data-theme="dark"] .player-result[data-position="1"] .result-total{background:#51482d;color:#f1dfaa}
[data-theme="dark"] .scorecard-inline{background:#181b1e}
[data-theme="dark"] .scorecard-meta{color:#e2e6e8}
[data-theme="dark"] .traditional-nines h4{background:#34553c;color:#eef5e7}
[data-theme="dark"] .scorecard-scroll{background:#1e2124;border-color:#4d5358}
[data-theme="dark"] .traditional-card :is(th,td){background:#1e2124;color:#f3f4f2;border-color:#454a4e}
[data-theme="dark"] .traditional-card th:first-child{background:#30353a;color:#e2e6e8}
[data-theme="dark"] .traditional-card thead th{background:#383e44;color:#f3f4f2}
[data-theme="dark"] .traditional-card thead th:first-child{background:#30353a}
[data-theme="dark"] .traditional-card tbody tr:nth-child(even)>td:not(.nine-total){background:#25292d}
[data-theme="dark"] .traditional-card .nine-total,[data-theme="dark"] .traditional-card thead .nine-total{background:#514a30;color:#f3e5b9;border-left-color:#b6a06a}
[data-theme="dark"] .traditional-card tbody tr.points-row :is(th,td){background:#343b40!important;color:#f3f4f2;border-top-color:#91a878}
[data-theme="dark"] .traditional-card tbody tr.points-row .nine-total{background:#685932!important;color:#fff0bd}
[data-theme="dark"] .handicap-dots{color:#f3f4f2}
[data-theme="dark"] .gross-par{color:#f3f4f2}
[data-theme="dark"] :is(.gross-birdie,.gross-eagle){background:#554623;color:#ffdfa0;border-color:#efd086}
[data-theme="dark"] :is(.gross-bogey,.gross-double){background:#2d4350;color:#d9ecf6;border-color:#b4d0e1}
[data-theme="dark"] .gross-triple{background:#50364b;color:#f6d9eb;border-color:#e0b6d0}
[data-theme="dark"] .gross-assigned{background:#51482c;color:#f1dfa6}
[data-theme="dark"] .gross-missing{color:#c3c8cc}
[data-theme="dark"] .shared-legend summary{color:#e2e6e8}
[data-theme="dark"] .hole-readout-list>div{background:#1e2124;border-color:#4d5358}
[data-theme="dark"] .hole-control{border-color:#4d5358}
[data-theme="dark"] .round-svg text{fill:#d5dade}
[data-theme="dark"] .round-svg>line[stroke="#dce3db"]{stroke:#4c5d4e}
[data-theme="dark"] .round-svg>line[stroke="#627466"]{stroke:#c3d1b8}
[data-theme="dark"] :is(.round-svg polyline,.round-svg circle,.chart-players svg line){filter:brightness(1.75)}
[data-theme="dark"] .profile-achievements li{background:transparent;border-left-color:#d5bb7e}
[data-theme="dark"] .profile-achievements span{color:#e2e6e8}
[data-theme="dark"] .profile-photo{background:#30353a;border-color:#687078}
[data-theme="dark"] .performance-chart text{fill:#d5dade}
[data-theme="dark"] .performance-chart .point-label{fill:#f3f4f2}
[data-theme="dark"] .performance-grid{stroke:#454a4e}
[data-theme="dark"] .performance-reference{stroke:#e5ca89}
[data-theme="dark"] .performance-chart .reference-label{fill:#e5ca89;stroke:#1e2124}
[data-theme="dark"] .performance-line{stroke:#a5c595}
[data-theme="dark"] .performance-point{fill:#a5c595;stroke:#1e2124}
[data-theme="dark"] :is(a,button,summary):focus-visible{outline-color:#efd899}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
[data-theme="dark"] :is(.text-link,.legend-dots,.podium-position){color:#d5dade}
[data-theme="dark"] .overline{color:#d5bb7e}
[data-theme="dark"] .table-scroll{background:#1e2124;border-color:#454a4e}
[data-theme="dark"] .data-table th{background:#30353a;color:#e2e6e8}
[data-theme="dark"] .data-table tbody tr:nth-child(odd){background:#1e2124}
[data-theme="dark"] .data-table tbody tr:nth-child(even){background:#25292d}
[data-theme="dark"] .data-table tbody tr:hover{background:#343a40}
[data-theme="dark"] .data-table td{border-color:#454a4e}
