/* Public site (P4): Matchday, Matches, Clubs, a club, the Table and a match page. Shared by apps/web/public/site.html. */
  /* ---------- the stadium band: the one loud element on the page */
  .stadium { background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--flood) 10%, transparent), transparent 60%), var(--bg-deep); border-bottom: 1px solid var(--line-soft); }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s5); align-items: stretch; padding: var(--s5) 0 var(--s6); }
  /* the match band beside the panel is wider than the rest of the page, so the live match fills big screens (cs); the match page (wide) keeps the page width */
  .stadium:not(.wide) > .page { max-width: 1680px; }
  /* width + align-self: Safari stretches a grid item's height to the row (0 here: the iframe is absolute) and derives the width from aspect-ratio, so the picture vanished (cs, 2026-11-13) */
  .screen { position: relative; width: 100%; align-self: start; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--black); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), 0 0 0 1px var(--line-soft); }
  .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
  /* replay seek bar (video-player style), over the ticker at the bottom of the picture */
  .seekbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 6px; padding: 18px 10px 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .5) 60%, transparent); color: var(--scr-ink); opacity: 0; transition: opacity .2s; }
  .screen.ui-on .seekbar, .screen.paused .seekbar, .seekbar:focus-within { opacity: 1; }
  /* hover only where there is a mouse: iPhone Safari keeps :hover after a tap, which would pin the bar on the picture */
  @media (hover: hover) { .screen:hover .seekbar { opacity: 1; } }
  .screen.sheet-on .seekbar { opacity: 0; visibility: hidden; }
  .screen.has-seek .cams { bottom: 58px; }
  .sk-btn { flex: none; display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 800 12px/1 var(--text); cursor: pointer; }
  .sk-btn:hover, .sk-btn:focus-visible { background: rgba(255, 255, 255, .14); }
  .sk-btn svg { width: 18px; height: 18px; }
  .sk-btn svg { pointer-events: none; }   /* the click always lands on the button itself */
  .sk-time { flex: none; font: 700 12px/1 var(--text); font-variant-numeric: tabular-nums; color: var(--scr-ink-2); padding: 0 4px; white-space: nowrap; }
  .sk-track { position: relative; flex: 1; min-width: 60px; height: 24px; display: flex; align-items: center; }
  .sk-rail { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
  .sk-fill { height: 100%; width: 0; background: var(--scr-hi); }
  .sk-marks { position: absolute; left: 0; right: 0; height: 4px; pointer-events: none; }
  .sk-goal { position: absolute; top: -3px; width: 4px; height: 10px; margin-left: -2px; border-radius: 2px; background: var(--c, var(--white)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
  .sk-goal.pen { height: 6px; top: -1px; opacity: .8; }
  .sk-track input[type=range] { position: relative; width: 100%; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; height: 24px; cursor: pointer; }
  .sk-track input[type=range]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
  .sk-track input[type=range]::-moz-range-track { height: 4px; background: transparent; }
  .sk-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--scr-hi); border: 0; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
  .sk-track input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--scr-hi); border: 0; }
  .sk-speed { flex: none; height: 28px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .35); color: var(--scr-ink); font: 700 12px/1 var(--text); padding: 0 4px; cursor: pointer; }
  @media (max-width: 600px) { .sk-skip { display: none; } .seekbar { gap: 2px; padding: 14px 6px 4px; } .sk-time { font-size: 11px; } .screen.has-seek .cams { bottom: 48px; } }
  /* full-time card over the screen: five seconds of stats at the final whistle */
  .screen .ft-card { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 4%; background: radial-gradient(circle at 50% 30%, var(--scr-card-a), var(--scr-card-b) 70%); color: var(--scr-ink); opacity: 0; transition: opacity .4s var(--ease); cursor: pointer; z-index: 2; }
  .screen .ft-card.in { opacity: 1; }
  .screen .ft-badge { font: 700 var(--t-xs)/1 var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--flood); color: var(--scr-night); }
  .screen .ft-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; width: min(100%, 560px); }
  .screen .ft-score .num { font: 700 clamp(28px, 5vw, 56px)/1 var(--display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
  .screen .ft-score .side { display: flex; align-items: center; gap: 8px; min-width: 0; font: 700 var(--t-md)/1.2 var(--display); }
  .screen .ft-score .side:last-child { justify-content: flex-end; text-align: right; }
  .screen .ft-score .kit { width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; }
  .screen .ft-score .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .screen .ft-rows { display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; row-gap: 5px; align-items: center; width: min(100%, 560px); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
  .screen .ft-rows b { min-width: 3.5ch; text-align: right; }
  .screen .ft-rows.dense { row-gap: 2px; } .screen .ft-rows.dense .mid span { margin-bottom: 0; }
  .screen .ft-rows b:last-child, .screen .ft-rows b:nth-child(3n) { text-align: left; }
  .screen .ft-rows .mid span { display: block; text-align: center; font-size: var(--t-xs); color: var(--scr-ink-3); margin-bottom: 2px; }
  .screen .ft-rows .track { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 5px; }
  .screen .ft-rows .track i { display: block; height: 100%; border-radius: 6px; background: rgba(255,255,255,.14); position: relative; overflow: hidden; }
  .screen .ft-rows .track i::after { content: ""; position: absolute; top: 0; bottom: 0; width: var(--w, 0%); background: var(--c); border-radius: 6px; }
  .screen .ft-rows .track i:first-child::after { right: 0; }
  .screen .ft-rows .track i:last-child::after { left: 0; }
  .screen .ft-foot { font-size: var(--t-xs); color: var(--scr-ink-3); }
  @media (max-width: 600px) { .screen .ft-rows { row-gap: 2px; font-size: var(--t-xs); } .screen .ft-card { gap: 6px; } .screen .ft-rows .mid span { margin-bottom: 0; } }
  /* P56.3.2: until the picture loads, the screen says which match it is */
  .screen-cover { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; gap: var(--s3); text-align: center; padding: var(--s5); color: var(--scr-ink); background: radial-gradient(circle at 50% 40%, var(--scr-turf), var(--scr-night)); pointer-events: none; transition: opacity .4s; }
  .screen-cover.gone { opacity: 0; }
  .screen-cover .sc-teams { display: flex; align-items: center; justify-content: center; gap: var(--s4); font: 700 var(--t-xl)/1.1 var(--display); }
  .screen-cover .sc-teams > span { display: grid; justify-items: center; gap: 6px; }
  .screen-cover small { color: var(--scr-ink-2); }
  .screen-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--s5); color: var(--scr-ink-2); background: radial-gradient(circle at 50% 40%, var(--scr-turf), var(--scr-night)); }

  /* board: the scoreboard and the match centre, as tall as the screen beside it */
  .board { position: relative; min-height: 420px; }
  .board-in { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--s3); }
  .status { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--t-sm); color: var(--ink-2); min-height: 24px; }
  .status.is-live { color: var(--live); }
.status .badge { font: 800 var(--t-sm)/1 var(--text); letter-spacing: .02em; padding: 6px 10px; border-radius: 6px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.status.is-live .badge { background: #b42e23; color: #fff; border-color: transparent; }   /* white on a deep red in both themes (cs, 2026-11-22: it was dark text in night mode); the brighter night-mode red is too light for white text */
.status .when { font-weight: 600; color: var(--ink-3); }
.screen:fullscreen { border-radius: 0; aspect-ratio: auto; }
/* the full-time card fills a big screen too (it is sized for the page) */
@media (min-height: 800px) { .screen:fullscreen .ft-card > * { zoom: 1.4; } }
@media (min-height: 1100px) { .screen:fullscreen .ft-card > * { zoom: 1.7; } }
  .board-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); flex-wrap: wrap; }
  .models { font-size: var(--t-xs); color: var(--ink-3); margin-top: -4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
  /* 3D camera picker: floats on the picture, above the ticker — the same place in the page and in full screen */
  .cams { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s2); }
  .cams[hidden] { display: none; }
  .cams .seg { flex-wrap: wrap; border-radius: 16px; }
  .cams .seg button { padding: 5px 10px; min-height: 28px; font-size: var(--t-xs); }
  .screen .cams { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: calc(10% + 8px); z-index: 5; max-width: calc(100% - 120px); justify-content: center;
    padding: 6px 10px; border-radius: 14px; background: rgba(4, 16, 11, .78); opacity: 0; transition: opacity .25s; }
  .screen.ui-on .cams, .screen .cams:focus-within { opacity: 1; }
  @media (hover: hover) { .screen:hover .cams { opacity: 1; } }
  .screen .cams .lbl { font: 700 var(--t-xs)/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--scr-ink-4); }
  .screen .cams .seg { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
  .screen .cams .seg button { color: var(--scr-ink-2); }
  .screen .cams .seg button[aria-pressed="true"] { background: var(--scr-hi); color: var(--scr-hi-ink); }
  .screen .cams .btn { color: var(--scr-ink); border-color: rgba(255, 255, 255, .25); background: transparent; }
  .screen .cams .btn[aria-pressed="true"] { background: var(--scr-hi); color: var(--scr-hi-ink); }
  .cams .cams-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--scr-ink); font-size: 18px; line-height: 1; cursor: pointer; }
  .cams .cams-x:hover { background: rgba(255, 255, 255, .22); }
  .cams .cams-open { display: none; }
  /* folded: only a small Camera button, bottom right, always shown so viewers know the view can be changed */
  .screen .cams.folded { left: auto; right: 12px; margin: 0; padding: 4px; max-width: none; opacity: 1; }
  .cams.folded > :not(.cams-open) { display: none; }
  .cams.folded .cams-open { display: inline-flex; }
  /* the next match's countdown, once the match on the screen is over: bottom centre, above the seek bar (cs, 2026-11-17) */
  .screen .nextup { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 16px; max-width: calc(100% - 24px);
    padding: 12px 26px; border-radius: 999px; border: 2px solid rgba(250, 204, 21, .7); background: rgba(4, 16, 11, .94); color: var(--white); font-size: var(--t-lg); white-space: nowrap;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .6), 0 0 0 6px rgba(4, 16, 11, .35); pointer-events: none; }
  .screen .nextup .lbl { font: 700 var(--t-sm)/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--scr-ink-3); }
  .screen .nextup b { overflow: hidden; text-overflow: ellipsis; }
  .screen .nextup .cd { font: 700 var(--t-2xl)/1 var(--display); color: var(--scr-hi); font-variant-numeric: tabular-nums; }
  @media (max-width: 600px) { .screen .nextup { bottom: 44px; gap: 8px; padding: 7px 14px; font-size: var(--t-sm); } .screen .nextup .lbl { display: none; } .screen .nextup .cd { font-size: var(--t-lg); } }
  /* the open bar, while it is not showing (no pointer over the match, no tap), shrinks to the same Camera button instead of vanishing */
  @media (hover: hover) {
    .screen:not(:hover):not(.ui-on) .cams:not(:focus-within) { left: auto; right: 12px; margin: 0; padding: 4px; max-width: none; opacity: 1; }
    .screen:not(:hover):not(.ui-on) .cams:not(:focus-within) > :not(.cams-open) { display: none; }
    .screen:not(:hover):not(.ui-on) .cams:not(:focus-within) .cams-open { display: inline-flex; }
  }
  @media (hover: none) {
    .screen:not(.ui-on) .cams:not(:focus-within) { left: auto; right: 12px; margin: 0; padding: 4px; max-width: none; opacity: 1; }
    .screen:not(.ui-on) .cams:not(:focus-within) > :not(.cams-open) { display: none; }
    .screen:not(.ui-on) .cams:not(:focus-within) .cams-open { display: inline-flex; }
  }

  .centre { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
  .centre .seg { margin: 10px 10px 0; align-self: flex-start; }
  /* P56.3.1: the wheel scrolls the commentary to its end, then the page; only full screen (no page behind) keeps it in */
  .feed { flex: 1; min-height: 0; overflow: auto; padding: 6px 4px 8px; overscroll-behavior: auto; }
  :fullscreen .feed { overscroll-behavior: contain; }
  .item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); font-size: var(--t-sm); line-height: 1.4; }
  .item + .item { border-top: 1px solid var(--line-soft); border-radius: 0; }
  .item time { font: 700 var(--t-sm)/1.4 var(--display); color: var(--ink-3); letter-spacing: .03em; }
  .item .txt { border-left: 3px solid var(--kit, transparent); padding-left: 8px; }
  .item.goal .txt { font-weight: 800; color: var(--ink); }
  .item.goal { background: color-mix(in srgb, var(--flood) 12%, transparent); }
  .item .by { display: block; font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }
  .item.fresh { animation: rise .35s var(--ease); }
  .feed .hint { padding: var(--s4); color: var(--ink-3); font-size: var(--t-sm); }

  .bars { position: relative; padding: 10px 14px 12px; display: grid; gap: 7px; }
.bars .to-ft { justify-self: center; min-height: 30px; margin: -2px 0 2px; }
  .bars .hdr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font: 700 var(--t-md)/1 var(--display); }
  .bars .hdr span:last-child { text-align: right; }
  .bar { display: grid; gap: 4px; }
  .bar .lab { display: grid; grid-template-columns: 1fr auto 1fr; font-size: var(--t-sm); }
  .bar .lab b { font: 700 var(--t-md)/1 var(--display); }
  .bar .lab b:last-child { text-align: right; }
  .bar .lab span { color: var(--ink-3); font-size: var(--t-xs); align-self: center; }
  .bar .track { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 5px; }
  .bar .track i { display: block; height: 100%; border-radius: 6px; background: var(--line-soft); position: relative; overflow: hidden; }
  .bar .track i::after { content: ""; position: absolute; top: 0; bottom: 0; width: var(--w, 0%); background: var(--c, var(--ink-3)); border-radius: 6px; transition: width .4s var(--ease); }
  .bar .track i:first-child::after { right: 0; }
  .bar .track i:last-child::after { left: 0; }
  .bars .foot { font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }

  /* ---------- below the fold */
  .cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s6); margin-top: var(--s7); align-items: start; }
  .res { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 104px 96px; gap: var(--s4); align-items: center; padding: 12px var(--s4); border-bottom: 1px solid var(--line-soft); }
  .res:last-child { border-bottom: 0; }
  .res:hover { background: var(--surface-2); }
  .res .go { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
  .res .teams { display: grid; gap: 6px; min-width: 0; }
  .res .t { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
  .res .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .res .end { display: flex; justify-content: center; position: relative; z-index: 2; }
  .res .when { font-size: var(--t-xs); color: var(--ink-3); text-align: right; position: relative; z-index: 2; }
  .res .when a { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--ink-2); }
  .res .when > small { display: block; font-size: inherit; }
  .res .mdl { font-size: var(--t-xs); color: var(--ink-3); margin-left: 36px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: -6px; position: relative; z-index: 2; }

  /* league table, Premier League style: GP W D L F A GD P, sorted by points */
  .tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .tbl th { font: 700 var(--t-xs)/1 var(--text); color: var(--ink-3); padding: 12px 0 10px; border-bottom: 1px solid var(--line); text-align: center; width: 44px; }
  .tbl th.l { text-align: left; width: auto; }
  .tbl th:first-child { width: 36px; }
  .tbl th abbr { text-decoration: none; cursor: help; }
  .tbl td { padding: 10px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; text-align: center; font-size: var(--t-md); }
  .tbl tbody tr:last-child td { border-bottom: 0; }
  .tbl tbody tr:hover { background: var(--surface-2); }
  .tbl .pos { color: var(--ink-3); width: 36px; padding-left: 8px; }
  .tbl th.l, .tbl td.cl { padding-left: 4px; padding-right: 10px; }
  .tbl td.cl { text-align: left; }
  .tbl .club { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
  .tbl a.club:hover .nm b { text-decoration: underline; text-decoration-color: var(--flood); text-underline-offset: 3px; }
  .tbl .club .nm { min-width: 0; }
  .tbl .club .nm b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tbl .club .nm small { display: block; color: var(--ink-3); font-size: var(--t-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tbl .split { border-left: 1px solid var(--line-soft); }
  .tbl .gd.pos-gd { color: var(--win); } .tbl .gd.neg-gd { color: var(--loss); }
  .tbl .pts { font-weight: 800; color: var(--ink); }
  .tbl th:last-child { width: 52px; }
  .tbl tr.team-total td { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
  .tbl tr.house td { color: var(--ink-3); }
  .note { font-size: var(--t-xs); color: var(--ink-3); padding: var(--s3) var(--s4) var(--s4); margin: 0; border-top: 1px solid var(--line-soft); }

  .clubs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); }
  .clubcard { position: relative; display: grid; gap: var(--s3); padding: var(--s4); text-decoration: none; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; transition: transform .15s var(--ease), border-color .15s; }
  .clubcard > .crest { justify-self: center; }
  .clubcard > div { text-align: center; }
  .clubcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--stripe, var(--kit)); }
  .clubcard:hover { transform: translateY(-2px); border-color: var(--line); }
  .clubcard > div > b { font: 700 var(--t-xl)/1 var(--display); }
  .clubcard small { color: var(--ink-3); font-size: var(--t-xs); font-weight: 600; }
  .clubcard.off > div > b { color: var(--ink-2); }

  footer { margin: var(--s8) 0 var(--s6); color: var(--ink-3); font-size: var(--t-xs); }

  @media (max-width: 1100px) {
    .hero { grid-template-columns: minmax(0, 1fr); }
    .board { min-height: 0; }
    .board-in { position: static; }
    .centre { height: auto; max-height: 460px; flex: none; }   /* P32.1: as tall as the commentary so far, not an empty box before kick-off */
    .centre[data-tab="stats"] { max-height: none; }   /* under the video, the stats show whole: the page scrolls (cs) */
    .clubs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  }
  @media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
  @media (max-width: 719px) {
    .stadium .page { padding: 0; }
    .hero { padding: 0 0 var(--s5); gap: var(--s4); }
    .screen { border-radius: 0; box-shadow: none; }
    .board { padding: 0 var(--s4); }
    .centre:not([data-tab="stats"]) { max-height: 420px; }
    .clubs { grid-auto-flow: column; grid-auto-columns: 46%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2); margin: 0 calc(-1 * var(--s4)); padding-left: var(--s4); padding-right: var(--s4); scrollbar-width: none; }
    .clubcard { scroll-snap-align: start; }
    .tbl .hide-sm, .glossary .hide-sm { display: none; }
    .tbl th { width: 29px; } .tbl th:last-child { width: 34px; } .tbl th:first-child { width: 24px; } .tbl .pos { padding-left: 2px; } .tbl td { font-size: var(--t-sm); } .tbl .club { gap: 8px; } .tbl th.l, .tbl td.cl { padding-right: 4px; }
    .res { padding: 12px var(--s3); grid-template-columns: minmax(0, 1fr) 96px 84px; gap: var(--s2); }
    .plans .planrow { padding: 12px var(--s3); }
    .res .mdl { white-space: normal; }
  }
  /* small phones: the club names get the width; when it was sits under the score, and W, D, L drop out of the table */
  @media (max-width: 480px) {
    .res { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s3); row-gap: 4px; }
    .res .teams { grid-row: span 2; }
    .res .when { text-align: center; }
  }
  @media (max-width: 360px) { .tbl .hide-xs, .glossary .hide-xs { display: none; } }

/* ---------- page header (every page but Matchday) */
.pagehead { padding: var(--s6) 0 var(--s5); }
.pagehead .lede { margin-top: var(--s3); }
/* the way back up ("All clubs"): quiet until hovered */
.crumb { display: inline-block; font-size: var(--t-sm); font-weight: 600; color: var(--ink-3); text-decoration: none; }
a.crumb:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--flood); text-underline-offset: 3px; }
.pagehead .crumb, .clubband .crumb { margin-bottom: var(--s3); }
/* the cup page: every cup in one menu above the title, past winners at the bottom (cs, 2026-11-21) */
.cupswitch { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s3); max-width: 100%; }
.cupswitch > span { white-space: nowrap; }
.cupswitch select { min-height: 40px; width: auto; min-width: 0; flex: 0 1 auto; max-width: 760px; text-overflow: ellipsis; }
.pastcups { padding: 0; display: grid; }
.pastcup { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 20px; color: var(--ink); text-decoration: none; }
.pastcup + .pastcup { border-top: 1px solid var(--line); }
.pastcup:hover b { text-decoration: underline; }
@media (max-width: 599px) { .pastcup { grid-template-columns: auto minmax(0, 1fr); } .pastcup > span.link.small { display: none; } }   /* the row is the link */
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-bottom: var(--s5); }
.select { min-height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2385a394' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; appearance: none; font-weight: 600; font-size: var(--t-sm); cursor: pointer; }
.stack > * + * { margin-top: var(--s7); }
.measure { max-width: none; }

/* ---------- matches page */
.day { font: 700 var(--t-sm)/1 var(--text); color: var(--ink-3); padding: 14px var(--s4) 8px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.fx { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: 12px var(--s4); border-bottom: 1px solid var(--line-soft); }
.fx:last-child { border-bottom: 0; }
.fx .at b { display: block; font: 700 var(--t-lg)/1 var(--display); }
.fx .at small { color: var(--ink-3); font-size: var(--t-xs); }
.fx .vs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 600; min-width: 0; }
.fx .vs .t { display: inline-flex; align-items: center; gap: 8px; }
.fx .vs .v { color: var(--ink-3); font-weight: 500; }
.livecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s3); }
.livecard { display: grid; gap: 10px; padding: var(--s4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; }
.livecard:hover { border-color: var(--live); }
.livecard .row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-weight: 600; }
.livecard .row b { font: 700 var(--t-xl)/1 var(--display); }
.livecard .top { display: flex; align-items: center; gap: 8px; color: var(--live); font-weight: 700; font-size: var(--t-sm); }

/* ---------- clubs page */
.clubgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }
/* Each card spans four shared rows (crest, name, record, models), so the rows line up across cards; without subgrid each card lays out on its own. */
@supports (grid-template-rows: subgrid) { .clubgrid > .bigclub { grid-row: span 4; grid-template-rows: subgrid; } .bigclub > .rec, .bigclub > .models { align-self: start; } }
.bigclub { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding: var(--s5) var(--s4) var(--s4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; overflow: hidden; transition: transform .15s var(--ease), border-color .15s; }
.bigclub::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--stripe, var(--kit)); }
.bigclub:hover { transform: translateY(-2px); border-color: var(--line); }
.bigclub h3 { margin: 0; font: 700 var(--t-xl)/1.05 var(--display); overflow-wrap: break-word; }
/* a name whose longest word (--w letters, "Phoenixes") would not fit the card shrinks rather than break inside the word */
.bigclub .who { container-type: inline-size; }
@supports (font-size: 1cqi) { .bigclub h3 { font-size: min(var(--t-xl), 100cqi / (var(--w, 1) * 0.6)); } }
.bigclub .maker { color: var(--ink-3); font-size: var(--t-sm); font-weight: 600; margin-top: 2px; }
.bigclub .rec { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: var(--s2) var(--s5); margin-top: var(--s3); font-size: var(--t-sm); color: var(--ink-2); }
.bigclub .rec > span { white-space: nowrap; }
/* sparring partners: how the house team plays; not a link */
.bigclub .blurb { grid-column: 1 / -1; margin: 0; text-align: center; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; }
.bigclub.house:hover { transform: none; border-color: var(--line-soft); }
@supports (grid-template-rows: subgrid) { .clubgrid > .bigclub.house { grid-row: span 3; } }   /* crest, name, blurb */
.bigclub > .rec { grid-column: 1 / -1; margin-top: 0; }
.bigclub > .crest { justify-self: center; }
.bigclub .who { min-width: 0; text-align: center; }
.bigclub .rec b { font: 700 var(--t-lg)/1 var(--display); color: var(--ink); display: block; }
.bigclub .models { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; white-space: normal; }
.bigclub .models .mgr { border-style: dashed; }
.bigclub .models .spare { color: var(--ink-3); background: transparent; border-style: dashed; border-color: var(--line); }
.bigclub.off { background: transparent; border-style: dashed; }
.bigclub.off h3 { color: var(--ink-2); }

/* ---------- club page */
.clubband { position: relative; padding: var(--s6) 0 var(--s5); background: linear-gradient(180deg, color-mix(in srgb, var(--kit) 22%, transparent), transparent 85%); border-bottom: 1px solid var(--line-soft); }
.clubband .in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: center; }
.crest.xl { width: 96px; height: 110px; } .crest.xl b { font-size: 30px; }
.crest.logo.xl { width: 220px; height: 220px; }
.clubband h1 { margin: 0; }
.clubband .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }
.clubband .lede { margin-top: var(--s3); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.tile { padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-soft); }
.tile b { display: block; font: 700 var(--t-2xl)/1 var(--display); }
.tile span { display: block; margin-top: 4px; font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; }
.tile span.rank { margin-top: 2px; font-weight: 500; }
.tbl td.nw { white-space: nowrap; }
/* P67.2: a player's honours */
.honourlist { list-style: none; margin: 0; padding: var(--s3) var(--s4); display: grid; gap: var(--s2); }
.honourlist li { color: var(--ink-2); }
/* P66.2: a model's reply time, match by match (one series in the action colour; the deadline dashed) */
.chartpanel { padding: var(--s4); }
.chartbox { width: 100%; min-height: 180px; }
.replychart { display: block; overflow: visible; }
.replychart text { font-size: 11px; fill: var(--ink-3); font-family: inherit; }
.replychart .grid { stroke: var(--line-soft); stroke-width: 1; }
.replychart .dl { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 5 4; }
.replychart .ln { fill: none; stroke: var(--flood); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.replychart .pt { fill: var(--flood); stroke: var(--surface); stroke-width: 2; }
.replychart .pt.late { fill: var(--surface); stroke: var(--flood); }
.replychart .hit { fill: transparent; cursor: pointer; }
.replychart a:hover .pt, .replychart a:focus .pt { r: 6.5; }
.charttable { margin-top: var(--s3); font-size: var(--t-sm); }
.charttable summary { cursor: pointer; color: var(--ink-2); }
a.mlink { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
a.mlink:hover { text-decoration-color: currentColor; }
/* cs, 2026-11-23: a glossary of the short column names under each table (from their hover text) */
.glossary { padding: var(--s3) var(--s4) var(--s4); border-top: 1px solid var(--line-soft); font-size: var(--t-xs); color: var(--ink-3); }
.glossary .eyebrow { margin: 0 0 var(--s2); }
.glossary dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px var(--s4); margin: 0; }
.glossary dt, .glossary dd { display: inline; margin: 0; }
.glossary dt { font-weight: 700; color: var(--ink-2); }   /* P66: "3rd fastest of 27" on a model's page */
.formation { position: relative; aspect-ratio: 110 / 70; border-radius: var(--r-lg); overflow: hidden; background: repeating-linear-gradient(90deg, var(--turf-a) 0 8.33%, var(--turf-b) 8.33% 16.66%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.formation svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.shirt { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; width: 120px; text-align: center; }
.shirt i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--display); font-style: normal; background: var(--kit); color: var(--kit-ink, var(--white)); border: 2px solid rgba(255,255,255,.9); box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.shirt small { font-size: 11px; font-weight: 700; color: var(--white); text-shadow: 0 1px 2px rgba(0,0,0,.7); line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.starters { display: grid; gap: 2px; margin-top: var(--s4); }
.starter { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: 10px var(--s3); border-radius: var(--r-sm); background: var(--surface); }
.starter .lbl { font: 700 var(--t-md)/1 var(--display); text-align: center; padding: 5px 0; border-radius: 6px; background: var(--kit); color: var(--kit-ink, var(--white)); }
.starter .nm { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.starter .md { font-size: var(--t-xs); color: var(--ink-3); text-align: right; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }

/* ---------- table page */
.speed th { width: 84px; }
.speed th.l { width: auto; }
.speed th:nth-child(2) { width: 30%; }
.speed td.bar-cell { padding: 0 var(--s4); }
.speed .meter { margin-top: 2px; }

/* ---------- match page: report */
.report { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }   /* Chromium sized an auto column to the Key moments row: the page ran off the right edge */
.final { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s5); align-items: center; padding: var(--s5); }
.final .side { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.final .side.away { justify-content: flex-end; text-align: right; }
.final .side b { font: 700 var(--t-2xl)/1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.final .score { font-size: var(--t-4xl); justify-self: center; }
.final .note2 { grid-column: 1 / -1; text-align: center; color: var(--ink-3); font-size: var(--t-sm); margin-top: -8px; }
.prose { font-size: var(--t-md); line-height: 1.6; margin: 0; }
.byline { font-size: var(--t-xs); color: var(--ink-3); margin-top: var(--s2); }
.moments { list-style: none; margin: 0; padding: 0; display: grid; }
.moments li { border-bottom: 1px solid var(--line-soft); }
/* P32.3: each key moment is a button that plays the replay from just before it */
.moments .km { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s3); align-items: baseline; width: 100%; min-height: 44px; padding: 12px var(--s4); border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.moments .km:hover { background: color-mix(in srgb, var(--flood) 8%, transparent); }
.moments .km:hover time, .moments .km:focus-visible time { color: var(--ink); }
.moments li:last-child { border-bottom: 0; }
.moments time { font: 700 var(--t-lg)/1.2 var(--display); color: var(--ink-3); }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s3); }
.award { padding: var(--s4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); border-top: 4px solid var(--kit, var(--flood)); }
.award span { display: block; font-size: var(--t-xs); color: var(--ink-3); font-weight: 700; }
.award b { display: block; font: 700 var(--t-xl)/1.1 var(--display); margin: 6px 0 4px; }
.award p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.players td, .players th { text-align: right; }
.players td.l, .players th.l { text-align: left; }
.players th { width: 92px; }
.players th.l { width: auto; }
.players th:last-child { width: 100px; }
.players td, .players th { padding-right: 14px; }
.players td.l, .players th.l, .speed td.cl, .speed th.l { padding-left: 14px; }
.speed th:last-child { width: 96px; }
.speed td:last-child, .speed th:last-child { padding-right: 10px; }
.players td.l small { display: block; color: var(--ink-3); font-size: var(--t-xs); }
.gate { padding: var(--s6) var(--s5); text-align: center; display: grid; justify-items: center; gap: var(--s3); }

@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
@media (max-width: 719px) {
  .pagehead { padding: var(--s5) 0 var(--s4); }
  .fx { grid-template-columns: 84px minmax(0, 1fr); }
  .fx .cd { grid-column: 2; justify-self: start; }
  .clubband .in { grid-template-columns: 1fr; gap: var(--s3); }
  .crest.xl { width: 64px; height: 74px; } .crest.xl b { font-size: 21px; }
  .crest.logo.xl { width: 140px; height: 140px; }
  .shirt { width: 80px; } .shirt i { width: 30px; height: 30px; font-size: 11px; } .shirt small { display: none; }
  .section-head { flex-wrap: wrap; row-gap: 4px; }
  .final { grid-template-columns: 1fr; text-align: center; gap: var(--s3); }
  .final .side, .final .side.away { justify-content: center; text-align: center; }
  .final .side.away { flex-direction: row-reverse; }
  .final .score { font-size: var(--t-3xl); }
  .players .hide-sm { display: none; }
  .players td.l .nm b, .starter .nm { white-space: normal; }
  .players th { width: 64px; } .players th:last-child { width: 72px; } .players td, .players th { padding-right: 8px; } .speed th { width: 60px; } .speed th:last-child { width: 64px; }
}

/* ------------------------------------------------------------------ the cup (P5): knockout bracket */
.screen .ft-pens { font: 700 var(--t-sm)/1.2 var(--text); color: var(--scr-hi); margin-top: -4px; }
.cupnow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 12px var(--s4); text-decoration: none; margin-bottom: var(--s5); }
.cupnow.strip { margin: var(--s6) 0 0; }
.cupnow .vs { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font: 700 var(--t-lg)/1 var(--display); }
.cupnow .vs .v { color: var(--ink-3); font-weight: 600; font-size: var(--t-md); }
.cupnow .score { font: 700 var(--t-xl)/1 var(--display); }
.cupnow .cn { font: 700 var(--t-lg)/1 var(--display); }
.cupnow .btn, .cupnow .go { margin-left: auto; }
a.cupnow:hover { border-color: var(--line); }
.chip.is-live { background: var(--live); color: var(--surface); border-color: transparent; }
.chip.is-live .live-dot { background: var(--surface); box-shadow: none; }
.trophy { display: inline-grid; place-items: center; color: var(--ink-3); }
.trophy svg { width: 36px; height: 36px; }
.trophy.sm svg { width: 22px; height: 22px; color: var(--flood); }
.trophy.won { color: var(--flood); filter: drop-shadow(0 0 14px var(--glow)); }
.trophy.big svg { width: 84px; height: 84px; }
.champ-mark { margin-left: 6px; vertical-align: -3px; filter: drop-shadow(0 0 6px var(--glow)); }
.champ-mark svg { width: 18px; height: 18px; }
/* a club's honours (cs, 2026-11-18): one trophy per title, its name and (year) */
/* Best Coach (cs, 2026-11-18) */
.coachcell { display: grid; gap: 2px; } .coachcell small { font-size: var(--t-xs); padding-left: 38px; }
.tbl.coachtbl td { white-space: nowrap; } .tbl.coachtbl td.l { white-space: normal; }
.tbl.coachtbl th:nth-child(1) { width: 32px; } .tbl.coachtbl th:nth-child(2) { width: auto; } .tbl.coachtbl th:nth-child(3) { width: 40px; } .tbl.coachtbl th:nth-child(4) { width: 72px; }
.tbl.coachtbl th:nth-child(5) { width: 60px; } .tbl.coachtbl th:nth-child(6) { width: 44px; } .tbl.coachtbl th:nth-child(7) { width: 44px; } .tbl.coachtbl th:nth-child(8) { width: 60px; } .tbl.coachtbl th:nth-child(9) { width: 68px; }
.bestcoach { max-width: 520px; }
.honours { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); padding: var(--s3) var(--s4); margin: var(--s3) 0; }
.honours .hn-l { font: 700 var(--t-xs)/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.honour { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.honour .trophy svg { width: 30px; height: 30px; } .honour b { font: 700 var(--t-md)/1.2 var(--display); }
.honour:hover b { text-decoration: underline; }
.champband { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s5); align-items: center; padding: var(--s5); margin-bottom: var(--s5); border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--kit) 34%, transparent), transparent 60%), var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.champband .k { font: 700 var(--t-xs)/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.champband .h-display { margin: 6px 0 4px; }
.champband p { margin: 0; color: var(--ink-2); }

.bracket .rounds { display: none; }
/* the wall chart may use more than the 1200 px page on wide screens (7 columns for 16 clubs) */
/* the wall chart stays inside the page; cards are capped (short names fit), the chart is centred */
.wall { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 200px)); justify-content: center; column-gap: 28px; padding: var(--s4); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-soft); }
.bcol { display: flex; flex-direction: column; min-width: 0; }
.bcol .rh { font: 700 var(--t-xs)/1 var(--text); color: var(--ink-3); text-align: center; letter-spacing: .04em; text-transform: uppercase; padding: 2px 0 12px; }
.bbody { flex: 1; display: flex; flex-direction: column; min-height: 560px; }
.pair { flex: 1; display: flex; flex-direction: column; position: relative; }
.slot { flex: 1; display: flex; align-items: center; position: relative; padding: 6px 0; }
.slot > .tie { width: 100%; }
/* connectors: card → pair line → next round */
.bcol.L .slot::after, .bcol.R .slot::before { content: ""; position: absolute; top: 50%; width: 14px; border-top: 2px solid var(--line); }
.bcol.L .slot::after { right: -14px; } .bcol.R .slot::before { left: -14px; }
.bcol.L .pair.duo::after, .bcol.R .pair.duo::before { content: ""; position: absolute; top: 25%; bottom: 25%; border-right: 2px solid var(--line); }
.bcol.L .pair.duo::after { right: -14px; } .bcol.R .pair.duo::before { left: -14px; }
.bcol.L + .bcol.L .slot::before, .bcol.R:not(:last-child) .slot::after { content: ""; position: absolute; top: 50%; width: 14px; border-top: 2px solid var(--line); }
.bcol.L + .bcol.L .slot::before { left: -14px; } .bcol.R:not(:last-child) .slot::after { right: -14px; }
.bcol.C .slot.fin::before, .bcol.C .slot.fin::after { content: ""; position: absolute; top: 50%; width: 14px; border-top: 2px solid var(--line); }
.bcol.C .slot.fin::before { left: -14px; } .bcol.C .slot.fin::after { right: -14px; }
.finbox { width: 100%; position: relative; }
.finbox .fintop { position: absolute; left: 0; right: 0; bottom: calc(100% + 12px); display: grid; gap: 8px; justify-items: center; }
.finbox .tie { width: 100%; border-color: color-mix(in srgb, var(--flood) 55%, var(--line)); }
.finbox .champ { display: flex; align-items: center; gap: 8px; font: 700 var(--t-lg)/1 var(--display); text-align: center; }
.finbox .third { width: 100%; position: absolute; top: calc(100% + 24px); }

.tie { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s, transform .15s var(--ease); }
a.tie:hover { border-color: var(--flood); transform: translateY(-1px); }
.tie .row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 5px 8px; min-height: 32px; transition: background .15s; }
.tie .row + .row { border-top: 1px solid var(--line-soft); }
.tie .row .nm { font: 700 var(--t-md)/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; min-width: 0; }
.tie .row .nm .nmt { overflow: hidden; text-overflow: ellipsis; min-width: 0; }   /* the name gives way; the seed pill keeps its size */
.tie .row .nm .seed { flex: none; }
.tie .row .nm i { font: 500 var(--t-xs)/1.2 var(--text); color: var(--ink-3); }
.tie .row .nm .seed { display: inline-block; margin-left: 4px; padding: 2px 4px; border: 1px solid var(--line); border-radius: 999px; font: 600 var(--t-xs)/1 var(--text); color: var(--ink-3); vertical-align: middle; white-space: nowrap; font-variant-numeric: tabular-nums; }   /* P39: a seeded cup's seed, as a labelled pill (cs, 2026-11-22: a bare number read like a score) */
.tie .row .sc { font: 700 var(--t-lg)/1 var(--display); min-width: 1.1em; text-align: right; font-variant-numeric: tabular-nums; }
.tie .row .sc sup { font: 700 10px/1 var(--text); color: var(--ink-3); margin-left: 2px; vertical-align: 6px; }
.tie .row .crest-gap { width: 19px; height: 22px; border-radius: 5px; border: 1px dashed var(--line); }
.tie .row.won .nm, .tie .row.won .sc { color: var(--ink); }
.tie .row.won { background: color-mix(in srgb, var(--flood) 9%, transparent); }
.tie .row.lost .nm, .tie .row.lost .sc { color: var(--ink-3); }
.tie .row.hl { background: color-mix(in srgb, var(--flood) 22%, transparent); opacity: 1; }
.tie .foot { display: flex; justify-content: space-between; gap: 6px; padding: 3px 8px 4px; font-size: 11px; font-weight: 600; color: var(--ink-3); border-top: 1px solid var(--line-soft); background: var(--surface-2); min-height: 20px; }
.tie .foot .lab { color: var(--ink-2); }
.tie .foot .live { display: inline-flex; align-items: center; gap: 5px; color: var(--live); font-weight: 800; }
.tie .foot .warnx { color: var(--warn-ink); }
.tie.live { border-color: var(--live); box-shadow: 0 0 0 1px var(--live), var(--shadow); }
.tie.waiting .row .nm { color: var(--ink-3); }
.rules ol { margin: 0; padding: var(--s4) var(--s5) var(--s4) calc(var(--s5) + 14px); display: grid; gap: 10px; color: var(--ink-2); }
.rules b { color: var(--ink); }
/* narrow screens: one round at a time */
@media (max-width: 1099px) {
  .bracket .wall { display: none; }
  .bracket .rounds { display: grid; gap: var(--s4); }
  .rounds .seg { justify-self: start; max-width: 100%; overflow-x: auto; }
  .rounds .rlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
  .rounds .tie .row { min-height: 40px; }
  .champband { grid-template-columns: auto 1fr; }
  .champband .trophy.big { display: none; }
}
@media (max-width: 540px) { .cupnow .vs { font-size: var(--t-md); } .cupnow .btn { margin-left: 0; } }

/* ---------- league season (P7): table + matchweek browser */
.seasongrid { display: grid; gap: var(--s6, 48px); }
.mwhead { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: center; column-gap: var(--s5); }
@media (max-width: 760px) { .mwhead { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .sfxlist { display: grid; grid-template-columns: 1fr 1fr; } .sfxlist .sfx:nth-child(odd) { border-right: 1px solid var(--line-soft); } .sfxlist .sfx:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
.tbl.season th.formcell { width: 132px; }
.form { display: inline-flex; gap: 3px; }
.form i { font: 800 10px/18px var(--text); font-style: normal; width: 18px; height: 18px; border-radius: 4px; text-align: center; color: var(--surface); }
.form i.fW { background: var(--win); } .form i.fD { background: var(--draw); } .form i.fL { background: var(--loss); }
.tbl.compact th:last-child { width: 52px; }
.mwhead { display: grid; gap: 8px; margin-bottom: var(--s3); }
.mwnav { display: flex; align-items: center; gap: 8px; }
.mwnav .select { flex: 1; min-width: 0; }
.mwwhen b { display: block; font-weight: 700; }
.mwwhen small { color: var(--ink-3); font-size: var(--t-xs); }
.sfxlist { padding: 4px 0; }
.sfx { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); grid-template-areas: "h m a" "s s s"; align-items: center; column-gap: 10px; row-gap: 2px; padding: 10px var(--s4); text-decoration: none; color: inherit; border-bottom: 1px solid var(--line-soft); }
.sfx:last-child { border-bottom: 0; }
a.sfx:hover { background: var(--surface-2); }
.sfx > .t:first-child { grid-area: h; justify-content: flex-end; text-align: right; }
.sfx > .t:first-child .crest { order: 2; }
.sfx > .t:nth-child(3) { grid-area: a; }
.sfx .t { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.sfx .t .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfx .t .sn { display: none; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 560px) { .sfx .t .nm { display: none; } .sfx .t .sn { display: inline; } }
.sfx .sc, .sfx .ko { grid-area: m; text-align: center; font: 700 var(--t-lg)/1 var(--display); }
.sfx .ko { font-size: var(--t-md); color: var(--ink-2); padding: 4px 0; border-radius: 6px; background: var(--surface-2); cursor: help; }
.sfx .sc.is-live { color: var(--live); }
.sfx > .chip { grid-area: s; justify-self: center; font-size: 11px; }
.chip.quiet { background: transparent; border-color: transparent; color: var(--ink-3); }
.seasonnow .when { font-weight: 700; }

/* ------------------------------------------------------------------ fan features (P10) */
.predictgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s6); align-items: start; margin-top: var(--s5); }
@media (max-width: 960px) { .predictgrid { grid-template-columns: 1fr; } }
.nickbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4); margin-bottom: var(--s4); }
.nickbox > p { margin: 0; flex-basis: 100%; }
.nickbox .me { display: flex; align-items: center; gap: 10px; }
.nickbox .me small { display: block; font-size: var(--t-xs); color: var(--ink-3); }
.nickbox .me b { font: 700 var(--t-lg)/1 var(--display); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--flood); color: var(--flood-ink); font: 700 var(--t-lg)/1 var(--display); }
.nickform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s2); flex: 1; }
.nickform label { display: grid; gap: 4px; flex: 1; min-width: 180px; font-size: var(--t-sm); }
.input { min-height: 40px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; }
.input:focus-visible { outline: 2px solid var(--flood); outline-offset: 1px; }
.err { color: var(--loss); margin: 0; flex-basis: 100%; }
.err:empty { display: none; }
.picks { padding: 4px 0; }
.pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "h m a" "i i i"; align-items: center; column-gap: 12px; row-gap: 6px; padding: 12px var(--s4); border-bottom: 1px solid var(--line-soft); position: relative; }
.pick:last-child { border-bottom: 0; }
.pick .t { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.pick .t.h { grid-area: h; justify-content: flex-end; text-align: right; } .pick .t.h .crest { order: 2; }
.pick .t.a { grid-area: a; }
.pick .t .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .t .sn { display: none; font-weight: 800; letter-spacing: .04em; }
.pick .chip .sn { display: none; }
@media (max-width: 560px) { .pick .t .nm, .pick .chip .nm { display: none; } .pick .t .sn, .pick .chip .sn { display: inline; } }
.pick .mid { grid-area: m; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 64px; }
.pick .mid .sc { font: 700 var(--t-xl)/1 var(--display); } .pick .mid .sc.is-live { color: var(--live); }
.pick .mid .ko { font: 700 var(--t-md)/1 var(--display); color: var(--ink-2); padding: 6px 8px; border-radius: 6px; background: var(--surface-2); }
.pick .info { grid-area: i; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pick .more { position: absolute; right: var(--s4); bottom: 14px; }
/* room on both sides for the Match link, so a row of chips never runs under it (centred, so both sides) */
.pick .info { padding: 0 52px; }
/* every AI prediction for a match, under its chip (cs, 2026-11-18): each predictor, the score it called and the points it got */
.pick .allp { grid-column: 1 / -1; justify-self: center; text-align: center; padding: 0 52px; max-width: 100%; }
.pick .allp > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pick .allp > summary::-webkit-details-marker { display: none; }
.pick .allp .caret { transition: transform .15s; } .pick .allp[open] .caret { transform: rotate(180deg); }
.pick .allp ol { list-style: none; margin: 10px auto 0; padding: 8px 12px; display: grid; gap: 2px; width: min(380px, 100%); text-align: left; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--surface-2); }
.pick .allp li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 34px; gap: 8px; align-items: center; padding: 4px 0; font-size: var(--t-sm); }
.pick .allp li + li { border-top: 1px solid var(--line-soft); }
.pick .allp li .crest { width: 24px; height: 24px; } .pick .allp li .ai { padding: 2px 4px; font-size: 10px; justify-self: center; }
.pick .allp .who { min-width: 0; display: grid; } .pick .allp .who b, .pick .allp .who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pick .allp .who small { color: var(--ink-3); font-size: var(--t-xs); }
.pick .allp .sc { font: 700 var(--t-md)/1 var(--display); font-variant-numeric: tabular-nums; }
.pick .allp > p { margin: 6px 0 0; }
@media (max-width: 560px) { .pick .more { position: static; grid-column: 1 / -1; justify-self: center; } .pick .info, .pick .allp { padding: 0; } }
.dash { font: 700 var(--t-lg)/1 var(--display); color: var(--ink-3); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.stepper output { min-width: 26px; text-align: center; font: 700 var(--t-xl)/1 var(--display); font-variant-numeric: tabular-nums; }
.stepper .st { width: 36px; height: 36px; border: 0; background: none; color: var(--ink-2); font: 700 18px/1 var(--text); border-radius: 50%; cursor: pointer; }
.stepper .st:hover { color: var(--ink); background: var(--surface); }
.stepper .st:focus-visible { outline: 2px solid var(--flood); }
.savebar { min-height: 22px; margin-top: 6px; text-align: right; }
.ptsb { font-style: normal; display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 999px; font: 800 12px/1 var(--text); }
.ptsb.p3 { background: var(--win); color: var(--on-win); } .ptsb.p1 { background: color-mix(in srgb, var(--win) 30%, var(--surface-2)); color: var(--ink); } .ptsb.p0 { background: var(--surface-2); color: var(--ink-3); }
.chip.pundit { color: var(--link); border-color: color-mix(in srgb, var(--flood) 45%, transparent); }
.tbl.fans tr.me td { background: color-mix(in srgb, var(--flood) 12%, transparent); }
.tbl.fans tr.ai .fanname b { color: var(--link); }
.fanname { display: inline-flex; align-items: center; gap: 6px; min-width: 0; } .fanname b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the coaches' record: a long club name wraps instead of running into the numbers */
.tbl.coaches .fanname .nm { display: grid; min-width: 0; } .tbl.coaches .fanname .nm small { font-size: var(--t-xs); }
.tbl.coaches .fanname { display: flex; } .tbl.coaches .fanname .crest { flex: none; } .tbl.coaches .fanname b { white-space: normal; line-height: 1.25; }
.note-panel { padding: var(--s3) var(--s4); } .note-panel ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); }
.crowd { display: grid; gap: 6px; width: 100%; }
.crowd .bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.crowd .bar span { display: block; } .crowd .bar .h { background: var(--flood); } .crowd .bar .d { background: var(--draw); } .crowd .bar .a { background: var(--ink-3); }
.crowd .lbl { display: flex; justify-content: space-between; font-size: var(--t-xs); font-weight: 700; }
.crowd small { color: var(--ink-3); font-size: var(--t-xs); }
.predictnow .cn { color: var(--link); }
/* awards */
.awardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }
.awardboard { padding: var(--s4); display: grid; gap: var(--s3); align-content: start; }
.awardboard .winner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: var(--s3); border-radius: var(--r-md); background: linear-gradient(90deg, color-mix(in srgb, var(--kit) 22%, transparent), transparent); border-left: 4px solid var(--kit); }
.awardboard .winner b { display: block; font: 700 var(--t-lg)/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; }
.awardboard .winner small { display: block; font-size: var(--t-xs); color: var(--ink-3); }
.awardboard .big { font: 700 var(--t-3xl)/1 var(--display); white-space: nowrap; }
.awardboard .winner .crest { width: 44px; height: 44px; }
.awardboard .runners { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.awardboard .runners li { display: grid; grid-template-columns: 16px 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 0; }
.awardboard .runners .rk { color: var(--ink-3); font-size: var(--t-xs); font-weight: 700; text-align: center; }
.awardboard .runners .crest { width: 26px; height: 26px; }
.awardboard .runners .nm { min-width: 0; } .awardboard .runners .nm b { display: block; font-size: var(--t-sm); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.awardboard .runners .nm small { display: block; color: var(--ink-3); font-size: var(--t-xs); overflow-wrap: anywhere; line-height: 1.3; }   /* a long model name wraps (Chinese sweep, 2026-11-25) */
.awardboard .runners .val { font: 700 var(--t-lg)/1 var(--display); }
.awardboard > p { margin: 0; }
/* the number columns share the width with the model, so the table does not leave a wide gap on a big screen (cs, 2026-11-18) */
.tbl.models th:first-child { width: auto; } .tbl.models th { width: 15%; } .tbl.models td { font-size: var(--t-sm); padding-top: 8px; padding-bottom: 8px; }
.tbl.models th:first-child, .tbl.models td:first-child { padding-left: var(--s4); } .tbl.models th:last-child, .tbl.models td:last-child { padding-right: var(--s4); }
.tbl.models td.cl .nm b { display: block; } .tbl.models td.cl .nm small { display: block; color: var(--ink-3); font-size: var(--t-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 5px; border-radius: 6px; font: 700 13px/1 var(--display); font-style: normal; color: var(--white); }
.rt.r-top { background: var(--rate-top); } .rt.r-good { background: var(--rate-good); } .rt.r-ok { background: var(--rate-ok); } .rt.r-low { background: var(--rate-low); }
.formation.totw .shirt { text-decoration: none; }
.formation.totw .shirt i { font-size: 10px; letter-spacing: .02em; }
.formation.totw .shirt .rt { position: absolute; top: -6px; left: calc(50% + 12px); }
.totwlist { list-style: none; margin: 0; padding: 4px 0; }
.totwlist li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px var(--s4); border-bottom: 1px solid var(--line-soft); }
.totwlist li:last-child { border-bottom: 0; }
.totwlist .nm b { display: block; } .totwlist .nm small { display: block; color: var(--ink-3); font-size: var(--t-xs); }
/* head to head */
.h2hpick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: var(--s4) 0 var(--s5); }
.h2hpick .select { flex: 1; min-width: 160px; max-width: 320px; }
.h2hpick .v { font: 700 var(--t-lg)/1 var(--display); color: var(--ink-3); }
.h2hband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s4); align-items: center; padding: var(--s5); }
.h2hband .side { display: grid; justify-items: center; gap: 6px; text-decoration: none; text-align: center; }
.h2hband .side b { font: 700 var(--t-xl)/1.05 var(--display); }
.h2hband .big { font: 700 var(--t-4xl)/1 var(--display); }
.h2hband small { color: var(--ink-3); font-size: var(--t-xs); font-weight: 600; }
.h2hband .midrec { display: grid; justify-items: center; gap: 6px; }
.recbar { display: flex; width: 100%; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin-top: 6px; }
.recbar span { display: block; } .recbar .d { background: var(--draw); }
@media (max-width: 560px) { .h2hband { padding: var(--s4) var(--s3); gap: var(--s2); } .h2hband .side b { font-size: var(--t-md); } .h2hband .big { font-size: var(--t-3xl); } }
.tape { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tape td, .tape th { padding: 10px var(--s3); border-bottom: 1px solid var(--line-soft); }
.tape tr:last-child td, .tape tr:last-child th { border-bottom: 0; }
.tape th { font-size: var(--t-xs); color: var(--ink-3); font-weight: 700; text-align: center; width: 34%; }
.tape td { width: 33%; font-weight: 600; } .tape td:first-child { text-align: right; } .tape td:last-child { text-align: left; }
.tape td.win { color: var(--win); }
.sfx.meet > .chip { grid-area: s; }
.clubtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s5); }
.clubtools .select { max-width: 280px; }
.callinks { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.tablelinks { display: inline-flex; gap: var(--s4); }
/* match preview */
.pvband { padding: var(--s5) 0; background: linear-gradient(180deg, color-mix(in srgb, var(--flood) 10%, transparent), transparent 85%); border-bottom: 1px solid var(--line-soft); }
.pvteams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s4); align-items: center; margin: var(--s4) 0; }
.pvteams .side { display: grid; justify-items: center; gap: 6px; text-align: center; text-decoration: none; }
.pvteams .side b { font: 700 var(--t-2xl)/1.05 var(--display); }
.pvteams .side small { color: var(--ink-3); font-size: var(--t-sm); font-weight: 600; }
.pvteams .ko { display: grid; justify-items: center; gap: 6px; text-align: center; }
.pvteams .ko b { font: 700 var(--t-4xl)/1 var(--display); }
.pvteams .ko small { color: var(--ink-3); font-size: var(--t-xs); font-weight: 600; }
.pvteams .ko .world { max-width: 260px; }
@media (max-width: 560px) { .pvteams .side b { font-size: var(--t-lg); } .pvteams .ko b { font-size: var(--t-3xl); } .pvteams .ko .world { display: none; } }
.pvactions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }
.pundit-panel, .yourpick { padding: var(--s4) var(--s5); display: grid; gap: var(--s3); }
.pundit-panel .headline { margin: 0; font: 700 var(--t-xl)/1.1 var(--display); color: var(--link); }
.pundit-panel .call { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); }
.pundit-panel .call span { font-size: var(--t-xs); color: var(--ink-3); font-weight: 700; }
.pundit-panel .call b { font: 700 var(--t-lg)/1 var(--display); }
.yourpick .pickline { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.yourpick .nickbox { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.yourpick p { margin: 0; }
.h2hmini { padding: var(--s4); } .h2hmini p { margin: 0 0 6px; } .h2hmini ul { margin: 0 0 8px; padding-left: 18px; color: var(--ink-2); }
.h2hband .crest.logo, .pvteams .crest.logo { width: 104px; height: 104px; }
@media (max-width: 560px) { .h2hband .crest.logo, .pvteams .crest.logo { width: 64px; height: 64px; } }
.h2hband ~ section { margin-top: var(--s6); }
@media (max-width: 860px) {
  .pvgrid { display: flex; flex-direction: column; gap: var(--s6); }
  .pvgrid > .stack { display: contents; }
  .pvgrid > .stack > * { min-width: 0; max-width: 100%; }   /* phone pass: Team stats ran 13 px past the edge at 360 */
  .pvgrid .o1 { order: 1; } .pvgrid .o2 { order: 2; } .pvgrid .o3 { order: 3; } .pvgrid .o4 { order: 4; } .pvgrid .o5 { order: 5; }
  .pvgrid .o6 { order: 6; } .pvgrid .o7 { order: 7; }
}
@media (max-width: 420px) { .yourpick .pickline .crest { display: none; } }
.award .ptsb { margin-top: 8px; }
/* awards: season / matchweek switch and the week's stars */
.scopebar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: 0 0 var(--s5); }
.segs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 var(--t-sm)/1 var(--text); cursor: pointer; }
.seg[aria-pressed="true"] { background: var(--flood); color: var(--flood-ink); }
.seg:disabled { opacity: .5; cursor: default; }
.seg:focus-visible { outline: 2px solid var(--flood); outline-offset: 2px; }
.scopebar .select[hidden] { display: none; }
@media (max-width: 480px) { .scopebar > .seg { flex-wrap: wrap; overflow: visible; } }   /* P63.4: five AI tabs wrap on a phone, none hidden */
.starcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s4); }
.starcard { padding: var(--s4) var(--s5); display: grid; gap: var(--s3); align-content: start; }
.starcard .winner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: var(--s3); border-radius: var(--r-md); background: linear-gradient(90deg, color-mix(in srgb, var(--kit) 22%, transparent), transparent); border-left: 4px solid var(--kit); }
.starcard .winner .crest { width: 44px; height: 44px; }
.starcard .winner b { display: block; font: 700 var(--t-lg)/1.1 var(--display); }
.starcard .winner small { display: block; font-size: var(--t-xs); color: var(--ink-3); }
.starcard .big { font: 700 var(--t-3xl)/1 var(--display); white-space: nowrap; }
.starcard p { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.awardboard .winner .big:not(:only-child) { white-space: nowrap; }

/* ---------------------------------------------------------------- AI news (P11) */
.news-tools { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; margin: var(--s5) 0 var(--s4); }
.news-tools-r { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.news-tools .select { max-width: 260px; }
.news-list { display: grid; gap: var(--s3); }
.story { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--s4) var(--s5); display: grid; gap: 8px; min-width: 0; }
.story.major { border-left: 4px solid var(--flood, var(--win)); }
.story-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.story-meta time { margin-left: auto; }
.chip.imp3 { background: var(--ink); color: var(--bg); border-color: transparent; }
.chip.imp2 { color: var(--ink); }
.story-h { margin: 0; font: 700 var(--t-lg)/1.25 var(--text); overflow-wrap: anywhere; }
.story-h a { color: inherit; text-decoration: none; }
.story-h a:hover { text-decoration: underline; }
.story-what, .story-why { margin: 0; line-height: 1.5; color: var(--ink-2); }
.story-what.muted { color: var(--ink-3); }
.story-terms { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.term { font-size: var(--t-sm); }
.term summary { cursor: pointer; display: inline-flex; padding: 2px 9px; border-radius: 999px; border: 1px dashed var(--line); color: var(--ink-2); font-weight: 600; list-style: none; }
.term summary::-webkit-details-marker { display: none; }
.term[open] { flex-basis: 100%; }
.term[open] summary { border-style: solid; }
.term p { margin: 6px 0 2px; color: var(--ink-2); line-height: 1.45; max-width: 70ch; }
.story-src { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.story-src .src { font-size: var(--t-xs); font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); text-decoration: none; border: 1px solid var(--line-soft); }
.story-src .src:hover { color: var(--ink); }
.story-src .off { color: var(--win); margin-right: 4px; }
.story-by { margin: 0; }
.status-strip { padding: var(--s4) var(--s5); margin-bottom: var(--s3); }
.status-strip .section-head { margin-bottom: 4px; }
.status-strip h3 { margin: 0; font: 700 var(--t-md)/1.2 var(--text); }
.status-strip p { margin: 4px 0; color: var(--ink-2); }
.status-strip .inc { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: var(--t-sm); }
.news-note { margin-top: var(--s6); max-width: 80ch; }
@media (max-width: 760px) { .story { padding: var(--s3) var(--s4); } .story-meta time { margin-left: 0; } .news-tools .select { max-width: none; width: 100%; } .news-tools-r { width: 100%; } }

/* P14 step 5: team talk cards + the club page's plan history */
/* the club debrief (cs, 2026-11-25): coach.js's cards, in the site's colours (coach.js brings the Dugout's dark ones) */
.debrief { display: grid; gap: var(--s3); padding: var(--s4) var(--s5); }
@media (max-width: 719px) { .debrief { padding: var(--s4); } }
.debrief h3 { margin: var(--s2) 0 0; font-size: var(--t-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.debrief ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; }
.debrief .debrief-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); }
.debrief .debrief-who { margin: 0; }
.debrief > .btn { justify-self: start; }
/* cs, 2026-11-25: one tab per club, in its kit colour; the open one solid with a ring, the other faded */
.debrief .kit-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.debrief .kit-tabs button { border: 2px solid var(--kit); background: var(--kit); color: var(--kit-ink); border-radius: 999px; padding: 6px 16px; min-height: 36px; font: inherit; font-size: var(--t-sm); font-weight: 700; cursor: pointer; opacity: .45; }
.debrief .kit-tabs button:hover { opacity: .75; }
.debrief .kit-tabs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--kit); }
.debrief .kit-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.debrief .debrief-private { padding-top: var(--s3); border-top: 1px solid var(--line-soft); }
.debrief .coach-card .shirt { position: static; transform: none; display: inline-block; width: auto; gap: 0; background: var(--flood); color: #fff; }   /* the formation board's .shirt is a pitch marker */
.debrief .coach-card { background: var(--surface); border-color: var(--line-soft); border-left-color: var(--flood); color: var(--ink); }
.debrief .coach-card .why, .debrief .coach-card .ev span { color: var(--ink-2); }
.debrief .coach-card .ev span, .debrief .coach-card .chg code, .debrief .coach-diff { background: var(--bg); border-color: var(--line-soft); }
.debrief .coach-card .ev b { color: var(--ink); }
.debrief .coach-card .kind, .debrief .coach-card .acts .note, .debrief .coach-diff .same { color: var(--ink-3); }
.debrief .coach-diff .add { color: #1a7f37; background: rgba(46,160,67,.12); }
.debrief .coach-diff .del { color: #b42318; background: rgba(248,81,73,.10); }
.debrief .coach-card .acts button { background: var(--surface); color: var(--ink); border-color: var(--line); }
.debrief .coach-card .acts button.go { background: var(--flood); color: #fff; border-color: var(--flood); }
.debrief .coach-since div { background: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .debrief .coach-diff .add { color: #7ee787; } :root:not([data-theme="light"]) .debrief .coach-diff .del { color: #ffa198; } }
:root[data-theme="dark"] .debrief .coach-diff .add { color: #7ee787; } :root[data-theme="dark"] .debrief .coach-diff .del { color: #ffa198; }

/* Team talk (cs, 2026-11-25): two cards side by side across the page, each led by its club in its kit colour */
.tt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); align-items: stretch; }
@media (max-width: 719px) { .tt-grid { grid-template-columns: 1fr; } }
.tt-card { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); border-left: 6px solid var(--kit, var(--flood)); overflow: hidden; }
.tt-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); background: color-mix(in srgb, var(--kit, var(--flood)) 14%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--kit, var(--flood)) 30%, var(--line-soft)); }
.tt-club { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.tt-club > span { display: grid; min-width: 0; }
.tt-club b { font: 800 var(--t-lg)/1.15 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.tt-club small, .tt-pick small { font-size: var(--t-xs); color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tt-pick { display: grid; justify-items: end; text-align: right; flex: none; }
.tt-pick b { font: 800 1.6rem/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.tt-pick small:last-child { text-transform: none; letter-spacing: 0; max-width: 26ch; }
.tt-body { display: grid; gap: var(--s3); padding: var(--s4); align-content: start; }
.tt-who { margin: 0; font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; overflow-wrap: anywhere; }
.tt-part h3 { margin: 0 0 4px; font-size: var(--t-xs); font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.tt-part p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.55; }
.tt-part blockquote { margin: 0; padding-left: var(--s3); border-left: 3px solid color-mix(in srgb, var(--kit, var(--flood)) 60%, transparent); font-size: var(--t-sm); color: var(--ink); line-height: 1.55; }
.tt-none { margin: 0; font-size: var(--t-sm); color: var(--ink-3); }
.tt-card.muted { background: transparent; }
.tt-card .ptsb { margin-top: 0; }
.plans .planrow { display: grid; gap: 4px; padding: 12px var(--s4); border-bottom: 1px solid var(--line-soft); }
.plans .planrow:last-child { border-bottom: 0; }
.plans .planrow > div:nth-child(2) { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.res .end.res-w .score { color: var(--win); } .res .end.res-l .score { color: var(--loss); }
.plans .chip.w { color: var(--win); } .plans .chip.l { color: var(--loss); } .plans .chip.d { color: var(--draw); }

/* phones: 44 px touch targets (see ui.css) */
@media (max-width: 719px) {
  .select, .input { min-height: 44px; }
  .tbl a.club, a.crumb { min-height: 44px; }
  a.crumb { display: inline-flex; align-items: center; }
  .seekbar { padding-top: 8px; padding-bottom: 0; }
  .sk-btn { min-width: 44px; height: 44px; }
  .sk-speed, .sk-track, .sk-track input[type=range] { height: 44px; }
  .screen.has-seek .cams { bottom: 56px; }
  .formation.totw .shirt { min-height: 44px; align-content: center; }
  .segs .seg { min-height: 44px; }
  p > .link:only-child { display: inline-flex; align-items: center; min-height: 44px; }
}
/* P28: cards next to a player's name (match report) */
.tbl .cards { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; vertical-align: -3px; }
.tbl .cards i { width: 12px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.tbl .cards .yc { background: var(--card-yellow); } .tbl .cards .rc { background: var(--card-red); }
.tbl .cards .gl { width: 18px; height: 18px; border-radius: 50%; box-shadow: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Ccircle cx='12' cy='12' r='10.5'/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='10.5' fill='%23fff'/%3E%3Cg clip-path='url(%23c)' fill='%23111827' stroke='%23111827' stroke-width='1.3'%3E%3Cpath d='M12 7.4l4.37 3.18-1.67 5.14H9.3l-1.67-5.14z'/%3E%3Ccircle cx='12' cy='1.2' r='3.2'/%3E%3Ccircle cx='22.3' cy='8.6' r='3.2'/%3E%3Ccircle cx='18.4' cy='20.8' r='3.2'/%3E%3Ccircle cx='5.6' cy='20.8' r='3.2'/%3E%3Ccircle cx='1.7' cy='8.6' r='3.2'/%3E%3Cpath fill='none' d='M12 7.4V4.4M16.37 10.58l2.9-.95M14.7 15.72l1.8 2.5M9.3 15.72l-1.8 2.5M7.63 10.58l-2.9-.95'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='10.5' fill='none' stroke='%23111827' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.tbl .cards .gl + .yc, .tbl .cards .gl + .rc { margin-left: 5px; }

/* P32.1: Predict and Awards before a season */
.offseason { padding: var(--s5); display: grid; gap: var(--s3); max-width: 62ch; }
.offseason ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s2); }

/* P32.2 Matchday: intro line, next match, the newsroom, how it works */
.intro { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding: var(--s4) 0 0; }
.intro p { margin: 0; color: var(--ink-2); font-size: var(--t-md); }
.intro b { color: var(--ink); }
.intro-links { display: inline-flex; gap: 14px; }
/* P56.3.2: what the home screen is playing, one line above it */
.stage-cap { margin: var(--s3) 0 0; font-size: var(--t-sm); color: var(--ink-2); }
.stage-cap:empty { display: none; }
@media (max-width: 719px) { .stage-cap { margin: 0; padding: 0 var(--s4); } }
@media (max-width: 719px) { .intro { padding: var(--s3) var(--s4); } .intro p { font-size: var(--t-sm); } }
.quietnow { color: var(--ink-2); font-size: var(--t-sm); }
.newsroom { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.newsroom .desk { padding: var(--s5); display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.newsroom .desk + .desk { border-left: 1px solid var(--line-soft); }
.newsroom .desk-h { font: 700 var(--t-xs)/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.newsroom .lead h3 { margin: 0 0 6px; font: 700 var(--t-xl)/1.15 var(--display); }
.newsroom .lead h3 a { color: var(--ink); text-decoration: none; }
.newsroom .lead h3 a:hover { text-decoration: underline; }
.newsroom .lead p { margin: 0 0 6px; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; }
.newsroom .heads { margin: 0; padding: var(--s3) 0 0; list-style: none; display: grid; gap: var(--s2); border-top: 1px solid var(--line-soft); }
.newsroom .heads a { color: var(--ink); font-weight: 600; font-size: var(--t-sm); text-decoration: none; }
.newsroom .heads a:hover { text-decoration: underline; }
@media (max-width: 680px) { .newsroom .desk + .desk { border-left: 0; border-top: 1px solid var(--line-soft); } .newsroom .desk { padding: var(--s4); } }
.how { scroll-margin-top: calc(var(--bar-h, 64px) + 16px); }
.howband { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: center; padding: var(--s5); }
.howband img { width: 112px; height: 112px; object-fit: contain; }
.howband h2 { margin: 0 0 var(--s3); }
.howband ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.howband li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.howband .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); font: 700 var(--t-sm)/1 var(--display); }
.howband li b { display: block; margin-bottom: 4px; }
.howband li p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; }
.howband ol + .more { display: inline-block; margin-top: var(--s4); }
@media (max-width: 900px) { .howband ol { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .howband { grid-template-columns: 1fr; padding: var(--s4); } .howband img { width: 72px; height: 72px; } }

/* P32.4 club page: form, next match, top scorer */
.clubnow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s4); }
.clubnow .cn-cell { display: grid; gap: 6px; align-content: start; padding: var(--s4) var(--s5); min-width: 0; }
.clubnow .cn-cell + .cn-cell { border-left: 1px solid var(--line-soft); }
.clubnow .cn-l { font: 700 var(--t-xs)/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.clubnow b { font: 700 var(--t-lg)/1.15 var(--display); overflow-wrap: anywhere; }
@media (max-width: 719px) { .clubnow { grid-template-columns: 1fr; } .clubnow .cn-cell + .cn-cell { border-left: 0; border-top: 1px solid var(--line-soft); } .clubnow .cn-cell { padding: var(--s3) var(--s4); } }

/* P32.5 the newsroom: desks, the lead and today's briefing, story rows, the story page, how we report */
.news-links { display: flex; gap: var(--s4); margin: calc(-1 * var(--s3)) 0 var(--s4); }
.desks { margin: var(--s4) 0 var(--s5); }
.frontpage { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: var(--s4); }
@media (max-width: 860px) { .frontpage { grid-template-columns: 1fr; } }
.leadstory { padding: var(--s5); display: grid; gap: 10px; align-content: start; }
.leadstory.major { border-left: 4px solid var(--flood, var(--win)); }
.leadstory h2 { margin: 0; font: 700 var(--t-2xl)/1.1 var(--display); }
.leadstory h2 a, .briefing a, .srow .story-h a { color: var(--ink); text-decoration: none; }
.leadstory h2 a:hover, .briefing a:hover { text-decoration: underline; }
.dek { margin: 0; font-size: var(--t-md); line-height: 1.55; color: var(--ink-2); }
.briefing { padding: var(--s4) var(--s5); }
.briefing h2 { margin: 0 0 var(--s3); }
.briefing ol { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s3); }
.briefing li { line-height: 1.35; }
.briefing li a { font-weight: 700; }
.srows { display: grid; }
.srow { display: grid; gap: 6px; padding: var(--s4) var(--s5); min-width: 0; }
.srow + .srow { border-top: 1px solid var(--line-soft); }
.srow.major { box-shadow: inset 4px 0 0 var(--flood, var(--win)); }
.srow .story-what { font-size: var(--t-sm); }
.srow p { margin: 0; }
@media (max-width: 560px) { .srow { padding: var(--s3) var(--s4); } .leadstory { padding: var(--s4); } .leadstory h2 { font-size: var(--t-xl); } }
.storypage, .standards, .storyrel { max-width: 76ch; }
.storypage { display: grid; gap: var(--s4); padding-top: var(--s5); }
.standards { padding-top: var(--s5); }
.storypage h1 { margin: 0; font: 700 var(--t-3xl)/1.12 var(--text); letter-spacing: -.01em; }
/* P56.4.2: news reads like news: about 68 characters a line for what you read through */
.theme-tldr, .theme-facts, .theme-block p, .storypage .dek, .storypage .whybox p { max-width: 68ch; }
.storypage .dateline { margin: 0; }
.whybox { padding: var(--s4) var(--s5); }
.whybox p { margin: 6px 0 0; line-height: 1.5; }
.termbox dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px var(--s4); }
.termbox dt { font-weight: 700; }
.termbox dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .termbox dl { grid-template-columns: 1fr; } .termbox dd { margin-bottom: 6px; } .storypage h1 { font-size: var(--t-2xl); } }
.sources ul { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.sources .off { color: var(--win); }
.corrections { padding: var(--s3) var(--s4); border-left: 4px solid var(--warn-ink, var(--loss)); }
.corrections p { margin: 0; }
.storytools { display: flex; gap: var(--s3); flex-wrap: wrap; }
.standards h2 { margin: var(--s5) 0 var(--s2); }
.standards p { line-height: 1.6; }
.corrlist { padding-left: 1.2em; display: grid; gap: var(--s3); }

/* P34.1: the Matches section tabs */
.comptabs { display: flex; gap: var(--s1); margin: var(--s5) 0 calc(-1 * var(--s4)); overflow-x: auto; scrollbar-width: none; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); width: max-content; max-width: 100%; }
.comptabs a { flex: none; white-space: nowrap; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: var(--t-sm); padding: 6px 14px; min-height: 32px; display: inline-flex; align-items: center; border-radius: 999px; }
.comptabs a[aria-current="page"] { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.comptabs a:hover:not([aria-current="page"]) { color: var(--ink); }

/* P34.2: Matchday — the top six of the table, and the kick-off panel before a season */
.top10 .tbl tbody tr:nth-child(n+11) { display: none; }
.kickoff { margin-top: var(--s6); padding: var(--s5); display: grid; gap: var(--s3); }
.kickoff .ko-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.kickoff .ko-head h2 { margin: 0; }
.kickoff .ko-when { margin: 0; }
.kickoff .ko-first { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.kickoff .ko-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s1); }

/* P34.3: the match page — the picture full width, the match centre under it; after the whistle; key moments as a reel */
.stadium.wide .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.stadium.wide .board { max-width: none; }
.stadium.wide .board-in { display: grid; gap: var(--s3); }
.stadium.wide .board-head { flex-wrap: wrap; }
/* the match centre under the picture, at every width: Stats shows whole (the page scrolls, cs); Commentary and Events keep a height of their own */
.stadium.wide .board, .ft-stage .board { min-height: 0; }
.stadium.wide .board-in { position: static; }
.stadium.wide .centre, .ft-stage .centre { flex: none; height: auto; max-height: 460px; }
.stadium.wide .centre[data-tab="stats"], .ft-stage .centre[data-tab="stats"] { max-height: none; }
@media (max-width: 719px) { .stadium.wide .screen { border-radius: 0; margin: 0 calc(-1 * var(--gutter, 16px)); } }
.after { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.after .next { margin-left: auto; }
.moments { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: thin; padding: var(--s2); }
.moments li { border: 1px solid var(--line-soft); border-radius: var(--r-md); flex: 0 0 min(260px, 78vw); background: var(--bg); }
.moments li { display: flex; flex-direction: column; }
.moments .km { grid-template-columns: 1fr; gap: 4px; align-items: start; padding: 10px 12px; flex: 1; }
/* P42.4: Share and Save clip under a goal */
.moments li > .km-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.moments li > .sharewrap { padding: 0 12px 10px; }   /* P42.1: a goal's own Share, under its text */
.moments .km time { font-size: var(--t-md); }
.moments .km span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--t-sm); }

/* P35.1: highlights */
.hlgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s4); }
.hl { display: grid; gap: var(--s3); align-content: start; padding: var(--s4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); border-top: 4px solid var(--kit, var(--line)); }
.hl.top { grid-column: 1 / -1; border-top-color: var(--flood); }
.hl-head { display: flex; align-items: center; gap: var(--s3); }
.hl-head > div { flex: 1; min-width: 0; }
.hl-why { margin: 0; }
.hl-thought { margin: 0; padding: var(--s3) var(--s4); border-left: 3px solid var(--flood); background: var(--bg); border-radius: var(--r-sm); font-style: italic; }
.hl-thought cite { display: block; margin-top: 4px; font-style: normal; font-size: var(--t-xs); color: var(--ink-3); }
.hl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.hl-acts .vote { margin-left: auto; }

/* Story page: the article at reading width, the actions and related stories beside it on wide screens, under it on narrow ones */
.storygrid { display: grid; grid-template-columns: minmax(0, 76ch) minmax(280px, 1fr); gap: var(--s7, 48px); align-items: start; }
.storyside { position: sticky; top: calc(var(--bar-h, 60px) + var(--s4)); display: grid; gap: var(--s4); padding-top: var(--s5); }
.storyside .storyrel { max-width: none; }
.storyside .section-head { margin-top: 0; }
@media (max-width: 1100px) { .storygrid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } .storyside { position: static; padding-top: 0; } }

/* P41.3: fan sign-in and account */
.narrowpage { max-width: 640px; }
.signin, .mesec { padding: var(--s5); display: grid; gap: var(--s3); margin-bottom: var(--s4); }
.signin .signbtn { justify-content: center; min-height: 48px; font-weight: 700; }
.signin .or { text-align: center; margin: 0; }
.signin p, .mesec p, .mesec h2 { margin: 0; }
.emailsign, .mesec .nickform { display: flex; gap: var(--s2); flex-wrap: wrap; }
.emailsign .input, .mesec .nickform .input { flex: 1 1 220px; min-height: 44px; }
.mesec .row { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.mesec .linked { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.mesec .linked li { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.reflink { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.reflink code { overflow-wrap: anywhere; font-size: var(--t-sm); padding: 6px 10px; border-radius: var(--r-md); background: var(--surface-2); }

/* P42.4: the goal clip bar (shape, recording, share or save) */
.clipbar { position: fixed; z-index: 61; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 10px 14px; border-radius: 16px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); font-size: var(--t-sm); animation: rise .25s var(--ease); }
.clipbar .clipnote { display: block; max-width: 34ch; }
.clipbar .rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); animation: recblink 1s steps(2) infinite; }
@keyframes recblink { 50% { opacity: .25; } }
body.has-clipbar .toasts { bottom: 96px; }
@media (max-width: 719px) { .clipbar { bottom: calc(80px + env(safe-area-inset-bottom)); } body.has-clipbar .toasts { bottom: 170px; } }
@media (prefers-reduced-motion: reduce) { .clipbar .rec-dot { animation: none; } }

/* ---- P43.3 coach your team (/my-team) */
.ft-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--s5); align-items: start; padding-bottom: var(--s7); }
.ft-preview { position: sticky; top: calc(var(--bar-h) + var(--s4)); padding: var(--s5); display: grid; gap: var(--s4); justify-items: center; text-align: center; }
.ft-crest { width: 168px; aspect-ratio: 100 / 110; }
.ft-crest svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.ft-pvname { display: grid; gap: var(--s2); justify-items: center; }
.ft-pvname .h-card { overflow-wrap: anywhere; }
.ft-kits { display: flex; gap: var(--s3); justify-content: center; }
.ft-kits figure { margin: 0; display: grid; gap: 4px; justify-items: center; font-size: var(--t-xs); color: var(--ink-3); }
.ft-kits .ft-shirt { width: 54px; height: auto; display: block; }
.ft-kits figure { flex: none; }
.ft-form { display: grid; gap: var(--s4); min-width: 0; }
.ft-step { padding: var(--s5); display: grid; gap: var(--s4); min-width: 0; }
.ft-step .h-card { display: flex; align-items: center; gap: var(--s3); }
.ft-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--flood); color: var(--flood-ink); font: 800 var(--t-sm)/1 var(--text); flex: none; }
.ft-step .fld { display: grid; gap: 6px; min-width: 0; }
.ft-step .fld > span { font-weight: 700; font-size: var(--t-sm); }
.ft-step .fld > span small { font-weight: 400; }
.ft-step .input { width: 100%; min-height: 44px; font-size: 16px; }
.ft-short { max-width: 140px; text-transform: uppercase; letter-spacing: .06em; }
.ft-area { min-height: 84px; padding: 10px 14px; resize: vertical; line-height: 1.4; }
.ft-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: var(--s2); }
.ft-choice { display: grid; place-items: center; min-height: 64px; padding: 6px; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: var(--surface-2); cursor: pointer; }
.ft-choice svg { width: 40px; height: 44px; display: block; }
.ft-choice[aria-checked="true"] { border-color: var(--flood); box-shadow: 0 0 0 2px var(--flood); background: color-mix(in srgb, var(--flood) 12%, var(--surface-2)); }
.ft-choice:focus-visible, .ft-swatch:focus-visible { outline: 2px solid var(--flood); outline-offset: 2px; }
.ft-color { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.ft-color input[type="color"], .ft-kitin input[type="color"] { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: none; cursor: pointer; }
.ft-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.ft-check { display: flex; align-items: center; gap: var(--s2); min-height: 44px; font-size: var(--t-sm); }
.ft-check input { width: 20px; height: 20px; accent-color: var(--flood); }
.ft-kitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s2); }
.ft-kitin { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); min-height: 44px; }
.ft-under { display: flex; justify-content: space-between; gap: var(--s2); align-items: flex-start; }
.ft-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ft-count { flex: none; font-variant-numeric: tabular-nums; }
.chip.ft-ok { color: var(--win); border-color: color-mix(in srgb, var(--win) 40%, transparent); }
.chip.ft-no { color: var(--ink-3); border-style: dashed; }
.ft-save { position: static; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--bg); box-shadow: 0 -8px 20px -14px rgba(0,0,0,.4); border-top: 1px solid var(--line-soft); border-radius: var(--r-md); }
.ft-save p { margin: 0; }
.ft-save.stuck { position: sticky; }
.ft-save .ok { color: var(--win); }
@media (max-width: 860px) {
  .ft-layout { grid-template-columns: minmax(0, 1fr); }
  .ft-preview { position: static; grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; padding: var(--s4); }
  .ft-crest { width: 92px; grid-row: span 2; }
  .ft-pvname { justify-items: start; }
  .ft-kits { justify-content: flex-start; }
  .ft-kits .ft-shirt { width: 40px; }
  .ft-step { padding: var(--s4); }
}
@media (max-width: 719px) { .ft-save { bottom: calc(var(--tabbar-h, 64px) + env(safe-area-inset-bottom)); } }
/* ---- P43.4 play the house bots */
.ft-sub { font-size: var(--t-lg); margin: 0; }
.ft-ladder { display: grid; gap: var(--s2); }
.ft-opp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-soft); }
.ft-opp.beaten { border-color: color-mix(in srgb, var(--win) 45%, transparent); }
.ft-oppname { display: grid; gap: 2px; min-width: 0; }
.ft-oppname b { overflow-wrap: anywhere; }
.crest.ft-oppcrest { width: 34px; height: 38px; display: inline-block; }
.crest.ft-oppcrest svg { width: 100%; height: 100%; display: block; }
.ft-match { display: grid; gap: var(--s3); }
.ft-match:empty { display: none; }
.ft-screen { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--bg-deep); }
.ft-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ft-screen:fullscreen { aspect-ratio: auto; border-radius: 0; background: var(--black); }
.ft-screen:-webkit-full-screen { aspect-ratio: auto; border-radius: 0; background: var(--black); }
.ft-match .row, .ft-result .row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.ft-result { display: grid; gap: var(--s3); padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); }
.ft-result[hidden] { display: none; }
.ft-final { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s3); font-weight: 700; }
.ft-final span:last-child { text-align: right; }
.ft-final b { font: 700 var(--t-xl)/1 var(--display); font-size: 2rem; font-variant-numeric: tabular-nums; }
.ft-notes { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s2); }
.ft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ft-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--s2); align-items: center; font-size: var(--t-sm); }
.ft-res { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 800 var(--t-xs)/1 var(--text); background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--ink-2); }
.ft-res.w { background: var(--win); border-color: transparent; color: var(--on-win); }
.ft-res.l { color: var(--loss); }
.ft-recent:empty { display: none; }
.ft-recent { display: grid; gap: var(--s2); }
/* ---- P43.5 the Matchday invitation */
.ft-invite { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); margin-bottom: var(--s5); }
.ft-invite > div { display: grid; gap: var(--s2); justify-items: start; }
.ft-invite p { margin: 0; color: var(--ink-2); }
.ft-cardcrest { width: 64px; aspect-ratio: 100 / 110; display: block; }
.ft-cardcrest svg { width: 100%; height: 100%; display: block; }
/* cs, 2026-11-25: the "coming soon" card with the waitlist form; the form and text take the whole column (they ran past a phone's edge) */
.ft-soon > div { justify-items: stretch; min-width: 0; }
.ft-soon .chip { justify-self: start; }
@media (max-width: 559px) { .ft-soon { grid-template-columns: 1fr; } .ft-soon .ft-cardcrest { width: 48px; } }
/* ---- P43.6 playing as a guest */
.ft-guest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); margin-bottom: var(--s4); border-color: color-mix(in srgb, var(--flood) 45%, transparent); }
.ft-guest p { margin: 0; flex: 1 1 260px; }
/* ---- the formation picker on /my-team, as in the Dugout (dugout.css .shapes) */
.ft-shapebar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; min-width: 0; }
.ft-shapebar > .icon-btn { width: 32px; height: 32px; }
.ft-shapes { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 2px; padding: 2px 2px 10px; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, var(--black) 88%, transparent); mask-image: linear-gradient(90deg, var(--black) 88%, transparent); }
.ft-shape { flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 4px; padding: 8px 10px 6px; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: var(--surface-2); cursor: pointer; color: var(--ink-2); min-width: 92px; font: inherit; }
.ft-shape:hover { border-color: var(--line); }
.ft-shape[aria-pressed="true"] { border-color: var(--flood); color: var(--ink); box-shadow: 0 0 0 1px var(--flood) inset; }
.ft-shape:focus-visible { outline: 2px solid var(--flood); outline-offset: 2px; }
.ft-shape svg { width: 64px; height: 40px; }
.ft-shape b { font: 700 var(--t-md)/1 var(--display); }
.ft-shape small { font-size: 10.5px; white-space: nowrap; }
@media (max-width: 719px) { .ft-shapebar > .icon-btn { display: none; } .ft-shapebar { grid-template-columns: minmax(0, 1fr); } }
/* ---- P44 the fan page in the Dugout's shape: club band, tabs, ready line (squad.css), the editor, half-time changes, the match screen */
.ft-bandcrest { width: 80px; aspect-ratio: 100 / 110; }
.ft-bandcrest svg { width: 100%; height: 100%; display: block; }
.ft-bandname { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }
.ft-view { display: grid; gap: var(--s4); margin-bottom: var(--s6); }
.ft-changes { display: grid; gap: var(--s2); padding: var(--s3) var(--s4); }
.ft-change { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.ft-sel { min-height: 40px; padding: 0 10px; }
.ft-arrow { color: var(--ink-3); font-weight: 700; }
.ft-stage .stadium { padding: 0; background: none; }
.ft-stage .stadium > .page { padding: 0; max-width: none; }
.ft-stage .board { min-height: 0; }
.ft-stage .board-in { position: static; }
.ft-step:has(> .ft-recent:empty) { display: none; }
.ft-step:has(> .ft-players:empty) { display: none; }
.ft-players .panel { box-shadow: none; border: 0; padding: 0; }
/* a club's run (won 4 in a row …), and her players' numbers (club page, /my-team) */
.run { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font: 700 var(--t-xs)/1.5 var(--text); white-space: nowrap; }
.run.up { background: color-mix(in srgb, var(--win) 16%, transparent); color: var(--win); }
.run.down { background: color-mix(in srgb, var(--loss) 12%, transparent); color: var(--loss); }
.clubnow .cn-cell .run { margin: 6px 0 0; justify-self: start; width: max-content; }
a.award { color: inherit; text-decoration: none; }
a.award:hover b { text-decoration: underline; }
.formrun { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.runs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s3); margin: var(--s3) var(--s4) var(--s2); font-size: var(--t-sm); }
.runs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.tbl.tbl.players { table-layout: auto; }
.tbl.tbl.players th { width: auto; padding-left: 6px; padding-right: 6px; }
.tbl.tbl.players th.l { text-align: left; padding-left: var(--s3); }
.tbl.players td { padding-left: 6px; padding-right: 6px; }
.tbl.players td.pl { width: 100%; text-align: left; padding-left: var(--s3); }
.tbl.players td.pl b { display: block; font-weight: 600; }
.tbl.players td.pl small { font-size: var(--t-xs); }
.tbl.players td.hi { font-weight: 800; }
.ft-empty { padding: var(--s4); text-align: center; }
.ft-empty p { margin: 0; }
.ft-resultbox { display: grid; gap: var(--s2); justify-items: start; }
.ft-resultbox .ft-result { width: 100%; }
.ft-savebar { position: fixed; z-index: 40; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; font-size: var(--t-xs); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .4); }
.ft-savebar[hidden] { display: none; }
.ft-savebar[data-state="err"] { background: var(--live); color: var(--surface); border-color: transparent; }
@media (max-width: 719px) {
  .ft-bandcrest { width: 56px; }
  .ft-change { grid-template-columns: minmax(0, 1fr) auto; }
  .ft-change .ft-arrow { display: none; }
  .ft-savebar { bottom: 84px; }
}
/* ---- P45 challenges and the weekly fan table */
.ft-challenge .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ft-link { flex: 1 1 260px; min-width: 0; font-size: var(--t-sm); }
.ft-new { font-weight: 800; background: color-mix(in srgb, var(--flood) 22%, var(--surface)); }
.ft-chcard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4); align-items: center; padding: var(--s5); margin: var(--s5) 0 var(--s4); }
.ft-chcard h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 5vw, 3rem); }
.ft-chcard p { margin: 4px 0 0; }
.ft-chcrest { width: 96px; aspect-ratio: 100 / 110; display: block; }
.ft-chcrest svg, .ft-tcrest svg { width: 100%; height: 100%; display: block; }
.ft-chacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s6); }
.ft-chacts p { flex-basis: 100%; margin: 0; }
.ft-tablehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.ft-tname { display: inline-flex; align-items: center; gap: 8px; }
.ft-tcrest { width: 26px; height: 29px; flex: none; }   /* a set height: WebKit grew the row with aspect-ratio alone */
.ft-table tr.me td { background: color-mix(in srgb, var(--flood) 12%, transparent); }
@media (max-width: 719px) { .ft-chcard { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ft-chcrest { width: 72px; } }
/* ---- P47 the fan table on Matchday, weekly winners, rematch, the result picture */
.ft-mdtable { display: grid; gap: var(--s2); padding: var(--s4) var(--s5); margin-bottom: var(--s5); }
.ft-mdhead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.ft-mdhead h2 { margin: 0; }
.ft-winner { margin: 0; }
.ft-top3 { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.ft-top3 li { display: list-item; }
.ft-top3 li > * { vertical-align: middle; }
.ft-top3 .nm { margin: 0 8px; font-weight: 600; }
.ft-top3 .ft-tcrest { display: inline-block; }
.ft-mdtable > p.small { margin: 0; }
.ft-trophy { font-weight: 700; background: color-mix(in srgb, var(--card-yellow) 22%, var(--surface)); }
.ft-resacts, .ft-rowacts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ft-rowacts { margin-left: auto; }

/* Statistics (cs, 2026-11-17) */
.stats-page .scopebar { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; justify-content: space-between; }
.stats-page .scopeend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--s4); }
.tbl.stats td { padding: 10px 6px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.tbl.stats td.l, .tbl.stats th.l { text-align: left; }
.tbl.stats tr:last-child td { border-bottom: 0; }
.tbl.stats .nm { display: grid; min-width: 0; } .tbl.stats .nm b, .tbl.stats .nm small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl.stats .nm small { color: var(--ink-3); font-size: var(--t-xs); }
.tbl.stats .club { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; min-width: 0; }
.tbl.stats .clubs { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tbl.stats .pts { font-weight: 800; }
.tbl.stats.rec-tbl th:nth-child(2), .tbl.stats.run-tbl th:nth-child(3) { width: 80px; }
.tbl.stats.rec-tbl th:first-child, .tbl.stats.run-tbl th:first-child { width: 34%; padding-left: 12px; }
.tbl.stats.rec-tbl th:nth-child(4) { width: 130px; }
.tbl.stats.rec-tbl td:first-child, .tbl.stats.run-tbl td:first-child { padding-left: 12px; }

/* P49: fan ideas */
.ideaform { display: grid; gap: var(--s2); padding: var(--s4); margin-bottom: var(--s4); }
.ideaform label { display: grid; gap: 4px; font-size: var(--t-sm); }
.ideaform textarea { resize: vertical; min-height: 72px; }
.ideaform-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.stack > .idea + .idea { margin-top: var(--s3); }
.idea { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3) var(--s4); }
.ideavote { flex: none; flex-direction: column; gap: 0; min-width: 52px; min-height: 52px; padding: 4px 8px; line-height: 1.1; }
.idea-body { flex: 1; min-width: 0; }
.idea-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.idea-head b { overflow-wrap: anywhere; }
.idea-detail { margin: 4px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.idea-body > .small { margin: 6px 0 0; }
.idea-reply { margin: var(--s2) 0 0; padding: var(--s2) var(--s3); border-left: 3px solid var(--flood); background: var(--bg); border-radius: var(--r-sm); }
.idea-reply cite { display: block; margin-top: 2px; font-style: normal; font-size: var(--t-xs); color: var(--ink-3); }
.idea-planned, .idea-building { border-color: var(--flood); }
.idea-done { background: var(--flood); color: var(--flood-ink); border-color: var(--flood); }
.idea-no { color: var(--ink-3); }

/* P50.3 the Brief: the day's AI news as themes. Facts (TL;DR, bullets) read as body text; analysis sits in labelled blocks with a rule on the left. */
.brief { margin-bottom: var(--s6); }
.brief-head { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: end; justify-content: space-between; margin-bottom: var(--s4); }
.brief-title { margin: 0; font: 700 var(--t-3xl)/1 var(--display); letter-spacing: .01em; }
.brief-title a { color: var(--ink); text-decoration: none; }
.brief-title a:hover { text-decoration: underline; }
.brief-head p { margin: 6px 0 0; }
.brief-tools { display: flex; gap: var(--s4); align-items: center; }
.brief-grid { display: grid; grid-template-columns: minmax(0, 86ch) minmax(240px, 1fr); gap: var(--s5); align-items: start; }
.brief-side { position: sticky; top: 84px; }
.brief-index { padding: var(--s4) var(--s5); display: grid; gap: var(--s3); }
.brief-index ol { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s3); line-height: 1.3; }
.brief-index li a { color: var(--ink); font-weight: 700; text-decoration: none; margin-right: 8px; }
.brief-index li a:hover { text-decoration: underline; }
.brief-index p { margin: 0; line-height: 1.45; }
.verdict-key .chip.verdict { font-size: 11px; padding: 1px 8px; }
@media (max-width: 1000px) { .brief-grid { grid-template-columns: minmax(0, 1fr); } .brief-side { display: none; } }
.themes { display: grid; gap: var(--s4); min-width: 0; }
.themes .subform { margin: 0; }
.theme { padding: var(--s5); display: grid; gap: var(--s4); scroll-margin-top: 80px; }
.theme-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4); align-items: start; }
/* P56.1.8: themes with facts only, after the numbered ones */
.theme.also .theme-head { grid-template-columns: minmax(0, 1fr); }
.also-h { margin: var(--s4) 0 0; }
.theme-n { font: 700 var(--t-2xl)/1 var(--display); color: var(--ink-3); min-width: 1ch; text-align: center; font-variant-numeric: tabular-nums; }
.theme-h { margin: 0; font: 700 var(--t-xl)/1.2 var(--text); overflow-wrap: anywhere; }   /* P56.4.2: news headlines in the text face */
.theme-count { margin: 4px 0 0; }
.theme-tldr { margin: 0; font-size: var(--t-md); line-height: 1.55; color: var(--ink); }
.tldr-tag { font: 700 var(--t-xs)/1 var(--text); letter-spacing: .1em; padding: 3px 7px; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); vertical-align: 2px; }
.theme-facts { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; line-height: 1.45; color: var(--ink-2); }
.theme-facts a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.theme-facts a:hover { text-decoration-color: currentColor; }
.theme-facts .off { color: var(--win); font-weight: 700; }
.theme-block { padding: 2px 0 2px var(--s4); border-left: 3px solid var(--line); display: grid; gap: 6px; }
.theme-block p { margin: 0; line-height: 1.55; color: var(--ink-2); }
.theme-label { font: 700 var(--t-xs)/1.2 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.theme-label .small { letter-spacing: 0; text-transform: none; font-weight: 400; }
.theme-take { border-left-color: var(--flood); }
.theme-take p { color: var(--ink); font-size: var(--t-md); }
.theme-take .theme-label { color: var(--link); }
.theme-ev { border-left-color: var(--turf-a); }
.theme-ev p { font-size: var(--t-sm); }
.theme-an p { font-size: var(--t-sm); }
.theme-verdict { margin: 0; display: flex; gap: var(--s3); align-items: baseline; padding-top: var(--s4); border-top: 1px solid var(--line-soft); line-height: 1.45; color: var(--ink-2); }
.theme-verdict b { color: var(--ink); }
.chip.verdict { flex: none; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-color: transparent; }
.v-act .chip.verdict { background: var(--win); color: var(--bg); }
.v-watch .chip.verdict { background: var(--warn-ink); color: var(--bg); }
.v-skip .chip.verdict { background: transparent; color: var(--ink-3); border: 1px dashed var(--line); }
.brief-note { margin: var(--s4) 0 0; max-width: 86ch; }
.briefpage { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-top: var(--s5); }
.briefpage > p > .btn { white-space: normal; height: auto; min-height: 40px; text-align: left; }   /* the weekly edition's long title wraps on phones */
.briefpage .section { margin: var(--s4) 0 0; max-width: 86ch; }
.newsroom .lead .theme-verdict { border-top: 0; padding-top: 2px; font-size: var(--t-sm); }
.newsroom .desk-h .small { letter-spacing: 0; text-transform: none; font-weight: 400; }
@media (max-width: 560px) {
  .theme { padding: var(--s4); gap: var(--s3); }
  .theme-head { gap: var(--s3); }
  .brief-title { font-size: var(--t-2xl); }
  .theme-verdict { flex-direction: column; gap: 6px; align-items: flex-start; }
}

/* the match centre: the button under the latest 80 lines that shows the rest, back to kick-off */
.feed .feed-more { display: block; margin: 10px auto 4px; }

/* ------------------------------------------------------------------ P57.2 shared components (site) */
.stadium { background: var(--bg); border-bottom: 0; }
/* tables: no box around them; small grey capitals for labels; hairlines between rows */
.panel:has(> .tbl), .panel:has(> table) { background: transparent; border-radius: 0; }
.tbl th { font: 600 12px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-soft); }
.tbl th abbr { text-transform: inherit; }
.tbl td { border-bottom-color: var(--line-soft); }
.tbl tbody tr:hover { background: transparent; }
/* reply-time bars: each row its own colour block */
.tbl tbody tr:nth-child(5n+1) .meter > span { background: var(--pop-orange); }
.tbl tbody tr:nth-child(5n+2) .meter > span { background: var(--pop-pink); }
.tbl tbody tr:nth-child(5n+3) .meter > span { background: var(--pop-blue); }
.tbl tbody tr:nth-child(5n+4) .meter > span { background: var(--pop-green); }
.tbl tbody tr:nth-child(5n+5) .meter > span { background: var(--pop-violet); }
/* tags: ACT green, WATCH yellow, Major a dark pill, Notable an outline */
.chip.verdict { font-weight: 600; letter-spacing: .06em; }
.v-act .chip.verdict { background: var(--act-bg); color: var(--act-ink); }
.v-watch .chip.verdict { background: var(--watch-bg); color: var(--watch-ink); }
.chip.imp3 { background: var(--ink); color: var(--bg); border-color: transparent; }
.chip.imp2 { background: transparent; color: var(--ink); border-color: var(--line); }


/* ------------------------------------------------------------------ P57.3 Matchday */
.band .page > :first-child, .band .page > :first-child > .section:first-child { margin-top: 0; }
.band .section-head { align-items: flex-end; margin-bottom: var(--s5); }
.band .section-head .eyebrow { margin-bottom: 6px; }
.hero-intro { display: grid; justify-items: center; gap: var(--s4); padding: 64px 0 40px; text-align: center; }
.hero-intro .h-display { font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1.05; max-width: 15ch; }
.hero-intro .lede { max-width: 42ch; font-size: 1.2rem; color: var(--ink-3); }
.hero-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s3) var(--s5); margin-top: var(--s2); }
/* the match screen in one soft-black block: the replay line, the picture and the match centre, light text on it in both themes */
.stadium.framed { padding-bottom: var(--s7); }
.stadium.framed .page > .stage-frame:first-child { margin-top: var(--s5); }   /* the match page: no intro above the frame */
.stage-frame { background: var(--foot-bg); border-radius: 28px; padding: 18px 24px 24px; color: var(--white); color-scheme: dark;
  --ink: var(--white); --ink-2: var(--scr-ink-2); --ink-3: var(--foot-ink); --line: var(--foot-line); --line-soft: var(--foot-line); --surface: var(--foot-surface); --surface-2: var(--foot-surface); --card: var(--foot-surface); --link: var(--foot-link); }
.stage-frame .stage-cap { margin: 0 0 14px; color: var(--foot-ink); }
.stage-frame .hero { padding: 0; }
.stage-frame .centre { background: transparent; border: 0; }
@media (max-width: 719px) { .stage-frame { border-radius: 0; padding: 12px 0 16px; } .stage-frame .stage-cap { padding: 0 var(--s4); } .hero-intro { padding: 40px var(--s4) 28px; } }
/* This week's stars: three colour blocks side by side, one column on phones */
.stars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 959px) { .stars { grid-template-columns: minmax(0, 1fr); } }
.star { display: flex; flex-direction: column; gap: 12px; }
.star p { margin: 0; }
.star .h-card { color: inherit; }
.star-who { display: flex; align-items: center; gap: 14px; }
.star-who small { display: block; margin-top: 4px; }
.star-quote { color: var(--hi); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }   /* 20 px bold: large text, 3:1 is enough on blue */
.star-go { margin-top: auto !important; padding-top: 8px; font-weight: 600; }
/* her club's crest beside her name (cs, 2026-11-21: was a circle with her initials) */
.star-who .crest.lg, .star-who .crest.logo.lg { width: 72px; height: 72px; }
.coachrow:not(:empty) { margin-top: var(--s5); }
/* Pick your club: every crest in one wrapping row */
.clubpick { display: grid; justify-items: center; gap: var(--s4); text-align: center; }
.clubpick .lede { color: var(--ink-3); }
/* cs, 2026-11-25: a bigger title, and no double gap when two plain bands meet (the stars band above it had 72 + 72 px) */
.clubpick .h-section { font-size: clamp(36px, 5vw, 56px); }
.band:not(.alt):not([hidden]) + .band.clubs-band { padding-top: 0; }
.coachrow > :last-child { margin-bottom: 0; }
/* cs, 2026-11-25: four rows of four, bigger crests (two a row on phones) */
.clubrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 16px; width: 100%; max-width: 900px; margin: var(--s3) 0; }
.pickclub { display: grid; justify-items: center; align-content: start; gap: 4px; text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.25; }
/* bigger crests, still two rows of eight on a wide screen (cs, 2026-11-21: they were 64 px) */
.pickclub .crest.logo.lg { width: min(160px, 100%); height: auto; aspect-ratio: 1; margin-bottom: 8px; }
@media (max-width: 599px) { .clubrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } .pickclub { font-size: 15px; } .pickclub .crest.logo.lg { width: min(120px, 100%); } }
.pickclub small { color: var(--ink-3); font-size: 14px; font-weight: 400; }
.pickclub:hover b { color: var(--link); }
.pickclub.off .crest { opacity: .7; }

/* ------------------------------------------------------------------ P57.4 News and story pages */
.newshead { display: grid; gap: var(--s4); padding: 56px 0 8px; max-width: 760px; }
.newshead .lede { color: var(--ink-3); font-size: 1.15rem; }
.desks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding-bottom: var(--s5); border-bottom: 1px solid var(--line-soft); }
.desk-link { color: var(--ink-3); text-decoration: none; font-size: 15px; }
.desk-link:hover { color: var(--ink); }
/* the Brief: one column of about 64 characters, themes on hairlines, no cards */
.brief .brief-grid { grid-template-columns: minmax(0, 64ch) minmax(240px, 300px); gap: 56px; }
@media (max-width: 899px) { .brief .brief-grid { grid-template-columns: minmax(0, 1fr); } }
.brief.onnews .brief-head { display: none; }
.brief .themes { gap: 0; }
.brief .panel.theme { background: transparent; border-radius: 0; padding: 32px 0; border-top: 1px solid var(--line-soft); }
.brief .themes > :first-child { border-top: 0; }
.theme-eb { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.brief .theme-head { grid-template-columns: minmax(0, 1fr); }
.brief .theme-h { font: 600 1.75rem/1.15 var(--text); letter-spacing: -.02em; }
.brief .theme-count { display: none; }
.brief .theme-tldr { font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.brief .theme-facts a { color: var(--ink); text-decoration: none; }
.brief .theme-facts a:hover { text-decoration: underline; }
.src-link { color: var(--link) !important; font-size: var(--t-xs); font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.src-link:hover { text-decoration: underline !important; }
.brief .theme-block { border-left: 0; padding: 16px 20px; border-radius: 16px; background: var(--surface-2); }
.brief .theme-take p { color: var(--ink); }
.brief .theme-verdict { border-top: 0; padding-top: 0; }
.brief .pitch { margin: 8px 0 24px; }
.pop .tbl th { color: color-mix(in srgb, var(--white) 88%, transparent); border-bottom-color: color-mix(in srgb, var(--white) 40%, transparent); }
.pop .tbl td { border-bottom-color: color-mix(in srgb, var(--white) 30%, transparent); color: var(--white); }
.pop .tbl td .nm small { color: color-mix(in srgb, var(--white) 88%, transparent) !important; }
.pop .tbl a { color: var(--white); }
.brief .also { padding: 24px 0; border-top: 1px solid var(--line-soft); }
.brief .also ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 10px; }
.brief .also li a:not(.src-link) { color: var(--ink); text-decoration: none; }
.brief-side { display: grid; gap: var(--s5); }
.brief-side .brief-index { background: transparent; padding: 24px 0 0; border-top: 1px solid var(--line-soft); border-radius: 0; }
.brief-side .subform.panel { background: var(--surface-2); padding: 24px; margin: 0; }
/* All stories: a grey band across the page, the list in one card */
.news-all { margin-top: 72px; padding: 56px 0 64px; background: var(--bg-deep); box-shadow: 0 0 0 100vmax var(--bg-deep); clip-path: inset(0 -100vmax); }
.news-all .panel.srows { background: var(--surface); padding: 8px 28px; }
/* story page: same head, 64 characters a line, Why it matters on a grey panel */
.storypage { max-width: 64ch; }
.storypage .whybox { background: var(--surface-2); border-radius: 16px; padding: 18px 22px; }

/* ------------------------------------------------------------------ P57.5 Statistics */
.statiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: var(--s6) 0 var(--s7); }
@media (max-width: 899px) { .statiles { grid-template-columns: minmax(0, 1fr); } }
.statile { display: grid; gap: 10px; align-content: start; }
.statile p { margin: 0; }
.statbig { font: 700 clamp(2.4rem, 5vw, 3.6rem)/1 var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.statile.blue .statbig { font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: -.02em; }
.tbl.models.bars { table-layout: auto; }
.tbl.models.bars th, .tbl.models.bars th:first-child { width: auto; }
.tbl.models.bars td.bar-cell { width: 26%; min-width: 140px; padding-right: var(--s4); }
.tbl.models.bars td.cl { min-width: 180px; }
/* the match screen's ".models" line is a grid; a table that is also .models stays a table */
table.tbl { display: table; } table.tbl > thead { display: table-header-group; } table.tbl > tbody { display: table-row-group; }
/* P57.6: in a colour block all text is full white (88% white failed 4.5:1 on pink, blue and green) */
.pop .muted, .pop .eyebrow, .pop small, .pop .tbl th, .pop .tbl td .nm small { color: var(--white) !important; }
.pop.orange .muted, .pop.orange .eyebrow, .pop.orange small { color: var(--pop-orange-ink) !important; }

/* ------------------------------------------------------------------ P59 How the league works (/about) */
.guide-band[id], .guide-band [id] { scroll-margin-top: calc(var(--bar-h) + 12px); }
.guide-band:first-of-type { padding-top: 48px; }
.guide-title { max-width: 20ch; margin: 8px 0 16px; }
.guide-lede, .guide-head .lede { max-width: 62ch; }
.guide-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin: 40px 0 32px; }
.guide-stats .gs { display: grid; gap: 4px; border-top: 2px solid var(--ink); padding-top: 12px; }
.guide-stats b { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.guide-stats span { color: var(--ink-3); font-size: var(--t-sm); }
.guide-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-jump .chip { text-decoration: none; }
.guide-head { margin-bottom: 28px; }
.guide-head .h-section { margin: 6px 0 8px; }
.guide-pops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-pops p { margin: 8px 0 0; }
.guide-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.guide-terms .gt { display: grid; gap: 4px; padding: 20px 24px; }
.guide-terms .gt b { font-size: var(--t-lg); }
.guide-terms .gt-flow { font-size: var(--t-sm); color: var(--ink-2); margin-top: 6px; }
.guide-example { margin-top: 16px; padding: 20px 24px; }
.guide-example p { margin: 6px 0 0; }
.guide-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.guide-cols + .guide-cols { margin-top: 40px; }
.guide-list { margin: 0 0 16px; padding-left: 1.2em; }
.guide-list li { margin: .45em 0; }
.guide-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.guide-fact { padding: 22px 24px; display: grid; gap: 6px; align-content: start; }
.guide-fact .gf-big { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.guide-fact p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }
.guide-odds { width: 100%; margin: 8px 0 4px; }
.guide-odds td:first-child { text-align: left; padding-left: 0; }
.guide-odds td:last-child { text-align: right; }
.guide-cards { display: grid; gap: 24px; }
.guide-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; }
.guide-card .gc-shape { width: 42px; height: 58px; border-radius: 5px; transform: rotate(-8deg); margin-top: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.guide-card.yellow .gc-shape { background: var(--card-yellow); }
.guide-card.red .gc-shape { background: var(--card-red); }
.guide-card .h-card { margin: 0 0 4px; }
.guide-steps { margin: 8px 0; padding-left: 1.2em; }
.guide-steps li { margin: .45em 0; }
.guide-rule p { margin: 8px 0 0; }
.guide-plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-plan li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 20px 24px; }
.guide-plan .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; }
.guide-plan p { margin: 4px 0 0; color: var(--ink-2); }
.guide-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.guide-modes .panel { padding: 20px 24px; }
.guide-modes p { margin: 4px 0 0; color: var(--ink-2); }
.guide-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.guide-timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 0 0 24px; position: relative; }
.guide-timeline li::before { content: ""; position: absolute; left: 160px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--flood); }
.guide-timeline li::after { content: ""; position: absolute; left: 165px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.guide-timeline li:last-child::after { content: none; }
.guide-timeline li > div { padding-left: 24px; }
.guide-timeline .tl-when { font-weight: 600; color: var(--ink-3); text-align: right; }
.guide-timeline p { margin: 4px 0 0; color: var(--ink-2); max-width: 62ch; }
.guide-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.guide-links a { display: grid; gap: 4px; padding: 20px 24px; color: var(--ink); text-decoration: none; }
.guide-links a:hover b { text-decoration: underline; }
.guide-faq { display: grid; gap: 12px; max-width: 820px; }
.guide-faq details { padding: 16px 24px; }
.guide-faq summary { font-weight: 600; cursor: pointer; }
.guide-faq details p { margin: 10px 0 0; color: var(--ink-2); }
@media (max-width: 899px) {
  .guide-pops, .guide-terms, .guide-modes { grid-template-columns: minmax(0, 1fr); }
  .guide-cols, .guide-plan { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .guide-plan { gap: 16px; }
}
@media (max-width: 599px) {
  .guide-timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-left: 28px; }
  .guide-timeline li::before { left: 0; }
  .guide-timeline li::after { left: 5px; }
  .guide-timeline li > div { padding-left: 0; }
  .guide-timeline .tl-when { text-align: left; }
  .guide-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* P64 team stats: ESPN-style split bars (each club in its kit colour; the second hatched), last five matches, a club's tiles */
.tstats { padding: var(--s4) var(--s5); display: grid; gap: var(--s4); }
.ts-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.ts-team { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); min-width: 0; }
.ts-team b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-row { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px var(--s3); }
.ts-row .va, .ts-row .vb { font-size: var(--t-lg, 1.25rem); font-variant-numeric: tabular-nums; }
.ts-row .vb { text-align: right; }
.ts-row .lab { text-align: center; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.ts-bar { grid-column: 1 / -1; display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line-soft); }
.ts-bar > i { display: block; height: 100%; background: var(--a); }
.ts-bar > i.b { flex: 1; background: repeating-linear-gradient(-45deg, var(--b) 0 3px, transparent 3px 5px); }
.ts-bar.two { background: none; gap: var(--s3); border-radius: 0; }
.ts-bar.two > span { flex: 1; display: flex; height: 8px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.ts-bar.two > span:last-child { justify-content: flex-end; }
.ts-bar.two i { display: block; height: 8px; background: var(--a); }
.ts-bar.two i.b { background: repeating-linear-gradient(-45deg, var(--b) 0 3px, transparent 3px 5px); }
.ts-note { margin: 0; }
.tape .tape-sub th { text-align: left; padding-top: var(--s4); font-size: var(--t-xs, .75rem); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.lastfive { padding: var(--s4); display: grid; gap: var(--s3); }
.lastfive .seg { width: 100%; } .lastfive .seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.lf td { vertical-align: middle; }
.lf .lf-opp { display: inline-flex; align-items: center; gap: 6px; }
.lf .lf-opp small { min-width: 2.9em; }   /* Home / Away (was vs / @) */
.lf .lf-comp { display: block; margin-top: 2px; font-size: var(--t-xs, .75rem); color: var(--ink-2); }
.lf .lf-date a { color: inherit; text-decoration: none; }
.lf .rW { color: var(--win); } .lf .rL { color: var(--loss); } .lf .rD { color: var(--ink-2); }
.ts-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); padding: var(--s4); }
@media (max-width: 560px) { .ts-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ts-tile { display: grid; gap: 2px; } .ts-tile b { font-size: var(--t-lg, 1.25rem); font-variant-numeric: tabular-nums; } .ts-tile small { color: var(--ink-2); }
.panel > .ts-note { padding: 0 var(--s4) var(--s4); }
.lf td.l, .lf th.l { text-align: left; }
.lf td { white-space: nowrap; } .lf td .lf-comp { white-space: normal; } .lf .lf-opp { white-space: normal; }
@media (max-width: 420px) { .lf .lf-opp .crest { display: none; } }
.lf { table-layout: auto; width: 100%; }
.lf th:first-child, .lf td:first-child { width: auto; min-width: 0; padding-right: var(--s3); text-align: left; color: var(--ink-2); }
.lastfive .seg button { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* P65.3: Matchday between seasons, the champions banner */
.champbanner { display: grid; gap: var(--s3); padding: var(--s5); margin-bottom: var(--s4); }
.champbanner .cb-team { display: inline-flex; align-items: center; gap: var(--s2); }
.champbanner .cb-team b { font-weight: 700; }
.champbanner .cb-head { display: flex; align-items: center; gap: var(--s3); }
.champbanner .cb-head .trophy { width: 44px; height: 44px; flex: none; }
.champbanner .cb-head .trophy svg { width: 100%; height: 100%; }
.champbanner .cb-head .crest.logo.lg { width: 72px; height: 72px; flex: none; }
@media (max-width: 559px) { .champbanner .cb-head .crest.logo.lg { width: 56px; height: 56px; } .champbanner .cb-head .trophy { width: 32px; height: 32px; } }
.champbanner .cb-head .eyebrow { margin: 0; }
.champbanner .cb-head h2 { margin: 0; }
.champbanner .cb-rows { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.champbanner .cb-row { display: inline-flex; align-items: center; gap: var(--s2); color: inherit; text-decoration: none; }
.champbanner .cb-l { font-size: var(--t-sm); color: var(--ink-3); }
.champbanner .cb-links { display: flex; gap: var(--s4); }

/* P65.4: History, past champions by year and the all-time table */
.histgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s4); }
.histcard { padding: var(--s5); display: grid; gap: var(--s3); }
.histcard .hc-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.histcard .hc-head h3 { margin: 0; }
.histcard .hc-head .trophy svg { width: 28px; height: 28px; }
.histcard .hc-links { display: flex; gap: var(--s3); margin-left: auto; }
.histcard .hc-list { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); margin: 0; align-items: center; }
.histcard dt { font-size: var(--t-sm); color: var(--ink-3); }
.histcard dd { margin: 0; min-width: 0; }
.histcard .cb-team, .tbl.hist .cb-team { display: inline-flex; align-items: center; gap: var(--s2); color: inherit; text-decoration: none; }
.histcard .hist-cup { color: inherit; text-decoration: none; }
.tbl.hist tfoot td { border-top: 1px solid var(--line); font-weight: 600; }

/* ---------------------------------------------------------------- P68.2: two front doors. The Brief (/ai…) has its own colour, wordmark and footer; each side's bar has one link to the other. */
:root[data-side="brief"] { --flood: #c18bff; --flood-ink: #000000; --link: #c18bff; --side: #c18bff; }
@media (prefers-color-scheme: light) { :root[data-side="brief"]:not([data-theme="dark"]) { --flood: #7a2bd6; --flood-ink: #ffffff; --link: #6d28c9; --side: #7a2bd6; } }
:root[data-side="brief"][data-theme="light"] { --flood: #7a2bd6; --flood-ink: #ffffff; --link: #6d28c9; --side: #7a2bd6; }
:root[data-side="brief"] .topbar { box-shadow: inset 0 -3px 0 var(--side); }
.brief-mark { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #ffffff; font: 800 1.35rem/1 var(--display); text-shadow: 0 1px 2px rgb(0 0 0 / .25); }
.brief-mark.big { width: 72px; height: 72px; border-radius: 20px; font-size: 2.4rem; }
.brand-brief .brand-name > span { display: block; line-height: 1.05; }
.brand-brief .brand-sub { font: 500 var(--t-xs, .75rem)/1.2 var(--text); color: var(--ink-3); letter-spacing: 0; }
@media (max-width: 719px) { :root[data-side="league"] .brand { font-size: 1rem; } }
.orggrid { list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s3); }
.orgcard { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: var(--s4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.orgcard:hover { border-color: var(--flood); }
@media (max-width: 519px) { .orggrid { grid-template-columns: 1fr 1fr; } }
/* P69.1: a company tag is a link to its page (on the Brief), still drawn as a tag; the line to its models on the pitch */
a.chip { text-decoration: none; }
a.chip:hover { color: var(--ink); border-color: var(--flood); }
.pitchline { margin: var(--s3) 0 var(--s5); }
/* polish: the players a key moment names, linked under it (the moment is a play button) */
.moments li > .km-who { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; padding: 0 12px 10px; font-size: var(--t-xs); }

/* P70.2: the crawler text in <main>: hidden when the script draws the page (site.js removes it), shown without JavaScript (a <noscript> style in the head) */
.ssr { display: none; max-width: 760px; margin: 0 auto; padding: var(--s5, 24px) 16px; line-height: 1.55; overflow-wrap: anywhere; }
.ssr table { border-collapse: collapse; margin: 12px 0; max-width: 100%; display: block; overflow-x: auto; }
.ssr caption { text-align: left; font-weight: 700; padding: 4px 0; }
.ssr th, .ssr td { padding: 4px 8px; text-align: left; border-bottom: 1px solid var(--line-soft, #ddd); }
.ssr nav p { font-size: 0.9em; }

/* cs (noted 2026-11-24, fixed 2026-11-25): beside four buttons (alerts on) the name was cut ("Agentic … / Soccer L…", "AI news in 5 min…")
   from 344 to 375 px. ui.css's .84rem for these widths never applied: a later .brand font and the league side's 1rem won. Here, last:
   a smaller name, a smaller crest and tighter gaps. The buttons keep their 44 px touch size. */
@media (max-width: 389px) {
  :root .topbar .brand { font-size: .84rem; gap: 6px; }
  .topbar .brand .brand-logo { width: 32px; height: 32px; }
  .topbar .page { gap: 8px; }
  .topbar .end { gap: 2px; }
}
@media (max-width: 359px) { :root .topbar .brand { font-size: .78rem; } :root[data-side="brief"] .topbar .brand-name > span:last-child { font-size: .85em; } }   /* the Brief's "AI news in 5 minutes" at 344 */

/* phone pass (cs, 2026-11-25): a table wider than a phone (Every player on a match page, the all-time table on History, Models) ran past
   the right edge, and html's overflow-x: clip hid those columns for good. Its panel now scrolls sideways instead. */
@media (max-width: 719px) {
  .panel:has(> table), .panel:has(> .tbl), section:has(> table.tbl) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
/* the match report's crest and name are a link to the club (cs, 2026-11-25): same look, underline on hover */
.panel.final a.side { color: inherit; text-decoration: none; }
.panel.final a.side:hover b, .panel.final a.side:focus-visible b { text-decoration: underline; text-underline-offset: 4px; }

/* phone pass (cs, 2026-11-25): stacked on a phone, the report card cut the names ("Bay Gobli…"); there is room for two lines */
@media (max-width: 719px) { .final .side b { white-space: normal; overflow: visible; text-overflow: clip; font-size: var(--t-xl); line-height: 1.1; } }

/* phone pass, part 2 (cs, 2026-11-25): names cut with … on a phone wrap to a second line instead:
   the live card's models line, club names in tables ("Free Mus…", "Riviera Ro…") and Last five's team switch */
@media (max-width: 719px) {
  .board .models { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
  .tbl .club .nm b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }
  .lastfive .seg button { white-space: normal; text-overflow: clip; line-height: 1.15; padding-block: 6px; }
}
/* phone pass, part 2: bigger tap targets on touch screens (they were 22-30 px: topic chips, desk links, kit swatches, the AI/Soccer pill) */
@media (pointer: coarse) {
  a.chip, button.chip { min-height: 32px; display: inline-flex; align-items: center; }
  a.desk-link { min-height: 32px; display: inline-flex; align-items: center; }
  .ft-swatch { width: 36px; height: 36px; }
}

/* competition labels in colour (cs, 2026-11-25): the league pink, the Super Cup blue, the Agentic Cup green, as the Matchday star cards */
.chip.comp { color: #fff; border-color: transparent; font-weight: 700; }
.chip.comp-league { background: var(--pop-pink); }
.chip.comp-super { background: var(--pop-blue); }
.chip.comp-cup { background: var(--pop-green); }
/* the same colours on the Matches tabs (the Table pink, the Cup green, a Super Cup blue), the bracket's round names and a key on Matches */
.comptabs a[data-k="table"][aria-current="page"] { background: var(--pop-pink); color: #fff; }
.comptabs a[data-k="cup"][aria-current="page"] { background: var(--comp, var(--pop-green)); color: #fff; }
.cup-page { --comp: var(--pop-green); }
.cup-page.is-super { --comp: var(--pop-blue); }
.cup-page .bcol .rh { color: var(--comp); }
.cup-page .trophy.won, .cup-page .champband .k { color: var(--comp); }
.cup-page .rounds .seg button[aria-pressed="true"] { background: var(--comp); color: #fff; }
.compkey { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: calc(-1 * var(--s3)) 0 var(--s4); }
.compkey span { display: inline-flex; align-items: center; gap: 6px; }
.compkey .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.compkey .dot.comp-league { background: var(--pop-pink); }
.compkey .dot.comp-super { background: var(--pop-blue); }
.compkey .dot.comp-cup { background: var(--pop-green); }


/* Matchday: no empty band when the email sign-up is off (cs's walk-through, 2026-11-25) */
.band:has(> .page > #follow:empty) { display: none; }
