/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5 */
/* Plain Reading: a long printed guide at dusk, with its footnotes pulled into the margin. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: var(--space-4); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; overflow-x: clip; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.7; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-gold); text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { text-decoration-style: solid; }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; box-shadow: 0 0 0 5px var(--color-paper); border-radius: 2px; }
.wrap { width: min(100% - 2rem, 78rem); margin-inline: auto; }
.skip { position: absolute; left: var(--space-4); top: -4rem; z-index: 60; background: var(--color-gold); color: var(--color-paper); padding: var(--space-2) var(--space-4); border-radius: var(--pill); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--space-3); }

/* reading progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--color-gold); transform: scaleX(0); transform-origin: left; z-index: 50; pointer-events: none; }

/* svg palette */
.d1 { fill: var(--color-gold); }
.d2 { fill: var(--color-rose); }
.d3 { fill: var(--color-ink-dim); }
.rule, .frame { stroke: var(--color-ink-faint); stroke-width: 1; fill: none; }
.ring { stroke: var(--color-line); stroke-width: 1; }

/* ---------- top bar and the sentence nav ---------- */
.top { position: relative; z-index: 20; padding-block: var(--space-4); border-bottom: 1px dotted var(--color-line); }
.top__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--color-ink); text-decoration: none; }
.brand__t { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.005em; }
.mark { flex: none; }
.menu-btn { display: none; align-items: center; min-height: 2.75rem; padding: 0 var(--space-5); border: 1px solid var(--color-line); border-radius: var(--pill); background: var(--color-sheet); color: var(--color-ink); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.menu-btn::before { content: ""; width: 0.5rem; height: 0.5rem; margin-right: 0.6rem; border-radius: 50%; background: var(--color-rose); }
.sentence { font-size: 1rem; line-height: 2.1; color: var(--color-ink-dim); }
.sentence__w { white-space: pre-wrap; }
.ph { display: inline-block; position: relative; }
.ph summary, .ph-link { list-style: none; display: inline; cursor: pointer; color: var(--color-gold); font-weight: 600; text-decoration: none; border-bottom: 2px dotted var(--color-gold); padding: 0.15rem 0.2rem; border-radius: 0.2rem; }
.ph summary::-webkit-details-marker { display: none; }
.ph summary::after { content: ""; display: inline-block; width: 0.38rem; height: 0.38rem; margin-left: 0.4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.18em) rotate(45deg); }
.ph[open] summary { background: var(--color-gold); color: var(--color-paper); border-bottom-color: transparent; }
.ph.is-here summary, .ph-link.is-here { box-shadow: 0 0.3rem 0 -0.12rem var(--color-rose); }
.ph-link:hover { background: var(--color-sheet-2); }
.ph__list { position: absolute; top: calc(100% + 0.55rem); left: -0.5rem; z-index: 30; width: min(23rem, calc(100vw - 2rem)); list-style: none; background: var(--color-sheet); border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--space-2); box-shadow: 0 1rem 2rem var(--color-shadow); line-height: 1.4; }
.ph__list--end { left: auto; right: -0.5rem; }
.ph__list a { display: block; padding: var(--space-3) var(--space-3); border-radius: 0.25rem; text-decoration: none; color: var(--color-ink); }
.ph__list a:hover { background: var(--color-sheet-2); }
.ph__list a[aria-current="page"] { background: var(--color-sheet-2); box-shadow: inset 3px 0 0 var(--color-rose); }
.ph__list b { display: block; font-weight: 600; color: var(--color-gold); }
.ph__list span { display: block; font-size: var(--text-sm); color: var(--color-ink-dim); }

@media (max-width: 47.99rem) {
  .menu-btn { display: inline-flex; }
  .sentence { display: none; flex-basis: 100%; line-height: 1.5; padding-top: var(--space-3); }
  .top.is-open .sentence, html:not(.js) .sentence { display: block; }
  html:not(.js) .menu-btn { display: none; }
  .sentence__w:not(:first-child) { display: none; }
  .sentence__w:first-child { display: block; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-2); }
  .ph { display: block; margin-bottom: var(--space-2); }
  .ph summary { display: block; padding: var(--space-3); min-height: 2.75rem; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-sheet); border-bottom-width: 1px; }
  .ph[open] summary { border-color: var(--color-gold); }
  .ph__list, .ph__list--end { position: static; width: auto; margin-top: var(--space-2); box-shadow: none; }
  .ph-link { display: block; padding: var(--space-3); min-height: 2.75rem; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-sheet); }
}

/* ---------- masthead ---------- */
.mast { padding-top: clamp(2rem, 6vw, 4.5rem); }
.mast__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.kicker { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gold); margin-bottom: var(--space-4); }
.kicker a { color: inherit; }
.mast h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.012em; text-wrap: balance; overflow-wrap: anywhere; max-width: 22ch; }
.mast:not(.mast--guide) h1 { max-width: 28ch; font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3rem); }
.dek { margin-top: var(--space-4); font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink-dim); max-width: 36rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin-top: var(--space-5); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--color-ink-faint); }
@media (min-width: 48rem) { .facts li + li::before { content: "\00b7"; margin-right: var(--space-4); color: var(--color-rose); } }
.mast__how { margin-top: var(--space-4); max-width: 30rem; font-size: var(--text-sm); line-height: 1.55; color: var(--color-ink-dim); padding-left: var(--space-4); border-left: 2px dotted var(--color-rose); }
.mast__art { max-width: 32rem; width: 100%; margin-inline: auto; }
.hero-art { width: 100%; height: auto; }
.mast__band { margin-top: var(--space-6); border-block: 1px dotted var(--color-line); }
.band { width: 100%; height: 3.75rem; }
@media (min-width: 56rem) {
  .mast--guide .mast__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .mast--guide .mast__art { margin-inline: 0; }
}

/* ---------- the desk: rail | text | margin ---------- */
.desk { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); padding-block: clamp(2rem, 5vw, 3.5rem) var(--space-7); }
.rail { display: none; scrollbar-width: thin; scrollbar-color: var(--color-line) transparent; }
.toc-m { border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-sheet); padding: 0; }
.toc-m summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-weight: 600; color: var(--color-gold); min-height: 2.75rem; display: flex; align-items: center; gap: var(--space-2); }
.toc-m summary span { color: var(--color-ink-dim); font-weight: 400; font-size: var(--text-sm); }
.toc-m ol { list-style: none; padding: 0 var(--space-4) var(--space-4); }
.toc-m a, .rail a { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: var(--space-2); padding: var(--space-2) 0; color: var(--color-ink); text-decoration: none; line-height: 1.35; font-size: var(--text-sm); }
.toc-m a:hover .t, .rail a:hover .t { color: var(--color-gold); }
.n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-rose); padding-top: 0.12rem; }
.doc { min-width: 0; }
@media (min-width: 62rem) {
  .desk { grid-template-columns: minmax(0, var(--measure)) var(--margin-col); column-gap: var(--gutter); justify-content: center; }
  .doc, .toc-m { grid-column: 1; }
}
@media (min-width: 77rem) {
  .desk { grid-template-columns: var(--rail) minmax(0, var(--measure)) var(--margin-col); }
  .rail { display: block; grid-column: 1; grid-row: 1 / span 3; position: sticky; top: var(--space-5); align-self: start; max-height: calc(100vh - 3rem); overflow: auto; padding-right: var(--space-3); border-right: 1px dotted var(--color-line); }
  .doc, .desk--plain .doc { grid-column: 2; grid-row: 1; }
  .toc-m { display: none; }
}
.rail__h { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gold); margin-bottom: var(--space-3); }
.rail ol { list-style: none; }
.rail a[aria-current="location"] .t { color: var(--color-gold); font-weight: 600; }
.rail a[aria-current="location"] .n { color: var(--color-gold); }
.rail a[aria-current="location"] .n::after { content: ""; display: inline-block; width: 0.4rem; height: 0.4rem; margin-left: 0.2rem; border-radius: 50%; background: var(--color-gold); }
.rail__back { margin-top: var(--space-5); font-size: var(--text-sm); }

/* ---------- prose ---------- */
.prose { counter-reset: sec; }
.prose > p, .prose > ul, .prose > ol { margin-bottom: 1.15rem; }
.prose > p:first-of-type { font-size: 1.15rem; line-height: 1.65; color: var(--color-ink); }
.prose h2 { counter-increment: sec; position: relative; font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.22; margin: var(--space-7) 0 var(--space-4); padding-top: 1.5rem; background: radial-gradient(circle at 2px 2px, var(--color-rose) 1.2px, transparent 1.7px) 0 0 / 8px 5px repeat-x; text-wrap: balance; overflow-wrap: anywhere; scroll-margin-top: var(--space-4); }
.prose h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: var(--space-1); font-family: var(--font-mono); font-weight: 500; font-size: var(--text-xs); letter-spacing: 0.08em; color: var(--color-rose); }
@media (min-width: 77rem) {
  .prose h2::before { position: absolute; left: calc(-1 * var(--gutter)); top: 1.85rem; margin: 0; width: var(--gutter); text-align: left; }
}
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; margin: var(--space-6) 0 var(--space-2); }
.prose strong { font-weight: 600; color: var(--color-ink); }
.prose ul:not([class]) { list-style: none; }
.prose ul:not([class]) li { position: relative; padding-left: 1.5rem; margin-bottom: var(--space-2); }
.prose ul:not([class]) li::before { content: ""; position: absolute; left: 0.15rem; top: 0.62em; width: 0.55rem; height: 0.55rem; border: 1.5px solid var(--color-rose); border-radius: 50%; }
.prose ol:not([class]) { list-style: none; counter-reset: li; }
.prose ol:not([class]) li { position: relative; padding-left: 2.2rem; margin-bottom: var(--space-2); counter-increment: li; }
.prose ol:not([class]) li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 0.25em; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-rose); }
.prose blockquote { margin: var(--space-5) 0; padding: var(--space-3) 0 var(--space-3) var(--space-5); border-left: 2px dotted var(--color-rose); color: var(--color-ink-dim); }
.prose blockquote::before { content: "Quoted"; display: block; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-rose); margin-bottom: var(--space-1); }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.2em; cursor: help; }

.callout { margin: var(--space-5) 0; padding: var(--space-4) var(--space-5); background: var(--color-sheet); border: 1px solid var(--color-line); border-left: 4px solid var(--color-rose); border-radius: var(--radius); }
.callout::before { content: attr(data-label); display: block; margin-bottom: var(--space-1); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-rose); }
.callout p { margin: 0; }

.glance { margin: 0 0 var(--space-6); padding: var(--space-4) var(--space-5); background: var(--color-sheet); border: 1px solid var(--color-line); border-radius: var(--radius); }
.glance__h { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gold); margin-bottom: var(--space-2); }
.glance ol { list-style: none; counter-reset: g; }
.glance li { position: relative; counter-increment: g; padding: var(--space-2) 0 var(--space-2) 2.1rem; border-top: 1px dotted var(--color-line); line-height: 1.5; }
.glance li:first-child { border-top: 0; }
.glance li::before { content: counter(g); position: absolute; left: 0; top: 0.6rem; width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border: 1.5px solid var(--color-rose); border-radius: 50%; font-family: var(--font-mono); font-size: 0.7rem; color: var(--color-rose); line-height: 1; }

/* tables */
.tbl { margin: var(--space-5) 0; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.5; border-top: 2px solid var(--color-gold-deep); border-bottom: 2px solid var(--color-gold-deep); }
table.data caption { caption-side: top; text-align: left; padding-bottom: var(--space-2); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gold); }
table.data th, table.data td { text-align: left; vertical-align: top; padding: var(--space-3); border-bottom: 1px solid var(--color-line-soft); }
table.data thead th { font-weight: 600; color: var(--color-ink); border-bottom: 1px solid var(--color-line); }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
@media (max-width: 39.99rem) {
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.data, table.data tbody, table.data tr, table.data td, table.data th { display: block; }
  table.data tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-line); }
  table.data td, table.data th { border: 0; padding: var(--space-1) 0; }
  table.data td[data-label]::before, table.data th[data-label]::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-rose); }
}

/* ---------- sidenotes: the citation system ---------- */
.sn-mk { position: relative; }
.sn-chk { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.sn-dot { position: relative; display: inline-grid; place-items: center; min-width: 1.2rem; height: 1.2rem; margin-inline: 0.2rem; padding-inline: 0.2rem; border-radius: var(--pill); background: var(--color-rose); color: var(--color-paper); font: 600 0.66rem/1 var(--font-mono); vertical-align: 0.35em; cursor: pointer; }
.sn-dot::after { content: ""; position: absolute; inset: -0.55rem -0.35rem; }
.sn-chk:focus-visible + .sn-dot { outline: 2px solid var(--color-gold); outline-offset: 3px; box-shadow: 0 0 0 5px var(--color-paper); }
.sn { display: none; font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink-dim); }
.sn__n { display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; margin-right: 0.4rem; padding-inline: 0.2rem; border-radius: var(--pill); background: var(--color-rose); color: var(--color-paper); font: 600 0.62rem/1 var(--font-mono); vertical-align: 0.1em; }
.sn a { font-weight: 600; }
.sn__t { display: block; margin-top: 0.15rem; }
.sn-chk:checked ~ .sn { display: block; margin: var(--space-3) 0 var(--space-4); padding: var(--space-3) var(--space-4); background: var(--color-sheet); border: 1px solid var(--color-line); border-left: 3px solid var(--color-rose); border-radius: var(--radius); }
@media (min-width: 62rem) {
  .sn-dot { cursor: default; }
  .sn, .sn-chk:checked ~ .sn { display: block; float: right; clear: right; width: var(--margin-col); margin: 0.1rem calc(-1 * (var(--margin-col) + var(--gutter))) var(--space-4) 0; padding: var(--space-2) 0 0; background: none; border: 0; border-top: 1px dotted var(--color-line); border-radius: 0; font-size: 0.8125rem; line-height: 1.45; text-indent: 0; }
  .sn-chk { display: none; }
}

/* ---------- figures ---------- */
.fig { margin: var(--space-6) 0; padding: var(--space-5) 0; border-block: 1px dotted var(--color-line); }
.fig figcaption { margin-top: var(--space-4); font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink-dim); max-width: 34rem; }
.density { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); }
@media (min-width: 34rem) { .density { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.density li { position: relative; }
.density svg { width: 100%; height: auto; }
.density__k { position: absolute; top: var(--space-2); left: var(--space-2); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-paper); background: var(--color-gold); width: 1.4rem; height: 1.4rem; display: grid; place-items: center; border-radius: 50%; }
.density__t { display: block; margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.35; }
.ladder { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2) var(--space-5); }
@media (min-width: 34rem) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ladder li { display: grid; grid-template-columns: 2.2rem 1.4rem minmax(0, 1fr); align-items: center; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px dotted var(--color-line-soft); }
.ladder__n { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-rose); }
.ladder__t { font-size: var(--text-sm); line-height: 1.3; }
.path { list-style: none; counter-reset: p; }
.path__step { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: var(--space-4); padding-bottom: var(--space-4); position: relative; }
.path__step svg { grid-row: 1 / span 2; }
.path__step:not(:last-child)::before { content: ""; position: absolute; left: 1.3rem; top: 2.8rem; bottom: 0.2rem; border-left: 2px dotted var(--color-line); }
.path__step b { font-family: var(--font-display); font-weight: 600; line-height: 1.3; align-self: end; }
.path__step span { font-size: var(--text-sm); line-height: 1.45; color: var(--color-ink-dim); }
.ages { list-style: none; }
.ages__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); margin-bottom: var(--space-4); }
.ages__body { font-weight: 600; font-size: var(--text-sm); }
.ages__track { position: relative; display: block; height: 1.1rem; background: radial-gradient(circle at 50% 50%, var(--color-line) 1.1px, transparent 1.5px) 0 50% / 9px 100% repeat-x; }
.ages__bar { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 1%); right: calc((100 - var(--b)) * 1%); background: radial-gradient(circle at 50% 50%, var(--color-gold) 2.6px, transparent 3.1px) 0 50% / 9px 100% repeat-x; }
.ages__txt { font-size: var(--text-sm); color: var(--color-ink-dim); line-height: 1.4; }
.ages__ticks { list-style: none; position: relative; height: 1.4rem; margin-top: var(--space-1); border-top: 1px solid var(--color-line); }
.ages__ticks li { position: absolute; left: calc(var(--a) * 1%); transform: translateX(-50%); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-ink-faint); padding-top: 0.2rem; }
.ages__ticks li::before { content: ""; position: absolute; left: 50%; top: -0.3rem; height: 0.3rem; border-left: 1px solid var(--color-ink-faint); }

/* ---------- references, next, companion index ---------- */
.refs, .next, .cidx { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px dotted var(--color-line); }
.refs h2, .next h2, .cidx h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: var(--space-4); }
.refs ol { padding-left: 1.7rem; font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink-dim); }
.refs li { margin-bottom: var(--space-2); padding-left: 0.3rem; overflow-wrap: anywhere; }
.refs li::marker { font-family: var(--font-mono); color: var(--color-rose); }
.refs li a { font-weight: 600; }
.next ul, .cidx ul { list-style: none; }
.next a, .cidx a { display: grid; gap: 0.1rem; padding: var(--space-3) 0; border-top: 1px dotted var(--color-line-soft); color: var(--color-ink); text-decoration: none; }
.next a:hover b, .cidx a:hover b { color: var(--color-gold); }
.next b, .cidx b { font-family: var(--font-display); font-weight: 600; }
.next span, .cidx span { font-size: var(--text-sm); color: var(--color-ink-dim); }
.cidx > p { color: var(--color-ink-dim); margin-bottom: var(--space-5); }
.cidx__g { margin-bottom: var(--space-5); }
.cidx h3 { font-family: var(--font-mono); font-weight: 500; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gold); margin-bottom: var(--space-1); }

/* bibliography on the references page */
.biblio__n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-gold); margin-bottom: var(--space-4); }
.biblio__g { margin-bottom: var(--space-5); }
.biblio__g h3 { margin-top: 0; }
.biblio__g ul { list-style: none; }
.biblio__g li { padding-left: 0; margin-bottom: var(--space-3); overflow-wrap: anywhere; }
.biblio__g li::before { display: none; }
.biblio__on { display: block; font-size: var(--text-sm); color: var(--color-ink-dim); }

/* forms */
.mailform { display: grid; gap: var(--space-2); margin: var(--space-5) 0; max-width: 32rem; }
.mailform label { font-weight: 600; font-size: var(--text-sm); margin-top: var(--space-2); }
.mailform input, .mailform textarea { width: 100%; padding: var(--space-3); background: var(--color-sheet); color: var(--color-ink); border: 1px solid var(--color-line); border-radius: var(--radius); font: inherit; }
.mailform textarea { min-height: 9rem; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-self: start; min-height: 2.75rem; margin-top: var(--space-3); padding: 0 var(--space-5) 0 var(--space-4); border: 0; border-radius: var(--pill); background: var(--color-gold); color: var(--color-paper); font: 600 var(--text-base)/1 var(--font-body); cursor: pointer; }
.btn::before { content: ""; width: 0.5rem; height: 0.5rem; margin-right: 0.6rem; border-radius: 50%; background: var(--color-paper); }
.btn:hover { background: var(--color-rose); }

.lost { padding-block: var(--space-7); }
.lost h1 { font-family: var(--font-display); font-size: var(--text-2xl); max-width: 16ch; margin-bottom: var(--space-4); }

/* ---------- footer: the triage card ---------- */
.triage { margin-top: var(--space-7); padding: var(--space-7) 0 var(--space-6); background: var(--color-slip); border-top: 1px solid var(--color-line); }
.triage__card { position: relative; max-width: 46rem; background: var(--color-sheet); border: 1px solid var(--color-line); border-radius: 0.6rem; }
.triage__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-bottom: 2px dotted var(--color-line); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gold); }
.triage__no { color: var(--color-ink-faint); }
.triage__card::before, .triage__card::after { content: ""; position: absolute; top: 2.15rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--color-slip); border: 1px solid var(--color-line); }
.triage__card::before { left: -0.65rem; }
.triage__card::after { right: -0.65rem; }
.triage__rows { list-style: none; }
.triage__rows li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4) var(--space-5); border-top: 1px dotted var(--color-line-soft); }
.triage__rows li:first-child { border-top: 0; }
.triage__n { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border: 1.5px solid var(--color-rose); border-radius: 50%; font-family: var(--font-mono); color: var(--color-rose); }
.triage__q { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; margin-bottom: var(--space-1); }
.triage__rows p { font-size: var(--text-sm); line-height: 1.55; color: var(--color-ink-dim); }
.triage__links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-6); }
.triage__links a { display: inline-block; padding: var(--space-2) 0; min-height: 2.75rem; line-height: 1.7; color: var(--color-ink); text-decoration: none; border-bottom: 2px dotted var(--color-line); }
.triage__links a:hover { color: var(--color-gold); border-bottom-color: var(--color-gold); }
.triage__fine { margin-top: var(--space-5); max-width: 46rem; font-size: var(--text-sm); line-height: 1.6; color: var(--color-ink-faint); }

@media print {
  .top, .rail, .toc-m, .progress, .triage__links, .skip, .menu-btn, .mast__band, .mast__art { display: none !important; }
  body { font-size: 11pt; background: none; }
  .desk { display: block; }
  .sn, .sn-chk:checked ~ .sn { display: block; float: none; margin: 0.3rem 0 0.6rem 1rem; width: auto; font-size: 9pt; }
  a { color: inherit; }
}
.rail .rail__back a { display: inline; }
