/* The Peanut Gallery — improved rebuild
   Type system (expert spec): Oswald (condensed display) + Inter (body).
   Brand colour: navy #0D1B38 / gold #E8A020 / warm cream #F5F0E9.
   Implements the typography & colour overhaul: condensed display to harmonise
   with the logo, lifted surfaces, visible borders, dark form fields, AA contrast,
   focus-visible, landmarks. */

/* ---- self-hosted fonts (one woff2 per real weight) ---- */
@font-face { font-family:'Oswald'; font-style:normal; font-weight:500; font-display:swap; src:url('/assets/fonts/oswald-500.woff2') format('woff2'); }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:600; font-display:swap; src:url('/assets/fonts/oswald-600.woff2') format('woff2'); }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:700; font-display:swap; src:url('/assets/fonts/oswald-700.woff2') format('woff2'); }
@font-face { font-family:'Anton'; font-style:normal; font-weight:400; font-display:swap; src:url('/assets/fonts/anton-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('/assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('/assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('/assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('/assets/fonts/inter-700.woff2') format('woff2'); }

:root {
  /* colour (refined for dark-mode depth + AA) */
  --navy: #0D1B38;          /* page ground */
  --navy-2: #16294F;        /* raised surfaces: cards, TOC, subscribe, inputs */
  --navy-3: #21386B;        /* hover lift */
  --navy-footer: #16294F;   /* footer panel */
  --gold: #E8A020;          /* large/bold accents, buttons, links, focus */
  --gold-bright: #F5B53F;   /* button hover */
  --gold-text: #F0B85C;     /* smallest gold labels on raised surfaces */
  --gold-2: #DFD150;
  --cream: #F5F0E9;         /* primary text (15:1 on navy) */
  --cream-dim: #C9C4BD;     /* muted text (9.8:1 on navy) */
  --line: #3A4767;          /* subtle dividers */
  --line-strong: #46557F;   /* container outlines */
  /* type */
  --font-display: 'Oswald', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  /* layout */
  --maxw: 1120px;
  --readw: 660px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.40);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;     /* 17px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 420px) { body { font-size: 1rem; } }

/* focus never suppressed */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); font-family: var(--font-display); font-weight: 600; padding: 10px 16px; border-radius: 8px; transition: top .15s var(--ease); }
.skip-link:focus { top: 12px; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--cream); margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); line-height: 1.15; }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; }
h4 { font-weight: 500; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.25; }
@media (max-width: 600px) { h1 { font-size: clamp(2rem, 8vw, 2.6rem); } h2 { font-size: 1.6rem; } h3 { font-size: 1.3rem; } }
p { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.center { text-align: center; }
.muted { color: var(--cream-dim); }
.kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.72rem,2.6vw,.8rem); font-weight: 600; color: var(--gold); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13,27,56,0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand-link { display: flex; align-items: center; gap: 11px; }
.brand-link:hover { text-decoration: none; }
.brand-link img { height: 36px; width: auto; display: block; }
.brand-link .wm { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 1.55rem; line-height: 1; color: var(--cream); display: inline-flex; align-items: baseline; gap: .26em; letter-spacing: .01em; }
.brand-link .wm .t { font: inherit; letter-spacing: inherit; }
.brand-link .wm b { color: var(--gold); font-weight: 400; }
.site-footer .brand-link .wm { font-size: 1.7rem; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { font-family: var(--font-body); color: var(--cream); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .98rem; }
.nav a:not(.btn):hover { background: var(--navy-3); text-decoration: none; }
.nav a:not(.btn)[aria-current="page"] { color: var(--gold); }
.nav .btn { margin-left: 6px; }
.bar-right { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; align-items: center; gap: 4px; background: transparent; border: 1px solid var(--line-strong); border-radius: 9px; cursor: pointer; padding: 0; }
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 1px solid var(--line-strong); padding: 6px 16px 12px; box-shadow: var(--shadow); display: none; }
  .site-header.nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 13px 8px; border-radius: 8px; font-size: 1.05rem; border-top: 1px solid var(--line); }
  .nav a:not(.btn):first-child { border-top: 0; }
}

/* buttons (navy on gold) */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .02em; line-height: 1; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .12s var(--ease), background .15s var(--ease); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-bright); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--cream); text-decoration: none; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .container { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 52px; }
.hero .logo-stacked { width: min(660px, 96%); height: auto; margin: 0 0 30px; display: block; }
.hero .subhead { font-family: var(--font-display); font-weight: 700; color: var(--cream); font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.06; letter-spacing: -0.005em; max-width: 16ch; margin: 0 0 .35em; }
.hero .intro { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.5; max-width: 60ch; color: var(--cream-dim); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.watermark { position: absolute; right: -90px; top: 50%; transform: translateY(-50%); width: 520px; max-width: 58%; opacity: .045; pointer-events: none; z-index: 0; }

/* subscribe form */
.subscribe { background: var(--navy-2); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 28px; }
.subscribe.band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.subscribe h2 { margin-bottom: .2em; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-row input[type=email] { flex: 1 1 240px; min-width: 0; font: inherit; font-family: var(--font-body); padding: 13px 16px; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--navy); color: var(--cream); }
.form-row input[type=email]::placeholder { color: var(--cream-dim); }
.form-row input[type=email]:focus-visible { outline: 3px solid var(--gold); border-color: var(--gold); }
.form-trust { font-size: .85rem; color: var(--cream-dim); margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display:none; background: rgba(232,160,32,.12); border:1px solid var(--gold); color: var(--cream); padding:12px 16px; border-radius: var(--radius-sm); margin-top: 12px; }
.what-you-get { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.what-you-get li { padding-left: 30px; position: relative; }
.what-you-get li::before { content: '✓'; position: absolute; left: 0; top: .15em; color: var(--navy); background: var(--gold); width: 20px; height: 20px; border-radius: 50%; display:grid; place-items:center; font-size: 12px; font-weight: 700; }

/* social proof */
.proof { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--cream-dim); font-size: .95rem; }
.proof strong { color: var(--cream); font-weight: 600; }
.proof .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display:inline-block; }

/* edition cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--navy-2); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease); }
.card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.card:focus-within { border-color: var(--gold); }
.card .cover { aspect-ratio: 1200 / 630; width: 100%; object-fit: contain; background: var(--navy); border-bottom: 1px solid var(--line-strong); }
.card .body { padding: 16px 18px 18px; display:flex; flex-direction: column; flex: 1; }
.card .meta { display:flex; gap: 10px; align-items:center; font-size: .8rem; color: var(--cream-dim); margin-bottom: 9px; }
.card .meta time { font-variant-numeric: tabular-nums; }
.card .tag { color: var(--gold); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .78rem; font-variant-numeric: tabular-nums; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem,1.7vw,1.35rem); line-height: 1.2; margin-bottom: 6px; }
.card h3 a { color: var(--cream); }
.card h3 a:hover { color: var(--gold); text-decoration: none; }
.card .dek { font-family: var(--font-body); color: var(--cream-dim); font-size: .9375rem; line-height: 1.5; margin: 0 0 14px; }
.card .read { margin-top: auto; color: var(--gold); font-family: var(--font-display); font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }
.card a.stretched::after { content:''; position:absolute; inset:0; }

.section-head { display:flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

/* article */
.article { max-width: var(--readw); margin: 0 auto; }
.breadcrumb { font-family: var(--font-body); font-size: .875rem; color: var(--cream-dim); margin: 22px 0 14px; }
.breadcrumb a { color: var(--cream-dim); }
.breadcrumb a:hover { color: var(--gold); }
.article-head .tag { color: var(--gold); font-family: var(--font-display); text-transform: uppercase; letter-spacing:.14em; font-weight:600; font-size:.82rem; font-variant-numeric: tabular-nums; }
.dateline { font-family: var(--font-body); color: var(--cream-dim); font-size: .9rem; margin: 10px 0 0; display:flex; gap:10px; flex-wrap:wrap; align-items:center; font-variant-numeric: tabular-nums; }
.dateline a { color: var(--cream-dim); text-decoration: underline; text-underline-offset: 2px; }
.dateline a:hover { color: var(--gold); }
.toc { background: var(--navy-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 16px 20px; margin: 24px 0; }
.toc strong { font-family: var(--font-display); display:block; margin-bottom: 8px; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; gap: 24px; font-variant-numeric: tabular-nums; }
.toc a { color: var(--cream); }
.prose { font-family: var(--font-body); font-size: 1.075rem; line-height: 1.72; max-width: 66ch; }
.prose p { margin: 0 0 1.3em; }
.prose .standfirst { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.15rem,2vw,1.32rem); line-height: 1.5; color: var(--cream); margin-bottom: 1.3em; }
/* section headings double as scannable chunk markers for long wraps */
.prose h2 { margin-top: 1.9em; margin-bottom: .55em; padding-top: .95em; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em auto; border: 1px solid var(--line-strong); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose em { color: var(--cream); }
.prose blockquote { border-left: 3px solid var(--gold); margin: 1.4em 0; padding: .2em 0 .2em 18px; color: var(--cream); font-style: italic; }
.prose .embed { position: relative; padding-bottom: 56%; height: 0; margin: 1.4em 0; }
.prose .embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; border-radius: var(--radius-sm); }

/* data tables (ladder, stats) — render as a clean footy ladder */
.table-wrap { margin: 1.7em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--navy-2); }
.prose table { border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 1rem; }
.prose table p { margin: 0; }
.prose table th, .prose table td { padding: 12px 14px; text-align: right; white-space: nowrap; }
/* header row (the first row uses <th>) */
.prose table th { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; color: var(--navy); background: var(--gold); position: sticky; top: 0; }
/* numeric columns shrink to their content; the name column flexes to fill */
.prose table th.num, .prose table td.num { width: 1%; white-space: nowrap; text-align: right; }
.prose table th.name, .prose table td.name { text-align: left; width: auto; padding-left: 18px; }
.prose table td.name { color: var(--cream); font-weight: 600; }
/* body cells */
.prose table td { color: var(--cream-dim); border-top: 1px solid var(--line); }
.prose table tr:nth-child(even) td { background: rgba(245,240,233,0.035); }
/* last column = points: emphasised */
.prose table th:last-child, .prose table td:last-child { padding-right: 18px; }
.prose table td:last-child { color: var(--cream); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
@media (max-width: 600px) { .prose table { font-size: .94rem; } .prose table th, .prose table td { padding: 10px 11px; } }
/* narrow data tables (≤3 cols) float so the following prose fills the empty space beside them */
@media (min-width: 880px) {
  .prose .table-wrap.t-narrow { float: left; clear: left; width: auto; max-width: 340px; margin: .2em 30px .7em 0; }
  .prose h2, .prose h3 { clear: both; }
}

.article-cta { background: var(--navy-2); border:1px solid var(--line-strong); border-radius: var(--radius); padding: 24px; margin: 36px 0; }
.share { display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }
.share a, .share button { font-family: var(--font-body); font-size:.9rem; padding:9px 14px; border-radius:999px; border:1px solid var(--line-strong); background:transparent; color:var(--cream); cursor:pointer; }
.share a:hover, .share button:hover { border-color: var(--gold); color: var(--cream); text-decoration:none; }

.pager { display:flex; justify-content: space-between; gap: 16px; margin: 28px 0; }
.pager a { flex: 1; background: var(--navy-2); border:1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--cream); }
.pager a:hover { border-color: var(--gold); text-decoration: none; }
.pager a.next { text-align: right; }
.pager .lbl { display:block; font-family: var(--font-display); font-size:.72rem; font-weight: 600; text-transform:uppercase; letter-spacing:.12em; color: var(--cream-dim); margin-bottom: 3px; }
.pager .ttl { font-family: var(--font-body); color: var(--cream); font-weight:500; }

/* archive */
.searchbar { display:flex; gap:10px; margin-bottom: 24px; }
.searchbar input { flex:1; font:inherit; font-family: var(--font-body); padding:12px 16px; border-radius:999px; border:2px solid var(--line-strong); background: var(--navy-2); color: var(--cream); }
.searchbar input::placeholder { color: var(--cream-dim); }
.season { margin-bottom: 40px; }
.season > summary { font-family: var(--font-display); font-size: clamp(1.4rem,2.4vw,1.7rem); font-weight:600; color: var(--cream); cursor:pointer; list-style:none; padding:10px 0; border-bottom:2px solid var(--gold); margin-bottom: 22px; }
.season > summary::-webkit-details-marker { display:none; }
.chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 20px; }
.chip { font-family: var(--font-body); font-size:.88rem; padding:7px 14px; border-radius:999px; border:1px solid var(--line-strong); background:transparent; color:var(--cream); cursor:pointer; }
.chip[aria-pressed=true] { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight:600; }
.no-results { display:none; text-align:center; padding:40px; color: var(--cream-dim); }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--navy-footer); }
.site-footer .container { padding: 40px 20px; }
.foot-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font-family: var(--font-display); font-size:.78rem; font-weight: 600; text-transform:uppercase; letter-spacing:.12em; color: var(--gold); margin-bottom: 12px; }
.site-footer ul { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }
.foot-bottom { margin-top: 30px; padding-top: 18px; border-top:1px solid var(--line); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; color: var(--cream-dim); font-size:.88rem; }

/* 404 / empty */
.bigstate { text-align:center; padding: 80px 20px; }
.bigstate .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem,12vw,8rem); color: var(--gold); line-height:1; font-variant-numeric: tabular-nums; }

/* responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .subscribe.band { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
  .hero .subhead { max-width: none; }
}

/* ===== Long-read edition experience (reading.js) ===== */
/* horizontal reading-progress bar */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); will-change: transform; }

/* back-to-top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--navy-2); color: var(--cream); font-size: 20px; line-height: 1; cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease), border-color .15s var(--ease), color .15s var(--ease); box-shadow: var(--shadow); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--gold); color: var(--gold); }

/* reading layout: sticky side nav + reading column */
.reading-grid { display: block; }
.toc-rail { display: none; }
@media (min-width: 1040px) {
  .article.reading { max-width: 1060px; }
  .reading-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); column-gap: 56px; align-items: stretch; }
  .article.reading > .toc { display: none; }   /* the inline TOC box is for narrow screens */
  .toc-rail { display: block; }
}
.toc-rail-inner { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow: auto; }
.toc-rail-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; color: var(--gold); margin: 0 0 14px; padding-left: 14px; }
.toc-rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; font-variant-numeric: tabular-nums; }
.toc-rail-list a { display: grid; grid-template-columns: 18px 1fr; gap: 11px; align-items: baseline; padding: 9px 12px 9px 13px; border-left: 2px solid var(--line); color: var(--cream-dim); font-family: var(--font-body); font-size: .92rem; line-height: 1.4; border-radius: 0 7px 7px 0; transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease); }
.toc-rail-list a:hover { color: var(--cream); background: var(--navy-2); text-decoration: none; }
.toc-rail-list a .n { color: var(--gold); font-family: var(--font-display); font-weight: 600; font-size: .8rem; opacity: .75; }
.toc-rail-list a.active { color: var(--cream); border-left-color: var(--gold); background: linear-gradient(90deg, rgba(232,160,32,.10), rgba(232,160,32,0)); font-weight: 500; }
.toc-rail-list a.active .n { opacity: 1; }

/* long-read typography refinements (no copy changes) */
.prose { font-size: 1.12rem; line-height: 1.78; max-width: 68ch; }
.prose p { margin: 0 0 1.45em; }
.prose h2 + p > em:first-child { display: inline-block; font-style: normal; font-family: var(--font-display); font-weight: 600; color: var(--gold); letter-spacing: .03em; font-size: .94em; margin-bottom: .15em; }
.toc a.active { color: var(--gold); font-weight: 600; }
@media (max-width: 600px) { .prose { font-size: 1.06rem; line-height: 1.74; } }

/* ===== intelligent table sizing: shrink-to-content, no dead gap ===== */
.prose table { width: max-content; max-width: 100%; }

/* ===== home: hide header wordmark until the hero logo scrolls away ===== */
.site-header .brand-link { transition: opacity .25s var(--ease), transform .25s var(--ease); }
.site-header.brand-hidden .brand-link { opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none; }

/* ===== bio portrait ===== */
.bio-head { display: flex; gap: 24px; align-items: center; margin-bottom: 18px; }
.bio-head > div { min-width: 0; }
.bio-photo { width: 152px; height: auto; border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: var(--shadow); flex: none; }
@media (max-width: 560px) { .bio-head { gap: 18px; } .bio-photo { width: 110px; } }

/* ===== landing author byline ===== */
.hero-byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--cream-dim); font-size: .96rem; font-family: var(--font-body); }
.hero-byline img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.hero-byline b { color: var(--cream); font-weight: 600; }
.hero-byline:hover { text-decoration: none; } .hero-byline:hover b { color: var(--gold); }

/* table wrapper hugs the table (caps at column width + scrolls when wider) */
.table-wrap { width: max-content; max-width: 100%; }
/* ===== edition cards: clean typographic cards (share image dropped — it baked
   the title into tiny pixels and duplicated the heading below) ===== */
.card { position: relative; overflow: hidden; }
.card .cover { display: none; }
.card .body { padding: 26px 24px 22px; }
.card .meta { font-size: .82rem; margin-bottom: 14px; gap: 9px; }
.card h3 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 1.85rem); line-height: 1.1; letter-spacing: -.012em; margin-bottom: 10px; }
.card .dek { font-size: 1rem; line-height: 1.55; margin: 0 0 20px; }
.card .read { font-size: .8rem; letter-spacing: .09em; }
.card::after { content: ''; position: absolute; top: -24px; right: -28px; width: 120px; height: 140px; background: url(/assets/brand/mark.svg) no-repeat center / contain; opacity: .06; pointer-events: none; transition: opacity .15s var(--ease); }
.card:hover::after { opacity: .13; }

/* ===== match result header (built by reading.js from the scoreline) ===== */
.result { display: inline-flex; align-items: center; gap: 16px; margin: .2em 0 1.25em; padding: 9px 18px; background: var(--navy-2); border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--font-display); line-height: 1; }
.result .r-team { font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cream-dim); }
.result .r-team.r-win { color: var(--cream); }
.result .r-score { display: inline-flex; align-items: baseline; gap: 7px; font-variant-numeric: tabular-nums; }
.result .r-score b { font-weight: 600; font-size: 1.3rem; color: var(--gold); }
.result .r-score i { font-style: normal; color: var(--cream-dim); }
.result .r-score span { font-weight: 600; font-size: 1.3rem; color: var(--cream-dim); }
@media (max-width: 480px) { .result { gap: 12px; padding: 8px 14px; } .result .r-team { font-size: .9rem; } .result .r-score b, .result .r-score span { font-size: 1.15rem; } }

/* ===== pull-quote (curated, built by reading.js) ===== */
.prose blockquote.pull { margin: 1.8em 0; padding: 6px 0 6px 26px; border: 0; border-left: 4px solid var(--gold); font-family: var(--font-display); font-weight: 600; font-style: normal; font-size: clamp(1.55rem, 1rem + 1.7vw, 2.1rem); line-height: 1.16; letter-spacing: -.01em; color: var(--cream); }
@media (max-width: 600px) { .prose blockquote.pull { padding-left: 18px; } }

/* ===== player cards (player-cards.js) ===== */
.player-link { color: var(--cream); border-bottom: 1px dotted rgba(232,160,32,.7); cursor: help; transition: color .12s var(--ease), border-color .12s var(--ease); }
.player-link:hover, .player-link:focus-visible { color: var(--gold); border-bottom-color: var(--gold); outline: none; }
.player-card { position: fixed; z-index: 80; width: 268px; max-width: calc(100vw - 16px); background: var(--navy-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 14px 15px; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .14s var(--ease), transform .14s var(--ease); font-family: var(--font-body); }
.player-card.show { opacity: 1; transform: none; pointer-events: auto; }
.pc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pc-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.pc-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pc-name strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--cream); }
.pc-club { font-size: .8rem; color: var(--cream-dim); }
.pc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 8px; margin-bottom: 12px; }
.pc-stat { background: var(--navy); border: 1px solid var(--line); border-radius: 8px; padding: 7px 4px; text-align: center; }
.pc-stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1; }
.pc-stat span { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cream-dim); margin-top: 4px; }
.pc-source { display: block; font-size: .72rem; color: var(--cream-dim); border-top: 1px solid var(--line); padding-top: 9px; }
.pc-source:hover { color: var(--gold); text-decoration: none; }
.team-link { color: var(--cream); border-bottom: 1px dotted rgba(232,160,32,.55); cursor: help; transition: color .12s var(--ease), border-color .12s var(--ease); }
.team-link:hover, .team-link:focus-visible { color: var(--gold); border-bottom-color: var(--gold); outline: none; }
.pc-club-link { color: inherit; }
.pc-club-link:hover { color: var(--gold-text); }
.pc-cta { display: block; margin-bottom: 11px; font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .02em; color: var(--gold-text); }
.pc-cta:hover { color: var(--gold); text-decoration: none; }
.pc-form { display: flex; gap: 4px; margin-bottom: 11px; }

/* ===== In-article match-detail drawer (click a result bar to expand) ===== */
.result-toggle { -webkit-appearance: none; appearance: none; cursor: pointer; color: inherit; transition: border-color .14s var(--ease); }
.result-toggle:hover, .result-toggle:focus-visible { border-color: var(--gold); outline: none; }
.result-toggle:focus-visible { box-shadow: 0 0 0 2px rgba(232,160,32,.35); }
.result-toggle .r-caret { display: inline-flex; align-items: center; margin-left: 2px; color: var(--cream-dim); font-size: .8rem; line-height: 1; transition: transform .2s var(--ease), color .14s var(--ease); }
.result-toggle:hover .r-caret { color: var(--gold); }
.result-toggle[aria-expanded="true"] .r-caret { transform: rotate(180deg); color: var(--gold); }
.r-meta { margin: -0.85em 0 1.15em; font-size: .76rem; color: #8696a8; font-family: var(--font-body); letter-spacing: .01em; }

.match-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s var(--ease); margin: -0.35em 0 1.6em; }
.match-detail[hidden] { display: none; }
.match-detail.open { grid-template-rows: 1fr; }
.md-inner { overflow: hidden; min-height: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--navy-2); }
@media (prefers-reduced-motion: reduce) { .match-detail { transition: none; } }

.md-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.md-strip .pc-stat { border: 0; border-radius: 0; background: var(--navy-2); padding: 12px 6px; }

.md-tabs { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--navy); }
.md-tab { flex: 1; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .76rem; color: var(--cream-dim); background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 11px 8px; cursor: pointer; transition: color .14s var(--ease), border-color .14s var(--ease); }
.md-tab:hover { color: var(--cream); }
.md-tab[aria-pressed="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.md-tab:focus-visible { outline: none; color: var(--gold); box-shadow: inset 0 0 0 2px rgba(232,160,32,.3); }

.md-panel { padding: 16px 18px; }
.md-sec { margin: 0 0 14px; }
.md-sec:last-child { margin-bottom: 0; }
.md-lbl { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--gold); margin: 0 0 6px; }
.md-line { margin: 0 0 5px; font-size: .94rem; line-height: 1.5; color: var(--cream-dim); }
.md-line:last-child { margin-bottom: 0; }
.md-line .pc-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; box-shadow: none; }
.md-line .player-link { color: var(--cream); }
.md-mult { color: var(--gold); font-weight: 600; }
.md-empty { color: #8696a8; font-style: italic; }
.md-chip { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .6rem; letter-spacing: .06em; padding: 2px 5px; border-radius: 4px; vertical-align: middle; }
.md-chip.yc { background: var(--gold); color: var(--navy); }
.md-chip.rc { background: #d8434e; color: #fff; }

.md-panel .table-wrap { margin: 0; border: 0; border-radius: 0; background: transparent; overflow-x: auto; }
.md-panel .md-xv { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .9rem; }
.md-panel .md-xv th, .md-panel .md-xv td { padding: 7px 8px; text-align: center; white-space: nowrap; border-top: 1px solid var(--line); }
.md-panel .md-xv thead th { position: static; top: auto; background: transparent; color: var(--gold); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; border-top: 0; }
.md-panel .md-xv th:first-child, .md-panel .md-xv td:first-child, .md-panel .md-xv th:nth-child(2), .md-panel .md-xv td:nth-child(2) { text-align: left; }
.md-panel .md-xv td.md-pos { color: #8696a8; font-size: .8rem; }
.md-panel .md-xv td:nth-child(2) { color: var(--cream); }
.md-panel .md-xv td.g { color: var(--cream); font-weight: 600; }
.md-panel .md-xv td:last-child { padding-right: 8px; color: var(--cream); font-family: var(--font-body); font-weight: 400; font-size: inherit; }
.md-panel .md-xv tr.md-bench td { background: var(--navy); color: var(--gold); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .66rem; text-align: left; }
.md-panel .pc-source { padding: 0; border-top: 0; margin-top: 14px; }
.md-foot { display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 18px; }
.md-foot .md-flink { color: var(--cream-dim); font-size: .76rem; }
.md-foot .md-flink:hover { color: var(--gold); text-decoration: none; }

@media (max-width: 480px) { .md-panel { padding: 13px 13px; } .md-tab { font-size: .68rem; padding: 10px 4px; } .md-panel .md-xv th, .md-panel .md-xv td { padding: 6px 5px; } }

/* ===== Entity pages (/player, /team, /match, /clubs, /players) ===== */
.season-wrap.ent > h1 { margin-bottom: .1em; }
.ent-crumb { font-size: .8rem; color: #7c8a9a; margin-bottom: 6px; }
.ent-crumb a { color: var(--cream-dim); } .ent-crumb a:hover { color: var(--gold); }
.ent-crumb i { font-style: normal; color: var(--line-strong); margin: 0 3px; }
.ent-muted { color: #7c8a9a; font-weight: 400; }

.ent-head { position: relative; padding: 18px 0 12px; margin-bottom: 6px; }
.ent-head .ent-bar { position: absolute; top: 0; left: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--team, var(--gold)); }
.ent-head h1 { margin: .25em 0 .12em; }
.ent-sub { color: var(--cream-dim); font-size: 1.02rem; }
.ent-sub a { color: var(--gold-text); } .ent-sub a:hover { color: var(--gold); }
.ent-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 0 2px rgba(255,255,255,.08); flex: none; vertical-align: middle; }

.ent-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 10px; margin: 18px 0 6px; }
.ent-stat { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 8px; text-align: center; }
.ent-stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1; }
.ent-stat span { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cream-dim); margin-top: 5px; }

.ent-form-line { margin: 12px 0 0; color: var(--cream-dim); font-size: .92rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ent-form { display: inline-flex; gap: 4px; }
.ent-zone { color: var(--gold); }
.ent-next { font-size: 1.05rem; color: var(--cream); }
.ent-next a { color: var(--gold-text); } .ent-next a:hover { color: var(--gold); }
.ent-meta { color: #8696a8; font-size: .85rem; margin: .25em 0 .6em; }
.ent-key { margin: .2em 0 1.2em; }

/* generic entity tables (career, match log, results, squad, indexes) */
.ent-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.ent-table th, .ent-table td { padding: 9px 12px; text-align: center; white-space: nowrap; border-top: 1px solid var(--line); }
.ent-table thead th { background: transparent; color: var(--gold); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; border-top: 0; position: static; }
.ent-table tbody tr:first-child td { border-top: 0; }
.ent-table td:first-child { text-align: left; color: var(--cream-dim); }
.ent-table td.ent-cl, .ent-table th:first-child, .ent-table th:nth-child(2) { text-align: left; }
.ent-table td.ent-cl { color: var(--cream); }
.ent-table td.ent-pts { color: var(--gold); font-family: var(--font-display); font-weight: 600; }
.ent-table td.ent-rk { color: #7c8a9a; width: 2.4em; }
.ent-table td.g { color: var(--cream); font-weight: 600; }
.ent-table td:not(.g):not(.ent-cl):not(.ent-pts) { color: var(--cream-dim); }
.ent-table a { color: var(--cream); } .ent-table a:hover { color: var(--gold); }
.ent-table td.ent-cl a { font-weight: 600; }
.ent-index tbody tr:nth-child(even) td { background: rgba(245,240,233,0.03); }

.ent-res { display: inline-block; min-width: 1.5em; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: .7rem; border-radius: 4px; padding: 1px 4px; margin-right: 6px; vertical-align: middle; }
.ent-res.r-W { background: #3aa75a; color: #06210f; }
.ent-res.r-L { background: var(--line-strong); color: var(--cream-dim); }
.ent-res.r-D { background: var(--gold); color: var(--navy); }

/* match-page XV tables (same look as the drawer, but outside .md-panel) */
.ent .md-xv { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
.ent .md-xv th, .ent .md-xv td { padding: 8px 10px; text-align: center; white-space: nowrap; border-top: 1px solid var(--line); }
.ent .md-xv thead th { position: static; top: auto; background: transparent; color: var(--gold); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .7rem; border-top: 0; }
.ent .md-xv th:first-child, .ent .md-xv td:first-child, .ent .md-xv th:nth-child(2), .ent .md-xv td:nth-child(2) { text-align: left; }
.ent .md-xv td.md-pos { color: #8696a8; font-size: .82rem; }
.ent .md-xv td:nth-child(2) { color: var(--cream); }
.ent .md-xv td.g { color: var(--cream); font-weight: 600; }
.ent .md-xv td:last-child { color: var(--cream); }
.ent .md-xv tr.md-bench td { background: var(--navy); color: var(--gold); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; text-align: left; }
.ent .md-line .ent-dot { width: 9px; height: 9px; box-shadow: none; }
.ent .md-line a { color: var(--cream); } .ent .md-line a:hover { color: var(--gold); }

/* match hero */
.match-hero { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: .5em 0 .2em; }
.mh-team { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--cream-dim); text-transform: uppercase; letter-spacing: .03em; }
.mh-team:first-child { justify-content: flex-end; text-align: right; }
.mh-team.win { color: var(--cream); }
.mh-team:hover { color: var(--gold); }
.mh-score { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); }
.mh-score b { font-size: 2.4rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.mh-score i { font-style: normal; color: var(--cream-dim); font-size: 1.3rem; }
.mh-strip { margin-top: 14px; }

/* clubs index */
.ent-club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 18px 0; }
.ent-club-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 17px 16px 14px; background: var(--navy-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .14s var(--ease); }
.ent-club-card:hover { border-color: var(--team, var(--gold)); }
.ent-club-card .ecc-bar { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--team, var(--gold)); }
.ecc-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--cream); }
.ecc-meta { font-size: .82rem; color: var(--cream-dim); }

@media (max-width: 520px) { .mh-team { font-size: .92rem; } .mh-score b { font-size: 1.85rem; } .ent-stat b { font-size: 1.3rem; } }

/* ===== more breathing room under the article header (dateline → TOC/content) ===== */
.article-head { margin: 0 0 38px; }
.dateline { margin-top: 14px; }

/* ===== Season hub (live FuseSport data) ===== */
.season-wrap { max-width: var(--readw); margin: 0 auto; padding: 0 20px; }
.season-wrap > h1 { margin-bottom: .12em; }
.season-lede { color: var(--cream-dim); font-size: 1.05rem; margin: 0 0 1.4em; max-width: 54ch; }
.ss-eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: block; margin: 2.5em 0 .85em; }
.ss-cap { font-size: .74rem; color: #8696a8; margin-top: .9em; line-height: 1.6; }
.ss-cap b { color: var(--gold); font-weight: 600; } .ss-cap a { color: var(--gold-text); }
.ss-ladder { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.ss-ladder th { font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .04em; color: var(--navy); background: var(--gold); text-transform: uppercase; padding: 9px 8px; text-align: right; }
.ss-ladder th:nth-child(2) { text-align: left; }
.ss-ladder td { padding: 10px 8px; text-align: right; color: var(--cream-dim); border-top: 1px solid var(--line); }
.ss-ladder td.cl { text-align: left; color: var(--cream); font-weight: 600; white-space: nowrap; }
.ss-ladder td.rk { color: #7c8a9a; width: 1%; }
.ss-ladder td.pts { font-family: var(--font-display); font-weight: 600; color: var(--cream); font-size: 1.1rem; }
.ss-ladder tr.zone td { background: rgba(232,160,32,.055); }
.ss-ladder tr.zone td.rk { color: var(--gold); }
.ss-ladder td.fm { white-space: nowrap; }
.ss-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; }
.ss-fm { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-left: 3px; vertical-align: -2px; }
.ss-fm.f-W { background: #46b06a; } .ss-fm.f-L { background: #d6433f; } .ss-fm.f-D { background: #6f7d86; }
.ss-finline td { padding: 0; border: 0; }
.ss-finline div { border-top: 2px dashed var(--gold); height: 0; position: relative; margin: 3px 0; }
.ss-finline span { position: absolute; top: -8px; left: 8px; background: var(--navy); color: var(--gold); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; padding: 0 7px; font-weight: 600; }
.ss-results { display: flex; flex-wrap: wrap; gap: 2px 24px; }
.ss-fix { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 4px 20px; background: var(--navy-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 18px; margin-top: 9px; }
.ss-fix .match { white-space: nowrap; font-weight: 600; color: var(--cream); font-size: 1rem; }
.ss-fix .tm { color: var(--cream); }
.ss-fix .vs { font-family: var(--font-display); color: #7c8a9a; font-size: .78rem; font-weight: 400; margin: 0 9px; }
.ss-fix .mt { color: #9fb0a9; font-size: .82rem; text-align: right; }
.ss-finals { background: var(--navy-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 16px 20px; margin-top: 4px; color: var(--cream-dim); font-size: .98rem; line-height: 1.62; }
.ss-finals b { color: var(--gold); font-weight: 600; }
@media (max-width: 600px) { .ss-ladder { font-size: .85rem; } .ss-ladder th, .ss-ladder td { padding: 8px 5px; } .ss-fix { grid-template-columns: 1fr; gap: 3px; } .ss-fix .match { white-space: normal; } .ss-fix .mt { text-align: left; } }

.eqr { color: var(--gold-text); font-weight: 400; font-size: .72em; margin-left: 1px; vertical-align: .08em; }

/* ---- crests + grade pills (all-grades data) ---- */
/* Every badge sits on a white chip: club logos come in two families (clean
   transparent shields + full white-background lockups) and a white chip unifies
   both — seamless for the lockups, crisp for the shields, legible on navy. */
/* NOTE: padding MUST be px, not %. Percentage padding on an inline replaced
   element resolves against the PARENT width, so on a wide club card 8% became
   ~48px and crushed the logo to a dot. Fixed px keeps the chip correct everywhere. */
.ent-crest, .ss-crest, .lb-crest, .ent-head-badge {
  display: inline-block; box-sizing: border-box; object-fit: contain;
  background: #fff; border-radius: 22%; padding: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.22); flex: none; vertical-align: middle;
}
.ent-crest, .ss-crest { margin-right: 8px; }
.ss-crest { margin-right: 9px; vertical-align: -6px; }
.ent-table .ent-crest, .lb-table .lb-crest { margin-right: 7px; vertical-align: -5px; }
.mh-team .ent-crest { margin: 0; }
.ent-head-crest { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; }
.ent-head-crest .ent-bar { grid-column: 1 / -1; }
.ent-head-badge { grid-row: 2 / 4; align-self: center; padding: 7px; border-radius: 18%; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.ent-head-crest h1 { grid-column: 2; align-self: end; margin: .1em 0 .04em; }
.ent-head-crest .ent-sub { grid-column: 2; align-self: start; }
.ent-grade { display: inline-block; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .64rem; line-height: 1; padding: 3px 6px; border-radius: 5px; vertical-align: middle; white-space: nowrap; }
.ent-grade.g1 { color: var(--navy); background: var(--gold); }
.ent-grade.g2, .ent-grade.g3, .ent-grade.g4 { color: var(--cream); background: var(--navy-3); border: 1px solid var(--line-strong); }
.ent-grade.g5, .ent-grade.g6, .ent-grade.g7 { color: var(--gold-text); background: var(--navy-2); border: 1px solid var(--line); }
.ent-grade-rec { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 2px 0 8px; }
.ent-grade-rec .ent-grade { margin-right: 7px; }
.ent-grade-rec b { color: var(--cream); font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.ent-grade-h { font-size: 1rem; margin: 20px 0 6px; display: flex; align-items: center; gap: 9px; }
.ent-grade-det { border-top: 1px solid var(--line); margin-top: 8px; }
.ent-grade-det > summary { cursor: pointer; padding: 11px 2px; font-family: var(--font-display); font-weight: 600; color: var(--cream); list-style: none; display: flex; align-items: center; gap: 9px; }
.ent-grade-det > summary::-webkit-details-marker { display: none; }
.ent-grade-det > summary::after { content: "+"; margin-left: auto; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.ent-grade-det[open] > summary::after { content: "–"; }
.ent-grade-det > summary:hover { color: var(--gold); }
.ent-gradenav { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.ent-gradenav a { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; color: var(--cream); background: var(--navy-2); border: 1px solid var(--line-strong); padding: 7px 12px; border-radius: 999px; }
.ent-gradenav a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* ---- /sources provenance cards ---- */
.src-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.src-card { gap: 9px; padding: 18px 18px 16px; }
.src-name { font-size: 1.05rem; margin: 2px 0 0; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.src-tag { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .6rem; padding: 3px 7px; border-radius: 999px; }
.src-tag.on { background: rgba(58,167,90,.18); color: #6fd08a; border: 1px solid rgba(58,167,90,.4); }
.src-tag.maybe { background: rgba(232,160,32,.16); color: var(--gold-text); border: 1px solid rgba(232,160,32,.4); }
.src-tag.todo { background: var(--navy-3); color: var(--cream-dim); border: 1px solid var(--line-strong); }
.src-note { color: var(--cream-dim); font-size: .92rem; line-height: 1.5; margin: 0; }
.src-meta { margin: 2px 0 0; display: grid; gap: 6px; }
.src-meta > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; font-size: .86rem; }
.src-meta dt { color: #7c8a9a; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .66rem; padding-top: 2px; }
.src-meta dd { margin: 0; color: var(--cream); }
.src-link { margin: 4px 0 0; font-size: .9rem; }

/* ---- /players interactive leaderboards ---- */
.lb-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 6px 0 20px; }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.lb-tab { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .74rem; color: var(--cream); background: var(--navy-2); border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: border-color .14s var(--ease), background .14s var(--ease); }
.lb-tab:hover { border-color: var(--gold); }
.lb-tab.on { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.lb-search { flex: 1 1 240px; max-width: 340px; min-width: 0; font: inherit; font-family: var(--font-body); padding: 10px 15px; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--navy); color: var(--cream); }
.lb-search:focus { outline: none; border-color: var(--gold); }
.lb-grade-h, .lb-table-h { margin-top: 8px; }
.lb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 6px 0 10px; }
.lb-card { background: var(--navy-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 15px 16px 12px; }
.lb-h { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; color: var(--gold); margin-bottom: 4px; display: flex; align-items: baseline; gap: 7px; }
.lb-h .lb-sub { color: #7c8a9a; font-size: .68rem; letter-spacing: .04em; font-weight: 400; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list li { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.lb-list li:first-child { border-top: 0; }
.lb-rk { color: #7c8a9a; width: 18px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.lb-nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cream); display: flex; align-items: center; gap: 7px; }
.lb-nm a { color: var(--cream); font-weight: 600; } .lb-nm a:hover { color: var(--gold); }
.lb-cl { color: #7c8a9a; font-weight: 400; font-size: .82em; }
.lb-v { font-family: var(--font-display); font-weight: 600; color: var(--gold); font-size: 1.05rem; flex: none; font-variant-numeric: tabular-nums; }
.lb-crest { object-fit: contain; flex: none; vertical-align: middle; }
.lb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lb-table th.lb-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.lb-table th.lb-sortable:hover { color: var(--gold-bright); }
.lb-table th.sort-desc::after { content: " ▾"; color: var(--gold); }
.lb-table th.sort-asc::after { content: " ▴"; color: var(--gold); }
.lb-table td .lb-crest { margin-right: 6px; vertical-align: -4px; }
.lb-empty { color: var(--cream-dim); padding: 16px 2px; }
.lb-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 16px 0 2px; }
.lb-page-btn { font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--cream); background: var(--navy-2); border: 1px solid var(--line-strong); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.lb-page-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.lb-page-btn:disabled { opacity: .4; cursor: default; }
.lb-page-info { color: var(--cream-dim); font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .lb-controls { gap: 10px; } .lb-search { max-width: none; } }

/* ---- /compare player vs player ---- */
.cmp-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 26px; }
.cmp-input { flex: 1 1 220px; min-width: 0; font: inherit; font-family: var(--font-body); padding: 12px 16px; border-radius: 12px; border: 2px solid var(--line-strong); background: var(--navy); color: var(--cream); }
.cmp-input:focus { outline: none; border-color: var(--gold); }
.cmp-swap { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-2); border: 1px solid var(--line-strong); color: var(--gold); font-size: 1.2rem; cursor: pointer; }
.cmp-swap:hover { border-color: var(--gold); }
.cmp-hint { color: var(--cream-dim); padding: 34px 0; text-align: center; }
.cmp-heads { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 14px; margin: 4px 0 10px; }
.cmp-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.cmp-crest { background: #fff; border-radius: 16%; padding: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.28); object-fit: contain; box-sizing: border-box; }
.cmp-dot { width: 52px; height: 52px; border-radius: 50%; }
.cmp-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--cream); line-height: 1.1; }
.cmp-name:hover { color: var(--gold); }
.cmp-club { color: var(--cream-dim); font-size: .9rem; }
.cmp-grades { color: #7c8a9a; font-size: .74rem; }
.cmp-vsbig { align-self: center; font-family: var(--font-display); color: #7c8a9a; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.cmp-grid .ss-eyebrow { margin-top: 18px; }
.cmp-row { display: grid; grid-template-columns: 1fr 9em 1fr; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.cmp-lab { text-align: center; color: var(--cream-dim); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.cmp-val { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cmp-a { align-items: flex-end; }
.cmp-b { align-items: flex-start; }
.cmp-val b { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--cream-dim); font-variant-numeric: tabular-nums; }
.cmp-val.win b { color: var(--gold); }
.cmp-bar { height: 7px; border-radius: 4px; background: var(--line-strong); min-width: 2px; }
.cmp-val.win .cmp-bar { background: var(--gold); }
@media (max-width: 520px) { .cmp-row { grid-template-columns: 1fr 6.5em 1fr; gap: 8px; } .cmp-name { font-size: 1.05rem; } .cmp-lab { font-size: .68rem; } }

/* ---- header search icon + /search ---- */
.nav-search { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9px; color: var(--cream); flex: none; }
.nav-search:hover { background: var(--navy-3); color: var(--gold); text-decoration: none; }
.srch-input { width: 100%; box-sizing: border-box; font: inherit; font-family: var(--font-body); font-size: 1.1rem; padding: 15px 20px; border-radius: 14px; border: 2px solid var(--line-strong); background: var(--navy-2); color: var(--cream); margin: 8px 0 14px; }
.srch-input:focus { outline: none; border-color: var(--gold); }
.srch-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.srch-chip { font-family: var(--font-display); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cream); background: var(--navy-2); border: 1px solid var(--line-strong); padding: 7px 13px; border-radius: 999px; cursor: pointer; font-variant-numeric: tabular-nums; }
.srch-chip:hover { border-color: var(--gold); }
.srch-chip.on { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.srch-hint, .srch-empty, .srch-more { color: var(--cream-dim); padding: 22px 2px; }
.srch-more { font-size: .9rem; padding: 14px 2px; }
.srch-list { list-style: none; margin: 0; padding: 0; }
.srch-item { border-top: 1px solid var(--line); }
.srch-item:first-child { border-top: 0; }
.srch-link { display: flex; align-items: center; gap: 13px; padding: 12px 6px; color: var(--cream); border-radius: 8px; }
.srch-link:hover { background: var(--navy-2); text-decoration: none; }
.srch-badge { flex: none; font-family: var(--font-display); font-weight: 600; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 999px; width: 4.6em; text-align: center; }
.srch-player .srch-badge { background: rgba(232,160,32,.16); color: var(--gold-text); }
.srch-club .srch-badge { background: rgba(63,116,192,.22); color: #9cc0ff; }
.srch-match .srch-badge { background: rgba(58,167,90,.16); color: #6fd08a; }
.srch-wrap .srch-badge { background: var(--navy-3); color: var(--cream-dim); }
.srch-mid { min-width: 0; display: flex; flex-direction: column; }
.srch-name { color: var(--cream); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srch-link:hover .srch-name { color: var(--gold); }
.srch-sub { color: #7c8a9a; font-size: .85rem; }
.ent-form-line b { color: var(--cream); font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- /tipping (Elo win probability) ---- */
.tip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin: 6px 0 10px; }
.tip-card { background: var(--navy-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 15px 16px; }
.tip-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.tip-team { display: flex; align-items: center; gap: 7px; color: var(--cream-dim); min-width: 0; }
.tip-team:last-child { justify-content: flex-end; text-align: right; }
.tip-team.fav { color: var(--cream); }
.tip-team a { color: inherit; } .tip-team a:hover { color: var(--gold); }
.tip-vs { color: #7c8a9a; font-size: .78rem; font-weight: 400; flex: none; }
.tip-bar { height: 9px; border-radius: 5px; background: var(--line-strong); overflow: hidden; margin: 11px 0 5px; }
.tip-bar-h { display: block; height: 100%; background: var(--gold); }
.tip-prob { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .82rem; color: var(--cream-dim); font-variant-numeric: tabular-nums; }
.tip-prob span:first-child, .tip-prob span:last-child { color: var(--cream); font-weight: 600; flex: none; }
.tip-prob .ent-muted { font-weight: 400; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-call { margin: 10px 0 0; font-size: .9rem; color: var(--cream-dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tip-call b { color: var(--cream); }
.tip-band { font-family: var(--font-display); font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; border-radius: 999px; }
.tb-strong { background: rgba(58,167,90,.18); color: #6fd08a; }
.tb-clear { background: rgba(232,160,32,.16); color: var(--gold-text); }
.tb-narrow { background: var(--navy-3); color: var(--cream-dim); }

/* ===== audit fixes: accessibility + responsive (parallel audit pass) ===== */
/* a11y — visible keyboard focus rings on inputs & inline links (WCAG 2.4.7/1.4.11) */
.lb-search:focus-visible, .cmp-input:focus-visible, .srch-input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.player-link:focus-visible, .team-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.result-toggle:focus-visible, .md-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* a11y — loss badge contrast (cream-dim on line-strong failed 4.5:1) */
.ent-res.r-L { color: var(--cream); }
/* a11y/UX — bigger touch targets on pill controls */
.lb-tab { padding: 10px 16px; }
.srch-chip { padding: 9px 14px; }
.chip { padding: 10px 14px; }
/* responsive — clubs grid: ~4 dense columns on desktop, 1 on phones (track-min) */
.ent-club-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
/* responsive — stat strip fits more tiles per row (no orphan) */
.ent-stats { grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); }
/* responsive — never let single-line meta/team names force horizontal scroll */
.ent-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mh-team { min-width: 0; overflow: hidden; }
.brand-link { min-width: 0; }
.brand-link .wm { min-width: 0; overflow: hidden; white-space: nowrap; }
/* responsive — leaderboard search shares the row with grade tabs sooner */
.lb-search { flex: 1 1 180px; }
/* scope the article-table max-content sizing to prose so entity tables fill width */
.table-wrap { width: auto; }
.prose .table-wrap { width: max-content; max-width: 100%; }
@media (max-width: 600px) { .section { padding: 36px 0; } }
/* header: keep the wordmark legible next to the search icon + Subscribe on phones */
@media (max-width: 600px) { .brand-link .wm { font-size: 1.22rem; } }
@media (max-width: 380px) { .brand-link .wm { font-size: 1.05rem; } }
/* clubs: names wrap (never clip), and one full-width card per row on phones */
.ecc-name { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 480px) { .ent-club-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .cmp-pick { flex-direction: column; align-items: stretch; }
  .cmp-input { flex: none; width: 100%; }
  .cmp-swap { align-self: center; }
  .mh-team span, .mh-team a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ===== reclaim wasted horizontal space on data-grid pages =====
   The 660px reading column is right for articles, but clubs / leaderboards /
   compare / tipping are wide data layouts — give them the full container so they
   aren't marooned in a narrow strip flanked by empty navy. Article/match/player
   prose pages keep the readable 660px. */
.season-wrap:has(.ent-club-grid),
.season-wrap:has(#lb-app),
.season-wrap:has(#cmp-app),
.season-wrap:has(.tip-grid) { max-width: min(1120px, 94vw); }
/* compare: let the two players spread across the wider canvas */
.cmp-heads, .cmp-row { max-width: 760px; margin-left: auto; margin-right: auto; }
.cmp-grid .ss-eyebrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ===== club cards: full-height crest left, name top, rank+pts bottom-right =====
   Scoped with :not(.src-card) — the /sources cards also use .ent-club-card but
   must keep the original vertical (column) layout, not this horizontal one. */
.ent-club-card:not(.src-card) { flex-direction: row; align-items: stretch; gap: 16px; padding: 16px; min-height: 122px; }
.ecc-crest { flex: none; align-self: stretch; display: flex; align-items: center; }
.ecc-crest .ent-crest { height: 100%; width: auto; aspect-ratio: 1 / 1; max-height: 104px; min-width: 76px; margin: 0; padding: 5px; }
.ecc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.ecc-name { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1.08; color: var(--cream); }
.ecc-meta { align-self: flex-end; margin-top: auto; text-align: right; color: var(--cream-dim); font-size: .92rem; font-variant-numeric: tabular-nums; }
.ecc-meta b { color: var(--cream); font-family: var(--font-display); font-weight: 600; }
@media (max-width: 380px) { .ecc-crest .ent-crest { max-height: 84px; } .ecc-name { font-size: 1.1rem; } }

/* ladder: tint the bonus-points column so it reads as its own thing */
.ss-ladder td.bp, .ss-ladder th.bp { color: var(--gold-text); }

/* ===== computed analytics: labels, match bonus, season superlatives ===== */
.ent-mlabel { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; color: #7c8a9a; margin-right: 1px; }
.mh-bonus { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.ss-sup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 6px 0 10px; }
.ss-sup { background: var(--navy-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px; }
.ss-sup-h { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--gold); margin-bottom: 6px; }
.ss-sup-v { color: var(--cream); font-weight: 600; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.ss-sup-v a { color: var(--cream); } .ss-sup-v a:hover { color: var(--gold); }
.ss-sup-s { color: var(--cream-dim); font-size: .85rem; margin-top: 3px; font-variant-numeric: tabular-nums; }
