@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;0,800;1,700;1,800&display=swap');
@import url('results.css');
@import url('public.css');
:root{--ink:#0d1b2a;--green:#19784a;--green-light:#2ca968;--gold:#d4af37;--cream:#f6f5f0;--paper:#fff;--muted:#64706a;--line:#dfe5dd}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',sans-serif}.site-header{min-height:76px;padding:0 max(22px,5vw);background:var(--ink);display:flex;align-items:center;gap:36px;color:#fff;position:relative;overflow:hidden}.header__glow{position:absolute;width:480px;height:180px;right:-80px;top:-130px;border-radius:50%;background:#d4af3726;filter:blur(18px)}.brand{color:white;text-decoration:none;display:flex;align-items:center;gap:9px;line-height:.9;font-size:13px;font-weight:600;letter-spacing:.12em;z-index:1}.brand strong{color:var(--gold);font-size:18px;letter-spacing:.06em}.brand__ball{font-size:33px;color:var(--gold);text-shadow:0 0 16px #d4af3777}.main-nav{margin-left:auto;display:flex;gap:25px;z-index:1}.main-nav a,footer a{color:#f5f5ef;text-decoration:none;font-size:14px}.main-nav a:hover{color:var(--gold)}.menu-button{display:none;margin-left:auto;background:none;border:0;color:white;font-size:22px}.hero{max-width:1160px;margin:auto;padding:90px max(22px,5vw) 78px;position:relative;overflow:hidden}.kicker{font-size:11px;font-weight:700;letter-spacing:.16em;color:var(--green);margin:0 0 13px}.hero h1,.section h2,.community h2{font-family:'Playfair Display',serif;font-size:clamp(45px,7vw,82px);line-height:.94;margin:0;letter-spacing:-.045em}.hero h1 em{color:var(--green);font-weight:700}.hero__intro{max-width:445px;color:var(--muted);font-size:17px;line-height:1.6;margin:28px 0}.button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:16px;border-radius:3px;padding:12px 20px;font-weight:700;text-decoration:none;font-size:14px;transition:.2s}.button--primary{background:var(--green);color:white}.button--primary:hover{background:var(--ink);transform:translateY(-2px)}.button--outline{border:1px solid var(--green);color:var(--green)}.button--outline:hover{background:var(--green);color:white}.hero__court{position:absolute;right:-120px;top:55px;width:530px;height:400px;border:2px solid #19784a20;border-radius:50%;transform:rotate(-25deg)}.hero__court span{position:absolute;background:#19784a18}.hero__court span:nth-child(1){height:100%;width:2px;left:50%}.hero__court span:nth-child(2){width:100%;height:2px;top:50%}.hero__court span:nth-child(3){width:65%;height:65%;border:2px solid #19784a18;border-radius:50%;background:none;left:17.5%;top:17.5%}.edition-bar{background:var(--ink);color:white;display:flex;justify-content:center;gap:min(9vw,120px);padding:20px;position:relative}.edition-bar p{margin:0;font-size:14px}.edition-bar span{display:block;color:var(--gold);font-size:10px;letter-spacing:.1em;margin-bottom:5px}.section{max-width:1160px;margin:auto;padding:92px max(22px,5vw)}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:30px}.section-heading h2,.results-section h2{font-size:43px}.section-heading a{color:var(--green);font-size:14px;font-weight:700}.feature-tournament{background:white;box-shadow:0 4px 22px #0d1b2a0c;border-top:4px solid var(--green);padding:30px;display:grid;grid-template-columns:115px 1fr auto;gap:27px;align-items:center}.feature-tournament__date{display:flex;align-items:center;gap:12px;color:var(--green);border-right:1px solid var(--line)}.feature-tournament__date b{font-family:'Playfair Display',serif;font-size:58px}.feature-tournament__date span{font-size:12px;font-weight:700;line-height:1.3}.tag{font-size:10px;letter-spacing:.1em;font-weight:700;padding:5px 7px}.tag--open{background:#e7f6e9;color:var(--green)}.feature-tournament h3,.news-card h3{font-family:'Playfair Display',serif;font-size:28px;margin:10px 0 7px;letter-spacing:-.02em}.feature-tournament p{color:var(--muted);margin:0}.feature-tournament ul{display:flex;gap:16px;padding:0;margin:16px 0 0;list-style:none;flex-wrap:wrap;font-size:12px;font-weight:600}.feature-tournament li::before{content:'●';color:var(--gold);margin-right:5px}.news-section{padding-top:15px}.news-grid{display:grid;grid-template-columns:1.45fr 1fr 1fr;gap:16px}.news-card{background:white}.news-card__image{height:205px;position:relative}.news-card--lead .news-card__image{height:290px}.image--players{background:linear-gradient(145deg,#163725,#288353 58%,#d4af37);}.image--players span{position:absolute;left:15px;bottom:15px;background:var(--gold);padding:6px 9px;font-size:10px;font-weight:700}.image--court{background:linear-gradient(130deg,#0d1b2a 0 43%,#25a868 43% 51%,#113e29 51%);}.image--sunset{background:linear-gradient(155deg,#d4af37,#ea9b4a 45%,#1a7a4a 46%,#0d1b2a)}.news-card__body{padding:17px}.news-card__body p{font-size:10px;letter-spacing:.08em;color:var(--muted);font-weight:700;margin:0}.news-card h3{font-size:22px;line-height:1.08;margin:10px 0 18px}.news-card a{color:var(--green);font-size:13px;font-weight:700}.results-section{background:var(--ink);max-width:none;color:white;display:grid;grid-template-columns:1fr 1.2fr;gap:60px;padding-left:max(22px,calc((100vw - 1040px)/2));padding-right:max(22px,calc((100vw - 1040px)/2))}.results-section .kicker{color:var(--gold)}.results-section h2{color:white}.results-section>div>p:last-child{color:#b7c2ca}.podium{display:grid;grid-template-columns:1fr 1fr;gap:13px}.podium article{background:#ffffff0d;border:1px solid #ffffff22;padding:20px}.podium span{font-family:'Playfair Display',serif;color:var(--gold);font-size:36px}.podium p{color:#d2d9d2;font-size:12px}.podium h3{font-family:'Playfair Display',serif;font-size:25px;margin:7px 0}.podium small{color:var(--gold);font-weight:700;font-size:10px;letter-spacing:.12em}.community{max-width:1160px;margin:auto;padding:110px max(22px,5vw);text-align:center}.community h2{font-size:52px;margin-bottom:29px}.community .kicker{color:var(--gold)}footer{background:#0a1622;color:#a6b1b8;padding:24px max(22px,5vw);display:flex;justify-content:space-between;font-size:12px}footer a{color:var(--gold)}@media(max-width:720px){.main-nav{display:none}.menu-button{display:block}.hero{padding-top:65px}.hero__court{opacity:.6}.edition-bar{justify-content:flex-start;gap:20px;overflow:auto}.edition-bar p{min-width:145px}.section{padding-top:65px;padding-bottom:65px}.feature-tournament{grid-template-columns:1fr;gap:18px}.feature-tournament__date{border:0}.news-grid,.results-section{grid-template-columns:1fr}.news-card--lead .news-card__image{height:230px}.section-heading{align-items:start;flex-direction:column}.community{padding:80px 22px}.community h2{font-size:43px}footer{gap:12px;flex-wrap:wrap}}
.theme-toggle{background:#ffffff14;border:1px solid #ffffff44;border-radius:20px;color:white;padding:7px 10px;z-index:1;cursor:pointer}.tournament-list{display:grid;gap:16px}.tournament-dialog{width:min(100%,760px);padding:0;border:0;background:var(--cream);color:var(--ink)}.tournament-dialog::backdrop{background:#07111ddd}.tournament-dialog> .kicker,.tournament-dialog>h2{margin-left:25px;margin-right:25px}.tournament-dialog>.kicker{margin-top:38px}.tournament-dialog>h2{font-family:'Playfair Display',serif;font-size:34px;line-height:1;margin-top:0}.dialog__close{position:absolute;right:15px;top:12px;border:0;background:none;font-size:32px;color:var(--ink);cursor:pointer}.detail-pages{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin-top:25px}.detail-pages section{min-width:100%;scroll-snap-align:start;padding:25px 25px 40px;border-top:1px solid var(--line)}.detail-pages h3{font-family:'Playfair Display',serif;font-size:27px;margin:10px 0}.detail-pages p{line-height:1.7;color:var(--muted)}.pairs-list{list-style:none;padding:0}.pairs-list li{padding:13px 0;border-bottom:1px solid var(--line)}.pairs-list b{color:var(--green);display:inline-block;width:35px}@media(max-width:720px){.theme-toggle{margin-left:auto}.menu-button{margin-left:0}}
html[data-theme='dark']{--cream:#101b1c;--paper:#182627;--ink:#edf2ed;--muted:#b5c2bb;--line:#30423e}html[data-theme='dark'] .feature-tournament,html[data-theme='dark'] .news-card{background:var(--paper)}html[data-theme='dark'] .tournament-dialog{background:var(--cream)}html[data-theme='dark'] .dialog__close{color:var(--ink)}
.brand__logo{display:block;width:150px;max-height:56px;object-fit:contain;object-position:left center;filter:drop-shadow(0 3px 8px rgba(0,0,0,.35))}@media(max-width:420px){.brand__logo{width:126px;max-height:50px}}
/* Dark theme contrast corrections */
html[data-theme='dark'] .hero,html[data-theme='dark'] .section,html[data-theme='dark'] .community{color:var(--ink)}
html[data-theme='dark'] .feature-tournament,html[data-theme='dark'] .news-card{background:#182627;color:#edf2ed;box-shadow:0 4px 22px #00000040}
html[data-theme='dark'] .feature-tournament h3,html[data-theme='dark'] .news-card h3,html[data-theme='dark'] .feature-tournament li{color:#edf2ed}
html[data-theme='dark'] .feature-tournament p,html[data-theme='dark'] .news-card__body p,html[data-theme='dark'] .detail-pages p{color:#b5c2bb}
html[data-theme='dark'] .news-card a,html[data-theme='dark'] .section-heading a,html[data-theme='dark'] .button--outline{color:#70df9f}
html[data-theme='dark'] .button--outline{border-color:#70df9f}
html[data-theme='dark'] .tag--open{background:#173d2a;color:#91ecb5}
html[data-theme='dark'] .tournament-dialog{background:#101b1c;color:#edf2ed}
html[data-theme='dark'] .tournament-dialog .kicker,html[data-theme='dark'] .detail-pages small{color:#91ecb5}
html[data-theme='dark'] .dialog__close{color:#edf2ed}
html[data-theme='dark'] .pairs-list li{border-color:#30423e;color:#edf2ed}
html[data-theme='dark'] .community .kicker{color:#e8cc6a}
/* Explicit toggle state and high-priority dark contrast */
.theme-toggle{display:flex;align-items:center;gap:5px}.theme-icon{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;color:#aab6b3;transition:.2s}.theme-label{font-size:10px;font-weight:700;margin-left:2px;color:#dce5e0}.theme-toggle[aria-pressed='false'] .theme-icon--sun{background:#f3c84b;color:#182026}.theme-toggle[aria-pressed='true'] .theme-icon--moon{background:#70df9f;color:#10201a}.theme-toggle[aria-pressed='true'] .theme-icon--sun,.theme-toggle[aria-pressed='false'] .theme-icon--moon{opacity:.45}
html[data-theme='dark'] body{background:#101b1c!important;color:#edf2ed!important}html[data-theme='dark'] .feature-tournament,html[data-theme='dark'] .news-card,html[data-theme='dark'] .tournament-dialog{background:#182627!important;color:#edf2ed!important}html[data-theme='dark'] .feature-tournament h3,html[data-theme='dark'] .news-card h3,html[data-theme='dark'] .news-card__body,html[data-theme='dark'] .feature-tournament__content,html[data-theme='dark'] .detail-pages section{color:#edf2ed!important}html[data-theme='dark'] .feature-tournament p,html[data-theme='dark'] .news-card__body p,html[data-theme='dark'] .detail-pages p{color:#b5c2bb!important}html[data-theme='dark'] .section-heading a,html[data-theme='dark'] .news-card a,html[data-theme='dark'] .button--outline{color:#91ecb5!important}
/* Dark mode: dark surfaces only. Keep the structural ink token dark. */
html[data-theme='dark']{--ink:#0d1b2a!important;--cream:#101b1c!important;--paper:#182627!important;--muted:#b5c2bb!important;--line:#30423e!important}
html[data-theme='dark'] body,html[data-theme='dark'] .hero,html[data-theme='dark'] .section,html[data-theme='dark'] .community{background:#101b1c!important;color:#edf2ed!important}
html[data-theme='dark'] .site-header,html[data-theme='dark'] .edition-bar,html[data-theme='dark'] .results-section,html[data-theme='dark'] footer{background:#0d1b2a!important;color:#edf2ed!important}
html[data-theme='dark'] .feature-tournament,html[data-theme='dark'] .news-card,html[data-theme='dark'] .tournament-dialog{background:#182627!important;color:#edf2ed!important}
html[data-theme='dark'] .hero h1,html[data-theme='dark'] .section h2,html[data-theme='dark'] .community h2,html[data-theme='dark'] .feature-tournament h3,html[data-theme='dark'] .news-card h3,html[data-theme='dark'] .detail-pages h3,html[data-theme='dark'] .detail-pages section{color:#edf2ed!important}
html[data-theme='dark'] .hero__intro,html[data-theme='dark'] .feature-tournament p,html[data-theme='dark'] .news-card__body p,html[data-theme='dark'] .detail-pages p{color:#b5c2bb!important}
/* Button variants must always define their own surface; never inherit browser white. */
.button--outline{background:transparent!important}
html[data-theme='dark'] .button--primary{background:#19784a!important;color:#fff!important;border-color:#19784a!important}
html[data-theme='dark'] .button--primary:hover{background:#2ca968!important;color:#07120d!important}
html[data-theme='dark'] .button--outline{background:#0d1b2a!important;color:#91ecb5!important;border-color:#70df9f!important}
html[data-theme='dark'] .button--outline:hover{background:#19784a!important;color:#fff!important;border-color:#19784a!important}
html[data-theme='dark'] .theme-toggle{background:#0d1b2a!important;color:#fff!important;border-color:#49645c!important}
.registration-page{padding:24px 25px 40px}.registration-page h3{font-family:'Playfair Display',serif;font-size:28px;margin:8px 0}.registration-page p{color:var(--muted)}.registration-page form{display:grid;gap:16px}.player-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:15px;border:1px solid var(--line)}.player-fields h4{grid-column:1/-1;margin:0;color:var(--green)}.player-fields label,.contact-field{font-size:12px;font-weight:700;display:grid;gap:5px}.player-fields input,.contact-field input{min-height:42px;border:1px solid var(--line);padding:9px;background:var(--paper);color:var(--ink)}.contact-field{max-width:310px}@media(max-width:500px){.player-fields{grid-template-columns:1fr}}html[data-theme='dark'] .player-fields input,html[data-theme='dark'] .contact-field input{background:#0d1b2a;color:#edf2ed;border-color:#49645c}
.admin-access{background:transparent;border:1px solid #ffffff55;color:#fff;min-height:36px;padding:7px 11px;cursor:pointer;z-index:1}.admin-dialog{width:min(100%,760px);padding:0;border:0;background:var(--cream);color:var(--ink)}.admin-dialog::backdrop{background:#07111ddd}.admin-close{position:absolute;right:15px;top:12px;border:0;background:none;font-size:30px;color:inherit;cursor:pointer}.admin-screen{padding:32px 25px}.admin-screen h2{font-family:'Playfair Display',serif;font-size:32px;margin:5px 0 22px}.admin-screen form{display:grid;gap:12px}.admin-screen label{display:grid;gap:5px;font-size:12px;font-weight:700}.admin-screen input,.admin-screen textarea{min-height:42px;border:1px solid var(--line);padding:9px;background:var(--paper);color:var(--ink);font:inherit}.admin-form{grid-template-columns:1fr 1fr}.admin-form__wide,.admin-form .button,.admin-message{grid-column:1/-1}.admin-form small{font-weight:400;color:var(--muted)}.admin-message{margin:0;color:#bf3d3d}.admin-screen__head{display:flex;justify-content:space-between;gap:15px;align-items:start}.admin-list{margin-top:30px;border-top:1px solid var(--line);padding-top:18px}.admin-list article{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.admin-list b,.admin-list span{display:block}.admin-list span{font-size:12px;color:var(--muted);margin-top:4px}.admin-list button{background:transparent;border:1px solid #c54b4b;color:#c54b4b;padding:6px 9px;cursor:pointer;height:34px}@media(max-width:500px){.admin-form{grid-template-columns:1fr}.admin-access{margin-left:auto}}html[data-theme='dark'] .admin-dialog{background:#182627;color:#edf2ed}html[data-theme='dark'] .admin-screen input,html[data-theme='dark'] .admin-screen textarea{background:#0d1b2a;color:#edf2ed;border-color:#49645c}
.admin-page{min-height:100vh}.admin-back{margin-left:auto;color:#fff;text-decoration:none;font-size:13px}.admin-layout{max-width:1180px;margin:auto;display:grid;grid-template-columns:220px 1fr;gap:25px;padding:30px 22px}.admin-sidebar{display:flex;flex-direction:column;gap:6px}.admin-tab,.admin-signout{background:transparent;border:0;text-align:left;padding:12px;cursor:pointer;color:var(--ink)}.admin-tab.active{background:var(--green);color:white}.admin-signout{margin-top:25px;border-top:1px solid var(--line);color:#b94141}.admin-workspace{display:grid;gap:18px}.admin-card{background:var(--paper);padding:25px;border:1px solid var(--line)}.admin-card h1,.admin-card h2{font-family:"Playfair Display",serif;margin:6px 0 20px}.admin-card label{display:grid;gap:5px;font-size:12px;font-weight:700}.admin-card input,.admin-card textarea{padding:10px;border:1px solid var(--line);background:var(--cream);color:var(--ink);font:inherit}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.admin-grid .wide,.admin-grid .button,.form-message{grid-column:1/-1}.admin-row{display:flex;justify-content:space-between;padding:12px 0;border-top:1px solid var(--line)}.admin-row b,.admin-row span{display:block}.admin-row span{font-size:12px;color:var(--muted)}.admin-row button{border:1px solid #b94141;background:transparent;color:#b94141;height:34px}.login-card{max-width:430px}@media(max-width:700px){.admin-layout{grid-template-columns:1fr;padding:18px}.admin-sidebar{flex-direction:row;overflow:auto}.admin-tab{white-space:nowrap}.admin-signout{margin:0}.admin-grid{grid-template-columns:1fr}}html[data-theme="dark"] .admin-card{background:#182627;color:#edf2ed}html[data-theme="dark"] .admin-tab{color:#edf2ed}html[data-theme="dark"] .admin-card input,html[data-theme="dark"] .admin-card textarea{background:#0d1b2a;color:#edf2ed}
.site-header{min-height:68px;gap:8px;overflow:visible;padding:0 16px}.brand{min-width:0}.brand__logo{width:126px;max-height:48px}.admin-access,.theme-toggle,.menu-button{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}.admin-access{font-size:12px;padding:8px}.theme-toggle{padding:6px}.theme-label{display:none}.menu-button{margin-left:0;background:transparent;border:1px solid #ffffff55;border-radius:50%;color:#fff;font-size:24px;line-height:1;z-index:3}.main-nav{display:none}.main-nav.is-open{position:absolute;z-index:2;top:calc(100% + 8px);left:12px;right:12px;display:grid;gap:4px;padding:10px;background:var(--ink);border:1px solid #ffffff33;box-shadow:0 12px 30px #0007}.main-nav.is-open a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:4px;font-size:16px}.main-nav.is-open a:focus-visible,.main-nav.is-open a:hover{background:#ffffff18;color:var(--gold)}.hero{padding:56px 22px 52px}.hero h1,.section h2,.community h2{font-size:clamp(2.7rem,13vw,4rem)}.hero__intro{font-size:16px}.hero__court{opacity:.36;right:-255px;top:0}.edition-bar{justify-content:flex-start;gap:18px;overflow-x:auto;padding:18px 22px;scroll-snap-type:x mandatory}.edition-bar p{min-width:150px;scroll-snap-align:start}.section{padding:56px 22px}.section-heading{align-items:flex-start;flex-direction:column;margin-bottom:24px}.feature-tournament{grid-template-columns:1fr;gap:16px;padding:22px}.feature-tournament__date{border:0}.feature-tournament .button{width:100%}.news-grid,.results-section{grid-template-columns:1fr}.results-section{gap:32px;padding:56px 22px}.community{padding:64px 22px}.community .button{width:100%}footer{gap:12px;flex-direction:column;padding:24px 22px}.player-fields{grid-template-columns:1fr}.player-fields input,.contact-field input,.admin-screen input,.admin-screen textarea,.admin-card input,.admin-card select,.admin-card textarea{min-height:44px;font-size:16px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media (min-width:721px){.site-header{min-height:76px;padding:0 max(22px,5vw);gap:36px}.brand__logo{width:150px;max-height:56px}.main-nav{display:flex;margin-left:auto;gap:25px}.menu-button{display:none}.theme-label{display:inline}.hero{padding:90px max(22px,5vw) 78px}.edition-bar{justify-content:center}.section{padding:92px max(22px,5vw)}.section-heading{align-items:end;flex-direction:row}.feature-tournament{grid-template-columns:115px 1fr auto;gap:27px;padding:30px}.feature-tournament__date{border-right:1px solid var(--line)}.feature-tournament .button{width:auto}.news-grid{grid-template-columns:1.45fr 1fr 1fr}.results-section{grid-template-columns:1fr 1.2fr;padding-left:max(22px,calc((100vw - 1040px)/2));padding-right:max(22px,calc((100vw - 1040px)/2))}.community{padding:110px max(22px,5vw)}.community .button{width:auto}footer{flex-direction:row;padding:24px max(22px,5vw)}}
