/* ==========================================================================
   Punters News — base stylesheet
   Light theme is the token baseline; dark-theme.css redefines the same tokens.
   ========================================================================== */

:root{
  --green:#0D3B2E;
  --green-700:#0A2E24;
  --green-300:#1C5C48;
  --gold:#C9A84C;
  --gold-600:#A98B33;
  --gold-100:rgba(201,168,76,.12);

  --bg:#FFFFFF;
  --bg-alt:#F5F5F0;
  --bg-sunk:#EDEDE6;
  --surface:#FFFFFF;
  --surface-2:#FAFAF6;

  --text:#1A1A1A;
  --text-2:#44474B;
  --muted:#5C6472;   /* 5.4:1 on --bg-alt; #6B7280 came in at 4.42:1 */
  --line:#E5E7EB;
  --line-strong:#D3D7DD;

  --link:#0D3B2E;
  --link-hover:#A98B33;
  --win:#16A34A;
  --error:#DC2626;

  --radius:8px;
  --radius-sm:6px;
  --shadow:0 1px 2px rgba(16,24,40,.06),0 8px 24px -12px rgba(16,24,40,.18);
  --shadow-lg:0 2px 4px rgba(16,24,40,.07),0 24px 48px -24px rgba(16,24,40,.28);

  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --mono:'Roboto Mono',ui-monospace,SFMono-Regular,Menlo,monospace;

  --wrap:1220px;
  --gut:20px;
  --head-h:64px;
}

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

body{
  margin:0;background:var(--bg);color:var(--text);
  font:400 17px/1.65 var(--sans);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  /* The horizontal guard stays, but as `clip`: `hidden` turns body into a scroll
     container, and a sticky masthead or aside then pins to a box that never scrolls.
     `hidden` is kept first for engines that do not know `clip`. */
  overflow-x:hidden;overflow-x:clip;
}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:var(--link);text-decoration:none}
a:hover{color:var(--link-hover);text-decoration:underline;text-underline-offset:2px}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:2px}

h1,h2,h3,h4{margin:0 0 .5em;line-height:1.18;letter-spacing:-.015em;font-weight:700}
h1{font-size:clamp(30px,4.4vw,42px);font-weight:800}
h2{font-size:clamp(24px,3vw,32px);font-weight:700}
h3{font-size:clamp(20px,2.2vw,25px);font-weight:600}
h4{font-size:19px;font-weight:600}
p{margin:0 0 1.1em}
small,.small{font-size:13.5px}
strong{font-weight:600}
hr{border:0;border-top:1px solid var(--line);margin:28px 0}

.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}
.is-hidden-pot{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.skip{position:absolute;left:-9999px;top:0;background:var(--gold);color:#1A1A1A;padding:10px 16px;z-index:200;font-weight:600}
.skip:focus{left:8px;top:8px}

/* ------------------------------------------------------------------ layout */
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 var(--gut)}
.section{padding:44px 0}
.section--tight{padding:28px 0}
.section--alt{background:var(--bg-alt)}
.sechead{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 20px;padding-bottom:12px;border-bottom:2px solid var(--green)}
.sechead h2,.sechead h1{margin:0;font-size:clamp(21px,2.6vw,27px)}
.sechead__more{font:600 14px/1 var(--sans);text-transform:uppercase;letter-spacing:.08em;white-space:nowrap;color:var(--link)}
/* "Last updated 16 October 2026" is 28 unbreakable characters. It will not share a line
   with a heading inside 320px, so on a phone it breaks and drops under the heading. */
@media (max-width:480px){.sechead__more{white-space:normal}}
.kicker{font:600 12px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--gold-600);margin:0 0 10px}
.lede{font-size:19px;color:var(--text-2)}

.grid{display:grid;gap:22px}
.grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.cols{display:grid;grid-template-columns:minmax(0,1fr) 332px;gap:38px;align-items:start}
/* The collapsed single column is minmax(0,1fr) and not a bare 1fr. 1fr is
   minmax(auto,1fr), which floors the track at the column's min-content, and the
   min-content of an article column holding a .tablewrap is the width of the table
   inside it. Measured on racecourses/flemington.php at a 360px viewport: 682px of
   column inside a 328px .wrap, 698px of document against 360px of viewport, and
   body{overflow-x:clip} then cut the right-hand 338px off with nothing to scroll
   with. Five of the eight track facts and the end of every paragraph went with it,
   on 61 of the 99 pages. minmax(0,1fr) puts the column back on the wrap and leaves
   the overflow where the markup already handles it, inside .tablewrap.

   Every collapse rule in this file is written that way for that reason, not just the
   two that were caught doing it: .grid--*, .featured, .profile, .promo and .foot__grid
   below. None of them holds a wide table today. The point is that the next one can. */
@media (max-width:1040px){.cols{grid-template-columns:minmax(0,1fr)}}
@media (max-width:900px){.grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.grid--2,.grid--3,.grid--4{grid-template-columns:minmax(0,1fr)}}

/* ------------------------------------------------------------------ header */
.masthead{position:sticky;top:0;z-index:100;background:var(--green);color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.08),0 6px 20px -12px rgba(0,0,0,.6)}
.masthead__bar{display:flex;align-items:center;gap:16px;min-height:var(--head-h)}
.logo{display:flex;align-items:center;gap:9px;color:#fff;flex:0 0 auto}
.logo:hover{color:#fff;text-decoration:none}
.logo__mark{width:30px;height:30px;fill:var(--gold)}
.logo__text{font:800 21px/1 var(--sans);letter-spacing:-.02em;display:flex;gap:5px;align-items:baseline}
.logo__text strong{font-weight:800}
.logo__text span{font-weight:400;color:var(--gold)}

.nav{margin-left:auto}
.nav ul{display:flex;gap:2px;list-style:none;margin:0;padding:0}
.nav a{display:block;padding:9px 11px;color:rgba(255,255,255,.86);font:500 14.5px/1 var(--sans);border-radius:var(--radius-sm)}
.nav a:hover{background:rgba(255,255,255,.1);color:#fff;text-decoration:none}
.nav a.is-active{color:var(--gold);box-shadow:inset 0 -2px 0 var(--gold)}
@media (max-width:1180px){.nav{display:none}}

.masthead__tools{display:flex;align-items:center;gap:4px;margin-left:auto}
@media (max-width:1180px){.masthead__tools{margin-left:0}}
.iconbtn{display:grid;place-items:center;width:38px;height:38px;border:0;background:transparent;color:#fff;border-radius:50%;cursor:pointer}
.iconbtn:hover{background:rgba(255,255,255,.12);color:var(--gold)}
.iconbtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.iconbtn .icon-moon{display:none}
[data-theme="dark"] .iconbtn .icon-sun{display:none}
[data-theme="dark"] .iconbtn .icon-moon{display:block}

.burger{display:none;flex-direction:column;gap:4px;width:38px;height:38px;border:0;background:transparent;cursor:pointer;padding:9px 8px;border-radius:var(--radius-sm)}
.burger span{display:block;height:2px;background:#fff;border-radius:2px;transition:transform .18s ease,opacity .18s ease}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
@media (max-width:1180px){.burger{display:flex}}
/* A 360px phone leaves 320px of wrap and the logo does not shrink, so without this the
   gutter, the bar gap and three icon buttons fight over it and the buttons end up ~27px.
   The gutter and the gap give way, the wordmark comes down a size, and the account
   button steps out — it is already the last line of the drawer. */
@media (max-width:420px){
  :root{--gut:16px}
  .masthead__bar{gap:10px}
  .logo__mark{width:28px;height:28px}
  .logo__text{font-size:19px}
  .iconbtn--user{display:none}
}

.searchbar{background:var(--green-700);border-top:1px solid rgba(255,255,255,.1);padding:14px 0}
.searchbar__form{display:flex;flex-wrap:wrap;gap:10px;position:relative}
.searchbar input[type="search"]{flex:1 1 320px;min-width:0;padding:12px 14px;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.25);color:#fff;border-radius:var(--radius-sm);font:400 16px/1.2 var(--sans)}
.searchbar input::placeholder{color:rgba(255,255,255,.55)}
.searchbar__hint{flex:1 0 100%;margin:0;font-size:12.5px;color:rgba(255,255,255,.6)}
.suggest{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);max-height:60vh;overflow:auto;z-index:120}
.suggest__group{padding:6px 0;border-top:1px solid var(--line)}
.suggest__group:first-child{border-top:0}
.suggest__label{font:600 11px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding:8px 14px}
.suggest a{display:flex;justify-content:space-between;gap:14px;padding:9px 14px;color:var(--text)}
/* Mouse hover and the arrow-key cursor (search.js sets .is-sel and aria-selected)
   shared one 12% tint, so the keyboard reader could not tell the cursor from a
   hover and the tint itself measured 1.09:1 light / 1.31:1 dark against the panel.
   Hover keeps the warm tint, which the pointer explains. The cursor takes the sunk
   fill and a 3px rail in the link colour: 10.62:1 light and 9.48:1 dark against the
   fill it sits on, 12.48:1 and 10.35:1 against the panel, so the state indicator is
   past 3:1 in both themes. On dark the tint also pushed the 13px trailing meta
   (--muted) down to 4.26:1, under the 4.5:1 floor, so an active row prints that
   line in --text-2 instead: 8.54:1 light, 7.28:1 dark. */
.suggest a:hover{background:var(--gold-100);text-decoration:none}
.suggest a.is-sel{background:var(--bg-sunk);text-decoration:none;box-shadow:inset 3px 0 0 var(--link)}
.suggest a span:last-child{color:var(--muted);font-size:13px;white-space:nowrap}
.suggest a:hover span:last-child,.suggest a.is-sel span:last-child{color:var(--text-2)}

/* Twelve links at 52px each clear 640px, which is taller than the phone they are on,
   and the drawer hangs inside a sticky header that offers nothing to scroll. */
.drawer{background:var(--green-700);border-top:1px solid rgba(255,255,255,.1);max-height:calc(100vh - var(--head-h));max-height:calc(100dvh - var(--head-h));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.drawer ul{list-style:none;margin:0;padding:8px 0}
.drawer a{display:block;padding:12px var(--gut);color:#fff;font-weight:500}
.drawer a:hover{background:rgba(255,255,255,.08);text-decoration:none}
.drawer__sep{border-top:1px solid rgba(255,255,255,.12);margin-top:8px;padding-top:4px}

/* ------------------------------------------------------------------ crumbs */
.crumbs{background:var(--bg-alt);border-bottom:1px solid var(--line);font-size:13.5px}
.crumbs ol{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:11px 0}
.crumbs li+li::before{content:"/";margin-right:6px;color:var(--muted)}
.crumbs li[aria-current]{color:var(--muted)}

/* ----------------------------------------------------------------- buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 20px;border:1px solid transparent;border-radius:var(--radius-sm);font:600 15px/1 var(--sans);cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease}
.btn:hover{text-decoration:none}
.btn--green{background:var(--green);color:#fff}
.btn--green:hover{background:var(--green-300);color:#fff}
.btn--gold{background:var(--gold);color:#17170F}
.btn--gold:hover{background:var(--gold-600);color:#17170F}  /* #fff on gold-600 is 3.27:1 */
.btn--ghost{background:transparent;color:var(--link);border-color:var(--line-strong)}
.btn--ghost:hover{border-color:var(--gold);color:var(--gold-600)}
.btn--sm{padding:8px 14px;font-size:13.5px}
.btn--block{width:100%}

/* ------------------------------------------------------- tags and badges */
.tag,.badge{display:inline-block;padding:3px 8px;border-radius:4px;font:600 11px/1.5 var(--sans);letter-spacing:.09em;text-transform:uppercase;white-space:nowrap}
.tag{background:var(--green);color:#fff}
.tag--analysis,.tag--opinion{background:#2C3E5A;color:#fff}
.tag--feature{background:var(--gold);color:#17170F}
.tag--interview{background:#5A3E2C;color:#fff}
.tag--industry{background:#3F4651;color:#fff}
.tag--welfare{background:#1F6B4A;color:#fff}
.tag--tips{background:var(--gold);color:#17170F}
.tag--fashion{background:#6B2C4A;color:#fff}
.badge--g1{background:var(--gold);color:#17170F}
.badge--g2{background:#C0C4CC;color:#1A1A1A}
.badge--g3{background:#B07A4A;color:#15151A}  /* 4.96:1; white on bronze was 3.67:1 */
.badge--listed{background:#6B7280;color:#fff}
.badge--plain{background:var(--bg-sunk);color:var(--text-2)}

.going{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font:600 12px/1.6 var(--mono);background:var(--bg-sunk);color:var(--text-2)}
.going--firm{background:#FDF2C7;color:#6B5200}
.going--good{background:#DCF3E4;color:#13623B}
.going--soft{background:#E3EBFB;color:#2A4879}
.going--heavy{background:#E9E3DA;color:#5A4433}
.going--synth{background:#EDE7F6;color:#4A3B6B}

.formline{display:inline-flex;gap:3px}
.formpill{display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:3px;background:var(--bg-sunk);color:var(--text-2);font:500 12px/1 var(--mono)}
.formpill.is-win{background:var(--green);color:#fff}
.formpill.is-place{background:rgba(201,168,76,.22);color:#6B5200;box-shadow:inset 0 0 0 1px rgba(201,168,76,.5)}
/* This dark override sits here rather than in dark-theme.css because that file's plain
   `.formpill` rule (0,3,0) loads later and would otherwise grey a placing back out. */
:root[data-theme="dark"] .formpill.is-place{background:var(--gold-100);color:var(--gold-600);box-shadow:inset 0 0 0 1px rgba(212,181,95,.5)}

.metaline{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13.5px;color:var(--muted);margin:0 0 10px}
.metaline>*+*::before{content:"•";margin-right:8px;color:var(--line-strong)}
.byline{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--text-2)}
.byline img{width:36px;height:36px;border-radius:50%;object-fit:cover}

/* ------------------------------------------------------------------- cards */
.card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-color:var(--line-strong)}
.card__media{position:relative;aspect-ratio:16/9;background:var(--bg-sunk);overflow:hidden}
.card__media img{width:100%;height:100%;object-fit:cover}
.card__media .tag{position:absolute;left:10px;top:10px;z-index:2}
.card__body{display:flex;flex-direction:column;gap:8px;padding:16px 17px 18px}
.card__title{margin:0;font-size:19px;line-height:1.3;font-weight:700;letter-spacing:-.01em}
.card__title a{color:var(--text)}
.card__title a:hover{color:var(--link-hover);text-decoration:none}
.card__teaser{margin:0;font-size:15px;color:var(--text-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card__meta{margin-top:auto;font-size:13px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap}
.card--feature .card__title{font-size:clamp(23px,2.6vw,31px)}
.card--feature .card__teaser{-webkit-line-clamp:3;font-size:16.5px}
.card--row{flex-direction:row;align-items:stretch}
.card--row .card__media{flex:0 0 190px;aspect-ratio:16/10}
.card--row .card__body{padding:14px 16px}
@media (max-width:560px){.card--row{flex-direction:column}.card--row .card__media{flex:none;aspect-ratio:16/9}}
.card--bare{border:0;box-shadow:none;background:transparent}
.card--bare:hover{transform:none;box-shadow:none}

.featured{display:grid;grid-template-columns:1.55fr 1fr;gap:22px}
.featured__side{display:grid;gap:16px;align-content:start}
@media (max-width:900px){.featured{grid-template-columns:minmax(0,1fr)}}

.list-compact{list-style:none;margin:0;padding:0}
.list-compact li{display:flex;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.list-compact li:first-child{border-top:0}
.list-compact img{width:92px;height:52px;object-fit:cover;border-radius:4px;flex:0 0 auto}
.list-compact h3{margin:0 0 3px;font-size:15.5px;line-height:1.35;font-weight:600}
.list-compact .small{color:var(--muted)}

/* -------------------------------------------------------------------- hero */
.hero{position:relative;background:var(--green-700);color:#fff;overflow:hidden;isolation:isolate}
.hero__img{position:absolute;inset:0;z-index:-2}
.hero__img img{width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(7,22,17,.62) 0%,rgba(7,22,17,.72) 45%,rgba(7,22,17,.93) 100%)}
.hero__inner{padding:74px 0 66px;max-width:860px}
.hero--tall .hero__inner{padding:120px 0 96px}
.hero--slim .hero__inner{padding:52px 0 44px}
.hero h1{color:#fff;margin:0 0 14px;text-shadow:0 2px 24px rgba(0,0,0,.4)}
.hero p{color:rgba(255,255,255,.88);font-size:18px;max-width:62ch}
.hero .kicker{color:var(--gold)}
.hero__search{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;position:relative;max-width:620px}
.hero__search input{flex:1 1 280px;min-width:0;padding:14px 16px;border-radius:var(--radius-sm);border:1px solid rgba(255,255,255,.3);background:rgba(0,0,0,.4);color:#fff;font:400 16px/1.2 var(--sans)}
.hero__search input::placeholder{color:rgba(255,255,255,.6)}
.hero__stats{display:flex;flex-wrap:wrap;gap:28px;margin-top:30px;padding-top:22px;border-top:1px solid rgba(255,255,255,.18)}
.hero__stat b{display:block;font:500 25px/1.1 var(--mono);color:var(--gold)}
.hero__stat span{font-size:13px;color:rgba(255,255,255,.72);text-transform:uppercase;letter-spacing:.08em}

/* ------------------------------------------------------------------ tables */
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);-webkit-overflow-scrolling:touch}
/* `thead th{position:sticky}` resolves against .tablewrap, which is already the
   scrollport: with no height limit nothing inside it scrolls and the heading row never
   pins. A long table opts in with this class. */
.tablewrap--sticky{max-height:70vh;overflow-y:auto}
table.data{width:100%;border-collapse:collapse;font-size:15px;min-width:680px}
table.data--wide{min-width:920px}
table.data--narrow{min-width:0}
table.data th,table.data td{padding:11px 13px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
table.data thead th{position:sticky;top:0;z-index:3;background:var(--green);color:#fff;font:600 12.5px/1.3 var(--sans);letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;border-bottom:0}
table.data tbody tr:nth-child(even){background:var(--surface-2)}
table.data tbody tr:hover{background:var(--gold-100)}
table.data td.num,table.data th.num{text-align:right;font-family:var(--mono);font-size:14px;white-space:nowrap}
table.data td.mono{font-family:var(--mono);font-size:14px}
table.data .barrier{display:grid;place-items:center;width:26px;height:26px;border-radius:4px;background:var(--green);color:#fff;font:500 13px/1 var(--mono)}
table.data tr.is-scratched td{opacity:.5;text-decoration:line-through}
table.data tr.is-winner{background:rgba(22,163,74,.1)!important;box-shadow:inset 3px 0 0 var(--win)}
table.data caption{caption-side:top;text-align:left;padding:12px 13px;font:600 13px/1.4 var(--sans);color:var(--muted);background:var(--surface-2);border-bottom:1px solid var(--line)}
.tablenote{margin:10px 0 0;font-size:13px;color:var(--muted)}
.scrollhint{display:none;font-size:12.5px;color:var(--muted);margin:8px 0 0}
@media (max-width:760px){.scrollhint{display:block}}

/* The track count is pinned, never auto-fit. auto-fit collapses only a track no item
   ever occupies, so a cell count that does not divide by the number of tracks fills
   every track and leaves empty areas on the last row, and an empty area carries no
   .statgrid div: the container's background:var(--line) reads through it as a missing
   panel, #E5E7EB on white and #2C2C38 in the dark theme. The two rules below are the
   plain grid's, and the :not() keeps them off the variants further down so nothing but
   a variant's own rule decides its tracks.
   index.php's ledger is the only plain caller: four cells (tips, winners, strike,
   return) in a .panel--sunk inside a .grid--2 half column. Measured grid box, which is
   the viewport less the gutters, the panel's padding and its border, and halved once
   .grid--2 is in two columns: 242px at 320px, 282px at 360px, 394px at 480px, 303px at
   760px, 373px at 900px, 443px at 1040px, 523px at 1200px, 533px at 1280px. A 130px
   minimum takes three tracks of that from 480px to 610px and again from 942px to
   1203px, and four cells across three tracks is one cell beside two empty areas, which
   is what the page served at 480px, at 561px, at 1040px and at 1200px before this.
   So: two tracks from 360px, four once the half column clears 513px, which is a 1181px
   viewport and also where the masthead nav returns, one track below 360px. The figure
   runs to six characters at most, -11.3% in data/tips.php, and six characters of the
   23px mono face run 83px. Measured against that, the narrowest track this gives is
   140px at a 360px viewport for 107px of content, and the four-track desktop case is
   127px for 95px; two tracks at 320px would leave 87px against the same 83px, which is
   why the last step down is there. Four divides by 1, 2 and 4, so no tail span. */
.statgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.statgrid div{background:var(--surface);padding:14px 16px}
.statgrid b{display:block;font:500 23px/1.15 var(--mono);color:var(--text)}
.statgrid span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
@media (min-width:360px){.statgrid:not([class*="statgrid--"]){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1181px){.statgrid:not([class*="statgrid--"]){grid-template-columns:repeat(4,minmax(0,1fr))}}

/* --------------------------------------------------------- tips and panels */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px}
.panel--sunk{background:var(--bg-alt)}
.panel__h{display:flex;align-items:center;gap:9px;margin:0 0 14px;font-size:17px;font-weight:700;letter-spacing:-.01em}
.panel__h svg{width:19px;height:19px;flex:0 0 auto;fill:var(--gold)}

.tipbox{position:relative;background:linear-gradient(135deg,var(--gold-100),transparent 70%),var(--surface);border:1px solid rgba(201,168,76,.45);border-left:4px solid var(--gold);border-radius:var(--radius);padding:22px 24px}
.tipbox__top{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.tipbox__top svg{width:22px;height:22px;fill:var(--gold)}
.tipbox__top h2,.tipbox__top h3{margin:0;font-size:18px}
.tipbox__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin-bottom:14px}
.tipbox__grid dt{font:600 11px/1.5 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.tipbox__grid dd{margin:2px 0 0;font-size:16.5px;font-weight:600}
.tipbox__why{margin:0;color:var(--text-2);font-size:15.5px}
.pick{display:flex;gap:12px;padding:14px 0;border-top:1px solid var(--line)}
.pick:first-of-type{border-top:0}
.pick__rank{flex:0 0 34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--green);color:#fff;font:600 14px/1 var(--mono)}
.pick--ew .pick__rank{background:var(--gold);color:#17170F}
.pick--rough .pick__rank{background:#6B7280}
.pick b{display:block;font-size:16px}
.pick span{font-size:14px;color:var(--muted)}

.disclaimer{margin:18px 0 0;padding:13px 16px;border-left:3px solid var(--gold);background:var(--bg-alt);border-radius:0 var(--radius-sm) var(--radius-sm) 0;font-size:13.5px;color:var(--text-2)}
.disclaimer strong{color:var(--text)}
.disclaimer--hard{border-left-color:var(--error)}
.helpline{font-size:13.5px;color:var(--text-2)}

/* ----------------------------------------------------------------- article */
.article{max-width:none}
.article__head{padding:30px 0 18px}
.article__head h1{margin:0 0 12px;max-width:24ch}
.article__figure{margin:0 0 24px}
.article__figure img{width:100%;border-radius:var(--radius);aspect-ratio:16/9;object-fit:cover}
.article__figure figcaption{margin-top:9px;font-size:13px;color:var(--muted)}
.article__figure figcaption b{color:var(--text-2);font-weight:600}
.prose{font-size:17.5px;line-height:1.75;color:var(--text)}
.prose>h2{margin:1.7em 0 .55em;font-size:clamp(21px,2.3vw,27px)}
.prose>h3{margin:1.5em 0 .5em;font-size:20px}
.prose p{margin:0 0 1.15em}
.prose a{text-decoration:underline;text-underline-offset:2px}
.prose ul,.prose ol{margin:0 0 1.2em;padding-left:1.3em}
.prose li{margin:.4em 0}
.prose blockquote{margin:1.5em 0;padding:4px 0 4px 20px;border-left:4px solid var(--gold);font-size:19.5px;line-height:1.55;color:var(--text);font-weight:500}
.prose blockquote footer{margin-top:8px;font-size:14px;color:var(--muted);font-weight:400}
.prose figure{margin:1.6em 0}
.prose figure img{border-radius:var(--radius)}
.prose figcaption{margin-top:8px;font-size:13px;color:var(--muted)}
.prose table{width:100%;border-collapse:collapse;font-size:15px;margin:1.5em 0}
.prose th,.prose td{padding:9px 11px;border-bottom:1px solid var(--line);text-align:left}
.prose thead th{background:var(--bg-alt);font-size:13px;text-transform:uppercase;letter-spacing:.06em}
.prose .pullquote{font-size:21px;line-height:1.5;font-weight:600;color:var(--green-300);border:0;border-top:2px solid var(--gold);border-bottom:2px solid var(--gold);padding:18px 0;margin:1.6em 0}
.prose hr{margin:2em 0}

.share{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:26px 0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.share span{font:600 12px/1 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.share a,.share button{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid var(--line-strong);background:var(--surface);color:var(--text-2);cursor:pointer}
.share a:hover,.share button:hover{border-color:var(--gold);color:var(--gold-600)}
.share svg{width:17px;height:17px;fill:currentColor;stroke:none}

.comments{margin-top:34px}
.comment{padding:16px 0;border-top:1px solid var(--line)}
.comment__who{display:flex;gap:10px;align-items:center;font-size:14px;margin-bottom:6px}
.comment__who b{font-weight:600}
.comment__who time{color:var(--muted)}
.comment p{margin:0;color:var(--text-2)}

/* ------------------------------------------------------------------ aside */
.aside{display:grid;gap:22px;align-content:start;position:sticky;top:calc(var(--head-h) + 16px)}
@media (max-width:1040px){.aside{position:static}}
.aside__h{margin:0 0 12px;padding-bottom:9px;border-bottom:2px solid var(--green);font-size:15px;letter-spacing:.06em;text-transform:uppercase}

/* ------------------------------------------------------------------ people */
.profile{display:grid;grid-template-columns:200px minmax(0,1fr);gap:26px;align-items:start}
@media (max-width:680px){.profile{grid-template-columns:minmax(0,1fr)}}
.profile__photo img{width:100%;border-radius:var(--radius);aspect-ratio:1/1;object-fit:cover;border:1px solid var(--line)}
.profile--wide .profile__photo img{aspect-ratio:3/2}
.profile h1{margin:0 0 8px}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px 22px;margin:16px 0 0;padding:0}
.facts dt{font:600 11px/1.6 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.facts dd{margin:0 0 6px;font-size:15.5px;font-weight:500}

.personcard{display:flex;gap:14px;align-items:center;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.personcard img{width:62px;height:62px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.personcard b{display:block;font-size:16px}
.personcard span{font-size:13.5px;color:var(--muted)}
.personcard:hover{border-color:var(--gold)}

.tabs{display:flex;gap:4px;margin:0 0 20px;border-bottom:1px solid var(--line);padding:0;list-style:none}
.tabs a,.tabs button{display:block;padding:10px 16px;border:0;background:transparent;font:600 15px/1 var(--sans);color:var(--muted);cursor:pointer;border-bottom:2px solid transparent}
.tabs a.is-active,.tabs button.is-active{color:var(--green);border-bottom-color:var(--gold)}
.tabs a:hover,.tabs button:hover{color:var(--text);text-decoration:none}

/* ---------------------------------------------------------------- calendar */
.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:0 0 22px;padding:16px;background:var(--bg-alt);border:1px solid var(--line);border-radius:var(--radius)}
.filters label{display:flex;flex-direction:column;gap:5px;font:600 11px/1.4 var(--sans);letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.filters select,.filters input{padding:9px 11px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font:400 15px/1.2 var(--sans);min-width:150px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px;padding:0;list-style:none}
.chips a{display:inline-block;padding:7px 14px;border:1px solid var(--line-strong);border-radius:999px;font:600 13.5px/1 var(--sans);color:var(--text-2);background:var(--surface)}
.chips a:hover{border-color:var(--gold);color:var(--gold-600);text-decoration:none}
.chips a.is-active{background:var(--green);border-color:var(--green);color:#fff}

.monthblock{margin:0 0 30px}
.monthblock__h{display:flex;align-items:baseline;gap:12px;margin:0 0 12px;padding-bottom:8px;border-bottom:2px solid var(--gold)}
.monthblock__h h2{margin:0;font-size:21px}
.monthblock__h span{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}

.daystrip{display:flex;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.daystrip__date{flex:0 0 74px;text-align:center;border-right:1px solid var(--line);padding-right:12px}
.daystrip__date b{display:block;font:500 24px/1 var(--mono)}
.daystrip__date span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.daystrip__body{flex:1 1 auto;min-width:0}
.daystrip__body h3{margin:0 0 4px;font-size:17px}
.daystrip__meta{font-size:13.5px;color:var(--muted);display:flex;flex-wrap:wrap;gap:10px}

/* ----------------------------------------------------------------- gallery */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.gallery figure{margin:0;border-radius:var(--radius);overflow:hidden;background:var(--bg-sunk);border:1px solid var(--line)}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .3s ease}
.gallery figure:hover img{transform:scale(1.04)}
.gallery figcaption{padding:9px 11px;font-size:13px;color:var(--text-2)}

/* ------------------------------------------------------------------- forms */
.form{display:grid;gap:14px;max-width:620px}
/* position: the search suggestion panel on search.php and 404.php is absolutely
   positioned inside a .field and has nothing else to hang off. */
.field{display:grid;gap:6px;position:relative}
.field label{font:600 13px/1.3 var(--sans);color:var(--text-2)}
.field input,.field select,.field textarea{padding:12px 13px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font:400 16px/1.4 var(--sans);width:100%}
.field textarea{min-height:150px;resize:vertical}
/* No `outline:none` here: this rule beats :focus-visible, so killing the outline took
   the ring off every field. --green-300 is 7.2:1+ on the light surfaces and 5:1+ on the
   dark ones; gold was 2.3:1 on white, under the 3:1 floor for a focus indicator. */
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--green-300);outline:2px solid var(--green-300);outline-offset:2px;box-shadow:0 0 0 3px var(--gold-100)}
.field__hint{font-size:12.5px;color:var(--muted)}
.formnote{margin:4px 0 0;padding:10px 13px;border-radius:var(--radius-sm);font-size:14px}
.formnote.is-ok{background:rgba(22,163,74,.12);color:#13623B;border:1px solid rgba(22,163,74,.3)}
.formnote.is-bad{background:rgba(220,38,38,.1);color:#9B1C1C;border:1px solid rgba(220,38,38,.3)}

.newsletter__row{display:flex;gap:8px;flex-wrap:wrap}
.newsletter__row input{flex:1 1 200px;min-width:0;padding:11px 13px;border-radius:var(--radius-sm);border:1px solid var(--line-strong);background:var(--surface);color:var(--text);font-size:15px}
.newsletter__fine{margin:8px 0 0;font-size:12.5px;color:var(--muted)}
.cta-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px;background:var(--green);color:#fff;border-radius:var(--radius)}
.cta-strip h2{margin:0 0 4px;color:#fff;font-size:22px}
.cta-strip p{margin:0;color:rgba(255,255,255,.82);font-size:15px}
.cta-strip .newsletter{flex:1 1 320px;max-width:440px}
.cta-strip .newsletter__row input{border-color:rgba(255,255,255,.3);background:rgba(0,0,0,.25);color:#fff}
.cta-strip .newsletter__fine{color:rgba(255,255,255,.65)}

.promo{display:grid;grid-template-columns:1.1fr 1fr;gap:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface)}
.promo img{width:100%;height:100%;min-height:240px;object-fit:cover}
.promo__body{padding:28px 30px;display:flex;flex-direction:column;justify-content:center;gap:10px}
@media (max-width:760px){.promo{grid-template-columns:minmax(0,1fr)}}

/* -------------------------------------------------------------- pagination */
.pager{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;margin:34px 0 0;list-style:none;padding:0}
.pager a,.pager span{display:grid;place-items:center;min-width:40px;height:40px;padding:0 12px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);font:600 14.5px/1 var(--sans);color:var(--text-2);background:var(--surface)}
.pager a:hover{border-color:var(--gold);color:var(--gold-600);text-decoration:none}
.pager .is-current{background:var(--green);border-color:var(--green);color:#fff}
.pager .is-gap{border:0;background:transparent}

/* ------------------------------------------------------------------ footer */
.foot{background:var(--green-700);color:rgba(255,255,255,.8);margin-top:56px;font-size:14.5px}
.foot__grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.4fr;gap:34px;padding:44px var(--gut) 34px}
@media (max-width:980px){.foot__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}}
@media (max-width:560px){.foot__grid{grid-template-columns:minmax(0,1fr)}}
.foot__h{margin:0 0 12px;font:600 12px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.foot__blurb{margin:14px 0 0;max-width:34ch;color:rgba(255,255,255,.66)}
.foot__links{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.foot__links a{color:rgba(255,255,255,.8)}
.foot__links a:hover{color:var(--gold)}
.social{display:flex;gap:9px;list-style:none;margin:0 0 18px;padding:0}
.social a{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.24);color:#fff}
.social a:hover{border-color:var(--gold);color:var(--gold)}
.social svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}
.foot__legal{border-top:1px solid rgba(255,255,255,.14);padding:20px 0 30px;font-size:13px;color:rgba(255,255,255,.6)}
.foot__legal p{margin:0 0 8px}
.foot__legal a{color:var(--gold);text-decoration:underline}
.foot__disclaimer{max-width:110ch}
.foot__copy{color:rgba(255,255,255,.55)}  /* 5.4:1 light, 6.2:1 dark; .45 was 4.13:1 */

/* ---------------------------------------------------------------- 404 page */
.notfound{text-align:center;padding:70px 0}
.notfound h1{font-size:clamp(28px,5vw,46px)}
.notfound .quick{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:24px}

/* -------------------------------------------------------------- utilities */
.mt0{margin-top:0}.mb0{margin-bottom:0}
.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}.mt32{margin-top:32px}
.mb16{margin-bottom:16px}.mb24{margin-bottom:24px}.mb32{margin-bottom:32px}
.muted{color:var(--muted)}
.mono{font-family:var(--mono)}
.nowrap{white-space:nowrap}
.center{text-align:center}
.flexrow{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.spread{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between}
.win{color:var(--win);font-weight:600}
.oddsbox{font:500 15px/1 var(--mono);padding:5px 9px;border:1px solid var(--line-strong);border-radius:4px;display:inline-block;background:var(--surface-2)}

@media print{
  .masthead,.foot__grid,.share,.pager,.searchbar,.drawer,.cta-strip{display:none}
  body{background:#fff;color:#000;font-size:12pt}
  .hero::after{display:none}
}

/* --------------------------------------- blog/_article.php — long-read column */
/* Wider measure than a news story: the analysis pieces run 1,000–1,300 words. */
.cols--essay{grid-template-columns:minmax(0,1fr) 312px;gap:44px}
.cols--essay .prose{font-size:18px;max-width:72ch}
.cols--essay .article__head h1{max-width:30ch}
@media (max-width:1040px){.cols--essay{grid-template-columns:minmax(0,1fr);gap:30px}}

/* -------------------- horses/ + racecourses/ — filterable card cell */
/* Layout only. The cell stretches so the cards in a line do not come out ragged,
   and min-width:0 stops a long name widening the grid track. Which element the
   client-side filter hides differs by page — a bare div wraps the cell in
   horses/index.php, .hcell itself carries data-row in racecourses/index.php — and
   either works because the global [hidden] rule at the end of this file outranks
   the display:flex here. */
.hcell{display:flex;min-width:0}
.hcell>.card{flex:1 1 auto;min-width:0}

/* ---- horses/, people/, races/, pn_result_table() — money grids */
/* Five templates use this variant and the site serves 72 of these grids: 40 of six
   cells (a horse's career record, the race header, the dividends), 16 of seven (a
   person's season) and 16 of five (a person's career). Auto-fit does not hold them.
   Auto-fit collapses only a track no item ever occupies, so seven cells across six
   candidate tracks fill all six and leave five empty areas on the last row, and an
   empty area carries no .statgrid div — the container's background:var(--line) reads
   through as a missing panel, #E5E7EB on white and #2C2C38 in the dark theme. So the
   track count is pinned per width and the last cell spans whatever its row has left,
   which comes out gapless at any cell count instead of only at the multiples of three.
   The figure sets the floor. The longest one standing in a track of its own is eleven
   characters — $20,000,000 of Everest prizemoney, $14,800,000 of season prizemoney —
   and eleven characters of 23px Roboto Mono run 152px. The twelve-character
   $112,000,000 of career prizemoney is the last cell of a five, so it spans two.
   Three tracks from 561px up: the narrowest article column is 631px, at a 1041px
   viewport where the face is already capped at 23px, and that leaves 178px of content
   against 152px. At 561px the column is 521px and the face is on its 16px floor:
   141px against 106px. Two tracks from 360px, where a 328px column gives 132px
   against 106px. One track under that, because two leave 112px. */
.statgrid--money{grid-template-columns:minmax(0,1fr)}
.statgrid--money b{font-size:clamp(16px,2.6vw,23px)}
@media (min-width:360px){
  .statgrid--money{grid-template-columns:repeat(2,minmax(0,1fr))}
  .statgrid--money>div:last-child:nth-child(2n+1){grid-column:span 2}
}
@media (min-width:561px){
  .statgrid--money{grid-template-columns:repeat(3,minmax(0,1fr))}
  /* The two-track tail is cancelled at equal specificity first: a three-cell grid
     matches 2n+1 but not 3n+1 or 3n+2, and must not keep the span. */
  .statgrid--money>div:last-child:nth-child(2n+1){grid-column:auto}
  .statgrid--money>div:last-child:nth-child(3n+1){grid-column:span 3}
  .statgrid--money>div:last-child:nth-child(3n+2){grid-column:span 2}
}

/* ------------------------------------- people/index.php — standings name cell */
/* 40px round portrait beside the linked name inside the season standings tables. */
.whocell{display:flex;align-items:center;gap:10px;min-width:210px}
.whocell img{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:0 0 auto;border:1px solid var(--line)}
.whocell>span{min-width:0}
.whocell a{font-weight:600}
.whocell span span{display:block;font-size:12.5px;line-height:1.4;color:var(--muted);max-width:42ch}

/* ------------------------------ racecourses/_course.php — track facts grid */
/* The eight track facts sit in one .statgrid, but two of them (the club and the
   rail position) are sentences rather than numbers, so they get a smaller face
   and a normal line height instead of the 23px mono used for a figure.
   The tracks are pinned for the reason the money grid's are. Eight cells under
   auto-fit took six tracks in the 810px article column and left row two as two cells
   beside four empty areas: a band of var(--line) four cells wide, on all eleven
   profiles. Eight divides by 1, 2 and 4, so no tail span is needed here either. The
   longest figure standing in a track of its own is Right-handed, on the six
   right-handed courses: twelve characters, measured at 144px in the 20px cap of the
   clamp, which wants a 191px track to keep 15px off the edge, and four of those need
   a 769px grid. Collapsed, the column is the wrap, so that is an 810px viewport; with
   the 332px aside and the 38px gap back it is 1181px, which is also where the masthead
   nav returns. Measured at both: 770px and 771px of grid, 159px of cell content
   against the 144px of figure. Two tracks hold it down to 360px, where a 328px column
   gives 130px against the 115px the figure runs at the 16px floor of the clamp, and
   one track below that, because two tracks at 320px leave 110px against that 115px. */
.statgrid--track{grid-template-columns:minmax(0,1fr)}
@media (min-width:360px){.statgrid--track{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:810px) and (max-width:1040px){.statgrid--track{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1181px){.statgrid--track{grid-template-columns:repeat(4,minmax(0,1fr))}}
.statgrid--track b{font:500 clamp(16px,3.6vw,20px)/1.25 var(--mono)}
.statgrid--track .is-note b{font:500 14.5px/1.5 var(--sans);letter-spacing:0}

/* ------------------------------------ calendar/index.php — run fixtures */
/* A fixture whose date sits behind the editorial today keeps its place in the
   chronological list but reads back: the strip greys off and a flat "Run" label
   sits beside the name. The month anchors clear the sticky masthead. */
.monthblock[id]{scroll-margin-top:calc(var(--head-h) + 18px)}
.daystrip.is-run{opacity:.6}
.daystrip.is-run:hover,.daystrip.is-run:focus-within{opacity:1}
.ranlabel{display:inline-block;vertical-align:2px;padding:2px 8px;border:1px solid var(--line-strong);border-radius:4px;background:var(--bg-alt);font:600 11px/1.6 var(--sans);letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}

/* ------------------------- fashion/index.php — next judging date, linked photos */
/* The soonest Fashions on the Field date is flagged in the events table, so the
   row has to beat the zebra stripe underneath it; both tokens flip in dark. */
table.data tbody tr.is-next{background:var(--gold-100);box-shadow:inset 3px 0 0 var(--gold)}
.pill-next{display:inline-block;margin-left:7px;padding:2px 8px;border-radius:999px;background:var(--gold);color:#17170F;font:600 10.5px/1.7 var(--sans);letter-spacing:.09em;text-transform:uppercase;vertical-align:middle}
/* Every gallery photo links to the full file, so the anchor carries the hover ring
   and sits flush in the figure instead of leaving an inline descender gap. */
.gallery figure a{display:block;position:relative;line-height:0}
.gallery figure a::after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 2px transparent;transition:box-shadow .15s ease}
.gallery figure a:hover::after,.gallery figure a:focus-visible::after{box-shadow:inset 0 0 0 2px var(--gold)}

/* ------------------- about.php + the policy pages — anchored sections */
/* Bylines all over the site link to about.php#<author-slug>, and the three legal
   pages carry a section index, so an anchored card or heading has to clear the
   sticky masthead when it is jumped to. The gold ring marks the desk card the
   byline actually meant, otherwise a reader lands on four identical panels. */
.deskcard{scroll-margin-top:calc(var(--head-h) + 20px)}
.deskcard:target{border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-100)}
.prose>h2[id]{scroll-margin-top:calc(var(--head-h) + 20px)}

/* global — the client-side filters (main.js) hide rows by setting the hidden
   attribute. Any author display: on a row wrapper (.hcell is display:flex)
   outranks the UA [hidden] rule, which left filtered cards on screen while
   the counter said otherwise. This makes hidden mean hidden everywhere. */
[hidden]{display:none!important}
