/* Fixture dates and club filters stay below the existing pinned page navigation. */

/* Welcome is the standalone entry; Explore shares the application navigation. */
html:is([data-current-page=welcome],[data-entry-page=welcome]) #site-navigation,
html:is([data-current-page=welcome],[data-entry-page=welcome]) :is(.app-bottom-nav,.page-navigation,.page-back-floating){display:none!important}
html:is([data-current-page=welcome],[data-entry-page=welcome]) body #main{margin-inline:auto!important;width:100%;max-width:1480px;padding-inline:clamp(16px,4vw,56px)}
html[data-current-page=welcome] #main>header{display:flex!important;height:64px!important;justify-content:flex-end;border:0}
html[data-current-page=welcome] #main>header .breadcrumb{display:none}
html:is([data-current-page=welcome],[data-current-page=explore]) body{padding-bottom:0!important}
#welcome .welcome-photo{object-position:center}
/* Approved navy, ice blue, Inter and Roboto brand system. */
body[data-palette] :is(#explore,#leagues,#competitions) .explore-heading{position:relative;overflow:hidden;padding:32px 36px;border:1px solid #263C58;border-radius:16px;background:#0B1626;color:#fff;margin:0 0 24px}
body[data-palette] :is(#explore,#leagues,#competitions) .explore-logo{display:block;width:210px;max-width:72%;height:auto;color:#fff;margin:0 0 24px}
body[data-palette] :is(#explore,#leagues,#competitions) .explore-logo .logo-mark{color:#94C3FF}
body[data-palette] :is(#explore,#leagues,#competitions) .explore-heading h1{font-family:Inter,sans-serif;color:#fff;font-size:32px}
body[data-palette] :is(#explore,#leagues,#competitions) .explore-heading .eyebrow{color:#94C3FF}
body[data-palette] :is(#explore,#leagues,#competitions) .explore-heading>p:last-child{color:#C5DDFF;max-width:70ch}
body[data-palette] :is(#explore,#leagues,#competitions) .explore-branch{border-top:3px solid #94C3FF;padding:22px;background:var(--panel)}
:is(#explore,#leagues,#competitions) .explore-branches{padding-top:0;gap:18px}
:is(#explore,#leagues,#competitions) :is(.explore-branches,.explore-branch)::before{display:none}
:is(#explore,#leagues,#competitions) .explore-select-label{display:grid;gap:7px;margin:0 0 18px;font:600 13px var(--font-ui);color:var(--ink)}
:is(#explore,#leagues,#competitions) .explore-select-label select{width:100%;min-width:0;min-height:46px;border:1px solid var(--control-edge);border-radius:8px;background:var(--panel);color:var(--ink);padding:10px;font:600 16px var(--font-ui)}
body[data-palette] :is(#explore,#leagues,#competitions) .explore-action{min-height:72px}
body[data-palette] :is(#explore,#leagues,#competitions) .explore-action:hover{border-color:#407FC9;box-shadow:inset 3px 0 #407FC9}
/* Keep charts with their view title and use the same accent as its 90 mark. */
html[data-theme] body[data-palette] :is(#ratings,#global,#profile) .collection-links .collection-link{background:var(--section-dark,var(--page-accent,var(--green)))!important;border-color:var(--section-dark,var(--page-accent,var(--green)))!important;color:#091729!important;font-weight:700}
html[data-theme] body[data-palette] :is(#ratings,#global,#profile) .collection-links .collection-link:hover{filter:brightness(.94)}
@media(min-width:761px){
 body[data-palette] :is(#ratings,#global,#profile) .collection-links{display:flex!important;flex:1 0 100%!important;width:100%!important;justify-content:flex-start;margin:12px 0 2px!important;gap:8px!important}
 body[data-palette] :is(#ratings,#global,#profile) .collection-links .collection-link{min-height:40px;padding:8px 14px;font-size:14px}
 body[data-palette] :is(#ratings,#global,#profile) :is(h2,h3):has(>.collection-links){flex-wrap:wrap}
}
/* Plain forecast typography, without the shaded score tile. */
body[data-palette] :is(#ratings,#todays-fixtures) :is(.fixture-score,.fixture-saved){background:transparent!important;box-shadow:none!important}
.date-stepper{display:flex;align-items:stretch;gap:6px;min-width:0;width:100%}
.date-stepper select{flex:1 1 auto;min-width:0;width:0!important}
body[data-palette] .date-stepper>button{flex:0 0 40px;min-height:44px;padding:0;border:1px solid var(--control-edge);border-radius:8px;background:var(--panel);color:var(--ink);font:600 20px var(--font-ui);display:grid;place-items:center}
body[data-palette] .date-stepper>button:hover:not(:disabled){background:var(--soft);border-color:var(--page-accent,var(--green))}
body[data-palette] .date-stepper>button:disabled{opacity:.35;cursor:default}

.snapshot-stepper{min-width:250px}
/* Compact secondary selectors, with comfortable arrow targets. */
body[data-palette] :is(#fixture-week,#fixture-filter,#snapshot,#global-snapshot){font:500 14px var(--font-ui)!important;min-height:40px!important;height:40px!important;padding:7px 24px 7px 10px!important}
body[data-palette] .date-stepper>button{flex-basis:36px;min-height:40px;height:40px;font-size:18px}

@media(max-width:1000px){:is(#explore,#leagues,#competitions) .explore-branches{margin-left:0;padding-left:0}}
@media(max-width:760px){
 html:is([data-current-page=welcome],[data-entry-page=welcome]) body #main{padding-top:max(14px,env(safe-area-inset-top,0px))}
 html:is([data-current-page=welcome],[data-current-page=explore]) body #main{padding-inline:12px}
 body[data-palette] :is(#explore,#leagues,#competitions) .explore-heading{padding:24px;margin-bottom:16px}
 body[data-palette] :is(#explore,#leagues,#competitions) .explore-heading h1{font-size:26px;line-height:1.2}
 body[data-palette] :is(#explore,#leagues,#competitions) .explore-branch{padding:18px}
 :is(#explore,#leagues,#competitions) .explore-logo{margin-bottom:20px}
 #ratings #performance-period-control{display:none!important}
 body[data-palette] #ratings .mobile-view-picker-field select{font:600 14px var(--font-ui)!important;padding-left:10px;padding-right:24px}
 body[data-palette] #ratings .tabs.app-has-snapshot{grid-template-columns:minmax(0,1fr)!important}
 body[data-palette] #ratings .tabs .mobile-view-picker{grid-column:1!important;grid-row:auto!important;width:100%}
 body[data-palette] #ratings .tabs .app-inline-snapshot{grid-column:1!important;grid-row:auto!important;width:100%}

 body[data-palette] :is(#fixture-week,#fixture-filter,#snapshot,#global-snapshot){font-size:13px!important}
 .snapshot-stepper{min-width:0}
 #ratings .tabs>label:has(#snapshot){width:100%;min-width:0}
 body[data-palette] .date-stepper>button{flex-basis:36px}
}
@media(max-width:360px){
 body[data-palette] #ratings .mobile-view-picker-field select{font-size:13px!important}
 body[data-palette] #ratings .tabs.app-view-pinned .mobile-view-picker{grid-template-columns:40px minmax(0,1fr)}
 body[data-palette] #ratings .tabs.app-view-pinned .mobile-view-picker-title{font-size:0;padding-inline:0}
 body[data-palette] #ratings .tabs.app-view-pinned .mobile-view-picker-title span{font-size:18px}
}
/* Separate league and competition entry screens, with clear branded selectors. */
body[data-palette] :is(#explore,#leagues,#competitions) .selection-navigation{display:flex;gap:0;margin:0 0 14px;padding:0;min-width:0}
body[data-palette] :is(#explore,#leagues,#competitions) .selection-navigation label{display:flex;align-items:center;gap:10px;max-width:100%;font:600 12px var(--font-ui);color:var(--muted)}
body[data-palette] :is(#explore,#leagues,#competitions) .selection-navigation select{width:225px;max-width:100%;min-width:0;min-height:38px;padding:7px 28px 7px 10px;border:1px solid var(--control-edge);border-radius:7px;background:var(--panel);color:var(--ink);font:600 13px var(--font-ui)}
body[data-palette] :is(#explore,#leagues,#competitions) .explore-select-label select{background:#E8F0FB;color:#173F78;border:2px solid #407FC9;box-shadow:0 0 0 3px #407FC912;min-height:46px}
html[data-theme=dark] body[data-palette] :is(#explore,#leagues,#competitions) .explore-select-label select{background:#182F4D;color:#EDF4FF;border-color:#94C3FF;box-shadow:0 0 0 3px #94C3FF12}
body[data-palette] :is(#explore,#leagues,#competitions) .explore-select-label{color:var(--ink);font-size:14px}
#explore .explore-branches{grid-template-columns:minmax(0,1fr)}
:is(#explore,#leagues,#competitions) .explore-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
#competitions .explore-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
:is(#explore,#leagues,#competitions) .explore-branch .branch-description{min-height:0;margin-bottom:18px}
@media(max-width:760px){
 :is(#explore,#leagues,#competitions) .explore-actions{grid-template-columns:minmax(0,1fr)}
}
/* Five light branches keep the first step visible without a long page. */
html:is([data-current-page=explore],[data-entry-page=explore]) body #main{padding-bottom:12px!important}
body[data-palette] #explore{width:100%;max-width:880px;margin-inline:auto}
body[data-palette] #explore .explore-heading{padding:24px 30px;margin-bottom:16px}
body[data-palette] #explore .explore-logo{width:185px;margin-bottom:16px}
body[data-palette] #explore .explore-heading h1{font-size:30px;margin:0 0 7px}
#explore .explore-destination-tree{display:grid;position:relative;gap:6px;margin:0 0 20px 24px;padding:0 0 0 26px;background:none;border:0}
#explore .explore-destination-tree::before{content:"";position:absolute;left:0;top:-16px;bottom:35px;border-left:1px solid #789DC9}
body[data-palette] #explore .explore-destination-tree>a{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:70px;padding:11px 16px;border:0;border-radius:6px;background:#407FC908;color:var(--ink);text-decoration:none;text-align:left}
#explore .explore-destination-tree>a::before{content:"";position:absolute;left:-26px;top:50%;width:26px;border-top:1px solid #789DC9}
#explore .explore-destination-tree>a>span:first-child{min-width:0;white-space:normal}
#explore .explore-destination-tree :is(strong,small){white-space:normal}
#explore .explore-destination-tree strong{display:block;font:650 19px/1.25 Inter,sans-serif}
#explore .explore-destination-tree small{display:block;margin-top:4px;font:400 14px/1.25 var(--font-ui);color:var(--muted)}
#explore .explore-destination-arrow{flex:0 0 auto;font:500 24px/1 var(--font-ui);color:#407FC9}
html[data-theme=dark] body[data-palette] #explore .explore-destination-tree>a{background:#94C3FF08}
html[data-theme=dark] #explore .explore-destination-arrow{color:#94C3FF}
body[data-palette] #explore .explore-destination-tree>a:hover{background:#407FC918}
body[data-palette] #explore .explore-destination-tree>a:focus-visible{outline:2px solid #407FC9;outline-offset:2px}
#leagues .explore-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:761px) and (max-height:720px){
 html:is([data-current-page=explore],[data-entry-page=explore]) #main>header{height:48px!important;min-height:48px!important}
 body[data-palette] #explore .explore-heading{padding:18px 24px}
 body[data-palette] #explore .explore-logo{width:160px;margin-bottom:12px}
 body[data-palette] #explore .explore-heading h1{font-size:26px}
 body[data-palette] #explore .explore-destination-tree>a{min-height:58px;padding-block:8px}
 #explore .explore-destination-tree strong{font-size:17px}
 #explore .explore-destination-tree small{font-size:13px}
 #explore .explore-destination-tree::before{bottom:29px}
}
html:is([data-current-page=leagues],[data-current-page=competitions]) .page-navigation{display:none!important}
body[data-palette] :is(#leagues,#competitions) .explore-heading{padding:20px 24px;margin-bottom:14px}
body[data-palette] :is(#leagues,#competitions) .explore-heading h1{font-size:28px;margin:0 0 6px}
body[data-palette] :is(#leagues,#competitions) .explore-branch{padding:0;border:0;background:none}
@media(max-width:760px){
 html:is([data-current-page=explore],[data-entry-page=explore]) #main>header{height:48px!important;min-height:48px!important}
 body[data-palette] #explore .explore-heading{padding:18px 20px;margin-bottom:14px}
 body[data-palette] #explore .explore-logo{width:160px;margin-bottom:12px}
 body[data-palette] #explore .explore-heading h1{font-size:23px;margin:0 0 6px}
 body[data-palette] #explore .explore-heading>p:last-child{font-size:13px;line-height:1.35}
 body[data-palette] #explore .explore-heading>p:last-child{display:none}
 body[data-palette] #explore .explore-heading h1{margin-bottom:0}
 #explore .explore-destination-tree{gap:4px;margin-left:12px;margin-bottom:12px;padding-left:18px}
 #explore .explore-destination-tree::before{top:-14px;bottom:29px}
 body[data-palette] #explore .explore-destination-tree>a{min-height:58px;padding:8px 10px;gap:8px}
 #explore .explore-destination-tree>a>span:first-child{width:100%}
 #explore .explore-destination-tree>a::before{left:-18px;width:18px}
 #explore .explore-destination-tree strong{font-size:16px;line-height:1.2;padding-right:22px}
 #explore .explore-destination-tree small{font-size:12px;line-height:1.2;margin-top:4px}
 #explore .explore-destination-arrow{position:absolute;top:8px;right:10px;font-size:21px}
 body[data-palette] :is(#leagues,#competitions) .selection-navigation{margin-bottom:10px}
 body[data-palette] :is(#leagues,#competitions) .explore-heading{padding:14px 16px;margin-bottom:12px}
 body[data-palette] :is(#leagues,#competitions) .explore-heading h1{font-size:22px}
 body[data-palette] :is(#leagues,#competitions) .explore-heading>p:last-child{font-size:13px;line-height:1.3}
 :is(#leagues,#competitions) .explore-select-label{gap:5px;margin-bottom:12px}
 :is(#leagues,#competitions) .explore-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body[data-palette] :is(#leagues,#competitions) .explore-action{min-height:60px;padding:9px;gap:7px}
 :is(#leagues,#competitions) .explore-action small{display:none}
 #competitions .explore-action:last-child{grid-column:1/-1}
}

/* Chart choices stay together without a full row of launch buttons. */
body[data-palette] .collection-menu{display:inline-flex;position:relative;flex:0 0 auto;align-items:center;margin-left:auto;vertical-align:middle;letter-spacing:0}
body[data-palette] .collection-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:5px 9px;border:0;border-radius:5px;background:var(--section-dark,var(--page-accent,var(--green)));color:#091729;font:600 12px/1.3 var(--font-ui);white-space:nowrap}
body[data-palette] .collection-menu-toggle svg{width:15px;height:15px;flex:none}
body[data-palette] .collection-menu-toggle>span{font:inherit;color:inherit}
body[data-palette] .collection-menu-items{position:absolute;right:0;top:calc(100% + 4px);z-index:80;display:grid;gap:2px;width:224px;max-width:calc(100vw - 24px);padding:5px;border:1px solid var(--line);border-radius:7px;background:var(--panel);box-shadow:0 8px 24px #0003}
body[data-palette] .collection-menu-items[hidden]{display:none!important}
body[data-palette] .collection-menu-items .collection-link{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:40px;margin:0;padding:8px;border:0;border-radius:4px;background:transparent;color:var(--ink);font:500 12px/1.4 var(--font-ui);text-align:left;white-space:normal}
body[data-palette] .collection-menu-items .collection-link:hover{background:var(--soft)}
body[data-palette] .collection-menu-items .collection-link svg{width:16px;height:16px;flex:none}
body[data-palette] :is(#ratings .table-tools h3,#global>h2):has(>.collection-menu){display:flex;align-items:center;flex-wrap:nowrap;gap:10px}
body[data-palette] .fixture-intro>p:has(>.collection-menu){display:flex;align-items:center;gap:12px;flex:1}
@media(max-width:760px){
 body[data-palette] .mobile-table-actions>.collection-menu{margin:0;flex:0 0 auto}
 body[data-palette] .mobile-table-actions .collection-menu-toggle{min-height:44px;padding:5px 2px;background:transparent;color:var(--brand-text,var(--green));font-size:12px}
 body[data-palette] .mobile-table-actions .collection-menu-items{right:auto;left:0;width:200px}
 body[data-palette] .mobile-table-actions .collection-menu-items .collection-link{min-height:44px}
 body[data-palette] #ratings .fixture-intro>.mobile-table-actions{position:static;justify-content:flex-end;gap:16px}
}
@media(max-width:760px){body[data-palette] .fixture-intro .mobile-table-actions .collection-menu-items{left:auto;right:0}}
body[data-palette] .collection-menu-toggle>span{display:inline;min-width:0;margin:0;padding:0!important;border:0!important;background:none!important;box-shadow:none;color:inherit}
