@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #e2e2e2;
  --surface: #d6d6d6;
  --paper: #eeeeee;
  --ink: #7d0c14;
  --muted: #7a4a4e;
  --accent: #7d0c14;
  --accent-ink: #e2e2e2;
  --field-1: #7d0c14;
  --field-1-ink: #e2e2e2;
  --tone-a: #8f1620;
  --tone-b: #66080f;
  --tone-c: #a0222c;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-title: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
  --margin: clamp(16px, 2.4vw, 32px);
  --gap: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--muted); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--accent-ink); }
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
}
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--margin); }

/* the stripe: the ink-and-paper bar of a printed back page */
.stripe {
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='8'%3E%3Crect width='28' height='8' fill='%237d0c14'/%3E%3C/svg%3E") 0 0 / 56px 100% repeat-x;
}

/* masthead */
.mast { background: var(--paper); margin-bottom: var(--gap); }
.mast-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-block: 18px 6px; }
.wordmark {
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  font-size: var(--step-title);
  line-height: .85;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.mast-date { margin: 0; font-size: var(--step-small); color: var(--muted); text-align: right; }
.nav { display: flex; gap: 4px 28px; flex-wrap: wrap; padding-block: 10px 16px; }
.nav a {
  font-weight: 700;
  font-size: var(--step-body);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 4px solid transparent;
  transition: border-color .2s var(--ease);
}
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--ink); }

/* front page lead: the title card and four tiles */
.lead { display: grid; gap: var(--gap); padding-bottom: clamp(96px, 12vw, 160px); }
.lead-card { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 48px; align-items: end; padding-block: clamp(24px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.lead-card h1 { font-size: var(--step-head); }
.lead-side { display: grid; gap: 24px; justify-items: start; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; background: var(--ink); color: var(--accent-ink); font-weight: 700; font-size: var(--step-body); text-decoration: none; transition: background-color .2s, transform .15s var(--ease); }
.btn:hover { background: var(--tone-b); }
.btn:active { transform: scale(.98); }
.lead-sub { margin: 0; font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.tile a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.tile-img { overflow: hidden; background: var(--surface); }
.tile-img img, .row-img img, .plate-img img, .hero-fig img, .stamp {
  filter: grayscale(1) contrast(1.05);
  transition: filter .5s var(--ease), transform .8s var(--ease);
}
.tile a:hover img { filter: none; transform: scale(1.03); }
.tile-strip { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 20px 22px 18px; }
.tile-strip h3 { font-size: var(--step-title); }
.tile-meta { margin: 0; display: flex; justify-content: space-between; font-size: var(--step-small); font-weight: 500; font-variant-numeric: tabular-nums; }
.tone-0 .tile-strip { background: var(--paper); color: var(--ink); }
.tone-1 .tile-strip { background: var(--ink); color: var(--accent-ink); }
.tone-2 .tile-strip { background: var(--surface); color: var(--ink); }
.tone-3 .tile-strip { background: var(--tone-b); color: var(--accent-ink); }

/* in season now: title, note, facts row */
.season { padding-bottom: clamp(96px, 12vw, 180px); }
.season-top { display: grid; grid-template-columns: 6fr 3fr 3fr; align-items: end; gap: 24px; margin-bottom: 72px; }
.season-top h2 { font-size: var(--step-head); grid-column: 1; }
.season-note { grid-column: 3; margin: 0; font-size: var(--step-body); }
/* one ruled row, like a results board: every league gets an equal column */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr);
  border-top: 6px solid var(--ink); border-bottom: 1px solid var(--ink); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.facts li { min-width: 0; scroll-snap-align: start; border-left: 1px solid var(--ink); }
.facts li:first-child { border-left: 0; }
.facts li > a, .facts li:not(:has(a)) { display: flex; flex-direction: column; height: 100%; padding: 20px 18px 18px; text-decoration: none; }
.facts li:first-child > a, .facts li:first-child:not(:has(a)) { padding-left: 0; }
.facts a { transition: background-color .2s var(--ease); }
.facts a:hover { background: var(--paper); }
.facts a:hover .fact { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.fact { display: block; font-weight: 800; font-stretch: 62%; font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); line-height: .95; text-transform: uppercase; }
.fact-note { display: block; margin: 10px 0 18px; font-size: var(--step-small); line-height: 1.4; color: var(--muted); }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-top: auto; }
.months i { font-style: normal; font-size: 9px; font-weight: 700; line-height: 1; text-align: center; padding-top: 7px;
  color: var(--muted); border-top: 3px solid var(--surface); opacity: .7; }
.months i.on { border-top-color: var(--ink); color: var(--ink); opacity: 1; }
.months i.now { border-top-width: 7px; padding-top: 3px; }
.facts-ev { margin-top: 56px; border-top-width: 1px; border-bottom: 0; }
.facts-ev .fact { color: var(--ink); }
.facts-ev .fact-note { margin-bottom: 0; }

/* latest: a deck of text cards on the red field */
.field { background: var(--field-1); color: var(--field-1-ink); padding-block: clamp(88px, 10vw, 140px); }
.field h2 { font-size: var(--step-head); margin-bottom: 48px; }
.deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.deck-card { display: flex; flex-direction: column; gap: 16px; padding: 32px; min-height: 300px; transition: transform .3s var(--ease); }
.deck-card:hover { transform: translateY(-4px); }
.deck-card.tone-0 { background: var(--tone-a); }
.deck-card.tone-1 { background: var(--tone-b); }
.deck-card.tone-2 { background: var(--tone-c); }
.deck-card h3 { font-size: var(--step-title); line-height: .95; }
.deck-card h3 a { text-decoration: none; }
.deck-card h3 a:hover { text-decoration: underline; }
.deck-card p { margin: 0; font-size: var(--step-body); }
.deck-foot { margin-top: auto !important; display: flex; justify-content: space-between; gap: 12px; font-size: var(--step-small) !important; }
.deck-count { margin: 48px 0 0; font-size: var(--step-body); }

/* by code: back-page columns */
.cols { padding-block: clamp(96px, 12vw, 180px); }
.cols > h2 { font-size: var(--step-head); margin-bottom: 48px; }
.cols-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 6px solid var(--ink); border-bottom: 1px solid var(--ink); }
.col { display: flex; flex-direction: column; padding: 22px 20px 20px; border-left: 1px solid var(--ink); }
.col:first-child { border-left: 0; padding-left: 0; }
.col h3 { font-size: var(--step-lead); margin-bottom: 18px; }
.col h3 a { text-decoration: none; }
.col h3 a:hover { text-decoration: underline; }
.col ul { list-style: none; margin: 0 0 24px; padding: 0; }
.col li { padding: 12px 0; border-top: 1px solid var(--surface); }
.col li:first-child { border-top: 0; padding-top: 0; }
.col li a { display: block; font-weight: 700; font-size: var(--step-body); line-height: 1.25; text-decoration: none; text-wrap: balance; }
.col li a:hover { text-decoration: underline; }
.col li span { display: block; margin-top: 4px; font-size: var(--step-small); color: var(--muted); }
.col-all { margin-top: auto; align-self: flex-start; font-weight: 700; font-size: var(--step-small); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border-bottom: 3px solid var(--ink); padding-bottom: 2px; }

/* square plate */
.plate { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; background: var(--surface); }
.plate-img { padding: 40px; display: flex; align-items: center; }
.plate-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.plate-text { padding: 40px 40px 40px 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.plate-more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--step-body); font-weight: 500; }
.plate-text h2 { font-size: var(--step-title); max-width: 16ch; }
.plate-text p { max-width: 34ch; margin: 48px 0 0; font-size: var(--step-lead); line-height: 1.35; }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cell { display: flex; align-items: center; justify-content: center; height: 72px; font-weight: 700; font-size: var(--step-body); text-decoration: none; transition: transform .15s var(--ease), background-color .2s; }
.cell:active { transform: scale(.98); }
.cell-ink { background: var(--ink); color: var(--accent-ink); }
.cell-ink:hover { background: var(--tone-b); }
.cell-soft { background: var(--bg); color: var(--ink); }
.cell-soft:hover { background: var(--paper); }

/* the letter, on a sheet with a scalloped edge and a tear-off stub */
.letter { padding-block: clamp(120px, 14vw, 200px); display: flex; flex-direction: column; align-items: center; }
.sheet {
  width: min(640px, 100%);
  background: var(--paper);
  padding: 60px 60px 84px;
  --s: 14px;
  -webkit-mask: radial-gradient( /* taste-skill-ignore: mask cuts the scalloped edge */var(--s) at 50% 100%, #0000 98%, #000) 50% / calc(2 * var(--s)) 100% repeat-x;
          mask: radial-gradient( /* taste-skill-ignore */var(--s) at 50% 100%, #0000 98%, #000) 50% / calc(2 * var(--s)) 100% repeat-x;
}
.sheet h2 { font-size: var(--step-title); margin-bottom: 28px; }
.sheet p { margin: 0 0 1.2em; font-size: var(--step-body); line-height: 1.55; }
.sheet .sign { margin: 32px 0 0; font-weight: 700; font-size: var(--step-lead); font-style: italic; }
.stub {
  width: min(640px, 100%);
  margin-top: 10px;
  height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: var(--step-body);
}
.stub a { text-decoration: none; }
.stub a:hover { text-decoration: underline; }

/* footer: the back of the card */
.foot { padding: 0 var(--margin) 48px; background: var(--ink); }
.foot::before {
  content: ""; display: block; height: 8px; margin-inline: calc(-1 * var(--margin));
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='8'%3E%3Crect width='28' height='8' fill='%23e2e2e2'/%3E%3C/svg%3E") 0 0 / 56px 100% repeat-x;
}
.foot-card {
  max-width: 1200px;
  margin: 64px auto 0;
  background: var(--paper);
  padding: 72px clamp(24px, 5vw, 72px) 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px 64px;
  --s: 50px;
  -webkit-mask: radial-gradient( /* taste-skill-ignore: mask cuts the scalloped edge */var(--s) at 50% 0, #0000 98%, #000) 50% calc(-1 * var(--s) / 2) / calc(2 * var(--s)) 100% repeat-x;
          mask: radial-gradient( /* taste-skill-ignore */var(--s) at 50% 0, #0000 98%, #000) 50% calc(-1 * var(--s) / 2) / calc(2 * var(--s)) 100% repeat-x;
}
.foot-msg .foot-sign { font-weight: 800; font-stretch: 62%; text-transform: uppercase; font-size: var(--step-title); line-height: .95; margin: 0 0 20px; }
.foot-msg p { margin: 0 0 16px; font-size: var(--step-body); }
.foot-sections { display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 600; }
.foot-addr { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: var(--step-body); position: relative; padding-right: 110px; }
.stamp { position: absolute; top: 0; right: 0; width: 88px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border: 6px solid var(--bg); }
.imprint { grid-column: 1 / -1; text-align: center; margin: 24px 0 0; font-size: var(--step-small); color: var(--muted); }

/* article: a sheet on the grey ground */
.story { background: var(--paper); max-width: 1000px; margin: 24px auto 0; }
.story-head { padding: 44px clamp(20px, 6vw, 88px) 28px; }
.story-head h1 { font-size: clamp(1.75rem, 0.9rem + 3.2vw, 3.5rem); text-wrap: balance; line-height: .88; }
.dek { font-size: var(--step-lead); line-height: 1.35; margin: 24px 0 0; max-width: 40ch; }
.byline { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.byline a { color: var(--ink); font-weight: 700; }
.hero-fig { margin: 0; }
.hero-fig img { width: 100%; }
.hero-fig figcaption, .prose figcaption { padding: 10px clamp(20px, 6vw, 88px) 0; font-size: var(--step-small); color: var(--muted); }
.hero-fig figcaption a { color: var(--muted); }
.prose { padding: 32px clamp(20px, 6vw, 88px) 64px; max-width: 46rem; box-sizing: content-box; }
.prose p, .prose li { line-height: 1.6; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: var(--step-title); margin: 1.6em 0 .5em; }
.prose h3 { font-size: var(--step-lead); margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: var(--step-body); font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.prose thead th { background: var(--ink); color: var(--accent-ink); text-align: left; font-weight: 700; padding: 10px 12px; white-space: nowrap; }
.prose td { padding: 10px 12px; vertical-align: top; }
.prose tbody tr:nth-child(odd) { background: var(--bg); }
/* floating contents: a square twin of the back-to-top button. Desktop: top
   right, opens downward. Phones: bottom left, opens upward. */
.toc { position: fixed; right: var(--margin); top: var(--margin); z-index: 40; }
.toc summary { list-style: none; cursor: pointer; width: 48px; height: 48px; display: grid; place-items: center; margin-left: auto;
  background: var(--ink); color: var(--accent-ink); box-shadow: 0 0 0 2px var(--bg); transition: background-color .2s; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary:hover { background: var(--tone-b); }
.toc-ico, .toc-ico::before, .toc-ico::after { display: block; width: 20px; height: 3px; background: currentColor; transition: transform .2s var(--ease), opacity .2s; }
.toc-ico { position: relative; }
.toc-ico::before, .toc-ico::after { content: ""; position: absolute; left: 0; }
.toc-ico::before { top: -7px; } .toc-ico::after { top: 7px; }
.toc[open] .toc-ico { background: transparent; }
.toc[open] .toc-ico::before { transform: translateY(7px) rotate(45deg); }
.toc[open] .toc-ico::after { transform: translateY(-7px) rotate(-45deg); }
.toc nav { position: absolute; right: 0; top: 56px; width: min(340px, calc(100vw - 2 * var(--margin))); max-height: min(70vh, 560px); overflow-y: auto;
  overscroll-behavior: contain; background: var(--paper); border-top: 6px solid var(--ink); padding: 16px 20px 12px; box-shadow: 0 0 0 1px var(--ink); }
.toc-h { margin: 0 0 10px; font-weight: 800; font-stretch: 62%; font-size: var(--step-lead); line-height: 1; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.6em; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.toc li { margin: 0 0 8px; line-height: 1.35; }
.toc li::marker { font-weight: 800; }
.toc a { text-decoration: none; }
.toc a:hover, .toc a.here { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.toc a.here { font-weight: 700; }
.toc { opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.toc.on { opacity: 1; pointer-events: auto; }
.prose h2[id] { scroll-margin-top: 24px; }
.prose .note { margin-top: 2.4em; padding-top: 18px; font-size: var(--step-body); color: var(--muted); border-top: 6px solid var(--surface); }
.more { max-width: 1000px; margin: 96px auto 120px; }
.more h2 { font-size: var(--step-title); margin-bottom: 28px; }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.more li { background: var(--surface); }
.more li > a:first-child { display: block; overflow: hidden; }
.more li > a:first-child img { filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease), transform .8s var(--ease); }
.more li:hover img { filter: none; transform: scale(1.03); }
.more li h3 { font-size: var(--step-lead); padding: 18px 20px 0; line-height: .95; }

.more li h3 a { text-decoration: none; }
.more li h3 a:hover { text-decoration: underline; }
.more li p { margin: 8px 0 0; padding: 0 20px 22px; font-size: var(--step-body); color: var(--muted); }

/* section hubs */
.hub-head { padding-block: 48px 64px; display: grid; grid-template-columns: 7fr 5fr; gap: 24px 48px; align-items: end; }
.hub-head h1 { font-size: var(--step-head); }
.hub-head p { margin: 0; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.rows { list-style: none; margin: 0 0 140px; padding: 0; display: grid; gap: var(--gap); }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 0; background: var(--paper); }
.row:nth-child(even) { background: var(--surface); }
.row-img { overflow: hidden; }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row:hover .row-img img { filter: none; transform: scale(1.03); }
.row > div { padding: 32px clamp(20px, 3vw, 44px); align-self: center; }
.row h2 { font-size: var(--step-title); line-height: .92; }
.row h2 a { text-decoration: none; }
.row h2 a:hover { text-decoration: underline; }
.row p { margin: 14px 0 0; max-width: 52ch; }
.empty { font-size: var(--step-lead); margin-bottom: 160px; }

/* entrances */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .deck { grid-template-columns: 1fr 1fr; }
  .season-top { grid-template-columns: 1fr 1fr; }
  .season-note { grid-column: 2; }
}
@media (max-width: 720px) {
  .lead-card, .hub-head { grid-template-columns: 1fr; }
  .lead-card h1, .hub-head h1 { font-size: 13vw; }
  .tiles { grid-template-columns: 1fr; }
  .season-top { grid-template-columns: 1fr; margin-bottom: 40px; }
  .season-top h2 { font-size: 12vw; }
  .season-note { grid-column: 1; }
  .facts { grid-auto-columns: 62%; margin-right: calc(-1 * var(--margin)); }
  .fact { font-size: var(--step-title); }
  .deck { grid-template-columns: 1fr; }
  .deck-card { min-height: 0; }
  .cols-grid { grid-template-columns: 1fr; }
  .col { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--ink); }
  .col:first-child { border-top: 0; }
  .plate { grid-template-columns: 1fr; min-height: 0; }
  .plate-img { padding: 16px; }
  .plate-text { padding: 8px 16px 32px; }
  .plate-text p { margin-top: 20px; }
  .cells { grid-template-columns: 1fr; }
  .cell { height: 60px; }
  .sheet { padding: 36px 24px 64px; }
  .foot-card { grid-template-columns: 1fr; --s: 30px; padding-top: 56px; }
  .foot-addr { padding-right: 76px; font-size: var(--step-body); }
  .stamp { width: 64px; }
  .row { grid-template-columns: 1fr; }
  .row > div { padding: 20px 20px 28px; }
  .more ul { grid-template-columns: 1fr; }
  .mast-row { flex-direction: column; align-items: flex-start; }
  .mast-date { text-align: left; }
}
/* back to top: a square ink block, like the stripe */
.totop { position: fixed; right: var(--margin); bottom: var(--margin); z-index: 40; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent-ink); font-weight: 800; font-size: 22px; text-decoration: none; box-shadow: 0 0 0 2px var(--bg);
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease), background-color .2s; }
.totop.on { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--tone-b); }

/* phones: the masthead sticks and drops the stripe and date once scrolled */
@media (max-width: 720px) {
  .mast { position: sticky; top: 0; z-index: 30; }
  .mast-row, .nav { transition: padding .2s var(--ease); }
  .stripe, .mast-date { transition: height .2s var(--ease), opacity .2s; }
  body.compact .mast .stripe { height: 8px; }
  body.compact .mast-date { display: none; }
  body.compact .mast-row { padding-block: 10px 0; }
  body.compact .nav { padding-block: 6px 8px; }
  [id], .prose h2[id] { scroll-margin-top: 110px; }
  .toc { top: auto; right: auto; left: var(--margin); bottom: var(--margin); }
  .toc summary { margin-left: 0; }
  .toc nav { top: auto; bottom: 56px; right: auto; left: 0; width: calc(100vw - 2 * var(--margin)); max-height: 60vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .rise { opacity: 1; transform: none; }
}

/* NRR explainer: a compact score sheet within the existing reading column. */
.nrr-tool{border-block:2px solid currentColor;padding:20px 0;margin:24px 0;display:grid;grid-template-columns:1fr 1fr;gap:20px}
.nrr-tool[hidden]{display:none}
.nrr-tool fieldset{border:0;padding:0;margin:0;min-width:0}
.nrr-tool legend{font-weight:700;margin-bottom:12px}
.nrr-tool label{display:block;font-size:15px;margin:10px 0 5px}
.nrr-tool input{box-sizing:border-box;width:100%;min-height:46px;font:inherit;color:inherit;background:#fff;border:1px solid #777;padding:8px 12px;border-radius:0}
.nrr-tool input:focus-visible,.nrr-tool button:focus-visible{outline:3px solid #7d0c14;outline-offset:3px}
.nrr-help,.nrr-actions,.nrr-result{grid-column:1/-1}
.nrr-tool .nrr-help{font-size:15px;margin:0;line-height:1.5}
.nrr-actions{display:flex;gap:12px;flex-wrap:wrap}
.nrr-tool button{min-height:46px;padding:10px 18px;font:inherit;font-weight:700;border:1px solid #7d0c14;color:#fff;background:#7d0c14;cursor:pointer}
.nrr-tool button[type=reset]{background:transparent;color:#7d0c14}
.nrr-tool .nrr-result{font-variant-numeric:tabular-nums;margin:0;line-height:1.6;font-weight:700}
.nrr-error{color:#7d0c14}
.prose .inline-photo{margin:28px 0;width:100%}.prose .inline-photo img{display:block;width:100%;height:auto}
.prose .source-notes{border-top:1px solid #bbb;margin-top:28px;padding-top:8px;font-size:15px}
.prose .source-notes h2{font-size:23px;margin:16px 0}
@media(max-width:480px){.nrr-tool{grid-template-columns:1fr;gap:18px}}
.calculator-jump{display:inline-flex;align-items:center;min-height:46px;padding:10px 16px;margin-top:16px;background:var(--ink);color:var(--paper);font-size:17px;font-weight:700;text-decoration:none}
#nrr-form{scroll-margin-top:100px}
