/* The web fonts are linked from each base template's <head> rather than imported here:
   an import inside a stylesheet cannot start downloading until this file has itself
   arrived and been parsed, which puts two render-blocking requests in series. */

/* ==========================================================================
   IL RITRATTO — the cinematic, photo-first theme (redesign approved 2026-08-27).

   Warm paper, one serif voice for everything that carries emotion (the name, the lede,
   the numbers, the chapter years) and a neutral grotesk for reading. The home page opens
   on a full-bleed photograph with the navigation laid over it — but ONLY when that photo
   carries its author and licence (see `_blocks.html.j2`); otherwise the page opens on
   paper and nothing is claimed that we cannot attribute.

   Alignment contract, same as the other two themes: one spacing scale, numeric columns
   right-aligned with tabular figures, every image in a fixed box.
   ========================================================================== */

:root {
  --pap: #f5f3ef;
  --pap-2: #eceae4;
  --ink: #100f0d;
  --ink-2: #43403b;
  /* Contrast measured with Lighthouse on real generated pages, 2026-09-17: the
     previous value failed WCAG AA for normal text (#8b857d on the page ground gave
     3.29, the floor is 4.5) across 35 elements per page — captions, table
     headers, the table of contents label. Darkened the minimum that clears it,
     hue and saturation untouched, so the theme reads the same. */
  --mut: #736e67;
  --hair: #d9d4cc;
  /* Contrast measured with Lighthouse on real generated pages, 2026-09-17: the
     previous value failed WCAG AA for normal text (#cf3a1e on the page ground gave
     4.43, the floor is 4.5) across 9 elements per page — captions, table
     headers, the table of contents label. Darkened the minimum that clears it,
     hue and saturation untouched, so the theme reads the same. */
  --red: #cb391d;
  --maxw: 1240px;
  --measure: 72ch;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2.25rem; --s7: 3.5rem;

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { position: relative; margin: 0; background: var(--pap); color: var(--ink); font-family: var(--font-body); font-size: 1.05rem; line-height: 1.62; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(var(--s4), 4vw, var(--s7)); }
.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; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s4); top: var(--s2); z-index: 60; background: var(--ink); color: var(--pap); padding: var(--s2) var(--s3); }
.ser { font-family: var(--font-display); font-weight: 400; line-height: .96; margin: 0; }
.lab { font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- the shell: over the photograph, or on paper ---------- */
.site-header { border-bottom: 1px solid var(--hair); }
.site-header__inner { display: flex; align-items: center; gap: var(--s5); min-height: 64px; }
.site-brand { font-family: var(--font-display); font-size: 1.2rem; color: inherit; text-decoration: none; white-space: nowrap; }
.site-nav { margin-left: auto; min-width: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s1); flex-wrap: wrap; }
.site-nav a { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; color: inherit; text-decoration: none; opacity: .72; padding: var(--s2) var(--s3); border-bottom: 1px solid transparent; }
.site-nav a:hover { opacity: 1; }
.site-nav a[aria-current="page"] { opacity: 1; border-bottom-color: currentColor; }
/* Laid over the band: absolute, transparent, white — the photograph is the background. */
.onimg .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; border-bottom: 0; color: #fff; }
/* A player page copied into a club site: the club's header sits above the band as an
   ordinary bar instead of overlaying the photo (see longread/base.html.j2). */
.onimg .site-header--club { position: static; border-bottom: 1px solid var(--hair); color: inherit; }

/* ---------- the band ---------- */
.band { position: relative; overflow: hidden; background: #0d0c0b; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) contrast(1.12) brightness(.94); }
/* The veil has to earn legibility against a BRIGHT photograph, not just a dark one: the
   live band is a floodlit arena, where a 5% wash left the kicker unreadable. It darkens
   hard from the middle down, where all the text sits. */
.band .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 8, .6) 0 15%, rgba(10, 9, 8, .18) 32%, rgba(10, 9, 8, .74) 62%, rgba(10, 9, 8, .93)); }
.band__in { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(420px, 76vh, 760px); padding-bottom: clamp(var(--s5), 4vw, var(--s6)); }
.band__kick { color: #f3c9bd; margin: 0 0 var(--s4); }
.band__h1 { color: #fff; font-size: clamp(2.6rem, 10vw, 7.4rem); letter-spacing: -.015em; text-wrap: balance; }
.band__facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: var(--s5) 0 0; color: #e6e1da; font-size: .94rem; }
.band__facts b { color: #fff; font-weight: 600; }
.cap { font-size: .74rem; color: var(--mut); padding-block: var(--s3) 0; margin: 0; }

/* ---------- the page body ---------- */
.longread { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(var(--s5), 4vw, var(--s7)); padding-block: clamp(var(--s5), 4vw, var(--s6)) var(--s7); align-items: start; }
/* `min-width: 0` and a link that may break anywhere: without both, a long page title in
   the index sets the grid track's min-content width and the whole page scrolls sideways at
   360px. Measured live; test-guarded. */
.toc { position: sticky; top: var(--s5); min-width: 0; font-size: .88rem; }
.toc__list a, .toc__nav a { overflow-wrap: anywhere; }
.toc__label { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); margin: 0 0 var(--s3); }
.toc__label + * + .toc__label, .toc__list + .toc__label { margin-top: var(--s5); }
.toc__list, .toc__nav { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.toc__list li, .toc__nav li { margin-bottom: var(--s2); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a[aria-current="page"] { color: var(--red); }
.longform { max-width: 100%; }

.kicker { color: var(--mut); margin: 0 0 var(--s4); }
.lr-title { font-size: clamp(2.1rem, 6vw, 4.2rem); letter-spacing: -.015em; margin: 0 0 var(--s5); text-wrap: balance; }
.lr-portrait { margin: 0 0 var(--s5); max-width: 420px; }
.lr-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--pap-2); }

.lede { padding-block: clamp(var(--s5), 5vw, var(--s7)) clamp(var(--s4), 3vw, var(--s5)); }
.lede p { font-family: var(--font-display); font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1.18; margin: 0; max-width: 26ch; }
.lead { font-size: 1.1rem; color: var(--ink-2); }

/* A club's opening slot keeps its own `<h2>` (the disambiguation contract needs it —
   see club_index.html.j2), so it cannot go headingless like a player's `.lede`; this
   only gives its first paragraph the same weight a lead paragraph gets elsewhere. */
.lede-section > p:first-of-type { font-size: 1.2rem; color: var(--ink-2); }

/* ---------- the figure row ---------- */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); border-block: 1px solid var(--hair); }
.figs div { padding: var(--s5) var(--s2); border-right: 1px solid var(--hair); }
.figs div:last-child { border-right: 0; }
.figs b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: .95; font-variant-numeric: tabular-nums; }
.figs b i { font-style: normal; font-size: .45em; color: var(--mut); }
.figs span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); margin-top: var(--s2); }

/* ---------- prose ---------- */
/* The reading column is CENTRED, not left-hugged. Left-aligned inside a wide container it
   piled every spare pixel on the right — at a 1250 px window that is nearly half the screen,
   and it reads as a broken layout rather than as a margin. Centred, the same whitespace
   reads as a page. The measure is also wider than the classic 64ch: these are short
   sections with headings, not a novel. */
.prose { max-width: var(--measure); margin-inline: auto; padding-block: clamp(var(--s5), 3vw, var(--s6)) 0; }
/* A heading must never wrap beside a floated figure: its first line ends up alone and
   off to one side, which reads as a broken page. Clear first, then set. */
.prose h2 { clear: both; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.08; margin: 0 0 var(--s4); text-wrap: balance; }
.prose h3 { clear: both; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin: var(--s5) 0 var(--s3); }
.prose p { margin: 0 0 var(--s4); color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 var(--s4) var(--s5); padding: 0; }
.prose li { margin-bottom: var(--s2); }
.note { font-size: .84rem; color: var(--mut); margin: var(--s4) 0 0; }

/* ---------- palmarès and the split ---------- */
.pal { padding-block: clamp(var(--s5), 5vw, var(--s6)); }
.pal h2, .sec h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 0 0 var(--s5); }
.pal ul, .pal-split { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.pal li, .pal-split li { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr) auto; gap: var(--s4); align-items: baseline; padding: var(--s3) 0; border-bottom: 1px solid var(--hair); }
.pal b, .pal-split b { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.pal span, .pal-split span { font-size: 1.05rem; }
.pal em, .pal-split em { font-style: normal; font-size: .8rem; color: var(--mut); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- tables ----------
   The numeric class and the nowrap modifier stay separate: merged, a 300-character trophy
   list cannot wrap and the page scrolls sideways. That was a live defect; it is
   test-guarded.
   ---------------------------------------------------------------------------------- */
.sec { padding-block: clamp(var(--s5), 5vw, var(--s6)); }
.data-figure__caption, .tbl-cap { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); margin: var(--s5) 0 var(--s3); }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.data-table, .meta-row { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table caption { text-align: left; }
.data-table th, .meta-row th { text-align: left; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.data-table td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--hair); vertical-align: top; overflow-wrap: anywhere; }
.meta-row td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--hair); vertical-align: top; overflow-wrap: anywhere; }
.data-table td:first-child { overflow-wrap: break-word; }
.data-table tr.now td { color: var(--red); }
.data-table__num { text-align: right; font-family: var(--font-display); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.data-table__numh { text-align: right; }
.data-table__nowrap { white-space: nowrap; }

/* Club pages (Plan A2): the squad list reads as this theme's own data table, warm
   paper ground and a serif-red accent link, matching .data-table's idiom exactly. */
table.squad { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: var(--s6); }
table.squad th { text-align: left; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--ink); white-space: nowrap; }
table.squad td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--hair); overflow-wrap: anywhere; }
table.squad a { color: var(--red); font-weight: 600; text-decoration: none; }
table.squad a:hover { text-decoration: underline; }
.data-table--kv { max-width: 640px; }
.cell-list { list-style: none; margin: 0; padding: 0; }
.cell-list li { font-size: .9rem; overflow-wrap: anywhere; }
.stats-kv { list-style: none; margin: 0; padding: 0; }
.stats-kv li { font-size: .9rem; overflow-wrap: anywhere; }
.trophies { margin: 0; padding-left: var(--s5); }
.trophies li { margin-bottom: var(--s2); overflow-wrap: anywhere; }
.src.small { font-size: .8rem; color: var(--mut); }

/* ---------- figures in the prose ---------- */
.inline-figure { margin: 0 0 var(--s4); max-width: 240px; }
/* `height: auto` is load-bearing, not tidiness: the macro emits the image's real
   `width`/`height` attributes (good for layout stability), and without this the
   ATTRIBUTE height wins over `aspect-ratio` — a 3840x2571 photo rendered 240px wide
   and 2571px TALL, a sliver down the whole page. That is the defect the 2026-09-16
   review reported as "вторая картинка вытянута вниз, заезжает на текст". */
.inline-figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--pap-2); }
/* A landscape source gets a landscape box. Forcing a 4/5 portrait crop on a wide
   photo keeps a vertical sliver of it and throws the subject away. */
.inline-figure--wide { max-width: 380px; }
.inline-figure--wide img { aspect-ratio: 3 / 2; }
.inline-figure--right { float: right; margin-left: var(--s5); }
.inline-figure--left { float: left; margin-right: var(--s5); }
.credit { font-size: .72rem; color: var(--mut); margin-top: var(--s2); line-height: 1.4; }

/* ---------- news ---------- */
.news-list { list-style: none; margin: var(--s5) 0 0; padding: 0; border-top: 1px solid var(--hair); }
.news-item { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s2) var(--s5); padding-block: var(--s5); border-bottom: 1px solid var(--hair); align-items: baseline; }
.news__date { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); font-variant-numeric: tabular-nums; }
.news__link { grid-column: 2; font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.8rem); line-height: 1.12; color: var(--ink); text-decoration: none; box-shadow: inset 0 -1px 0 var(--red); overflow-wrap: anywhere; }
a.news__link:hover { color: var(--red); }
.news__link--plain { box-shadow: inset 0 -1px 0 var(--hair); }
.news__src { grid-column: 2; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.news__thumb { grid-column: 2; width: 160px; max-width: 100%; height: auto; object-fit: cover; background: var(--pap-2); }
.news__prose, .news__summary { grid-column: 2; margin: 0; color: var(--ink-2); max-width: var(--measure); }
.news-archive { padding-block: clamp(var(--s5), 4vw, var(--s6)); }
.news-archive h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 var(--s4); }
.news-item--archive { padding-block: var(--s3); }

/* ---------- FAQ, see also, colophon ---------- */
.faq { padding-block: clamp(var(--s5), 4vw, var(--s6)); }
.faq h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 0 0 var(--s5); }
.faq__list { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.faq__item { border-top: 1px solid var(--hair); padding-top: var(--s4); }
.faq__q { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.15; margin: 0 0 var(--s2); }
.faq__a { margin: 0; color: var(--ink-2); }

.see-also { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: baseline; padding-top: clamp(var(--s5), 3vw, var(--s6)); }
.see-also__label { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); margin: 0; }
.see-also__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.see-also__list a { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; border: 1px solid var(--ink); padding: var(--s2) var(--s4); }
.see-also__list a:hover { background: var(--ink); color: var(--pap); }

.site-footer { border-top: 1px solid var(--hair); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding-block: var(--s5) var(--s6); font-size: .78rem; color: var(--mut); align-items: baseline; }
.site-footer__updated, .site-footer__disclaimer { margin: 0; }
.site-footer__disclaimer { max-width: 62ch; }
.site-footer__disclaimer strong { color: var(--ink-2); }
.site-footer__nav { margin-left: auto; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s4); }
.site-footer__nav a { color: var(--mut); text-decoration: none; }
.site-footer__nav a:hover { color: var(--red); }

@media (max-width: 900px) {
  /* Wrapped, eight uppercase links turn the bar into a block that fills the screen. */
  .site-nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .site-nav ul::-webkit-scrollbar { display: none; }
  /* `1fr` is `minmax(auto, 1fr)` and still floors at min-content, which is exactly how
     the TOC widened the page at 390px. The zero floor is the whole fix. */
  .longread { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border-bottom: 1px solid var(--hair); padding-bottom: var(--s4); }
  .news-item { grid-template-columns: 1fr; }
  .news__link, .news__src, .news__prose, .news__summary, .news__thumb { grid-column: 1; }
  .pal li, .pal-split li { grid-template-columns: 4.4rem minmax(0, 1fr); }
  .pal em, .pal-split em { grid-column: 2; text-align: left; }
  .inline-figure--right, .inline-figure--left { float: none; margin-inline: 0; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* ---------------------------------------------------------------------------
   Club squad grid, squad filter and the home page's section doors
   (2026-09-16 design review). Three rules matter here and are repeated in every
   theme because each expresses them in its own tokens:

   1. A squad is faces, not a list of names. `_shared/_squad_grid.html.j2`.
   2. A portrait tile is 3:4 and the photo is cropped to it from the TOP — a
      centred crop on a 4:3 source cuts heads off.
   3. Nothing here may be the only route to a player's card: with JavaScript off
      every `.pc` is visible and the filter is inert.
   --------------------------------------------------------------------------- */
.sqfilter { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s5); }
.sqchip { font: inherit; font-size: .88rem; cursor: pointer; padding: var(--s1) var(--s3);
  border-radius: 999px; transition: background-color .14s ease, color .14s ease,
  border-color .14s ease; background: #fff; color: var(--mut); border: 1px solid var(--hair); }
.sqchip i { font-style: normal; opacity: .62; margin-left: .35em;
  font-variant-numeric: tabular-nums; }
.sqchip:hover { border-color: var(--red); color: var(--ink); }
.sqchip.is-on { background: var(--red); border-color: var(--red); color: #fff; }

.pgrid { list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  gap: var(--s4); }
.pc { margin: 0; }
.pc[hidden] { display: none; }
.pc-in { display: flex; flex-direction: column; height: 100%;
  text-decoration: none; overflow: hidden; background: #fffdf9; border: 1px solid var(--hair); border-radius: 2px; }
.pc--link .pc-in { transition: transform .15s ease, border-color .15s ease; }
.pc--link .pc-in:hover { transform: translateY(-3px); border-color: var(--red); }
.pc-ph { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: #ece8e1; }
.pc-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.pc-initials { position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2rem; letter-spacing: .04em; color: var(--mut); font-family: var(--font-display); }
.pc-body { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3); }
.pc-pos { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mut); }
.pc-name { font-size: .96rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.pc-site { margin-top: var(--s1); font-size: .74rem; font-weight: 600;
  overflow-wrap: anywhere; color: var(--red); }

.doors__lead { color: var(--mut); margin: 0 0 var(--s5); }
.doorgrid { list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: var(--s4); }
.door { margin: 0; }
.door a { display: flex; flex-direction: column; gap: var(--s2); height: 100%;
  padding: var(--s4); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease; background: #fffdf9; border: 1px solid var(--hair); border-radius: 2px; }
.door a:hover { transform: translateY(-2px); border-color: var(--red); }
.door__k { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.door__p { font-size: .86rem; line-height: 1.5; color: var(--mut); }
.door__go { margin-top: auto; padding-top: var(--s1); font-weight: 700; color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .pc--link .pc-in, .door a { transition: none; }
  .pc--link .pc-in:hover, .door a:hover { transform: none; }
}

/* A club crest is a badge, not a portrait: fixed plate, CONTAINED, on a light ground so
   a dark emblem stays visible in every theme (2026-09-16 review). */
.lr-crest { margin: 0 0 var(--s4); width: 128px; }
.lr-crest img { width: 128px; height: 128px; object-fit: contain; background: #fff;
  border: 1px solid var(--hair); border-radius: 3px; padding: var(--s2); aspect-ratio: auto; }
.lr-crest figcaption { font-size: .68rem; color: var(--mut); margin-top: var(--s1); }

/* Sibling club sites — the league's other clubs, on every club page. Quiet by design:
   it is a way out of the site, not a call to action, so it reads as a footnote rail. */
.siblings { max-width: var(--maxw); margin: var(--s7) auto var(--s6); padding-inline: clamp(var(--s4), 4vw, var(--s7)); border-top: 1px solid var(--hair); padding-top: var(--s5); }
.siblings__h { font-family: var(--font-body); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin: 0 0 var(--s3); }
.siblings__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); }
.siblings__item { display: flex; align-items: baseline; gap: var(--s2); }
.siblings__link { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); }
.siblings__link:hover { color: var(--red); border-bottom-color: var(--red); }
.siblings__city { font-size: .78rem; color: var(--mut); }

/* Provenance rail — the club's own site and its Wikidata item, checkable by the reader.
   Set below the content and above the siblings row, quieter than either. */
.sources { max-width: var(--maxw); margin: var(--s6) auto 0; padding-inline: clamp(var(--s4), 4vw, var(--s7)); }
.sources__h { font-family: var(--font-body); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin: 0 0 var(--s2); }
.sources__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: .85rem; }
.sources__list a { color: var(--ink-2); }
.sources__list a:hover { color: var(--red); }

/* Arena data on the arena page — a definition list, set as a two-column rail on wide
   screens and stacked rows on a phone. */
.arenafacts { margin: 0 0 var(--s5); padding: var(--s4) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3) var(--s5); }
.arenafacts__row { display: flex; flex-direction: column; gap: var(--s1); }
.arenafacts dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.arenafacts dd { margin: 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Club blocks on the longread home page — the numbers band, the squad
   snapshot and the news preview. These partials are shared with the other two
   themes; before 2026-09-16 longread's home page simply did not include them,
   so none of their classes had a rule here and they degraded to raw lists.
   Longread's take: no cards and no fills, only rules and the display face —
   the same restraint the rest of this theme keeps.
   ========================================================================== */

.numbers { margin: var(--s6) 0; }
.numgrid { list-style: none; margin: 0; padding: var(--s4) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s4); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.numgrid li { display: flex; flex-direction: column; gap: var(--s1); }
.numgrid b { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: .9; font-variant-numeric: tabular-nums; }
.numgrid span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); border-bottom: 1px solid var(--ink); padding-bottom: var(--s2); margin-bottom: var(--s4); }
.sec-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1; margin: 0; }
.more { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.snapshot { margin: var(--s6) 0; }
.snapgrid { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s4); }
.snapgrid b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.snapgrid b i { font-style: normal; font-size: .45em; color: var(--mut); margin-left: .15em; }
.snapgrid span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.snaprow { margin: 0 0 var(--s2); font-size: .92rem; color: var(--ink-2); }
.snaprow b { color: var(--ink); }
.snaprow .c { font-variant-numeric: tabular-nums; color: var(--red); }

.faces { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--s3); }
.faces a, .faces > li > span { display: flex; flex-direction: column; gap: var(--s2); text-decoration: none; color: var(--ink); }
.faces img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--pap-2); filter: grayscale(1); transition: filter .2s ease; }
.faces a:hover img { filter: none; }
.faces .ini { display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--pap-2); font-family: var(--font-display); font-size: 1.6rem; color: var(--mut); }
.faces em { font-style: normal; font-size: .8rem; line-height: 1.25; }
.faces a:hover em { color: var(--red); }

.newsprev { margin: var(--s6) 0; }
.nprev { list-style: none; margin: 0; padding: 0; }
.nprev li { border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3) 0; color: var(--ink); }
.nmeta { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); font-variant-numeric: tabular-nums; }
.ntitle { font-size: 1.02rem; line-height: 1.35; }

/* ---------- breadcrumb ----------
   See the editorial sheet for why this arrived late: the partial shipped unstyled on every
   sub-page of all 151 sites, rendering as a numbered list. */
.breadcrumb { margin: 0 0 var(--s4); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s2); color: var(--hair); }
.breadcrumb a { color: var(--mut); text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--ink); border-bottom-color: currentColor; }
.breadcrumb [aria-current="page"] { color: var(--ink-2); }

/* ---------- club transfers ---------- see editorial.css for why a season is one row. */
.transfers { padding-block: var(--s5); border-top: 1px solid var(--hair); }
.tablewrap { overflow-x: auto; }
.tt { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tt th { text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mut); padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tt tbody th { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0;
  text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--hair); }
.tt td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--hair);
  vertical-align: top; width: 40%; }
.mv { list-style: none; margin: 0; padding: 0; }
.mv li { padding-left: var(--s4); position: relative; margin-bottom: 2px; }
.mv li::before { position: absolute; left: 0; font-weight: 700; }
.mv.in li::before { content: "+"; color: var(--red); }
.mv.out li::before { content: "\2212"; color: var(--mut); }
.tt .none { color: var(--mut); }

/* ---- Player page copied into a club site (plan D), modelled on Real Madrid's player
   page: ONE header — the club's — then the player's own first screen (large portrait,
   the shirt number set big, the name, the role, a panel of facts), his pages as tabs
   under it, and the rest of the squad as a strip of faces at the foot. ---- */
.phero { background: var(--pap-2); color: var(--ink); border-bottom: 1px solid var(--hair); }
.phero__in { padding-top: var(--s4); }
.phero .breadcrumb, .phero .breadcrumb a { color: var(--ink-2); }
.phero__crumbs { margin: 0; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--s5), 4vw, var(--s7)); align-items: end; margin-top: var(--s4); }
.phero__ph { position: relative; margin: 0; align-self: stretch; aspect-ratio: 4 / 5; max-height: 560px; overflow: hidden; background: var(--ink); }
.phero__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.phero__ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s2) var(--s3); font-size: .68rem; letter-spacing: .03em; color: #eceae6; background: rgba(10, 10, 12, .72); }
.phero__ph--small { aspect-ratio: auto; align-self: end; width: 200px; height: 200px; border-radius: 50%; }
.phero__ini { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-display); font-size: clamp(3rem, 9vw, 6rem); color: var(--ink-2); }
.phero__id { padding-bottom: var(--s5); }
.phero__head { display: flex; align-items: flex-end; gap: var(--s4); margin: 0; }
.phero__no { font-family: var(--font-display); font-size: clamp(4.5rem, 11vw, 8.5rem); line-height: .82; color: var(--red); font-style: italic; }
.phero__nm { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1; padding-bottom: .08em; text-wrap: balance; }
.phero__role { margin: var(--s3) 0 0; font-size: 1.1rem; color: var(--ink-2); }
.phero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin: var(--s5) 0 0; padding: var(--s4) var(--s5); background: var(--ink); color: var(--pap); max-width: 560px; }
.phero__facts div { min-width: 0; }
.phero__facts dt { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: #bdb7ad; }
.phero__facts dd { margin: var(--s1) 0 0; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; }
.ptabs { margin-top: var(--s4); overflow-x: auto; scrollbar-width: none; }
.ptabs ul { display: flex; gap: var(--s5); margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.ptabs a { display: block; padding: var(--s3) 0; border-bottom: 3px solid transparent; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.ptabs a:hover { color: var(--ink); }
.ptabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); font-weight: 700; }
.psquad { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--hair); }
.psquad__h { margin: 0 0 var(--s4); font-family: var(--font-display); font-size: 1.6rem; }
.psquad__list { display: flex; gap: var(--s4); margin: 0; padding: 0 0 var(--s3); list-style: none; overflow-x: auto; scroll-snap-type: x proximity; }
.psquad__list li { flex: none; width: 112px; scroll-snap-align: start; }
.psquad__list a { display: block; color: inherit; text-decoration: none; font-size: .9rem; line-height: 1.25; }
.psquad__list img, .psquad__ini { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: var(--s2); border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--ink); color: var(--pap); font-weight: 700; }
.psquad__list a:hover span { text-decoration: underline; }
.psquad__back { display: inline-block; margin-top: var(--s4); color: var(--ink); font-weight: 600; text-decoration: none; }
.psquad__back:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .phero__grid { grid-template-columns: 1fr; }
  .phero__ph { max-height: 420px; }
  .phero__facts { padding: var(--s3) var(--s4); gap: var(--s3); }
  .phero__facts dd { font-size: 1.15rem; }
}
/* The page's own heading block stays on a copy — it carries the page's H1 — but without
   its photo: the player screen above already shows the portrait. */
.is-copy .band { background: var(--pap); }
.is-copy .band img, .is-copy .band .veil, .is-copy .band__facts, .is-copy .band + .cap { display: none; }
.is-copy .band__in { min-height: 0; padding-top: var(--s6); }
.is-copy .band__kick { color: var(--mut); }
.is-copy .band__h1 { color: var(--ink); font-size: clamp(2.2rem, 6vw, 4.4rem); }

/* A club page's breadcrumb, straight under the header — where a copied player page carries
   its own in the player screen, so every page of the site says where the reader is. */
.crumbbar { padding-top: var(--s4); }
.crumbbar .breadcrumb { margin: 0; }

/* ==========================================================================
   News list + news-event page — the BBC Sport layout (user choice, 2026-09-29).

   The list opens on a LEAD card spanning two columns and two rows, with the next two
   cards stacked beside it and the rest in rows of three; then the archive, one closed
   native <details> per month. Every card image sits in a fixed 16:9 box (object-fit:
   cover) and a card without one gets the theme's placeholder with the initials — never an
   empty box. The pattern is shared (`_shared/_news_card.html.j2`); this block is the look.
   ========================================================================== */
.newsdesk { margin-block: var(--s5) var(--s6); }
.ncards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s5); }
.ncards__item { min-width: 0; }
.ncards__item--lead { grid-column: span 2; grid-row: span 2; }
.ncards__item--solo { grid-column: 1 / -1; grid-row: auto; }
.ncard { display: flex; flex-direction: column; gap: var(--s3); height: 100%; color: inherit; text-decoration: none; }
.ncard__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pap-2); }
.ncard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ncard__ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; font-style: italic; color: #c2361c; } /* --red nudged darker by `clubs.readable_on`: --red on --pap-2 is 4.21 (Lighthouse, 2026-09-29) */
.ncard__body { display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.ncard__title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; text-wrap: pretty; font-weight: 400; }
.ncard__teaser { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__meta { margin-top: auto; padding-top: var(--s1); font-size: .82rem; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: .06em; text-transform: uppercase; font-size: .74rem; }
a.ncard:hover .ncard__title, a.ncard:focus-visible .ncard__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
a.ncard:hover .ncard__media img { transform: scale(1.02); }
.ncard__media img { transition: transform .3s ease; }
a.ncard:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.ncard--lead .ncard__title { font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.08; font-weight: 400; }
.ncard--lead .ncard__teaser { font-size: 1.06rem; }
/* The lead's meta line follows its title (BBC), never pushed to the foot of the two-row box. */
.ncard--lead .ncard__meta { margin-top: 0; }
.ncards__item--solo .ncard--lead { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s5); align-items: start; }
.ncards__item--solo .ncard--lead .ncard__meta { margin-top: 0; }

.news-archive--months h2 { margin-bottom: var(--s3); }
.narch { border-top: 1px solid var(--hair); }
.narch:last-of-type { border-bottom: 1px solid var(--hair); }
.narch summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-block: var(--s3); cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.narch summary::-webkit-details-marker { display: none; }
.narch summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--red); }
.narch[open] summary::after { content: "\2212"; }
.narch summary:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.narch__list { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.narch__item { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: var(--s1) var(--s4); padding-block: var(--s2); border-top: 1px dashed var(--hair); }
.narch__date { font-size: .8rem; color: var(--mut); font-variant-numeric: tabular-nums; padding-top: var(--s1); }
.narch__link { grid-column: 2; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
a.narch__link { text-decoration-color: var(--red); text-underline-offset: .18em; }
.narch__src { grid-column: 2; font-size: .78rem; color: var(--mut); }
.narch__prose { grid-column: 2; margin: 0; font-size: .9rem; color: var(--mut); }

.news-event__date { margin: 0 0 var(--s4); }
.news-event__figure { margin: 0 0 var(--s5); }
.news-event__figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 25%; background: var(--pap-2); }
.news-event__figure figcaption { margin-top: var(--s2); font-size: .8rem; color: var(--mut); }
.news-event__prose { max-width: 68ch; margin-inline: 0; line-height: 1.6; }
.news-event__prose p { font-size: 1.08rem; }
.news-event__sources { max-width: 68ch; margin-top: var(--s6); padding: var(--s4) var(--s5); background: #fbfaf7; border: 1px solid var(--hair); border-left: 4px solid var(--red); }
.news-event__sources h2 { margin: 0 0 var(--s2); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.news-event__sources ul { margin: 0; padding-left: var(--s5); }
.news-event__sources li { padding-block: var(--s1); }
.news-event__sources a { color: var(--ink); text-decoration-color: var(--red); }
.news-related { margin-top: var(--s6); padding-top: var(--s4); border-top: 2px solid var(--ink); }
.news-related h2 { margin: 0 0 var(--s4); font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--ink); font-weight: 400; }
.news-event__back { margin-top: var(--s5); }

@media (max-width: 900px) {
  .ncards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
  .ncards__item--lead { grid-column: 1 / -1; grid-row: auto; }
  .ncards--related .ncards__item:nth-child(3) { display: none; }
}
@media (max-width: 600px) {
  .ncards { grid-template-columns: minmax(0, 1fr); }
  .ncards--related .ncards__item:nth-child(3) { display: block; }
  .ncards__item--solo .ncard--lead { display: flex; }
  .ncard--lead .ncard__title { font-size: clamp(1.45rem, 7vw, 1.9rem); }
  /* On a phone the cards after the lead are compact rows, image left (BBC mobile): eight
     full-width pictures would turn the list into a long scroll of photos. */
  .ncards { gap: var(--s4); }
  .ncards__item:not(.ncards__item--lead) .ncard { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s3); align-items: start; padding-top: var(--s4); border-top: 1px solid var(--hair); }
  .ncards__item:not(.ncards__item--lead) .ncard__title { font-size: 1rem; }
  .ncards__item:not(.ncards__item--lead) .ncard__ph { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .ncard__media img { transition: none; } a.ncard:hover .ncard__media img { transform: none; } }
/* ---------------------------------------------------------------------------
   Conversion banners (spec 2026-09-30 §4, §9). Appended to the theme's CSS ONLY for a run
   whose feed can show a banner, so a banners-off site keeps its stylesheet byte for byte.

   The look is the approved mockups': a dark navy card with a soft gold glow and thin
   vertical court lines, a brand chip with a yellow dot, a muted ad label, the bonus in
   yellow, a yellow action button and a small muted legal line.

   Viewport decides the slot: rail + inline from 901px, inline_top + the sticky bar up to
   900px — the breakpoint the themes already turn on. A hidden slot is `display: none`, so
   it gets no layout box and its lazy pixel is never fetched (measured, §6.3).
   Every slot reserves its own box (min-height), so nothing moves when it paints (CLS 0).
   Three text colours (`banners.TEXT_COLOR` / `BONUS_COLOR` / `MUTED_COLOR`), all >= 4.5:1
   on the navy surface; over an AI background a fixed overlay is ALWAYS drawn above the
   image, as thin as lets every one of them pass over a white pixel (80% -> 66%), so the
   arena reads through it.
   --------------------------------------------------------------------------- */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.promo {
  --promo-a: #10131a;
  --promo-b: #ffc400;
  /* The overlay colour over an AI background: the club primary darkened until every text
     colour passes over a WHITE pixel seen through the 66% stop (`banners.overlay_color`). */
  --promo-o: #10131a;
  --promo-text: #ffffff;
  --promo-bonus: #ffc400;
  --promo-muted: #d5dbe5;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  box-sizing: border-box;
  margin: 1.75rem 0;
  padding: 1.1rem 1.25rem 1rem;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  color: var(--promo-text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 10px 28px -10px rgba(10, 14, 28, .45), 0 2px 6px rgba(10, 14, 28, .12);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 44px),
    radial-gradient(120% 85% at 100% 0%, rgba(255, 196, 0, .16), rgba(255, 196, 0, 0) 60%),
    linear-gradient(160deg, #1d2440 0%, #151a2d 55%, #10131a 100%);
}
/* The overlay: above the picture, below the words — drawn only when there IS a picture. */
.promo:has(> .promo__bg)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--promo-o) 80%, transparent), color-mix(in srgb, var(--promo-o) 66%, transparent));
  pointer-events: none;
}
.promo .promo__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; border: 0; border-radius: 0; }
.promo > p, .promo > a, .promo > label { position: relative; z-index: 2; }

.promo p { margin: 0; padding: 0; max-width: none; color: var(--promo-text); font-size: inherit; line-height: inherit; text-indent: 0; }

/* Brand chip (left) and the ad label (right). */
.promo .promo__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; }
.promo .promo__brand {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .7rem .28rem .55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: var(--promo-text);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}
.promo .promo__brand::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--promo-bonus); }
.promo .promo__ad, .promo .promo__kicker { color: var(--promo-muted); font-size: .625rem; font-weight: 600; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; }
.promo .promo__kicker { font-size: .75rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.promo .promo__headline { font-size: 1.25rem; font-weight: 800; line-height: 1.2; text-wrap: balance; }
.promo .promo__hl { color: var(--promo-bonus); }
.promo .promo__bonus { margin-top: .2rem; color: var(--promo-bonus); font-size: 1.4rem; font-weight: 800; line-height: 1.15; }
.promo .promo__offer { margin-top: -.3rem; font-size: .875rem; line-height: 1.3; }
.promo .promo__legal { color: var(--promo-muted); font-size: .625rem; line-height: 1.4; }

.promo .promo__cta {
  display: block;
  margin: .3rem 0 .1rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: #ffc400;
  color: #10131a;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}
.promo .promo__cta:hover { background: #ffd54d; color: #10131a; text-decoration: none; }
.promo .promo__cta:focus-visible,
.promo .promo__x-state:focus-visible + .promo__x { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #10131a; }

/* Slot boxes. */
.promo--inline-top { min-height: 220px; padding: .9rem 1rem .8rem; }
.promo--inline-top .promo__headline { font-size: 1.125rem; }

/* The rail card (mockup p.2: a 300px card that sticks while the page scrolls). The CARD is
   the sticky element, never its column: a sticky column taller than the viewport hides
   its own bottom, and a sticky column under a sticky header hid the card's ad label. The
   column is stretched to the row so the card has somewhere to travel; `top` clears each
   theme's sticky header (measured at 1280px: editorial 63px, factsheet 59px, longread has none). */
.promo--rail { position: sticky; top: 1.5rem; min-height: 300px; margin: 1.5rem 0 0; }
.promo--rail .promo__meta { margin-bottom: .35rem; }
.promo--rail .promo__headline { font-size: 1.375rem; }
.theme-editorial .promo--rail { top: calc(63px + 1rem); }
.theme-factsheet .promo--rail { top: calc(59px + 1rem); }
.rail:has(> .promo--rail) { align-self: stretch; }
.sheet-rail:has(> .promo--rail) { position: static; align-self: stretch; display: block; }
.sheet-rail:has(> .promo--rail) > * + * { margin-top: var(--s5, 1.5rem); }
/* Longread keeps its sticky TOC: the side column is ONE sticky block capped at the
   viewport, the TOC scrolls inside it and the card sits under it, both always in view. */
.longread__side {
  position: sticky;
  top: var(--s5, 1.5rem);
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2 * var(--s5, 1.5rem));
  min-width: 0;
}
.longread__side .toc { position: static; min-height: 0; overflow-y: auto; }
/* A sticky grid item travels the WHOLE grid container, not just its own row, so anything
   auto-placed under it in the side column (the club sources rail) slid under the card.
   With a side column, everything else in the grid takes the main column: the side
   column is empty below the first row and the column can never cover a thing. */
@media (min-width: 901px) {
  .longread:has(> .longread__side) > :not(.longread__side) { grid-column: 2; }
}
/* `relative`, not `static`: the column is what sticks, but the card must stay the
   containing block of its own background image and overlay (both `absolute; inset: 0`).
   A static card handed them to the sticky column, and the picture covered the TOC. */
.longread__side .promo--rail { position: relative; top: auto; flex: none; }
/* The longread side column is 220px: a tighter card keeps the chip and the ad label on
   one row. */
.longread__side .promo--rail { padding: 1rem .9rem .9rem; }
.longread__side .promo--rail .promo__meta { gap: .25rem .5rem; }
.longread__side .promo--rail .promo__brand { padding: .25rem .6rem .25rem .5rem; font-size: .75rem; }
.longread__side .promo--rail .promo__headline { font-size: 1.1875rem; }
.longread__side .promo--rail .promo__bonus { font-size: 1.25rem; }

/* Desktop `inline` (mockup p.2, "one row between sections"): brand chip · (kicker, the
   headline with its bonus, the legal line) · CTA. Never wider than the text column. */
.promo--inline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand kicker cta" "brand head cta" "brand legal cta";
  align-items: center;
  column-gap: 1.25rem;
  row-gap: .15rem;
  /* The text column: factsheet and longread centre their prose at `--measure`, editorial's
     article already IS the column, and the factsheet club page runs its prose flush. */
  max-width: var(--measure, none);
  margin-inline: auto;
  /* `ch` resolves in THIS box's font: take the page's, as the prose does (every size
     inside is in rem, so nothing else moves). */
  font-size: inherit;
  min-height: 88px;
  padding: .85rem 1.25rem;
}
.theme-editorial .promo--inline, .sheet-main > .promo--inline { max-width: none; margin-inline: 0; }
.promo--inline .promo__meta { grid-area: brand; }
.promo--inline .promo__kicker { grid-area: kicker; align-self: end; font-size: .625rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.promo--inline .promo__headline { grid-area: head; font-size: 1.125rem; line-height: 1.25; }
.promo--inline .promo__legal { grid-area: legal; align-self: start; }
.promo--inline .promo__cta { grid-area: cta; margin: 0; padding: .7rem 1.1rem; }

/* The mobile bar (mockup p.3): slim, floating 8px off the bottom, closable with a native
   checkbox (no script). The tiny ad · age · brand line, the bold headline with its bonus
   (two lines at most, so a long club name never hides the bonus), the CTA on the right,
   the legal line across the full width under both, a small round × on the top-right
   corner. */
.promo--sticky-mobile {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "meta cta" "head cta" "legal legal";
  align-items: center;
  column-gap: .75rem;
  row-gap: .1rem;
  min-height: 60px;
  margin: 0;
  padding: .45rem .5rem .4rem .8rem;
  overflow: visible;
  box-shadow: 0 8px 24px -6px rgba(10, 14, 28, .55);
}
.promo--sticky-mobile .promo__meta { grid-area: meta; display: block; color: var(--promo-muted); font-size: .5625rem; font-weight: 600; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo--sticky-mobile .promo__headline { grid-area: head; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: .9375rem; line-height: 1.2; text-wrap: pretty; }
.promo--sticky-mobile .promo__hl { white-space: nowrap; }
.promo--sticky-mobile .promo__legal { grid-area: legal; margin-top: .1rem; font-size: .5625rem; line-height: 1.3; }
.promo--sticky-mobile .promo__cta { grid-area: cta; margin: 0; padding: .65rem .85rem; font-size: .9375rem; }
.promo .promo__x-state { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.promo .promo__x {
  position: absolute;
  top: -9px;
  right: -6px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  padding: 0 0 2px;
  border: 1px solid #10131a;
  border-radius: 50%;
  background: #fff;
  color: #10131a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(10, 14, 28, .35);
}
.promo--sticky-mobile:has(.promo__x-state:checked) { display: none; }

/* A per-market legal minimum (FR: the ANJ warning covers >= 7% of the banner surface).
   Keyed on the attribute, not its value: the percentage is market data. The browser pass
   measures the real share in every slot. The cards and the bar clear 7% at the common
   small size; only the strip, whose legal line is one row of its middle column, gets a
   taller row (measured: 7.4% at 1.4 under a two-line headline; a larger font wraps the
   line and pushes the strip past its 120px). */
.promo--inline[data-min-legal] .promo__legal { line-height: 1.6; }

@media (max-width: 900px) {
  .promo--rail, .promo--inline { display: none; }
  .longread__side { position: static; display: block; max-height: none; }
  /* The reserve covers the bar's measured height, its 8px float and the close control's
     9px overhang (the headline is one line, only the legal line can wrap). */
  body:has(.promo--sticky-mobile) { padding-bottom: 92px; }
  body:has(.promo--sticky-mobile[data-min-legal]) { padding-bottom: 104px; }
  body:has(.promo--sticky-mobile .promo__x-state:checked) { padding-bottom: 0; }
}
/* Small phones: the legal line wraps once more. */
@media (max-width: 360px) {
  body:has(.promo--sticky-mobile) { padding-bottom: 104px; }
  body:has(.promo--sticky-mobile[data-min-legal]) { padding-bottom: 112px; }
  body:has(.promo--sticky-mobile .promo__x-state:checked) { padding-bottom: 0; }
}
@media (min-width: 901px) {
  .promo--inline-top, .promo--sticky-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) { .promo .promo__cta { transition: none; } }
