/* =============================================================================
   Étalons Analytics — page components
   -----------------------------------------------------------------------------
   Everything below sits on the tokens and primitives defined in style.css:
   the page header band, the player and match entity heads, the roster / match
   list / timeline / lineup / stat-bar components, the long-form methodology
   page, and motion.
   ========================================================================== */

/* =============================================================================
   page header band
   ========================================================================== */

.hero-band {
  background: var(--surface);
  border-bottom: 1px solid var(--hair);
}

.hero-band .inner { padding-block: 30px 28px; }

.eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--red);
  margin: 0 0 9px;
}

.hero-band h1 {
  font-family: var(--serif);
  font-size: clamp(27px, 2.1vw + 18px, 37px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.016em;
  margin: 0;
  max-width: 26ch;
}

.hero-band > .inner > p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 11px 0 0;
  max-width: 74ch;
}

/* The next scheduled match, under the home-page lead. Present as a statement
   either way: a fixture, or a note that none is published.
   Selectors are qualified past `.hero-band > .inner > p:not(.eyebrow)` above,
   which otherwise sets the size and colour of every paragraph in the band. */
.hero-band > .inner > p.nextmatch {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: none;
}

.nextmatch .lbl {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--red);
  margin-right: 7px;
}

.nextmatch strong { color: var(--ink); font-weight: 600; }

.hero-band > .inner > p.nextmatch.none {
  color: var(--muted);
  font-size: 12.5px;
}

/* match pages: "Burkina Faso 0 – 3 Côte d'Ivoire" */
.match-page .hero-band h1 { max-width: none; }

.match-page .hero-band h1 span {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82em;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 0 0.12em;
}

/* =============================================================================
   breadcrumb
   ========================================================================== */

.crumb {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 20px 0 18px;
}

.crumb a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.crumb a:hover { border-bottom-color: var(--rule); }

/* =============================================================================
   entity head — player and coach identity inside the band
   ========================================================================== */

.entity {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.entity .photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: var(--r-s);
  object-fit: cover;
  object-position: center top;
  background: var(--neutral-bg);
  border: 1px solid var(--hair);
}

.entity .meta {
  flex: 1 1 260px;
  min-width: 0;
}

.entity h1 { margin: 0; }

.entity .sub {
  color: var(--ink-2);
  font-size: 14px;
  margin: 8px 0 0;
}

.photo-credit {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
  margin: 10px 0 0;
  max-width: 62ch;
}

.photo-credit a { color: var(--muted); text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--ink-2); }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-bg);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--hair);
  user-select: none;
}

/* the same initials block, at portrait size */
.entity .photo.avatar {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* =============================================================================
   roster — the person card
   -----------------------------------------------------------------------------
   Two markup shapes exist in the generated HTML: three block children after the
   picture (index, coach lists) and a single wrapper element holding three spans
   (players index). Explicit grid placement makes both stack identically, which
   a flex row would not.
   ========================================================================== */

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(202px, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  overflow: hidden;
}

.pcard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 12px;
  background: var(--surface);
  padding: 11px 13px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.pcard .pic {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 42px;
  height: 42px;
  border-radius: var(--r-s);
  object-fit: cover;
  object-position: center top;
  background: var(--neutral-bg);
  flex: none;
}

.pcard .nm,
.pcard .rl,
.pcard .stat {
  grid-column: 2;
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcard .nm { grid-row: 1; }
.pcard .rl { grid-row: 2; }
.pcard .stat { grid-row: 3; }

/* the wrapper-element variant: it owns rows 1–3 and stacks its own spans */
.pcard > span:not([class]),
.pcard > div:not([class]) {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 0;
}

.pcard > span:not([class]) > .nm,
.pcard > span:not([class]) > .rl,
.pcard > span:not([class]) > .stat { grid-column: auto; grid-row: auto; }

.pcard .nm {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.pcard .rl {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
}

.pcard .stat {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.pcard .rl .pill { margin-left: 4px; }

a.pcard { transition: background-color 0.15s var(--ease); }
a.pcard:hover { background: var(--tint); box-shadow: inset 2px 0 0 var(--red); }
a.pcard:hover .nm { text-decoration: underline; text-decoration-thickness: 1px; }
a.pcard:focus-visible { outline-offset: -2px; }

/* -----------------------------------------------------------------------------
   the home page's top six
   -----------------------------------------------------------------------------
   A fixed column count, unlike auto-fill, guarantees six cards fill their rows
   exactly: 3x2, 2x3 or 6x1. Auto-fill sized the columns to the viewport instead,
   so a wide screen got five across and left the sixth alone beside four empty
   cells showing the grid's own background. Being a short, prominent list it also
   carries a larger portrait than the 129-card index.
   -------------------------------------------------------------------------- */

.roster.feature { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.roster.feature .pcard { padding: 15px 16px; column-gap: 14px; }
.roster.feature .pic { width: 58px; height: 58px; }
.roster.feature .nm { font-size: 15px; }
.roster.feature .rl { font-size: 12px; }
.roster.feature .stat { font-size: 12.5px; }

@media (max-width: 900px) {
  .roster.feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .roster.feature { grid-template-columns: minmax(0, 1fr); }
}

/* =============================================================================
   match list
   ========================================================================== */

.mlist {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  overflow: hidden;
}

/* the opponent column is capped rather than elastic so the score stays next to
   the name and the competition still hugs a clean right edge */
.mrow {
  display: grid;
  grid-template-columns: 96px 21px minmax(0, 340px) 52px minmax(0, 1fr);
  gap: 0 12px;
  align-items: center;
  background: var(--surface);
  padding: 7px 13px;
  font-size: 13.5px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s var(--ease);
}

.mrow:hover { background: var(--tint); box-shadow: inset 2px 0 0 var(--red); }
.mrow:hover .opp { text-decoration: underline; text-decoration-thickness: 1px; }
.mrow:focus-visible { outline-offset: -2px; }

.mrow .dt {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.mrow .opp {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mrow .sc {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.mrow .cmp {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================================================
   match timeline — minute column, spine, event
   ========================================================================== */

.timeline {
  position: relative;
  border-top: 1px solid var(--hair);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 43px;
  width: 1px;
  background: var(--hair);
}

.tevent {
  display: grid;
  grid-template-columns: 36px 42px minmax(0, 1fr);
  gap: 0 14px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--row);
  font-size: 13px;
}

.tevent:last-child { border-bottom: 0; }

.tevent .min {
  text-align: right;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tevent .mark {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tevent.bf .mark { color: var(--red); }
.tevent.opp .mark { color: var(--ink-2); }

.tevent .who { font-weight: 600; }
.tevent .what { color: var(--ink-2); font-weight: 400; }

/* =============================================================================
   lineup
   ========================================================================== */

.lineup {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0 26px;
}

.lrow {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid var(--row);
  font-size: 13px;
}

.lrow .pos {
  flex: none;
  min-width: 22px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.lrow > span:not([class]) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lrow .mins {
  flex: none;
  min-width: 30px;
  text-align: right;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lrow a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
}

.lrow a:hover { border-bottom-color: var(--red); }

/* =============================================================================
   definition list — identity / record / match card panels
   ========================================================================== */

.kv {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0;
  margin: 0;
  font-size: 13px;
}

.kv dt,
.kv dd {
  padding: 5px 0;
  border-bottom: 1px solid var(--row);
  min-width: 0;
}

.kv dt {
  color: var(--muted);
  font-size: 12px;
  padding-right: 14px;
}

.kv dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

.kv dt:last-of-type,
.kv dd:last-of-type { border-bottom: 0; }

/* =============================================================================
   team stat comparison
   ========================================================================== */

.statbars {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.statrow .lbl {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: baseline;
  gap: 0 6px;
  margin-bottom: 5px;
}

.statrow .lbl span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.statrow .lbl span:nth-child(2) {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statrow .lbl span:last-child {
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.statrow .bar {
  height: 6px;
  background: var(--bar-track);
  border-radius: 3px;
  overflow: hidden;
}

.statrow .bar i {
  display: block;
  height: 100%;
  background: var(--red);
  border-right: 2px solid var(--surface);
}

/* =============================================================================
   filter toolbar
   ========================================================================== */

.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 24px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}

.filters label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}

.filters .count {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* =============================================================================
   prev / next
   ========================================================================== */

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-size: 13px;
}

.pager a {
  color: var(--ink-2);
  text-decoration: none;
  max-width: 46%;
}

.pager a:last-child { text-align: right; }
.pager a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================================
   methodology — the one long-form page, set as an article
   ========================================================================== */

/* the generated page ships both a div.methodo and a section#methodo carrying the
   same id, and boot.js writes the prose into whichever the DOM returns first —
   so both have to be styled. */
.methodo,
main > section#methodo {
  max-width: 76ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.methodo h3,
main > section#methodo h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 30px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}

.methodo h3:first-child,
main > section#methodo h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.methodo p,
main > section#methodo p { margin: 0 0 4px; }

.methodo code,
main > section#methodo code {
  font-size: 12.5px;
  white-space: nowrap;
}

.contact { font-size: 13.5px; color: var(--ink-2); }

/* =============================================================================
   photo credits
   ========================================================================== */

.credits {
  columns: 3 240px;
  column-gap: 30px;
  column-rule: 1px solid var(--hair);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.credits div {
  break-inside: avoid;
  padding: 3px 0;
}

.credits a { color: var(--ink-2); text-underline-offset: 2px; }


/* --- theme toggle, sits beside the language switch in the masthead ------- */

button.theme {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--masthead-ink);
  border-radius: 3px;
  padding: 5px 8px;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

button.theme:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

button.theme:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* The half-disc is drawn as inline SVG in layout.py rather than a font glyph.
   It was a CSS `content` escape for U+25D1, but the backslash sequence was
   mangled on the way into this file and rendered as a control character plus
   the literal text "D1" -- and even written correctly it would have depended on
   the reader having a font that carries that codepoint. */
button.theme svg { display: block; fill: currentColor; }

/* =============================================================================
   motion
   -----------------------------------------------------------------------------
   Transitions only, never keyframes: the end state is a plain declaration, so
   content is visible even if the transition never runs. boot.js adds .in via an
   IntersectionObserver plus a 1.2s catch-all.
   ========================================================================== */

html.js-anim .reveal {
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

html.js-anim .card.reveal { transform: translateY(6px); }

html.js-anim .reveal.in {
  opacity: 1;
  transform: none;
}

/* a print job never runs the observer, so the end state has to be unconditional */
@media print {
  html.js-anim .reveal { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
  html.js-anim .reveal { opacity: 1; transform: none; }
}

/* =============================================================================
   responsive
   ========================================================================== */

@media (max-width: 860px) {
  .credits { columns: 2 220px; }
}

@media (max-width: 720px) {
  .hero-band .inner { padding-block: 24px 22px; }
  .hero-band h1 { max-width: none; }
  .entity { gap: 16px; }
  .entity .photo { width: 72px; height: 72px; }
  .crumb { margin: 16px 0 14px; }
  .mrow { grid-template-columns: 84px 20px minmax(0, 1fr) 46px; gap: 0 10px; }
  .mrow .cmp { display: none; }
  .lineup { grid-template-columns: 1fr; }
  .filters .count { margin-left: 0; }
  .credits { columns: 1; column-rule: 0; }
  .methodo,
  main > section#methodo { font-size: 14px; }
}

@media (max-width: 420px) {
  .mrow { grid-template-columns: 74px 19px minmax(0, 1fr) 42px; gap: 0 8px; padding: 8px 11px; }
  .mrow .dt { font-size: 11px; }
  .tevent { grid-template-columns: 30px 40px minmax(0, 1fr); gap: 0 11px; }
  .timeline::before { left: 35px; }
  .pcard { column-gap: 10px; padding: 10px 11px; }
  .pcard .pic { width: 38px; height: 38px; }
  .statrow .lbl { grid-template-columns: 40px minmax(0, 1fr) 40px; }
}

/* the invitation into the plain-language glossary, under the home-page lead */
.hero-band > .inner > p.startline {
  margin: 10px 0 0;
  font-size: 13px;
}

.startline a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.startline a:hover { border-bottom-color: var(--red); }

/* =============================================================================
   plain-language note under a figure
   -----------------------------------------------------------------------------
   The subtitle above a chart says what is being measured; this says what the
   figure means to someone who does not read charts for a living, and where it
   matters, what it does not mean. Set apart by a rule and a label rather than a
   tint, so it reads as an aside instead of a warning.
   ========================================================================== */

.plain {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
}

.plain-lbl {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--red);
  margin-bottom: 5px;
}

.plain p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 66ch;
}

/* =============================================================================
   computed facts ("Did you know?")
   -----------------------------------------------------------------------------
   A list, not cards: these are sentences to be read in order, and each already
   carries its own numbers. The red rule marks them as assertions the site is
   willing to stand behind.
   ========================================================================== */

ul.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  overflow: hidden;
}

ul.facts li {
  background: var(--surface);
  padding: 15px 18px 15px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--red);
}

ul.facts li strong { font-weight: 600; }

@media (min-width: 900px) {
  ul.facts { grid-template-columns: 1fr 1fr; }
}

/* the announced fixture list, on the projections page */
ul.fixlist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

ul.fixlist li {
  padding: 9px 0;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

ul.fixlist li strong { color: var(--ink); font-weight: 600; }

/* =============================================================================
   win / draw / loss bar, on the home page outlook
   -----------------------------------------------------------------------------
   One bar rather than three numbers, because the three outcomes are exhaustive
   and the eye should read them as shares of one whole.
   ========================================================================== */

.wdlbar {
  display: flex;
  height: 30px;
  margin: 14px 0 16px;
  border-radius: var(--r-s);
  overflow: hidden;
  background: var(--neutral-bg);
  font-variant-numeric: tabular-nums;
}

.wdlbar .seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--on-fill);
  transition: width 0.3s var(--ease);
}

.wdlbar .seg i { font-style: normal; padding: 0 4px; }
/* a narrow segment cannot hold its own label without overflowing */
.wdlbar .seg[style*="width:0%"] i,
.wdlbar .seg[style*="width:1%"] i,
.wdlbar .seg[style*="width:2%"] i,
.wdlbar .seg[style*="width:3%"] i { display: none; }

.wdlbar .w { background: var(--s3); }
.wdlbar .d { background: var(--muted); }
.wdlbar .l { background: var(--red); }

/* the exact-score distribution: bars relative to the likeliest, so the eye
   reads how flat the distribution really is */
ul.scorelist { list-style: none; margin: 12px 0 0; padding: 0; }

ul.scorelist li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-variant-numeric: tabular-nums;
}

ul.scorelist .sl { font-weight: 600; font-size: 13.5px; color: var(--ink); }
ul.scorelist .track { height: 10px; background: var(--neutral-bg); border-radius: 2px; }
ul.scorelist .track i { display: block; height: 100%; background: var(--s2); border-radius: 2px; }
ul.scorelist li:first-child .track i { background: var(--red); }
ul.scorelist .pv { text-align: right; font-size: 12px; color: var(--ink-2); }

/* squad-strength band */
.bandline { margin: 12px 0 4px; display: flex; align-items: baseline; gap: 12px; }
.bandline strong { font-family: var(--serif); font-size: 26px; font-weight: 600; }

.band {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-fill);
}

.band.strong  { background: var(--s3); }
.band.neutral { background: var(--muted); }
.band.weak    { background: var(--red); }

/* call-up windows: one roster per announced squad */
.windowblock { margin-bottom: 26px; }
.windowblock h3 { margin: 0 0 3px; font-size: 15px; }
.windowblock .wcount {
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--neutral-bg); border-radius: 999px; padding: 2px 8px;
  margin-left: 6px; vertical-align: middle;
}
.windowblock .sub { margin: 0 0 10px; }

/* squad movements: new names, recalls, absentees */
.newsgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  overflow: hidden;
  margin: 0 0 24px;
}

.newscard { background: var(--surface); padding: 14px 16px; }
.newscard a { text-decoration: none; color: inherit; }
.newscard a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; }
.newscard strong { font-size: 14.5px; font-weight: 600; }
.newscard .sub { margin: 2px 0 9px; font-size: 11.5px; }
.newscard .kv { margin: 0; font-size: 11.5px; }
/* the three groups read differently at a glance */
.newscard.new    { box-shadow: inset 3px 0 0 var(--s3); }
.newscard.recall { box-shadow: inset 3px 0 0 var(--s2); }
.newscard.absent { box-shadow: inset 3px 0 0 var(--red); }

/* the list we hold is older than the next match: say so, prominently */
.stalelist {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  background: var(--tint);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  border-radius: 0 var(--r-s) var(--r-s) 0;
}
.bandline .bandpct { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* =============================================================================
   post-match report — how the match unfolded, phases of play, player detail

   All of it is markup and CSS: match pages ship no JavaScript, so a bar here is
   a div with a width and arrives with the page rather than after it.
   ========================================================================== */

.shape { margin-bottom: 18px; }

.shapebar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bar-track);
}

.shapebar i { display: block; height: 100%; }
.shapebar .lead { background: var(--s3); }
.shapebar .level { background: var(--muted); }
.shapebar .trail { background: var(--red); }

.shape .sub { margin-top: 7px; }

.shape .sub .lead,
.shape .sub .level,
.shape .sub .trail { font-weight: 600; }

.shape .sub .lead { color: var(--s3); }
.shape .sub .trail { color: var(--red); }

/* goals by quarter-hour: scored above the axis, conceded below */
.gwins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

.gw {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.gw i {
  display: block;
  width: 100%;
  background: var(--bar-track);
  border-radius: 2px;
}

.gw .gf, .gw .ga {
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.gw .gf { color: var(--s3); }
.gw .ga { color: var(--red); }

.gw em {
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* half-by-half and per-player tables */
.halves, .pstats { width: 100%; border-collapse: collapse; font-size: 13px; }

.halves th, .pstats th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: left;
  padding: 5px 8px;
  border-bottom: 1px solid var(--row);
  white-space: nowrap;
}

.halves td, .pstats td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--row);
  font-variant-numeric: tabular-nums;
}

.halves .num, .pstats .num { text-align: right; }
.halves tr:last-child td, .pstats tr:last-child td { border-bottom: 0; }

.pstats .what { color: var(--muted); font-size: 11px; }

/* "66/95" over "69 %": the share never appears without the counts behind it */
.rr { display: inline-flex; flex-direction: column; align-items: flex-end; }
.rr b { font-weight: 600; }
.rr i { font-style: normal; font-size: 10px; color: var(--muted); }

/* phases of play reuse the team-stat comparison bar */
.phasegrp {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 16px;
}

.phaserow .lbl {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 62px;
  align-items: baseline;
  gap: 0 6px;
  margin-bottom: 5px;
}

.phaserow .lbl span:nth-child(2) {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phaserow .lbl span:first-child .rr { align-items: flex-start; }

.phaserow .bar {
  height: 6px;
  background: var(--bar-track);
  border-radius: 3px;
  overflow: hidden;
}

.phaserow .bar i {
  display: block;
  height: 100%;
  background: var(--red);
  border-right: 2px solid var(--surface);
}

.standouts {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}

.standouts li { color: var(--ink-2); }
.standouts b { color: var(--ink); }
