/* Zweierkette v24740 – actions first, one visual hierarchy, no second menu.
   This layer changes presentation, not the native controllers, form IDs, or data. */
body[data-zk40-compact="true"] main > :is(.zk10-contextnav,.zk90-links,.zk90-pagehead,.zk20-morelinks),
body[data-zk40-compact="true"] main > .zk80-pageintro{display:none!important}
body[data-zk40-compact="true"] main{scroll-margin-top:72px}
/* Single unified cross-ranking tab strip – identical place & dimensions on every ranking page. */
.zk40-ranking-tabs{width:min(100%,1120px);margin:2px auto 16px;display:flex;align-items:center;gap:6px;overflow-x:auto;padding:3px 0 7px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.zk40-ranking-tabs>a{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border-radius:9px;border:1px solid var(--zk10-edge,#dce6df);background:var(--zk10-panel,#fff);color:var(--zk10-text,#183528);font-size:12px;font-weight:750;white-space:nowrap;text-decoration:none}
.zk40-ranking-tabs>a:hover,.zk40-ranking-tabs>a[aria-current=page]{color:#fff!important;background:#176b4a!important;border-color:#176b4a!important}
body[data-zk40-compact="true"] :is(.zk80-pillnav,.zkrc-shortcuts){display:none!important}
body[data-zk40-compact="true"] main>.eyebrow{display:none!important}
/* Keep the actual ranking scores and tables, remove repetitive introduction prose. */
body[data-zk40-compact="true"]:is([data-zk24700-group="ranking"]) main > p.sub,
body[data-zk40-compact="true"] :is(.zk30-note,.zk30-simpleintro){font-size:11px!important}
body[data-zk40-compact="true"] main>h1{font-size:clamp(19px,2.6vw,26px)!important;margin:4px 0 13px!important;letter-spacing:-.025em}
body[data-zk40-compact="true"] main :is(.sectionhead h2,.zk29-intro h1){letter-spacing:-.028em}
/* Discover: immediately show entry cards; no second intro or fan-ranking promos. */
body[data-zk-design="discover"][data-zk40-compact="true"] main > :is(.zk80-pageintro,.zk30-links,.zk24680-native-link){display:none!important}
body[data-zk40-compact="true"] main > .zk30-links {display:none!important}
body[data-zk40-compact="true"] main > .zk80-actiongrid{margin-top:6px}
body[data-zk40-compact="true"] main > .zk-dir-entry{margin-top:12px}
body[data-zk40-compact="true"] main > .zk-dir-entry a{min-height:48px;display:flex;align-items:center}
body[data-zk40-compact="true"] main > .section .sectionhead h2{font-size:15px!important}
/* Game finder: real page, explicitly labelled local example cards and live route. */
.zk40-finder{max-width:1120px;margin:0 auto;min-height:65vh;padding-top:6px}
.zk40-compactbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;font-size:16px;color:var(--zk10-text,#163728)}
.zk40-compactbar strong{font-weight:850}
.zk40-live-link,.zk40-finder-footer a{color:#176b4a;font-size:12px;font-weight:800;text-decoration:none}
.zk40-finder-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,205px) auto;gap:10px;align-items:end;margin:0 0 14px}
.zk40-finder-controls label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:750;color:var(--zk10-text,#183528)}
.zk40-finder-controls :is(input,select){height:44px;width:100%;border:1px solid var(--zk10-edge,#dce6df);border-radius:10px;padding:0 12px;background:var(--zk10-panel,#fff);color:var(--zk10-text,#163728)}
.zk40-control-action{height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#176b4a;color:white!important;border-radius:9px;padding:0 15px;font-size:12px;font-weight:800;white-space:nowrap}
.zk40-fixture-note{margin:0 0 11px;color:var(--zk10-muted,#627567);font-size:11px;line-height:1.4}
.zk40-fixtures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.zk40-fixture{background:var(--zk10-panel,#fff);border:1px solid var(--zk10-edge,#dce6df);border-radius:12px;padding:16px;min-width:0}
.zk40-fixture[hidden]{display:none!important}
.zk40-fixture-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px;font-size:10px;font-weight:800;color:#176b4a}
.zk40-fixture-meta small{background:var(--zk10-soft,#e8f1e8);color:var(--zk10-text,#163728);padding:4px 7px;border-radius:5px;font-size:9px}
.zk40-fixture>strong{font-size:16px;letter-spacing:-.02em;color:var(--zk10-text,#183528);display:block}
.zk40-fixture>strong span{color:var(--zk10-muted,#6b7d70)}
.zk40-fixture-foot{display:flex;flex-wrap:wrap;gap:9px;align-items:center;justify-content:space-between;margin-top:15px;font-size:11px;color:var(--zk10-muted,#708375)}
.zk40-fixture-foot a{color:#176b4a;font-weight:800;text-decoration:none}
.zk40-finder-footer{display:flex;flex-wrap:wrap;align-items:center;gap:17px;margin-top:17px;padding-bottom:16px}
.zk40-no-results{font-size:12px;color:var(--zk10-muted,#647768)}
/* Tour planner: native 3-tab controller stays; hide its own second title and shortcut rail. */
body[data-zk23129-page="tour"] #zk23129-root>.zk29-intro,
body[data-zk23129-page="tour"] #zk23129-root>.zk29-tabs + .zk29-actions{display:none!important}
body[data-zk23129-page="tour"] #zk23129-root{max-width:1120px!important;margin:4px auto!important}
body[data-zk23129-page="tour"] .zk29-tabs{margin:0 0 13px!important;gap:9px!important}
body[data-zk23129-page="tour"] .zk29-tabs button{background:var(--zk10-panel,#fff)!important;color:var(--zk10-text,#163728)!important;border:1px solid var(--zk10-edge,#dce6df)!important;border-radius:11px!important;min-height:66px;padding:12px!important;font-weight:800!important}
body[data-zk23129-page="tour"] .zk29-tabs button.active{background:#176b4a!important;color:#fff!important;border-color:#176b4a!important}
body[data-zk23129-page="tour"] .zk29-tabs button small{font-size:10px!important;opacity:.85}
body[data-zk23129-page="tour"] :is(.zk29-trip-fields,.zk45-check-fields){background:var(--zk10-panel,#fff);padding:14px;border:1px solid var(--zk10-edge,#dce6df);border-radius:12px;gap:12px!important}
body[data-zk23129-page="tour"] .zk260-advanced{margin:10px 0!important;border:1px solid var(--zk10-edge,#dce6df);background:var(--zk10-panel,#fff);border-radius:10px;padding:0 12px}
body[data-zk23129-page="tour"] .zk260-advanced>summary{padding:13px 3px;cursor:pointer;font-weight:750;font-size:12px}
/* Ticketcenter: open straight on the usable games and ticket filters. */
body[data-ticketcenter-next="1"] main>.breadcrumbs,
body[data-ticketcenter-next="1"] main>.hero,
body[data-ticketcenter-next="1"] main>.mode-strip{display:none!important}
body[data-ticketcenter-next="1"] main{padding-top:12px!important}
body[data-ticketcenter-next="1"] #view-games{padding-top:0!important}
body[data-ticketcenter-next="1"] #view-games>h2{font-size:clamp(18px,2.5vw,24px)!important;margin:0 0 12px!important}
body[data-ticketcenter-next="1"] #view-games>p.sub{display:none!important}
/* Club directory: show search and leagues immediately. Stats remain reachable in sidebar and small inline shortcut. */
body[data-zk40-compact="true"] main>.sectionhead:first-of-type,
body[data-zk40-compact="true"] main>.sectionhead:first-of-type+.sub{margin-top:2px}
body[data-zk40-compact="true"] main>.sectionhead >:is(.eyebrow,.sub){display:none!important}
body[data-zk40-compact="true"] main>.sectionhead:has(+ .filters){display:none!important}
body[data-zk40-compact="true"] main>.sectionhead:has(+p.sub+.filters){display:none!important}
body[data-zk40-compact="true"] main>.sectionhead:has(+ .filters)+p.sub{display:none!important}
body[data-zk40-compact="true"] main>.sectionhead:has(+ p.sub + .filters)+p.sub{display:none!important}
body[data-zk40-compact="true"] .sectionhead:has(#league-heading-0){display:none!important}
body[data-zk40-compact="true"] main>.sectionhead +p.sub{font-size:11px}
body[data-zk40-compact="true"] main>.zk29-native-app:has(#stats-title-v18112){padding-top:4px!important}
body[data-zk40-compact="true"] #stats-title-v18112{display:none!important}
/* Profile: show real user login/dashboard; no duplicate marketing intro at the top. */
body[data-zk40-compact="true"] .zk90-profile-overview{display:none!important}
body[data-zk40-compact="true"] main:has(#auth-logged-out)>.zk29-native-app{padding-top:0!important}
body[data-zk40-compact="true"] :is(.auth-grid,.auth-card){max-width:100%;min-width:0}
/* Kette start: a real compact directory, Games last. */
.zk40-kette{max-width:1120px;padding-top:6px}
.zk40-kette-banner{display:flex;align-items:center;gap:15px;padding:21px 23px;background:#10251b;border:1px solid #254c36;border-radius:14px;color:#fff}
.zk40-kette-banner img{width:52px;height:52px;object-fit:contain;flex:0 0 52px}
.zk40-kette-banner h1{margin:0 0 3px!important;color:#fff;font-size:clamp(19px,2.3vw,27px)!important}
.zk40-kette-banner p{font-size:12px;color:#cadecf;margin:0}
.zk40-kette-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0 19px}
.zk40-kette-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:var(--zk10-panel,#fff);border:1px solid var(--zk10-edge,#dce6df);border-radius:11px;text-decoration:none;min-width:0}
.zk40-kette-item strong{display:block;font-size:13px;font-weight:850;color:var(--zk10-text,#183528)}
.zk40-kette-item small{display:block;font-size:10px;color:var(--zk10-muted,#687c6e);margin-top:4px}
.zk40-kette-item>span:last-child{font-size:20px;color:#176b4a}
.zk40-games{margin-top:19px}.zk40-games-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.zk40-games-row>a{display:flex;justify-content:space-between;align-items:center;min-width:0;padding:15px;font-weight:800;font-size:12px;text-decoration:none;color:var(--zk10-text,#163728);border-radius:10px;border:1px solid var(--zk10-edge,#dce6df);background:var(--zk10-panel,#fff)}
.zk40-games-row>a span{font-size:18px;color:#176b4a}
.zk40-more{margin-top:15px;padding:10px;border-top:1px solid var(--zk10-edge,#dce6df);font-size:11px}
.zk40-more summary{cursor:pointer;font-weight:750}.zk40-more>a{display:inline-flex;padding:10px;text-decoration:none;color:#176b4a}
/* The old Kette chat page remains available, but its welcome heading and top marketing are not duplicated. */
body[data-zk40-compact="true"] #zk-static-home>.zk-static-brand,
body[data-zk40-compact="true"] #zk218-kette-main .zk218-workspace-heading .zk218-section-kicker{display:none!important}
/* Videos: two actual channel cards; on desktop visibly smaller, all-video link left. */
body[data-zk40-compact="true"] .zk80-videogrid{max-width:770px;grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-zk40-compact="true"] .zk80-video-photo{aspect-ratio:16/9;min-height:0;max-height:210px}
body[data-zk40-compact="true"] .zk40-video-head{max-width:770px;flex-direction:row-reverse;justify-content:flex-end;gap:20px}
body[data-zk40-compact="true"] .zk40-video-head .smalllink{order:1}
body[data-zk40-compact="true"] .zk40-video-head h2{order:0}
@media(max-width:750px){
 .zk40-finder-controls{grid-template-columns:minmax(0,1fr) minmax(110px,.7fr)}
 .zk40-control-action{grid-column:1/-1}
 .zk40-fixtures{grid-template-columns:1fr}
 .zk40-kette-list{grid-template-columns:1fr}
 .zk40-games-row{grid-template-columns:1fr}
 body[data-zk40-compact="true"] .zk80-videogrid{max-width:100%}
 body[data-zk23129-page="tour"] .zk29-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap}
 body[data-zk23129-page="tour"] .zk29-tabs button{min-width:175px!important;flex:0 0 auto}
}
@media(max-width:430px){.zk40-fixture>strong{font-size:14px}.zk40-kette-banner{padding:16px}.zk40-finder-controls{grid-template-columns:minmax(0,1fr)}.zk40-control-action{grid-column:auto}body[data-zk40-compact="true"] .zk80-video-info strong{font-size:11px}}
/* Keep original secondary ticket switch accessible below the primary finder. */
body[data-ticketcenter-next="1"] main>.mode-strip{display:none!important}
body[data-ticketcenter-next="1"] .zk40-ticket-secondary{margin:12px 0!important;border-radius:9px;border:1px solid var(--zk10-edge,#dce6df);background:var(--zk10-panel,#fff);padding:0 14px;}
body[data-ticketcenter-next="1"] .zk40-ticket-secondary summary{cursor:pointer;font-size:12px;font-weight:750;padding:14px 0}
body[data-ticketcenter-next="1"] .zk40-ticket-secondary .mode-strip{display:flex!important;flex-wrap:wrap;gap:8px;padding:4px 0 13px}
/* Discovery: only action cards, not another 'For your matchday' heading. */
body[data-zk40-compact="true"] main:has(.zk80-actiongrid) >.section>.sectionhead{display:none!important}
/* Club directory: hide repetitive heading, keep stats as a small inline action. */
.zk40-stats-shortcut{margin-left:auto;order:99;align-self:center;white-space:nowrap;padding:9px 12px;border-radius:9px;background:var(--zk10-panel,#fff);border:1px solid var(--zk10-edge,#dce6df);font-weight:800;font-size:11px;color:#176b4a;text-decoration:none}
body[data-zk40-compact="true"] main:has(.league-list) >.sectionhead,body[data-zk40-compact="true"] main:has(.league-list) >p.sub{display:none!important}
/* Rank list starts straight under one unified tab row. */
body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs) >h1,
body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs) >p.sub{display:none!important}
body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs) >.zk30-ranklist{margin-top:5px}
/* V24740 critical: some old full-width ranking templates were positioned behind the
   fixed 220px desktop sidebar. Give their real main content its own content column. */
@media(min-width:901px){
 body.zk80-app[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs),
 body.zk80-app[data-zk40-compact="true"] main#zk40-finder-main{
  box-sizing:border-box!important;margin-left:220px!important;margin-right:0!important;
  width:calc(100% - 220px)!important;max-width:none!important;
  padding:15px max(18px, calc((100vw - 1340px)/2)) 100px!important;
  overflow:visible!important;
 }
}
@media(max-width:900px){
 body.zk80-app[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs),
 body.zk80-app[data-zk40-compact="true"] main#zk40-finder-main{box-sizing:border-box!important;margin-left:0!important;width:100%!important;max-width:100%!important;padding:13px 14px 98px!important}
}
/* Community Ranking: the former four black menu tiles are duplicated by the global sidebar. */
body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs)>.community-global-shell-v154,
body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs)>.community-ratings-minihero-v75{display:none!important}
body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs)>.section.light{margin:4px 0 0!important;padding:12px!important;background:var(--zk10-panel,#fff)!important;border:1px solid var(--zk10-edge,#dce6df);border-radius:12px}
/* Groundhopper list starts directly below rankings – without its separate oversized dark hero. */
body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs)>.hero,
body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs)>.eyebrow,
body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs)>.demo{display:none!important}
/* The old Ticketcenter carried a SECOND blank sidebar and vertically centered the content. */
body[data-ticketcenter-next="1"] .layout{display:block!important;min-height:0!important}
body[data-ticketcenter-next="1"] .layout>aside.sidebar{display:none!important}
body[data-ticketcenter-next="1"] .layout>main#main{max-width:1120px!important;width:calc(100% - 32px)!important;box-sizing:border-box!important;margin:0 auto!important;padding:12px 0 80px!important;align-self:start!important}
body[data-ticketcenter-next="1"] #view-games{margin-top:0!important;padding-top:0!important}
/* Restore the ORIGINAL account/profile module rather than a separate fake dashboard. */
body[data-zk40-compact="true"] main h1.sr-only-v119{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
body[data-zk40-compact="true"] main .auth-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:start!important;max-width:1100px!important;margin:0 auto!important}
body[data-zk40-compact="true"] main .auth-card{min-width:0!important;max-width:100%!important;padding:17px!important;border:1px solid var(--zk10-edge,#dce6df)!important;border-radius:13px!important;background:var(--zk10-panel,#fff)!important;color:var(--zk10-text,#163728)!important;box-shadow:none!important}
body[data-zk40-compact="true"] main .auth-card>h2{font-size:18px!important;margin:4px 0 15px!important}
body[data-zk40-compact="true"] main .auth-card :is(input:not([type=checkbox]),button){max-width:100%!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}
body[data-zk40-compact="true"] main .auth-card button{min-height:42px!important;background:#176b4a!important;color:white!important;border:0!important;border-radius:9px!important;margin-top:10px}
@media(max-width:760px){body[data-zk40-compact="true"] main .auth-grid{grid-template-columns:1fr!important}}

/* Final geometry: legacy main rules carry more-specific !important selectors. */
@media(min-width:901px){
 html body.zk80-app[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs):not(#zkrankphantom1):not(#zkrankphantom2),
 html body.zk80-app[data-zk40-compact="true"] main#zk40-finder-main#zk40-finder-main,
 html body[data-ticketcenter-next="1"] .layout>main#main#main#main{
  box-sizing:border-box!important;position:relative!important;
  margin-left:220px!important;margin-right:0!important;
  width:calc(100% - 220px)!important;max-width:none!important;
  padding:15px max(16px,calc((100vw - 1340px)/2)) 96px!important;
 }
}
@media(max-width:900px){
 html body.zk80-app[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs):not(#zkrankphantom1):not(#zkrankphantom2),
 html body.zk80-app[data-zk40-compact="true"] main#zk40-finder-main#zk40-finder-main,
 html body[data-ticketcenter-next="1"] .layout>main#main#main#main{
  box-sizing:border-box!important;position:relative!important;
  margin-left:0!important;margin-right:0!important;
  width:100%!important;max-width:100%!important;padding:13px 14px 90px!important;
 }
}
html body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs):not(#zkrankphantom1):not(#zkrankphantom2)>.community-global-shell-v154,
html body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs):not(#zkrankphantom1):not(#zkrankphantom2)>.community-ratings-minihero-v75,
html body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs):not(#zkrankphantom1):not(#zkrankphantom2)>.hero,
html body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs):not(#zkrankphantom1):not(#zkrankphantom2)>.eyebrow,
html body[data-zk40-compact="true"] main:has(>.zk40-ranking-tabs):not(#zkrankphantom1):not(#zkrankphantom2)>.demo{
 display:none!important;
}
/* The old ranking template included a second page masthead under our shared header. */
html body[data-zk40-compact="true"] > div.top:has(+main > .zk40-ranking-tabs){display:none!important}
