/* Public-page adaptation of the approved portal visual system.
   Kept separate so portal global selectors never affect marketing or SSR. */
:root{--reading-font:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;--paper:#f6f7f8;--ink:#20262b;--muted:#606b75;--line:#dfe4e8;--surface:#f1f3f5;--live:#147654;--warning:#855c17}
body{font-family:var(--reading-font);font-optical-sizing:auto;line-height:1.55}
button,input,select{font-family:var(--reading-font)}
.site-header{background:#fff;color:var(--ink);border-bottom:1px solid var(--line)}
.site-header nav a{color:var(--muted)}
.site-header nav a[aria-current]{color:var(--ink)}
.header-app{border-color:var(--line);border-radius:8px;background:var(--yellow)}
.header-app span{color:var(--ink)}
.preview-bar{background:var(--surface);border-color:var(--line);color:var(--muted)}
.page-kicker{letter-spacing:.05em;font-size:11px}
.page-hero h1,.error-page h1{font-family:var(--reading-font);font-weight:750;font-size:clamp(40px,4.5vw,64px);line-height:1.1;letter-spacing:-.045em}
.highlight:before{inset:70% -3px 1%;border-radius:3px}
.page-hero p,.day-card>span,.refresh-strip p,.coverage p,.empty-state,.site-footer{color:var(--muted)}
.day-card,.coverage,.empty-state{background:#fff;border:1px solid var(--line);border-radius:12px}
.day-card strong{font-family:var(--reading-font);font-size:28px;font-weight:700;letter-spacing:-.03em;color:var(--ink)}
.day-rule{background:var(--line)}
.day-card .status-dot{background:var(--live)}
.scores-toolbar{border-top:1px solid var(--line)}
.scores-toolbar h2{font-size:22px;letter-spacing:-.025em;font-weight:700}
.filter-group button{min-height:40px;border-radius:8px}
.filter-group button:hover{border-color:var(--line);background:var(--surface)}
.filter-group button[aria-pressed=true]{background:var(--ink);color:#fff}
.tournament{border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 1px 2px #20262b04}
.tournament-heading{background:#fff;border:0;padding:16px}
/* Keep tour labels identical to portal-readability.css. */
.match-tour-label{display:inline-flex;align-items:center;max-width:100%;padding:3px 7px;border-radius:5px;font:650 12px/1.4 var(--reading-font);letter-spacing:0;color:#4f5e6c;background:#edf0f3}
.match-tour-label[data-tour="atp"]{color:#205ca2;background:#eaf2ff}
.match-tour-label[data-tour="wta"]{color:#7441a6;background:#f3edfb}
.match-tour-label[data-tour="challenger"]{color:#875313;background:#fff3df}
.match-tour-label[data-tour="itf"]{color:#116b64;background:#e5f5f0}
.match-tour-label[data-tour="team"]{color:#98435d;background:#fceef2}
.player-overline,.player-tile .tour-meta,.match-overline,.match-tour-context{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
.player-overline,.match-overline{font-size:13px;font-weight:500;line-height:1.5;letter-spacing:0;color:var(--muted);margin-bottom:18px}
.player-tile .tour-meta{font-size:12px;line-height:1.5}

.match{border:0;border-top:1px solid var(--line);background:#fff}
.match-active:before{background:var(--live)}
.status-live{color:var(--live)}
.status-suspended{color:var(--warning)}
.score-table tbody th{align-items:center}
.score-table td{font-variant-numeric:tabular-nums;font-weight:600}
.point-cell{color:var(--live)}
.player-name{min-width:0;overflow-wrap:anywhere}
.match-freshness,.match-note,.match-meta,.score-table thead{color:var(--muted)}
.players-panel h2,.follow-banner h2,.coverage h2{font-family:var(--reading-font);font-weight:700;letter-spacing:-.035em;line-height:1.2}
.players-panel h2{font-size:28px}
.player-tile{align-items:center;padding-block:15px}
.player-tile strong{font-weight:600}
.public-avatar{position:relative;display:inline-grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;overflow:hidden;background:#e6ebef;color:#52616b;font:600 10px/1 var(--reading-font);letter-spacing:0}
.public-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.public-avatar-rail{width:40px;height:40px;font-size:12px}
.public-avatar-hero{width:124px;height:124px;font-size:36px}
.player-hero-portrait{position:relative;display:inline-block;line-height:1}
.player-hero-portrait>.heart{position:absolute;right:-5px;bottom:0;width:32px;height:32px}
.photo-credit{font-size:11px;line-height:1.5;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.player-hero-side{gap:12px}
.player-hero h1{overflow-wrap:anywhere}.player-hero .highlight{white-space:normal;max-width:100%}
.standalone-matches{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.standalone-matches>.match:first-child{border-top:0}
.follow-banner{background:#fff8d6;border:1px solid #f0df98;border-radius:12px}
.follow-banner h2{font-size:28px}
.button{border-radius:8px}
.site-footer{flex-wrap:wrap;font-size:12px}
.site-footer nav{gap:12px 20px}
.site-footer nav a{min-height:36px;display:inline-flex;align-items:center}
@media(max-width:700px){
 .page-hero h1,.error-page h1{font-size:clamp(36px,9.4vw,50px)}
 .page-hero p{font-size:13px}
 .day-card strong{font-size:23px}
 .header-app{border-color:var(--line)}
 .page-kicker{font-size:9px;letter-spacing:.02em}
 .players-panel h2{font-size:26px}
 .follow-banner h2{font-size:25px}
 .public-avatar{width:26px;height:26px;font-size:9px}
 .public-avatar-rail{width:34px;height:34px;font-size:11px}
 .public-avatar-hero{width:70px;height:70px;font-size:24px}
 .player-hero-portrait>.heart{width:22px;height:22px}
 .player-hero h1{max-width:calc(100vw - 120px)}
 .player-hero-side{right:4px;gap:6px}
 .photo-credit{font-size:9px}
 .score-table tbody th{gap:6px}
 .filter-group button{min-height:40px}
}

/* Permanent match pages share the public score cards and readable type. */
.match-permalink{display:inline-flex;gap:8px;align-items:center;min-height:36px;margin-top:6px;font-size:12px;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.match-hero{padding-bottom:24px}
.match-hero h1{font-size:clamp(30px,4vw,52px);overflow-wrap:anywhere}
.match-hero .versus{display:block;font-size:.42em;line-height:1.8;font-weight:500;color:var(--muted);letter-spacing:0}
.match-hero .match-competition{font-size:18px;font-weight:600;max-width:60ch}
.match-answer{font-size:15px;line-height:1.7;color:var(--muted);margin:0 0 20px;max-width:68ch}
.match-facts{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;margin:24px 0}
.match-facts>div{padding:14px 0;border-bottom:1px solid var(--line);min-width:0}
.match-facts dt{font-size:12px;color:var(--muted)}
.match-facts dd{margin:4px 0 0;font-weight:600;overflow-wrap:anywhere}
.match-player-links{display:grid;gap:14px;margin-top:20px}
.match-player-links a{font-size:14px;display:block}
.match-explainer{margin-top:32px;max-width:66ch}
.match-explainer h2{font-size:24px;letter-spacing:-.025em}
.match-explainer p{color:var(--muted);font-size:14px}
@media(max-width:400px){.match-facts{grid-template-columns:1fr}.match-hero .match-competition{font-size:16px}.match-detail .scores-toolbar{gap:10px}.match-detail .scores-toolbar h2{font-size:20px}}

/* Public directories are readable and navigable before JavaScript runs. */
.browse-links{display:flex;flex-wrap:wrap;gap:12px 24px;margin:0 0 28px;font-weight:600;font-size:14px}.browse-links a,.directory-pagination a{color:inherit;text-decoration:underline;text-underline-offset:4px}.directory-hero h1{max-width:950px;font-size:clamp(36px,5.5vw,70px);line-height:1.08;overflow-wrap:anywhere}.directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.directory-card{display:flex;align-items:center;gap:14px;min-height:100px;border:1px solid var(--line);border-radius:12px;padding:20px;background:var(--card,#fff);text-decoration:none;color:inherit}.directory-card>span:not(.public-avatar){min-width:0}.directory-card>span:last-child{margin-left:auto}.directory-card strong{display:block;font-size:16px;line-height:1.5;overflow-wrap:anywhere}.directory-card small{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:4px}.directory-card:hover{border-color:var(--ink)}.directory-card:focus-visible{outline:3px solid #1674cc;outline-offset:3px}.directory-pagination{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:30px 0 44px;font-size:14px}.tournament-heading h3 a,.match-facts dd a{color:inherit;text-underline-offset:3px}.site-header nav{gap:20px}.directory-hero .page-kicker{border:0;padding:0 0 20px}
@media(max-width:1000px){.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-header .header-app{display:none}}
@media(max-width:600px){.directory-grid{grid-template-columns:1fr}.directory-card{min-height:88px;padding:18px}.site-header .header-inner{gap:18px}.site-header nav{gap:12px;font-size:11px;flex-wrap:wrap}.directory-pagination{font-size:12px;gap:12px}.directory-hero h1{font-size:38px}.directory-hero{padding:28px 0}.browse-links{font-size:13px;gap:12px 18px}.directory-card strong{font-size:16px}}
.schedule-options{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);font-weight:700}
.schedule-options a,.protected-matches a{text-decoration:underline;text-underline-offset:3px}
.schedule-options button{padding:8px 14px;border:1px solid currentColor;background:transparent;border-radius:4px}
.protected-matches{list-style:none;padding:0;margin:0 0 32px}
.profile-options{padding-block:6px;font-size:.875rem}
.tournament-identity{padding-block:1.25rem}
.tournament-identity p{margin:.5rem 0}
.tournament-day+.tournament-day{margin-top:1.1rem}
.tournament-day .scores-toolbar>span{text-align:right}
.player-follow{margin-bottom:0}
.profile-identity{align-items:center;gap:1rem;padding-block:1.1rem;border-bottom:0}
.profile-identity .player-overline{margin-bottom:.25rem}
.profile-identity .player-hero-side{position:static;width:auto;flex-shrink:0}
.profile-identity .public-avatar-hero{width:64px;height:64px;font-size:1.5rem}
.next-section>.scores-toolbar{padding:.6rem 0;border:0}
.featured-fixture{background:white;border:1px solid var(--line);border-left:4px solid var(--yellow);border-radius:10px;padding:clamp(16px,2.5vw,26px)}
.featured-fixture h3{font-size:clamp(1.35rem,3vw,1.95rem);line-height:1.2;overflow-wrap:anywhere}
.featured-fixture h3 span{font-size:1rem;font-weight:500;color:var(--muted)}
.featured-fixture h3 a,.fixture-event a{text-decoration:underline;text-underline-offset:.15em;text-decoration-thickness:1px}
.fixture-start{font-size:1.05rem;font-weight:650;margin:.6rem 0 .25rem;font-variant-numeric:tabular-nums}
.fixture-event,.profile-links{font-size:.875rem}
.fixture-event{color:var(--muted);margin:0 0 .75rem}
.profile-links{display:flex;align-items:baseline;flex-wrap:wrap;gap:.5rem 1.2rem;margin:1rem 0}
.player-calendar{max-width:100%;min-width:0}
.player-calendar summary{cursor:pointer;font-weight:650;text-decoration:underline;text-underline-offset:.2em}
.player-calendar[open]{flex-basis:100%;padding:.6rem 0}
.player-calendar p{margin:.5rem 0}
.player-calendar label{display:block;margin:.5rem 0;font-size:.875rem}
.player-calendar input{display:block;width:100%;max-width:32rem;padding:.45rem;border:1px solid var(--line);border-radius:5px;font:inherit}
.fixture-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:.6rem 0}
.fixture-actions:empty,.fixture-actions:not(:has(:not([hidden]))){display:none}
.fixture-actions button,.fixture-actions a{min-height:40px;border:1px solid var(--line);border-radius:6px;padding:.45rem .75rem;background:white;color:var(--ink);font:600 .875rem/1.5 var(--reading-font);text-decoration:none}
.fixture-actions [aria-pressed=true]{background:var(--ink);color:white}
.fixture-actions [hidden]{display:none!important}
/* Reserve the row before the preference module reads this browser's follows.
   The overview and draw links below must stay under the pointer during load. */
html[data-score-controls] .fixture-actions[data-follow-profile]{display:flex;min-height:40px}
html[data-score-controls] .profile-options [data-score-toggle][hidden]{display:inline-block!important;visibility:hidden}
.fixture-actions [data-open-following]{display:inline-flex;align-items:center;color:var(--ink);text-decoration:underline;text-underline-offset:.2em;border-color:transparent}
.fixture-actions a:hover,.fixture-actions button:hover{border-color:var(--ink)}
.match-notice:not(:empty){position:fixed;z-index:3;bottom:1rem;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:.6rem 1rem;border-radius:6px;font-size:.9rem;max-width:90vw}
.shared-match .shared-label{font-weight:650;color:var(--live);margin-bottom:.65rem}
.shared-match .button{margin-top:1rem}
.profile-identity h1{max-width:none}
.protected-matches li{display:grid;gap:8px;padding:16px 0;border-top:1px solid var(--line)}

[data-server-filters] .filter-group {display:flex;flex-wrap:wrap;gap:.35rem}
[data-server-filters] a {display:inline-block;padding:.4rem .7rem;border:1px solid currentColor;border-radius:2rem;text-decoration:none;color:inherit}
[data-server-filters] a[aria-current] {background:var(--ink,#172014);color:var(--paper,#fff)}
[data-server-filters] a span {font-variant-numeric:tabular-nums}

.public-score-day{padding:1rem 0 .7rem}
.public-score-day h1{font:750 clamp(1.85rem,4vw,2.8rem)/1.1 var(--reading-font);letter-spacing:-.045em}
.public-score-day p{margin:.25rem 0;font-size:.95rem;color:var(--muted)}
.public-score-day .score-day-count{color:var(--ink);font-weight:650}

.directory-search{margin:.6rem 0 1rem;max-width:42rem}
.directory-search label{display:block;font-weight:700;margin:0 0 .35rem}
.directory-search>div{display:flex;flex-wrap:wrap;gap:.4rem}
.directory-search input,.directory-search button{font:inherit;border:1px solid var(--line);border-radius:6px;min-height:44px;padding:.5rem .7rem}
.directory-search input{flex:1 1 12rem;min-width:0;background:white}
.directory-search button{color:var(--ink);background:var(--surface)}
.directory-search button[type=submit]{background:var(--ink);color:white}
.directory-search [role=status]{margin:.35rem 0;font-size:.9rem}
.directory-result{display:grid;gap:.3rem;align-content:center;padding:1rem;border:1px solid var(--line);border-radius:8px;background:white}
.directory-result small{color:var(--muted)}
[data-player-results][hidden],[data-player-list][hidden],.directory-search[hidden]{display:none}

.entity-details-links{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1.2rem;margin:.55rem 0;font-size:.95rem}
.entity-details-links a{display:inline-flex;align-items:center;min-height:40px;text-decoration:underline;text-underline-offset:.2em;font-weight:650}
.entity-details-links[hidden],.entity-details-links a[hidden]{display:none}

.public-phase-heading{font-size:1.05rem;margin:.75rem 0 -.6rem}
.public-phase-heading span{color:var(--muted);font-variant-numeric:tabular-nums}

.shared-info{margin:.8rem 0;font-size:1rem}
.shared-info summary{cursor:pointer;text-decoration:underline;text-underline-offset:.18em}

.archive-picker{display:flex;align-items:flex-end;gap:.5rem 1rem;flex-wrap:wrap;margin:0 0 1.25rem}
.archive-picker label{display:grid;gap:.3rem;font-weight:650}
.archive-picker input,.archive-picker button{background:white;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:.5rem .75rem;min-height:44px;font:inherit}
.archive-picker button{background:var(--ink);color:white;font-weight:650}
.archive-picker p{flex-basis:100%;margin:0;color:var(--muted)}
.archive-picker p:empty{display:none}
.protected-matches [data-public-players]{display:inline-flex;align-items:center;min-height:44px;padding:.4rem .6rem;color:var(--ink);background:white;border:1px solid var(--line);border-radius:6px;font:inherit;cursor:pointer}
