/* Fira Sans and Fira Sans Extra Condensed, SIL Open Font License 1.1 (see /static/fonts/OFL.txt). Self-hosted: no font requests to third parties. */
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:optional;src:url(/static/fonts/fira-sans-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:optional;src:url(/static/fonts/fira-sans-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:optional;src:url(/static/fonts/fira-sans-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:optional;src:url(/static/fonts/fira-sans-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:optional;src:url(/static/fonts/fira-sans-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:optional;src:url(/static/fonts/fira-sans-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:optional;src:url(/static/fonts/fira-sans-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:optional;src:url(/static/fonts/fira-sans-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:optional;src:url(/static/fonts/fira-sans-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:600;font-display:optional;src:url(/static/fonts/fira-sans-extra-condensed-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:600;font-display:optional;src:url(/static/fonts/fira-sans-extra-condensed-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:600;font-display:optional;src:url(/static/fonts/fira-sans-extra-condensed-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:700;font-display:optional;src:url(/static/fonts/fira-sans-extra-condensed-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:700;font-display:optional;src:url(/static/fonts/fira-sans-extra-condensed-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:700;font-display:optional;src:url(/static/fonts/fira-sans-extra-condensed-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {
  --paper: #edf0ea;
  --surface: #ffffff;
  --ink: #17231c;
  --muted: #56655c;
  --line: #d3dad2;
  --pitch: #1d6a43;
  --pitch-deep: #155435;
  --chalk: #f4f8f2;
  --win: #1d6a43;
  --draw: #7d8279;
  --loss: #b23a48;
  --side-a: #17231c;
  --side-b: #2f8f5b;
  --body: "Fira Sans", system-ui, sans-serif;
  --display: "Fira Sans Extra Condensed", "Fira Sans", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.5 var(--body);
       font-variant-numeric: tabular-nums; }
a { color: var(--pitch); text-underline-offset: 0.18em; }
a:focus-visible, .fixture:focus-visible, summary:focus-visible { outline: 3px solid #f2c94c; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: .5rem; left: .5rem; z-index: 10; background: var(--surface); padding: .5rem .75rem; }

/* masthead */
.masthead { background: var(--pitch); color: var(--chalk); }
.masthead a { color: var(--chalk); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .85rem .4rem; }
.wordmark { font: 700 1.6rem/1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.wordmark span { font-weight: 600; opacity: .78; }
.langs { display: flex; gap: .25rem; }
.langs a { font: 600 var(--step--1)/1 var(--body); text-decoration: none; padding: .4rem .5rem; border-radius: 4px; opacity: .8; }
.langs a[aria-current] { opacity: 1; background: var(--pitch-deep); }
.leagues { display: flex; gap: 1.25rem; overflow-x: auto; padding-block: .5rem .8rem; scrollbar-width: none; }
.leagues a { font: 600 var(--step-0)/1.2 var(--display); white-space: nowrap; text-decoration: none; opacity: .85;
             padding-bottom: .2rem; border-bottom: 2px solid transparent; }
.leagues a:hover, .leagues a[aria-current] { opacity: 1; border-bottom-color: var(--chalk); }

/* page */
main { padding-block: 2rem 3rem; }
.page-title { font-size: var(--step-3); letter-spacing: -0.015em; max-width: 24ch; }
.page-title.as-h2 { font-size: var(--step-2); max-width: none; }
.lead { color: var(--muted); font-size: var(--step-1); line-height: 1.45; margin: .5rem 0 0; max-width: 60ch; }
.block { margin-top: 2.5rem; }
.block > h2 { font-size: var(--step-2); padding-bottom: .5rem; border-bottom: 2px solid var(--ink); margin-bottom: .25rem; }
.block > h2.h-small { font-size: var(--step-1); border-bottom-width: 1px; }
.empty { color: var(--muted); margin: .75rem 0 0; max-width: 60ch; }
.note { color: var(--muted); font-size: var(--step--1); margin: .75rem 0 0; max-width: 62ch; }
.button { display: inline-block; background: var(--pitch); color: var(--chalk); padding: .65rem 1.1rem; border-radius: 6px;
          text-decoration: none; font-weight: 600; }
.button.on-pitch { background: var(--chalk); color: var(--pitch-deep); }
.button.on-pitch:hover { background: #fff; }

/* league groups on the home page: native disclosure */
.group { border-bottom: 1px solid var(--line); }
.group summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: .5rem; padding: .9rem .25rem; }
.group summary::-webkit-details-marker { display: none; }
.group summary::before { content: ""; width: .5rem; height: .5rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
                         rotate: -45deg; translate: 0 -.1rem; transition: rotate .15s; flex: none; }
.group[open] summary::before { rotate: 45deg; }
.g-name { font: 700 var(--step-1)/1.1 var(--display); }
.group summary small { color: var(--muted); font-size: var(--step--1); }
.more { margin: .25rem 0 1rem; font-size: var(--step--1); text-align: right; }

/* fixture rows */
.fixtures { list-style: none; margin: 0; padding: 0; }
.fixtures > li + li { border-top: 1px solid var(--line); }
.fixtures > li.day { border-top: 0; padding: 1rem .25rem .35rem; font: 600 var(--step--1)/1.2 var(--body); color: var(--muted); }
.fixtures > li.day + li { border-top: 0; }
.fixture { display: grid; grid-template-columns: 5.5rem 1fr 4.5rem 1fr; grid-template-areas: "when home score away" ". meta meta meta" ". pred pred pred";
           align-items: center; column-gap: .75rem; padding: .55rem .25rem; color: var(--ink); text-decoration: none; }
.fixture:hover { background: var(--surface); }
.fixture .when { grid-area: when; color: var(--muted); font-size: var(--step--1); }
.fixture .home { grid-area: home; text-align: right; font-weight: 600; }
.fixture .away { grid-area: away; font-weight: 600; }
.fixture .meta { grid-area: meta; text-align: center; color: var(--muted); font-size: var(--step--1); }
.score { grid-area: score; justify-self: center; font: 700 var(--step-1)/1 var(--display); background: var(--ink); color: var(--chalk);
         padding: .3rem .5rem; border-radius: 4px; min-width: 3.5rem; text-align: center; white-space: nowrap; }
.score .dash { padding-inline: .15em; opacity: .6; }
.score.is-empty { background: transparent; color: var(--muted); font-weight: 600; }
.score.is-state { background: transparent; color: var(--pitch); border: 1px solid currentColor; font: 600 .75rem/1.1 var(--body);
                  padding: .3rem .35rem; white-space: normal; }

/* layouts */
.home-grid, .league-grid, .match-grid { display: grid; gap: 0 3rem; }
@media (min-width: 64rem) {
  .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .league-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .league-grid.is-lists { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .match-grid { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; }
}

/* table */
.standings { width: 100%; border-collapse: collapse; font-size: var(--step--1); margin-top: .25rem; }
.standings th, .standings td { padding: .5rem .35rem; text-align: right; border-bottom: 1px solid var(--line); }
.standings thead th { color: var(--muted); font-weight: 600; }
.standings abbr { text-decoration: none; }
.standings .team { text-align: left; font-weight: 600; width: 100%; }
.standings .team a { color: var(--ink); text-decoration: none; }
.standings .team a:hover { text-decoration: underline; }
.standings td:first-child { color: var(--muted); text-align: left; }
.standings .pts { font-weight: 700; }
.standings .form-col { text-align: left; }

/* form squares */
.form { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; }
.form li, .form.mini > span { display: grid; place-items: center; border-radius: 3px; color: #fff; font: 700 var(--step-0)/1 var(--display);
                              width: 2.1rem; height: 2.1rem; }
.form.mini { gap: .2rem; }
.form.mini > span { width: 1.15rem; height: 1.15rem; font-size: .7rem; border-radius: 2px; }
.form.on-pitch { justify-content: inherit; }
.form.on-pitch li { width: 1.5rem; height: 1.5rem; font-size: .8rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.form .r-W { background: var(--win); }
.form .r-D { background: var(--draw); }
.form .r-L { background: var(--loss); }
.on-pitch .r-W { background: #2f8f5b; }

/* the pitch band: match scoreboard, featured match, team header */
.pitch { background: var(--pitch-deep); position: relative; overflow: hidden; isolation: isolate; color: var(--chalk); }
.pitch::before { content: ""; position: absolute; inset: 0; z-index: -1;
                 background: linear-gradient(var(--chalk), var(--chalk)) center / 2px 100% no-repeat; opacity: .16; }
.pitch::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 16rem; height: 16rem;
                translate: -50% -50%; border: 2px solid var(--chalk); border-radius: 50%; opacity: .16; }
.pitch a { color: var(--chalk); }
.pitch-inner { padding-block: 1.75rem 2rem; text-align: center; }
.pitch-kicker { font: 700 var(--step-1)/1.1 var(--display); margin: 0 0 .25rem; opacity: .9; }
.pitch-league { margin: 0; font-size: var(--step--1); }
.board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 1.25rem; margin-block: 1.25rem 1rem; }
.board .side { display: flex; flex-direction: column; gap: .45rem; }
.board .home { align-items: flex-end; text-align: right; justify-content: flex-end; }
.board .away { align-items: flex-start; text-align: left; justify-content: flex-start; }
.side-name { font: 700 clamp(1.25rem, 5.5vw, 3.25rem)/1 var(--display); letter-spacing: -0.015em; text-decoration: none; overflow-wrap: break-word; }
.side-name:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.side-pos { font-size: var(--step--1); opacity: .85; margin: 0; }
.centre { align-self: center; }
.big-score { display: inline-block; font: 700 clamp(2.75rem, 9vw, 5.5rem)/1 var(--display); background: var(--chalk); color: var(--ink);
             padding: .1em .3em; border-radius: 6px; white-space: nowrap; }
.big-score .sep { padding-inline: .1em; opacity: .45; }
.big-score.is-time { font-size: clamp(1.75rem, 5vw, 3rem); background: var(--pitch-deep); color: var(--chalk);
                     border: 2px solid var(--chalk); padding: .2em .4em; }
.big-score.is-state { font: 600 var(--step-0)/1.2 var(--body); background: transparent; color: var(--chalk); border: 2px solid var(--chalk); padding: .5em .7em; }
.big-score.is-empty { background: transparent; color: var(--chalk); opacity: .7; }
.pitch-meta { margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem 1.25rem; font-size: var(--step--1); }
.pitch-meta .status { font-weight: 600; }
.pitch-cta { margin: 1.25rem 0 0; }
.pitch-fine { margin: .75rem auto 0; font-size: .8rem; opacity: .75; max-width: 46ch; }
.team-band .team-name { font-size: clamp(2.25rem, 7vw, 4rem); letter-spacing: -0.015em; margin: .5rem 0 .5rem; }
.team-band .form { justify-content: center; margin-top: .75rem; }
.team-band .side-pos { font-size: var(--step-0); }

/* season numbers: the tale of the tape */
.tape { margin-top: 1rem; }
.tape-head { display: flex; justify-content: space-between; font: 700 var(--step-1)/1.1 var(--display); margin-bottom: .5rem; }
.tape-head .a { color: var(--side-a); }
.tape-head .b { color: var(--side-b); }
.tape-row { display: grid; grid-template-columns: 3.25rem 1fr minmax(7rem, 12rem) 1fr 3.25rem; align-items: center; gap: .6rem;
            padding-block: .45rem; border-top: 1px solid var(--line); }
.tv { font: 700 var(--step-1)/1 var(--display); }
.tv.a { text-align: left; color: var(--side-a); }
.tv.b { text-align: right; color: var(--side-b); }
.tl { text-align: center; font-size: var(--step--1); color: var(--muted); line-height: 1.25; }
.tb { height: .65rem; background: var(--line); border-radius: 2px; display: flex; overflow: hidden; }
.tb.a { justify-content: flex-end; }
.tb > span { display: block; height: 100%; min-width: 2px; }
.tb.a > span { background: var(--side-a); }
.tb.b > span { background: var(--side-b); }

/* runs */
.runs { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.runs li { display: flex; align-items: center; gap: 1rem; background: var(--surface); border-radius: 6px; padding: .75rem 1rem;
           border-left: 4px solid var(--draw); }
.run-n { font: 700 2.5rem/1 var(--display); min-width: 2.5rem; text-align: center; }
.runs .run-won, .runs .run-unbeaten, .runs .run-clean, .runs .run-scored { border-left-color: var(--win); }
.runs .run-won .run-n, .runs .run-unbeaten .run-n, .runs .run-clean .run-n, .runs .run-scored .run-n { color: var(--win); }
.runs .run-lost, .runs .run-winless, .runs .run-blank { border-left-color: var(--loss); }
.runs .run-lost .run-n, .runs .run-winless .run-n, .runs .run-blank .run-n { color: var(--loss); }

/* head to head */
.h2h-line { margin: .9rem 0 .6rem; font-weight: 600; }
.h2h-bar { display: flex; height: .9rem; border-radius: 3px; overflow: hidden; gap: 2px; }
.h2h-bar .a { background: var(--side-a); }
.h2h-bar .d { background: var(--draw); }
.h2h-bar .b { background: var(--side-b); }
.h2h-counts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; margin: .6rem 0 0; }
.h2h-counts div { display: flex; flex-direction: column-reverse; }
.h2h-counts dt { font-size: var(--step--1); color: var(--muted); }
.h2h-counts dd { margin: 0; font: 700 var(--step-2)/1 var(--display); }
.h2h-counts .a dd { color: var(--side-a); }
.h2h-counts .d { text-align: center; }
.h2h-counts .b { text-align: right; }
.h2h-counts .b dd { color: var(--side-b); }
.h2h-bar + .h2h-counts + .note + .fixtures { margin-top: .75rem; }

/* team numbers */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .75rem; margin: 1rem 0 0; }
.stat-grid div { background: var(--surface); border-radius: 6px; padding: .8rem 1rem; display: flex; flex-direction: column-reverse; }
.stat-grid dt { font-size: var(--step--1); color: var(--muted); }
.stat-grid dd { margin: 0 0 .2rem; font: 700 var(--step-2)/1 var(--display); }

.match-side .fixture { grid-template-columns: 1fr 3.5rem 1fr; grid-template-areas: "when when when" "home score away" "meta meta meta" "pred pred pred"; row-gap: .25rem; }
.match-side .fixture .when { text-align: center; }

/* footer: the pitch-green band again, closing the page */
.foot { background: var(--pitch-deep); color: rgba(244, 248, 242, .78); font-size: var(--step--1); margin-top: 3rem; }
.foot a { color: var(--chalk); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; padding-block: 2.5rem 2rem; }
.foot-brand, .foot-col:last-child { grid-column: 1 / -1; }
@media (min-width: 48rem) {
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
  .foot-brand, .foot-col:last-child { grid-column: auto; }
}
.foot-brand .wordmark { font-size: 1.5rem; }
.foot-brand p { margin: .75rem 0 0; max-width: 42ch; line-height: 1.5; }
.foot-col h2 { font: 700 var(--step-0)/1.2 var(--display); color: var(--chalk); margin: 0 0 .6rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot-base { border-top: 1px solid rgba(244, 248, 242, .18); padding-block: 1rem 1.75rem; display: flex; flex-wrap: wrap;
             justify-content: space-between; gap: .5rem 2rem; }
.foot-base p { margin: 0; }
.preview-note { font-weight: 600; color: #f2c94c; }

@media (max-width: 40rem) {
  .fixture { grid-template-columns: 1fr 4.25rem 1fr; grid-template-areas: "when when when" "home score away" "meta meta meta" "pred pred pred"; row-gap: .3rem; }
  .fixture .when { text-align: center; }
  .standings .wide { display: none; }
  .board { gap: .6rem; }
  .board .form.on-pitch li { width: 1.15rem; height: 1.15rem; font-size: .65rem; }
  .tape-row { grid-template-columns: 2.75rem 1fr 2.75rem; grid-template-areas: "l l l" "va bars vb"; row-gap: .3rem; }
  .tape-row .tl { grid-area: l; }
  .tape-row .tv.a { grid-area: va; }
  .tape-row .tv.b { grid-area: vb; }
  .tape-row .tb.a { grid-column: 2; grid-row: 2; width: 50%; }
  .tape-row .tb.b { grid-column: 2; grid-row: 2; width: 50%; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; } }

/* model estimate: one bar, three outcomes */
.prob { display: flex; gap: 3px; margin-top: 1rem; min-height: 5.25rem; }
.prob-cell { min-width: 5.5rem; border-radius: 4px; padding: .6rem .75rem; display: flex; flex-direction: column; justify-content: space-between;
             color: #fff; position: relative; }
.prob-cell.o-H { background: var(--side-a); }
.prob-cell.o-D { background: var(--draw); }
.prob-cell.o-A { background: var(--side-b); text-align: right; }
.prob-cell.o-D { text-align: center; }
.prob-n { font: 700 clamp(1.75rem, 4vw, 2.5rem)/1 var(--display); }
.prob-l { font-size: var(--step--1); line-height: 1.25; opacity: .9; }
.prob-cell.is-outcome { outline: 3px solid #f2c94c; outline-offset: 2px; }
.prob-result { margin: .9rem 0 0; padding-left: .75rem; border-left: 4px solid var(--draw); }
.prob-result.is-hit { border-left-color: var(--win); }
.prob-result.is-miss { border-left-color: var(--loss); }
.model-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin: 1rem 0 0; }
.model-facts div { background: var(--surface); border-radius: 6px; padding: .7rem .9rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.model-facts dt { font-size: var(--step--1); color: var(--muted); }
.model-facts dd { margin: 0 0 .2rem; font: 700 var(--step-1)/1.2 var(--display); }
.model-facts dd { display: flex; flex-wrap: wrap; gap: .1rem .6rem; }
.model-facts .ts { white-space: nowrap; }
.model-facts .ts small { font: 400 .8rem var(--body); color: var(--muted); }

/* track record */
.compare { border-collapse: collapse; width: 100%; max-width: 40rem; margin-top: 1rem; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); text-align: right; }
.compare thead th { color: var(--muted); font-weight: 600; font-size: var(--step--1); }
.compare tbody th { text-align: left; font-weight: 600; }
.compare tbody th small { color: var(--muted); font-weight: 400; }
.compare td:nth-child(2) { font-weight: 700; }
.track-list .meta { text-align: center; }
.mark { font-weight: 600; }
.mark.is-hit { color: var(--win); }
.mark.is-miss { color: var(--loss); }
.mark .verdict { display: inline-block; margin-left: .5rem; padding: 0 .4rem; border-radius: 3px; color: #fff; white-space: nowrap; }
.mark.is-hit .verdict { background: var(--win); }
.mark.is-miss .verdict { background: var(--loss); }
/* "Home" / "Away" under team names: which side is which without knowing the convention */
.side-tag { display: block; font: 400 .72rem/1.3 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.board .side-tag { color: var(--chalk); opacity: .75; }
.leagues .nav-track { margin-left: auto; opacity: .95; }

@media (max-width: 64rem) {
  /* the league menu scrolls sideways on small screens: fade the right edge so it shows there is more */
  .leagues { mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); padding-right: 2.5rem; }
}
@media (max-width: 40rem) {
  /* phones: one row per outcome, a bar underneath as long as the probability (a minimum box width
     would make 24 % look almost as big as 54 %) */
  .prob { flex-direction: column; gap: .35rem; min-height: 0; }
  .prob-cell { flex: none !important; width: 100%; min-width: 0; flex-direction: row; align-items: baseline;
               justify-content: flex-start; gap: .75rem; text-align: left !important; color: var(--ink);
               background: var(--surface) !important; padding: .55rem .75rem 1rem;
               --bar: var(--side-a); background-image: linear-gradient(var(--bar), var(--bar)) !important;
               background-repeat: no-repeat !important; background-size: var(--w) 6px !important;
               background-position: .75rem calc(100% - .45rem) !important; }
  .prob-cell.o-D { --bar: var(--draw); }
  .prob-cell.o-A { --bar: var(--side-b); }
  .prob-n { font-size: 1.75rem; min-width: 3.5rem; }
}

/* text pages: privacy, terms, how it works */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-1); margin: 2rem 0 .5rem; }
.prose p, .prose li { line-height: 1.6; }
.prose ul { padding-left: 1.25rem; }
.prose .updated { color: var(--muted); font-size: var(--step--1); }
.prose .lead-in { font-size: var(--step-1); color: var(--muted); line-height: 1.45; }
.prose code { font-size: .9em; background: var(--surface); padding: .05em .3em; border-radius: 3px; }
.league-note { margin-top: 1rem; }

/* long lists: "show all" */
.fixtures.is-clipped > li.extra { display: none; }
.show-all { display: block; width: 100%; margin-top: .25rem; padding: .7rem; border: 1px solid var(--line); border-radius: 6px;
            background: transparent; color: var(--pitch); font: 600 var(--step--1)/1.2 var(--body); cursor: pointer; }
.show-all:hover { background: var(--surface); }
.show-all:focus-visible, .tab-bar [role=tab]:focus-visible { outline: 3px solid var(--pitch); outline-offset: 2px; }

/* tabs: the tab labels take the place of the two headings. The selected tab is filled
   and joined to its panel; each panel has its own background so a switch is visible. */
.tab-bar { display: flex; gap: .5rem; margin-top: calc(2.5rem - .55rem); border-bottom: 2px solid var(--pitch); }
.tab-bar [role=tab] { background: none; border: 0; border-radius: 8px 8px 0 0; padding: .55rem 1.1rem .5rem; cursor: pointer;
                      font: 700 var(--step-2)/1.1 var(--display); color: var(--muted); transition: background-color .15s, color .15s; }
.tab-bar [role=tab]:hover { color: var(--ink); background: rgba(29, 106, 67, .08); }
.tab-bar [role=tab][aria-selected=true] { color: var(--chalk); background: var(--pitch); }
.tabs.is-tabbed .tab-panel { margin-top: 0; }
.tabs.is-tabbed .tab-panel .tone { margin-top: 0; border-radius: 0 0 8px 8px; }
.tabs.is-tabbed .tab-panel > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* colour code for lists on every page: fixtures on white, results on light green */
.tone { margin-top: .25rem; padding: .15rem .75rem .6rem; border-radius: 8px; }
.tone-up { background: var(--surface); }
.tone-res { background: #e2ebe4; }
.tone .fixture:hover { background: var(--paper); }
.tone-res .fixture:hover { background: #d5e2d8; }
.tone .fixtures > li + li { border-top-color: rgba(23, 35, 28, .1); }
.tone .show-all { border-color: rgba(23, 35, 28, .15); }
.group .tone { margin-bottom: .25rem; }

/* model estimate inside a fixture row: home / draw / away bar, numbers under the two teams and the middle */
.fixture .pred { grid-area: pred; display: grid; gap: .2rem; margin-top: .35rem; }
.pred-bar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.pred-bar .o-H { background: var(--side-a); }
.pred-bar .o-D { background: var(--draw); }
.pred-bar .o-A { background: var(--side-b); }
.pred-n { display: grid; grid-template-columns: 1fr auto 1fr; font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.pred-n > :first-child { text-align: left; }
.pred-n > :nth-child(2) { text-align: center; }
.pred-n > :last-child { text-align: right; }
.pred-n .is-top { color: var(--ink); font-weight: 700; }
.pred-legend { margin: .5rem .25rem 0; font-size: var(--step--1); color: var(--muted); }

/* the featured match band: the same estimate, on the pitch colours */
.pitch-pred { width: min(100%, 26rem); margin: .25rem auto .75rem; display: grid; gap: .3rem; }
.pitch-pred-title { margin: 0; font-size: var(--step--1); opacity: .85; }
.pitch-pred .pred-bar { height: 8px; }
.pitch-pred .pred-bar .o-H { background: var(--chalk); }
.pitch-pred .pred-bar .o-D { background: rgba(255, 255, 255, .4); }
.pitch-pred .pred-bar .o-A { background: #9fd6b4; }
.pitch-pred .pred-n { color: rgba(255, 255, 255, .8); }
.pitch-pred .pred-n .is-top { color: #fff; }

/* missing players on the match page: the two sides next to each other */
.absences { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.absence-side { background: var(--surface); border-radius: 8px; padding: .75rem 1rem; }
.absence-side h3 { font: 700 var(--step-1)/1.2 var(--display); margin: 0 0 .5rem; }
.absence-side ul { list-style: none; margin: 0; padding: 0; }
.absence-side li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; padding: .4rem 0; border-top: 1px solid var(--line); }
.absence-side li:first-child { border-top: 0; }
.ab-name { font-weight: 600; flex: 1 1 100%; }
.ab-status { font-size: .75rem; font-weight: 700; padding: .1rem .4rem; border-radius: 3px; color: #fff; background: var(--loss); }
.ab-status.is-doubtful { background: var(--draw); }
.ab-cause { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 40rem) { .absences { grid-template-columns: 1fr; } }

/* predictions page: a slim reading guide, then one card per league */
.pred-help { display: grid; gap: .5rem 2rem; margin-top: 2rem; background: var(--surface); border-radius: 8px;
             padding: 1rem 1.25rem; box-shadow: 0 1px 2px rgba(23, 35, 28, .08), 0 3px 10px rgba(23, 35, 28, .05); }
.pred-help .h-small { margin: 0 0 .5rem; font: 700 var(--step-1)/1.2 var(--display); }
.pred-example { display: grid; gap: .2rem; align-content: start; }
.pred-howto { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem 2rem; font-size: var(--step--1); line-height: 1.45; }
@media (min-width: 64rem) {
  .pred-help { grid-template-columns: 16rem 1fr; }
  .pred-howto { grid-template-columns: 1fr 1fr; }
}
.league-cards { display: grid; gap: 1.5rem; margin-top: 2rem; align-items: start; }
@media (min-width: 64rem) { .league-cards { grid-template-columns: 1fr 1fr; } }
.league-card { background: var(--surface); border-radius: 8px; padding: .25rem .75rem .5rem;
               box-shadow: 0 1px 2px rgba(23, 35, 28, .08), 0 3px 10px rgba(23, 35, 28, .05); }
.league-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
                      padding: .75rem .25rem .6rem; border-bottom: 2px solid var(--ink); }
.league-card h2 { margin: 0; font: 700 var(--step-1)/1.2 var(--display); }
.league-card header a { font-size: var(--step--1); color: var(--pitch); white-space: nowrap; }
.league-card h2 a { font-size: inherit; color: inherit; text-decoration: none; white-space: normal; }
.league-card h2 a:hover { text-decoration: underline; }
@media (min-width: 64rem) { .league-cards.is-single { grid-template-columns: minmax(0, 44rem); } }
.league-pred-link { margin: .75rem 0 0; }
.league-pred-link a { display: inline-block; padding: .45rem .8rem; border-radius: 6px; background: var(--pitch);
                      color: #fff; font-weight: 600; text-decoration: none; }
.league-pred-link a:hover { background: var(--pitch-deep); }
.league-card .fixture:hover { background: var(--paper); }
.leagues .nav-pred { opacity: 1; padding-right: 1.25rem; border-right: 1px solid rgba(255, 255, 255, .35); }

/* season-end projection: the cell colour gets stronger with the probability */
.proj td.proj-cell { min-width: 3.75rem; font-variant-numeric: tabular-nums; text-align: right;
                     background: color-mix(in srgb, var(--heat) calc(var(--p) * .6), transparent); }
.proj td.is-first, .proj td.is-top { --heat: var(--pitch); }
.proj td.is-rel { --heat: var(--loss); }
.proj-lead { margin-top: .25rem; }
.proj thead th { white-space: nowrap; }

/* cards and row stripes (tables and match lists) */
.card { background: var(--surface); border-radius: 8px; padding: .25rem .75rem .5rem; margin-top: .25rem;
        box-shadow: 0 1px 2px rgba(23, 35, 28, .08), 0 3px 10px rgba(23, 35, 28, .05); overflow-x: auto; }
.card .standings { margin-top: 0; }
.standings tbody tr:nth-child(even) { background: rgba(23, 35, 28, .035); }
.tone { box-shadow: 0 1px 2px rgba(23, 35, 28, .08), 0 3px 10px rgba(23, 35, 28, .05); }
.flag { width: 1.15em; height: .77em; border-radius: 2px; vertical-align: -.05em; margin-right: .4em;
        box-shadow: 0 0 0 1px rgba(23, 35, 28, .15); flex: none; }

/* match preview text */
.preview p { margin: .75rem 0 0; max-width: 68ch; font-size: var(--step-0); line-height: 1.6; }

/* ad positions: space is reserved so content does not jump when an ad loads */
.ad { margin-top: 2.5rem; display: grid; place-items: center; }
.ad-rect { min-height: 250px; max-width: 336px; margin-inline: auto; width: 100%; }
.ad-wide { min-height: 100px; }
.ad-label { justify-self: start; color: var(--muted); font-size: .7rem; margin-bottom: .25rem; }
.ad.is-outline { border: 2px dashed var(--line); border-radius: 6px; color: var(--muted); font-size: var(--step--1); background: var(--surface); }
/* page grid: the content column, with the empty margins of wide screens as columns for the rails */
.page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 74rem) minmax(0, 1fr); }
.page > main { grid-column: 2; grid-row: 1; }
.ad-rail { display: none; }
@media (min-width: 95rem) and (min-height: 44rem) {
  .ad-rail { display: grid; position: sticky; top: 1.5rem; align-self: start; grid-row: 1;
             width: 160px; min-height: 600px; margin-top: 2rem; }
  .ad-rail[data-slot=rail-left] { grid-column: 1; justify-self: end; margin-right: 1.5rem; }
  .ad-rail[data-slot=rail-right] { grid-column: 3; justify-self: start; margin-left: 1.5rem; }
}
@media (min-width: 115rem) and (min-height: 44rem) { .ad-rail { width: 300px; } }
@media (min-width: 64rem) { .ad-wide { min-height: 90px; } }
@media (max-width: 40rem) { .ad-wide { min-height: 250px; } }

/* estimate archive */
.archive-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0 0; }
.archive-filter a { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
                    font-size: var(--step--1); color: var(--ink); text-decoration: none; }
.archive-filter a[aria-current] { background: var(--pitch); border-color: var(--pitch); color: #fff; }
.archive-wrap { overflow-x: auto; margin-top: 1.25rem; background: var(--surface); border-radius: 8px;
                box-shadow: 0 1px 2px rgba(23, 35, 28, .08), 0 3px 10px rgba(23, 35, 28, .05); }
.archive { width: 100%; border-collapse: collapse; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.archive th, .archive td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.archive thead th { color: var(--muted); font-weight: 600; }
.archive tbody tr:nth-child(even) { background: var(--paper); }
.archive .a-match { white-space: normal; min-width: 12rem; }
.archive .a-match a { font-weight: 600; color: var(--ink); text-decoration: none; }
.archive .a-match a:hover { text-decoration: underline; }
.archive .a-match small { display: block; color: var(--muted); }
.archive .a-probs .is-pick { font-weight: 700; }
.archive .a-result .score { font-weight: 400; }
.archive .a-pub { color: var(--muted); }
.pager { display: flex; gap: 1rem; align-items: baseline; justify-content: center; margin: 1.25rem 0; font-size: var(--step--1); }
.more-link { margin: 1rem 0 0; }
@media (max-width: 40rem) {
  /* phones: each estimate as a small card instead of a table wider than the screen */
  .archive thead { display: none; }
  .archive tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; padding: .7rem .8rem;
                border-bottom: 1px solid var(--line);
                grid-template-areas: "date result" "match match" "probs probs" "pub pub"; }
  .archive td { border: 0; padding: 0; }
  .archive .a-date { grid-area: date; color: var(--muted); }
  .archive .a-result { grid-area: result; text-align: right; }
  .archive .a-match { grid-area: match; min-width: 0; }
  .archive .a-probs { grid-area: probs; }
  .archive .a-pub { grid-area: pub; font-size: .8rem; }
  .archive .a-probs::before, .archive .a-pub::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; }
}

/* model ratings: attack and defence either side of the league average */
.ratings { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .ratings { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.rating-team { margin: 0 0 .4rem; font-weight: 700; }
.rating-row { display: grid; grid-template-columns: 5.5rem 1fr 3.5rem; align-items: center; gap: .6rem; margin: .3rem 0; }
.r-label { font-size: var(--step--1); color: var(--muted); }
.r-track { position: relative; height: 12px; background: rgba(23, 35, 28, .09); border-radius: 3px; }
.r-track::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); }
.r-bar { position: absolute; top: 0; bottom: 0; width: var(--w); }
.r-bar.is-up { left: 50%; background: var(--win); border-radius: 0 3px 3px 0; }
.r-bar.is-down { right: 50%; background: var(--loss); border-radius: 3px 0 0 3px; }
.r-val { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.compare .muted { color: var(--muted); }

/* live score (read from the provider within the last 20 minutes) */
.score.is-live { background: var(--loss); }
.score .live-min { font: 600 .7rem/1 var(--body); margin-left: .35em; opacity: .9; }
.big-score.is-live { background: var(--chalk); }
.live-tag { display: block; margin-top: .4rem; font: 700 var(--step--1)/1 var(--body); color: #fff;
            background: var(--loss); padding: .25em .6em; border-radius: 4px; width: max-content; margin-inline: auto; }
.week-text { max-width: 68ch; margin: 1rem 0 1.5rem; }
.week-text p { margin: 0 0 .75rem; line-height: 1.55; }
.week-link { margin: .5rem 0 0; font-weight: 600; }

/* our own products above the footer (house promotion) */
.sister { margin-top: 3rem; }
.sister h2 { font: 700 var(--step-0)/1.2 var(--display); color: var(--muted); margin: 0 0 .75rem; }
.sister-grid { display: grid; gap: .75rem; }
@media (min-width: 48rem) { .sister-grid { grid-template-columns: repeat(3, 1fr); } }
.sister a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem;
  padding: 1rem 1.1rem; color: var(--ink); text-decoration: none; }
.sister a:hover, .sister a:focus-visible { border-color: var(--pitch); }
.sister b { display: block; font: 700 var(--step-1)/1.2 var(--display); }
.sister span { display: block; color: var(--muted); font-size: var(--step--1); line-height: 1.45; margin-top: .3rem; }
.sister small { display: block; color: var(--pitch); font-weight: 600; margin-top: .55rem; }
