/* Perimeter — the three public sites.
 *
 * Every colour, size, space, radius, and duration comes from static/tokens.css.
 * There are no literals in this file: if a value is needed that the scale does
 * not have, the scale is wrong and tokens.css is where to fix it.
 *
 * Register: an instrument console. Monospace for machine-derived data (sources,
 * CVEs, scores, panel votes), sans for prose a person actually reads, and colour
 * reserved for exploitation evidence rather than decoration.
 */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  /* A faint engineering grid: at the edge of perception, gone by the time
     you are reading a paragraph. */
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--bg-grid) var(--border), transparent var(--border)),
    linear-gradient(90deg, var(--bg-grid) var(--border), transparent var(--border));
  background-size: 46px 46px, 46px 46px;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: var(--rail) solid var(--focus);
  outline-offset: var(--sp-1);
  border-radius: var(--radius-sm);
}

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--gutter); top: var(--gutter); z-index: 10;
  background: var(--surface); padding: var(--sp-2) var(--sp-3);
  border: var(--border) solid var(--accent);
}

/* Long unbroken tokens — hostnames, hashes, German compounds, CJK runs — must
   wrap rather than push the page sideways. `anywhere` beats `break-word` here
   because it lets the browser break mid-token when there is no other option. */
.item-title, .summary, .why, .lede, .intro p, .archive-title, .url {
  overflow-wrap: anywhere;
}
/* Flex and grid children default to min-width:auto, which refuses to shrink
   below their content. That is what turns one long word into a sideways page. */
.masthead-inner > *, .item-meta > *, .brand-text, .archive-row > * { min-width: 0; }
.brand-text { overflow: hidden; }
.brand-name, .brand-tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body { overflow-x: hidden; }

/* ── Masthead ───────────────────────────────────────────────────────────── */

.masthead {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface);
  border-bottom: var(--border) solid var(--rule);
}

.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: var(--sp-12);
}

.brand { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; color: var(--ink); }
.brand-mark { width: var(--sp-6); height: var(--sp-6); flex: none; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  letter-spacing: var(--track-tight);
}
/* The dot that says "this runs on a timer, and it ran". */
.brand-name::before {
  content: "";
  display: inline-block;
  width: var(--sp-1); height: var(--sp-1);
  margin-right: var(--sp-2);
  border-radius: var(--radius-pill);
  background: var(--accent);
  vertical-align: middle;
}

.brand-sub {
  display: inline-block; margin-left: var(--sp-2); padding: 0 var(--sp-1);
  border: var(--border) solid var(--accent); border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: var(--text-3xs); letter-spacing: var(--track-wider);
  text-transform: uppercase; vertical-align: 0.16em;
}

.brand-tag { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--muted); }
@media (max-width: 32rem) { .brand-tag { display: none; } }

.masthead-nav {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-mono); font-size: var(--text-xs);
}
.masthead-nav a {
  display: inline-flex; align-items: center;
  min-height: var(--tap-floor);
  padding-inline: var(--sp-1);
  text-decoration: none; color: var(--muted);
  border-bottom: var(--border) solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.masthead-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.masthead-nav a[aria-current="page"] { color: var(--accent); }

.nav-sep { width: var(--border); height: var(--sp-4); background: var(--rule); }
.nav-cross { font-size: var(--text-2xs); }
@media (max-width: 46rem) { .nav-sep, .nav-cross { display: none; } }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: var(--tap-min); height: var(--tap-min);
  padding: 0; border: var(--border) solid var(--rule); border-radius: var(--radius-md);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

.icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .icon-moon { display: inline; }
}
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: inline; }
:root[data-theme="dark"] .icon-sun { display: inline; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* ── Edition header ─────────────────────────────────────────────────────── */

.edition-head { padding-block: var(--sp-10) var(--sp-6); }

.eyebrow {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--track-wider); text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: "// "; opacity: 0.55; }

.edition-head h1 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  font-size: var(--display-sm);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}

.lede {
  margin: var(--sp-3) 0 0;
  color: var(--muted); font-size: var(--text-base); max-width: var(--measure-prose);
}

/* ── Pager ──────────────────────────────────────────────────────────────── */

.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-3);
  border-top: var(--border) solid var(--rule-soft);
  font-family: var(--font-mono); font-size: var(--text-xs);
}
.pager-foot {
  margin-top: var(--sp-12); padding-top: var(--sp-5);
  border-top: var(--border) solid var(--rule);
  justify-content: center; gap: var(--sp-8);
}
.pager-link {
  display: inline-flex; align-items: center;
  min-height: var(--tap-floor);          /* was 18.9px — below WCAG 2.5.8 */
  padding-inline: var(--sp-1);
  color: var(--muted); text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.pager-link:hover { color: var(--accent); }
.pager-link.is-off { opacity: 0.3; }

/* ── Filters ────────────────────────────────────────────────────────────── */

.controls { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) 0 var(--sp-5); }
.control-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); }

.control-label {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted);
  margin-right: var(--sp-1); min-width: 4rem;
}

.chip {
  display: inline-flex; align-items: center;
  min-height: var(--tap-floor);
  font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1;
  padding: var(--sp-2) var(--sp-3);
  border: var(--border) solid var(--rule); border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip.is-on, .chip[aria-pressed="true"] {
  color: var(--accent); border-color: var(--accent); background: var(--accent-dim);
}

/* ── Sections ───────────────────────────────────────────────────────────── */

/* Each section carries its own hue via one local variable, so every rule below
   reads `var(--sec)` and the mapping lives in exactly one place. `data-section`
   was already on the element for the filters — no markup change needed.
   The fallback keeps anything unmapped on the accent rather than colourless. */
.section {
  --sec: var(--accent);
  margin-block: var(--sp-10);
}
.section[data-section="vulns"]   { --sec: var(--sec-vulns); }
.section[data-section="threat"]  { --sec: var(--sec-threat); }
.section[data-section="offense"] { --sec: var(--sec-offense); }
.section[data-section="aisec"]   { --sec: var(--sec-aisec); }
.section[data-section="defense"] { --sec: var(--sec-defense); }
.section[data-section="grc"]     { --sec: var(--sec-grc); }
.section[hidden] { display: none; }

.section-head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: var(--border) solid var(--sec);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: var(--weight-bold); font-size: var(--text-sm);
  letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--sec);
}
.section-head h2 a { text-decoration: none; }
.section-head h2 a::before { content: "▚ "; opacity: 0.6; }
.section-head h2 a:hover { text-decoration: underline; text-underline-offset: var(--sp-1); }

/* Dashed run-out to the count, so the header reads as a console rule. */
.section-head::after {
  content: ""; flex: 1; height: var(--border);
  background-image: linear-gradient(90deg, var(--rule) 50%, transparent 50%);
  background-size: 6px var(--border);
}
.section-count {
  order: 3;
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.section-count::before { content: "["; opacity: 0.5; }
.section-count::after  { content: "]"; opacity: 0.5; }

/* ── Items ──────────────────────────────────────────────────────────────── */

.items { list-style: none; margin: 0; padding: 0; counter-reset: item; }

.item {
  counter-increment: item;
  position: relative;
  padding: var(--sp-5) 0 var(--sp-5) var(--sp-10);
  border-bottom: var(--border) solid var(--rule-soft);
}
.item[hidden] { display: none; }
.item:last-child { border-bottom: 0; }

/* The severity rail: exploitation evidence, readable before any text. */
.item::after {
  content: "";
  position: absolute; left: 0; top: var(--sp-5); bottom: var(--sp-5);
  width: var(--rail); background: var(--rule);
}
.item:has(.sev-kev)::after  { background: var(--sev-crit); }
.item:has(.sev-high)::after { background: var(--sev-high); }
.item[data-tag="must_read"]::after { background: var(--accent); }

.item::before {
  content: "[" counter(item, decimal-leading-zero) "]";
  position: absolute; left: var(--sp-2); top: calc(var(--sp-5) + 0.12rem);
  font-family: var(--font-mono); font-size: var(--text-2xs);
  color: var(--muted);                    /* was --rule at 1.31:1 — invisible */
  font-variant-numeric: tabular-nums;
}
/* Tighten the gutter on small phones rather than dropping the index entirely. */
@media (max-width: 30rem) {
  .item { padding-left: var(--sp-8); }
  .item::before { left: var(--sp-1); font-size: var(--text-3xs); }
}

.item-title {
  margin: 0 0 var(--sp-2);
  font-size: var(--text-lg); font-weight: var(--weight-bold); line-height: var(--lh-snug);
  letter-spacing: -0.008em; text-wrap: pretty;
}
.item-title a { text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.item-title a:hover { color: var(--accent); }

.item-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2);
  margin: 0 0 var(--sp-2);
  font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--muted);
}
.item-meta .src { color: var(--ink-soft); }
.item-meta .src::before { content: "⟩ "; color: var(--accent); opacity: 0.7; }
.item-meta .sep { opacity: 0.35; }
.item-meta .stat { font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block; padding: 0 var(--sp-1);
  border: var(--border) solid var(--rule); border-radius: var(--radius-sm);
  font-size: var(--text-2xs); white-space: nowrap;
}
.badge-must_read {
  color: var(--accent); background: var(--accent-dim);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-transform: uppercase; letter-spacing: var(--track-wide);
  font-size: var(--text-3xs);
}
.badge-recommended { color: var(--ink-soft); }
.badge-research {
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-transform: uppercase; letter-spacing: var(--track-wide); font-size: var(--text-3xs);
}
.badge-kev {
  color: var(--sev-crit); background: var(--sev-crit-bg);
  border-color: color-mix(in srgb, var(--sev-crit) 45%, transparent);
}

.cve.sev-kev  { color: var(--sev-crit); background: var(--sev-crit-bg); border-color: color-mix(in srgb, var(--sev-crit) 45%, transparent); }
.cve.sev-high { color: var(--sev-high); background: var(--sev-high-bg); border-color: color-mix(in srgb, var(--sev-high) 35%, transparent); }
.cve.sev-mid  { color: var(--sev-mid); }
.cve.sev-low  { color: var(--muted); }

/* Panel agreement — the number that says how far to trust the ranking. The
   word is not decoration: "3/3" alone reads as a score or a rank. */
.panel-key {
  text-transform: uppercase; letter-spacing: var(--track-wide);
  font-size: var(--text-3xs); opacity: 0.75; margin-right: var(--sp-1);
}
.panel {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  padding: 0 var(--sp-1); border: var(--border) solid var(--rule); border-radius: var(--radius-sm);
  color: var(--muted); font-variant-numeric: tabular-nums; cursor: help;
}
.panel.is-unanimous { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* Copy. Prose stays in the sans — this is the part a human reads. */
.why {
  margin: 0 0 var(--sp-2); padding-left: var(--sp-3);
  border-left: var(--border) solid var(--accent);
  font-size: var(--text-base); color: var(--ink);
}
.why-key {
  display: block;
  font-family: var(--font-mono); font-size: var(--text-3xs);
  letter-spacing: var(--track-wider); text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--sp-1);
}
.summary {
  margin: 0 0 var(--sp-2); color: var(--ink-soft);
  font-size: var(--text-base); max-width: var(--measure-prose);
}

.item-links { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin: 0; font-family: var(--font-mono); font-size: var(--text-2xs); }
.item-links a {
  display: inline-flex; align-items: center;
  min-height: var(--tap-floor);          /* was 17.7px — below WCAG 2.5.8 */
  color: var(--muted); text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.item-links a:hover { color: var(--accent); }

/* ── Issue front matter ─────────────────────────────────────────────────── */

.issue-head h1 { font-size: var(--display-md); max-width: 22ch; }

.intro {
  margin: var(--sp-6) 0 0; padding: var(--sp-4) 0 0 var(--sp-4);
  border-left: var(--rail) solid var(--accent);
  font-size: var(--text-md); line-height: var(--lh-loose); color: var(--ink);
}
.intro p { margin: 0 0 var(--sp-3); max-width: var(--measure-prose); }
.intro-sig { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }

.cross-promo {
  margin-top: var(--sp-10); padding: var(--sp-4) var(--sp-5);
  border: var(--border) solid var(--rule);
  background: var(--surface); font-size: var(--text-sm); color: var(--ink-soft);
}
.cross-promo p { margin: 0; }
.cross-promo a { color: var(--accent); }

.covers {
  display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin: var(--sp-4) 0 0;
  font-family: var(--font-mono); font-size: var(--text-2xs);
}
.covers a { color: var(--muted); text-decoration: none; }
.covers a:hover { color: var(--accent); }

/* ── Archive ────────────────────────────────────────────────────────────── */

.archive { list-style: none; margin: 0; padding: 0; }
.archive-row {
  display: grid; gap: var(--sp-2) var(--sp-8); padding-block: var(--sp-5);
  border-bottom: var(--border) solid var(--rule-soft);
}
@media (min-width: 46rem) { .archive-row { grid-template-columns: 13rem 1fr; } }

.archive-date { display: flex; flex-direction: column; gap: var(--sp-1); }
.archive-date a {
  font-family: var(--font-mono); font-size: var(--text-base);
  text-decoration: none; letter-spacing: var(--track-tight);
}
.archive-date a:hover { color: var(--accent); }
.archive-count { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--muted); }

.archive-title { margin: 0 0 var(--sp-1); font-size: var(--text-md); font-weight: var(--weight-bold); }
.archive-title a { text-decoration: none; }
.archive-title a:hover { color: var(--accent); }

.archive-sections {
  display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin: 0 0 var(--sp-2);
  font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--muted);
}
.tally { --sec: var(--muted); }
.tally[data-sec="vulns"]   { --sec: var(--sec-vulns); }
.tally[data-sec="threat"]  { --sec: var(--sec-threat); }
.tally[data-sec="offense"] { --sec: var(--sec-offense); }
.tally[data-sec="aisec"]   { --sec: var(--sec-aisec); }
.tally[data-sec="defense"] { --sec: var(--sec-defense); }
.tally[data-sec="grc"]     { --sec: var(--sec-grc); }
.tally b { color: var(--sec); font-weight: var(--weight-bold); }

.archive-highlights { margin: 0; padding-left: var(--sp-4); font-size: var(--text-sm); color: var(--ink-soft); }
.archive-highlights li { margin-bottom: var(--sp-1); }
.archive-highlights a:hover { color: var(--accent); }

/* ── Research index ─────────────────────────────────────────────────────── */

.lede-wide { max-width: var(--measure-prose); font-size: var(--text-base); color: var(--ink-soft); }
.lede-wide a { color: var(--accent); }

.research-stats {
  display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-6); margin: var(--sp-5) 0 0;
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted);
}
.research-stats b { color: var(--accent); font-weight: var(--weight-bold); margin-right: var(--sp-1); }

.jump {
  display: flex; flex-wrap: wrap; gap: var(--sp-1);
  margin: var(--sp-6) 0 0; padding-top: var(--sp-5);
  border-top: var(--border) solid var(--rule-soft);
}
.jump a {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  min-height: var(--tap-floor);
  padding: var(--sp-1) var(--sp-3);
  border: var(--border) solid var(--rule); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: var(--text-xs);
  text-decoration: none; color: var(--muted);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.jump a:hover { color: var(--sec, var(--accent)); border-color: var(--sec, var(--accent)); }
.jump a[data-sec="vulns"]   { --sec: var(--sec-vulns); }
.jump a[data-sec="threat"]  { --sec: var(--sec-threat); }
.jump a[data-sec="offense"] { --sec: var(--sec-offense); }
.jump a[data-sec="aisec"]   { --sec: var(--sec-aisec); }
.jump a[data-sec="defense"] { --sec: var(--sec-defense); }
.jump a[data-sec="grc"]     { --sec: var(--sec-grc); }
/* A hue swatch, so the chip is identifiable before you read its label. */
.jump a::before {
  content: ""; width: var(--sp-2); height: var(--sp-2);
  border-radius: var(--radius-pill); background: var(--sec, var(--accent));
  flex: none;
}
.jump a span { font-size: var(--text-2xs); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.month-index {
  list-style: none; margin: var(--sp-5) 0 0; padding: 0;
  columns: 1; column-gap: var(--sp-8);
  font-family: var(--font-mono); font-size: var(--text-xs);
}
@media (min-width: 34rem) { .month-index { columns: 2; } }
.month-index li {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding-block: var(--sp-1); border-bottom: var(--border) solid var(--rule-soft);
  break-inside: avoid;
}
.month-index span { color: var(--muted); }

/* ── Colophon, empty state, footer ──────────────────────────────────────── */

.colophon {
  margin-top: var(--sp-10); padding: var(--sp-3) var(--sp-4);
  border: var(--border) solid var(--rule); border-radius: var(--radius-md);
  background: var(--surface); font-size: var(--text-sm);
}
.colophon summary {
  cursor: pointer; font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted);
}
.colophon summary:hover { color: var(--accent); }
.colophon dl { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-1) var(--sp-5); margin: var(--sp-4) 0 0; }
.colophon dt { color: var(--muted); font-size: var(--text-sm); }
.colophon dd { margin: 0; font-family: var(--font-mono); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }

.status-live {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.empty-state {
  padding: var(--sp-8) 0; color: var(--muted);
  font-size: var(--text-base); text-align: center; font-family: var(--font-mono);
  text-wrap: balance;
}
.empty-state a { color: var(--accent); }

/* A recovery action inside an empty state — the point of saying "nothing here"
   is to offer the way out. */
.btn-inline {
  display: inline-block; margin-left: var(--sp-2);
  min-height: var(--tap-floor);
  padding: var(--sp-1) var(--sp-3);
  border: var(--border) solid var(--accent); border-radius: var(--radius-sm);
  background: var(--accent-dim); color: var(--accent);
  font-family: var(--font-mono); font-size: var(--text-xs); cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.btn-inline:hover { background: transparent; }

.footer {
  margin-top: var(--sp-16); padding-block: var(--sp-8) var(--sp-12);
  border-top: var(--border) solid var(--rule); background: var(--surface);
  color: var(--muted); font-size: var(--text-sm);
}
.footer p { margin: 0 0 var(--sp-2); max-width: var(--measure-prose); }
.footer-lead { color: var(--ink-soft); }
.footer-meta { font-family: var(--font-mono); font-size: var(--text-2xs); }
.footer a:hover { color: var(--accent); }
.footer-sites {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: var(--text-2xs);
}
.footer-sites a { text-decoration: none; }
.footer-sites a.is-here { color: var(--accent); }
.footer-sites .dot { opacity: 0.35; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body { background: var(--surface); color: var(--ink); background-image: none; }
  .masthead, .controls, .pager, .footer, .theme-toggle { display: none; }
  .item { break-inside: avoid; }
}
