/* Calm day/night surfaces; brand colours inside artwork are preserved. */
:root,html[data-theme=dark]{--paper:#181b1c;--ink:#e4e7e5;--gold:#cfb47e;--orange:#cfb47e;--muted:#afb7b4;--line:#57605c;--surface:#222728;--soft-surface:#2d3333;--readable-muted:#afb7b4;--button:#cfb47e;--button-ink:#20251f;--focus:#9ad3ce}
html[data-theme=light]{--paper:#f6f5f0;--ink:#232b2b;--gold:#765724;--orange:#765724;--muted:#535e5b;--line:#8a938c;--surface:#fffefa;--soft-surface:#eaece5;--readable-muted:#535e5b;--button:#765724;--button-ink:#fffefa;--focus:#146b66}
html[data-theme] body{background:var(--paper);color:var(--ink)}
html[data-theme] :is(header,footer){background:var(--paper);border-color:var(--line)}
html[data-theme] :is(.home-ranking-card,.service-card,.partner-card,.points-card,.flyer,.upadel-draw,.upadel-day,.tour-menu-links,.next-tour-card,#rankings .ranking-panel,.event-guidance){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] :is(.film-section,.shirt-section,.sponsor-carousel){background:var(--soft-surface);border-color:var(--line)}
html[data-theme] :is(.sponsor-slide,.sponsor-motion,.appearance-toggle){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] :is(.muted,.lead,.intro,.note,.copyright,.ranking-meta,.rank-range,.film-description,.home-ranking-copy,.service-card p,.foot p,.rules details p,.shirt-order p,.next-tour-place){color:var(--muted)}
html[data-theme] :is(.eyebrow,.points-card h3,.ranking-help summary,.ranking-help-link,.source-link,.upadel-draw span,.programme-source){color:var(--gold)}
html[data-theme] :is(a,button,summary,select,[role=button],input[type=checkbox],input[type=radio],label[for]){cursor:pointer}
html[data-theme] :is(button,input,select,summary,nav a,h1,h2,h3,.pill,.text-link,.film-watch,.action-button,.tour-event-card h2,#rankings h2,#rankings .tabs button,header #navigation a,header #navigation summary){text-transform:uppercase}
html[data-theme] :is(input[type=email],input[type=url]){text-transform:none}
html[data-theme] :is(a,button,summary,select,input):focus-visible{outline:3px solid var(--focus);outline-offset:4px}
html[data-theme] :is(button,summary,select,.pill,.text-link,.action-button,.film-watch){min-height:44px}
html[data-theme] :is(.pill,.film-watch,.tour-strip,.flyer b){background:var(--button);color:var(--button-ink);border:1px solid var(--button)}
html[data-theme] :is(.text-link,.action-button,.programme-source,.ranking-help-link){display:inline-flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid var(--line);border-radius:7px;color:var(--gold);text-decoration:none}
html[data-theme] :is(.text-link,.action-button,.programme-source,.ranking-help-link):hover{background:var(--soft-surface);color:var(--ink);border-color:var(--gold)}
html[data-theme] :is(.upadel-draw,.partner-card,.service-card,.flyer,.upadel-day,.next-tour-card):hover{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
html[data-theme] a:not([class]){text-decoration:underline;text-underline-offset:4px}
html[data-theme] header #navigation>a,html[data-theme] header #navigation .ranking-link-group>a:first-child,html[data-theme] header #navigation .tour-menu-links a,html[data-theme] .tour-menu summary{background:var(--surface);border:1px solid var(--line);color:var(--ink);min-height:44px}
html[data-theme] header #navigation a[aria-current=page],html[data-theme] header #navigation .ranking-link-group>a:first-child[aria-current=page]{background:var(--button);color:var(--button-ink);border-color:var(--button)}
html[data-theme] header #navigation a:hover{border-color:var(--gold)}
html[data-theme] #rankings :is(.tabs,.search-label input),html[data-theme] #rank-size{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] #rankings .tabs button,html[data-theme] #rankings .pagination button{color:var(--ink);border-color:var(--line)}
html[data-theme] #rankings .tabs button[aria-selected=true],html[data-theme] #rank-pages button[aria-current=page]{background:var(--button);color:var(--button-ink)}
html[data-theme] #rankings .ranking-table th,html[data-theme] .points-table thead{background:var(--soft-surface);color:var(--gold)}
html[data-theme] #rankings .ranking-table tbody tr:nth-child(even),html[data-theme] .points-table tbody tr:nth-child(even){background:var(--soft-surface)}
html[data-theme] #rankings .ranking-table tbody tr.rank-leader{background:var(--soft-surface)}
html[data-theme] #rankings .ranking-table tbody tr.rank-leader-1{box-shadow:inset 3px 0 var(--gold)}
html[data-theme] #rankings .ranking-table td:first-child,html[data-theme] #rankings .ranking-table tbody tr.rank-leader td:first-child{color:var(--muted)}
html[data-theme] :is(.ranking-table td,.points-table th,.points-table td){border-color:var(--line)}
html[data-theme] .shirt-controls button{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] .shirt-controls button[aria-pressed=true]{background:var(--button);color:var(--button-ink)}
html[data-theme] .brand small{color:var(--ink)}
/* Keep photographic hero readable in either mode. */
html[data-theme] .hero{--gold:#cfb47e;--button:#cfb47e;--button-ink:#20251f;color:#e4e7e5;background:#181b1c}
html[data-theme] .hero h1{color:#e4e7e5}
html[data-theme] .hero .pill,html[data-theme] .tour-event-links .pill{background:#cfb47e;color:#20251f}
.next-tour{margin-bottom:56px;padding-bottom:44px;border-bottom:1px solid var(--line)}
.next-tour h1{font-size:clamp(28px,4vw,44px);line-height:1.15;margin:16px 0 28px}
.next-tour-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.next-tour-card{display:flex;flex-direction:column;gap:14px;padding:24px;border:1px solid var(--line);border-radius:12px;text-decoration:none}
.next-tour-date{color:var(--gold);font-size:13px;font-weight:700;letter-spacing:.4px}
.next-tour-card h3{margin:0;font-size:23px}
.next-tour-place{font-size:13px}
.next-tour-action{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:20px;color:var(--gold);font-size:12px;font-weight:700}
.next-tour-action span{font-size:25px}
@media(max-width:700px){.next-tour-grid{grid-template-columns:1fr}.next-tour-card{padding:22px}.next-tour{margin-bottom:36px}.next-tour-card h3{font-size:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

html[data-theme] .sponsor-slide{position:relative;padding-top:24px}
html[data-theme] .sponsor-slide::after{content:"";position:absolute;right:8px;top:3px;color:var(--gold);font-size:18px}
html[data-theme] .upadel-event-poster{position:relative;display:block}
html[data-theme] .upadel-event-poster::after{content:"VIEW POSTER";position:absolute;bottom:8px;left:8px;right:8px;background:var(--button);color:var(--button-ink);border-radius:5px;padding:8px;font-size:11px;text-align:center;font-weight:700}
html[data-theme] .partner-card .card-action,html[data-theme] .contact-grid a>.card-action{border:1px solid var(--line);color:var(--gold);border-radius:6px;background:var(--surface)}
html[data-theme] :is(button:disabled,[aria-disabled=true]){cursor:not-allowed;opacity:.55}
