/* The Verishell Library, release 11 "Monolith". True black, white poster type (Mona Sans, condensed for display),
   Martian Mono for commits and counts. Colour appears only where it means a verdict. The 3D reading room keeps its
   own daylight colours and fonts: this sheet styles the frame, the overlays and the desk around it.
   404.html shares this sheet, so its classes (.top, .brand, .intro, .lede, .status, bare footer) stay styled. */
:root {
  --bg: #000000;
  --well: #0b0b0b;
  --raised: #111111;
  --line: #2e2e2e;      /* decorative hairlines */
  --edge: #6b6b67;      /* control borders, 3:1 on --well */
  --text: #f4f4f1;
  --muted: #a3a39e;
  --pass: #7ee0a8;
  --warn: #ffc24d;
  --block: #ff7a68;
  --none: #a3a39e;
  /* The room's ribbon colours (app.js RIBBON), used only in the legend that explains them. */
  --ribbon-pass: #2f8a52;
  --ribbon-warn: #d28a1e;
  --ribbon-block: #c0392b;
  --sans: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1760px;
  --gutter: max(16px, min(4vw, 64px));
  /* Release 11.14: the docs site's spacing scale. s4 is the section gap (one side), s3 the space under a title. */
  --s2: 16px; --s3: 24px; --s4: clamp(32px, 3.2vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--text); color: var(--bg); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; line-height: 1; text-wrap: balance; }
p { margin: 0; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--edge); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--text); }
/* White ring with a black halo: visible on the black page and on the bright 3D room alike. */
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; box-shadow: 0 0 0 5px var(--bg); }
code, .mono { font-family: var(--mono); font-stretch: 87.5%; font-size: 0.84em; font-variant-ligatures: none; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--text); color: var(--bg); padding: 10px 14px; font-weight: 600; text-decoration: none; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; min-height: 76px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand .logo { flex: none; display: block; height: 28px; width: auto; }
.brand .logo-light { display: none; }
.brand-sub { font: 700 20px/1 var(--sans); font-stretch: 125%; letter-spacing: -0.01em; color: var(--text); }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--text); text-underline-offset: 8px; }
.top nav a.out { color: var(--text); }
.top nav a.out::after { content: " \2197"; content: " \2197" / ""; }

/* Hero */
.hero { padding-block: var(--s4); }
.hero h1 { font: 800 clamp(48px, 10.4vw, 176px)/0.86 var(--sans); font-stretch: 75%; letter-spacing: -0.02em; margin-bottom: var(--s3); text-wrap: wrap; }
.hero h1 span { display: block; }
/* Shelli stays (the owner's mascot since release 4); a faint light edge keeps the black outline visible on black. */
.hero-mascot { display: block; width: 116px; height: auto; margin: 0 0 clamp(20px, 3vw, 40px); filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.85)); }
.hero-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 56px; align-items: start; }
/* Release 11.14: the mascot shares the title row instead of a row of its own. */
.hero-title { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2) var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.hero-title h1 { margin: 0; flex: 1 1 32rem; min-width: 0; }
.hero-title .hero-mascot { margin: 0; flex: none; }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; max-width: 46ch; }
.status { display: flex; gap: 14px; align-items: flex-start; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--muted); max-width: 70ch; }
.status .seal-dot { flex: none; width: 16px; height: 16px; margin-top: 0.3em; border-radius: 50%; border: 1.5px dashed var(--muted); }
.c-pass { color: var(--pass); } .c-warn { color: var(--warn); } .c-block { color: var(--block); } .c-none { color: var(--none); }
.status .c-pass, .status .c-warn, .status .c-block { font-weight: 600; }

/* Reading room: the 3D canvas and the reading desk side by side, full width. */
.room { padding-bottom: clamp(56px, 7vw, 112px); }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 24vw, 440px); border: 1px solid var(--line); background: var(--well); }
.canvas-wrap { position: relative; min-height: 560px; height: min(78vh, 860px); background: var(--well); overflow: hidden; touch-action: pan-y; }
.canvas-wrap canvas { display: block; width: 100%; height: 100%; }
.canvas-wrap .fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; color: var(--text); font-size: 19px; }
.canvas-wrap .fallback p { max-width: 52ch; }
.no-webgl .canvas-wrap { height: auto; min-height: 0; display: grid; align-content: center; }
.no-webgl .canvas-wrap .fallback { position: static; display: block; text-align: left; }
/* Without JavaScript the room can't open: say so, and drop the loading note and the controls that need a script. */
.no-js .canvas-wrap { height: auto; min-height: 0; display: grid; align-content: center; }
.no-js .canvas-wrap .loading-note, .no-js .canvas-wrap .overlay-top { display: none; }
.nojs-room { padding: 32px; font-size: 19px; max-width: 60ch; }
.loading-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--muted); font-size: 15px; }

/* Controls laid over the room: solid black panels, so they read on its bright limestone and wood. */
.overlay-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.overlay-top > * { pointer-events: auto; }
.modes { display: inline-flex; background: var(--bg); border: 1px solid var(--bg); }
.modes button {
  font: 600 14px/1 var(--sans); border: 0; background: transparent; color: var(--muted); padding: 0 16px; min-height: 40px; cursor: pointer;
}
.modes button:hover { color: var(--text); }
.modes button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.touch-hint { width: 100%; max-width: 30rem; margin: 0; font-size: 13px; line-height: 1.4; color: var(--text); background: var(--bg); padding: 8px 12px; }
.tooltip {
  position: absolute; pointer-events: none; background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.4; padding: 7px 10px;
  border: 1px solid var(--line); transform: translate(12px, 12px); width: max-content; max-width: 300px; overflow-wrap: anywhere;
}
.steps-bar {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; align-items: center;
  background: var(--bg); padding: 12px 14px; color: var(--text);
}
.step-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.step-buttons button {
  font: 400 15px/1 var(--mono); font-stretch: 87.5%; width: 42px; height: 42px; cursor: pointer;
  border: 1px solid var(--edge); background: var(--bg); color: var(--text);
}
.step-buttons button:hover { border-color: var(--text); }
.step-buttons button[aria-current="step"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.step-caption b { display: block; font: 700 20px/1.15 var(--sans); font-stretch: 87.5%; }
.step-caption p { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
/* Release 11.12 (red audit): the station 3 caption holds the full contract address; it wraps instead of running past the bar. */
.step-caption { min-width: 0; }
.step-caption b, .step-caption p, .desk p { overflow-wrap: anywhere; }

/* Reading desk (packet panel) */
.desk {
  border-left: 1px solid var(--line); background: var(--well); padding: 24px 24px 28px; overflow-y: auto;
  max-height: min(78vh, 860px); min-height: 560px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px;
}
/* Release 11.12 (red audit): nothing in the desk may widen it (it measured 82px past its right edge). */
.desk > *, .desk-legend div, .desk-legend div > *, .seal-line > *, .desk .use > *, .desk .links > *, .findings li { min-width: 0; }
.desk code, .desk .mono, .desk pre, .desk a, .desk-legend div, .seal-line { overflow-wrap: anywhere; }
.desk pre { white-space: pre-wrap; }
.desk h2 { font: 800 clamp(30px, 2.4vw, 40px)/0.95 var(--sans); font-stretch: 75%; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.desk .kicker { font-size: 14px; line-height: 1.5; color: var(--muted); }
.desk-lede { color: var(--muted); font-size: 15.5px; margin-top: 12px; }
.desk-legend { display: grid; gap: 10px; margin-top: 18px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.desk-legend div { display: flex; gap: 12px; align-items: center; }
.desk .close {
  justify-self: start; font: 600 14px/1 var(--sans); background: transparent; border: 1px solid var(--edge); color: var(--text);
  padding: 0 14px; min-height: 36px; cursor: pointer;
}
.desk .close:hover { border-color: var(--text); }
.desk .packet-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.desk .packet-nav .close { justify-self: auto; }
.desk dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 14px; }
.desk dt { color: var(--muted); }
.desk dd { margin: 0; overflow-wrap: anywhere; }
.desk .mono { font-size: 0.8em; }
.verdict { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.verdict i { width: 6px; height: 18px; display: inline-block; flex: none; }
.v-pass { color: var(--pass); } .v-pass i { background: var(--pass); }
.v-warn { color: var(--warn); } .v-warn i { background: var(--warn); }
.v-block { color: var(--block); } .v-block i { background: var(--block); }
.v-none { color: var(--none); } .v-none i { background: var(--none); }
.seal-line { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: var(--muted); }
.seal-line .seal { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--muted); flex: none; }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.findings li { border-left: 2px solid var(--line); padding: 2px 0 2px 12px; font-size: 14px; }
.findings li.sev-high, .findings li.sev-critical { border-left-color: var(--warn); }
.findings .where { color: var(--muted); font-size: 13px; }
.findings q { display: block; font-family: var(--mono); font-stretch: 87.5%; font-size: 12.5px; quotes: none; color: var(--text); overflow-wrap: anywhere; }
.note { font-size: 14px; border-left: 2px solid var(--warn); padding: 4px 0 4px 12px; }
.desk .use { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14.5px; }
.desk .use h3 { font: 700 22px/1.1 var(--sans); font-stretch: 87.5%; }
.desk .use a { overflow-wrap: anywhere; }
.desk .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; }

/* Under the room: how to use it, and what its colours mean. */
.room-cap { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 40px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: 15px; }
.room-cap > p { max-width: 70ch; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 6px; height: 18px; flex: none; }
.legend .r-pass { background: var(--ribbon-pass); }
.legend .r-warn { background: var(--ribbon-warn); }
.legend .r-block { background: var(--ribbon-block); }
.legend .seal { width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed var(--muted); flex: none; }
/* A stamped seal (release 11.3): the book's r1 label is recorded on Robinhood Chain. A solid ring with a pressed centre;
   the dashed ring stays the empty seal. A proof has its own mark, a double ring with no centre (Security 2.2ah). */
.seal-line .seal.recorded, .legend .seal.recorded, .status .seal-dot.recorded {
  border-style: solid; border-color: var(--text); background: radial-gradient(circle, var(--text) 0 34%, transparent 37%);
}
.seal-line .seal.proven, .legend .seal.proven, .status .seal-dot.proven { border: 4px double var(--text); background: none; }

/* Sections */
.sec { padding-block: var(--s4); border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 56px; align-items: start; margin-bottom: var(--s3); }
.sec-head h2 { font: 800 clamp(42px, 5.6vw, 96px)/0.9 var(--sans); font-stretch: 75%; letter-spacing: -0.015em; }
.sec-head p { color: var(--muted); max-width: 60ch; }
.sec-head p a { color: var(--text); }

/* Card catalogue: search, the heads as a table of contents, then one section per head with one block per subhead. */
.no-js .js-only { display: none !important; }
html:not(.no-js) .nojs-only { display: none !important; }
.cat { display: grid; gap: 40px; }
.cat-search { display: grid; gap: 8px; max-width: 820px; }
.cat-search label { font-size: 15px; color: var(--muted); }
.cat-search input {
  font: 400 18px var(--sans); min-height: 56px; padding: 0 18px; width: 100%;
  background: var(--well); color: var(--text); border: 1px solid var(--edge); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.cat-search input:hover { border-color: var(--muted); }
.cat-q-status { font-size: 15px; color: var(--muted); min-height: 1.6em; }
.head-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 1px solid var(--line); }
.head-nav a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text); font: 800 clamp(28px, 3vw, 50px)/1 var(--sans); font-stretch: 75%; letter-spacing: -0.01em;
}
.head-nav a .n { grid-column: 2; grid-row: 1; font: 400 clamp(20px, 2vw, 32px)/1 var(--mono); font-stretch: 75%; color: var(--muted); letter-spacing: 0; }
.head-nav a .b { grid-column: 1; grid-row: 2; font: 400 15px/1.45 var(--sans); font-stretch: 100%; color: var(--muted); letter-spacing: 0; }
.head-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--text); }
.head-nav a:hover .n, .head-nav a:hover .b { text-decoration: none; }
.n { font-family: var(--mono); font-stretch: 87.5%; font-size: 0.5em; font-weight: 400; color: var(--muted); letter-spacing: 0; white-space: nowrap; vertical-align: 0.2em; }
.cat-nojs { font-size: 15px; color: var(--muted); }
.heads { display: grid; gap: clamp(64px, 7vw, 112px); }
.head { display: grid; gap: 40px; border-top: 3px solid var(--text); padding-top: 22px; scroll-margin-top: 20px; }
.head-h { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px 56px; align-items: start; }
.head-h h3 { font: 800 clamp(36px, 4.4vw, 72px)/0.92 var(--sans); font-stretch: 75%; letter-spacing: -0.015em; }
.head-h h3:focus { outline: none; box-shadow: none; }
.head-h h3:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.head-h p { color: var(--muted); font-size: 16px; max-width: 56ch; }
.sub { display: grid; gap: 18px; scroll-margin-top: 20px; }
.sub h4 { font: 700 clamp(22px, 1.8vw, 28px)/1.1 var(--sans); font-stretch: 87.5%; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sub h4 .n { font-size: 0.62em; vertical-align: 0.1em; margin-left: 6px; }
.sub-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 15px; color: var(--muted); }
.sub-more .more, .sub-more .less, .icard button, .btn {
  font: 600 15px/1 var(--sans); min-height: 44px; padding: 0 18px; cursor: pointer; border-radius: 0;
  border: 1px solid var(--text); color: var(--text); background: transparent; display: inline-flex; align-items: center; text-decoration: none;
}
.sub-more .less { border-color: var(--edge); }
.sub-more .more:hover, .icard button:hover, .btn-line:hover { background: var(--text); color: var(--bg); }
.sub-more .less:hover { border-color: var(--text); }
.sub-more button:disabled, .icard button[aria-busy="true"], .sub-more button[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 32px; }
.icard { min-width: 0; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.icard .call { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; font: 400 12.5px/1.5 var(--mono); font-stretch: 87.5%; color: var(--muted); }
.icard .call span:first-child { white-space: nowrap; }
.icard .call span:last-child { text-align: right; }
.icard h5 { font: 700 26px/1.05 var(--sans); font-stretch: 80%; letter-spacing: -0.005em; margin-top: 4px; overflow-wrap: anywhere; }
.icard .src { font: 400 12.5px/1.6 var(--mono); font-stretch: 87.5%; color: var(--muted); overflow-wrap: anywhere; }
.icard .src .mono { font-size: 1em; }
.icard p { font-size: 15.5px; line-height: 1.55; }
.icard .facts { font-size: 14px; line-height: 1.6; color: var(--muted); }
.icard .facts .verdict { font-weight: 600; }
.icard button { align-self: flex-start; margin-top: auto; min-height: 40px; font-size: 14px; padding: 0 16px; }
.icard > :nth-last-child(2) { margin-bottom: 10px; }
.no-js .icard button { display: none; }
/* Desktop: each subhead is one row, its name in a left column (it stays in view while "Show all" lists the rest) and
   its cards three across, so the catalogue fills the width. */
@media (min-width: 1041px) {
  .sub { grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr); column-gap: 32px; align-items: start; }
  .sub h4 { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 16px; border-bottom: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
  .sub .catalogue { grid-column: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sub .sub-more { grid-column: 2; }
}

/* How a book gets here: five stations, numbered at poster size. */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; border-top: 3px solid var(--text); }
.how li { counter-increment: s; padding: 22px 24px 8px 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.how li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.how li::before { content: counter(s); font: 800 clamp(56px, 5.6vw, 96px)/0.85 var(--sans); font-stretch: 75%; color: var(--text); }
.how b { font: 700 22px/1.15 var(--sans); font-stretch: 87.5%; }
.how li p { overflow-wrap: anywhere; } /* the full contract address in step 3 wraps inside its column */
.how p { font-size: 15px; color: var(--muted); }

/* Ask before you install: the four answers as the largest coloured words on the page. */
.specimen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.specimen > div { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); min-width: 0; }
.specimen > div + div { padding-left: 24px; }
.specimen > div:last-child { border-right: 0; }
.specimen dt { font: 800 clamp(32px, 4vw, 72px)/0.9 var(--sans); font-stretch: 75%; letter-spacing: -0.01em; }
.specimen dd { margin: 18px 0 0; color: var(--muted); font-size: 16px; max-width: 34ch; }
.ask-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.fine { color: var(--muted); font-size: 15px; max-width: 70ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: #ffffff; color: var(--bg); text-decoration: underline; text-underline-offset: 4px; }

/* Reference shelf */
.refs-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.refs { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.refs th, .refs td { text-align: left; vertical-align: top; padding: 16px 24px 16px 0; border-bottom: 1px solid var(--line); }
.refs th { font-size: 14px; font-weight: 500; color: var(--muted); }
.refs td:first-child b { font: 700 20px/1.2 var(--sans); font-stretch: 87.5%; }
.refs td:first-child .nw { white-space: nowrap; }
.refs td:nth-child(2) { font: 400 13px/1.6 var(--mono); font-stretch: 87.5%; color: var(--muted); overflow-wrap: anywhere; }
.refs td:nth-child(2) .mono { font-size: 1em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 64px 48px; font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-name { font: 700 20px/1 var(--sans); font-stretch: 125%; color: var(--text); margin-bottom: 14px; }
.foot-about p + p { max-width: 56ch; }
.foot h2 { font: 600 15px/1.2 var(--sans); color: var(--text); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* 404.html (no catalogue, no script): its intro and bare footer. */
main.intro { padding-block: clamp(48px, 8vw, 120px); }
main.intro h1 { font: 800 clamp(40px, 6.4vw, 104px)/0.92 var(--sans); font-stretch: 75%; letter-spacing: -0.02em; margin-bottom: 28px; }
main.intro .lede { margin-bottom: 20px; }
.lost-mascot { display: block; width: 130px; height: auto; margin-bottom: 24px; }
.wrap > footer { border-top: 1px solid var(--line); padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 15px; color: var(--muted); }

/* Responsive */
@media (max-width: 1240px) {
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how li:nth-child(4) { padding-left: 0; border-left: 0; }
  .how li:nth-child(n+4) { border-top: 1px solid var(--line); margin-top: 8px; }
}
@media (max-width: 1100px) {
  .specimen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specimen > div:nth-child(2) { border-right: 0; }
  .specimen > div:nth-child(3) { padding-left: 0; }
  .specimen > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1040px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .desk { border-left: 0; border-top: 1px solid var(--line); max-height: none; min-height: 0; }
  .head-nav { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-row, .sec-head, .head-h { grid-template-columns: minmax(0, 1fr); }
  .how { grid-template-columns: minmax(0, 1fr); border-top: 3px solid var(--text); }
  .how li, .how li + li, .how li:nth-child(4) { padding: 18px 0; margin-top: 0; border-left: 0; border-top: 1px solid var(--line); grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; }
  .how li:first-child { border-top: 0; }
  .how li::before { grid-row: span 2; font-size: 56px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .canvas-wrap { min-height: 420px; height: 62vh; }
  .steps-bar { grid-template-columns: minmax(0, 1fr); left: 8px; right: 8px; bottom: 8px; }
  .overlay-top { top: 8px; left: 8px; right: 8px; }
  .top nav { gap: 6px 20px; }
}
@media (max-width: 640px) {
  .specimen { grid-template-columns: minmax(0, 1fr); }
  .specimen > div, .specimen > div + div { padding: 24px 0; border-right: 0; border-top: 1px solid var(--line); }
  .specimen > div:first-child { border-top: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .room-cap { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Footer text with the full contract address wraps on narrow screens (release 11.9 audit). */
footer p { overflow-wrap: anywhere; }
