/* Self-hosted fonts (SIL Open Font License): Barlow Condensed for display,
   Inter (variable) for text. Latin subset only. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2"); }
/* Presentation site for the club pages. Independent of the schema pages'
   style.css: the schema is the reference, this is the shop window. */
:root {
  --bg: #f4f2ee; --surface: #ffffff; --ink: #16121a; --muted: #6b6470; --line: #e4e0da;
  --league: #3a2a6b; --league-2: #ffc93c; --promoted: #00a86b;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110d14; --surface: #1c1720; --ink: #f3eff5; --muted: #a39aa8; --line: #2e2733;
    --league: #c084fc;
  }
}
:root[data-theme="dark"] {
  --bg: #110d14; --surface: #1c1720; --ink: #f3eff5; --muted: #a39aa8; --line: #2e2733;
  --league: #c084fc;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* components set display; hidden must still win */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* top bar */
.topbar { background: #1b1424; color: #fff; }
.topbar .wrap { display: flex; align-items: center; gap: 1.25rem; height: 52px; font-size: .9rem; }
.topbar a { text-decoration: none; opacity: .85; white-space: nowrap; }
.topbar a:hover { opacity: 1; }
.topbar .brand { font: 700 1.25rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; opacity: 1; margin-right: auto; }
.topbar .brand span { color: var(--league-2); }

/* hero */
.hero { background: var(--club); color: var(--on-club); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 140%;
  background: var(--club-2); opacity: .14; transform: rotate(-12deg); pointer-events: none; }
.hero .wrap { display: flex; align-items: center; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; position: relative; z-index: 1; }
.hero .crest { flex: none; width: 148px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.25)); }
.eyebrow { font: 600 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin: 0 0 .7rem;
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.hero h1 { font: 700 clamp(3rem, 9vw, 6rem)/.9 var(--display); text-transform: uppercase; margin: 0; letter-spacing: .01em; }
.hero .sub { margin: .8rem 0 0; font-size: 1.05rem; opacity: .9; }
.swatches { display: flex; gap: .4rem; margin-top: 1.1rem; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--on-club) 40%, transparent); }
.badge { display: inline-block; font: 700 .7rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  padding: .35em .6em; border-radius: 999px; background: var(--promoted); color: #fff; opacity: 1; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: -2rem 0 0; position: relative; z-index: 2; }
.stat { background: var(--surface); padding: 1.2rem 1.4rem; }
.stat .k { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat .v { font: 700 2.2rem/1.1 var(--display); margin-top: .25rem; }
.stat .n { font-size: .88rem; color: var(--muted); }

/* sections */
section.block { margin: 3rem 0; }
.block h2 { font: 700 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 1rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.ground-name { font: 700 2.4rem/1 var(--display); text-transform: uppercase; margin: 0; }
.ground-city { color: var(--muted); margin: .3rem 0 1.4rem; }
.note { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }
.bars { display: grid; gap: .7rem; }
.bar { display: grid; grid-template-columns: 9.5rem 1fr 5.5rem; align-items: center; gap: .8rem; font-size: .9rem; }
.bar .track { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; background: var(--muted); }
.bar.this .fill { background: var(--club-accent); }
.bar.this { font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar.this .fill { background: var(--club-accent-dark); } }
:root[data-theme="dark"] .bar.this .fill { background: var(--club-accent-dark); }
.bar .num { text-align: right; font-variant-numeric: tabular-nums; }

/* club grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tile { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.tile .top { background: var(--club); color: var(--on-club); padding: 1rem; display: flex; align-items: center; gap: .8rem; min-height: 84px; }
.tile .top svg { width: 44px; flex: none; }
.tile .name { font: 700 1.45rem/1 var(--display); text-transform: uppercase; }
.tile .nick { font-size: .78rem; opacity: .85; margin-top: .2rem; }
.tile .body { padding: .8rem 1rem; font-size: .88rem; color: var(--muted); display: flex; justify-content: space-between; gap: .5rem; }
.tile .body b { color: var(--ink); font-weight: 600; }
.tile .badge { margin-top: .45rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem .35rem .45rem; border-radius: 999px;
  background: var(--club); color: var(--on-club); text-decoration: none; font: 600 .95rem/1 var(--display);
  text-transform: uppercase; letter-spacing: .02em; transition: transform .15s; }
.chip:hover { transform: translateY(-2px); }
.chip svg { width: 20px; height: 24px; }
.chip.current { outline: 3px solid var(--ink); outline-offset: 2px; }

/* league hero on the index */
.league-hero { background: linear-gradient(135deg, #1b1424 0%, #3a2a6b 100%); color: #fff; }
.league-hero .wrap { padding-top: 3.5rem; padding-bottom: 4.5rem; }
.league-hero h1 { font: 700 clamp(3rem, 10vw, 6.5rem)/.9 var(--display); text-transform: uppercase; margin: 0; }
.league-hero h1 span { color: var(--league-2); }
.league-hero p { margin: 1rem 0 0; max-width: 46rem; opacity: .85; }

/* pager + footer */
.pager { display: flex; justify-content: space-between; gap: 1rem; margin: 3rem 0; }
.pager a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1.2rem; flex: 1; }
.pager a:last-child { text-align: right; }
.pager small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.pager b { font: 700 1.3rem/1.2 var(--display); text-transform: uppercase; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 1.5rem 0 3rem; }
footer.site code { font-size: .85em; }

@media (max-width: 700px) {
  .hero .wrap { flex-direction: column; align-items: flex-start; gap: 1.2rem; padding-top: 2rem; padding-bottom: 3.2rem; }
  .hero .crest { width: 96px; }
  .stats { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 6.5rem 1fr 4.6rem; font-size: .82rem; }
  .topbar .wrap { gap: .9rem; font-size: .82rem; }
  .topbar .hide-sm { display: none; }
}

/* ---- scoreboard (fixtures page and club pages) ---- */
.topbar a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -3px 0 var(--league-2); padding: 15px 0; }
.lg-head { background: linear-gradient(135deg, #1b1424 0%, #3a2a6b 100%); color: #fff; }
.lg-head .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; flex-wrap: wrap; }
.lg-id { display: flex; align-items: center; gap: .9rem; padding-bottom: 1rem; }
.lg-mark { width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.8rem; background: rgba(255,255,255,.1); border-radius: 12px; }
.lg-head h1 { font: 700 2.1rem/1 var(--display); text-transform: uppercase; margin: 0; }
.lg-head p { margin: .2rem 0 0; opacity: .75; font-size: .9rem; }
.tabs { display: flex; gap: .25rem; }
.tabs a { text-decoration: none; padding: .7rem 1.1rem; font-weight: 600; font-size: .9rem; opacity: .75; border-radius: 10px 10px 0 0; }
.tabs a[aria-selected="true"] { background: var(--bg); color: var(--ink); opacity: 1; }
body:not(.js) .tabs { display: none; }

.scores { padding-top: 1.2rem; padding-bottom: 2rem; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mw-nav { display: flex; align-items: center; gap: .4rem; }
.mw-nav button, .toolbar select { font: 600 .92rem var(--body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; height: 40px; }
.mw-nav button { width: 40px; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.mw-nav button:disabled { opacity: .35; cursor: default; }
.toolbar select { padding: 0 .7rem; min-width: 0; }
.mw-title { font: 700 1.5rem/1 var(--display); text-transform: uppercase; margin: 1.4rem 0 .7rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.mw-title small { font: 500 .85rem var(--body); text-transform: none; color: var(--muted); }
.js .mw:not(.compact) .mw-title { display: none; }
.mw.compact .mw-title { font-size: 1.1rem; margin-top: 1.1rem; }

.day, .board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: .8rem; }
.day h3, .board h3 { margin: 0; padding: .55rem 1rem; font: 600 .74rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: color-mix(in srgb, var(--line) 45%, var(--surface)); }
.match { display: grid; grid-template-columns: 4.6rem 1fr 2rem 2rem; align-items: center; gap: .3rem .6rem;
  padding: .5rem 1rem; border-top: 1px solid var(--line); }
.match:hover { background: color-mix(in srgb, var(--line) 30%, var(--surface)); }
.match .when { font-size: .8rem; color: var(--muted); display: flex; flex-direction: column; line-height: 1.25; }
.match .when .d { font-size: .72rem; }
.match .when .t { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.match .st { font-weight: 700; color: var(--muted); }
.match.pending .t { color: #b7791f; font-weight: 600; font-size: .74rem; }
.match .teams { display: grid; gap: .2rem; min-width: 0; }
.match .team { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-size: .95rem; min-width: 0; }
.match .team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match .team:hover span { text-decoration: underline; }
.match .team svg { width: 17px; height: 20px; flex: none; }
.match.ft .team:not(.win) { color: var(--muted); }
.match .team.win { font-weight: 700; }
.match .goals, .match .ht { display: grid; gap: .2rem; text-align: right; font-variant-numeric: tabular-nums; }
.match .goals b { font-size: 1rem; line-height: 20px; }
.match .ht { font-size: .78rem; color: var(--muted); line-height: 20px; }
.match.ft .goals b:nth-child(1) { color: var(--ink); }
.empty { padding: .8rem 1rem; margin: 0; color: var(--muted); }

.form { display: inline-flex; gap: 3px; }
.form i { font: 700 .68rem/1 var(--body); font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; color: #fff; }
.form .f-W { background: #16a34a; } .form .f-D { background: #8b8592; } .form .f-L { background: #dc2626; }

.standings { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; }
.standings th { font: 600 .72rem var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .65rem .4rem; text-align: center;
  background: color-mix(in srgb, var(--line) 45%, var(--surface)); }
.standings td { padding: .5rem .4rem; text-align: center; border-top: 1px solid var(--line); font-size: .92rem; }
.standings .club { text-align: left; width: 100%; }
.standings .club a { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 600; }
.standings .club a:hover span { text-decoration: underline; }
.standings .club svg { width: 18px; height: 21px; flex: none; }
.standings .pos { width: 2.6rem; color: var(--muted); font-weight: 600; box-shadow: inset 4px 0 0 transparent; }
.standings .pts { font-weight: 700; }
.standings tr.rel .pos { box-shadow: inset 4px 0 0 #dc2626; }
.standings tr.mark td { background: color-mix(in srgb, var(--league-2) 22%, var(--surface)); }
.legend { color: var(--muted); font-size: .82rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.rel-key { width: 12px; height: 12px; border-radius: 3px; background: #dc2626; display: inline-block; }
.src { color: var(--muted); font-size: .82rem; margin-top: 1.5rem; }
.pending-note { display: block; margin-top: .3rem; color: #b7791f; }

/* club page matches block */
.block-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.block-head h2 { margin: 0; }
.block-head .more { margin-left: auto; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--league); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two .board { margin: 0; }

@media (max-width: 700px) {
  .two { grid-template-columns: 1fr; }
  .standings .opt { display: none; }
  .match { grid-template-columns: 3.9rem 1fr 1.6rem 1.8rem; padding: .5rem .7rem; }
  .lg-head h1 { font-size: 1.7rem; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .mw-nav select { flex: 1; }
}

/* rows are links to match pages */
a.match { color: inherit; text-decoration: none; }
a.match:hover .team > span { text-decoration: underline; }
a.match.current { background: color-mix(in srgb, var(--league-2) 18%, var(--surface)); }

/* ---- match page ---- */
.scoreboard { color: #fff; background:
  linear-gradient(90deg, color-mix(in srgb, var(--home) 70%, #0d0a12) 0%, #16111c 50%, color-mix(in srgb, var(--away) 70%, #0d0a12) 100%); }
.scoreboard .wrap { padding-top: 1.4rem; padding-bottom: 1.6rem; }
.sb-meta { margin: 0 0 1rem; text-align: center; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.sb-meta a { text-decoration: none; }
.sb { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.sb .side { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-decoration: none; text-align: center; }
.sb .crest svg { width: 96px; height: 112px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
.sb .nm { font: 700 clamp(1.3rem, 3.5vw, 2rem)/1 var(--display); text-transform: uppercase; }
.sb .mid { text-align: center; min-width: 9rem; }
.sb .big { font: 700 clamp(3.2rem, 10vw, 5.5rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.sb .big i { font-style: normal; opacity: .5; margin: 0 .15em; }
.sb .big.ko { font-size: clamp(2.4rem, 7vw, 3.6rem); }
.sb .status { font-size: .85rem; opacity: .8; margin-top: .3rem; }
.sb.pending .status::after { content: " · result due"; color: #fbbf24; }
.sb.pending .big .t { color: inherit; font-size: inherit; }
.sb-venue { text-align: center; margin: 1.1rem 0 0; font-size: .9rem; opacity: .85; }
.match-page .block { margin: 2rem 0; }
.match-page .block h2 { font-size: 1.3rem; }
.pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; display: grid; gap: .5rem; }
.pre a { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1.1rem; }
.pre a svg { width: 26px; height: 30px; }
.pre span { color: var(--muted); font-size: .9rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.2rem; margin: 0; padding: 1.1rem 1.3rem; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts dd.match { display: block; padding: 0; border: 0; }
.facts dd.match:hover { background: none; }
@media (max-width: 700px) {
  .sb .crest svg { width: 64px; height: 75px; }
  .sb { gap: .5rem; }
  .sb .mid { min-width: 6rem; }
}

/* ---- parity pass: tabs, tables, favourites, head-to-head ---- */
:root { --crest-edge: rgba(0,0,0,.28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --crest-edge: rgba(255,255,255,.55); } }
:root[data-theme="dark"] { --crest-edge: rgba(255,255,255,.55); }
.topbar .theme { display: grid; place-items: center; flex: none; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 1rem; }
.lg-head .tabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.lg-head .tabs a { white-space: nowrap; }
.toolbar .filter { display: flex; gap: .4rem; align-items: center; margin-left: auto; }
.toolbar .filter button, .subtabs button, .show-more { font: 600 .88rem var(--body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; height: 40px; padding: 0 .8rem; cursor: pointer; }
.subtabs { display: flex; gap: .4rem; margin: 0 0 1rem; flex-wrap: wrap; }
.subtabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.js .variant-title { display: none; }
.variant-title { font: 700 1.1rem var(--display); text-transform: uppercase; margin: 1rem 0 .5rem; }
.variant-title small, .mw-title small { font-weight: 500; }
.show-more { display: block; width: 100%; margin: .4rem 0 1rem; }
.more { display: inline-block; margin: .2rem 0 1.2rem; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--league); }
#pane-summary .two { margin-bottom: .5rem; }
#pane-summary .mw-title { font-size: 1.25rem; }

.daystrip { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem 0 .8rem; scrollbar-width: thin; }
.daystrip a { flex: none; text-decoration: none; font-size: .8rem; font-weight: 600; padding: .4rem .7rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.daystrip a:hover { border-color: var(--ink); }

/* zones */
.standings tr.z-championsLeague .pos { box-shadow: inset 4px 0 0 #2563eb; }
.standings tr.z-europaLeague .pos { box-shadow: inset 4px 0 0 #ea580c; }
.standings tr.z-conferenceLeague .pos { box-shadow: inset 4px 0 0 #16a34a; }
.standings tr.z-relegation .pos { box-shadow: inset 4px 0 0 #dc2626; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; margin-right: .9rem; }
.legend .note { display: block; margin: .4rem 0 0; }
.zk { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.zk.z-championsLeague { background: #2563eb; } .zk.z-europaLeague { background: #ea580c; }
.zk.z-conferenceLeague { background: #16a34a; } .zk.z-relegation { background: #dc2626; }
.form-h small { font-weight: 500; letter-spacing: 0; text-transform: none; }
.standings.compact td, .standings.compact th { padding: .4rem .5rem; }
.scroll-x { overflow-x: auto; border-radius: var(--radius); }
.scroll-x .standings { min-width: 640px; }

/* favourites */
.star { background: none; border: 0; cursor: pointer; font-size: 1.3rem; line-height: 1; color: inherit; padding: .2rem; }
.star[aria-pressed="true"] { color: #f5b301; }
.hero-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.hero-actions .swatches { margin: 0; align-items: center; }
.swatches .lbl { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-right: .2rem; }
.hero .star, .sb .star { font-size: 1.6rem; color: var(--on-club, #fff); }
.sb .star { color: #fff; }
.hero .star[aria-pressed="true"], .sb .star[aria-pressed="true"] { color: #ffd34d; }
.sb .side { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.sb .side > a { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-decoration: none; }
.match.followed .teams::before { content: "★"; color: #f5b301; position: absolute; margin-left: -1.1rem; font-size: .75rem; }
.match.followed .teams { position: relative; }
.standings tr.followed .club a span::after { content: " ★"; color: #f5b301; }
.mine-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 1rem; }
.mine-list .board { margin: 0; }
.mine-list h3 a { text-decoration: none; color: var(--ink); }
.filter .follow[aria-pressed="true"] { color: #b78400; }

/* club view on the hub: one compact list, W/D/L markers */
.mw:not(.compact) .match .when .d { display: none; }
.mw.compact .day h3 { display: none; }
.mw.compact .day { margin-bottom: 4px; border-radius: 10px; }
.mw.compact .mw-title { display: none; }
.match[data-res] { position: relative; }
.match[data-res="W"] { box-shadow: inset 4px 0 0 #16a34a; }
.match[data-res="D"] { box-shadow: inset 4px 0 0 #8b8592; }
.match[data-res="L"] { box-shadow: inset 4px 0 0 #dc2626; }

/* match page */
.match-page .block h2 small { font: 500 .85rem var(--body); text-transform: none; color: var(--muted); margin-left: .5rem; }
.h2h { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; margin-bottom: .8rem; padding: 1rem; }
.h2h .rec b { display: block; font: 700 2rem/1 var(--display); }
.h2h .rec span { color: var(--muted); font-size: .82rem; }
.meet { display: grid; grid-template-columns: 4.2rem 1fr; align-items: center; border-top: 1px solid var(--line); }
.meet:first-child { border-top: 0; }
.meet .ssn { padding-left: 1rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.meet .match { border-top: 0; }
div.match:hover { background: none; }
.sb .status .tz { opacity: .9; }
@media (max-width: 700px) {
  .h2h { grid-template-columns: repeat(2, 1fr); }
  .toolbar .filter { margin-left: 0; }
  .toolbar .filter select { flex: 1; }
  .mine-list { grid-template-columns: 1fr; }
}

/* ---- match page, parity pass 2 ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.scoreboard .match-tabs { display: flex; gap: .25rem; padding-top: 0; padding-bottom: 0; }
.scoreboard .match-tabs a { color: #fff; }
.scoreboard .match-tabs a[aria-selected="true"] { color: var(--ink); }
.scoreboard .match-tabs small { opacity: .7; font-weight: 500; margin-left: .2rem; }
.js .scoreboard .wrap:first-child { padding-bottom: 1rem; }
body:not(.js) .match-tabs { display: none; }
.sb .side .pos { font-size: .8rem; opacity: .8; }
.sb .big.date { font-size: clamp(2rem, 6vw, 3rem); }
.sb .status .na { opacity: .75; }
.sb.pending .status::after { content: " · awaiting result"; color: #fbbf24; font-weight: 600; }
.sb-actions { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.sb-actions .star, .sb-actions .share { font: 600 .85rem var(--body); color: #fff; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }
.sb-actions .star[aria-pressed="true"] { color: #ffd34d; border-color: #ffd34d; }
.pane-title { font: 700 1.3rem/1 var(--display); text-transform: uppercase; margin: 1.6rem 0 .7rem; }
.pane-title small { font: 500 .85rem var(--body); text-transform: none; color: var(--muted); margin-left: .4rem; }
.match-page .two { align-items: start; }
.form-board h3 a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); }
.form-board h3 svg { width: 16px; height: 19px; }
.form-board h3 small { font-weight: 500; text-transform: none; letter-spacing: 0; margin-left: .4rem; }
.recent { display: grid; grid-template-columns: 5.2rem 1.4rem 1fr auto 1.6rem; align-items: center; gap: .6rem;
  padding: .55rem 1rem; border-top: 1px solid var(--line); text-decoration: none; font-size: .92rem; }
.recent:hover { background: color-mix(in srgb, var(--line) 30%, var(--surface)); }
.recent .d { font-size: .78rem; color: var(--muted); }
.recent .ha { font-size: .72rem; font-weight: 700; color: var(--muted); text-align: center; border: 1px solid var(--line); border-radius: 4px; }
.recent .opp { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.recent .opp svg { width: 16px; height: 19px; flex: none; }
.recent .opp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent .sc { font-variant-numeric: tabular-nums; }
.recent .res { font: 700 .7rem/1 var(--body); font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; color: #fff; }
.res.f-W { background: #16a34a; } .res.f-D { background: #8b8592; } .res.f-L { background: #dc2626; }
.steps .step { display: grid; grid-template-columns: 8rem 1fr 1fr; gap: .6rem; align-items: center; padding: .6rem 1rem; border-top: 1px solid var(--line); font-size: .88rem; }
.steps .step:first-child { border-top: 0; }
.steps .step b { display: flex; align-items: center; gap: .4rem; }
.steps .step b svg { width: 16px; height: 19px; }
.steps a { text-decoration: none; }
.steps a small { display: block; color: var(--muted); font-size: .72rem; }
.steps .next { text-align: right; }
details.week { margin: 1.6rem 0; }
details.week summary { cursor: pointer; font: 700 1.1rem var(--display); text-transform: uppercase; padding: .6rem 0; }
details.week summary small { font: 500 .85rem var(--body); text-transform: none; color: var(--muted); }
.h2h-filter { margin: .8rem 0; }
.h2h-filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.h2h-filter small { opacity: .7; }
.js .match-page .variant-title { display: none; }
.standings tr.mark td { background: color-mix(in srgb, var(--league-2) 22%, var(--surface)); font-weight: 600; }
.match .tbc { font-size: .78rem; color: var(--muted); }
@media (max-width: 700px) {
  .recent { grid-template-columns: 4.4rem 1.3rem 1fr auto 1.5rem; gap: .45rem; padding: .5rem .7rem; }
  .steps .step { grid-template-columns: 1fr 1fr; }
  .steps .step b { grid-column: 1 / -1; }
  .sb .side .pos { font-size: .72rem; }
}

/* ---- match page, parity pass 3 ---- */
.sb .side .pos small { opacity: .75; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; margin-left: .2rem; }
.sb .countdown { margin-top: .45rem; font-size: .8rem; font-weight: 600; color: #fbbf24; }
.sb-actions .ics { font: 600 .85rem var(--body); color: #fff; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }
.h2h-mini { padding: 1rem 1.2rem; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-weight: 600; }
.h2h-mini a { margin-left: auto; font-weight: 600; text-decoration: none; color: var(--league); }
.meet[data-res="W"] { box-shadow: inset 4px 0 0 #16a34a; }
.meet[data-res="D"] { box-shadow: inset 4px 0 0 #8b8592; }
.meet[data-res="L"] { box-shadow: inset 4px 0 0 #dc2626; }
.zk.res-W { background: #16a34a; } .zk.res-D { background: #8b8592; } .zk.res-L { background: #dc2626; }
.h2h-key { margin-top: .5rem; }
.last-board h3 { display: flex; align-items: center; gap: .45rem; }
.last-board h3 svg { width: 16px; height: 19px; }
.last-board h3 small { font-weight: 500; text-transform: none; letter-spacing: 0; }
.venue-filter { display: flex; gap: .3rem; padding: .5rem 1rem; border-top: 1px solid var(--line); }
.venue-filter button { font: 600 .78rem var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: .2rem .7rem; cursor: pointer; }
.venue-filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.steps .step { grid-template-columns: 9rem 1fr 1fr; }
.steps .step a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.steps .none small { color: var(--muted); font-size: .78rem; }
.poschart { margin: 1.4rem 0 0; padding: 1rem 1.2rem; }
.poschart figcaption { font-weight: 600; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .4rem; }
.poschart .key { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--muted); }
.poschart .key i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.poschart .key i.dash { height: 0; border-top: 3px dashed; background: none; margin-left: .6rem; }
.poschart svg { width: 100%; height: auto; display: block; }
.poschart .gl { stroke: var(--line); stroke-width: 1; }
.poschart .ax { fill: var(--muted); font: 11px var(--body); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .poschart polyline { filter: brightness(1.6); } }
:root[data-theme="dark"] .poschart polyline { filter: brightness(1.6); }

/* phone tables: keep the club and points in view */
@media (max-width: 600px) {
  .scroll-x .standings { min-width: 0; }
  .standings .wdl, .standings .opt { display: none; }
  .standings .club { position: sticky; left: 0; background: var(--surface); z-index: 1; max-width: 9.5rem; }
  .standings .club span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .standings .form .f-W, .standings .form .f-D, .standings .form .f-L { width: 16px; height: 16px; font-size: .6rem; }
  .steps .step { grid-template-columns: 1fr 1fr; }
  .sb .status { font-size: .74rem; }
}
.js .shared-tables .nojs { display: none; }

/* ---- match page, parity pass 4 ---- */
:focus-visible { outline: 3px solid #ffc93c; outline-offset: 2px; border-radius: 4px; }
.story { list-style: none; margin: 0; padding: .4rem 1.2rem; }
.story li { padding: .55rem 0 .55rem 1.3rem; border-top: 1px solid var(--line); position: relative; font-size: .95rem; }
.story li:first-child { border-top: 0; }
.story li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 7px; height: 7px; border-radius: 50%; background: var(--league); }
.poschart .ln polyline { stroke: var(--cl); } .poschart .ln circle { fill: var(--cl); }
.poschart .key .sw { background: var(--cl); } .poschart .key .sw.dash { background: none; border-top: 3px dashed var(--cl); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .poschart .ln polyline { stroke: var(--cd); filter: none; }
  :root:not([data-theme="light"]) .poschart .ln circle { fill: var(--cd); }
  :root:not([data-theme="light"]) .poschart .key .sw { background: var(--cd); } :root:not([data-theme="light"]) .poschart .key .sw.dash { background: none; border-top-color: var(--cd); } }
:root[data-theme="dark"] .poschart .ln polyline { stroke: var(--cd); filter: none; } :root[data-theme="dark"] .poschart .ln circle { fill: var(--cd); }
:root[data-theme="dark"] .poschart .key .sw { background: var(--cd); } :root[data-theme="dark"] .poschart .key .sw.dash { background: none; border-top-color: var(--cd); }
.poschart .this { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; } .poschart .this-l { font-size: 10px; }
@media (max-width: 600px) {
  .scoreboard .wrap:first-child { padding-top: .9rem; }
  .sb .crest svg { width: 52px; height: 61px; }
  .sb .nm { font-size: 1.2rem; }
  .sb .side .pos small { display: none; }
  .sb .big { font-size: 3rem; }
  .sb-venue { font-size: .8rem; margin-top: .6rem; }
  .sb-actions { gap: .35rem; margin-top: .6rem; flex-wrap: nowrap; }
  .sb-actions .star, .sb-actions .share, .sb-actions .ics { padding: .35rem .6rem; font-size: .75rem; white-space: nowrap; }
  .standings .form i:nth-child(-n+2) { display: none; }
  .standings .form-h small { display: none; }
  .venue-filter, .h2h-filter { flex-wrap: nowrap; overflow-x: auto; }
  .recent .d { white-space: nowrap; font-size: .7rem; }
}
.meet .ssn small { display: block; font-weight: 500; font-size: .68rem; color: var(--muted); }
.meet { grid-template-columns: 6.4rem 1fr; }

/* ---- club page, pass 2 ---- */
.cal { margin: 0; padding: .7rem 1rem; border-top: 1px solid var(--line); font-size: .88rem; }
.cal a { font-weight: 600; color: var(--league); text-decoration: none; }
.cal small { color: var(--muted); }
.facts.season dd small { color: var(--muted); }
.facts.season a { text-decoration: none; font-weight: 600; }
.hero .follow { font: 600 .85rem var(--body); color: var(--on-club); background: color-mix(in srgb, var(--on-club) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-club) 35%, transparent); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; }
.block .poschart { margin-top: 0; }

/* ---- records ---- */
.records .sub-h { font: 700 1.05rem var(--display); text-transform: uppercase; margin: .4rem 0 .5rem; }
.rec-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .2rem .8rem; padding: .55rem 1rem;
  border-top: 1px solid var(--line); text-decoration: none; }
.board .rec-line:first-of-type { border-top: 0; }
a.rec-line:hover { background: color-mix(in srgb, var(--line) 30%, var(--surface)); }
.rec-line .teams { display: flex; align-items: center; gap: .55rem; font-size: .95rem; }
.rec-line .teams > span { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.rec-line .teams > span.win { color: var(--ink); font-weight: 700; }
.rec-line svg { width: 16px; height: 19px; }
.rec-line .sc { font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: center; }
.rec-line small { color: var(--muted); font-size: .78rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1rem 0; }
.leaders ol { list-style: none; margin: 0; padding: 0; counter-reset: l; }
.leaders li { display: flex; align-items: center; justify-content: space-between; padding: .45rem 1rem; border-top: 1px solid var(--line); counter-increment: l; }
.leaders li::before { content: counter(l); width: 1.4rem; color: var(--muted); font-size: .8rem; }
.leaders li a { display: flex; align-items: center; gap: .5rem; flex: 1; text-decoration: none; }
.leaders li svg { width: 16px; height: 19px; }
.leaders h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.refs td small { color: var(--muted); font-size: .75rem; }
.records .note { color: var(--muted); font-size: .88rem; max-width: 52rem; }
@media (max-width: 800px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr; } }
.refs td, .refs th { white-space: nowrap; }

/* ---- hub, pass 3 ---- */
.goallines td.pct { position: relative; min-width: 4.5rem; }
.goallines .bar { position: absolute; left: .4rem; bottom: .3rem; height: 3px; width: calc((100% - .8rem) * var(--w) / 100); background: var(--league); opacity: .5; border-radius: 2px; }
.res-key { margin: 0 0 .6rem; }
/* the tab row scrolls on narrow screens: fade the edge so it reads as more */
@media (max-width: 700px) {
  .lg-head .tabs, .scoreboard .match-tabs { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 2rem; }
}

/* ---- club pages, pass 3 ---- */
.hero .wrap { padding-top: 2rem; padding-bottom: 2.6rem; }
.hero .crest { width: 120px; }
.h-note { font: 500 .82rem var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: .4rem; }
.next-card .board { display: grid; }
.next-note { margin: 0; padding: .6rem 1rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.next-note a { color: var(--league); font-weight: 600; text-decoration: none; }
.cm { border-top: 1px solid var(--line); }
.cm .match { border-top: 0; }
.cm[data-res="W"] { box-shadow: inset 4px 0 0 #16a34a; } .cm[data-res="D"] { box-shadow: inset 4px 0 0 #8b8592; } .cm[data-res="L"] { box-shadow: inset 4px 0 0 #dc2626; }
.club-list .legend { padding: .4rem 1rem .6rem; margin: 0; }
.club-list .list-more { margin: .4rem 1rem; width: calc(100% - 2rem); }
.club-list h3 small, .board h3 small { font-weight: 500; text-transform: none; letter-spacing: 0; }
.variants-box .subtabs { margin-bottom: .7rem; }
.vs td.last { white-space: nowrap; text-align: left; }
.vs td.last small { color: var(--muted); }
.vs .res { display: inline-grid; width: 18px; height: 18px; font-size: .62rem; vertical-align: middle; }
.tile .top { position: relative; }
.pos-badge { margin-left: auto; text-align: center; line-height: 1; background: color-mix(in srgb, var(--on-club) 14%, transparent); border-radius: 10px; padding: .4rem .55rem; }
.pos-badge b { display: block; font: 700 1.6rem/1 var(--display); }
.pos-badge small { font-size: .65rem; opacity: .85; }
.tile .body { align-items: center; }
.tile .body .form i { width: 18px; height: 18px; font-size: .6rem; }
.tile .body .ground { font-size: .8rem; text-align: right; }
@media (max-width: 700px) { .hero .crest { width: 84px; } .vs td.last small { display: none; } }

.pos-badge small { white-space: nowrap; }
.topbar .wrap { overflow-x: auto; scrollbar-width: none; }
@media (max-width: 700px) {
  .lg-head .tabs, .scoreboard .match-tabs { padding-right: 0; }
  .lg-head .tabs::after, .scoreboard .match-tabs::after { content: ""; flex: none; width: 30vw; }
  .topbar .wrap { gap: .7rem; font-size: .78rem; }
  .topbar .brand { font-size: 1.05rem; }
}

/* hub summary: table and rounds side by side on wide screens */
.summary-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
.summary-table .standings .opt { display: none; }
@media (max-width: 960px) { .summary-grid { grid-template-columns: 1fr; } .summary-table .standings .opt { display: table-cell; } }
@media (max-width: 600px) { .summary-table .standings .opt { display: none; } }
.summary-table .scroll-x .standings { min-width: 0; }
.summary-table .standings .form i { width: 17px; height: 17px; font-size: .58rem; }
.summary-table .standings td, .summary-table .standings th { padding-left: .3rem; padding-right: .3rem; }
.summary-table .form-h small { display: none; }

/* ---- match days ---- */
.match .live-st, .sb .live-st { color: #dc2626; font-weight: 700; }
.match.live .live-st::before, .sb.live .live-st::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #dc2626; margin-right: .3rem; vertical-align: middle; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .match.live .live-st::before, .sb.live .live-st::before { animation: none; } }
.match.live .goals b { color: #dc2626; }
.sb .live-big { color: #fff; }
.today .board { border-color: color-mix(in srgb, #dc2626 35%, var(--line)); }
.today .tm .match { border-top: 1px solid var(--line); }
.today .tm:first-child .match { border-top: 0; }
.today-note { font-weight: 500; }
.sb .live-st { color: #ff7a7a; }
.sb.live .live-st::before { background: #ff7a7a; }
.topbar .tzbtn { flex: none; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 8px; height: 32px; padding: 0 .5rem; cursor: pointer; font: 600 .72rem var(--body); }
.match.today .when .d { color: var(--league); font-weight: 700; }
.match .when .mwl { font-size: .66rem; color: var(--muted); letter-spacing: .04em; margin-top: .1rem; }

/* ---- phone pass ---- */
.scoreboard .match-tabs { overflow-x: auto; scrollbar-width: none; }
.scoreboard .match-tabs a { white-space: nowrap; }
.vs .res { place-items: center; }
@media (max-width: 600px) {
  .topbar .wrap { gap: .55rem; }
  .topbar .brand span { display: none; }
  .meet { grid-template-columns: 3.6rem 1fr; }
  .meet .ssn { padding-left: .6rem; font-size: .7rem; }
  .meet .match .when .d { display: none; }
  .meet .match { grid-template-columns: 2.2rem 1fr 1.4rem 1.6rem; padding-left: .3rem; }
  .steps .step a span { white-space: normal; }
  .vs .opt, .vs .wdl { display: none; }
  .vs td.last { white-space: normal; font-size: .8rem; }
}

/* ---- records rows, referee cells, sortable headers ---- */
.rec-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.rec-line small { white-space: nowrap; text-align: right; }
@media (max-width: 600px) { .rec-line { grid-template-columns: 1fr; } .rec-line small { text-align: left; } }
.refs td small { display: block; line-height: 1.1; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
th[aria-sort="descending"]::after { content: " ▾"; } th[aria-sort="ascending"]::after { content: " ▴"; }
.live-stamp { margin: .8rem 0 0; font-size: .8rem; color: #dc2626; font-weight: 600; }
.live-stamp::before { content: "● "; }

/* a model's chances for a coming match (match page) */
.chances { padding: 1.1rem 1.3rem; }
.chances .split { display: flex; gap: 2px; height: 2.1rem; border-radius: 6px; overflow: hidden; font: 700 1rem/1 var(--display); letter-spacing: .02em; }
.chances .split span { display: flex; align-items: center; justify-content: center; min-width: 2.6rem; }
.chances .legend { display: flex; justify-content: space-between; margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }
.chances .note { margin: .7rem 0 0; font-size: .85rem; color: var(--muted); }
.chances .verdict { margin: .7rem 0 0; font-size: .92rem; }
.records .fc-latest { list-style: none; padding: 0; margin: 0; columns: 2 18rem; font-size: .92rem; }
.records .fc-latest li { padding: .25rem 0; break-inside: avoid; }
.records .fc-latest span { color: var(--muted); font-size: .85rem; }

/* players: top scorers on the hub, squads on club pages, the scorers table on records */
.top-scorers { margin-top: 1.4rem; }
.top-scorers .leaders li::before { content: attr(data-rank); }
.top-scorers .leaders li span small, .squad th small { color: var(--muted); font-size: .78rem; font-weight: 500; margin-left: .3rem; }
.squad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.squad-grid .board { margin: 0; }
.squad { width: 100%; }
.squad thead th.club { text-align: left; color: var(--ink); }
.squad th small { letter-spacing: 0; }
.squad td.club, .scorers td.club, .players-all td.club { text-align: left; white-space: nowrap; }
.squad .nat, .players-all .nat { text-align: left; white-space: nowrap; }
.squad .nil { color: var(--muted); }
.scorers td.pos { color: var(--muted); }
@media (max-width: 760px) { .squad-grid { grid-template-columns: 1fr; } .squad td.nat, .squad td.club { white-space: normal; } }
/* a second forecaster under the first, on match pages */
.alt-fc { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.alt-fc .who { margin: 0 0 .45rem; font-weight: 600; font-size: .92rem; }
.alt-fc .who small { color: var(--muted); font-weight: 500; }
.chances .split.small { height: 1.5rem; font-size: .85rem; }
