/* ============================================================================
   The Smoke Ring — the /newspaper broadsheet.
   ============================================================================

   Loaded only by views/newspaper.njk, through the layout's `head` block. Every
   rule here is scoped under .np-desk or .np-sheet, because this page inverts
   almost everything kcbs.css establishes: a light paper instead of a dark
   surface, serif instead of Oswald/Inter, justified columns instead of cards.

   The sheet is an OBJECT on the site's dark chrome, not a re-skin of it — the
   header and footer stay dark and the paper lies on them, which is what keeps
   the joke readable as a joke instead of looking like a broken theme.

   ---- THE TYPE SCALE, which is the design -----------------------------------

   A broadsheet works by contrast. Set everything in agate and the page is a
   grey wall nobody reads; the eye needs somewhere to land and then a route
   down. Three levels, and every element belongs to exactly one:

     LEVEL 1, from across the room — the nameplate, the figures band, the lead
       headline, and the names in the roll of Grand Champions. Playfair at
       display sizes. These carry the numbers a reader came for.
     LEVEL 2, at reading distance — the second deck, the perfect 180s, the
       leader board, section names. Playfair at text sizes.
     LEVEL 3, when you are looking something up — box scores, complete results,
       notices, colophon. Agate: small, condensed, dense, deliberately quiet.

   Adding a number to this page means deciding which level it is. The failure
   mode is leaving a level-1 number at level 3 because a table is where the
   query happened to return it.

   Layout is column rules and hairlines, not boxes. A newspaper separates
   things with a line and a gap; the moment a section grows a border-radius and
   a background it stops reading as print. Where a box IS used (the house ad,
   the plate, the perfect-180s panel) it is deliberate and bordered like one.
*/

.np-desk {
  /* ink and paper */
  --ink: #191510;
  --ink-2: #4e463a;
  --ink-3: #7a7062;
  --paper: #f7f2e5;
  --paper-2: #efe8d6;
  --rule: #cbc0a6;
  --rule-2: #ded4bd;
  /* the spot colour. One, as a paper would buy one: kickers, drop caps, the
     down-tick on the market page, and the rarest thing on the sheet. */
  --spot: #a2350f;
  --up: #2f5d38;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --agate: "Oswald", "Arial Narrow", system-ui, sans-serif;

  padding: 14px 0 30px;
}

.np-crumb { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.np-sheet {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(16px, 2.6vw, 40px) clamp(14px, 2.4vw, 38px) clamp(20px, 2.6vw, 34px);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  /* newsprint has a grain; a pair of near-invisible gradients read as fibre
     without costing an image request */
  background-image:
    repeating-linear-gradient(0deg, rgba(120,100,70,.028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120,100,70,.022) 0 1px, transparent 1px 4px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .05);
}

/* kcbs.css gives every heading Oswald, uppercase and a flame bar before it.
   None of that belongs on a broadsheet — reset it once, here.

   :where() is load-bearing, not decoration. `.np-sheet h2` would score higher
   than the single class on the heading itself, so a reset written that way
   quietly beats every .np-head / .np-rail-h rule below it and the page renders
   in the reset's font instead of the one it asks for. Inside :where() the
   element selectors count for nothing, so the reset lands above kcbs.css and
   still loses to anything more deliberate further down this file. */
.np-sheet :where(h1, h2, h3, h4) {
  font-family: var(--display);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  display: block;
}
.np-sheet :where(h2, h3)::before { content: none; }
.np-sheet a { color: inherit; text-decoration-color: rgba(25, 21, 16, .3); text-underline-offset: 2px; }
.np-sheet a:hover { color: var(--spot); text-decoration-color: currentColor; }
.np-sheet p { margin: 0; }

/* ---------- masthead ------------------------------------------------------ */
.np-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(10px, 2vw, 30px);
  padding-bottom: 8px;
}
.np-title { text-align: center; }
.np-overline {
  font-family: var(--agate);
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 6px;
}
.np-nameplate {
  font-family: "UnifrakturMaguntia", var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7.6vw, 5.6rem);
  line-height: .96;
  letter-spacing: .01em;
  white-space: nowrap;
}
.np-motto {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(.76rem, 1.2vw, .95rem);
  color: var(--ink-2);
  margin-top: 4px;
}

/* the ears either side of the nameplate */
.np-ear { font-size: .74rem; line-height: 1.35; color: var(--ink-2); padding-bottom: 6px; }
.np-ear-h {
  font-family: var(--agate);
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px; margin-bottom: 6px;
}
.np-ear-b { margin-bottom: 4px; }
.np-ear-note { font-style: italic; color: var(--ink-3); }
.np-ear-index { text-align: left; }

.np-index { list-style: none; margin: 0; padding: 0; }
.np-index li { display: flex; align-items: baseline; gap: 6px; font-size: .72rem; }
.np-index a { text-decoration: none; }
.np-index a:hover { text-decoration: underline; }
.np-index b { font-family: var(--agate); font-weight: 500; letter-spacing: .06em; }
/* the dotted leader between an index entry and its page number */
.np-dots { flex: 1 1 auto; border-bottom: 1px dotted var(--rule); transform: translateY(-3px); min-width: 12px; }

/* the folio bar: two rules, thick over thin, the way a masthead closes */
.np-folio {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 5px 2px;
  font-family: var(--agate);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink);
}
.np-folio-date { font-weight: 500; letter-spacing: .2em; }
.np-folio a { text-decoration: underline; }

/* ---------- LEVEL 1: the figures band -------------------------------------
   The strip under the folio, and the reason the page reads at arm's length.
   These numbers used to be a column of agate in the left ear, which is exactly
   where a reader's eye goes last. */
.np-figures {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  border-bottom: 3px double var(--ink);
  margin-bottom: 16px;
}
.np-figure {
  grid-column: span 1;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center;
  padding: 12px 8px 11px;
  border-left: 1px solid var(--rule);
  min-width: 0;
}
.np-figure:first-child { border-left: 0; }
/* the marquee number — the top score — takes two cells and a size of its own */
.np-figure.is-wide { grid-column: span 2; background: var(--paper-2); }
.np-figure > b {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.6rem, 3.1vw, 2.7rem); line-height: .95;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.np-figure.is-wide > b { font-size: clamp(1.7rem, 3.5vw, 3.1rem); }
/* a four-decimal score is twice as many glyphs as a two-digit count and would
   otherwise set the width of the whole band */
.np-figure > b.is-mid { font-size: clamp(1.4rem, 2.6vw, 2.3rem); }
.np-figure > b.is-long { font-size: clamp(1.1rem, 2vw, 1.6rem); white-space: normal; }
.np-figure > b a { text-decoration: none; }
.np-figure-label {
  font-family: var(--agate);
  font-size: .58rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-2); line-height: 1.25; margin-top: 6px;
}
.np-figure-sub {
  font-family: var(--serif); font-style: italic;
  font-size: .74rem; color: var(--ink); line-height: 1.2; margin-top: 3px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- above the fold ------------------------------------------------
   Two columns, not three: the figures band took over the left rail's job, and
   giving that width back to the lead is what lets a headline be a headline. */
.np-fold {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 0 clamp(14px, 1.8vw, 26px);
  align-items: start;
}
.np-lead { border-right: 1px solid var(--rule); padding-right: clamp(14px, 1.8vw, 26px); }

.np-kicker {
  font-family: var(--agate);
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--spot); margin-bottom: 6px;
}
.np-head {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.np-head-2 { font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.08; letter-spacing: -.005em; }
.np-deck {
  font-family: var(--serif);
  font-size: 1rem; line-height: 1.35; color: var(--ink-2);
  margin-top: 9px; text-wrap: pretty;
}
.np-head-2 + .np-deck { font-size: .85rem; margin-top: 5px; }
.np-byline {
  font-family: var(--agate);
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-2);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 5px 0; margin: 12px 0 0;
}
.np-byline b { color: var(--ink); font-weight: 500; }

/* running text: justified, hyphenated, tight. This is the whole illusion. */
.np-body {
  font-size: .875rem;
  line-height: 1.44;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  margin-top: 10px;
}
.np-body p + p { margin-top: .5em; text-indent: 1.1em; }
.np-body b { font-weight: 700; }
.np-body a { text-decoration-color: rgba(162, 53, 15, .45); }
.np-body-lead { column-count: 2; column-gap: clamp(16px, 1.8vw, 26px); column-rule: 1px solid var(--rule-2); }
/* Justification needs a measure to work with. The lead's columns have it; a
   third-of-the-page secondary story does not, and justifying five words a line
   opens rivers wide enough to see from across the room. Those run ragged. */
.np-deck-2 .np-body { text-align: left; }

.np-dateline {
  font-family: var(--agate);
  font-weight: 600; letter-spacing: .12em; font-size: .8em; text-transform: uppercase;
  color: var(--ink);
}
/* the drop cap. The first letter of a lead is usually the first letter of the
   dateline, and it may sit inside a link — so colour and decoration are set
   here rather than inherited. */
.np-drop::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 900;
  font-size: 3.5em;
  line-height: .76;
  padding: .04em .07em 0 0;
  color: var(--spot);
  -webkit-text-fill-color: var(--spot);
  text-decoration: none;
}

/* The plate — what a front page gives a photograph, given to the one number
   the story is about, with the meter beneath it as the chart a paper would
   run. It spans the whole story rather than floating inside a column: at this
   measure a floated plate leaves four words a line beside it, and justified
   text four words wide is all river and no reading. */
.np-plate {
  column-span: all;
  margin: 2px 0 12px;
  padding: 10px 12px 9px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2);
  break-inside: avoid;
}
.np-plate-head { display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.np-plate-figure {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* a four-decimal score or a phrase needs to come down a size or two, or it
   sets the width of the box it is meant to sit inside */
.np-plate-figure.is-mid { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.np-plate-figure.is-long { font-size: clamp(1.2rem, 2vw, 1.6rem); white-space: normal; }
.np-plate figcaption {
  font-family: var(--agate);
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); line-height: 1.3;
  max-width: 16em; text-align: left;
}
.np-plate-meter { margin-top: 9px; }
/* the chart standing on its own, because the band already printed the number:
   bar and caption side by side, so the strip still reads as a figure */
.np-plate-meter.is-alone { display: flex; align-items: center; gap: 14px; margin-top: 0; }
.np-plate-meter.is-alone .np-meter { flex: 1 1 auto; height: 15px; }
.np-plate-meter.is-alone .np-meter-cap {
  flex: 0 1 auto; margin-top: 0; text-align: left;
  font-size: .62rem; max-width: 22em;
}
.np-meter {
  height: 9px; border: 1px solid var(--ink); background: var(--paper);
  display: block; overflow: hidden;
}
.np-meter > span {
  display: block; height: 100%;
  /* hatched, the way a paper's bar chart is filled when it owns one ink */
  background: repeating-linear-gradient(45deg, var(--ink) 0 2px, transparent 2px 4px);
}
.np-meter-cap {
  font-family: var(--agate);
  font-size: .56rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); margin-top: 4px; text-align: center;
}

/* the at-a-glance line: the supporting details, set as tags rather than as a
   one-clause paragraph */
.np-tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px;
  margin: 8px 0 0; padding: 6px 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--agate); font-size: .58rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2);
}
.np-tags li { white-space: nowrap; }
.np-tags li + li::before { content: "· "; color: var(--rule); }

/* the inset figure a secondary story runs instead of a plate */
.np-inset {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 6px 0; margin-bottom: 8px; text-align: center; text-indent: 0 !important;
}
.np-inset b {
  font-family: var(--display); font-weight: 900; font-size: 1.75rem;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.np-inset b.is-mid { font-size: 1.35rem; }
.np-inset b.is-long { font-size: 1rem; }
.np-inset span {
  display: block; font-family: var(--agate);
  font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------- the rail ------------------------------------------------------ */
.np-rail { font-size: .78rem; line-height: 1.35; }
.np-rail-h {
  font-family: var(--agate);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 4px 0; margin-bottom: 8px;
}
.np-rail-note {
  font-size: .7rem; line-height: 1.35; color: var(--ink-2);
  border-top: 1px solid var(--rule); padding-top: 6px; margin-top: 10px;
}
.np-rail-note b { color: var(--ink); }
.np-agate-note {
  font-family: var(--agate);
  font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}

/* The leader board. Level 2 — except the leader itself, which is the month's
   best card and is set to say so. */
.np-leader { list-style: none; margin: 0; padding: 0; }
.np-leader li {
  display: grid;
  grid-template-columns: 1.4em minmax(0, 1fr) auto;
  gap: 6px; align-items: baseline;
  border-bottom: 1px dotted var(--rule);
  padding: 4px 0;
}
.np-leader-pos {
  font-family: var(--agate); font-size: .7rem; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.np-leader-who { font-size: .78rem; line-height: 1.2; min-width: 0; }
.np-leader-who a { text-decoration: none; }
.np-leader-who a:hover { text-decoration: underline; }
.np-leader-who em {
  display: block; font-size: .66rem; font-style: italic; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.np-leader-score {
  font-family: var(--serif); font-weight: 600; font-size: .76rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.np-leader li:first-child { border-bottom: 1px solid var(--ink); padding-bottom: 7px; }
.np-leader li:first-child .np-leader-who { font-family: var(--display); font-weight: 700; font-size: .98rem; }
.np-leader li:first-child .np-leader-who em { font-family: var(--serif); font-size: .68rem; }
.np-leader li:first-child .np-leader-score { font-size: .95rem; font-weight: 700; }
.np-leader li:first-child .np-leader-pos { color: var(--spot); font-weight: 600; }

/* ---------- LEVEL 1: the roll of Grand Champions ---------------------------
   The thing a competitor opened the page for. Set big enough to find a team
   name in without reading, which is the entire requirement. */
.np-champions { margin-top: 6px; }
.np-champ-note { margin-bottom: 10px; }
.np-champ-roll {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0 clamp(14px, 2vw, 26px);
}
.np-champ-roll li {
  padding: 8px 0 9px;
  border-bottom: 1px dotted var(--rule);
  break-inside: avoid;
}
.np-champ-name {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1rem, 1.45vw, 1.3rem); line-height: 1.08;
  letter-spacing: -.01em;
}
.np-champ-name a { text-decoration: none; }
.np-champ-name a:hover { text-decoration: underline; }
.np-champ-at {
  display: block; font-size: .78rem; line-height: 1.25; margin-top: 2px;
  color: var(--ink-2);
}
.np-champ-at a { text-decoration: none; }
.np-champ-at a:hover { text-decoration: underline; }
.np-champ-meta {
  display: block;
  font-family: var(--agate); font-size: .58rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 3px;
}

/* ---------- second deck --------------------------------------------------- */
.np-deck-2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(14px, 1.8vw, 24px);
}
.np-deck-2 > .np-story + .np-story {
  border-left: 1px solid var(--rule);
  padding-left: clamp(14px, 1.8vw, 24px);
}

/* ---------- briefs, and the perfect scores beside them --------------------- */
.np-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 0 clamp(16px, 2.2vw, 30px);
  align-items: start;
}
.np-band {
  font-family: var(--agate);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 5px 0; margin: 22px 0 12px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.np-band-note {
  font-family: var(--serif); font-style: italic; text-transform: none;
  letter-spacing: 0; font-size: .74rem; color: var(--ink-2); font-weight: 400;
}
.np-band-foot {
  font-size: .7rem; color: var(--ink-2); margin-top: 8px;
  border-top: 1px solid var(--rule); padding-top: 6px;
}
.np-brief-cols { column-count: 2; column-gap: clamp(16px, 2vw, 26px); column-rule: 1px solid var(--rule-2); }
.np-brief { break-inside: avoid; margin-bottom: 13px; }
.np-brief h4 {
  font-family: var(--display); font-weight: 700; font-size: .98rem; line-height: 1.12;
  margin-bottom: 3px;
}
.np-brief p { font-size: .8rem; line-height: 1.38; hyphens: auto; -webkit-hyphens: auto; }

/* A 180 is the rarest thing on the sheet — six judges scoring one box a nine
   straight across — so it gets the one boxed panel and the spot colour, and
   the teams are named rather than counted. */
.np-perfect {
  border: 3px double var(--ink);
  padding: 0 12px 10px;
  background: var(--paper-2);
}
.np-band-solo { justify-content: center; border-top: 0; margin-top: 12px; }
.np-perfect-lede {
  font-size: .82rem; line-height: 1.35; color: var(--ink-2);
  text-align: center; margin-bottom: 8px;
}
.np-perfect-lede b {
  font-family: var(--display); font-weight: 900; font-size: 1.5rem;
  color: var(--spot); vertical-align: -.08em; margin-right: 3px;
}
.np-perfect-roll { list-style: none; margin: 0; padding: 0; }
.np-perfect-roll li {
  display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 8px;
  align-items: baseline;
  border-top: 1px dotted var(--rule); padding: 5px 0;
}
.np-perfect-cat {
  font-family: var(--agate); font-size: .56rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--spot); line-height: 1.5;
}
.np-perfect-who { font-size: .84rem; line-height: 1.2; min-width: 0; font-weight: 600; }
.np-perfect-who a { text-decoration: none; }
.np-perfect-who a:hover { text-decoration: underline; }
.np-perfect-who em {
  display: block; font-weight: 400; font-size: .68rem; font-style: italic; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- the ratings market -------------------------------------------- */
.np-market { margin-top: 4px; }
.np-market-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(14px, 2vw, 26px);
}
.np-market-cols > table + table { border-left: 1px solid var(--rule); padding-left: 12px; }
/* fixed layout is what lets the team column give way to the figures rather
   than the other way round — a long team name must not push the numbers off */
.np-quotes { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.np-quotes th, .np-quotes td { padding: 2px 6px; border-bottom: 1px solid var(--rule-2); }
.np-quotes thead th {
  font-family: var(--agate); font-weight: 500;
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); text-align: right; border-bottom: 1px solid var(--ink);
}
.np-quotes thead th:first-child { text-align: left; }
.np-quotes thead th:nth-child(2) { width: 5.4em; }
.np-quotes thead th:nth-child(3) { width: 4.4em; }
.np-quotes td { font-size: .76rem; }
.np-q-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-q-name a { text-decoration: none; }
.np-q-name a:hover { text-decoration: underline; }
.np-q-rank { font-family: var(--agate); font-size: .62rem; color: var(--ink-3); }
.np-q-num { text-align: right; white-space: nowrap; }
.np-q-chg { font-weight: 600; }
.np-q-chg.is-up { color: var(--up); }
.np-q-chg.is-down { color: var(--spot); }

/* ---------- section breaks ------------------------------------------------ */
/* every anchor target clears the site's sticky header */
.np-market, .np-briefs, .np-notices, .np-archive, .np-champions, .np-perfect { scroll-margin-top: 80px; }
.np-section-break {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 3px solid var(--ink); border-bottom: 3px double var(--ink);
  padding: 6px 2px; margin: 26px 0 14px;
  font-family: var(--agate);
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-2);
  scroll-margin-top: 80px;
}
.np-sec-name {
  font-family: var(--display); font-weight: 900; font-size: 1.25rem;
  letter-spacing: .03em; text-transform: uppercase; color: var(--ink);
}

/* ---------- LEVEL 3: box scores ------------------------------------------- */
.np-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(12px, 1.6vw, 20px);
}
.np-boxes > .np-box + .np-box {
  border-left: 1px solid var(--rule);
  padding-left: clamp(12px, 1.6vw, 20px);
}
.np-box h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  border-bottom: 2px solid var(--ink); padding-bottom: 3px; margin-bottom: 5px;
}
.np-box-foot { font-size: .68rem; color: var(--ink-2); margin-top: 6px; }
.np-footnote { font-size: .66rem; color: var(--ink-3); margin-top: 5px; font-style: italic; }

.np-agate { width: 100%; border-collapse: collapse; font-size: .76rem; line-height: 1.25; }
.np-agate thead th {
  font-family: var(--agate); font-weight: 500;
  font-size: .56rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); text-align: left; border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.np-agate thead th.np-num { text-align: right; }
.np-agate th, .np-agate td { padding: 3px 4px; border-bottom: 1px dotted var(--rule); vertical-align: top; }
.np-agate th[scope="row"] { text-align: left; font-weight: 600; font-family: var(--serif); }
.np-agate em { font-style: italic; color: var(--ink-3); font-size: .92em; }
.np-agate a { text-decoration: none; }
.np-agate a:hover { text-decoration: underline; }
.np-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.np-nowrap { white-space: nowrap; }
.np-star { color: var(--spot); font-weight: 700; font-size: .8em; vertical-align: super; line-height: 0; }
/* the two columns anybody actually reads a results table across to */
.np-gc { font-weight: 700; }
.np-score { font-weight: 600; }

/* ---------- complete results ---------------------------------------------- */
.np-results { overflow-x: auto; }
.np-results-note { margin-bottom: 8px; }
.np-agate-wide { min-width: 660px; }
.np-agate-wide thead th { font-size: .58rem; }
.np-agate-wide tbody tr:hover { background: rgba(162, 53, 15, .05); }
.np-agate-wide tbody tr[data-href] { cursor: pointer; }
/* kcbs.css paints a sortable header's hover state in the dark theme's ink,
   which on paper is cream on cream */
.np-sheet table.sortable thead th:hover { color: var(--ink); }
.np-sheet table.sortable thead th[aria-sort]::after { color: var(--spot); }

/* ---------- classifieds --------------------------------------------------- */
.np-notices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: clamp(16px, 2vw, 28px); align-items: start; }
.np-classifieds h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  border-bottom: 2px solid var(--ink); padding-bottom: 3px; margin-bottom: 5px;
}
.np-ads { list-style: none; margin: 0; padding: 0; column-count: 2; column-gap: clamp(16px, 2vw, 26px); column-rule: 1px solid var(--rule-2); }
.np-ads li {
  break-inside: avoid; font-size: .76rem; line-height: 1.35; margin-bottom: 8px;
  padding-bottom: 8px; border-bottom: 1px dotted var(--rule);
}
.np-ads b { font-weight: 700; }
.np-ads a { text-decoration: none; }
.np-ads a:hover { text-decoration: underline; }

/* the house ad: a paper's own advertisement for itself, boxed like one */
.np-house-ad {
  border: 3px double var(--ink);
  padding: 12px 14px;
  text-align: center;
  background: var(--paper-2);
}
.np-ad-label {
  font-family: var(--agate); font-size: .52rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--rule); padding-bottom: 5px; margin-bottom: 8px;
}
.np-house-ad h4 {
  font-family: var(--display); font-weight: 900; font-size: 1.15rem; margin-bottom: 6px;
}
.np-house-ad p { font-size: .76rem; line-height: 1.38; color: var(--ink-2); margin-bottom: 8px; }
.np-ad-cta {
  display: inline-block;
  font-family: var(--agate); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 6px 12px; text-decoration: none; color: var(--ink);
}
.np-ad-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- back issues --------------------------------------------------- */
.np-archive-nav { display: inline-flex; gap: 12px; margin-left: 10px; }
.np-archive-nav a { text-transform: none; letter-spacing: 0; font-family: var(--serif); font-style: italic; }
.np-archive-year {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: baseline;
  border-bottom: 1px dotted var(--rule); padding: 5px 0;
}
.np-archive-year h4 { font-family: var(--display); font-weight: 700; font-size: .95rem; }
.np-archive-year h4 span {
  display: block; font-family: var(--agate); font-weight: 400;
  font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.np-archive-year ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; }
.np-archive-year li a {
  font-family: var(--agate); font-size: .7rem; letter-spacing: .06em; text-decoration: none;
}
.np-archive-year li sup { font-size: .55rem; color: var(--ink-3); margin-left: 1px; }
.np-archive-year li a[aria-current="page"] { color: var(--spot); font-weight: 600; text-decoration: underline; }

/* ---------- colophon ------------------------------------------------------ */
.np-colophon {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(14px, 2vw, 26px);
  border-top: 3px double var(--ink);
  margin-top: 26px; padding-top: 12px;
}
.np-colophon > div + div { border-left: 1px solid var(--rule); padding-left: clamp(14px, 2vw, 26px); }
.np-colophon h4 {
  font-family: var(--agate); font-weight: 500;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 5px;
}
.np-colophon p { font-size: .72rem; line-height: 1.4; color: var(--ink-2); }

/* ---------- narrower sheets ----------------------------------------------- */
@media (max-width: 1080px) {
  /* the band drops to four across, and the marquee cell takes the whole row */
  .np-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .np-figure.is-wide { grid-column: 1 / -1; border-left: 0; border-bottom: 1px solid var(--rule); }
  .np-figure:nth-child(n+2) { border-top: 1px solid var(--rule); }
  .np-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .np-boxes > .np-box:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .np-champ-roll { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

@media (max-width: 860px) {
  .np-mast { grid-template-columns: 1fr; }
  .np-nameplate { white-space: normal; }
  .np-ear { display: none; }
  .np-ear-index { display: block; text-align: center; }
  .np-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
  .np-index li { font-size: .68rem; }
  .np-dots { display: none; }
  .np-fold { grid-template-columns: 1fr; }
  .np-lead { border-right: 0; padding-right: 0; }
  .np-rail-scores { margin-top: 18px; border-top: 1px solid var(--ink); padding-top: 10px; }
  .np-rail-scores .np-leader { column-count: 2; column-gap: 22px; column-rule: 1px solid var(--rule-2); }
  .np-rail-scores .np-leader li { break-inside: avoid; }
  .np-deck-2 { grid-template-columns: 1fr; }
  .np-deck-2 > .np-story + .np-story {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 12px;
  }
  .np-lower { grid-template-columns: 1fr; }
  .np-perfect { margin-top: 18px; }
  .np-notices { grid-template-columns: 1fr; }
  .np-colophon { grid-template-columns: 1fr; }
  .np-colophon > div + div {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 10px;
  }
}

@media (max-width: 620px) {
  .np-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-figure:nth-child(2n+1) { border-left: 0; }
  .np-body-lead { column-count: 1; }
  .np-plate-head { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .np-plate figcaption { text-align: center; }
  .np-brief-cols, .np-ads { column-count: 1; }
  .np-champ-roll { grid-template-columns: 1fr; }
  .np-boxes { grid-template-columns: 1fr; }
  .np-boxes > .np-box + .np-box { border-left: 0; padding-left: 0; }
  .np-market-cols { grid-template-columns: 1fr; }
  .np-market-cols > table + table { border-left: 0; padding-left: 0; }
  .np-market-cols > table + table thead { display: none; }
  .np-archive-year { grid-template-columns: 1fr; }
}

/* ---------- print ---------------------------------------------------------
   The whole page is already a print artefact, so printing it should simply
   hand over the sheet. kcbs.css's print block puts a box round every <section>
   and paints card backgrounds white; both have to come back off, or the
   broadsheet prints as a grid of bordered rectangles. */
@media print {
  .np-desk { padding: 0; }
  .np-crumb { display: none !important; }
  .np-sheet {
    max-width: none; padding: 0; box-shadow: none;
    background: #fff !important; background-image: none;
    color: #000;
  }
  .np-sheet section, .np-sheet article, .np-sheet figure, .np-sheet aside {
    background: transparent !important; border-radius: 0;
  }
  .np-sheet section, .np-sheet article, .np-sheet aside { border: 0; }
  .np-plate, .np-house-ad, .np-perfect, .np-figure.is-wide { background: transparent !important; }
  .np-plate { border-color: #000 !important; }
  .np-house-ad, .np-perfect { border: 3px double #000 !important; }
  .np-sheet a { color: #000 !important; text-decoration: none; }
  .np-drop::first-letter, .np-kicker, .np-star, .np-q-chg.is-down,
  .np-perfect-cat, .np-perfect-lede b, .np-leader li:first-child .np-leader-pos {
    color: #000 !important; -webkit-text-fill-color: #000 !important;
  }
  .np-q-chg.is-up { color: #000 !important; }
  .np-meter > span { background: repeating-linear-gradient(45deg, #000 0 2px, transparent 2px 4px) !important; }
  .np-fold, .np-deck-2, .np-boxes, .np-notices, .np-colophon, .np-lower, .np-champ-roll { break-inside: auto; }
  .np-lead, .np-story, .np-box, .np-brief, .np-champ-roll li, .np-perfect { break-inside: avoid; }
  .np-section-break { break-before: auto; break-after: avoid; }
  .np-results { overflow: visible !important; }
  .np-agate-wide { min-width: 0; font-size: 8.5pt; }
}

/* The Backyard standing and the arrivals run full width under the market
   rather than in the lead's narrow rail, so the leader list gets room for a
   contest name and a place on the sub-line instead of wrapping it. */
.np-leader-wide li { grid-template-columns: 1.6rem minmax(0, 1fr) 5.5rem; }
.np-leader-wide .np-leader-who em { white-space: normal; }
