/* CP23371: visual/navigation hardening only. No controls or functions removed.
   Installed after the accepted theme, finder, Kette and community styles. */
:root { scroll-padding-top: 88px; }
#zk23129-root .zk260-summary,
#zk23129-root .zk260-game-card,
#zk23129-root .zk260-form,
#zk23129-root .zk260-itinerary,
#zk23129-root .zk29-tabs,
#ml90-tabs,
#zk218-panel-chat,
#zk218-panel-insider,
#zk67-prices,
.zk368-panel { scroll-margin-top: 90px; }

/* Both result lists and Kette dialogs need legible secondary text. */
#zk23129-root .zk260-game-card h3 span { color:#45644f!important; }
#zk23129-root .zk260-cost small { color:#496653!important; }
#zk23129-root .zk260-main-tabs button small { color:#455f4b!important; }
#zk23129-root .zk260-venue,
#zk23129-root .zk260-facts small,
#zk23129-root .zk260-coverage-row small { color:#496653!important; }
#zk23129-root .zk260-unknown { color:#526b58!important; }
#zk23129-root .zk260-game-card a:focus-visible,
#zk23129-root .zk260-game-card button:focus-visible,
.zk-unified-header button:focus-visible,
.zk-unified-header a:focus-visible {outline:3px solid #77c79a!important;outline-offset:2px;}

/* The canonical header is the only owner of the club-mode control. Older
   zk218-mode-btn must never squeeze a second club switch into this header. */
.zk-unified-header .zk218-mode-btn {display:none!important;}
.zk-unified-header {overflow:visible!important;}
.zk-unified-header .zk-u-inner {min-width:0;max-width:100%;}
.zk-unified-header .zk-u-tools {min-width:0;}
.zk-unified-header .zk-u-mode {flex-shrink:0;}
.zk-unified-header .zk-u-pop,
.zk-unified-header .zk-u-drawer,
.zk-unified-header .zk-u-mode-panel {max-width:calc(100vw - 16px);box-sizing:border-box;}
@media(max-width:760px){
 .zk-unified-header .zk-u-inner {display:flex;align-items:center;justify-content:space-between;gap:4px!important;padding-left:10px!important;padding-right:10px!important;}
 .zk-unified-header .zk-u-brand {flex:0 1 auto;min-width:0;max-width:42%;display:flex;align-items:center;gap:5px;overflow:hidden;}
 .zk-unified-header .zk-u-brand strong {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:clamp(10px,2.8vw,13px)!important;}
 .zk-unified-header .zk-u-brand img {width:32px!important;height:32px!important;object-fit:contain;flex-shrink:0;}
 .zk-unified-header .zk-u-tools {display:flex!important;flex:0 0 auto;align-items:center;gap:3px!important;flex-wrap:nowrap!important;}
 .zk-unified-header .zk-u-tools :is(.zk-u-search,.zk-u-mode,.zk-u-bell,.zk-u-menu) {
   display:inline-flex!important;flex:0 0 36px!important;align-items:center;justify-content:center;
   width:36px!important;min-width:36px!important;max-width:36px!important;height:39px!important;min-height:39px!important;padding:6px!important;
 }
 .zk-unified-header .zk-u-mode>span {display:none!important;}
 .zk-unified-header .zk-u-tools svg{width:19px!important;height:19px!important;}
 .zk-unified-header .zk-u-search-panel,
 .zk-unified-header .zk-u-drawer,
 .zk-unified-header .zk-u-mode-panel{left:8px;right:8px;max-width:calc(100vw - 16px);}
}
@media(max-width:360px){
 .zk-unified-header .zk-u-inner{gap:2px!important;padding-left:6px!important;padding-right:6px!important;}
 .zk-unified-header .zk-u-brand{max-width:39%;}
 .zk-unified-header .zk-u-brand img{width:28px!important;height:28px!important;}
 .zk-unified-header .zk-u-tools :is(.zk-u-search,.zk-u-mode,.zk-u-bell,.zk-u-menu) {
  flex-basis:34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;
 }
}

/* New community uses the same DATA-ZK-THEME preference as all other screens.
   These overrides defeat OS dark-mode when the user selected LIGHT explicitly. */
html[data-zk-theme="light"] {
 --zk368-ink:#172820;--zk368-dim:#52665a;--zk368-line:#dfe8e0;
 --zk368-bg:#f5f7f5;--zk368-card:#fff;--zk368-soft:#eaf3ec;
}
html[data-zk-theme="dark"] {
 color-scheme:dark;
 --zk368-ink:#e6f0e9;--zk368-dim:#bfd0c2;--zk368-line:#3b5543;
 --zk368-bg:#101a14;--zk368-card:#1a2a20;--zk368-soft:#274334;
}
html[data-zk-theme="light"] body:has(.zk368-wrap) {background:#f5f7f5!important;color:#172820!important;}
html[data-zk-theme="light"] body:has(.zk368-wrap) :is(.zk368-chooser,.zk368-clubhead,.zk368-panel,.zk368-stats article,.zk368-tip-card,.zk368-empty) {background:#fff!important;color:#172820!important;}
html[data-zk-theme="light"] body:has(.zk368-wrap) :is(.zk368-tip-form,.zk368-muted){background:#f6faf7!important;color:#172820!important;}
html[data-zk-theme="light"] body:has(.zk368-wrap) :is(.zk368-picker select,.zk368-tip-form select,.zk368-tip-form textarea,.zk368-feed-head select,.zk368-secondary,.zk368-quiet){background:#fff!important;color:#172820!important;}
html[data-zk-theme="dark"] body:has(.zk368-wrap){background:#101a14!important;color:#e6f0e9!important;}
html[data-zk-theme="dark"] body:has(.zk368-wrap) :is(.zk368-chooser,.zk368-clubhead,.zk368-panel,.zk368-stats article,.zk368-tip-card,.zk368-empty){background:#1a2a20!important;color:#e6f0e9!important;border-color:#3b5543!important;}
html[data-zk-theme="dark"] body:has(.zk368-wrap) :is(.zk368-tip-form,.zk368-muted){background:#23352a!important;color:#e6f0e9!important;border-color:#3b5543!important;}
html[data-zk-theme="dark"] body:has(.zk368-wrap) :is(.zk368-picker select,.zk368-tip-form select,.zk368-tip-form textarea,.zk368-feed-head select,.zk368-secondary,.zk368-quiet){background:#223529!important;color:#e6f0e9!important;border-color:#52725b!important;}
html[data-zk-theme="dark"] #zk23129-root :is(.zk260-game-card h3 span,.zk260-cost small,.zk260-main-tabs button small,.zk260-venue,.zk260-facts small,.zk260-coverage-row small,.zk260-unknown){color:#d1e6d6!important;}
html[data-zk-theme="light"] body:has(.zk368-wrap) .zk368-footer,
html[data-zk-theme="dark"] body:has(.zk368-wrap) .zk368-footer {color:var(--zk368-dim)!important;}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
