/* Homepage (/) only. Loaded after tokens.css and base.css.
   Phase 2A: static composition. Six scenes share one 1200x800 drawing space,
   so later phases can move between them instead of swapping pictures. */

/* ---------- header / footer ---------- */
.home-header { position: absolute; inset: 0 0 auto 0; z-index: 10; padding: var(--nh-space-5) 0; }
.home-header .nh-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--nh-space-4); }
.home-mark { font: 600 var(--nh-text-sm) / 1 var(--nh-font-mono); letter-spacing: 0.06em; color: var(--nh-text); text-decoration: none; }
.home-nav { display: flex; gap: var(--nh-space-5); }
.home-nav a { color: var(--nh-text-dim); font-size: var(--nh-text-sm); text-decoration: none; padding: var(--nh-space-2) 0; }
.home-nav a:hover { color: var(--nh-text); }

.home-footer { padding: var(--nh-space-6) 0 var(--nh-space-7); color: var(--nh-text-faint); font-size: var(--nh-text-sm); background: var(--nh-bg-deep); }
.home-footer .nh-wrap { display: flex; flex-wrap: wrap; gap: var(--nh-space-3) var(--nh-space-5); justify-content: space-between; }

.home { background: var(--nh-bg-deep); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.m-only { display: none; }

/* ---------- scenes ---------- */
.scene { position: relative; min-height: 100svh; overflow: hidden; background: var(--nh-bg-deep); }
.scene__stage { position: absolute; inset: 0; }
.scene__stage svg { width: 100%; height: 100%; overflow: visible; }

.scene__text { position: absolute; inset: auto 0 clamp(var(--nh-space-6), 9vh, var(--nh-space-8)) 0; z-index: 2; }
.scene__text--top { inset: clamp(5.5rem, 13vh, 8rem) 0 auto 0; }

.chapter { font: 500 var(--nh-text-xs) / 1 var(--nh-font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--nh-text-faint); }
.scene__title { margin-top: var(--nh-space-3); font: 500 clamp(1.7rem, 1.1rem + 2.2vw, 2.9rem) / 1.08 var(--nh-font-serif); letter-spacing: -0.01em; max-width: 18ch; }
.scene__lede { margin-top: var(--nh-space-3); color: var(--nh-text-dim); max-width: 36ch; }

/* 01: almost nothing */
.idea__name { font: 500 clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem) / 1 var(--nh-font-serif); letter-spacing: -0.015em; }
.idea__role { margin-top: var(--nh-space-3); font: 500 var(--nh-text-sm) / 1 var(--nh-font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--nh-text-dim); }
.scroll-cue { display: inline-block; margin-top: var(--nh-space-6); font: italic 400 var(--nh-text-base) / 1.4 var(--nh-font-serif); color: var(--nh-text-faint); text-decoration: none; }
.scroll-cue:hover { color: var(--nh-text); }

/* ---------- drawing vocabulary (inline SVG) ---------- */
.ln { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.ln.bg { fill: var(--nh-bg-deep); }
.ln.dim { opacity: 0.5; }
.ln.hi { stroke: var(--nh-text); stroke-width: 1.6; }
.dash { stroke-dasharray: 3 4; }
.dot { fill: currentColor; }
.dot.hi { fill: var(--nh-text); }
.fill { fill: currentColor; }
.tx { fill: currentColor; font-family: var(--nh-font-mono); }
.tx.dim { opacity: 0.68; }
.nt { fill: currentColor; font-family: var(--nh-font-serif); font-style: italic; opacity: 0.92; }
.strike { text-decoration: line-through; opacity: 0.6; }
.cap { fill: var(--nh-annot-faint); font: 400 11px var(--nh-font-mono); letter-spacing: 0.04em; }

/* colour roles: chalk for things made, ink for the figure, gold only for the sun */
.c-ink { color: var(--nh-text); }
.c-frag { color: var(--nh-chalk); }
.c-ghost { color: var(--nh-chalk); opacity: 0.28; }
.c-ghost2 { color: var(--nh-chalk); opacity: 0.12; }
.c-fade { color: var(--nh-chalk); opacity: 0.18; }
.c-faint { color: var(--nh-chalk); opacity: 0.35; }
.c-land { color: var(--nh-chalk); opacity: 0.55; }
.c-draft { color: var(--nh-chalk); }
.c-sun { color: var(--nh-sun); }

.horizon { stroke: var(--nh-text-faint); opacity: 0.45; }
.spar { color: var(--nh-text); opacity: 0.75; }
.spar.lead { stroke-width: 1.6; opacity: 0.95; }
.rib { color: var(--nh-chalk); opacity: 0.35; }
.joint { fill: var(--nh-bg-deep); stroke: var(--nh-chalk); stroke-width: 1; vector-effect: non-scaling-stroke; }
.slot { color: var(--nh-chalk); stroke-dasharray: 2 3; opacity: 0.45; }
.path { color: var(--nh-chalk); stroke-dasharray: 1 5; opacity: 0.55; }
.strike-line { color: var(--nh-text-dim); }
.door { stroke-dasharray: 6 4; }
/* the figure: drafting-compass linework, same weight family as the chalk */
.torso { stroke-width: 1.2; }
.harness { stroke-width: 1.5; }
.sun-disc { stroke-width: 1.6; fill: var(--nh-sun-wash); }

/* ---------- 06: the lab — a cabinet of specimens ----------
   One interaction: each specimen is a native <details> in an exclusive group (name="lab").
   Opening one widens it to the full shelf and shows its inspection sheet. No JS needed. */
.lab { position: relative; min-height: 100svh; padding: clamp(7rem, 20vh, 12rem) 0 clamp(6rem, 16vh, 10rem); background: var(--nh-bg); border-top: 1px solid var(--nh-line-soft); }
.lab .nh-wrap { max-width: 1240px; }
.lab__head { display: flex; align-items: flex-end; gap: var(--nh-space-5); margin-bottom: var(--nh-space-5); }
.lab__door { width: 34px; flex: none; }
.lab__title { margin-top: var(--nh-space-3); font: 500 clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem) / 1.12 var(--nh-font-serif); max-width: 22ch; }
.lab__census { margin: 0 0 var(--nh-space-8) calc(34px + var(--nh-space-5)); font: 400 var(--nh-text-xs) / 1.5 var(--nh-font-mono); letter-spacing: 0.04em; color: var(--nh-annot-faint); }

.lab__floor { display: grid; gap: var(--nh-space-8); }
@media (min-width: 1100px) { .lab__floor { grid-template-columns: minmax(0, 1fr) 230px; } }
.cabinet { display: grid; gap: clamp(var(--nh-space-7), 9vh, var(--nh-space-8)); min-width: 0; }

/* shelves */
.shelf__head { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: var(--nh-space-4); padding-top: var(--nh-space-3); border-top: 1px solid var(--nh-line); margin-bottom: var(--nh-space-5); }
.shelf__title { font: 500 var(--nh-text-lg) / 1.2 var(--nh-font-serif); }
.shelf__line { font: italic 400 var(--nh-text-sm) / 1.4 var(--nh-font-serif); color: var(--nh-annot-faint); }
.shelf__count { font: 400 var(--nh-text-xs) / 1 var(--nh-font-mono); color: var(--nh-annot-faint); letter-spacing: 0.1em; }
.shelf__items { display: grid; gap: var(--nh-space-6) var(--nh-space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-items: start; }
.shelf--built .shelf__items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

/* a specimen, closed */
.specimen { min-width: 0; }
.specimen summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--nh-space-2) var(--nh-space-3); align-items: baseline; padding: var(--nh-space-2) 0; border-radius: 4px; }
.specimen summary::-webkit-details-marker { display: none; }
.specimen__art { grid-column: 1 / -1; width: 100%; height: auto; color: var(--nh-chalk); margin-bottom: var(--nh-space-2); transition: color var(--nh-dur) var(--nh-ease); }
.specimen__label { min-width: 0; font-size: var(--nh-text-sm); color: var(--nh-text); }
.specimen__no { font: 500 var(--nh-text-xs) / 1 var(--nh-font-mono); letter-spacing: 0.1em; color: var(--nh-annot); margin-right: var(--nh-space-2); }
.specimen__title { font-weight: 600; }
.specimen__hint { font: italic 400 var(--nh-text-sm) / 1 var(--nh-font-serif); color: var(--nh-annot-faint); }
.specimen__hook { grid-column: 1 / -1; font: italic 400 var(--nh-text-sm) / 1.45 var(--nh-font-serif); color: var(--nh-annot); }
.specimen summary:hover .specimen__art { color: var(--nh-text); }
.specimen summary:hover .specimen__hint, .specimen[open] .specimen__hint { color: var(--nh-accent); }

/* the four kinds look different on purpose */
.specimen--experiments .specimen__art { padding: var(--nh-space-3); border: 1px solid var(--nh-line-soft); background: var(--nh-bg-deep); }
.specimen--notes summary { padding: var(--nh-space-4) var(--nh-space-4) var(--nh-space-3); background: var(--nh-surface); border-left: 2px solid var(--nh-line); border-radius: 0 6px 6px 0; }
.specimen__quote { grid-column: 1 / -1; margin-bottom: var(--nh-space-3); font: italic 400 clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem) / 1.4 var(--nh-font-serif); color: var(--nh-chalk); }
.specimen--unfinished summary { border-top: 1px dashed var(--nh-line); padding-top: var(--nh-space-3); }
.specimen--unfinished .specimen__title { font-weight: 400; font-style: italic; color: var(--nh-annot); }
.specimen--unfinished .specimen__art { max-width: 300px; }

/* a specimen, open: it takes the whole shelf and shows its inspection sheet */
.specimen[open] { grid-column: 1 / -1; }
.specimen[open] .specimen__art { max-width: 620px; }
.specimen--unfinished[open] .specimen__art { max-width: 300px; }
.specimen__sheet { padding: var(--nh-space-4) 0 var(--nh-space-3); border-bottom: 1px solid var(--nh-line-soft); max-width: 68ch; }
.specimen__sheet > * + * { margin-top: var(--nh-space-3); }
.specimen__sheet p { color: var(--nh-text-dim); font-size: var(--nh-text-sm); line-height: 1.7; }
.specimen__lines { list-style: none; padding: 0; display: grid; gap: var(--nh-space-2); font: italic 400 var(--nh-text-base) / 1.45 var(--nh-font-serif); color: var(--nh-chalk); }
.specimen__lines li::before { content: "— "; color: var(--nh-annot-faint); }
.specimen__legend { margin: var(--nh-space-3) 0; padding-left: var(--nh-space-4); border-left: 2px solid var(--nh-line); font: 400 var(--nh-text-xs) / 1.7 var(--nh-font-mono); color: var(--nh-annot); }
.specimen__facts { margin: var(--nh-space-4) 0 0; display: grid; gap: var(--nh-space-2); }
.specimen__facts div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--nh-space-3); }
.specimen__facts dt { font: 500 var(--nh-text-xs) / 1.7 var(--nh-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--nh-annot-faint); }
.specimen__facts dd { margin: 0; font-size: var(--nh-text-sm); color: var(--nh-annot); overflow-wrap: anywhere; }
.specimen__doors { display: flex; flex-wrap: wrap; align-items: center; gap: var(--nh-space-3) var(--nh-space-5); padding-top: var(--nh-space-2); }
.specimen__door { font-weight: 600; font-size: var(--nh-text-sm); }
.specimen__fine { font-size: var(--nh-text-xs) !important; color: var(--nh-annot-faint) !important; }
@media (max-width: 560px) { .specimen__facts div { grid-template-columns: 1fr; gap: 0; } }

.lab__loop { margin-top: var(--nh-space-8); font: italic 400 var(--nh-text-sm) / 1.5 var(--nh-font-serif); color: var(--nh-annot-faint); }
.lab__loop a { font-style: normal; font-family: var(--nh-font-mono); font-size: var(--nh-text-xs); letter-spacing: 0.06em; margin-left: var(--nh-space-2); }

.notebook { border-top: 1px solid var(--nh-line); padding-top: var(--nh-space-4); align-self: start; }
.notebook__title { font: 500 var(--nh-text-xs) / 1 var(--nh-font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--nh-annot-faint); }
.notebook__log { list-style: none; margin: var(--nh-space-4) 0 0; padding: 0; display: grid; gap: var(--nh-space-4); font: italic 400 var(--nh-text-sm) / 1.55 var(--nh-font-serif); color: var(--nh-annot); }
.notebook__log time { display: block; font: normal 400 var(--nh-text-xs) / 1.4 var(--nh-font-mono); color: var(--nh-annot-faint); }

/* ---------- mobile: a deliberate composition, not a scaled desktop ----------
   The drawing sits in the upper part of the screen, zoomed out a little so the
   wings survive, with secondary fragments removed. Text sits below it. */
@media (max-width: 720px) {
  .home-nav { gap: var(--nh-space-4); }
  .scene { min-height: 0; padding-bottom: var(--nh-space-8); }
  .scene__stage { position: relative; inset: auto; height: 62svh; min-height: 340px; overflow: hidden; }
  /* 01-03 happen above the horizon: show only the upper part of the drawing */
  .scene--idea .scene__stage, .scene--experiment .scene__stage, .scene--build .scene__stage { height: 48svh; min-height: 300px; }
  .scene--idea .scene__stage svg, .scene--experiment .scene__stage svg, .scene--build .scene__stage svg { height: 150%; }
  .scene__text { position: relative; inset: auto; margin-top: var(--nh-space-2); }
  .mz { transform: scale(0.74); transform-origin: 600px 380px; transform-box: view-box; }
  .scene--idea .mz { transform: none; }
  .scene--build .mz { transform: scale(0.6); transform-origin: 600px 330px; }
  .scene--takeoff .scene__stage { height: 54svh; }
  .scene--next .scene__stage { height: 50svh; min-height: 300px; }
  .d-only { display: none; }
  .m-only { display: inline; }
  .cap { font-size: 16px; }
}

/* ---------- motion layer (Phase 2B) ----------
   Nothing here applies until assets/js arms a scene ([data-armed]) or turns motion on.
   Without JS, or with reduced motion, these selectors never match: the static drawing is the page. */
[data-armed] .rv {
  opacity: 0;
  transform: translateY(6px);
  stroke-dasharray: 320px;            /* inherited by plain strokes inside: they draw on */
  stroke-dashoffset: 320px;
  transition:
    opacity 700ms var(--nh-ease) calc(var(--i, 0) * 70ms),
    transform 900ms var(--nh-ease) calc(var(--i, 0) * 70ms),
    stroke-dashoffset 1200ms var(--nh-ease) calc(var(--i, 0) * 70ms);
}
[data-armed][data-in] .rv { opacity: 1; transform: none; stroke-dashoffset: 0; }
[data-armed] [data-draw] { transition: stroke-dashoffset 1100ms var(--nh-ease) calc(var(--i, 0) * 110ms); }

/* scene 04: earlier positions on the climb appear once the figure has passed them */
.motion-on [data-at] { transition: opacity 400ms var(--nh-ease); }
.motion-on .scene [data-at].is-ahead { opacity: 0; }

/* ---------- 06: instruments (Phase 4) ----------
   Instruments live inside an open specimen's sheet. Their static content is real (a table, a list);
   JS adds controls on top and hides the static copy only once it has mounted ([.is-live]). */
.instrument { margin-top: var(--nh-space-5); }
.instrument.is-live .instrument__static { display: none; }
.instrument__q { font: 500 var(--nh-text-sm) / 1.4 var(--nh-font-mono); color: var(--nh-chalk); }
.instrument__verdict { font: italic 400 var(--nh-text-base) / 1.5 var(--nh-font-serif); color: var(--nh-chalk) !important; }
.instrument__tablewrap { overflow-x: auto; }
.instrument__table { width: 100%; border-collapse: collapse; font: 400 var(--nh-text-xs) / 1.4 var(--nh-font-mono); color: var(--nh-annot); font-variant-numeric: tabular-nums; }
.instrument__table caption { text-align: left; padding-bottom: var(--nh-space-2); font: italic 400 var(--nh-text-sm) / 1.4 var(--nh-font-serif); color: var(--nh-annot-faint); }
.instrument__table th, .instrument__table td { padding: 0.35rem 0.6rem 0.35rem 0; border-bottom: 1px solid var(--nh-line-soft); text-align: right; white-space: nowrap; }
.instrument__table th:first-child { text-align: left; }
.instrument__table thead th { color: var(--nh-annot-faint); font-weight: 500; }
.instrument__table tr.is-leaf th, .instrument__table tr.is-leaf td { border-bottom-style: dashed; }
.instrument__uses { list-style: none; padding: 0; display: grid; gap: var(--nh-space-1); font-size: var(--nh-text-sm); color: var(--nh-annot); }
.instrument__more summary { cursor: pointer; font: italic 400 var(--nh-text-sm) / 1.4 var(--nh-font-serif); color: var(--nh-annot-faint); }
.instrument__more summary:hover { color: var(--nh-text); }
.instrument__tables { display: grid; gap: var(--nh-space-5); margin-top: var(--nh-space-4); overflow-x: auto; }

/* controls: small drafting instruments, not app chrome */
.inst-btn, .inst-chip { font: 500 var(--nh-text-xs) / 1 var(--nh-font-mono); letter-spacing: 0.04em; color: var(--nh-annot); background: none; border: 1px solid var(--nh-line-soft); border-radius: 3px; padding: 0.55rem 0.75rem; min-height: 36px; cursor: pointer; }
.inst-btn:hover, .inst-chip:hover { border-color: var(--nh-annot-faint); color: var(--nh-text); }
.inst-btn--main { border-color: var(--nh-line); color: var(--nh-chalk); min-width: 6.5rem; }
.inst-chip[aria-pressed="true"] { border-color: var(--nh-text); color: var(--nh-text); background: var(--nh-surface-hi); }
.inst-scrub { display: inline-flex; flex-direction: column; gap: 0.3rem; flex: 1 1 180px; min-width: 150px; font: 400 var(--nh-text-xs) / 1 var(--nh-font-mono); color: var(--nh-annot-faint); }
.inst-scrub input { width: 100%; accent-color: var(--nh-chalk); }
.inst-read { font-size: var(--nh-text-sm); color: var(--nh-annot) !important; min-height: 1.5em; }
.inst-read--topic { font-family: var(--nh-font-serif); font-style: italic; }
.inst-choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--nh-space-2) var(--nh-space-4); }
.inst-choice legend { float: left; margin-right: var(--nh-space-4); font: 500 var(--nh-text-xs) / 2 var(--nh-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--nh-annot-faint); }
.inst-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.inst-choice label { font: 400 var(--nh-text-xs) / 1.6 var(--nh-font-mono); color: var(--nh-annot-faint); cursor: pointer; border-bottom: 1px solid transparent; padding: 0.35rem 0; }
.inst-choice label:hover { color: var(--nh-text); }
.inst-choice input:checked + label { color: var(--nh-text); border-bottom-color: var(--nh-text); }
.inst-choice input:focus-visible + label { outline: 2px solid var(--nh-accent); outline-offset: 3px; border-radius: 2px; }

/* KB-005 layout */
.lx { display: grid; gap: var(--nh-space-3); }
.lx__svg { width: 100%; max-width: 600px; height: auto; border: 1px solid var(--nh-line-soft); background: var(--nh-bg-deep); }
.lx__edge.is-sel { stroke: var(--nh-text); stroke-width: 1.6; }
.lx__move { color: var(--nh-annot-faint); stroke-dasharray: 2 2; }
.lx__node { cursor: pointer; }
.lx__node .tx { font-size: 9px; }
.lx__node.is-sel circle { stroke: var(--nh-text); stroke-width: 2; }
.lx__node.is-sel .tx { fill: var(--nh-text); font-weight: 600; }
.lx__node.is-dim { opacity: 0.35; }
.lx__controls { display: flex; flex-wrap: wrap; align-items: end; gap: var(--nh-space-2); max-width: 600px; }
.lx__topics { display: flex; flex-wrap: wrap; gap: var(--nh-space-2); }

/* KB-006 recursion */
.rx { display: grid; gap: var(--nh-space-4); }
.rx__abd { display: flex; flex-wrap: wrap; align-items: center; gap: var(--nh-space-3) var(--nh-space-4); font: 400 var(--nh-text-xs) / 1 var(--nh-font-mono); color: var(--nh-annot-faint); }
.rx__abd label { display: inline-flex; align-items: center; gap: var(--nh-space-2); }
.rx__abd select { font: 500 var(--nh-text-xs) / 1 var(--nh-font-mono); color: var(--nh-text); background: var(--nh-bg-deep); border: 1px solid var(--nh-line); border-radius: 3px; padding: 0.45rem 0.5rem; min-height: 36px; }
.rx__lvl { font: inherit; color: var(--nh-annot); background: none; border: 0; padding: 0.2rem 0; cursor: pointer; text-decoration: underline dotted var(--nh-line); text-underline-offset: 3px; }
.rx__lvl[aria-pressed="true"], .rx__lvl:hover { color: var(--nh-text); }
.rx__table tr.is-sel th, .rx__table tr.is-sel td { color: var(--nh-text); background: var(--nh-surface); }
.rx__barcell { width: 32%; min-width: 80px; }
.rx__bar { display: block; height: 7px; background: var(--nh-line); }
.rx__bar.is-max { background: var(--nh-chalk); }
.rx__sum th, .rx__sum td { border-bottom: 0 !important; color: var(--nh-chalk); }

/* KB-004 evidence */
.ex { display: grid; gap: var(--nh-space-3); }
.inst-note { font: italic 400 var(--nh-text-xs) / 1.5 var(--nh-font-serif) !important; color: var(--nh-annot-faint) !important; max-width: 60ch; }
.rx__invalid { font-style: italic; color: var(--nh-text) !important; border-left: 2px solid var(--nh-line); padding-left: var(--nh-space-3); }
.ex__badge { justify-self: start; font: 500 var(--nh-text-xs) / 1.4 var(--nh-font-mono) !important; letter-spacing: 0.05em; text-transform: uppercase; color: var(--nh-text) !important; border: 1px dashed var(--nh-annot-faint); padding: 0.35rem 0.6rem; }
.ex__svg { width: 100%; max-width: 640px; height: auto; border: 1px solid var(--nh-line-soft); background: var(--nh-bg-deep); }
.ex__row .tx { fill: var(--nh-annot-faint); }
.ex__row.is-key .tx { fill: var(--nh-text); }
.ex__row.is-key .dot { fill: var(--nh-text); }
.ex__gap { color: var(--nh-text); }
.ex__read p + p { margin-top: var(--nh-space-2); }
.ex__why { font-family: var(--nh-font-serif); font-style: italic; }

/* KB-001: anatomy and decisions; connections */
.specimen__figure { width: 100%; max-width: 640px; height: auto; color: var(--nh-chalk); margin: var(--nh-space-4) 0; }
.specimen__from { font: 500 var(--nh-text-xs) / 1.4 var(--nh-font-mono) !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nh-annot-faint) !important; }
.specimen__decisions ul { list-style: none; padding: 0; margin: var(--nh-space-2) 0 0; display: grid; gap: var(--nh-space-3); }
.specimen__decisions q { font: italic 400 var(--nh-text-base) / 1.45 var(--nh-font-serif); color: var(--nh-chalk); quotes: "“" "”"; }
.specimen__src { display: block; font: 400 var(--nh-text-xs) / 1.5 var(--nh-font-mono); color: var(--nh-annot-faint); overflow-wrap: anywhere; }
.specimen__rel ul { list-style: none; padding: 0; margin: var(--nh-space-2) 0 0; display: grid; gap: var(--nh-space-2); font-size: var(--nh-text-sm); color: var(--nh-annot-faint); }
.specimen__rel-link { color: var(--nh-text); text-decoration: none; border-bottom: 1px solid var(--nh-line); }
.specimen__rel-link:hover { border-bottom-color: var(--nh-text); }
.specimen__rel-link .specimen__no { margin-right: 0.35rem; }
.lx__node { -webkit-tap-highlight-color: transparent; }
.lx__node:focus { outline: none; }
/* phones: the bars are the point of the table; the per-call columns are read out per level instead */
@media (max-width: 560px) {
  .rx__table th:nth-child(3), .rx__table td:nth-child(3), .rx__table th:nth-child(4), .rx__table td:nth-child(4) { display: none; }
  .rx__barcell { width: 40%; min-width: 0; }
}
