/* CP23172: mobile screenshots – one header, real readability, consistent light/dark. */
:root{--zk72-green:#176b4a;--zk72-ink:#183c2b;--zk72-line:#d5e4d9;--zk72-surface:#fff}
html,body{max-width:100%;overflow-x:clip}
body,button,input,select,textarea{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
:where(.zk-unified-header){z-index:1000!important}
.zk-unified-header .zk-u-brand img{max-height:38px;width:auto;object-fit:contain}
.zk-unified-header .zk-u-tools{display:flex!important;align-items:center;justify-content:flex-end;min-width:0;gap:6px!important}
.zk-unified-header .zk-u-tools>*{flex-shrink:0}
.zk-unified-header .zk-u-tools :is(.zk-u-search,.zk-u-mode,.zk-u-bell,.zk-u-menu){width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}
.zk-unified-header .zk-u-tools :is(.zk-u-search,.zk-u-mode,.zk-u-bell,.zk-u-menu) svg{width:20px!important;height:20px!important}
@media(max-width:520px){
 .zk-unified-header .zk-u-brand{min-width:0!important;gap:6px!important}
 .zk-unified-header .zk-u-brand strong{font-size:clamp(11px,3.5vw,15px)!important;white-space:nowrap!important}
 .zk-unified-header .zk-u-brand img{max-height:32px!important;max-width:38px!important}
 .zk-unified-header .zk-u-tools{gap:5px!important}
 .zk-unified-header .zk-u-tools :is(.zk-u-search,.zk-u-mode,.zk-u-bell,.zk-u-menu){width:35px!important;height:37px!important;min-width:35px!important;max-width:35px!important;flex:0 0 35px!important}
}
@media(max-width:375px){.zk-unified-header .zk-u-brand strong{font-size:11px!important}.zk-unified-header .zk-u-tools{gap:3px!important}.zk-unified-header .zk-u-tools :is(.zk-u-search,.zk-u-mode,.zk-u-bell,.zk-u-menu){width:31px!important;min-width:31px!important;max-width:31px!important;flex-basis:31px!important}}
/* Tour: actual league checkbox selections; no page-wide giant buttons or arrow emojis. */
#zk23129-root .zk72-league-select{grid-column:span 1;align-self:end;border:1px solid var(--zk72-line);border-radius:12px;background:#fff;min-width:0;position:relative}
#zk23129-root .zk72-league-select>summary{cursor:pointer;min-height:44px;padding:12px 15px;color:#173e28;font-size:14px;font-weight:800;list-style:none}
#zk23129-root .zk72-league-select>summary:after{content:"⌄";float:right;color:#176b4a}
#zk23129-root .zk72-league-options{display:grid;gap:7px;padding:10px 14px 15px;border-top:1px solid #dde9df;max-height:280px;overflow:auto}
#zk23129-root .zk72-league-option{display:flex;align-items:center;gap:10px;border:0;padding:8px 2px;color:#234d35;font-size:13px;line-height:1.3;font-weight:650;cursor:pointer}
#zk23129-root .zk72-league-option input{width:17px;height:17px;accent-color:#176b4a;flex:0 0 auto}
#zk23129-root .zk72-league-all{background:#e8f5ec;color:#176b4a;border:1px solid #a8d5b8;border-radius:8px;min-height:36px;font-size:12px;font-weight:800;cursor:pointer}
#zk23129-root .zk60-tour-result{padding:clamp(15px,2.5vw,22px)!important;border-radius:15px!important;display:grid;gap:9px!important;min-width:0}
#zk23129-root .zk60-tour-result .zk65-option-badge,#zk23129-root .zk60-tour-result .zk72-tour-kicker{font-size:10px!important;font-weight:850;color:#176b4a;letter-spacing:.08em;margin:0!important}
#zk23129-root .zk60-tour-result .zk72-tour-match{font:850 clamp(17px,2.6vw,23px)/1.24 Inter,system-ui,sans-serif!important;letter-spacing:-.025em;color:#173a28;margin:0!important;overflow-wrap:anywhere}
#zk23129-root .zk60-tour-result .zk72-tour-subline{font-size:11px!important;color:#6b8773;margin:0!important}
#zk23129-root .zk60-tour-result>p:not(.zk72-tour-match){font-size:13px!important;line-height:1.45!important;margin:1px 0!important}
#zk23129-root .zk60-tour-result .zk29-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
#zk23129-root .zk60-tour-result .zk29-actions>:last-child:nth-child(odd){grid-column:1/-1}
#zk23129-root .zk60-tour-result .zk29-actions .zk29-action{padding:12px 9px!important;min-height:47px!important;white-space:normal!important;text-align:center!important;display:flex;align-items:center;justify-content:center;font:800 12px/1.35 Inter,system-ui,sans-serif!important;border-radius:10px!important}
#zk23129-root .zk72-route-caution{background:#f4f8f5;border:1px solid #dbe8df;border-radius:9px;padding:8px 10px}
#zk23129-root .zk72-route-caution summary{font-size:11px!important;color:#577160;cursor:pointer}
#zk23129-root .zk72-route-caution p{font-size:11px!important;margin:7px 0!important;color:#496b54}
#zk23129-root .zk72-tour-possible{font-size:12px!important;font-weight:750;color:#176b4a}
#zk23129-root .zk60-tour-result .zk65-sources{margin-top:2px}
@media(max-width:390px){#zk23129-root .zk60-tour-result .zk29-actions{grid-template-columns:1fr!important}#zk23129-root .zk60-tour-result .zk29-actions>*{grid-column:auto!important}}
/* Groundhopper: fewer giant text blocks, real permanent ranking, original verification flow. */
body:has(#ground-grid) .community-subhero{padding:20px 0!important}
body:has(#ground-grid) .community-subhero h1{font:850 clamp(25px,5vw,38px)/1.13 Inter,system-ui,sans-serif!important;letter-spacing:-.03em}
body:has(#ground-grid) .community-subhero p{font:400 13px/1.55 Inter,system-ui,sans-serif!important;max-width:660px}
body:has(#ground-grid) .groundhop-toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important}
body:has(#ground-grid) .groundhop-stat{min-width:0;padding:14px!important;text-align:left!important;border-radius:12px!important}
body:has(#ground-grid) .groundhop-stat strong{font-size:27px!important;line-height:1.1!important}
body:has(#ground-grid) .groundhop-stat span{font:750 11px/1.4 Inter,system-ui,sans-serif!important;letter-spacing:.02em!important;display:block;margin-top:6px}
body:has(#ground-grid) .zk72-optional-month{display:none!important}
body:has(#ground-grid) .ground-search-wrap{grid-column:1/-1;width:100%;min-width:0}
body:has(#ground-grid) :is(.community-data-note,.ground-proof-rules p,.ground-modal-intro){font:400 12px/1.55 Inter,system-ui,sans-serif!important}
body:has(#ground-grid) .ground-filter-tabs{display:flex!important;flex-wrap:wrap;gap:8px!important}
body:has(#ground-grid) .ground-filter-tabs button{font:800 12px Inter,system-ui,sans-serif!important;min-height:41px!important;padding:10px 13px!important}
body:has(#ground-grid) .zk72-ground-rank-sub{font-size:13px;line-height:1.5;color:#cce4d2;margin-top:8px}
body:has(#ground-grid) .groundhopper-ranking{overflow-x:auto}
body:has(#ground-grid) .zk60-groundhopper-table{width:100%;min-width:0!important}
body:has(#ground-grid) .zk60-groundhopper-table th,body:has(#ground-grid) .zk60-groundhopper-table td{padding:11px 8px!important;font-size:12px!important}
body:has(#ground-grid) .ground-primary-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
body:has(#ground-grid) .ground-primary-actions .ground-primary-btn{min-height:43px!important}
@media(max-width:460px){body:has(#ground-grid) .groundhop-toolbar{grid-template-columns:1fr 1fr!important}body:has(#ground-grid) .ground-primary-actions>span{display:none}}
/* Trip: single readable hero with real actions; remove duplicative onboarding. */
body:has(#zk186-trip-page) #zk65-trip-hero{display:none!important}
body:has(#zk186-trip-page) #zk186-trip-page{max-width:1120px!important;width:calc(100% - 30px)!important;margin:20px auto 75px!important;padding:0!important;letter-spacing:normal!important}
body:has(#zk186-trip-page) .zk186-trip-hero{padding:clamp(18px,3vw,25px)!important;margin:0 0 15px!important;min-height:0!important;background:#f2f8f3!important;color:#193d2b!important;border:1px solid #d3e4d8!important;border-radius:17px!important}
body:has(#zk186-trip-page) .zk186-trip-hero :is(h1,h2,strong){font-family:Inter,system-ui,sans-serif!important;color:#173c28!important;letter-spacing:-.025em!important;text-transform:none!important}
body:has(#zk186-trip-page) #zk186-trip-heading{font:850 clamp(26px,4vw,36px)/1.15 Inter,system-ui,sans-serif!important;margin:5px 0!important}
body:has(#zk186-trip-page) #zk186-trip-heading em{font-style:normal!important}
body:has(#zk186-trip-page) #zk186-trip-intro{color:#4e6c58!important;font:400 13px/1.55 Inter,system-ui,sans-serif!important;margin:9px 0!important}
body:has(#zk186-trip-page) .zk186-overline{font:750 10px Inter,system-ui,sans-serif!important;color:#3b7752!important;letter-spacing:.06em!important}
body:has(#zk186-trip-page) .zk186-hero-links{display:flex!important;flex-wrap:wrap;gap:9px!important;margin-top:10px!important}
body:has(#zk186-trip-page) .zk186-hero-links>*{font:800 12px Inter,system-ui,sans-serif!important;min-height:43px!important;border-radius:10px!important;padding:12px!important;margin:0!important}
body:has(#zk186-trip-page) .zk186-hero-links button{background:#176b4a!important;color:#fff!important}
body:has(#zk186-trip-page) .zk186-hero-links a{background:#fff!important;color:#176b4a!important;border:1px solid #bdd8c4!important}
body:has(#zk186-trip-page) .zk186-panel{border:1px solid #d9e5dc!important;border-radius:14px!important;margin:10px 0!important;box-shadow:none!important}
body:has(#zk186-trip-page) .zk186-panel :is(h2,summary){font-family:Inter,system-ui,sans-serif!important;letter-spacing:normal!important;text-transform:none!important}
body:has(#zk186-trip-page) .zk186-panel summary{font-weight:800!important;font-size:14px!important;padding:15px!important}
body:has(#zk186-trip-page) #zk186-trip-status{font-size:10px!important}
.zk72-trip-login{font-size:12px!important;line-height:1.5!important;color:#506b59!important;margin:10px 0 0!important}
.zk72-trip-login a{color:#176b4a!important;font-weight:800}
.zk72-retry{background:#176b4a;color:#fff;border:0;border-radius:8px;padding:11px 15px;font-weight:800;cursor:pointer}
@media(max-width:540px){body:has(#zk186-trip-page) #zk186-trip-page{margin:12px auto 72px!important;width:calc(100% - 24px)!important}body:has(#zk186-trip-page) .zk186-hero-head{display:flex!important;align-items:flex-start!important;gap:8px!important}body:has(#zk186-trip-page) .zk186-hero-links>*{flex:1 1 145px;text-align:center!important}body:has(#zk186-trip-page) .zk186-panel h2{font-size:17px!important}}
/* Club information: data and booking are immediately visible, long descriptions expandable. */
.zk72-club-details,.zk72-club-guide-extra{border:1px solid #d5e6da;border-radius:14px;background:#fff;margin:13px auto;max-width:1150px;padding:0;overflow:hidden}
.zk72-club-details>summary,.zk72-club-guide-extra>summary{cursor:pointer;list-style:none;font:850 14px/1.45 Inter,system-ui,sans-serif;color:#19452e;padding:16px 18px}
.zk72-club-details>summary:after,.zk72-club-guide-extra>summary:after{content:"⌄";float:right}
.zk72-club-details[open]>summary:after,.zk72-club-guide-extra[open]>summary:after{content:"⌃"}
.zk72-club-details>section,.zk72-club-guide-extra>.zk60-club-guide{margin:6px 12px 14px!important;max-width:calc(100% - 24px)!important}
body:has(.zk72-club-details) .club-v169-overview{scroll-margin-top:80px}
/* Dark mode: make surfaces, typography and controls consistent across old/new pages. */
html[data-zk-theme=dark]{color-scheme:dark;background:#101a14}
html[data-zk-theme=dark] body{background:#101a14!important;color:#ecf5ee!important}
html[data-zk-theme=dark] body :is(.zk29-native-app,.zk186-shell,.content-shell,.page-main,.main-container){color:inherit}
html[data-zk-theme=dark] body :is(.section.light,.zk72-club-details,.zk72-club-guide-extra,.groundhop-stat,.ground-card,.zk29-card,.zk72-league-select,.zk72-route-caution,.zk186-trip-hero,.zk186-panel,.zk72-club-guide-extra .zk60-club-guide){background:#1d3024!important;color:#e7f3e9!important;border-color:#466a50!important}
html[data-zk-theme=dark] body :is(.zk72-tour-match,.zk72-tour-kicker,.zk72-tour-subline,.zk186-trip-hero h1,.zk186-trip-hero strong,.zk186-trip-hero p,.zk186-panel h2,.groundhop-stat span,.zk72-club-details>summary,.zk72-club-guide-extra>summary,.zk72-league-select>summary){color:#e7f3e9!important}
html[data-zk-theme=dark] body :is(input,select,textarea,.zk72-league-options,.zk72-league-option){background:#243c2b!important;color:#eff8ef!important;border-color:#597960!important}
html[data-zk-theme=dark] body :is(.zk186-hero-links a,.zk72-league-all){background:#263d2c!important;color:#c5f0d4!important;border-color:#54795c!important}
html[data-zk-theme=dark] body :is(.zk29-meta,.zk186-muted,.zk72-trip-login,.community-data-note){color:#c2d9c8!important}
html[data-zk-theme=light]{color-scheme:light}
html[data-zk-theme=light] body{background:#f5f8f5;color:#183b28}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* Prevent pre-unified legacy header rails from resurfacing on cached mobile pages. */
.zk-unified-header :is(#zk2257-toolbar,#zk2258-desktop-tools){display:none!important}
/* Keep detailed rules accessible without overwhelming the Groundhopper view. */
.zk72-proof-explainer{margin:10px 0;border:1px solid #d5e6da;border-radius:11px;background:#f5faf6;padding:0}
.zk72-proof-explainer>summary{list-style:none;cursor:pointer;padding:12px 14px;font-size:12px;font-weight:750;color:#24573a}
.zk72-proof-explainer>.community-data-note{margin:0;padding:0 14px 13px;font-size:12px;line-height:1.5}
html[data-zk-theme="dark"] .zk72-proof-explainer{background:#1d3024;color:#e7f3e9;border-color:#466a50}
html[data-zk-theme="dark"] .zk72-proof-explainer>summary{color:#e7f3e9}

/* CP23175: stop numbers must be fully inside the opened timeline card on mobile.
   Previously margin-left:-43px + overflow:hidden cut off 1 / 2 in Safari. */
#zk23129-root .zk65-route-details>ol.zk60-timeline{
  list-style:none!important;
  box-sizing:border-box!important;
  padding:12px 14px 16px!important;
  margin:0!important;
  border-left:0!important;
  overflow:visible!important;
}
#zk23129-root .zk65-route-details .zk60-stop{
  display:flex!important;align-items:flex-start!important;gap:12px!important;
  padding:8px 0 9px!important;margin:0 0 7px!important;min-width:0!important;
}
#zk23129-root .zk65-route-details .zk60-stop-number{
  margin:0!important;position:static!important;transform:none!important;
  flex:0 0 32px!important;width:32px!important;height:32px!important;
  border:2px solid #fff!important;box-sizing:border-box!important;
  display:grid!important;place-items:center!important;
  border-radius:50%!important;background:#176b4a!important;color:#fff!important;
  font:800 14px/1 Inter,system-ui,sans-serif!important;
}
#zk23129-root .zk65-route-details .zk60-stop-content{
  flex:1!important;min-width:0!important;overflow-wrap:anywhere;
}
#zk23129-root .zk65-route-details .zk60-drive{
  margin:5px 0 14px!important;padding:11px 12px!important;overflow-wrap:anywhere;
}
html[data-zk-theme=dark] #zk23129-root .zk65-route-details .zk60-stop-number{
  border-color:#1d3024!important;background:#176b4a!important;color:white!important;
}
