/* The 90 Index | Brand system 1.1 | 24 October 2026.
   Authoritative presentation layer. See /assets/ninety-index/brand-guide.html.
   Keep data, layout mechanics, badges and responsive visibility in their modules. */
:root{
 --brand-navy-950:#091729;--brand-navy-900:#0B1626;--brand-navy-800:#10223A;
 --brand-navy-700:#182F4D;--brand-navy-600:#263C58;
 --brand-blue-100:#E8F0FB;--brand-blue-200:#C5DDFF;--brand-blue-300:#94C3FF;
 --brand-blue-500:#407FC9;--brand-blue-700:#255CAA;--brand-blue-800:#1B4786;
 --brand-paper:#F3F6FB;--brand-white:#FFFFFF;--brand-slate:#A6B8D0;
 --font-reading:var(--site-type);--font-ui:var(--site-type);
 --type-display:clamp(2rem,3.2vw,2.75rem);--type-h1:2rem;--type-h2:1.625rem;--type-h3:1.125rem;
 --type-body:1rem;--type-compact:.875rem;--type-data:.875rem;--type-label:.75rem;--type-micro:.6875rem;
 --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;
 --radius-control:8px;--radius-card:12px;--radius-sheet:18px;
}
html[data-theme=light],html[data-theme=light] body[data-palette],body[data-palette]{
 color-scheme:light;--bg:var(--brand-paper);--panel:var(--brand-white);--ink:#172A47;--muted:#52647E;
 --line:#DCE4EF;--control-edge:#7B8DA6;--green:var(--brand-blue-700);--lime:var(--brand-blue-300);
 --soft:var(--brand-blue-100);--column:#EEF4FD;--sidebar:var(--brand-navy-950);
 --action:var(--brand-blue-700);--action-hover:var(--brand-blue-800);--on-action:#FFFFFF;
 --selected:#DCEAFF;--on-selected:#173F78;--focus:var(--brand-blue-700);
 --positive:#246747;--negative:#A8314D;--caution:#805600;
 --home-bar:#255CAA;--draw-bar:#8393A8;--away-bar:#A66228;
 --brand-text:var(--green);--surface:var(--panel);--surface-muted:var(--soft);--surface-control:var(--panel);--surface-hover:var(--soft);--neg:var(--negative);
}
html[data-theme=dark],html[data-theme=dark] body[data-palette],body[data-palette].dark{
 color-scheme:dark;--bg:var(--brand-navy-900);--panel:var(--brand-navy-800);--ink:#EDF4FF;--muted:var(--brand-slate);
 --line:var(--brand-navy-600);--control-edge:#637C9D;--green:var(--brand-blue-300);--lime:var(--brand-blue-300);
 --soft:var(--brand-navy-700);--column:#173150;--sidebar:var(--brand-navy-950);
 --action:var(--brand-blue-300);--action-hover:var(--brand-blue-200);--on-action:#102B4D;
 --selected:#244873;--on-selected:#EDF4FF;--focus:var(--brand-blue-300);
 --positive:#8BD5AF;--negative:#F4A0B3;--caution:#E4C27B;
 --home-bar:#94C3FF;--draw-bar:#8393A8;--away-bar:#E0B17A;
}
html{background:var(--bg)}
body[data-palette]{font-family:var(--font-reading);font-size:var(--type-compact);line-height:1.5;background:var(--bg);color:var(--ink)}
body[data-palette] :is(button,input,select,textarea,option,optgroup){font-family:var(--font-ui);letter-spacing:0}
body[data-palette] :is(h1,h2,h3,h4){font-family:var(--font-reading);color:var(--ink);font-weight:600;letter-spacing:-.025em}
body[data-palette] h1{font-size:var(--type-h1);line-height:1.2}
body[data-palette] h2{font-size:var(--type-h2);line-height:1.25}
body[data-palette] h3{font-size:var(--type-h3);line-height:1.35;letter-spacing:-.015em}
body[data-palette] h4{font-size:1rem;line-height:1.4;letter-spacing:0}
body[data-palette] :is(strong,b){font-weight:600}
body[data-palette] :is(.eyebrow,.nav-label){font-family:var(--font-ui);font-size:var(--type-micro);line-height:1.3;font-weight:600;letter-spacing:.1em;color:var(--muted)}
body[data-palette] :is(.original-copy,.prose,#reading-content,.profile-narratives,.app-guide-content,.app-guide-body){font-family:var(--font-reading);font-size:var(--type-body);line-height:1.65}
body[data-palette] :is(.original-copy,.prose,#reading-content,.profile-narratives,.app-guide-content,.app-guide-body) :is(p,li,dd,.team-description){font-size:inherit;line-height:1.65;color:var(--ink)}
body[data-palette] :is(.original-copy,.prose,#reading-content) p{max-width:70ch}
body[data-palette] :is(.reading-heading h2,.app-guide-dialog h2,#profile-name){font-size:1.5rem;line-height:1.25}
body[data-palette] :is(.table-tools h3,.view-intro h3){font-size:1rem;line-height:1.35}
body[data-palette] :is(.table-tools p,.index-guide,.view-intro p,.note,.capture-label){font-size:var(--type-label);line-height:1.5;color:var(--muted)}
body[data-palette] .index-guide strong{color:var(--ink)}
body[data-palette] :is(table,.score,.reference-chip,.fixture-score,.prediction-score,.profile-scores strong,.probabilities b,.duel-label){font-family:var(--font-ui);font-variant-numeric:tabular-nums lining-nums;letter-spacing:0}
body[data-palette] :is(td,.snapshot-table td){font-size:var(--type-data);font-weight:400}
body[data-palette] :is(th,.snapshot-table th){font-size:var(--type-label);font-weight:600;line-height:1.3;letter-spacing:0}
body[data-palette] :is(td,th):first-child{font-family:var(--font-ui)}
body[data-palette] :is(table .club,.snapshot-table .club){font-family:var(--font-ui);font-size:var(--type-data);font-weight:600;line-height:1.35}
body[data-palette] .score{font-size:1rem;font-weight:600;line-height:1.25}
body[data-palette] .main-metric .score{font-weight:700;color:var(--green)}
body[data-palette] .fixture-score{font-size:1.5rem;line-height:1.2;font-weight:600;color:var(--green)}
body[data-palette] .fixture-score small{font-family:var(--font-ui);font-size:var(--type-micro);line-height:1.35}
body[data-palette] .fixture-card details p{font-size:var(--type-compact);line-height:1.65}
body[data-palette] .probabilities b{font-size:1.125rem;font-weight:600}
body[data-palette] .profile-scores strong{font-size:1.75rem;font-weight:600}
body[data-palette] :is(.text-link,.reading-actions button,.column-switch button,.performance-column-switch button,.period-switch button){font-size:var(--type-compact);font-weight:600}
body[data-palette] :is(select,.search){border-color:var(--control-edge);border-radius:var(--radius-control)}
body[data-palette] select{color:var(--ink);background-color:var(--panel);font-size:1rem;min-height:44px}
body[data-palette] input:not([type=checkbox]):not([type=radio]){font-size:1rem}
body[data-palette] :is(.primary,#welcome-enter){background:var(--action);color:var(--on-action)!important;border:1px solid var(--action);border-radius:var(--radius-control);font-family:var(--font-ui);font-size:1rem;font-weight:600;min-height:44px}
body[data-palette] :is(.primary,#welcome-enter):hover{background:var(--action-hover);border-color:var(--action-hover)}
body[data-palette] #primary-nav :is(button,a){font-size:.9375rem;font-family:var(--font-ui);font-weight:500;color:#BCCDE2}
body[data-palette] #primary-nav button[data-page]>span{font:inherit;letter-spacing:inherit;width:auto}
body[data-palette] #primary-nav button.active{background:#244873;color:#EDF4FF;font-weight:600;box-shadow:inset 3px 0 #94C3FF}
body[data-palette] #primary-nav button.active:after{display:none}
body[data-palette] #primary-nav :is(button,a):hover{background:#182F4D;color:#EDF4FF}
body[data-palette] #primary-nav button.active:hover{background:#2D5687}
body[data-palette] :is(.tabs button.active,.column-switch button[aria-pressed=true],.performance-column-switch button[aria-pressed=true],.period-switch button[aria-pressed=true],.global-team-tabs button.active){background:var(--selected);color:var(--on-selected);border-color:var(--green);font-weight:600}
body[data-palette] .tabs button{font-size:.9375rem;padding-inline:12px;border-radius:8px 8px 0 0}
body[data-palette] .table-shell{border-radius:var(--radius-card);box-shadow:none}
body[data-palette] :is(.fixture-card,.comparison,.callout,.reading-guide){border-radius:var(--radius-card)}
body[data-palette] :is(.original-copy a,.prose a,.inline-column-guide){color:var(--green);text-decoration:underline;text-underline-offset:3px}
body[data-palette] .text-link:hover{text-decoration:underline;text-underline-offset:3px}
body[data-palette] :is(button,a,input,select,summary,[tabindex]):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
body[data-palette] #site-navigation :focus-visible{outline-color:#94C3FF}
body[data-palette] button:disabled{opacity:.5;cursor:not-allowed}
body[data-palette] .brand-logo{color:#EDF4FF}
body[data-palette] .logo-mark{color:#94C3FF}
body[data-palette] .logo-wordmark{color:inherit}
body[data-palette] .change.positive{color:var(--positive)}
body[data-palette] .change.negative{color:var(--negative)}
body[data-palette] .probability-bar i:nth-child(1){background:var(--home-bar)}
body[data-palette] .probability-bar i:nth-child(2){background:var(--draw-bar)}
body[data-palette] .probability-bar i:nth-child(3){background:var(--away-bar)}
body[data-palette] .compare-tray{background:var(--panel);color:var(--ink);border:1px solid var(--control-edge)}
body[data-palette] dialog{border-radius:var(--radius-sheet);border-color:var(--control-edge)}
body[data-palette] dialog::backdrop{background:#091729B8}
body[data-palette] #welcome h1{font-family:var(--font-reading);font-size:var(--type-display);font-weight:600;line-height:1.15;letter-spacing:-.035em;color:var(--ink);max-width:24ch;margin-inline:auto}
body[data-palette] #welcome .welcome-description{font-size:1rem;line-height:1.65;max-width:45ch;color:var(--muted)}
body[data-palette] #welcome .welcome-logo{color:var(--ink)}
body[data-palette] #welcome .logo-mark{color:var(--green)}
body[data-palette] #welcome .welcome-card-top{font-family:var(--font-ui);font-size:var(--type-label);letter-spacing:.12em;font-weight:600}
body[data-palette] #welcome .welcome-card-bottom{font-family:var(--font-ui);font-size:var(--type-label)}
body[data-palette] footer{font-family:var(--font-ui);font-size:var(--type-label);line-height:1.5}
body[data-palette] footer .text-link{font-size:var(--type-compact)}
@media(min-width:761px){
 body[data-palette] :is(#strength-view,#snapshot-view) .intro-guide>.about-copy>p{max-width:none}
 body[data-palette] .tabs{gap:8px}
 body[data-palette] .table-tools{padding:16px 24px}
 body[data-palette] :is(.table-tools p,.index-guide p){max-width:95ch}
 body[data-palette] .league-picker-label{font-size:var(--type-label)}
 body[data-palette] .rating-controls label{font-size:var(--type-label)}
}
@media(max-width:760px){
 :root{--type-h1:1.5rem;--type-h2:1.5rem;--type-h3:1.0625rem;--type-data:.8125rem;--type-label:.6875rem;--type-display:1.875rem}
 body[data-palette] :is(.original-copy,.prose,#reading-content,.profile-narratives,.app-guide-content,.app-guide-body){font-size:.9375rem}
 body[data-palette] :is(.reading-heading h2,.app-guide-dialog h2,#profile-name){font-size:1.25rem}
 body[data-palette] :is(.mobile-table-actions button,.column-switch button,.performance-column-switch button,.rating-controls>button,.table-options>.text-link){font-size:.8125rem}
 body[data-palette] :is(#ratings,#global) .table-shell :is(.club,.snapshot-table .club){font-size:var(--type-data)}
 body[data-palette] :is(#ratings,#global) .table-shell :is(th,td){font-size:var(--type-data)}
 body[data-palette] :is(#ratings,#global) .table-shell th{font-size:var(--type-label)}
 body[data-palette] .table-shell .score{font-size:.9375rem}
 body[data-palette] .app-bottom-nav :is(button,a,button span,a span){font-family:var(--font-ui);font-size:.75rem}
 body[data-palette] .app-bottom-nav :is(.active,[aria-current=page]){background:var(--selected);color:var(--on-selected);box-shadow:inset 0 2px var(--green)}
 body[data-palette] #welcome .welcome-description{font-size:.9375rem}
 body[data-palette] #site-last-updated{font-family:var(--font-ui);font-size:.6875rem}
 body[data-palette] .app-guide-dialog{border-radius:18px 18px 0 0}
}
@media(max-width:360px){body[data-palette] :is(#ratings,#global) .table-shell .club{font-size:.75rem}}
/* Match the legacy ID-scoped table rules without changing their layout. */
body[data-palette] #main :is(#strength-table,#global-table,.snapshot-table) :is(td,.club){font-size:var(--type-data)}
body[data-palette] #main :is(#strength-table,#global-table,.snapshot-table) th{font-size:var(--type-label)}
body[data-palette] #main :is(#strength-table,#global-table,.snapshot-table) .score{font-size:1rem}
body[data-palette] #main #league-title{font-size:var(--type-h1);line-height:1.2}
body[data-palette] :is(.change,.season,.comparison-head,.competition-grid a,.prose .large,.feature>div,.feature strong,.table-tools h3 span){font-family:var(--font-ui)}
@media(max-width:760px){body[data-palette] #main :is(#strength-table,#global-table,.snapshot-table) .score{font-size:.9375rem}}
@media(max-width:360px){body[data-palette] #main :is(#strength-table,#global-table,.snapshot-table) .club{font-size:.75rem}}
body[data-palette] #main .table-shell .snapshot-table.goals .goal-value{font-size:var(--type-data);font-weight:600}
body[data-palette] #global table .club-name small{font-size:var(--type-micro);line-height:1.3}
body[data-palette] .fixture-card .fixture-teams>strong{font-family:var(--font-ui);font-size:var(--type-data)!important}
/* Text roles on nested controls and reading panels must not inherit legacy sizes. */
body[data-palette] #main :is(#strength-table,#global-table,.snapshot-table) th button{font-size:inherit;line-height:inherit;font-weight:inherit}
body[data-palette] #main :is(.prose,.original-copy,#reading-content) .eyebrow{font-family:var(--font-ui);font-size:var(--type-micro);line-height:1.3;letter-spacing:.1em;font-weight:600;color:var(--muted)}
body[data-palette] :is(.note,.capture-label){font-family:var(--font-ui)}
body[data-palette] #main :is(.prose,.original-copy) :is(.small,.note),body[data-palette] #reading-content .small{font-family:var(--font-ui);font-size:var(--type-label);line-height:1.5;color:var(--muted)}
body[data-palette] #main :is(.model-title,.page>h2){color:var(--ink)}
body[data-palette] #reading-content h2{font-size:var(--type-h2);line-height:1.25}
body[data-palette] #reading-content h3{font-size:var(--type-h3);line-height:1.35}
body[data-palette] #main .period-controls button{font-size:var(--type-compact);font-weight:600}
body[data-palette] #main .period-controls button[aria-pressed=true]{background:var(--selected);color:var(--on-selected);border-color:var(--green);box-shadow:inset 0 -2px var(--green)}
body[data-palette] #main :is(.column-switch,.performance-column-switch) button[aria-pressed=true]{box-shadow:inset 0 -2px var(--green)}
body[data-palette] #main .compare-controls :is(input,select),body[data-palette] .compare-add input{min-height:44px;border-color:var(--control-edge);border-radius:var(--radius-control);font-family:var(--font-ui);font-size:1rem}
body[data-palette] #predict .prediction-score strong{font-size:2.125rem;line-height:1.2;font-weight:600;letter-spacing:0}
body[data-palette] .fixture-date{font-family:var(--font-ui);font-size:var(--type-label);line-height:1.4}
@media(max-width:760px){
 body[data-palette] #main .period-controls button{font-size:.8125rem}
 body[data-palette] #predict .prediction-score strong{font-size:1.75rem}
}
/* Echo the current header logo in headings and small selection accents. */
@media(forced-colors:none){
 body[data-palette]{--page-accent:var(--section-light);--page-heading:color-mix(in srgb,var(--page-accent) 28%,var(--ink))}
 html[data-theme=dark] body[data-palette]{--page-accent:var(--section-dark)}
 body[data-palette] .inline-brand .logo-mark{color:var(--section-dark)}
 /* Inline logos sit on content surfaces, so their wordmark follows the theme's text colour. */
 body[data-palette] .inline-brand .logo-wordmark{color:var(--ink);fill:currentColor}
 body[data-palette] #main :is(.model-title,.page>h2,.section-top h2,#league-title,.original-copy>h1){color:var(--page-heading)}
 body[data-palette] #primary-nav button.active{box-shadow:inset 3px 0 var(--section-dark)}
 body[data-palette] #main :is(.tabs button.active,.column-switch button[aria-pressed=true],.performance-column-switch button[aria-pressed=true],.period-controls button[aria-pressed=true]){border-color:var(--page-accent);box-shadow:inset 0 -2px var(--page-accent)}
 body[data-palette] .app-bottom-nav :is(.active,[aria-current=page]){box-shadow:inset 0 2px var(--page-accent)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(forced-colors:active){
 body[data-palette] :is(.primary,#welcome-enter,.tabs button.active,#primary-nav button.active,.app-bottom-nav [aria-current=page]){background:Highlight;color:HighlightText!important;border:1px solid HighlightText;box-shadow:none}
 body[data-palette] :is(button,a,input,select,summary,[tabindex]):focus-visible{outline-color:Highlight}
 body[data-palette] :is(.logo-mark,.logo-wordmark){color:CanvasText;fill:CanvasText}
}

body[data-palette] .fixture-card .club{font-family:var(--font-ui);font-size:var(--type-data);font-weight:600;line-height:1.35}

@media(min-width:761px){body[data-palette] #primary-nav button[data-page]{padding-inline:6px;gap:6px}body[data-palette] #primary-nav button[data-page] .icon{width:16px;height:16px}}

/* Date-based fixture browsing and compact outcome tables, 1 November 2026. */
#main #ratings .fixture-list>.fixture-day-heading{grid-column:1/-1;margin:22px 0 0;font-size:14px;line-height:1.4;letter-spacing:0}
#main #ratings .fixture-list>.fixture-day-heading:first-child{margin-top:8px}
@media(min-width:761px){
 #main :is(#strength-table,#global-table,.snapshot-table) th:nth-child(2),
 #main :is(#strength-table,#global-table,.snapshot-table) th:nth-child(2) button{text-align:center}
 #main :is(#strength-table,#global-table,.snapshot-table) th:nth-child(2) button{width:100%}
}
@media(max-width:760px){
 #ratings #snapshot-view .outcome-table.many-outcomes :is(th,td):first-child{width:20px;min-width:0;padding-inline:1px}
 #ratings #snapshot-view .outcome-table.many-outcomes :is(th,td):nth-child(2){width:32%;min-width:0;padding-inline:3px}
 #ratings #snapshot-view .outcome-table.many-outcomes .club{font-size:11px;gap:4px}
 #ratings #snapshot-view .outcome-table.many-outcomes .club-name{overflow-wrap:anywhere;white-space:normal}
 #ratings #snapshot-view .outcome-table.many-outcomes td.probability-column{font-size:11px;white-space:nowrap}
 #ratings #snapshot-view .outcome-table.many-outcomes th button{font-size:10px}
}
