/* NowPicking — War Room Wall. Plain layered CSS, no framework.
   Layers: tokens → base → layout → components → pages. */
@layer tokens, base, layout, components, pages;

/* Fonts: self-hosted Latin subsets, SIL OFL 1.1 (see assets/fonts/OFL-*.txt). 3 files, 109 KB total. */
@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-grotesque-nowpicking.woff2") format("woff2");
  font-weight: 500 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("/assets/fonts/atkinson-next-nowpicking.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("/assets/fonts/atkinson-next-italic-nowpicking.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
/* Metric-matched fallbacks (computed against Arial / Liberation Sans with fontTools). */
@font-face {
  font-family: "Bricolage fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 98.9%; ascent-override: 94.1%; descent-override: 27.3%; line-gap-override: 0%;
}
/* Narrow fallback for condensed display headlines (font-stretch ~78%), so the headline wraps the same before
   and after the web font arrives and nothing below it shifts. */
@font-face {
  font-family: "Bricolage condensed fallback";
  src: local("Arial Narrow"), local("Liberation Sans Narrow"), local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 84%; ascent-override: 110%; descent-override: 32%; line-gap-override: 0%;
}
@font-face {
  font-family: "Atkinson fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 98.5%; ascent-override: 99.9%; descent-override: 32.1%; line-gap-override: 0%;
}

/* ───────────────────────────── tokens ───────────────────────────── */
@layer tokens {
  :root {
    --wall: #0e1a2e;      /* night navy, from the logo's ground */
    --wall-2: #152540;    /* raised plate */
    --wall-3: #203759;    /* ledges, outlines */
    --chalk: #eef2f5;
    --tag: #ffffff;
    --ink: #10213f;       /* logo navy */
    --muted-w: #9aa7b8;   /* secondary text on navy: 7.1:1 on --wall, 6.3:1 on --wall-2, 4.9:1 on --wall-3 */
    --muted-c: #566173;   /* secondary text on chalk and tags: 5.6:1 on --chalk, 6.3:1 on --tag */
    --accent: #38c6c9;    /* logo teal: lit magnets, current item, primary action. Navy ink on it (7.7:1). */
    --line-w: rgb(238 242 245 / .13);
    --line-c: rgb(16 33 63 / .14);

    --f-display: "Bricolage", "Bricolage fallback", system-ui, sans-serif;
    --f-text: "Atkinson", "Atkinson fallback", system-ui, sans-serif;

    --ease: cubic-bezier(.16, 1, .3, 1);
    --t-press: 110ms;
    --t-pop: 170ms;
    --t-sheet-in: 320ms;
    --t-sheet-out: 240ms;
    --t-flip: 600ms;

    --gut: clamp(1rem, 3.2vw, 2.5rem);
    --rail-h: 3.5rem;   /* top rail: wide screens with a fine pointer; touch devices always get the bottom thumb rail */
    --rail-top: 0px;
    --rail-bottom: calc(4.25rem + env(safe-area-inset-bottom));
    --stage-h: calc(100svh - var(--rail-top) - var(--rail-bottom));

    /* Reading surface (chalk). Dark preference keeps reading pages on graphite. */
    --bg: var(--chalk);
    --fg: var(--ink);
    --muted: var(--muted-c);
    --focus: var(--ink);
    --line: var(--line-c);
    color-scheme: light dark;
  }
  @media (min-width: 64rem) and (pointer: fine) {
    :root { --rail-top: var(--rail-h); --rail-bottom: 0px; }
  }
  @media (prefers-color-scheme: dark) {
    :root { --bg: var(--wall); --fg: var(--chalk); --muted: var(--muted-w); --focus: var(--accent); --line: var(--line-w); }
  }
  /* Surface helpers: everything inside picks up the right text, muted and focus colours. */
  .on-wall { --fg: var(--chalk); --muted: var(--muted-w); --focus: var(--accent); --line: var(--line-w); color: var(--fg); }
  .on-tag { --fg: var(--ink); --muted: var(--muted-c); --focus: var(--ink); --line: var(--line-c); color: var(--fg); }
}

/* ───────────────────────────── base ───────────────────────────── */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body {
    margin: 0; background: var(--bg); color: var(--fg);
    font: 400 1.0625rem/1.55 var(--f-text);
    font-variant-numeric: tabular-nums;
    padding-bottom: var(--rail-bottom);
    overflow-x: clip;
  }
  img, svg { display: block; max-width: 100%; height: auto; }
  h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; }
  p { margin: 0 0 1em; text-wrap: pretty; }
  ul, ol { padding-left: 1.25rem; }
  a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
  button { font: inherit; color: inherit; }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
  :target { scroll-margin-top: calc(var(--rail-top) + 1rem); }
  main:focus { outline: none; }
  .vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .skip {
    position: fixed; left: .75rem; top: .75rem; z-index: 100; padding: .75rem 1rem;
    background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none; border-radius: 4px;
    transform: translateY(-200%);
  }
  .skip:focus-visible { transform: none; outline-color: var(--ink); }
  time { white-space: nowrap; }
  table { border-collapse: collapse; width: 100%; }
  th { text-align: left; }
  .num { text-align: right; font-variant-numeric: tabular-nums; }
  address { font-style: normal; }
  abbr[title] { text-decoration: none; cursor: help; }
}

/* ───────────────────────────── layout ───────────────────────────── */
@layer layout {
  .preview-bar {
    background: var(--ink); color: var(--chalk);
    font-size: .75rem; line-height: 1.35; padding: .45rem var(--gut);
    border-bottom: 1px dashed rgb(238 242 245 / .25);
  }

  /* The magnet rail. Desktop: sticky along the top edge of the wall. Mobile: docked bottom thumb rail. */
  .rail {
    --focus: var(--accent);
    position: fixed; inset: auto 0 0 0; z-index: 50;
    display: flex; align-items: stretch;
    background: var(--wall); color: var(--chalk);
    border-top: 1px solid var(--line-w);
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  .rail__walls { flex: none; display: flex; }
  .rail__picks {
    position: relative; flex: 1; min-width: 0;
    display: flex; gap: .25rem; margin: 0; padding: .5rem;
    list-style: none;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scrollbar-width: none;
  }
  .rail__picks::-webkit-scrollbar { display: none; }
  .rail__picks > li { flex: 0 0 2.75rem; scroll-snap-align: center; }
  @media (min-width: 64rem) and (pointer: fine) {
    .rail { position: sticky; top: 0; inset: 0 auto auto; height: var(--rail-h); padding: 0; border-top: 0; border-bottom: 1px solid var(--line-w); }
    .rail__picks { overflow: visible; gap: 2px; padding: .4375rem .5rem; scroll-snap-type: none; }
    .rail__picks > li { flex: 1 1 0; min-width: 0; }
  }

  .corner { background: var(--wall); padding: .875rem var(--gut) .25rem; }
  @media (min-width: 64rem) { .corner { padding-top: 1rem; } }

  .tray {
    --fg: var(--chalk); --muted: var(--muted-w); --focus: var(--accent);
    position: relative;
    background: var(--wall-2); color: var(--chalk);
    border-top: 5px solid var(--wall-3);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 -1px 0 rgb(0 0 0 / .35);
    padding: .75rem var(--gut) 1rem;
    font-size: .8125rem; line-height: 1.4;
  }
  .tray__in { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
  .tray__co { margin: 0; flex: 1 1 22rem; }
  .tray__co a { color: var(--chalk); }
  .tray__links { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
  .tray__links a {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .7rem;
    background: rgb(238 242 245 / .07); border-radius: 3px; text-decoration: none;
    box-shadow: inset 0 -2px 0 rgb(0 0 0 / .25);
  }
  .tray__note { flex: 1 0 100%; margin: 0; color: var(--muted-w); }

  /* Graphite masthead on reading and data pages. */
  .mast { background: var(--wall); color: var(--chalk); --focus: var(--accent); --muted: var(--muted-w); padding: 1.25rem var(--gut) 2rem; }
  .mast h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.75rem); font-weight: 700; font-stretch: 88%; max-width: 20ch; margin-bottom: .35em; }
  .mast__lede { color: var(--chalk); font-size: 1.125rem; max-width: 40rem; margin: 0; }
  .mast__meta { color: var(--muted-w); font-size: .9375rem; margin: .75rem 0 0; max-width: 46rem; }
  .mast__meta a { color: var(--chalk); }

  /* Chalk reading sheet: a comfortable column hung from the left edge, not a centred box. */
  .sheet { padding: 2rem var(--gut) 4rem; }
  .sheet > * { max-width: 42rem; }
  @media (min-width: 64rem) { .sheet { padding-left: max(var(--gut), calc((100vw - 76rem) / 2)); } .mast { padding-left: max(var(--gut), calc((100vw - 76rem) / 2)); } }
}

/* ───────────────────────────── components ───────────────────────────── */
@layer components {
  /* Wordmark: chalked small in the wall's top-left corner. */
  .wordmark {
    font: 700 1.125rem/1 var(--f-display); font-stretch: 85%; letter-spacing: -.01em;
    color: var(--chalk); text-decoration: none;
    display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem;
    --focus: var(--accent);
  }
  .wordmark__logo { width: 3rem; height: 3rem; border-radius: 10px; }
  body.landing .wordmark__logo { width: 4.5rem; height: 4.5rem; border-radius: 14px; }

  /* Team mark (type mark until an approved logo file (with its source) is supplied). */
  .tm {
    --tm-fs: .9375rem;
    display: inline-grid; place-items: center; position: relative; flex: none;
    background: var(--tm-bg, var(--ink)); color: var(--tm-fg, var(--chalk));
    font: 800 var(--tm-fs)/1 var(--f-display); font-stretch: 75%; letter-spacing: .03em;
    border-radius: 3px;
  }
  .tm__t { position: relative; }
  .tm--fb { box-shadow: inset 0 -.22em 0 var(--tm-bar), inset 0 0 0 1px rgb(238 242 245 / .16); }
  .tm--rail { --tm-fs: .625rem; height: 1rem; width: 100%; border-radius: 0 0 3px 3px; letter-spacing: .02em; }
  .tm--tag { --tm-fs: .9375rem; min-width: 3.25em; height: 1.75em; padding: 0 .45em; }
  .tm--hero { --tm-fs: clamp(3rem, 2rem + 6vw, 6.5rem); padding: .12em .28em; border-radius: 6px; }
  /* Logo marks: the unaltered file sits flat on a plain white plate so dark marks stay visible on the navy wall.
     Small and editorial only; never in branding, OG images or next to ad slots.
     Every mark is boxed: contain, max size relative to its card, padding, overflow hidden. Scale only; no crop or recolor. */
  .tm--logo {
    background: var(--tag); padding: 2px; box-shadow: inset 0 0 0 1px var(--line-c);
    overflow: hidden; min-width: 0; max-width: 100%; box-sizing: border-box;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  }
  .tm--logo img {
    display: block; box-sizing: border-box; width: 100%; height: 100%;
    max-width: 100%; max-height: 100%; min-width: 0; min-height: 0;
    object-fit: contain; object-position: center;
  }
  .tm--rail.tm--logo { width: 100%; height: 1.05rem; padding: 1px 2px; border-radius: 0 0 3px 3px; }
  .tm--tag.tm--logo { width: 2.25rem; height: 2.25rem; min-width: 0; padding: 3px; }
  .tm--hero.tm--logo { width: clamp(3.5rem, 2.75rem + 2.5vw, 5rem); height: clamp(3.5rem, 2.75rem + 2.5vw, 5rem); padding: .4rem; border-radius: 6px; }
  .sm { display: inline-grid; place-items: center; flex: none; background: var(--tag); border-radius: 3px; padding: 2px; box-shadow: inset 0 0 0 1px var(--line-c); vertical-align: middle; overflow: hidden; box-sizing: border-box; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
  .sm img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center; }
  .sm--sm { width: 1.75rem; height: 1.75rem; }
  .sm--md { width: clamp(2.75rem, 2.25rem + 2vw, 3.75rem); height: clamp(2.75rem, 2.25rem + 2vw, 3.75rem); padding: 4px; border-radius: 5px; }
  .mast__sch { display: flex; align-items: center; gap: .6rem; }
  .schlink { display: inline-flex; align-items: center; gap: .4rem; }
  .schlink .sm--sm { width: 1.5rem; height: 1.5rem; }

  /* Magnet: one pick on the rail. */
  .mag {
    display: flex; flex-direction: column; height: 100%; min-height: 2.75rem;
    position: relative; text-decoration: none; color: var(--chalk); border-radius: 4px;
    overflow: hidden;
  }
  .mag .tm--logo { flex: none; width: 100%; max-width: 100%; }
  .mag__no {
    flex: 1; display: grid; place-items: center; min-height: 1.25rem;
    background: var(--wall-3); border-radius: 3px 3px 0 0;
    font: 700 .8125rem/1 var(--f-display); font-stretch: 85%; font-variant-numeric: tabular-nums;
  }
  .mag--traded .mag__no { clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%); }
  .mag.is-lit .mag__no { background: var(--accent); color: var(--ink); }
  .mag[aria-current]::after {
    content: "Now"; content: "Now" / ""; order: -1;
    display: block; text-align: center; padding: 1px 0 2px; margin-bottom: 1px;
    background: var(--accent); color: var(--ink); border-radius: 3px 3px 0 0;
    font: 700 .5625rem/1 var(--f-text); letter-spacing: .02em;
  }
  .rail__picks .mag { height: 3.25rem; }
  @media (min-width: 64rem) and (pointer: fine) {
    .rail__picks .mag { height: 100%; }
    .mag[aria-current]::after {
      position: absolute; top: calc(100% + .4375rem); left: 50%; transform: translateX(-50%);
      padding: .25rem .4rem; border-radius: 0 0 3px 3px; font-size: .6875rem; white-space: nowrap;
      box-shadow: 0 6px 14px -6px rgb(0 0 0 / .5);
    }
  }
  @media (hover: hover) and (pointer: fine) {
    .mag:hover .mag__no { background: #2c4670; }
    .mag.is-lit:hover .mag__no { background: #62d6d8; }
  }

  /* Page menu: the button at the left end of the rail names the current page; popover on desktop, sheet on touch. */
  .wallbtn {
    display: flex; align-items: center; gap: .5rem; min-width: 4.75rem; max-width: 10rem; padding: 0 .9rem; margin: 0;
    border: 0; border-right: 1px solid var(--line-w); background: var(--wall-2); color: var(--chalk); cursor: pointer; text-align: left;
  }
  .wallbtn__now { display: flex; align-items: center; gap: .5rem; min-width: 0; font: 700 .9375rem/1.15 var(--f-display); font-stretch: 90%; }
  .wallbtn__now::after {
    content: ""; flex: none; width: .5rem; height: .5rem; border: solid currentColor; border-width: 0 2px 2px 0;
    transform: rotate(-135deg) translate(-1px, -1px);
  }
  @media (min-width: 64rem) and (pointer: fine) {
    .wallbtn { min-width: 9.5rem; max-width: none; padding: 0 1rem; }
    .wallbtn__now { font-size: 1.0625rem; gap: .6rem; }
    .wallbtn__now::after { transform: rotate(45deg) translate(-2px, -2px); }
  }
  @media (hover: hover) and (pointer: fine) { .wallbtn:hover { background: var(--wall-3); } }

  .walls { color: var(--chalk); --focus: var(--accent); }
  .walls[popover] {
    margin: 0; padding: 1rem; border: 1px solid var(--line-w); border-radius: 10px;
    background: var(--wall-2);
    box-shadow: 0 24px 48px -20px rgb(0 0 0 / .7);
    position: fixed; inset: auto auto auto .5rem; top: calc(var(--rail-h) + .5rem);
    width: min(21rem, calc(100vw - 1rem)); transform-origin: top left;
  }
  .walls__main { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .walls__main a {
    display: grid; gap: .1rem; padding: .6rem .75rem; min-height: 2.75rem; border-radius: 5px;
    text-decoration: none; background: rgb(238 242 245 / .04);
  }
  .walls__n { font: 700 1.125rem/1.1 var(--f-display); font-stretch: 90%; }
  .walls__d { font-size: .8125rem; color: var(--muted-w); }
  .walls__main a[aria-current] { background: var(--accent); color: var(--ink); --focus: var(--ink); }
  .walls__main a[aria-current] .walls__d { color: var(--ink); }
  .walls__main a[aria-current] .walls__n::after { content: " · you're here"; font: 400 .8125rem var(--f-text); }
  .walls__more { list-style: none; margin: .75rem 0 0; padding: .75rem 0 0; border-top: 1px solid var(--line-w); display: flex; flex-wrap: wrap; gap: .25rem; }
  .walls__more a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .6rem; font-size: .9375rem; border-radius: 4px; }
  .walls__more a[aria-current] { text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
  @media (hover: hover) and (pointer: fine) {
    .walls__main a:not([aria-current]):hover { background: rgb(238 242 245 / .1); }
  }
  @media not all and (min-width: 64rem) and (pointer: fine) {
    .walls[popover] {
      inset: auto 0 0 0; top: auto; width: 100%; max-width: none; max-height: 85svh; overflow-y: auto;
      border-radius: 14px 14px 0 0; border-width: 1px 0 0;
      padding: 1.25rem calc(1rem + env(safe-area-inset-right)) calc(1.25rem + env(safe-area-inset-bottom)) calc(1rem + env(safe-area-inset-left));
      transform-origin: bottom center;
    }
    .walls::backdrop { background: rgb(10 10 12 / .5); }
  }

  /* Interface motion: press, popover, sheet. Only under no-preference; reduce gets a short opacity fade. */
  @media (prefers-reduced-motion: no-preference) {
    .wallbtn, .mag, .press { transition: transform var(--t-press) var(--ease); }
    .wallbtn:active, .mag:active, .press:active { transform: scale(.97); }
    .walls[popover] {
      transition: opacity var(--t-pop) var(--ease), transform var(--t-pop) var(--ease), overlay var(--t-pop) allow-discrete, display var(--t-pop) allow-discrete;
    }
    .walls[popover]:not(:popover-open) { opacity: 0; transform: translateY(-4px) scale(.96); }
    @starting-style { .walls[popover]:popover-open { opacity: 0; transform: translateY(-4px) scale(.96); } }
    @media not all and (min-width: 64rem) and (pointer: fine) {
      .walls[popover] { transition-duration: var(--t-sheet-out); }
      .walls[popover]:popover-open { transition-duration: var(--t-sheet-in); }
      .walls[popover]:not(:popover-open) { opacity: 1; transform: translateY(100%); }
      @starting-style { .walls[popover]:popover-open { opacity: 1; transform: translateY(100%); } }
      .walls::backdrop { transition: opacity var(--t-sheet-out) var(--ease), overlay var(--t-sheet-out) allow-discrete, display var(--t-sheet-out) allow-discrete; }
      .walls[popover]:not(:popover-open)::backdrop { opacity: 0; }
      @starting-style { .walls[popover]:popover-open::backdrop { opacity: 0; } }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .walls[popover] { transition: opacity 150ms linear, overlay 150ms allow-discrete, display 150ms allow-discrete; }
    .walls[popover]:not(:popover-open) { opacity: 0; }
    @starting-style { .walls[popover]:popover-open { opacity: 0; } }
  }

  /* Pending-copy slips: dashed, labelled, impossible to mistake for live copy. */
  .ph {
    border: 1.5px dashed currentColor; border-radius: 4px; padding: .6rem .8rem;
    font-size: .9375rem; color: var(--muted); max-width: 42rem;
  }
  .ph strong { color: var(--fg); }

  /* Ad plates (render only when site.ads.enabled). Fixed reserved sizes keep CLS near zero. */
  .ad { display: grid; justify-items: center; gap: .25rem; margin: 1.5rem auto; }
  .ad__k { margin: 0; font-size: .6875rem; color: var(--muted); }
  .ad__slot { background: rgb(128 128 128 / .08); border: 1px solid var(--line); }
  .ad--banner .ad__slot { width: 320px; height: 100px; }
  @media (min-width: 48rem) { .ad--banner .ad__slot { width: 728px; height: 90px; } }
  .ad--box .ad__slot { width: 300px; height: 250px; }
  .ad--rail { display: none; }
  @media (min-width: 75rem) { .ad--rail { display: grid; position: sticky; top: calc(var(--rail-top) + 1rem); align-self: start; margin: 0; } .ad--rail .ad__slot { width: 300px; height: 600px; } }

  /* Trade marker: "From IND" opens the trade note and its source. Works without JS (<details>). */
  .trade { position: relative; display: inline-block; }
  .trade > summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem;
    min-height: 2.75rem; padding: 0 .1rem; font: 700 .875rem/1 var(--f-text);
  }
  .trade > summary::-webkit-details-marker { display: none; }
  .trade__k {
    display: inline-flex; align-items: center; height: 1.6rem; padding: 0 .55rem 0 .5rem;
    border: 1.5px solid currentColor; border-radius: 3px;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  }
  .trade > summary::after { content: "+"; font-size: 1rem; color: var(--muted); }
  .trade[open] > summary::after { content: "–"; }
  .trade__note {
    position: absolute; z-index: 5; left: 0; top: calc(100% + .25rem); width: min(22rem, 78vw);
    background: var(--wall); color: var(--chalk); --focus: var(--accent);
    padding: .75rem .9rem; border-radius: 6px; font-size: .875rem; line-height: 1.45;
    box-shadow: 0 18px 36px -16px rgb(0 0 0 / .6);
  }
  .trade__note p { margin: 0 0 .4rem; }
  .trade__note p:last-child { margin: 0; }
  .trade__note a { color: var(--chalk); }
  @media (prefers-reduced-motion: no-preference) {
    .trade[open] .trade__note { animation: pop var(--t-pop) var(--ease); transform-origin: top left; }
  }
  @media (prefers-reduced-motion: reduce) {
    .trade[open] .trade__note { animation: fade 150ms linear; }
  }
  @keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.96); } }
  @keyframes fade { from { opacity: 0; } }

  /* Source line */
  .src { font-size: .875rem; color: var(--muted); }
  .src a { color: inherit; }
}

/* ───────────────────────────── pages ───────────────────────────── */
@layer pages {

  /* ════════ Wall pages (landing, mock, prospects): graphite ground ════════ */
  /* Night-stage atmosphere behind every graphite page: two soft light pools and a low field glow. */
  body.wall::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(60% 45% at 12% -5%, rgb(140 190 230 / .16), transparent 70%),
      radial-gradient(55% 40% at 92% -8%, rgb(56 198 201 / .13), transparent 70%),
      radial-gradient(90% 35% at 50% 112%, rgb(56 198 201 / .10), transparent 70%),
      var(--wall);
  }
  body.wall { isolation: isolate; }
  /* The landing's stadium side border, carried onto every sub page on wide screens (fixed, faded to the centre). */
  @media (min-width: 64rem) {
    body.wall:not(.landing)::after {
      content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
      background:
        url("/assets/brand/stadium-left.webp") left top / auto 100% no-repeat,
        url("/assets/brand/stadium-right.webp") right top / auto 100% no-repeat;
      opacity: .42;
      -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 17%, transparent 83%, #000 100%);
      mask-image: linear-gradient(90deg, #000 0, transparent 17%, transparent 83%, #000 100%);
    }
  }
  body.wall .corner, body.wall .mast, body.wall .page__head { background: transparent; }
  body.wall { background: var(--wall); color: var(--chalk); --fg: var(--chalk); --muted: var(--muted-w); --focus: var(--accent); --line: var(--line-w); }

  /* The magnet that holds a tag or a note to the wall. */
  .ptag__face::before, .bigtag::before, .pnote::before {
    content: ""; position: absolute; top: -.4rem; left: 1.25rem; width: 1.75rem; height: .8rem; border-radius: 3px;
    background: var(--wall-3); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .35), 0 2px 4px rgb(0 0 0 / .3);
  }

  /* ════════ Landing hero: the round 1 order receding in 3D, the top of the big board floating over it ════════ */
  .hero {
    position: relative; isolation: isolate; overflow: clip;
    display: grid; align-content: start; gap: 1.5rem;
    padding: clamp(1.25rem, 4svh, 3rem) var(--gut) clamp(1.5rem, 5svh, 3.5rem);
  }
  @media (min-width: 64rem) {
    .hero { align-content: space-between; gap: 2rem; min-height: max(34rem, calc(100svh - var(--rail-top) - var(--rail-bottom) - 5.5rem)); }
  }
  .hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
  .hero::before {
    inset: 0;
    background:
      url("/assets/brand/stadium-left.webp") left top / auto 100% no-repeat,
      url("/assets/brand/stadium-right.webp") right top / auto 100% no-repeat;
    opacity: .55;
    -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 34%, transparent 66%, #000 100%), linear-gradient(#000 60%, transparent);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 0, transparent 34%, transparent 66%, #000 100%), linear-gradient(#000 60%, transparent);
    mask-composite: intersect;
  }
  .hero::after {
    inset: -10% -10% 0;
    background:
      conic-gradient(from 166deg at 22% -6%, transparent 0deg, rgb(200 225 245 / .10) 8deg, transparent 20deg),
      conic-gradient(from 176deg at 78% -6%, transparent 0deg, rgb(56 198 201 / .10) 9deg, transparent 22deg),
      radial-gradient(70% 30% at 55% 100%, rgb(56 198 201 / .16), transparent 70%);
  }
  @media (max-width: 47.99rem) { .hero::before { opacity: .4; } }
  .hero__h {
    position: relative; z-index: 4; margin: 0; max-width: 9ch; color: var(--chalk);
    font: 800 clamp(3.25rem, 1rem + 7.5vw, 8.5rem)/.86 "Bricolage", "Bricolage condensed fallback", system-ui, sans-serif; font-stretch: 78%; letter-spacing: -.025em;
  }
  .hero__go { position: relative; z-index: 4; display: grid; justify-items: start; gap: .9rem; }
  .hero__now { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; font-size: 1rem; color: var(--chalk); }
  @media (max-width: 47.99rem) { .hero__now { flex-direction: column; align-items: flex-start; } }
  .hero__when { margin: 0; font-size: 1rem; color: var(--muted-w); }
  /* "Now picking": the current pick is always chartreuse plus this label. */
  .now-lbl { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--chalk); }
  .now-lbl::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); }
  .cta {
    display: inline-flex; align-items: center; gap: .8rem; min-height: 3.75rem; padding: 0 1.6rem;
    background: var(--accent); color: var(--ink); border-radius: 4px; text-decoration: none;
    font: 700 clamp(1.1875rem, 1rem + .5vw, 1.4375rem)/1 var(--f-display); font-stretch: 92%;
    box-shadow: inset 0 -3px 0 rgb(0 0 0 / .18), 0 14px 30px -16px rgb(0 0 0 / .8);
  }
  .cta::after { content: ""; width: .6rem; height: .6rem; border: solid currentColor; border-width: 3px 3px 0 0; transform: rotate(45deg); }
  @media (hover: hover) and (pointer: fine) { .cta:hover { background: #62d6d8; } }

  /* The scene sits under the button on phones and behind the headline on wide screens. */
  .hero__scene { position: relative; height: clamp(19rem, 84vw, 27rem); margin: 0 calc(var(--gut) * -1); }
  @media (min-width: 64rem) { .hero__scene { position: absolute; inset: 0; z-index: 1; height: auto; margin: 0; pointer-events: none; } }

  /* The order: 32 draft cards in one row, turned away from the viewer so pick 1 stands in front. */
  .order { position: absolute; inset: 0; perspective: 1000px; perspective-origin: 14% 50%; pointer-events: none; }
  .order__row {
    --mw: 5.75rem;
    position: absolute; left: 7%; top: 47%; margin: 0; padding: 0; list-style: none;
    display: flex; gap: calc(var(--mw) * .14); transform-origin: 0 50%;
    transform: translateY(-50%) rotateY(50deg);
  }
  @media (min-width: 40rem) { .order__row { --mw: 7.5rem; left: 12%; } .order { perspective-origin: 20% 50%; } }
  @media (min-width: 64rem) {
    .order { perspective: 1500px; perspective-origin: 34% 46%; }
    .order__row { --mw: clamp(7rem, 3rem + 8vw, 14.5rem); left: 37%; top: 52%; transform: translateY(-50%) rotateY(47deg); }
  }
  .order__card {
    flex: none; width: var(--mw); height: calc(var(--mw) * 1.32); display: grid; grid-template-rows: 1fr auto;
    border-radius: 8px; overflow: hidden; background: var(--wall-2);
    box-shadow: inset 0 0 0 1px var(--line-w), 0 30px 50px -30px rgb(0 0 0 / .85);
  }
  .order__no { display: grid; place-items: center; font: 800 calc(var(--mw) * .58)/1 var(--f-display); font-stretch: 75%; letter-spacing: -.03em; color: var(--chalk); }
  .order__card .tm { width: 100%; max-width: 100%; min-width: 0; height: calc(var(--mw) * .36); border-radius: 0; --tm-fs: calc(var(--mw) * .17); overflow: hidden; }
  .order__card .tm--logo { padding: calc(var(--mw) * .055); height: calc(var(--mw) * .36); max-height: calc(var(--mw) * .36); }
  .order__card.is-now .order__no { background: var(--accent); color: var(--ink); }
  .order__card.is-traded { clip-path: polygon(0 0, calc(100% - var(--mw) * .16) 0, 100% calc(var(--mw) * .16), 100% 100%, 0 100%); }

  /* The pins: the top of the big board as name tags floating over the order. */
  .pins { position: absolute; inset: 0; z-index: 3; list-style: none; margin: 0; padding: 0; pointer-events: none; }
  .pin { position: absolute; width: clamp(11.25rem, 15vw, 18rem); pointer-events: auto; }
  .pin:nth-child(1) { top: 2%; right: 5%; rotate: -3deg; }
  .pin:nth-child(2) { bottom: 4%; left: 5%; rotate: 2.5deg; }
  .pin:nth-child(3) { bottom: 26%; right: 3%; rotate: -2deg; }
  .pin:nth-child(n + 4) { display: none; }
  @media (min-width: 64rem) {
    .pin:nth-child(n + 4) { display: block; }
    .pin:nth-child(1) { top: 8%; right: 5%; bottom: auto; left: auto; rotate: -3deg; }
    .pin:nth-child(2) { top: 19%; right: 29%; bottom: auto; left: auto; rotate: 3deg; }
    .pin:nth-child(3) { top: 70%; right: 3%; bottom: auto; left: auto; rotate: -4deg; }
    .pin:nth-child(4) { top: 79%; right: 27%; rotate: 2deg; }
    .pin:nth-child(5) { top: 9%; right: 48.5%; rotate: -2deg; }
  }
  .pin a {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .7rem; row-gap: .1rem;
    padding: .9rem 1rem .85rem .85rem; background: var(--tag); color: var(--ink); --focus: var(--ink);
    border-radius: 3px; text-decoration: none; box-shadow: 0 1px 0 rgb(0 0 0 / .3), 0 22px 36px -18px rgb(0 0 0 / .9);
  }
  .pin a::before {
    content: ""; position: absolute; top: -.45rem; left: 50%; width: 1.9rem; height: .85rem; margin-left: -.95rem; border-radius: 3px;
    background: var(--wall-3); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .35), 0 2px 4px rgb(0 0 0 / .3);
  }
  .pin a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
  .pin__r { grid-row: 1 / span 2; font: 800 clamp(2.25rem, 1.6rem + 1vw, 3rem)/.85 var(--f-display); font-stretch: 75%; letter-spacing: -.03em; }
  .pin__n { font: 700 clamp(1.0625rem, .9rem + .45vw, 1.375rem)/1.1 var(--f-display); font-stretch: 86%; }
  .pin__m { font-size: .8125rem; color: var(--muted-c); }
  @media (hover: hover) and (pointer: fine) { .pin a:hover .pin__n { text-decoration: underline; text-decoration-thickness: 2px; } }

  /* Motion (no-preference only): the order swings in, the pins drop on and keep a slow drift; on fine
     pointers everything with --d also shifts a few px against the pointer. Reduced motion: still. */
  @media (prefers-reduced-motion: no-preference) {
    .cta { transition: transform var(--t-press) var(--ease); }
    .cta:active { transform: scale(.97); }
    .order__row { animation: order-in 1400ms var(--ease) both; }
    .pin { animation: pin-drop 650ms var(--ease) both; animation-delay: calc(var(--i) * 80ms + 350ms); }
    .pin a { animation: pin-drift 7s cubic-bezier(.37, 0, .63, 1) infinite alternate; animation-delay: calc(var(--i) * -1.7s); }
    .hero.is-tracking [style*="--d"] {
      translate: calc(var(--px, 0) * var(--d) * -1px) calc(var(--py, 0) * var(--d) * -1px);
      transition: translate 700ms var(--ease);
    }
  }
  @keyframes order-in { from { transform: translateY(-50%) rotateY(78deg) translateZ(-140px); } }
  @media (min-width: 64rem) and (prefers-reduced-motion: no-preference) { .order__row { animation-name: order-in-wide; } }
  @keyframes order-in-wide { from { transform: translateY(-50%) rotateY(76deg) translateZ(-160px); } }
  @keyframes pin-drop { from { transform: translateY(-40px) rotate(-6deg); } }
  @keyframes pin-drift { from { transform: translate(0, -5px) rotate(-.6deg); } to { transform: translate(3px, 5px) rotate(.6deg); } }

  /* ── Also on NowPicking: a ledge under the hero ── */
  .ledge { padding: 0 var(--gut) 2.5rem; }
  .ledge__h { margin: 0 0 .6rem; font: 700 .9375rem/1.2 var(--f-text); color: var(--muted-w); }
  .ledge ul {
    list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
    background: var(--line-w); border-radius: 6px; overflow: hidden; border-top: 4px solid var(--wall-3);
  }
  @media (min-width: 40rem) {
    .ledge ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ledge li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  }
  @media (min-width: 64rem) {
    .ledge ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ledge li:last-child:nth-child(odd) { grid-column: auto; }
  }
  .ledge li { background: var(--wall-2); }
  .ledge__a { display: grid; align-content: start; gap: .3rem; height: 100%; padding: 1rem 1.1rem 1.15rem; color: var(--chalk); text-decoration: none; }
  .ledge__t { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font: 700 1.375rem/1.1 var(--f-display); font-stretch: 88%; }
  .ledge__t::after { content: ""; flex: none; width: .5rem; height: .5rem; border: solid var(--muted-w); border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); }
  .ledge__d { font-size: .9375rem; line-height: 1.35; color: var(--muted-w); }
  .ledge__a:focus-visible { outline-offset: -4px; }
  @media (hover: hover) and (pointer: fine) {
    .ledge__a:hover { background: var(--wall-3); }
    .ledge__a:hover .ledge__d { color: var(--chalk); }
    .ledge__a:hover .ledge__t::after { border-color: var(--chalk); }
  }

  .floor { padding: 0 var(--gut) 2rem; }
  .floor:empty { display: none; }

  /* ════════ Big board: year at the top, views as one horizontal row, school as its own dropdown ════════ */
  .mast--board { background: transparent; padding-bottom: 1.25rem; }
  .mast--board .pickform--year { margin-bottom: 1rem; }
  .pickform { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; margin: 0; }
  .pickform label { font-size: .875rem; font-weight: 700; color: var(--muted-w); }
  .pickform select {
    min-height: 2.75rem; padding: 0 2.25rem 0 .85rem; font: 700 1rem var(--f-text); color: var(--chalk);
    background: var(--wall-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23eef2f5' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .8rem center;
    border: 1px solid var(--line-w); border-radius: 6px; appearance: none; -webkit-appearance: none;
  }
  .pickform__go { min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 6px; background: var(--wall-3); color: var(--chalk); font-weight: 700; cursor: pointer; }
  html.js .pickform__go { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  html.js .pickform__go:focus-visible { position: static; width: auto; height: auto; clip-path: none; }
  html.js .pickform select { cursor: pointer; }
  .bctl {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
    padding: 0 var(--gut) 1.25rem;
  }
  @media (min-width: 64rem) { .bctl, .bwrap, .schoollist { padding-left: max(var(--gut), calc((100vw - 76rem) / 2)); padding-right: max(var(--gut), calc((100vw - 76rem) / 2)); } }
  .seg {
    list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
    background: var(--wall-2); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-w);
  }
  .seg::-webkit-scrollbar { display: none; }
  .seg a {
    display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .85rem; border-radius: 5px; white-space: nowrap;
    color: var(--chalk); text-decoration: none; font: 700 .9375rem/1 var(--f-display); font-stretch: 90%;
  }
  .seg a[aria-current] { background: var(--accent); color: var(--ink); --focus: var(--chalk); }
  @media (hover: hover) and (pointer: fine) { .seg a:not([aria-current]):hover { background: var(--wall-3); } }

  .bwrap { padding: 0 var(--gut) 3.5rem; }
  .btable-wrap { position: relative; overflow-x: auto; content-visibility: auto; contain-intrinsic-size: auto 9000px; }
  .btable { border-collapse: separate; border-spacing: 0 6px; min-width: 40rem; font-size: .9375rem; }
  .btable thead th { padding: 0; text-align: left; vertical-align: bottom; }
  .btable thead th.num { text-align: right; }
  .btable thead button {
    display: inline-flex; align-items: center; gap: .35rem; width: 100%; min-height: 2.5rem; padding: 0 .75rem;
    justify-content: inherit; border: 0; background: var(--wall-2); color: var(--chalk); font: 700 .8125rem var(--f-text);
    box-shadow: inset 0 -3px 0 var(--wall-3); cursor: pointer; text-align: inherit;
  }
  .btable thead th.num button { justify-content: flex-end; }
  .btable thead th:first-child button { border-radius: 6px 0 0 6px; }
  .btable thead th:last-child button { border-radius: 0 6px 6px 0; }
  .btable thead th[aria-sort] button { color: var(--accent); }
  .btable thead th[aria-sort="ascending"] button::after { content: "▲"; font-size: .6rem; }
  .btable thead th[aria-sort="descending"] button::after { content: "▼"; font-size: .6rem; }
  .btable tbody > tr > * { background: var(--tag); color: var(--ink); --focus: var(--ink); padding: .75rem; border: 0; }
  .btable tbody > tr > :first-child { border-radius: 4px 0 0 4px; }
  .btable tbody > tr > :last-child { border-radius: 0 4px 4px 0; }
  .btable tbody th { font: 700 1.0625rem/1.2 var(--f-display); font-stretch: 90%; }
  .btable tbody a { color: inherit; text-decoration: none; }
  .btable tbody th a { text-decoration: underline; text-decoration-color: rgb(16 33 63 / .25); text-underline-offset: .2em; }
  .btable .rank { font: 800 1.5rem/1 var(--f-display); font-stretch: 76%; width: 3.5rem; }
  .btable .rank--sub { font-size: 1rem; color: var(--muted-c); }
  .lowconf { display: block; margin-top: .2rem; font: 400 .6875rem/1 var(--f-text); color: var(--muted-c); white-space: nowrap; }
  .howrank { margin-top: 1rem; max-width: 46rem; }
  .howrank > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; color: var(--chalk); }
  .howrank__body { padding: .9rem 1.1rem; background: var(--wall-2); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-w); font-size: .9375rem; }
  .howrank__body p, .howrank__body ul { margin: 0 0 .6rem; }
  .howrank__body ul { padding-left: 1.1rem; display: grid; gap: .35rem; }
  .btable .pos { font-weight: 700; }
  .btable .empty { text-align: center; color: var(--muted-c); }
  .btable .dot { color: var(--muted-c); margin-left: .15rem; }
  @media (hover: hover) and (pointer: fine) { .btable tbody a:hover { text-decoration: underline; } }

  .schoollist { list-style: none; margin: 0; padding: 0 var(--gut) 3.5rem; display: grid; gap: 6px; max-width: 76rem; }
  .schoollist a {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3rem; padding: .7rem 1rem;
    background: var(--tag); color: var(--ink); --focus: var(--ink); border-radius: 4px; text-decoration: none;
  }
  .schoollist__n { flex: 1; font: 700 1.125rem/1.2 var(--f-display); font-stretch: 90%; }
  .schoollist__c { font-size: .875rem; color: var(--muted-c); }

  /* ════════ Prospect: one big tag, with notes pinned around it (stacked on phones). ════════ */
  .pwall {
    display: grid; gap: 1.5rem; padding: 2rem var(--gut) 3.5rem; align-items: start;
    grid-template-areas: "tag" "left" "right" "src";
  }
  .pwall__l, .pwall__r { display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
  .pwall__l { grid-area: left; }
  .pwall__r { grid-area: right; }
  @media (min-width: 48rem) {
    .pwall { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "tag tag" "left right" "src src"; }
  }
  @media (min-width: 72rem) {
    .pwall {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
      grid-template-areas: "left tag right" "src src src";
      max-width: 86rem; margin: 0 auto;
    }
  }
  .bigtag {
    grid-area: tag; position: relative; display: grid; gap: .9rem; align-content: start;
    background: var(--tag); color: var(--ink); --fg: var(--ink); --focus: var(--ink); --muted: var(--muted-c); --line: var(--line-c);
    border-radius: 6px; padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem);
    box-shadow: 0 1px 0 rgb(0 0 0 / .3), 0 36px 64px -36px rgb(0 0 0 / .85);
  }
  .bigtag::before { left: 2rem; width: 2.5rem; height: 1rem; top: -.5rem; }
  .bigtag__rank { margin: 0; display: flex; align-items: flex-end; gap: .6rem; }
  .bigtag__no { font: 800 clamp(4.5rem, 3rem + 5vw, 7.5rem)/.78 var(--f-display); font-stretch: 75%; letter-spacing: -.04em; }
  .bigtag__rk { font-size: .875rem; line-height: 1.2; color: var(--muted-c); padding-bottom: .2rem; }
  .bigtag__name { margin: 0; font: 800 clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem)/.92 var(--f-display); font-stretch: 80%; letter-spacing: -.025em; }
  .bigtag__pos { margin: 0; font: 600 1.1875rem/1.3 var(--f-display); font-stretch: 92%; }
  .bigtag__facts { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: .25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-c); }
  .bigtag__facts dt { font-size: .8125rem; color: var(--muted-c); }
  .bigtag__facts dd { margin: 0; font: 700 1.3125rem/1.2 var(--f-display); font-stretch: 90%; }
  .bigtag__src { margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--muted-c); }
  .bigtag__src a { color: inherit; }

  .pnote {
    position: relative; min-width: 0;
    background: var(--chalk); color: var(--ink); --fg: var(--ink); --focus: var(--ink); --muted: var(--muted-c); --line: var(--line-c);
    border-radius: 4px; padding: 1.2rem 1.2rem 1.05rem;
    box-shadow: 0 1px 0 rgb(0 0 0 / .3), 0 18px 30px -20px rgb(0 0 0 / .8);
  }
  .pnote::before { left: 50%; margin-left: -.875rem; }
  .pnote h2 { margin: 0 0 .65rem; font-size: 1.125rem; font-stretch: 88%; }
  .pnote p { margin: 0 0 .5rem; font-size: .9375rem; }
  .pnote p:last-child { margin-bottom: 0; }
  .pnote .pnote__foot { margin-top: .6rem; font-size: .8125rem; color: var(--muted-c); }
  .pnote a { color: inherit; }
  .pnote--src { grid-area: src; }
  .spec { font-size: .9375rem; }
  .spec th, .spec td { padding: .34rem 0; border-bottom: 1px solid var(--line-c); }
  .spec th { font-weight: 400; }
  .spec td { font-weight: 700; }
  .spec tr:last-child > * { border-bottom: 0; }
  .dot { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin: -.4rem -.3rem -.4rem 0; vertical-align: middle; }
  .dot::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
  .ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
  .pnote__big { font: 800 1.625rem/1.1 var(--f-display); font-stretch: 80%; margin: 0 0 .5rem; }
  .oboards { list-style: none; margin: 0; padding: 0; display: grid; }
  .oboards li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line-c); }
  .oboards__o { font-weight: 700; }
  .oboards__o a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
  .oboards__s { color: var(--muted-c); font-size: .875rem; }
  .oboards__note { margin: .75rem 0 0; font-size: .875rem; color: var(--muted-c); }
  .ranks a {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.75rem; padding: 0 .85rem;
    background: var(--tag); border-radius: 3px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-c);
  }
  .ranks b { font: 800 1.625rem/1 var(--f-display); font-stretch: 76%; }
  @media (hover: hover) and (pointer: fine) { .ranks a:hover span { text-decoration: underline; } }
  .srcs { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .875rem; }
  .pnote .pnote__k { margin: .6rem 0 .25rem; font-size: .75rem; font-weight: 700; color: var(--muted-c); }
  .spec__d { font-size: .75rem; color: var(--muted-c); }
  .spec__na { font-weight: 400; font-size: .8125rem; color: var(--muted-c); }

  /* ════════ Mock wall ════════ */
  .mast--mock { padding-bottom: 1.5rem; }
  .mast--mock .mast__date { font: 600 1.0625rem/1.3 var(--f-display); font-stretch: 92%; margin: 0 0 1rem; color: var(--chalk); }
  .mast--mock .mast__date b { font-weight: 700; }
  .mast__note { max-width: 46rem; font-size: .9375rem; color: var(--chalk); margin: 0 0 .5rem; }
  .mast__src { margin: 0; font-size: .875rem; color: var(--muted-w); }
  .mast__src a { color: var(--chalk); }

  .mockwall { padding: 1.5rem var(--gut) 3rem; display: grid; gap: 2rem; align-items: start; }
  @media (min-width: 64rem) {
    .mockwall { grid-template-columns: 11.5rem minmax(0, 50rem); justify-content: center; }
    .mockwall:has(.ad--rail) { grid-template-columns: 11.5rem minmax(0, 50rem) 300px; }
  }
  .slotcol { display: none; }
  @media (min-width: 64rem) {
    .slotcol {
      display: grid; grid-template-rows: repeat(32, minmax(0, 1fr)); gap: 2px;
      position: sticky; top: calc(var(--rail-top) + 1rem);
      height: min(calc(var(--stage-h) - 2rem), 52rem); margin: 0; padding: .5rem; list-style: none;
      background: var(--wall-2); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-w);
    }
    .slotcol li { min-height: 0; }
    .sc { display: grid; grid-template-columns: 1.6rem 2.6rem 1fr; align-items: center; gap: .4rem; height: 100%; padding: 0 .3rem; border-radius: 3px; text-decoration: none; color: var(--chalk); font-size: .75rem; line-height: 1; }
    .sc__no { font: 700 .75rem/1 var(--f-display); font-stretch: 85%; text-align: right; }
    .sc .tm { height: 100%; max-height: 1.1rem; width: 100%; max-width: 100%; --tm-fs: .625rem; border-radius: 2px; overflow: hidden; }
    .sc .tm--logo { padding: 1px; height: 1.1rem; max-height: 1.1rem; }
    .sc__n { color: var(--muted-w); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .sc.is-lit { background: rgb(56 198 201 / .12); }
    .sc.is-lit .sc__no { color: var(--accent); }
    .sc[aria-current] { background: var(--accent); color: var(--ink); }
    .sc[aria-current] .sc__no, .sc[aria-current] .sc__n { color: var(--ink); }
  }

  .tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
  .ptag { scroll-margin-top: calc(var(--rail-top) + 1.25rem); }
  .ptag__in { display: grid; position: relative; margin: 0; }
  .ptag__face, .ptag__blank { grid-area: 1 / 1; }
  .ptag__blank { display: none; }
  .ptag__face {
    position: relative;
    display: grid; grid-template-columns: auto 1fr; grid-template-areas: "no team" "pick pick" "foot foot";
    gap: .4rem 1rem;
    background: var(--tag); color: var(--ink); --fg: var(--ink); --muted: var(--muted-c); --focus: var(--ink); --line: var(--line-c);
    border-radius: 4px; padding: 1.25rem 1.25rem 1.1rem;
    box-shadow: 0 1px 0 rgb(0 0 0 / .3), 0 20px 36px -22px rgb(0 0 0 / .75);
  }
  @media (min-width: 40rem) {
    .ptag__face { grid-template-columns: 7rem 1fr; grid-template-areas: "no team" "no pick" "no foot"; padding: 1.4rem 1.6rem 1.25rem 1.25rem; column-gap: 1.25rem; }
  }
  .ptag__no { grid-area: no; margin: 0; font: 800 clamp(3.25rem, 2.4rem + 3vw, 5.5rem)/.82 var(--f-display); font-stretch: 75%; letter-spacing: -.035em; }
  .ptag__team { grid-area: team; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .65rem; }
  .ptag__teamname { margin: 0; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); font-stretch: 90%; }
  .ptag__teamname a { text-decoration: none; }
  .ptag__teamname a:hover { text-decoration: underline; }
  .ptag__pick { grid-area: pick; min-height: 8.25rem; display: flex; flex-direction: column; gap: .3rem; padding-top: .35rem; }
  .ptag__player { margin: 0; font: 700 clamp(1.375rem, 1.1rem + 1vw, 1.875rem)/1.1 var(--f-display); font-stretch: 92%; }
  .ptag__player a { text-decoration: none; }
  .ptag__player a:hover { text-decoration: underline; }
  .ptag__player--pending { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); }
  .ptag__player--pending::before { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--ink); margin-bottom: .55rem; }
  .ptag__meta { margin: 0; font-size: .9375rem; color: var(--muted-c); }
  .ptag__meta .listed { font-size: .8125rem; }
  .ptag__blurb { margin: .2rem 0 0; }
  .ghost { display: grid; gap: .45rem; margin-top: .55rem; }
  .ghost span { display: block; height: .6rem; border-radius: 2px; background: rgb(16 33 63 / .07); }
  .ghost span:nth-child(1) { width: 38%; }
  .ghost span:nth-child(2) { width: 88%; }
  .ghost span:nth-child(3) { width: 64%; }
  .ptag__more > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
  .ptag__foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.25rem; border-top: 1px solid var(--line-c); padding-top: .65rem; margin-top: .3rem; font-size: .875rem; }
  .ptag__slot { margin: 0; }
  .ptag__slot b { font-weight: 700; }
  .ptag__needs { margin: 0; flex: 1 1 16rem; }
  .ptag__needs.ph { padding: .25rem .5rem; font-size: .8125rem; border-width: 1px; }
  .ptag__prev {
    position: absolute; right: .9rem; top: -.65rem; margin: 0; max-width: 70%;
    background: var(--chalk); color: var(--ink); padding: .3rem .55rem; border-radius: 2px; font-size: .8125rem; font-style: italic;
    transform: rotate(-1.2deg); box-shadow: 0 6px 12px -8px rgb(0 0 0 / .6);
  }

  .method { --fg: var(--ink); --muted: var(--muted-c); --focus: var(--ink); --line: var(--line-c); background: var(--bg); color: var(--fg); padding: 2.5rem var(--gut) 3.5rem; }
  @media (prefers-color-scheme: dark) { .method { --fg: var(--chalk); --muted: var(--muted-w); --focus: var(--accent); --line: var(--line-w); } }
  .method > * { max-width: 42rem; }
  @media (min-width: 64rem) { .method { padding-left: max(var(--gut), calc((100vw - 76rem) / 2)); } }
  .method h2 { font-size: 1.5rem; font-stretch: 90%; }

  @media (prefers-reduced-motion: no-preference) {
    html.js .mockwall.is-live .ptag__in { transform-style: preserve-3d; transition: transform var(--t-flip) var(--ease); }
    html.js .mockwall.is-live .ptag:not(.is-in) .ptag__in { transform: rotateY(-180deg); }
    html.js .mockwall.is-live .ptag { perspective: 1600px; }
    html.js .mockwall.is-live .ptag__face { backface-visibility: hidden; }
    html.js .mockwall.is-live .ptag__blank {
      display: block; position: relative; backface-visibility: hidden; transform: rotateY(180deg);
      background: var(--tag); border-radius: 4px; box-shadow: 0 1px 0 rgb(0 0 0 / .3), 0 20px 36px -22px rgb(0 0 0 / .75);
    }
    html.js .mockwall.is-live .ptag__blank span { position: absolute; left: 1.25rem; top: 1.25rem; font: 800 clamp(3.25rem, 2.4rem + 3vw, 5.5rem)/.82 var(--f-display); font-stretch: 75%; color: var(--muted-c); }
  }

  /* ════════ Team needs: AFC and NFC each a 4×4 block (division columns) on desktop; one column on phones ════════ */
  .confs { display: grid; gap: 2.5rem; padding: .5rem var(--gut) 3.5rem; }
  @media (min-width: 64rem) { .confs { padding-left: max(var(--gut), calc((100vw - 76rem) / 2)); padding-right: max(var(--gut), calc((100vw - 76rem) / 2)); } }
  .conf__h { margin: 0 0 .75rem; font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); font-stretch: 82%; }
  .conf__grid { display: grid; gap: 1.25rem; }
  @media (min-width: 48rem) { .conf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 64rem) { .conf__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .divcol__h { margin: 0 0 .5rem; padding: .55rem .75rem; font: 700 .9375rem/1.2 var(--f-display); font-stretch: 90%; background: var(--wall-2); border-radius: 5px; box-shadow: inset 0 -3px 0 var(--wall-3); }
  .divcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
  .tcard {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .7rem; row-gap: .1rem;
    padding: .7rem .8rem; background: var(--tag); color: var(--ink); --focus: var(--accent); border-radius: 4px; text-decoration: none;
    box-shadow: 0 1px 0 rgb(0 0 0 / .3), 0 12px 22px -16px rgb(0 0 0 / .85);
  }
  .tcard .tm { grid-row: 1 / span 2; }
  .tcard .tm--logo { width: 2.5rem; height: 2.5rem; padding: 3px; overflow: hidden; }
  .tcard__n { font: 700 1.0625rem/1.15 var(--f-display); font-stretch: 88%; }
  .tcard__p { font-size: .8125rem; color: var(--muted-c); }
  @media (hover: hover) and (pointer: fine) { .tcard:hover .tcard__n { text-decoration: underline; text-decoration-thickness: 2px; } }

  .mast--team { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; background: transparent; }
  .mast--team h1 { margin-bottom: .25rem; }
  .pwall--team { grid-template-areas: "tag" "left" "right"; }
  @media (min-width: 48rem) { .pwall--team { grid-template-areas: "tag tag" "left right"; } }
  @media (min-width: 72rem) { .pwall--team { grid-template-areas: "left tag right"; } }
  .bigtag__name--sm { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
  .ana { display: grid; gap: .4rem; padding-top: .9rem; border-top: 1px solid var(--line-c); }
  .ana h3 { margin: 0; font-size: 1.125rem; font-stretch: 88%; }
  .ana p, .ana ul { margin: 0; font-size: .9375rem; }
  .ana ul { padding-left: 1.1rem; display: grid; gap: .35rem; }
  .ana-pair { display: grid; gap: .9rem; }
  @media (min-width: 40rem) { .ana-pair { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
  .needlist { margin: 0; padding-left: 1.25rem; display: grid; gap: .35rem; font-size: .9375rem; }

  /* ════════ Dates: each key date a pinned tag, in date order ════════ */
  .cal { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; max-width: 52rem; }
  .cal__item {
    display: grid; grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr); gap: .2rem 1.25rem; align-items: baseline;
    padding: .9rem 1.1rem; background: var(--tag); color: var(--ink); --focus: var(--ink); border-radius: 4px;
    box-shadow: 0 1px 0 rgb(0 0 0 / .3), 0 12px 22px -16px rgb(0 0 0 / .85);
  }
  .cal__item p { margin: 0; }
  .cal__date { grid-row: 1 / span 2; font: 800 1.125rem/1.2 var(--f-display); font-stretch: 85%; }
  .cal__event { font: 700 1.0625rem/1.3 var(--f-display); font-stretch: 92%; }
  .cal__tent { display: inline-block; margin-left: .35rem; padding: 0 .4rem; border: 1px solid currentColor; border-radius: 3px; font: 400 .75rem/1.5 var(--f-text); color: var(--muted-c); }
  .cal__src { font-size: .8125rem; color: var(--muted-c); }
  .cal__src a { color: inherit; }
  .cal__item.is-past { opacity: .7; }
  @media (max-width: 40rem) { .cal__item { grid-template-columns: 1fr; } .cal__date { grid-row: auto; } }

  /* ════════ Interim styles for pages not yet redesigned (after the review checkpoint) ════════ */
  .wrap { padding-left: var(--gut); padding-right: var(--gut); }
  @media (min-width: 64rem) { .wrap { padding-left: max(var(--gut), calc((100vw - 76rem) / 2)); padding-right: max(var(--gut), calc((100vw - 76rem) / 2)); } }
  .page { padding-top: 0; padding-bottom: 4rem; }
  .page__head { background: var(--wall); color: var(--chalk); --focus: var(--accent); margin: 0 calc(var(--gut) * -1) 2rem; padding: 1.25rem var(--gut) 2rem; }
  @media (min-width: 64rem) { .page__head { margin-left: calc(max(var(--gut), calc((100vw - 76rem) / 2)) * -1); margin-right: calc(max(var(--gut), calc((100vw - 76rem) / 2)) * -1); padding-left: max(var(--gut), calc((100vw - 76rem) / 2)); } }
  .page__head h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); font-stretch: 88%; max-width: 22ch; }
  .page__head .lede { color: var(--chalk); margin: 0; }
  .page__head .lede a { color: var(--chalk); }
  .page__head .stamp { color: var(--muted-w); margin: .5rem 0 0; }
  .lede { font-size: 1.125rem; max-width: 42rem; }
  .prose { max-width: 42rem; }
  .prose h2 { font-size: 1.375rem; font-stretch: 90%; margin: 2rem 0 .5rem; }
  .prose h3 { font-size: 1.125rem; font-stretch: 92%; margin: 1.5rem 0 .4rem; }
  .prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
  .prose li { margin-bottom: .4em; }
  .prose li::marker { color: var(--muted); }
  .prose address { margin-bottom: 1em; }

  /* Consent bar (Option A, ATTICUS 2026-11-22): sticky, non-blocking, equal buttons. Sits above the mobile thumb rail. */
  .consent {
    --fg: var(--chalk); --muted: var(--muted-w); --focus: var(--accent);
    position: sticky; bottom: var(--rail-bottom); z-index: 40;
    background: var(--wall-2); color: var(--chalk);
    border-top: 3px solid var(--accent);
    padding: .75rem 0 .875rem; font-size: .9375rem; line-height: 1.4;
  }
  .consent[hidden] { display: none; }
  .consent__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .625rem 1.25rem; }
  .consent__text { margin: 0; max-width: 62ch; }
  .consent__text a { color: var(--chalk); }
  .consent__btns { display: flex; gap: .625rem; }
  .consent__btn {
    min-width: 7.5rem; min-height: 2.75rem; padding: 0 1rem;
    font: 700 .9375rem/1 var(--f-text); color: var(--ink); background: var(--chalk);
    border: 2px solid var(--chalk); border-radius: 3px; cursor: pointer;
  }
  @media (hover: hover) and (pointer: fine) { .consent__btn:hover { background: var(--accent); border-color: var(--accent); } }
  .linklike {
    font: inherit; color: inherit; background: none; border: 0; padding: 0; min-height: 2.75rem; cursor: pointer;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
  }
  .tray__links .linklike {
    display: inline-flex; align-items: center; padding: 0 .7rem; text-decoration: none;
    background: rgb(238 242 245 / .07); border-radius: 3px; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .25);
  }
  html:not(.js) [data-cookie-settings] { display: none; }
  .stamp, .factnote, .muted { color: var(--muted); font-size: .9375rem; }
  .sec { margin: 2.5rem 0; }
  .sec__head h2 { font-size: 1.5rem; font-stretch: 90%; }
  .sec__head p { color: var(--muted); }
  .more a { font-weight: 700; }
  .tablewrap { overflow-x: auto; margin: 1rem 0; }
  .board, .meas, table.cal { font-size: .9375rem; }
  .board th, .board td, .meas th, .meas td, table.cal th, table.cal td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
  .board thead th, .meas thead th, table.cal thead th { font-size: .8125rem; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--fg); }
  .pos { font-weight: 700; }
  .prov { font-size: .75rem; color: var(--muted); border: 1px solid currentColor; border-radius: 3px; padding: 0 .3rem; }
  .facts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0 0 1rem; }
  .facts dt { font-size: .8125rem; color: var(--muted); }
  .facts dd { margin: 0; font: 700 1.25rem/1.2 var(--f-display); }
  .picks { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
  .pick { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; background: var(--tag); color: var(--ink); --focus: var(--ink); padding: 1rem; border-radius: 4px; box-shadow: 0 1px 0 rgb(0 0 0 / .15); }
  .pick__no { font: 800 2.5rem/.9 var(--f-display); font-stretch: 75%; }
  .pick__team, .pick__player, .pick__meta, .pick__slot, .pick__trade, .pick__why { margin: 0 0 .25rem; }
  .pick__player { font-size: 1.25rem; }
  .pick__slot, .pick__trade { color: var(--muted-c); font-size: .875rem; }
  .tag--trade { font-size: .75rem; border: 1px solid currentColor; border-radius: 3px; padding: 0 .3rem; }
  .links { list-style: none; padding: 0; display: grid; gap: .75rem; }
  .links li { display: grid; }
  .links span { color: var(--muted); font-size: .9375rem; }
  .needs { padding-left: 1.25rem; }
  .views { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: 0; list-style: none; }
  .views a[aria-current] { font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
  .empty { color: var(--muted); }
}
