/* One header anchor for the mobile/tablet menu; closed means no box or border. */
@media(max-width:1100px){
 .site-header:has(.supporter-header-actions){position:relative!important;top:auto!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto!important;gap:8px;padding:8px 12px!important;height:72px!important;min-height:72px!important;box-sizing:border-box}
 .site-header:has(.supporter-header-actions) .brand{grid-column:1;grid-row:1;min-width:0!important}.site-header:has(.supporter-header-actions) .brand-logo{width:44px!important;height:44px!important}.site-header:has(.supporter-header-actions) .brand-name{display:none!important}
 .site-header:has(.supporter-header-actions) .global-search-inline{grid-column:2;grid-row:1;justify-self:end;margin:0!important}.site-header:has(.supporter-header-actions) .supporter-header-actions{grid-column:3;grid-row:1;margin:0!important}.site-header:has(.supporter-header-actions) .menu-toggle{grid-column:4;grid-row:1;position:static!important;transform:none!important;display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:5px;margin:0!important;width:38px;min-height:38px;padding:6px!important}.site-header .menu-toggle span{display:block;width:26px;height:3px;flex:none}
 .site-header:has(.supporter-header-actions) .main-nav{display:none!important;position:absolute!important;inset:100% 0 auto!important;transform:none!important;box-sizing:border-box;width:100%!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 72px);overflow-y:auto;padding:0!important;margin:0!important;border:0!important;box-shadow:none;background:#fff!important;z-index:8001;grid-column:auto;grid-row:auto}
 .site-header:has(.supporter-header-actions) .main-nav.open{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;border-top:1px solid #c8d5e5!important;box-shadow:0 14px 24px #07172f33}
 .site-header .main-nav::before,.site-header .main-nav::after{content:none!important;display:none!important}
 .site-header .main-nav>a.active::after{content:none!important;display:none!important}
 .site-header .main-nav>a,.site-header .main-nav .more-nav-trigger{box-sizing:border-box;width:100%;min-height:0!important;padding:16px 20px!important;line-height:1.4!important;font-size:14px!important;text-align:left;border:0!important;border-bottom:1px solid #c8d5e5!important;background:#fff!important;color:#102f53!important}
 .site-header .main-nav>a.active{border-left:4px solid #d9b423!important;color:#134a7d!important}.site-header .more-nav-item{display:block!important;width:100%}.site-header .more-nav-menu{position:static!important;transform:none!important;width:100%!important;box-sizing:border-box;border:0!important;box-shadow:none!important}.site-header .more-nav-menu[hidden]{display:none!important}
 html[data-supporter-theme=dark] .site-header:has(.supporter-header-actions) .main-nav,html[data-supporter-theme=dark] .site-header .main-nav>a,html[data-supporter-theme=dark] .site-header .main-nav .more-nav-trigger,html[data-supporter-theme=dark] .site-header .more-nav-menu{background:#10213b!important;color:#edf4ff!important;border-color:#45617e!important}
 html[data-supporter-theme=dark] .site-header .main-nav>a.active{color:#f6de73!important}
}
html[data-supporter-theme=dark]{--sfp-ink:#edf4ff;--sfp-muted:#b5c9e3;--sfp-line:#42617f;--sfp-paper:#10213b;--sfp-sky:#19334f}
html[data-supporter-theme=dark] :is(h1,h2,h3,h4,.national-fixtures-heading,.section-heading,.section-heading p,.eyebrow){color:#edf4ff!important;-webkit-text-stroke:0!important;text-shadow:none!important}
html[data-supporter-theme=dark] :is(h1,h2,h3,h4) mark{color:#95ceff!important;-webkit-text-stroke:0!important}
html[data-supporter-theme=dark] :is(.archive,.section-switcher,.national-view-switcher,.national-matchday-nav,.standings,.national-fixtures-group-table,.group-table-card,.national-group-table,.results-archive-controls,.results-year-nav,.global-search-inline-trigger,.more-nav-menu){background:#10213b!important;color:#edf4ff!important;border-color:#45617e!important}
html[data-supporter-theme=dark] :is(.standings,.national-fixtures-group-table,.group-table-card,.national-group-table) :is(table,thead,tbody,tr,td,th){background:transparent!important;color:#edf4ff!important;border-color:#45617e!important}
html[data-supporter-theme=dark] :is(.standings,.national-fixtures-group-table) tr.highlight{background:#334357!important}
html[data-supporter-theme=dark] :is(.section-switcher,.national-view-switcher) button{background:#10213b!important;color:#d5e5fa!important}html[data-supporter-theme=dark] :is(.section-switcher,.national-view-switcher) button.active{background:#2465a2!important;color:#fff!important}
html[data-supporter-theme=dark] :is(.archive,.national-fixtures-extra,.national-fixtures-group-table,.spfl-match-card,.standings,.home-news,.news-section) :is(p,small,time,th,td,a,.spfl-score,.spfl-score strong,.spfl-score b){color:#c9dbf1!important}
html[data-supporter-theme=dark] :is(.spfl-score,.spfl-score strong,.spfl-score b,.spfl-match-card>small){color:#edf4ff!important}
html[data-supporter-theme=dark] :is(.spfl-score.is-live-score,.is-live .spfl-score,.is-live .spfl-score strong,.is-live .spfl-score b){color:#ff8a93!important}
html[data-supporter-theme=dark] .national-history-entry{background:#173758!important;color:#fff!important;border-color:#6e92bc!important}
html[data-supporter-theme=dark] .more-nav-menu a{background:#10213b!important;color:#edf4ff!important}
html[data-supporter-theme=dark] .global-search-inline-trigger{color:#edf4ff!important}
html[data-supporter-theme=dark] :is(.national-fixtures-group-table,.standings) :is(header,footer,caption){background:#10213b!important;color:#c9dbf1!important}
html[data-supporter-theme=dark] .home-news .news-tag{color:#bde0ff!important}
html[data-supporter-theme=dark] :is(.all-tournament-groups,.tournament-group-card,.all-groups-heading){background:#10213b!important;color:#edf4ff!important;border-color:#45617e!important}
html[data-supporter-theme=dark] :is(.all-tournament-groups,.tournament-group-card) :is(strong,small,th,td,a,p,caption){color:#d5e5fa!important;border-color:#45617e!important}
html[data-supporter-theme=dark] .tournament-group-card :is(thead,tbody,tr,td,th){background:transparent!important}
html[data-supporter-theme=dark] .tournament-group-card tr.is-scotland{background:#2c4057!important}
html[data-supporter-theme=dark] .standalone-back{background:#173557!important;color:#edf4ff!important;border-color:#607a9a!important}
html[data-supporter-theme=dark] :is(.sfp-account-strip small,.predictor-week-nav small,.predictor-week-label,.predictor-week-label small,.predictor-estimate-note,.predictor-data-note,.home-fixture-updated,.source-note){color:#b9cee8!important}
html[data-supporter-theme=dark] .spfl-table-wrap :is(table,thead,tbody,tr,td,th){color:#edf4ff!important;border-color:#45617e!important}

/* Archive tables share the same dark surface before and after the split. */
html[data-supporter-theme=dark] :is(.spfl-table-card,.spfl-split-tables,.spfl-split-section){background:#10213b!important;color:#edf4ff!important;border-color:#45617e!important}
html[data-supporter-theme=dark] .spfl-table-card :is(h2,h3,.split-table-title,.split-table-heading,table,thead,tbody,th,td,.match-table-team,strong,b,a){color:#edf4ff!important;border-color:#45617e!important}
html[data-supporter-theme=dark] .spfl-table-card :is(table,thead,tbody,tr,th,td){background:transparent!important}
html[data-supporter-theme=dark] .spfl-table-card td:nth-child(2){background:#10213b!important}
html[data-supporter-theme=dark] .spfl-table-card mark{background:transparent!important;color:#a9d2ff!important}
html[data-supporter-theme=dark] .spfl-split-section.top-six{border-top-color:#6ba8ee!important}
html[data-supporter-theme=dark] .spfl-split-section.bottom-six{border-top-color:#f4d44e!important}

html[data-supporter-theme=dark] :is(.spfl-playoff-block,.spfl-playoff-leg,.spfl-season-note){background:#10213b!important;color:#edf4ff!important;border-color:#45617e!important}
html[data-supporter-theme=dark] .spfl-playoff-block :is(p,time,strong,b){color:#edf4ff!important}
html[data-supporter-theme=dark] .spfl-playoff-block small{color:#bbd0ea!important}

/* Match surfaces must change with their text, including nested legacy panels. */
html[data-supporter-theme=dark]{color-scheme:dark}
html[data-supporter-theme=light]{color-scheme:light}
html[data-supporter-theme=dark] :is(.profile-layout>article,.profile-article-copy,.profile-media-grid,.kickoff-card,.kickoff-card .matchup,.kickoff-card .countdown,.spfl-combined-block,.spfl-round-block,.spfl-match-list,.spfl-competition-block,.spfl-competition-group,.fixture-history-page,.history-page-form,.history-results-heading){background:#10213b!important;color:#edf4ff!important;border-color:#45617e!important}
html[data-supporter-theme=dark] .profile-page .person-fixture-panel :is(.spfl-date-group,.spfl-match-card,.spfl-match-list){background:#10213b!important;color:#edf4ff!important;border-color:#45617e!important}
html[data-supporter-theme=dark] .profile-page .person-fixture-panel .spfl-date-group>h3{background:#19334f!important;color:#edf4ff!important;border-color:#45617e!important}
html[data-supporter-theme=dark] :is(.profile-layout,.person-honours,.club-honours,.kickoff-card) :is(p,span,small,strong,b,em,a,.team,.versus){color:#edf4ff!important}
html[data-supporter-theme=dark] :is(.profile-reference-note,.profile-reference-note a,.person-honour em,.club-honour-text em){color:#bccfe6!important}
html[data-supporter-theme=dark] :is(.club-honour,.club-honour-text,.person-honour){background:transparent!important;color:#edf4ff!important;border-color:#45617e!important}
html[data-supporter-theme=dark] .kickoff-card .countdown strong{color:#fff!important}
html[data-supporter-theme=dark] :is(.kickoff-watch,.kickoff-topline){background:#173e68!important;color:#fff!important}
html[data-supporter-theme=dark] .spfl-workspace :is(.spfl-combined-block,.spfl-round-block,.spfl-date-group,.spfl-match-list){background:#10213b!important;border-color:#45617e!important}
html[data-supporter-theme=dark] :is(.spfl-panel-controls,.spfl-settings,.fixture-history-page,.history-page-form,.history-results-heading,#fixture-history,.results-archive-controls) :is(p,label,legend,small,span){color:#d5e5fa!important}
html[data-supporter-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea){background:#0b192e!important;color:#edf4ff!important;border-color:#6785a5!important}
html[data-supporter-theme=dark] :is(input,textarea)::placeholder{color:#b7cbe4!important;opacity:1}
html[data-supporter-theme=dark] :is(.fixture-history-entry,.history-back,.national-history-entry,button[type=reset],.spfl-reset,.history-form-actions .secondary){background:#193b61!important;color:#fff!important;border-color:#7c9aba!important}
html[data-supporter-theme=dark] #fixture-history>p{color:#c9dbf1!important}
html[data-supporter-theme=dark] .spfl-settings::before{color:#edf4ff!important}
html[data-supporter-theme=dark] #spfl-reset{background:#193b61!important;color:#fff!important;border:1px solid #7894b5!important}
html[data-supporter-theme=dark] .spfl-team-combobox,html[data-supporter-theme=dark] #spfl-team-picker{background:#0b192e!important;color:#edf4ff!important;border-color:#6785a5!important}
html[data-supporter-theme=dark] :is(.all-competition-group,.transfer-tracker-intro,.transfer-card,.injury-card,.squad-feed-empty,.songbook-grid article,.songbook-filters button){background:#10213b!important;color:#edf4ff!important;border-color:#45617e!important}
html[data-supporter-theme=dark] .songbook-filters [aria-pressed=true]{background:#2465a2!important;color:#fff!important}
html[data-supporter-theme=dark] :is(.songbook-grid,.transfer-tracker-intro,.transfer-card,.injury-card,.supporter-bus-card) :is(a,p,small,span,em){color:#c9dbf1!important}
html[data-supporter-theme=dark] :is(.songbook-grid,.supporter-bus-card) a{color:#a9d2ff!important}
html[data-supporter-theme=dark] :is(.spfl-stats-heading,.home-live-fixture,.spfl-match-standings,.spfl-cup-group,.spfl-cup-groups){background:#10213b!important;color:#edf4ff!important;border-color:#45617e!important}
html[data-supporter-theme=dark] #spfl .fixture-week-calendar{background:#10213b!important;color:#edf4ff!important;border-color:#6785a5!important}
html[data-supporter-theme=dark] #spfl .week-calendar-rows button{background:#19334f!important;color:#edf4ff!important}
html[data-supporter-theme=dark] #spfl .week-calendar-rows button[aria-pressed=true]{background:#2465a2!important;color:#fff!important}
html[data-supporter-theme=dark] #results .national-history-entry{background:#193b61!important;color:#fff!important}
html[data-supporter-theme=dark] :is(.spfl-team a,.spfl-team,.spfl-score,.spfl-score strong,.spfl-score b){color:#edf4ff!important}
html[data-supporter-theme=dark] :is(.is-live .spfl-score,.is-live .spfl-score strong,.is-live .spfl-score b){color:#ff8a93!important}
/* Equal tabs on all sizes; labels may wrap inside their own column. */
#spfl .spfl-view-switcher{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;overflow:visible!important;padding:5px!important}
#spfl .spfl-view-switcher button{width:100%!important;min-width:0!important;white-space:normal!important;padding:12px 4px!important;text-align:center!important;overflow-wrap:normal;line-height:1.25!important}
.profile-tabs{display:flex!important;gap:6px!important}.profile-tabs button{flex:1 1 0!important;min-width:0!important;text-align:center!important}
html[data-supporter-theme=dark] .profile-tabs button{background:#19334f!important;color:#edf4ff!important;border-color:#7894b5!important}
html[data-supporter-theme=dark] .profile-tabs button.active{background:#2465a2!important;color:#fff!important}
@media(max-width:600px){#spfl .spfl-view-switcher button{font-size:11px!important;letter-spacing:0!important;min-height:48px!important}}
@media(max-width:1100px){
 .site-header:has(.supporter-header-actions){grid-template-columns:minmax(0,1fr) auto auto auto!important;gap:6px!important}
 .site-header:has(.supporter-header-actions) .brand{gap:6px!important;overflow:hidden}
 .site-header:has(.supporter-header-actions) .brand-name{display:block!important;position:static!important;width:auto!important;height:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important;font-size:clamp(10px,2.8vw,16px)!important;line-height:1.2!important;letter-spacing:0!important;color:#102f53!important}
 html[data-supporter-theme=dark] .site-header:has(.supporter-header-actions) .brand-name,html[data-supporter-theme=dark] .brand-default{color:#fff!important}
 .site-header:has(.supporter-header-actions) .brand-logo{width:36px!important;height:36px!important}
 .site-header .supporter-header-actions a,.site-header .supporter-header-actions button{padding:9px 7px!important;font-size:10px!important}
 .standalone-header .brand-name{display:block!important;font-size:13px!important;color:#102f53}
 html[data-supporter-theme=dark] .standalone-header .brand-name{color:#fff!important}
}
.home-league-tables{margin:36px 0;padding:24px;background:#102f53;color:white;border-radius:18px;border:1px solid #45617e}
.home-league-tables h2{color:white!important;margin:0 0 20px;font-size:32px}
.home-league-tables h3{color:#f4d44e!important;font-size:23px;margin:0 0 14px}
.home-league-tables table{width:100%;border-collapse:collapse;font:13px Inter,Arial,sans-serif;color:#fff!important}
.home-league-tables :is(td,th){padding:10px 5px;text-align:center;border-bottom:1px solid #446280;color:#edf4ff!important;background:transparent!important}
.home-league-tables :is(td,th):nth-child(2){text-align:left}
.home-league-tables td:nth-child(2) a{display:flex;align-items:center;gap:9px;color:#fff!important;text-decoration:none}
.home-league-tables img{width:24px;height:24px;object-fit:contain;flex:none}
.home-league-tables .table-rotation-dots{display:flex;justify-content:center;gap:10px;margin:20px 0 14px}
.table-rotation-dots button{width:11px;height:11px;padding:0;border-radius:50%;border:1px solid #d3e2f6;background:#7289a8;cursor:pointer}
.table-rotation-dots button[aria-current=true]{background:#f4d44e;border-color:#f4d44e}
.home-league-tables>a{color:#f4d44e!important;font-weight:800;font-size:13px}
.home-league-tables .home-tables-note{color:#c9dbf1!important;font-size:12px}
@media(max-width:480px){.home-league-tables{padding:16px 10px}.home-league-tables :is(td,th){font-size:11px;padding:9px 3px}.home-league-tables td:nth-child(2) a{gap:5px}.home-league-tables img{width:20px;height:20px}}

/* Stadium explorer, injury/transfer details and linked availability portraits. */
html[data-supporter-theme=dark] :is(.stadium-search-bar,.stadium-detail,.stadium-filters,.stadium-card,.injury-card dl>div,.transfer-card dl>div){background:#10213b!important;color:#edf4ff!important;border-color:#45617e!important}
html[data-supporter-theme=dark] :is(.injury-card,.transfer-card) :is(dt,dd){color:#edf4ff!important}
html[data-supporter-theme=dark] :is(.stadium-detail,.stadium-filters,.stadium-card,.stadium-search-bar) :is(p,small,label,legend,strong,a,dt,dd){color:#d5e5fa!important}
html[data-supporter-theme=dark] .stadium-map{background:#10213b!important;border-color:#45617e!important}
html[data-supporter-theme=dark] .stadium-map .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.82) saturate(.65)}
html[data-supporter-theme=dark] .stadium-map :is(.leaflet-bar a,.leaflet-control-attribution,.leaflet-tooltip,.leaflet-popup-content-wrapper,.leaflet-popup-tip){background:#10213b!important;color:#edf4ff!important;border-color:#6785a5!important}
html[data-supporter-theme=dark] .stadium-map .leaflet-control-attribution a{color:#b5d8ff!important}
html[data-supporter-theme=dark] .stadiums-page .spfl-map-league-switcher button{background:#19334f!important;color:#edf4ff!important;border-color:#6785a5!important}
html[data-supporter-theme=dark] .stadiums-page .spfl-map-league-switcher button.active{background:#2465a2!important;color:#fff!important}
.availability-teams li .availability-player-head{display:flex;align-items:center;gap:9px;min-width:0}
.availability-teams .availability-player-link{display:flex;align-items:center;gap:11px;min-width:0;color:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.availability-teams .availability-player-link span{overflow-wrap:anywhere}
.availability-teams .availability-player-photo{display:block;width:44px!important;height:44px!important;flex:0 0 44px;border-radius:50%;object-fit:cover;background:#19334f}
.availability-teams .availability-status-icon{flex:none;display:inline-flex;align-items:center;justify-content:center}
.availability-teams li>small{display:block;margin:7px 0 0 55px;line-height:1.5}
html[data-supporter-theme=dark] .availability-teams .availability-player-link{color:#b5d8ff!important}

.injury-player[href]{color:inherit;text-decoration:none}.injury-player[href]:hover h3{text-decoration:underline}

/* Shared standalone pages and compact matchday hub, 21 October. */
.standalone-header{display:flex!important;justify-content:flex-start!important;gap:18px!important}.standalone-header .standalone-brand{margin-right:auto!important;min-width:0}.standalone-header .standalone-back{margin-left:auto!important;position:static!important;transform:none!important;flex-shrink:0}.standalone-header .supporter-header-actions{margin-left:0!important}.standalone-header .brand-name{display:block!important;color:inherit;font-family:Anton,Impact,sans-serif;font-size:clamp(16px,2vw,28px)}
html[data-supporter-theme=dark] :is(.legal-shell,.legal-callout,.legal-toc a){background:#10213b!important;color:#e7effb!important;border-color:#526c8c!important}html[data-supporter-theme=dark] .legal-shell a{color:#a9d1ff!important}html[data-supporter-theme=dark] .legal-shell :is(p,li,h1,h2,h3,small){color:#e7effb!important}
.spfl-table-controls{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(130px,.45fr)!important;gap:16px!important}.spfl-table-controls>label:has(#spfl-table-league){grid-column:1;grid-row:1}.spfl-table-controls>label:has(#spfl-table-season){grid-column:2;grid-row:1;text-align:right}.spfl-table-controls>label[hidden]{display:none!important}.spfl-table-controls>label:has(#spfl-table-stage){display:none!important}.spfl-split-tabs{display:flex;border-bottom:1px solid #8796ab;margin:0 0 18px}.spfl-split-tabs[hidden]{display:none}.spfl-split-tabs button{flex:1;padding:18px;border:0;border-bottom:3px solid transparent;background:transparent;color:inherit;font:700 14px Inter,Arial;cursor:pointer}.spfl-split-tabs button[aria-selected=true]{border-bottom-color:currentColor}.spfl-split-tables{display:block!important}.spfl-split-section+.spfl-split-section{margin-top:28px}
.table-form{display:inline-flex;gap:6px;white-space:nowrap;padding:4px}.table-form-dot{display:inline-flex;width:19px;height:19px;align-items:center;justify-content:center;border-radius:50%;color:#fff!important;font:bold 14px Arial}.table-form-dot.win{background:#398545}.table-form-dot.loss{background:#d34a3d}.table-form-dot.draw{background:#767a85}.table-form-dot.newest{outline:1px solid currentColor;outline-offset:2px}.spfl-table-scroll th:last-child{white-space:nowrap}
.home-actions .home-action-card{border:1px solid rgba(255,255,255,.75)!important;box-shadow:0 0 0 1px #a8b5c933,0 6px 20px #071f4314;border-radius:12px;min-width:0}.home-actions .home-league-tables{grid-column:span 2;min-width:0;margin:0!important;padding:18px!important;border:1px solid #ffffffb8!important;border-radius:12px;box-shadow:0 0 0 1px #a8b5c955;background:#10213b!important;color:#fff!important}.home-actions .home-league-tables h3{font-size:18px!important;margin:0 0 10px!important;color:#fff!important}.home-actions .home-league-tables table{min-width:0!important;width:100%;font-size:12px!important}.home-actions .home-league-tables :is(td,th){padding:5px!important;color:#fff!important;background:transparent!important}.home-actions .home-league-tables a{color:#fff!important;font-size:12px}.home-actions .home-league-tables img{width:18px!important;height:18px!important}.home-actions .home-league-tables .home-tables-note{font-size:10px;color:#c1cfe1!important;margin:5px 0}.home-news-digest{margin-top:0!important}.home-actions{align-items:stretch}
@media(max-width:600px){.standalone-header{flex-wrap:wrap;padding:12px!important;gap:10px!important}.standalone-header .brand-logo{width:42px!important;height:42px!important}.standalone-header .standalone-brand{flex:1 1 100%}.standalone-header .standalone-back{font-size:12px!important;padding:10px!important}.standalone-header .supporter-header-actions{margin-left:0!important}.spfl-table-controls{grid-template-columns:minmax(0,1fr) 115px!important;gap:8px!important}.spfl-table-controls select{font-size:12px!important}.home-actions .home-league-tables{grid-column:1/-1}.table-form{gap:4px}.table-form-dot{width:16px;height:16px;font-size:12px}}
.standalone-header .standalone-brand{order:1}.standalone-header .supporter-header-actions{order:2;margin-left:auto!important}.standalone-header .standalone-back{order:3;margin-left:0!important}
#spfl-table .spfl-table-scroll{overflow-x:auto;max-width:100%}#spfl-table table{min-width:720px;width:100%;font:13px Inter,Arial,sans-serif!important}#spfl-table :is(td,th){font:inherit!important;padding:12px 8px!important}#spfl-table th{font-size:12px!important;font-weight:700!important}#spfl-table td:nth-child(2){min-width:165px}#spfl-table td strong{font:600 13px Inter,Arial,sans-serif!important}.home-actions .home-league-tables .table-rotation-dots{margin:10px 0 8px}

.home-table-body{max-height:150px;overflow:auto;scrollbar-width:thin}.home-table-body thead{position:sticky;top:0;background:#10213b;z-index:1}

/* Complete matchday hub and dark surfaces. */
.home-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row dense;gap:18px!important}.home-actions .home-action-card{min-height:220px;padding:24px!important}.home-actions .home-league-tables{grid-column:3!important;grid-row:1/span 4;align-self:stretch;display:flex;flex-direction:column;background:linear-gradient(#10213bf2,#10213bf5),url('/assets/news-barclays-hampden.webp') center/cover!important}.home-actions .home-league-tables[hidden]{display:none}.home-table-body{max-height:none!important;overflow:visible!important}.home-table-body thead{position:static}.home-actions .home-league-tables :is(td,th){padding:14px 4px!important}.home-actions .home-league-tables td:nth-child(2){width:auto!important}.home-actions .home-league-tables td:nth-child(2) a{white-space:normal;overflow-wrap:anywhere}.home-actions .home-league-tables .home-table-slide{flex:1}.home-actions .home-league-tables h3{line-height:1.4}.home-action-card[href*="spflView=map"]{background:url('/assets/news-barclays-hampden.webp') center/cover!important}.home-action-card[data-redesign-target=calendar]{background:url('/assets/gallery/stadiums-04.webp') center/cover!important}.home-action-card.home-banner-quiz{background:url('/assets/gallery/stadiums-03.webp') center/cover!important}.home-action-card.home-banner-buses{background:url('/assets/gallery/supporters-02.webp') center/cover!important}.home-action-card>span{font-size:12px;line-height:1.5;margin-top:10px}.home-banner-predictor{background:linear-gradient(90deg,#071f43e6,#071f4366),url('/assets/gallery/stadiums-02.webp') center/cover!important}.home-banner-predictor>span{max-width:650px;line-height:1.6}.home-feature-banners:has(.home-banner-predictor){display:block}
#home :is(.gallery-preview,.home-feature-banner,.news-feature-carousel,.kickoff-card,.previous-result-card,.home-football,.home-stats-tile){border:1px solid #ffffffbd!important;box-shadow:0 0 0 1px #8096b033,0 6px 20px #071f4322;border-radius:12px;overflow:hidden}.home-stats-tile{min-height:220px;position:relative;padding:24px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(#071f43ca,#071f43ef),url('/assets/gallery/stadiums-02.webp') center/cover;color:#fff}.home-stats-tile h3{font:28px/1.1 Anton,Arial;margin:8px 0}.home-stats-tile ol{padding-left:20px;font-size:13px;line-height:1.8;margin:6px 0}.home-stats-tile a{color:#ffe34f;font-weight:800;font-size:12px;margin-top:12px}.home-stats-tile p{font-size:13px;line-height:1.5}.home-stats-tile small{color:#c8e5ff}.home-stats-tile .stats-rotate-controls{display:flex;gap:8px;margin-top:10px}.stats-rotate-controls button{background:#10213b;color:white;border:1px solid #becce0;border-radius:50%;width:26px;height:26px;cursor:pointer}
.leader-appearances{display:block;margin-top:6px;white-space:normal;font:600 11px/1.4 Inter,Arial!important;text-transform:none!important}.spfl-match-card.fotmob-match-row{min-height:108px!important;padding-top:20px!important;padding-bottom:20px!important}.national-match-card,.national-fixture-row{min-height:100px}.supporter-admin-entry{display:inline-flex!important;align-items:center}.standalone-header .supporter-header-actions{flex-wrap:wrap}
html[data-supporter-theme=dark] :is(.spfl-stat-facts article,.spfl-team-records article,.scorer-list article,.spfl-top-stats .live-loading-card,.spfl-outcome-chart,.spfl-team-stats-title,.social-card,.gallery-lightbox,.gallery-photo-details){background:#10213b!important;color:#f1f5ff!important;border-color:#526c8c!important}html[data-supporter-theme=dark] :is(.spfl-competition-stats,.spfl-top-stats,.social-card,.gallery-photo-details,.squad-card-copy,.player-big-stats,.bus-tools,.supporter-bus-card,.bus-results-count) :is(h2,h3,h4,p,span,strong,b,small,label,em,dt,dd,a){color:#f1f5ff!important}html[data-supporter-theme=dark] .spfl-stat-facts article b{color:#b6d5ff!important}html[data-supporter-theme=dark] .supporter-bus-card-body>small{background:#2c4665!important;color:#fff!important}html[data-supporter-theme=dark] .gallery-match-score>b{color:#fff!important}html[data-supporter-theme=dark] .gallery-photo-details>a{color:#b6d5ff!important}html[data-supporter-theme=dark] .gallery-match-link{background:#315b91!important;color:#fff!important}html[data-supporter-theme=dark] .social-icon{background:#213b60;color:#b6d5ff!important}html[data-supporter-theme=dark] .social-icon svg{fill:#b6d5ff;stroke:#b6d5ff}html[data-supporter-theme=dark] .bus-tools label{color:#fff!important}html[data-supporter-theme=dark] .supporter-bus-card-body{color:#f1f5ff!important}
@media(max-width:900px){.home-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}.home-actions .home-league-tables{grid-column:2!important;grid-row:1/span 4}.home-actions .home-action-card{padding:20px!important}.home-action-card strong{font-size:28px!important}}
@media(max-width:600px){.home-actions{grid-template-columns:1fr!important}.home-actions .home-league-tables{grid-column:1!important;grid-row:auto!important}.home-actions .home-league-tables :is(td,th){padding:12px 6px!important}.site-header .supporter-admin-entry{display:none!important}.more-nav-menu .more-admin-link{display:flex!important}.spfl-match-card.fotmob-match-row{min-height:116px!important}.home-actions .home-action-card{min-height:220px}.home-stats-tile{min-height:220px}}
html[data-supporter-theme=dark] :is(.bus-count,.bus-source-note,.bus-source-note a){color:#c8ddff!important}html[data-supporter-theme=dark] .bus-safety{background:#302131!important;border-color:#bf7a83!important;color:#ffe3e6!important}html[data-supporter-theme=dark] .bus-safety :is(strong,p){color:#ffe3e6!important}

#home .news-feature-slide:not(:has(.news-feature-image)){background:linear-gradient(90deg,#071f43e8,#071f4399),url('/assets/gallery/stadiums-02.webp') center/cover}#home .gallery-preview:has(> .gallery-preview-cta:only-child){background:url('/assets/gallery/stadiums-02.webp') center/cover}#home .home-banner-predictor{min-height:300px}#home .home-league-tables .home-table-body{scrollbar-width:none}html[data-supporter-theme=dark] .squad-card-copy :is(span,b){color:#fff!important}


/* Home imagery: verified Scotland portraits or gallery stadium photos only. */
#home .home-action-card.home-action-xi{background:url('/assets/squad/andy-robertson.webp') center 20%/cover!important}#home .home-action-card[data-redesign-view=current]{background:url('/assets/squad/billy-gilmour.webp') center 20%/cover!important}#home .home-action-card[data-redesign-target=national]{background:url('/assets/gallery/stadiums-02.webp') center/cover!important}#home .home-action-card[href*="spflView=map"]{background:url('/assets/gallery/stadiums-03.webp') center/cover!important}#home .home-action-card[data-redesign-target=calendar]{background:url('/assets/gallery/stadiums-04.webp') center/cover!important}#home .home-action-card.home-banner-quiz{background:url('/assets/squad/john-mcginn.webp') center 20%/cover!important}#home .home-action-card.home-banner-buses{background:url('/assets/gallery/stadiums-02.webp') center/cover!important}#home .home-actions .home-league-tables{background:linear-gradient(#10213bef,#10213bf2),url('/assets/gallery/stadiums-03.webp') center/cover!important}.home-stats-slide{min-height:125px;overflow:hidden}.home-stats-tile{min-width:0}.home-stats-slide li{overflow-wrap:anywhere}
#home .home-action-card.home-action-xi{background:url('/assets/squad/billy-gilmour.webp') center 20%/cover!important}#home .home-action-card[data-redesign-view=current]{background:url('/assets/squad/andy-robertson.webp') center 20%/cover!important}

.home-stats-tile.is-overview{text-align:center;align-items:center;background:linear-gradient(#071f43b8,#071f43eb),url('/assets/gallery/stadiums-03.webp') center/cover}.home-stats-tile.is-overview>a{display:none}.home-stats-tile.is-overview .home-stats-slide{display:grid;place-items:center;width:100%}.stats-overview{display:grid;justify-items:center;gap:10px}.stats-overview h3{margin:0}.home-stats-tile .stats-overview-cta{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 20px;border:1px solid #fff9;border-radius:7px;background:#ffe34f;color:#071f43!important;margin:0;font:800 12px Inter,Arial;text-decoration:none}.home-stats-tile .stats-overview p{margin:0;color:#dbe8fa;font-size:11px}.home-stats-tile .stats-overview-cta:hover{background:#fff1a2}.home-stats-tile .stats-overview-cta:focus-visible{outline:3px solid white;outline-offset:3px}

/* Portraits are independent of profile availability, including European opponents. */
.availability-teams .availability-player-person{display:flex;align-items:center;gap:11px;min-width:0;font-weight:800}
.availability-teams .availability-player-person>span{overflow-wrap:anywhere;min-width:0}
html[data-supporter-theme=dark] .availability-teams .availability-player-person a{color:#b5d8ff!important}
#history-quiz .quiz-round-picker{text-align:center}
#history-quiz .quiz-round-description{margin-left:auto;margin-right:auto}
#history-quiz .quiz-round-buttons button{text-align:center;grid-template-columns:56px minmax(0,1fr) 56px;padding-left:0;padding-right:0}
#history-quiz .quiz-round-buttons button:hover{padding-left:0}

/* Quiz picker heading contrast */
#history-quiz .quiz-round-picker h2{color:#081b36!important}

/* Live result dots use the requested result colours in either theme. */
.table-live-team[data-live-result]{background:var(--live-dot-colour);border:1px solid var(--live-dot-edge);box-shadow:0 0 0 3px var(--live-dot-halo);animation-name:table-result-pulse}
.table-live-team[data-live-result=win]{--live-dot-colour:#00e640;--live-dot-edge:#006b21;--live-dot-halo:rgba(0,230,64,.35)}
.table-live-team[data-live-result=loss]{--live-dot-colour:#ff263c;--live-dot-edge:#891120;--live-dot-halo:rgba(255,38,60,.35)}
.table-live-team:is([data-live-result=draw],[data-live-result=unknown]){--live-dot-colour:#7a7a7a;--live-dot-edge:#454545;--live-dot-halo:rgba(122,122,122,.2)}
@keyframes table-result-pulse{50%{box-shadow:0 0 0 6px transparent}}
/* Dark mode only: preserve every existing light-mode quiz colour. */
html[data-supporter-theme=dark] #history-quiz{background:#0d192d!important;color:#eef4ff}
html[data-supporter-theme=dark] #history-quiz :is([data-quiz-question],.quiz-round-picker h2,.quiz-round-buttons button,.quiz-answer-form label,.quiz-review-list strong){color:#eef4ff!important}
html[data-supporter-theme=dark] #history-quiz :is(.quiz-kicker,.quiz-round-description,.quiz-round-buttons small,.quiz-bank-note,.quiz-number,.quiz-clue,.quiz-answer-form p,.quiz-review-intro,.quiz-review-list small,.quiz-answer-form label small){color:#b7c9e3!important}
html[data-supporter-theme=dark] #history-quiz :is(.quiz-round-picker h2 mark,.quiz-round-buttons strong,.quiz-edit-label){color:#9acbff!important}
html[data-supporter-theme=dark] #history-quiz :is(.quiz-restart,.quiz-review-button,.quiz-back){color:#dceaff!important}
html[data-supporter-theme=dark] #history-quiz :is(.quiz-round-buttons,.quiz-round-buttons button,.quiz-back){border-color:#536d92}
html[data-supporter-theme=dark] #history-quiz .quiz-round-buttons button:hover{background:#1c304d}
html[data-supporter-theme=dark] #history-quiz :is(.quiz-options button,.quiz-answer-form input){color:#eef4ff!important;background:#182a45!important;border-color:#536d92!important}
html[data-supporter-theme=dark] #history-quiz .quiz-answer-form input::placeholder{color:#b7c9e3}
html[data-supporter-theme=dark] #history-quiz .quiz-options button:hover:not(:disabled){background:#223957!important}
html[data-supporter-theme=dark] #history-quiz .quiz-options button.selected{background:#29486f!important;border-color:#f4d44e!important}
html[data-supporter-theme=dark] #history-quiz .quiz-options button.selected b{background:#153256}
html[data-supporter-theme=dark] #history-quiz .quiz-options button.correct{background:#153c30!important;border-color:#64d79a!important}
html[data-supporter-theme=dark] #history-quiz .quiz-options button.wrong{background:#492831!important;border-color:#ff9f9c!important}
html[data-supporter-theme=dark] #history-quiz .quiz-feedback.correct-feedback{background:#153c30;color:#eef4ff}
html[data-supporter-theme=dark] #history-quiz .quiz-feedback.wrong-feedback{background:#492831;color:#eef4ff}
html[data-supporter-theme=dark] #history-quiz .quiz-progress{background:#29415e}
html[data-supporter-theme=dark] #history-quiz .quiz-progress span{background:#9acbff}
html[data-supporter-theme=dark] #history-quiz :is(.quiz-finish h4,.quiz-answer-review summary,.quiz-answer-review li>strong){color:#eef4ff!important}
html[data-supporter-theme=dark] #history-quiz :is(.quiz-answer-review p,.quiz-answer-review small){color:#c7d7ec!important}
html[data-supporter-theme=dark] #history-quiz :is(button,input):focus-visible{outline-color:#f4d44e}

/* Preserve trophy detail against dark surfaces; keep light-mode artwork unchanged. */
html[data-supporter-theme=dark] .club-honour img{mix-blend-mode:normal}
html[data-supporter-theme=dark] .club-honours{border-top-color:#45617e}
