/* Public spectator polish only. Desktop and organizer pages are unaffected. */
.mobile-spectator-nav,.mobile-hero-live{display:none!important}
.mobile-tournament-links{display:none}
@media (max-width:640px){
 /* Suppress the native blue tap overlay on touch; retain keyboard focus. */
 :is(.mobile-home,.mobile-live),:is(.mobile-home,.mobile-live) *{-webkit-tap-highlight-color:transparent}
 :where(.mobile-home,.mobile-live) :is(a,button,[role="button"],[tabindex]):focus-visible{outline:2px solid #912038;outline-offset:2px}
 :is(.mobile-home,.mobile-live){--mobile-nav-height:66px;padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px) + 8px)}
 .mobile-spectator-nav{position:fixed;z-index:40;inset:auto 0 0;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;min-height:var(--mobile-nav-height);padding:5px max(6px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px));border-top:1px solid #e4cbd2;background:#fffdfd;box-shadow:0 -5px 20px #4c1b2910}
 .mobile-spectator-nav a{min-width:0;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#694f58;font:700 10px/1.2 system-ui,sans-serif;text-decoration:none;border-radius:12px;padding:4px 1px}
 .mobile-spectator-nav a svg{width:22px;height:22px;flex:none}
 .mobile-spectator-nav a[aria-current]{background:#f7e8ec;color:#8c1a2c;font-weight:850}
 .mobile-spectator-nav a:focus-visible{outline:2px solid #8c1a2c;outline-offset:-2px}
 /* A single primary navigation on mobile; desktop header remains unchanged. */
 .mobile-home .topbar-inner,.mobile-live .top-inner{min-height:0;display:flex;align-items:center;justify-content:center;flex-direction:row;padding:7px 12px;gap:0}
 .mobile-home .top-nav,.mobile-live .top-links{display:none}
 .mobile-home .mobile-tournament-links{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 8px;align-items:center}
 .mobile-home .mobile-tournament-links a{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:6px 14px;border:1px solid #e4cbd2;border-radius:10px;color:#694f58;font-size:12px;font-weight:750;text-decoration:none;background:#fffdfd}
 .mobile-home .mobile-tournament-links a[aria-current]{color:#8c1a2c;background:#f7e8ec;border-color:#c88b9a}
 .mobile-home .mobile-tournament-links a:focus-visible{outline:2px solid #8c1a2c;outline-offset:2px}
 .mobile-home #view-content{scroll-margin-top:76px}
 .mobile-home .container,.mobile-live .container{padding-left:12px;padding-right:12px}
 .mobile-home .hero-inner{min-height:0;padding-top:16px;padding-bottom:25px}
 .mobile-home .public-event-brandline{gap:8px;margin-bottom:6px}
 .mobile-home .public-event-logo{flex-basis:64px;width:64px;height:51px}
 .mobile-home .hero-kicker{font-size:9px;letter-spacing:.15em}
 .mobile-home .hero-kicker:after{margin-top:6px}
 .mobile-home .hero h1{font-size:clamp(38px,11.9vw,65px);line-height:.97;margin:9px 0 8px;max-width:100%;overflow-wrap:anywhere}
 .mobile-home .hero-event-meta{font-size:10px;letter-spacing:.025em;line-height:1.4;gap:5px;margin:6px 0 8px}
 .mobile-home .hero-subtitle{font-size:12px;line-height:1.4;max-width:32ch;margin:8px 0 11px}
 .mobile-home .hero-actions{display:flex;flex-wrap:wrap;gap:7px;max-width:440px}
 .mobile-home .hero-actions .btn{min-height:44px;min-width:0;flex:1 1 42%;padding:8px 10px;font-size:11px}
 .mobile-home .hero-actions .mobile-hero-live{display:flex!important;flex:1 1 100%;font-size:13px}
 .mobile-home .hero-actions .mobile-hero-live span:first-child{font-size:10px}
 .mobile-home .stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:-8px;gap:7px}
 .mobile-home .stat{min-width:0;min-height:0;padding:10px 9px 10px 39px;border-radius:13px;box-shadow:0 4px 12px #4c1b2912;backdrop-filter:none}
 .mobile-home .stat-icon{width:22px;height:22px;left:10px;top:12px}
 .mobile-home .stat-label{font-size:9px;letter-spacing:.055em;line-height:1.2;overflow-wrap:anywhere}
 .mobile-home .stat strong{font-size:29px;line-height:1;margin:4px 0}
 .mobile-home .stat-location strong{font-size:25px}
 .mobile-home .stat-meta{font-size:10px;line-height:1.3;overflow-wrap:anywhere}
 .mobile-home .spectator-live{margin-top:15px;padding:13px;box-shadow:0 6px 16px #53162a10}
 .mobile-home .spectator-live-head{gap:10px;margin-bottom:12px}
 .mobile-home .spectator-live-head .btn{min-height:44px}
 .mobile-home .spectator-court-grid{gap:9px}
 .mobile-home .spectator-court{padding:12px;gap:6px;box-shadow:none}
 .mobile-home .spectator-court-top{gap:6px}
 .mobile-home .spectator-court-top>strong{font-size:19px}
 .mobile-home .spectator-court-empty{min-height:0;gap:3px;padding:3px 0}
 .mobile-home .court-empty-icon{display:none}
 .mobile-home .spectator-court-empty strong{font-size:20px}
 .mobile-home .spectator-court-empty small{font-size:12px;line-height:1.4}
 .mobile-home .spectator-court-foot{padding-top:8px;font-size:12px}
 .mobile-home .spectator-court-score{grid-template-columns:minmax(0,1fr) 27px 27px 43px;gap:5px;font-size:13px;min-height:42px}
 .mobile-home .spectator-court-score strong{font-size:19px;font-variant-numeric:tabular-nums}
 .mobile-home .spectator-court-score b{font-variant-numeric:tabular-nums}
 .mobile-live .topbar{position:relative;top:auto;backdrop-filter:none}
 .mobile-live .top-inner{min-height:0;padding-top:6px;padding-bottom:6px;flex-wrap:wrap}
 .mobile-live .top-links a{display:flex;align-items:center;min-height:44px}
 /* Anchor the artwork's right edge: preserve the TPF250 seal and mountain on phones. */
 .mobile-live .hero{min-height:0;padding:12px 14px 15px;border-radius:0 0 15px 15px;background-position:center, right center}
 .mobile-live .live-event-brandline{gap:8px;margin-bottom:5px}
 .mobile-live .live-event-logo{width:60px;height:46px;flex-basis:60px}
 .mobile-live .hero h1{font-size:clamp(31px,8.6vw,45px);line-height:.98;margin:5px 0 6px}
 .mobile-live .hero p:not(.eyebrow){font-size:11px;line-height:1.4;margin:5px 0}
 .mobile-live .live-now-section{margin-top:18px}
 .mobile-live .live-now-section .segment-heading{gap:8px;margin-bottom:8px}
 .mobile-live .live-now-section .segment-heading h2{font-size:clamp(27px,7.5vw,43px);line-height:1}
 .mobile-live .live-section-status{gap:4px}
 /* Keep all three counter elements centered, with space for 0, 1 or 2 courts. */
 .mobile-live .live-section-status .hero-count{width:clamp(88px,23vw,96px);height:clamp(88px,23vw,96px);box-shadow:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px;text-align:center}
 .mobile-live .live-section-status .hero-count .pulse{width:9px;height:9px;flex:none;margin:0}
 .mobile-live .live-section-status .hero-count strong{font-size:34px;line-height:1;font-variant-numeric:tabular-nums;margin:0}
 .mobile-live .live-section-status .hero-count small{font-size:8px;line-height:1.15;letter-spacing:.06em;margin:0;white-space:nowrap}
 .mobile-live .live-section-status .refresh-indicator{font-size:9px}
 .mobile-live .live-court-switch{top:0;padding:6px 0;gap:5px;backdrop-filter:none;background:#f7f5f4}
 .mobile-live .live-court-switch button{min-height:44px;font-size:12px;padding:6px 3px}
 .mobile-live .live-grid{gap:9px}
 .mobile-live .live-card{min-width:0;border-radius:15px;box-shadow:0 5px 15px #56213312}
 .mobile-live .live-card-header{padding:10px 12px;gap:7px}
 .mobile-live .live-grid .live-card .live-card-header strong{font-size:13px;overflow-wrap:anywhere}
 .mobile-live .live-card-body,.mobile-live .live-grid.single-court .live-card-body{padding:10px}
 .mobile-live .live-row,.mobile-live .live-grid.single-court .live-row{grid-template-columns:minmax(0,1fr) 31px 36px 48px;gap:4px}
 .mobile-live .live-row.live-header{font-size:9px;min-height:0}
 .mobile-live .live-row .digit,.mobile-live .live-grid.single-court .live-row .digit{min-height:44px;font-size:22px;font-variant-numeric:tabular-nums}
 .mobile-live .live-row .point{background:#8c1a2c;color:#fff}
 .mobile-live .live-row .name,.mobile-live .live-grid.single-court .live-row .name{font-size:13px;min-width:0;overflow-wrap:anywhere}
 .mobile-live .live-row .live-pair-open{font-size:13px;min-height:44px;white-space:normal;overflow-wrap:anywhere;text-align:left}
 .mobile-live .court-idle-card{min-height:0}
 .mobile-live .court-standby{min-height:98px;padding:12px 14px;gap:4px}
 .mobile-live .court-standby>span{display:none}
 .mobile-live .court-standby h3{font-size:24px;margin:0}
 .mobile-live .court-standby p{font-size:12px;line-height:1.4;margin:4px 0 0}
 :is(.mobile-home,.mobile-live) .public-programme{padding:14px 12px;margin:16px 0 20px;box-shadow:0 5px 15px #3e112010}
 :is(.mobile-home,.mobile-live) .public-programme-head{gap:7px;margin-bottom:10px}
 :is(.mobile-home,.mobile-live) .public-programme-head h2{font-size:29px}
 :is(.mobile-home,.mobile-live) .programme-time-zone{font-size:10px;padding:5px 8px}
 :is(.mobile-home,.mobile-live) .programme-list{gap:7px}
 :is(.mobile-home,.mobile-live) .programme-card{grid-template-columns:minmax(82px,auto) minmax(0,1fr);gap:9px;padding:10px}
 :is(.mobile-home,.mobile-live) .programme-time strong{font-size:16px;white-space:normal;overflow-wrap:anywhere}
 :is(.mobile-home,.mobile-live) .programme-time small{font-size:10px;line-height:1.3}
 :is(.mobile-home,.mobile-live) .programme-info strong{font-size:13px}
 :is(.mobile-home,.mobile-live) .programme-info span,:is(.mobile-home,.mobile-live) .programme-info small{font-size:11px;overflow-wrap:anywhere}
 :is(.mobile-home,.mobile-live) .programme-delay{grid-column:1/-1}
 .mobile-home .public-fixture{grid-template-columns:minmax(0,1fr);gap:5px;padding:10px 0}
 .mobile-home .public-fixture .fixture-status,.mobile-home .public-fixture-recap-link{grid-column:1;justify-self:start}
 .mobile-home .public-fixture .fixture-time{font-weight:850;color:#8c1a2c;font-size:12px}
 .mobile-live .fixture{padding:12px;gap:7px;box-shadow:none;min-width:0}
 .mobile-live .fixture strong,.mobile-live .fixture .live-pair-open{font-size:13px;overflow-wrap:anywhere}
 .mobile-live .fixture .live-pair-open,.mobile-home .public-fixture-recap-link{min-height:44px}
 .mobile-home .kb-buttons button{min-height:44px;min-width:44px}
 .mobile-home .kb-buttons{gap:5px}
 .mobile-home .kb-viewport{height:clamp(340px,56svh,480px)}
 .mobile-home .group-card-open,.mobile-home .division-filter button{min-height:44px}
 .mobile-home .public-pair-dialog,.mobile-live .live-pair-dialog,.mobile-live .result-recap-dialog{max-height:82vh;max-height:82dvh;overflow-y:auto}
 .mobile-home .public-live-alert,.mobile-live .toast{bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px) + 10px)}
 .mobile-home .public-live-alert button,.mobile-live .toast button{min-height:44px;min-width:44px}
 .mobile-home #publicProgramme,.mobile-live #liveCourts,.mobile-live #liveProgramme{scroll-margin-top:12px}
 .mobile-live #liveCourtGrid{scroll-margin-top:58px}
}
@media(max-width:360px){
 .mobile-home .stat{padding-left:34px}
 .mobile-home .stat-icon{left:8px;width:19px;height:19px}
 .mobile-home .stat-location strong{font-size:22px}
 .mobile-live .live-row,.mobile-live .live-grid.single-court .live-row{grid-template-columns:minmax(0,1fr) 28px 31px 42px;gap:3px}
 .mobile-live .live-row .digit,.mobile-live .live-grid.single-court .live-row .digit{font-size:20px}
 :is(.mobile-home,.mobile-live) .programme-card{grid-template-columns:76px minmax(0,1fr);gap:7px}
}
@media(prefers-reduced-motion:reduce){
 .mobile-spectator-nav *{transition:none!important;animation:none!important}
}
