/* ==========================================================================
   Numiscue — "Plate" design system
   Museum-catalogue skin: plaster ground, cabinet-green furniture, aged brass
   rules. Square corners throughout; the frame does the work, not the shadow.
   ========================================================================== */

/* --- Faces ---------------------------------------------------------------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Narrow';
  src: url('../fonts/archivonarrow-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --ground: #e7e8e2;
  --ground-sunk: #dcded6;
  --card: #f4f5f1;
  --ink: #171a18;
  --ink-2: #454a46;
  --ink-3: #6b716c;
  --felt: #1c3129;
  --felt-lit: #294539;
  --brass: #8d6a25;
  --brass-lit: #c39a46;
  --patina: #43705f;
  --oxide: #8a3b2a;
  --rule: #c4c7bf;
  --rule-soft: #d6d9d1;

  /* Latin glyphs come from the self-hosted faces; CJK falls through to a
     system serif. Webfonting CJK would cost megabytes for one language. */
  --cjk-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif;
  --cjk-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Heiti SC', sans-serif;
  --font-display: 'Fraunces', 'Hoefler Text', 'Palatino Linotype', Georgia, var(--cjk-serif);
  --font-body: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', var(--cjk-serif);
  --font-label: 'Archivo Narrow', 'Helvetica Neue', 'Arial Narrow', Arial, var(--cjk-sans);

  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --shell: 78rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Simplified Chinese pages: a touch more leading, and headings that do not
   try to wear the tight tracking a Latin display face wants. */
html[lang='zh-Hans'] body { line-height: 1.86; }
html[lang='zh-Hans'] h1,
html[lang='zh-Hans'] h2,
html[lang='zh-Hans'] h3,
html[lang='zh-Hans'] h4 { letter-spacing: 0; line-height: 1.32; }
html[lang='zh-Hans'] .label,
html[lang='zh-Hans'] .masthead__nav a,
html[lang='zh-Hans'] .btn,
html[lang='zh-Hans'] caption,
html[lang='zh-Hans'] thead th { letter-spacing: 0.06em; }
html[lang='zh-Hans'] .article__body { max-width: 38rem; }
html[lang='zh-Hans'] .lede { line-height: 1.6; }
html[lang='zh-Hans'] .frontispiece h1 { max-width: 13ch; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.66;
  text-rendering: optimizeLegibility;
}

/* --- Primitives ----------------------------------------------------------- */
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.shell--narrow { max-width: 52rem; }

.label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--oxide); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3.1vw, 2rem); margin-top: 2.4em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); margin-top: 2em; }
p { margin: 0 0 1.15em; }

/* --- Masthead ------------------------------------------------------------- */
.masthead { background: var(--felt); color: #eceee8; }
.masthead__top {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.15rem 0 0.9rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  color: #f2f3ee;
  text-decoration: none;
}
.wordmark:hover { color: var(--brass-lit); }
.wordmark__mark { color: var(--brass-lit); }
.masthead__line {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #9aa79f;
}
.masthead__nav {
  border-top: 1px solid var(--felt-lit);
  display: flex;
  justify-content: center;
  gap: clamp(0.9rem, 3vw, 2.4rem);
  flex-wrap: wrap;
  padding: 0.35rem 0;
}
.masthead__nav a {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #cfd6d0;
  text-decoration: none;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.masthead__nav a:hover,
.masthead__nav a[aria-current='page'] { color: #f2f3ee; border-bottom-color: var(--brass-lit); }

.langswitch {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-label);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.langswitch a {
  color: #9aa79f;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 0.3rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.langswitch a:hover { color: var(--brass-lit); border-bottom-color: var(--brass-lit); }
.langswitch__current {
  color: #f2f3ee;
  border-bottom: 1px solid var(--brass-lit);
  padding: 0.3rem 0;
}
.langswitch [lang='zh-Hans'] { letter-spacing: 0.08em; }

/* --- Frontispiece (home hero) --------------------------------------------- */
.frontispiece { padding: clamp(1.1rem, 3.5vw, 2.4rem) 0 clamp(1.25rem, 3vw, 2rem); }
.plate-frame {
  border: 1px solid var(--brass);
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--card), inset 0 0 0 2px var(--rule-soft);
}
/* Three children so the invite card can slot straight under the headline on a
   narrow screen without pushing the code below the fold. */
.frontispiece__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0 clamp(1.1rem, 3.5vw, 2.75rem);
  align-items: start;
}
.frontispiece__intro { grid-column: 1; grid-row: 1; }
.frontispiece__body { grid-column: 1; grid-row: 2; }
.frontispiece .accession { grid-column: 2; grid-row: 1 / span 2; }
.frontispiece h1 { margin-top: 0.1em; max-width: 15ch; }
.frontispiece__standfirst {
  font-size: 1.06rem;
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: 1.25rem;
}
.frontispiece__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.btn {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--felt);
  background: var(--felt);
  color: #f2f3ee;
  cursor: pointer;
}
.btn:hover { background: var(--felt-lit); color: #fff; }
.btn--quiet { background: transparent; color: var(--felt); }
.btn--quiet:hover { background: var(--ground-sunk); color: var(--felt); }

/* Accession card = the invite-code block, styled as a catalogue label. */
.accession {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brass);
  background: var(--ground-sunk);
  padding: 0.95rem 1.05rem 1.1rem;
}
.accession__head { display: block; margin-bottom: 0.5rem; }
.accession__benefit {
  font-size: 0.99rem;
  line-height: 1.45;
  margin: 0 0 0.8rem;
  color: var(--ink);
}
.accession__coderow { display: flex; align-items: stretch; gap: 0.5rem; flex-wrap: wrap; }
.accession__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.14em;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 0.3rem 0.7rem;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 7.5ch;
}
.accession__copy {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: #fdfaf3;
  padding: 0 0.95rem;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}
.accession__copy:hover { background: var(--brass-lit); border-color: var(--brass-lit); }
.accession__copy[data-state='done'] { background: var(--patina); border-color: var(--patina); }
.accession__actions { margin: 0.85rem 0 0.9rem; }
.accession__foot {
  font-family: var(--font-label);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--ink-3);
  margin: 0.7rem 0 0;
}

/* --- Section headers ------------------------------------------------------ */
.section { padding: clamp(2rem, 5vw, 3.25rem) 0 0; }
.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.5rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.section__head h2 { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
.section__count { margin-left: auto; }
.section__note { font-size: 0.97rem; color: var(--ink-2); max-width: 60ch; margin: -0.6rem 0 1.3rem; }

/* --- Plate grid (coin records) -------------------------------------------- */
.plates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.plate {
  background: var(--card);
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
}
.plate__art {
  background: var(--felt);
  border: 1px solid var(--brass);
  margin: 0 0 0.8rem;
  line-height: 0;
}
.plate__art img { width: 100%; height: auto; display: block; }
.plate__ticker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0 0 0.15rem;
}
.plate__ticker a { color: var(--ink); text-decoration: none; }
.plate__ticker a:hover { color: var(--oxide); text-decoration: underline; }
.plate__name { margin-bottom: 0.55rem; }
.plate__gist {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 0.8rem;
}
.plate__foot {
  margin-top: auto;
  border-top: 1px solid var(--rule-soft);
  padding-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.chip {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--patina);
  border: 1px solid currentColor;
  padding: 0.12rem 0.4rem;
}
.chip--brass { color: var(--brass); }

/* --- Ruled index rows (tools, guides, archive index) ---------------------- */
.ledger { border-top: 1px solid var(--rule); }
.ledger__row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.ledger__no {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--brass);
}
.ledger__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.25;
  margin: 0 0 0.25rem;
}
.ledger__title a { color: var(--ink); text-decoration: none; }
.ledger__title a:hover { color: var(--oxide); text-decoration: underline; }
.ledger__gist { font-size: 0.95rem; color: var(--ink-2); margin: 0; max-width: 62ch; }
.ledger__meta { text-align: right; white-space: nowrap; }

/* --- Article ------------------------------------------------------------- */
.article { padding: clamp(1.5rem, 4vw, 2.5rem) 0 0; }
.breadcrumb { margin-bottom: 1.1rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li::after { content: '/'; margin-left: 0.4rem; color: var(--rule); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); text-decoration: underline; }

.article__head { border-bottom: 1px solid var(--brass); padding-bottom: 1.1rem; margin-bottom: 1.5rem; }
.article__head h1 { max-width: 20ch; }
.article__byline { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 0.9rem; }

.article__body { max-width: var(--measure); font-size: 1.115rem; }
.article__body > h2 { max-width: 26ch; }
.article__body ul,
.article__body ol { padding-left: 1.15rem; margin: 0 0 1.15em; }
.article__body li { margin-bottom: 0.4em; }
.article__body strong { font-weight: 600; }

.article-cover { margin: 0 0 1.6rem; }
.article-cover img { width: 100%; height: auto; display: block; border: 1px solid var(--brass); }
figure figcaption {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-top: 0.45rem;
}
.figure-inline { margin: 1.8rem 0; }
.figure-inline img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); background: var(--card); }

/* Lede: the one-sentence definition an answer engine can lift verbatim. */
.lede {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.4;
  font-weight: 400;
  border-left: 3px solid var(--brass);
  padding-left: 1rem;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.tldr, .defcard {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--patina);
  padding: 1rem 1.15rem;
  margin: 0 0 1.6rem;
}
.tldr ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.tldr li { margin-bottom: 0.35em; }
.defcard dl { margin: 0.6rem 0 0; }
.defcard dt {
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ink-3);
}
.defcard dd { margin: 0.1rem 0 0.7rem; }
.defcard dd:last-child { margin-bottom: 0; }

.callout--risk { border-left-color: var(--oxide); }
.callout--source { border-left-color: var(--brass); }

/* TOC */
.toc { border: 1px solid var(--rule); background: var(--card); padding: 0.95rem 1.1rem; margin: 0 0 1.8rem; }
.toc ol { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 0.25em; }
.toc a { color: var(--ink-2); }

/* Tables.
   A table set to width:100% inside a narrow viewport collapses its columns
   until each cell is one word per line. The min-widths below stop that: the
   table keeps a readable width and the wrapper scrolls instead. */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.6rem;
  border: 1px solid var(--rule);
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.table-wrap table { min-width: 29rem; }
.table-wrap table.table--pairs { min-width: 0; }  /* short key/value pairs fit anywhere */
.table-wrap table.table--wide { min-width: 45rem; }  /* 1rem under the wrapper, which carries a border */

/* Tables and diagrams break out of the reading measure. A 34rem column is
   right for prose and wrong for a six-column table or a labelled chart. */
.article__body .table-wrap,
.article__body .figure-inline {
  width: min(46rem, calc(100vw - 2 * var(--gutter)));
  max-width: none;
}
caption {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 0.7rem 0.85rem 0.35rem;
}
th, td { text-align: left; padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
thead th {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  background: var(--ground-sunk);
}
tbody tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { margin: 2.2rem 0 0; }
.faq h3 { font-size: 1.1rem; margin-top: 1.6rem; }

/* Per-page verification note. Worded fresh on every page, never boilerplate. */
.verified {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  padding-top: 0.7rem;
  margin-top: 2.2rem;
}

/* --- Tools ---------------------------------------------------------------- */
.tool { border: 1px solid var(--rule); background: var(--card); padding: 1.1rem 1.2rem 1.3rem; margin: 0 0 1.8rem; }
.tool label { display: block; margin-bottom: 0.4rem; }
.tool input[type='text'],
.tool select {
  width: 100%;
  font-family: var(--font-label);
  font-size: 1rem;
  padding: 0.65rem 0.7rem;
  min-height: 44px;
  border: 1px solid var(--rule);
  background: var(--ground);
  color: var(--ink);
}
.tool input[type='text']:focus,
.tool select:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.tool__out { margin-top: 1rem; border-top: 1px solid var(--rule-soft); padding-top: 0.9rem; }
.tool__verdict { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin: 0 0 0.4rem; }
.tool__verdict[data-tone='hit'] { color: var(--patina); }
.tool__verdict[data-tone='miss'] { color: var(--oxide); }
.tool__note { font-size: 0.97rem; color: var(--ink-2); margin: 0 0 0.6rem; }
.tool__note:last-child { margin-bottom: 0; }
.snapshot-stamp {
  font-family: var(--font-label);
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ground-sunk);
  border: 1px solid var(--brass);
  padding: 0.5rem 0.75rem;
  display: block;
  margin: 0 0 1.4rem;
}
.sortable th button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  min-height: 44px;
  text-align: left;
}
.sortable th button:hover { color: var(--brass); }
.sortable th button::after { content: ' \2195'; opacity: 0.45; }
.sortable th[aria-sort='ascending'] button::after { content: ' \2191'; opacity: 1; }
.sortable th[aria-sort='descending'] button::after { content: ' \2193'; opacity: 1; }
.filterbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.1rem; }
.filterbar button {
  font-family: var(--font-label);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  min-height: 44px;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
}
.filterbar button[aria-pressed='true'] { background: var(--felt); border-color: var(--felt); color: #f2f3ee; }

/* --- Footer --------------------------------------------------------------- */
.colophon { background: var(--felt); color: #c9d1cb; margin-top: clamp(3rem, 7vw, 5rem); padding: 2.2rem 0 2.6rem; }
.colophon a { color: #e3dcc6; }
.colophon a:hover { color: var(--brass-lit); }
/* 9rem lets two columns survive on a 360px phone; a single stacked file of
   thirty links makes the footer taller than most of the pages above it. */
.colophon__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.6rem 1.5rem; }
.colophon h2 {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8f9d94;
  margin: 0 0 0.6rem;
}
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 0.15rem; }
/* Footer links are list items rather than prose, so they need a real tap
   target. Padding gets each one past 24px without inflating the footer. */
.colophon li a { display: inline-block; padding: 0.35rem 0; }
.colophon__disclosure {
  border-top: 1px solid var(--felt-lit);
  margin-top: 1.9rem;
  padding-top: 1.1rem;
  font-size: 0.93rem;
  max-width: 64ch;
  color: #aab6ae;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--brass);
  color: #fff;
  padding: 0.7rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 60rem) {
  .frontispiece__grid { display: flex; flex-direction: column; gap: 1.1rem; }
  .frontispiece__intro { order: 1; }
  .frontispiece .accession { order: 2; }
  .frontispiece__body { order: 3; }
  .frontispiece h1 { max-width: 22ch; }
}
@media (max-width: 40rem) {
  body { font-size: 1.02rem; }
  .masthead__line { display: none; }
  .masthead__top { padding: 0.85rem 0 0.7rem; }
  .frontispiece { padding-top: 0.9rem; }
  .plate-frame { padding: 0.85rem; }
  .frontispiece h1 { font-size: 1.65rem; margin-bottom: 0.3rem; }
  .frontispiece__standfirst { font-size: 0.95rem; margin-bottom: 0.85rem; }
  .accession__code { font-size: 1.35rem; }
  .ledger__row { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .ledger__meta { grid-column: 2; text-align: left; }
  .article__byline { gap: 0.15rem 0.9rem; }
  caption { padding-top: 0.35rem; }
  .colophon { padding: 1.8rem 0 2rem; }
  .colophon__grid { gap: 1.3rem 1.2rem; }
  .colophon li { margin-bottom: 0.1rem; }
  .colophon ul { font-size: 0.97rem; line-height: 1.5; }
  .article__body { font-size: 1.06rem; }
  .lede { font-size: 1.14rem; }
}
/* Only where the wrapper is genuinely narrower than the table's floor. */
@media (max-width: 30rem) {
  /* Tell the reader the table moves sideways, rather than leaving them to
     discover it. Only shown where the table is actually wider than the screen. */
  .table-wrap::before {
    content: 'Scrolls sideways';
    display: block;
    position: sticky;
    left: 0;
    font-family: var(--font-label);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--brass);
    padding: 0.5rem 0.85rem 0;
  }
  html[lang='zh-Hans'] .table-wrap::before { content: '可左右滑动'; }
  /* The identifier's key/value table fits, so it gets no hint. */
  #address-reading .table-wrap::before { content: none; }
}

@media (max-width: 24rem) {
  .frontispiece h1 { font-size: 1.46rem; }
  .accession__code { font-size: 1.2rem; letter-spacing: 0.1em; }
  .btn { font-size: 0.76rem; padding: 0.7rem 0.9rem; }
}

@media print {
  .masthead__nav, .frontispiece__actions, .colophon { display: none; }
}

/* --- Small layout helpers used by the index and tool pages ---------------- */
.prose { max-width: 44rem; }
.prose--after { max-width: 44rem; padding-top: 2.4rem; }
.stack-top { margin-top: 2rem; }
.table-note { padding: 0 0.85rem 0.8rem; }
.tool__actions { margin-top: 0.8rem; }
.accession--inline { margin: 1.6rem 0; }
.aside-note { margin-top: 2rem; }
