/* ============================================================
   THE GRIDIRON GAZETTE — Pocket Edition, Night Final
   Full replacement stylesheet (single layer, no legacy base).
   Dark only, by decree of the Commissioner (Aug 2026).
   No JS. No external requests. System fonts + emoji only.
   DOM contract unchanged except the .match report block —
   see TEMPLATE-NOTES.md.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;

  --paper: #16181b;      /* the sheet */
  --paper-dim: #101214;  /* page surround (desktop gutters) */
  --card: #1c1f23;       /* raised card surface */
  --card-head: #22262b;  /* card header strip / table head */
  --ink: #eceae6;
  --ink-body: #d8d6d1;   /* long-form reading text */
  --ink-soft: #a6a49f;
  --ink-mute: #8f8d88;   /* labels, stamps, captions */
  --field: #55c277;      /* the accent. the only accent. */
  --field-deep: #14532d; /* accent as a background (callout, buttons) */
  --siren: #e5604f;      /* sparingly: superlatives, playoff line, 404 */
  --hilite: #ffd400;     /* group-chat highlighter, on dark as a tint */
  --hilite-bg: rgba(255, 212, 0, 0.16);
  --rule: #26292e;

  --display: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --body: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --serif: Georgia, 'Times New Roman', serif; /* article voice */
  --data: ui-monospace, 'SF Mono', Consolas, 'Courier New', monospace;

  --radius: 14px;
  --radius-sm: 10px;
}

/* ---------- reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--body);
  background: var(--paper-dim);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
}

.sheet {
  max-width: 820px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
}

a { color: var(--field); -webkit-tap-highlight-color: transparent; }
a:hover { color: #6fd18e; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--field);
  outline-offset: 2px;
}

/* anchors land below sticky chrome */
[id] { scroll-margin-top: 4.5rem; }

/* ---------- masthead (desktop) ---------- */
.plate { border-bottom: 1px solid var(--rule); }

.plate-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1.25rem 0;
  font-family: var(--data);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.masthead { text-align: center; padding: 0.9rem 1rem 0.6rem; }
.masthead h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: 0.015em;
}
.masthead h1 a { color: var(--ink); text-decoration: none; }
.masthead .tagline { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.35rem; }

/* section nav (desktop) — sticky, quiet, green underline on current */
.sections {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sections a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1rem;
  white-space: nowrap;
}
.sections a:hover { background: var(--card); color: var(--ink); }
.sections a[aria-current='page'] {
  color: var(--field);
  box-shadow: inset 0 -3px 0 var(--field);
}

/* siren strip — breaking news, red kept solid for legibility */
.siren {
  background: #a8281c;
  color: #fff;
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- reading column ---------- */
main {
  max-width: 660px;
  margin: 0 auto;
  padding: 1.4rem 1.1rem 2.2rem;
}

/* banner callout — the one thing everyone must see */
.callout {
  display: block;
  background: var(--field-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.85rem 1.05rem;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  line-height: 1.45;
  text-decoration: none;
}
.callout:hover { background: #0f4423; color: #fff; }
.callout strong { font-weight: 800; }

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--field);
  margin-bottom: 0.3rem;
}

h2.headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.45rem, 5vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.standfirst {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0.6rem 0 0.8rem;
}

.byline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}

article p {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-body);
  margin-bottom: 1rem;
}
article strong { color: var(--ink); }

.crosshead {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 1.6rem 0 0.7rem;
}

/* highlighter reads as a tint on dark ground */
mark { background: var(--hilite-bg); color: var(--hilite); padding: 0 0.25em; border-radius: 3px; }

hr.rule-heavy, hr.rule-light { border: 0; border-top: 1px solid var(--rule); margin: 1.6rem 0; }

p.continue { margin-top: -0.2rem; }
p.continue a { font-weight: 700; text-decoration: none; }
p.continue a:hover { text-decoration: underline; }

/* front-page briefs — carded list, no accent strips anywhere */
.briefs {
  list-style: none;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.briefs li {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #c9c7c2;
  padding: 0.75rem 0.9rem 0.75rem 1.9rem;
  position: relative;
}
.briefs li + li { border-top: 1px solid var(--rule); }
.briefs li::before {
  content: '·';
  position: absolute;
  left: 0.85rem;
  color: var(--field);
  font-weight: 800;
}
.briefs strong { color: var(--ink); }

/* ---------- the ladder ---------- */
.table-scroller {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
}

table.ladder { width: 100%; border-collapse: collapse; font-size: 0.82rem; }

.ladder caption {
  caption-side: top;
  text-align: left;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 0.7rem 0.9rem 0.5rem;
}

.ladder th {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-mute);
  background: var(--card-head);
  padding: 0.55rem 0.9rem;
  white-space: nowrap;
}

.ladder td {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--rule);
  vertical-align: middle;
}

.ladder td.num, .ladder th.num {
  font-family: var(--data);
  text-align: right;
  white-space: nowrap;
  color: var(--ink-body);
}

.ladder .pos { font-weight: 800; font-size: 0.82rem; width: 2rem; text-align: left; color: var(--ink); }
/* below the playoff line, rank numbers go quiet */
.ladder tr.playoff-line ~ tr .pos { color: var(--ink-mute); }

.ladder .team { font-weight: 600; }
.ladder td.num, .ladder th.num { width: 1%; } /* numbers hug; Club takes the surplus */
.ladder .manager {
  display: block;
  font-weight: normal;
  font-size: 0.72rem;
  color: var(--ink-mute);
}

.team-link { color: inherit; text-decoration: none; }
.team-link:hover { color: var(--field); }
.team-link .chev { color: var(--field); font-weight: 700; }

/* the playoff line — six make it, six make excuses */
.ladder tr.playoff-line td {
  border-top: 2px dashed var(--siren);
  border-bottom: 2px dashed var(--siren);
  background: #241a19;
  padding: 0.25rem 0.6rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--siren);
}

/* ---------- match cards (see TEMPLATE-NOTES: .report block) ---------- */
.match {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0.9rem 0;
}

/* superlative label — the red kicker atop each card */
.match .status {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--siren);
  padding: 0.85rem 0.95rem 0;
}

/* match headline (new element, editorial-first per adopted mock 4b) */
.match .match-headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: 0.35rem 0.95rem 0.5rem;
}

/* the FT score strip — sides compress into one row */
.match .scoreline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card-head);
  border-radius: var(--radius-sm);
  margin: 0 0.95rem 0.65rem;
  padding: 0.5rem 0.75rem;
}
.match .scoreline .name { flex: 1; font-weight: 600; font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match .scoreline .name:last-of-type { text-align: right; }
.match .scoreline .winner .name, .match .scoreline .name.winner { font-weight: 700; color: var(--ink); }
.match .scoreline .score { font-family: var(--data); font-size: 0.95rem; color: var(--ink-mute); }
.match .scoreline .winner .score, .match .scoreline .score.winner { font-weight: 700; color: var(--field); }
.match .scoreline .ft { font-family: var(--data); font-size: 0.63rem; color: var(--ink-mute); }

/* legacy stacked sides — still styled so old templates degrade cleanly */
.match .side {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0.95rem;
}
.match .side + .side { border-top: 1px solid var(--rule); }
.match .side .score { font-family: var(--data); font-size: 1.05rem; color: var(--ink-mute); }
.match .side.winner .score { font-weight: 700; color: var(--field); }
.match .side.winner .name::after { content: ' ✔'; color: var(--field); font-size: 0.8em; }
.match .side .name { font-weight: 600; color: var(--ink-soft); }
.match .side.winner .name { font-weight: 700; color: var(--ink); }

/* the flavourful report — Gazette voice, serif */
.match .report, .match .blurb {
  font-family: var(--serif);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #c9c7c2;
  padding: 0 0.95rem 0.95rem;
}
.match .report p { margin: 0; }
.match .blurb { font-style: italic; color: var(--ink-soft); }

/* ---------- superlatives strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  margin: 1.2rem 0;
}
.stat-strip .cell {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}
.stat-strip .label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--field);
}
.stat-strip .value { font-weight: 800; font-size: 0.9rem; color: var(--ink); margin-top: 0.1rem; }
.stat-strip .detail { font-size: 0.72rem; color: var(--ink-mute); margin-top: 0.05rem; }

/* ---------- draft hot list ---------- */
ol.prospects { list-style: none; counter-reset: pick; }
ol.prospects li {
  counter-increment: pick;
  position: relative;
  padding: 0.7rem 0 0.7rem 2.4rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-body);
}
ol.prospects li::before {
  content: counter(pick);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.7rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--field);
}
ol.prospects li:last-child { border-bottom: 0; }
ol.prospects li:last-child::before { color: var(--siren); }
ol.prospects strong { color: var(--ink); }
ol.prospects .pos {
  font-family: var(--data);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

/* ---------- transactions ---------- */
.tx {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  margin: 0.7rem 0;
}
.tx .tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.14rem 0.6rem;
  margin-right: 0.45rem;
  background: var(--field-deep);
  color: #c9f2d6;
}
.tx .tag.trade { background: #5c1f18; color: #f4c4bc; }
.tx .tag.failed { background: #3a3a3a; color: #c9c7c2; }
.tx .snark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 0.25rem;
}

/* ---------- banter — plain cards, NO accent strips ---------- */
.banter-item {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  margin: 0.8rem 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #c9c7c2;
}
.banter-item strong { color: var(--ink); }
.banter-item .stamp {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.3rem;
}

/* ---------- archive ---------- */
.archive-list {
  list-style: none;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.archive-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
}
.archive-list li + li { border-top: 1px solid var(--rule); }
.archive-list a { font-weight: 600; font-size: 0.88rem; color: var(--ink); text-decoration: none; }
.archive-list a:hover { color: var(--field); }
.archive-list .ed { font-family: var(--data); font-size: 0.66rem; color: var(--ink-mute); white-space: nowrap; }

/* ---------- club pages ---------- */
.grade-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 0.6rem 0 1rem;
}
.grade-hero .grade-big { font-size: 2.8rem; font-weight: 800; line-height: 1; color: var(--field); }
.grade-hero .grade-caption {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.delta { font-family: var(--data); font-size: 0.75rem; letter-spacing: 0.04em; }
.delta.up { color: var(--field); }
.delta.down { color: var(--siren); }
.delta.hold { color: var(--ink-mute); }

.pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.5rem;
  margin: 0.4rem 0 1.2rem;
}
.pos-cell {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.4rem;
  text-align: center;
}
.pos-cell .pos-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pos-cell .grade { font-size: 1.2rem; font-weight: 800; line-height: 1.3; color: var(--ink-soft); }

/* trajectory chart — themed via tokens, carded */
.chart {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.9rem 0.75rem 0.5rem;
  margin: 0.6rem 0 0.4rem;
}
.chart svg { width: 100%; height: auto; display: block; }
.chart-grid { stroke: #2b2e33; stroke-width: 1; }
.chart-axis-label { fill: var(--ink-mute); font-family: var(--data); font-size: 11px; }
.chart-line { fill: none; stroke: var(--field); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: var(--field); stroke: var(--card); stroke-width: 2; }
.chart-label { fill: var(--ink); font-weight: 700; font-size: 13px; }

/* ---------- FAQ accordions — carded set ---------- */
details.faq { background: var(--card); border: 1px solid var(--rule); border-radius: 0; }
details.faq:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
details.faq:last-of-type { border-radius: 0 0 var(--radius) var(--radius); }
details.faq + details.faq { border-top: 0; }
details.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 0.85rem 2.4rem 0.85rem 0.95rem;
  font-weight: 600;
  font-size: 0.88rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--field);
  font-weight: 800;
  font-size: 1.25rem;
}
details.faq[open] summary::after { content: '–'; }
details.faq .faq-a { padding: 0 0.95rem 0.95rem; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.6; }
details.faq .faq-a p { margin-bottom: 0.6rem; }
details.faq .faq-a strong { color: var(--ink); }

/* ---------- footer ---------- */
footer {
  max-width: 660px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  padding: 1rem 1.1rem 1.8rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
}

/* ---------- app feel ---------- */
.callout:active, .match:active, .banter-item:active { transform: scale(0.985); }
.callout, .match, .banter-item { transition: transform 120ms ease; }
@media (prefers-reduced-motion: reduce) {
  .callout, .match, .banter-item { transition: none; }
}

/* top app bar + bottom tab bar — mobile only */
.appbar { display: none; }
.tabbar { display: none; }

@media (max-width: 640px) {
  .sections { display: none; }
  .plate { display: none; }
  main { padding: 1.1rem 1rem 2rem; }
  footer { padding: 1rem 1rem 1.6rem; }
  .ladder .manager { display: none; }

  .appbar {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(22, 24, 27, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
    padding: calc(0.3rem + env(safe-area-inset-top)) 0.35rem 0.3rem;
  }
  .appbar .back {
    width: 2.75rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--field);
    text-decoration: none;
  }
  .appbar .spacer { visibility: hidden; }
  .appbar-title {
    flex: 1;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    justify-content: space-around;
    background: rgba(22, 24, 27, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--rule);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
  }
  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 3.4rem;
    min-height: 44px;
    justify-content: center;
    color: var(--ink-mute);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
  }
  .tabbar .icon {
    font-size: 1.3rem;
    line-height: 1.5;
    border-radius: 999px;
    padding: 0 0.8rem;
    filter: grayscale(1);
    opacity: 0.55;
  }
  .tabbar a[aria-current='page'] { color: var(--field); font-weight: 700; }
  .tabbar a[aria-current='page'] .icon {
    background: rgba(85, 194, 119, 0.16);
    filter: none;
    opacity: 1;
  }
  .tabbar a:active { transform: translateY(1px); }

  /* clear the fixed bar */
  footer { margin-bottom: calc(3.2rem + env(safe-area-inset-bottom)); }
}

/* small phones: drop the Against column so the ladder fits without scrolling */
@media (max-width: 480px) {
  .ladder th:nth-child(5), .ladder td:nth-child(5) { display: none; }
}

/* ============================================================
   GENERATOR ADDITIONS (post-handover integration, Aug 2026)
   Pieces the handover described or the generator emits that the
   delivered stylesheet did not cover. Same tokens, same rules.
   ============================================================ */

/* win-probability chart lives inside a match card — flatten the card-in-card */
.match .chart.wp {
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  margin: 0;
  background: transparent;
  padding: 0.6rem 0.75rem 0.5rem;
}

.chart figcaption {
  font-family: var(--data);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  padding: 0.3rem 0.2rem 0.2rem;
}

/* Bench Blunder gets the siren label (README §3); other superlatives stay green */
.stat-strip .label.blunder { color: var(--siren); }

/* drill-in chevron on archive rows (TEMPLATE-NOTES #4) */
.archive-list .chev { color: var(--field); font-weight: 700; }

/* club avatars — proxied Sleeper art with a monogram fallback */
.av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -5px;
  background: var(--card-head);
  display: inline-block;
  margin-right: 7px;
}
span.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--data);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-mute);
}
.av-lg { width: 46px; height: 46px; flex-shrink: 0; vertical-align: middle; }
span.av-lg { font-size: 18px; }
.scoreline .av { width: 18px; height: 18px; vertical-align: -4px; margin: 0 5px 0 0; }
.scoreline .name:last-of-type .av { margin: 0 0 0 5px; }

/* form guide pills on club pages */
.form-pills { display: flex; gap: 6px; margin: 0.2rem 0 1.1rem; }
.form-pills .pill {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--card-head);
  color: var(--ink-mute);
}
.form-pills .pill.w { background: var(--field-deep); color: #c9f2d6; }
.form-pills .pill.l { background: #5c1f18; color: #f4c4bc; }

/* match centre: link row on edition cards */
.match .match-more {
  border-top: 1px solid var(--rule);
  padding: 0.6rem 0.95rem 0.7rem;
  margin: 0;
}
.match .match-more a { font-weight: 700; font-size: 0.8rem; text-decoration: none; }

/* tale of the tape */
.tape {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0.4rem 0 0.5rem;
}
.tape-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
}
.tape-row + .tape-row { border-top: 1px solid var(--rule); }
.tape-row.tape-head { background: var(--card-head); font-weight: 700; font-size: 0.82rem; }
.tape-side { font-family: var(--data); font-size: 0.85rem; color: var(--ink-mute); }
.tape-side.b { text-align: right; }
.tape-side.win { color: var(--field); font-weight: 700; }
.tape-head .tape-side { font-family: var(--body); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tape-pos {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
  min-width: 5.5rem;
}

/* lineup box scores */
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 560px) { .lineups { grid-template-columns: 1fr; } }
.lineup {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.lineup-head {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--card-head);
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
}
.lineup-head .ppts { margin-left: auto; }
.lineup-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
}
.lineup-row .slot {
  font-family: var(--data);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  min-width: 2.4rem;
}
.lineup-row .pname { color: var(--ink-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lineup-row .ppts, .lineup-head .ppts { font-family: var(--data); font-size: 0.8rem; color: var(--ink-mute); margin-left: auto; }
.lineup-row.best .pname, .lineup-row.best .ppts { color: var(--field); font-weight: 700; }
.lineup-row.zero .pname, .lineup-row.zero .ppts { color: #6b6963; }
.lineup-row.bench { background: rgba(0, 0, 0, 0.15); }

/* points race: second series + caption keys */
.chart-line.loser { stroke: var(--ink-mute); }
.chart-label.b { fill: var(--ink-mute); }
.chart figcaption .race-a { color: var(--field); font-weight: 700; }
.chart figcaption .race-b { color: var(--ink-soft); font-weight: 700; }

/* teams ranking rows */
.teams-list .team-row { display: block; }
.team-row-top { display: flex; align-items: center; gap: 0.5rem; }
.team-row-top .pos { font-weight: 800; font-size: 0.82rem; min-width: 1.4rem; }
.team-row-top .ed { margin-left: auto; }
.pos-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0.45rem; padding-left: 1.9rem; }
.pos-chips .chip {
  font-family: var(--data);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--card-head);
  color: var(--ink-mute);
}
.pos-chips .chip b { color: var(--ink); }

/* the crest — pixel art stays pixel art */
.masthead .crest {
  display: block;
  margin: 0 auto 0.4rem;
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
}

/* typographic niceties */
h2.headline { text-wrap: balance; }
.standfirst { text-wrap: pretty; }
::selection { background: var(--field-deep); color: #fff; }

/* previous/next edition navigation strip */
.weeknav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: var(--card-head);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
}
.weeknav a { font-weight: 700; font-size: 0.82rem; text-decoration: none; }
.weeknav .ft { font-family: var(--data); font-size: 0.63rem; color: var(--ink-mute); }
.weeknav.compact { margin-bottom: 1.1rem; padding: 0.45rem 0.8rem; }

/* 404 — ghosted numeral + pill button (adopted mock 3h, TEMPLATE-NOTES #3) */
.err-code {
  font-family: var(--data);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: #26292e;
  margin-bottom: 0.4rem;
}
a.btn-pill {
  display: inline-block;
  background: var(--field-deep);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}
a.btn-pill:hover { background: #0f4423; color: #fff; }
