/* ==========================================================================
   The Terminology Tales — instruments.css
   The six instruments. Loaded only on pages that carry one. Everything is
   server-rendered and readable with this file's companion script blocked;
   the `html.js` rules below are the only ones that hide anything, and they
   hide it only when the script is present to show it again.
   ========================================================================== */

/* ---- The Descent --------------------------------------------------------- */
.descent .picks { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.shafts { position: relative; }
.shaft { border-left: 1px solid var(--line-strong); }
html.js .shaft:not(.is-on) { display: none; }
.shaft-gloss { padding: 0 0 .5rem clamp(1.25rem, 3.5vw, 2.75rem); font-style: italic; color: var(--text-quiet); font-size: 1.05rem; }
.stratum { position: relative; display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) minmax(0, 10rem); gap: clamp(1rem, 2.6vw, 2.25rem); align-items: baseline; padding: 1.5rem 0 1.6rem clamp(1.25rem, 3.5vw, 2.75rem); border-bottom: 1px solid var(--line); }
@media (max-width: 52em) { .stratum { grid-template-columns: 1fr; gap: .5rem; } }
.stratum::before { content: ""; position: absolute; left: -5px; top: 2.05rem; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--paper); }
.stratum.depth-1::before { background: var(--steel); }
.stratum.depth-2::before { background: var(--paper); box-shadow: 0 0 0 3px var(--paper), inset 0 0 0 2px var(--steel); }
.s-lang { font-family: var(--font-caps); font-size: var(--t-cap-sm); font-weight: 600; letter-spacing: .12em; color: var(--accent); }
.s-date { display: block; font-family: var(--font-reading); font-style: italic; font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--text-quiet); margin-top: .3rem; }
.s-form { font-size: clamp(1.65rem, 1.2rem + 2vw, 2.4rem); line-height: 1.1; color: var(--ink); font-weight: 400; }
.stratum.depth-2 .s-form { color: var(--steel); }
.s-gloss { margin-top: .45rem; font-size: 1.05rem; color: var(--text-2); line-height: 1.5; }
.cousins { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.cousins li { display: inline-flex; align-items: baseline; gap: .45rem; border: 1px solid var(--line); border-radius: var(--r-chip); padding: .3rem .65rem; font-size: 1rem; background: var(--paper); }
.cousins b { font-family: var(--font-caps); font-weight: 600; font-size: .6rem; letter-spacing: .1em; color: var(--text-quiet); }
.s-depth { justify-self: end; }
@media (max-width: 52em) { .s-depth { justify-self: start; margin-top: .5rem; } }
.s-layer { font-family: var(--font-caps); font-size: var(--t-cap-sm); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.stratum.depth-1 .s-layer { color: var(--accent); } .stratum.depth-2 .s-layer { color: var(--steel); }
/* stagger on switch — from a visible rest state, only when the script asks */
.js .shaft.is-anim .stratum { animation: strataRise var(--d-slow) var(--ease-luxe) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes strataRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.descent--compact .cousins, .descent--compact .s-refs { display: none; }
/* a strand: where a second road joins the shaft, and where the roads meet again; an aside is a rung on that road */
.strand { position: relative; margin: 0; padding: 1.4rem 0 .2rem clamp(1.25rem, 3.5vw, 2.75rem); font-family: var(--font-caps); font-size: var(--t-cap-sm); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--brass-deep); }
.strand::before { content: ""; position: absolute; left: -3px; top: 1.72rem; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 3px var(--paper); }
.strand span { padding-right: 2.8rem; background: linear-gradient(var(--brass), var(--brass)) no-repeat right center / 2rem 1px; }
.stratum--aside::before { background: var(--paper); box-shadow: 0 0 0 3px var(--paper), inset 0 0 0 2px var(--brass); }
.stratum--aside .s-lang { color: var(--brass-deep); }
.js .shaft.is-anim .strand { animation: strataRise var(--d-slow) var(--ease-luxe) both; animation-delay: calc(var(--i, 0) * 70ms); }
/* the kin beneath the shaft: what the textbooks file elsewhere, read as one word */
/* the prominent words (v5.28, the owner's rule of 27 Sep 2026): the words she asks to stand prominently, set at the top of the tab in the tab-word's own size, each with its language and plain meaning, each a link to its card below */
.prom { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.1rem clamp(1.25rem, 2.6vw, 2.25rem); padding: 1.1rem 0 1.6rem clamp(1.25rem, 3.5vw, 2.75rem); border-bottom: 1px solid var(--line); }
.prom li { display: grid; gap: .3rem; align-content: start; }
.prom-w { display: grid; justify-self: start; text-decoration: none; color: inherit; }
.prom-lang { font-family: var(--font-caps); font-size: var(--t-cap-sm); font-weight: 600; letter-spacing: .12em; color: var(--accent); }
.prom-form { font-size: clamp(1.65rem, 1.2rem + 2vw, 2.4rem); line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: text-decoration-color var(--d-fast) var(--ease-luxe); }
.prom-part { white-space: nowrap; }
.prom-gloss { font-size: 1rem; line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prom-w:hover .prom-form, .prom-w:focus-visible .prom-form { text-decoration-color: var(--brass); }
.prom-w:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.kin-list li.k-prom { border-color: var(--line-strong); box-shadow: inset 3px 0 0 var(--brass); }
.kin-list li:target { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (forced-colors: active) {
  .shaft .stratum::before, .shaft .kin::before, .shaft .strand::before { forced-color-adjust: none; background: CanvasText; box-shadow: 0 0 0 3px Canvas; }
  .shaft .stratum--aside::before, .shaft .stratum.depth-2::before { background: Canvas; box-shadow: 0 0 0 3px Canvas, inset 0 0 0 2px CanvasText; }
  .strand span { forced-color-adjust: none; color: CanvasText; background-image: linear-gradient(CanvasText, CanvasText); }
  .kin-list li.k-prom { box-shadow: none; border-left: 4px solid CanvasText; }
  .prom-w:hover .prom-form, .prom-w:focus-visible .prom-form { text-decoration-color: LinkText; }
}
.js .shaft.is-anim .prom { animation: strataRise var(--d-slow) var(--ease-luxe) both; animation-delay: calc(var(--i, 0) * 70ms); }
.kin { position: relative; padding: 1.6rem 0 .4rem clamp(1.25rem, 3.5vw, 2.75rem); }
.kin::before { content: ""; position: absolute; left: -5px; top: 1.95rem; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--paper); }
.kin-lab { color: var(--accent); }
.kin-lede { margin-top: .6rem; max-width: 46rem; font-family: var(--font-reading); font-size: clamp(1.1rem, 1rem + .55vw, 1.32rem); line-height: 1.55; color: var(--ink); }
.kin-lede i { font-style: italic; }
.kin-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: .55rem; margin-top: 1.1rem; }
.kin-list li { display: grid; gap: .15rem; align-content: start; border: 1px solid var(--line); border-radius: var(--r-card); padding: .75rem .9rem .8rem; background: var(--paper); }
.kin-list b { font-family: var(--font-caps); font-weight: 600; font-size: .6rem; letter-spacing: .1em; color: var(--text-quiet); }
.k-form { font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.k-gloss { font-size: .95rem; line-height: 1.4; color: var(--text-2); }
/* a word placed to be proved on the show: its dictionary sense now, the case to come */
.kin-list li.k-pending { border-style: dashed; }
.k-note { margin-top: .25rem; font-family: var(--font-caps); font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-deep); }
.js .shaft.is-anim .kin { animation: strataRise var(--d-slow) var(--ease-luxe) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* ---- The Babel Table ----------------------------------------------------- */
.babel .picks { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
html.js .btable:not(.is-on) { display: none; }
.btable { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--paper); }
.btitle { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; padding: 1.1rem clamp(1rem, 2.6vw, 1.6rem); border-bottom: 1px solid var(--line); color: var(--ink); }
.brow { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: clamp(.8rem, 2.4vw, 1.75rem); align-items: baseline; padding: 1.2rem clamp(1rem, 2.6vw, 1.6rem); border-bottom: 1px solid var(--line); }
@media (max-width: 48em) { .brow { grid-template-columns: 1fr; gap: .4rem; } }
.bfam { font-family: var(--font-caps); font-size: var(--t-cap-sm); font-weight: 600; letter-spacing: .12em; color: var(--accent); }
.bfam span { display: block; font-family: var(--font-reading); font-style: italic; font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--text-quiet); margin-top: .25rem; }
.bform { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem); color: var(--ink); line-height: 1.2; }
.bmean { margin-top: .3rem; font-size: 1.05rem; color: var(--text); }
.bpath { margin-top: .35rem; font-size: 1rem; font-style: italic; color: var(--text-2); line-height: 1.5; }
.bthread { background-color: var(--ink); background-image: var(--grain-light), var(--band-grad); background-size: 320px 320px, auto; color: var(--sky); padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1rem, 2.6vw, 1.6rem); }
.bthread .lab { color: var(--sky); display: block; margin-bottom: .55rem; }
.bthread p { font-size: 1.1rem; line-height: 1.6; max-width: 74ch; }
.bthread b { color: var(--paper); font-weight: 600; }
.bthread .s-refs, .bthread .s-refs .ref { color: var(--sky); }
.js .btable.is-anim .brow { animation: strataRise var(--d-slow) var(--ease-luxe) both; animation-delay: calc(var(--i, 0) * 60ms); }

/* ---- The Throat ---------------------------------------------------------
   One plate on the ink page: the head in section on a vellum sheet, the
   airway laid over it in six tones of one navy (the depth scale in
   tales-tokens.css), a numbered signet on each storey, and the same six
   storeys straightened into a tower beside it. State is data-place on
   [data-throat]; --tone is set per storey on the segments, the signets and
   the rows, so one rule lights whichever storey is chosen. */
.throat { display: block; }
.tract-plate { margin: 0; background: var(--sheet); background-image: var(--grain-ink); background-size: 320px 320px; border: 1px solid var(--line-strong); outline: 1px solid var(--line-on-ink); outline-offset: 4px; padding: clamp(1rem, 2.4vw, 1.75rem) clamp(1rem, 2.6vw, 2rem); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(1rem, 3vw, 2.75rem); align-items: center; }
@media (max-width: 52em) { .tract-plate { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; } }
.tract { width: 100%; height: auto; display: block; overflow: visible; }
.tp-caption { grid-column: 1 / -1; margin: .25rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-family: var(--font-reading); font-style: italic; font-size: .98rem; line-height: 1.5; color: var(--text-quiet); text-align: center; }
/* the drawing */
.tp-cavity { fill: var(--paper-2); }
.tp-tongue { fill: var(--paper-3); }
.tp-tongue-top { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tp-face { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-line { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.tp-palate { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.tp-uvula { fill: var(--paper-3); stroke: var(--ink); stroke-width: 1.2; }
.tp-tooth { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.tp-fold { fill: var(--ink); }
.tp-nostril { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; }
.tp-soft { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .32; stroke-linecap: round; }
.tp-soft--strong { opacity: .6; stroke-width: 1.6; }
.tp-nasal { fill: none; stroke: var(--steel); stroke-width: 1.6; stroke-dasharray: 1.5 5.5; stroke-linecap: round; opacity: 0; transition: opacity var(--d-base) var(--ease-luxe); }
[data-nasal="1"] .tp-nasal { opacity: .85; }
/* the airway in six storeys: every segment in its tone, the chosen one lit */
.tp-seg { fill: none; stroke: var(--tone); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; opacity: .32; transition: opacity var(--d-base) var(--ease-luxe); }
[data-place="glottal"] .tp-seg--glottal, [data-place="pharyngeal"] .tp-seg--pharyngeal, [data-place="uvular"] .tp-seg--uvular,
[data-place="palatal"] .tp-seg--palatal, [data-place="alveolar"] .tp-seg--alveolar, [data-place="bilabial"] .tp-seg--bilabial { opacity: 1; }
/* the labels: quiet, outside the drawing */
.tp-labels text { font-family: var(--font-caps); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; fill: var(--ash); }
.tp-lead { stroke: var(--ash); stroke-width: .8; stroke-opacity: .75; fill: none; }
/* the signets */
.tp-sig { cursor: pointer; outline: none; }
.tp-sig-halo { fill: var(--tone); opacity: 0; transition: opacity var(--d-base) var(--ease-luxe); }
.tp-sig-ring { fill: var(--sheet); stroke: var(--tone); stroke-width: 1.8; transition: fill var(--d-fast) var(--ease-luxe), stroke var(--d-fast) var(--ease-luxe), r var(--d-base) var(--ease-luxe); }
.tp-sig:hover .tp-sig-ring { stroke: var(--brass); stroke-width: 2.2; }
.tp-sig:hover .tp-sig-halo { opacity: .08; }
.tp-sig[aria-pressed="true"] .tp-sig-ring { fill: var(--tone); stroke: var(--brass); stroke-width: 2.4; r: 17; }
.tp-sig[aria-pressed="true"] .tp-sig-halo { opacity: .16; }
.tp-sig:focus-visible .tp-sig-ring { stroke: var(--brass); stroke-width: 3.5; }
.tp-sig text { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; font-size: 15px; letter-spacing: .03em; fill: var(--ink); pointer-events: none; transition: fill var(--d-fast) var(--ease-luxe); }
.tp-sig[aria-pressed="true"] text { fill: var(--paper); }
/* the tower: the same six storeys as a column, the lips at the top */
.tower { min-width: 0; }
.tower-cap { font-family: var(--font-caps); font-size: var(--t-cap-sm); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ash); margin: 0 0 .5rem; }
.tower-cap--base { margin: .6rem 0 0; color: var(--ash-deep); }
.storeys { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.storeys li + li { border-top: 1px solid var(--line); }
.storey { width: 100%; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; grid-template-areas: "tone text ar" "tone text ipa"; align-items: center; column-gap: .9rem; row-gap: 0; padding: .45rem .55rem .45rem 0; background: transparent; border: 0; border-radius: var(--r-chip); text-align: left; color: var(--ink); cursor: pointer; font: inherit; transition: background-color var(--d-fast) var(--ease-luxe), box-shadow var(--d-fast) var(--ease-luxe); }
.storey:hover { background: var(--paper-2); }
.storey:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.storey[aria-pressed="true"] { background: color-mix(in srgb, var(--tone) 11%, transparent); box-shadow: inset 3px 0 0 var(--tone); }
.st-tone { grid-area: tone; width: 3rem; height: 3rem; display: grid; place-items: center; background: var(--tone); color: var(--paper); font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; font-size: 1.2rem; letter-spacing: .04em; border-radius: var(--r-chip); transition: transform var(--d-base) var(--ease-luxe), outline-color var(--d-fast) var(--ease-luxe); outline: 2px solid transparent; outline-offset: 2px; margin-left: .55rem; }
.storey[aria-pressed="true"] .st-tone { outline-color: var(--brass); }
.st-t { grid-area: text; min-width: 0; }
.st-name { display: block; font-family: var(--font-display); font-optical-sizing: auto; font-weight: 500; font-size: 1.22rem; line-height: 1.1; color: var(--ink); }
.st-where { display: block; margin-top: .15rem; font-family: var(--font-reading); font-style: italic; font-size: .92rem; line-height: 1.3; color: var(--text-2); }
.st-ar { grid-area: ar; font-family: var(--font-arabic); font-size: 1.4rem; line-height: 1.1; color: var(--ink); justify-self: end; text-align: right; max-width: 11rem; word-spacing: .12em; }
.st-ipa { grid-area: ipa; font-family: var(--font-forms); font-size: .9rem; line-height: 1.25; color: var(--text-quiet); letter-spacing: .04em; justify-self: end; text-align: right; max-width: 12rem; }
/* the panel, on the ink page */
.place-panels { margin-top: clamp(1.6rem, 3.5vw, 2.5rem); }
.place-panel { border-top: 1px solid var(--line-on-ink); padding-top: 1.4rem; }
.place-panel + .place-panel { margin-top: 1.75rem; }
html.js .place-panel:not(.is-on) { display: none; }
html.js .place-panel + .place-panel { margin-top: 0; }
.js .place-panel.is-on { animation: strataRise var(--d-base) var(--ease-luxe) both; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.25rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 52em) { .pp-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; } }
.pp-depth { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-caps); font-size: var(--t-cap); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--sky); }
.pp-n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; background: var(--tone); color: var(--paper); font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .03em; border-radius: var(--r-chip); outline: 1px solid var(--foil); outline-offset: 2px; }
.pp-head h3 { margin-top: .8rem; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 500; color: var(--paper); display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.pp-ar { font-family: var(--font-arabic); font-size: 1.15em; color: var(--vellum); }
.pp-head small { font-family: var(--font-reading); font-style: italic; font-size: .55em; color: var(--sky); font-weight: 400; }
.pp-lab { display: block; margin-bottom: .55rem; }
.pp-lab + .pp-lab, .pp-letters + .pp-lab, .pp-notes + .pp-lab { margin-top: 1.1rem; }
.pp-letters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.pp-letters li { display: inline-flex; align-items: baseline; gap: .45rem; border: 1px solid var(--line-on-ink); padding: .25rem .6rem .3rem; }
.pl-ar { font-family: var(--font-arabic); font-size: 1.45rem; line-height: 1; color: var(--paper); }
.pl-name { font-family: var(--font-reading); font-style: italic; font-size: .98rem; color: var(--vellum); }
.pl-tr { font-family: var(--font-forms); font-size: .9rem; color: var(--sky); }
.pp-sounds { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
/* a sub-label inside a long run of chips (storey V): takes its own line */
.snd-group { flex-basis: 100%; margin-top: .35rem; font-family: var(--font-caps); font-size: var(--t-cap-sm); font-weight: 600; letter-spacing: var(--track-caps-sm); text-transform: uppercase; color: var(--sky); }
.snd-group:first-child { margin-top: 0; }
/* the storey's placement decisions, folded under the letters */
.pp-notes { margin: .7rem 0 0; }
.pp-notes summary { cursor: pointer; font-family: var(--font-reading); font-style: italic; font-size: .95rem; color: var(--sky); }
.pp-notes summary:hover { color: var(--paper); }
.pp-notes p { margin: .5rem 0 0; font-size: .95rem; line-height: 1.5; color: var(--vellum); }
.snd small { font-family: var(--font-reading); font-style: italic; font-size: .72rem; color: var(--sky); margin-left: .35rem; letter-spacing: 0; }
.snd { font-family: var(--font-forms); font-size: 1.1rem; color: var(--paper); border: 1px solid var(--line-on-ink); padding: .2rem .55rem .25rem; display: inline-flex; align-items: baseline; gap: .35rem; }
.snd i { font-style: normal; font-size: .55em; color: var(--foil); }
.pp-key { font-family: var(--font-caps); font-size: var(--t-cap-sm); letter-spacing: var(--track-caps-sm); text-transform: uppercase; color: var(--sky); margin-left: .35rem; }
.pp-key i { font-style: normal; color: var(--foil); font-size: .8em; }
.made { display: grid; grid-template-columns: minmax(7.5rem, auto) 1fr; gap: .6rem 1.1rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-on-ink); }
.made dt { margin: 0; font-family: var(--font-caps); font-size: var(--t-cap-sm); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--sky); padding-top: .3rem; }
.made dd { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--vellum); }
.made dd i { color: var(--paper); }
@media (max-width: 30em) { .made { grid-template-columns: 1fr; gap: .15rem .5rem; } .made dd { margin-bottom: .55rem; } }
.pp-plain { margin-top: 1rem; font-size: 1.08rem; line-height: 1.55; color: var(--vellum); max-width: 58ch; }
.pp-plain--2 { margin-top: .6rem; }
.pp-words { list-style: none; margin-top: 1.1rem; border-top: 1px solid var(--line-on-ink); }
.pp-words li { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: .25rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-on-ink); align-items: baseline; }
.pp-words .f { font-size: 1.3rem; color: var(--paper); grid-row: span 2; }
.pw-lang { font-family: var(--font-caps); font-size: var(--t-cap-sm); font-weight: 600; letter-spacing: var(--track-caps-sm); text-transform: uppercase; color: var(--sky); }
.pw-gloss { font-size: 1rem; color: var(--vellum); }
.pp-move { margin-top: 1.1rem; padding-left: 1rem; border-left: 3px double var(--sky); font-style: italic; font-size: 1.02rem; line-height: 1.5; color: var(--vellum); }

/* ---- The Sound Laws ------------------------------------------------------ */
.laws-note { font-size: 1.1rem; color: var(--text-2); max-width: 68ch; line-height: 1.55; margin-bottom: 1.5rem; }
.laws .picks { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
html.js .law:not(.is-on) { display: none; }
.law { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.law + .law { margin-top: 1.5rem; }
.law-machine { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2.5rem); background: var(--wash-grad); }
@media (max-width: 48em) { .law-machine { grid-template-columns: 1fr; text-align: center; } }
.law-form { margin-top: .5rem; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); color: var(--ink); line-height: 1.1; }
.law-gloss { margin-top: .3rem; font-style: italic; color: var(--text-2); font-size: 1rem; }
.law-rule { text-align: center; }
.law-shift { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: .5rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.8rem); line-height: 1; }
.law-shift svg { color: var(--accent); }
.law-from { color: var(--accent); } .law-to { color: var(--ink); font-family: 'Gentium Ling', var(--font-reading); font-weight: 400; }
.js .law.is-anim .law-to { animation: shiftIn var(--d-slow) var(--ease-luxe) both; animation-delay: 220ms; }
.js .law.is-anim .law-out .law-form { animation: strataRise var(--d-slow) var(--ease-luxe) both; animation-delay: 380ms; }
@keyframes shiftIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.law-kind { margin-top: .5rem; font-family: var(--font-caps); font-size: var(--t-cap-sm); letter-spacing: .12em; color: var(--text-quiet); }
.law-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
@media (max-width: 48em) { .law-cols { grid-template-columns: 1fr; } }
.law-cols > div { background: var(--paper); padding: 1.2rem clamp(1rem, 2.5vw, 1.6rem); }
.law-cols .lab { font-size: .85rem; display: block; margin-bottom: .6rem; }
.law-list { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.law-list li { display: flex; align-items: baseline; gap: .6rem; font-size: 1.15rem; color: var(--ink); }
.law-list li b { font-family: var(--font-caps); font-weight: 600; font-size: .62rem; letter-spacing: .1em; color: var(--text-quiet); min-width: 6rem; }
.law-list--plain li { color: var(--text-2); }
.law-note { padding: 1.2rem clamp(1rem, 2.5vw, 1.6rem); border-top: 1px solid var(--line); font-style: italic; color: var(--text-2); font-size: 1.05rem; line-height: 1.5; }

/* ---- Roots --------------------------------------------------------------- */
.root { border-top: 1px solid var(--line); padding-block: clamp(2rem, 4.5vw, 3.5rem); }
.root--teaser { border-top: 0; padding-top: 0; }
.root-head { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, .55fr); gap: clamp(1rem, 3vw, 3rem); align-items: end; margin-bottom: 1.5rem; }
@media (max-width: 48em) { .root-head { grid-template-columns: 1fr; gap: .4rem; } }
.root-form { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); color: var(--ink); line-height: 1; }
.root-lang { grid-column: 1; font-family: var(--font-caps); font-size: var(--t-cap-sm); font-weight: 600; letter-spacing: .12em; color: var(--accent); margin-top: .5rem; }
.root-gloss { grid-column: 2; grid-row: 1 / span 2; font-style: italic; font-size: 1.25rem; color: var(--text-2); line-height: 1.45; }
@media (max-width: 48em) { .root-gloss { grid-column: 1; grid-row: auto; } }
.fan { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fan-item { background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 1.1rem 1.1rem; transition: background-color var(--d-fast) var(--ease-luxe); }
.fan-item:hover { background: var(--ink-tint); }
.fan-item b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; line-height: 1.05; color: var(--ink); letter-spacing: -.01em; }
.fan-item:hover b { color: var(--ink-mid); }
.fan-item span { display: block; margin-top: .35rem; font-size: .95rem; line-height: 1.4; color: var(--text-2); }

/* ---- The Trades ---------------------------------------------------------- */
.trades-note { font-size: 1.1rem; line-height: 1.6; color: var(--text-2); max-width: 74ch; }
.mouthmap { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; border: 1px solid var(--line); background: var(--sheet); padding: clamp(.8rem, 2vw, 1.4rem) clamp(.6rem, 2vw, 1.4rem) .8rem; }
.mouthmap svg { width: 100%; height: auto; display: block; font-family: var(--font-caps); }
.mm-roof { fill: none; stroke: var(--ink); stroke-width: 2; }
.mm-drop { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.mm-dot { fill: var(--paper); stroke: var(--brass-deep); stroke-width: 2.5; }
.mm-name { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; fill: var(--ash-deep); }
.mm-letters { font-family: var(--font-forms); font-size: 27px; letter-spacing: .06em; fill: var(--ink); }
.mm-end { font-size: 13px; font-style: italic; font-family: var(--font-reading); fill: var(--ash); letter-spacing: .04em; }
.mouthmap figcaption { margin-top: .6rem; font-family: var(--font-reading); font-style: italic; font-size: .95rem; color: var(--text-quiet); text-align: center; }
@media (max-width: 40em) { .mm-name { font-size: 21px; } .mm-letters { font-size: 32px; } .mm-end { font-size: 18px; } }
.trades-h { margin: clamp(2.2rem, 4.5vw, 3.2rem) 0 1.1rem; display: flex; align-items: baseline; gap: 1rem; }
.trades-h .rel { font-family: var(--font-forms); font-size: 2.6rem; line-height: 1; color: var(--brass-deep); }
.trades-h h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.trades-h .dek { font-size: 1.05rem; margin-top: .3rem; }
.trades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
@media (max-width: 64em) { .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40em) { .trades { grid-template-columns: minmax(0, 1fr); } }
.trade { background: var(--sheet); padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.trade-pair { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1em .3em; font-family: var(--font-forms); font-size: clamp(2.3rem, 1.7rem + 2vw, 3.3rem); line-height: 1; color: var(--ink); letter-spacing: .04em; }
.trade-rel { color: var(--brass-deep); font-size: .68em; padding: 0 .08em; }
.trade--shade .trade-rel { color: var(--steel); }
.trade-place { font-family: var(--font-caps); font-size: var(--t-cap-sm); font-weight: 600; letter-spacing: var(--track-caps-sm); text-transform: uppercase; color: var(--ash-deep); line-height: 1.6; }
.trade-place i { font-style: normal; font-weight: 500; color: var(--ash); }
.trade-how { font-size: 1rem; line-height: 1.5; color: var(--text-2); }
.trade-ex { list-style: none; margin: .4rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.trade-ex li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.trade-ex b { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 500; font-size: 1.08rem; color: var(--ink); }
.trade-ex span { font-style: italic; color: var(--ash-deep); }

/* ---- The Register -------------------------------------------------------- */
.rg { border-top: 3px double var(--line-strong); padding-block: clamp(2rem, 4.5vw, 3.5rem); scroll-margin-top: 6rem; }
.rg-head { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: clamp(1rem, 3vw, 3rem); align-items: start; }
@media (max-width: 48em) { .rg-head { grid-template-columns: 1fr; gap: .6rem; } }
.rg-root { font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; color: var(--ink); letter-spacing: .06em; }
.rg-ep { text-decoration: none; color: inherit; }
.rg-ep:hover { color: var(--steel); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .2em; }
.rg-name { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 500; margin-top: .5rem; }
.rg-sounds { margin-top: .5rem; font-family: var(--font-caps); font-size: var(--t-cap-sm); font-weight: 600; letter-spacing: var(--track-caps-sm); text-transform: uppercase; color: var(--ash-deep); }
.rg-sense { margin-top: .9rem; font-size: 1.08rem; line-height: 1.55; color: var(--text-2); max-width: 68ch; }
.rg-count { margin-top: .7rem; font-family: var(--font-caps); font-size: var(--t-cap-sm); letter-spacing: var(--track-caps-sm); text-transform: uppercase; color: var(--ash); }
/* the full register flows in columns rather than a grid, so a language with forty
   words does not stretch a row that three-word languages share */
.rg .rg-langs { margin-top: clamp(1.4rem, 3vw, 2.2rem); display: block; column-count: 4; column-gap: 1.5rem; column-rule: 1px solid var(--line); border: 0; border-top: 1px solid var(--line); background: transparent; }
@media (max-width: 64em) { .rg .rg-langs { column-count: 3; } }
@media (max-width: 48em) { .rg .rg-langs { column-count: 2; } }
@media (max-width: 34em) { .rg .rg-langs { column-count: 1; } }
.rg .rg-lang { display: inline-block; width: 100%; break-inside: avoid; -webkit-column-break-inside: avoid; background: transparent; padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--line); box-sizing: border-box; }
.rg-refs { margin-top: 1.2rem; font-style: italic; }
.refs { list-style: none; margin-top: 1rem; border-top: 1px solid var(--line); }
.refs li { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 7rem; }
@media (max-width: 40em) { .refs li { grid-template-columns: 1fr; gap: .2rem; } }
.refs li:target { background: var(--ink-tint); }
.ref-kind { font-family: var(--font-caps); font-size: var(--t-cap-sm); font-weight: 600; letter-spacing: .12em; color: var(--accent); }
.ref-cite { font-size: 1rem; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .js .shaft.is-anim .stratum, .js .shaft.is-anim .prom, .js .btable.is-anim .brow,
  .js .place-panel.is-on, .js .law.is-anim .law-to, .js .law.is-anim .law-out .law-form { animation: none; }
}

/* On a phone the plate takes the full width (600 units in ~350px), so the
   drawing's own type scales up to stay legible and the signets grow to be
   tapped. */
@media (max-width: 40em) {
  .tp-labels text { font-size: 15px; }
  .tp-sig text { font-size: 19px; }
  .tp-sig-ring { r: 19; }
  .tp-sig[aria-pressed="true"] .tp-sig-ring { r: 21; }
  .tp-sig-halo { r: 32; }
  .tp-seg { stroke-width: 19; }
  .tp-lead { stroke-width: 1.1; }
}
