/* Rivera Brazil · components.css
   Every component (06-DESIGN §10, §11). Page CSS only composes these; it never creates new ones.
   Order: ink · header · button · doors · notes · grid · opening · line · divider · proc · bench (sheet, lanes,
   player, turns, format panel, tapes, states) · credits · audience doors · folder + report · mini-form ·
   colophon · contact fields · study ruler · glossary · crosstalk line · slips · committee sheet · navy plate
   (promoted from page CSS in round 1; round 2 dropped the constellation, see 10-revisao.md).
   Breakpoints, mobile first: sm 37.5em · md 56.25em · lg 64em · xl 75em.
   State rules for the bench live inside @supports selector(:has(*)); the base CSS draws "what you receive". */

main > * { padding-inline: var(--page-pad); }

/* =========================================================== ink */
.ink { position: absolute; overflow: visible; pointer-events: none; max-width: none; }
.ink path { fill: none; stroke: var(--pen-stroke); stroke-width: var(--stroke-pen); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ink .dot { fill: var(--pen-stroke); stroke: none; }
.ink--pencil path { stroke: var(--pencil); stroke-width: var(--stroke-pencil); }
.ink--wave path { stroke-width: 3px; }
.d0 { --d: 0s; } .d1 { --d: .3s; } .d2 { --d: .9s; } .d3 { --d: 1.5s; } .d4 { --d: 1.9s; } .d5 { --d: 2.3s; }
/* The pen draws once by a wipe along the stroke's direction. (A dash trace with pathLength does not work
   together with vector-effect: non-scaling-stroke in Chromium: the dash comes out in pieces.) */
@media (prefers-reduced-motion: no-preference) {
  .ink.draw { clip-path: inset(-30% 100% -30% -30%); animation: ink-ltr var(--dur, var(--t-pen)) var(--ease-pen) var(--d, 0s) forwards; }
  .ink--arrow.draw { clip-path: inset(-30% -30% -30% 100%); animation-name: ink-rtl; }
  .ink--thread.draw { clip-path: inset(-30% -30% 100% -30%); animation-name: ink-down; }
  .ink--wave.draw, .ink--arrow.draw, .ink--strike.draw { --dur: .7s; }
  .ink--thread.draw { --dur: .6s; }
}
@keyframes ink-ltr { from { clip-path: inset(-30% 100% -30% -30%); } to { clip-path: inset(-30% -30% -30% -30%); } }
@keyframes ink-rtl { from { clip-path: inset(-30% -30% -30% 100%); } to { clip-path: inset(-30% -30% -30% -30%); } }
@keyframes ink-down { from { clip-path: inset(-30% -30% 100% -30%); } to { clip-path: inset(-30% -30% -30% -30%); } }

/* marked words: the stroke is sized by the word it marks */
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark--wave .ink { left: 0; bottom: -.1em; width: 100%; height: .13em; }
.mark--loop .ink { left: -7%; top: -12%; width: 114%; height: 126%; }
.mark--under .ink { left: 0; bottom: -.08em; width: 100%; height: .18em; }

/* =========================================================== header */
.site-header {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--page-pad);
  position: relative; z-index: 5;
}
.brand { display: flex; align-items: flex-end; gap: 6px; margin-right: auto; text-decoration: none; min-height: 44px; }
/* the main logo (Rivera + superscript "BR") is one SVG since 29/09/2026: C:\_RB\RiveraBrazil-Marca\logo */
.brand img { flex: none; width: auto; height: 28px; align-self: center; }
@media (max-width: 22.49em) { .brand img { height: 24px; } }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav a, .menu a { font-size: var(--fs-ui); line-height: 1.3; color: var(--ink); text-decoration: none; display: inline-block; padding: 10px 0; }
.nav a:hover, .menu a:hover { text-decoration: underline; text-decoration-color: var(--pen-stroke); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav a[aria-current], .menu a[aria-current] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--pen-stroke); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: var(--fs-ui);
  min-height: 44px; min-width: 44px; display: flex; align-items: center; padding: 0 var(--s-2);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { text-decoration: underline; text-decoration-color: var(--pen-stroke); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.menu nav {
  position: absolute; right: calc(var(--s-2) * -1); top: calc(100% + 6px); z-index: 10;
  background: var(--sheet); box-shadow: var(--shadow-sheet), 0 0 0 1px var(--rule);
  padding: var(--s-3) var(--s-5) var(--s-4); min-width: 15rem;
}
.menu nav::before { content: ""; position: absolute; left: var(--s-4); top: 0; bottom: 0; width: 1.5px; background: var(--margin-line); opacity: .55; }
.menu ul { list-style: none; }
.menu li a { display: block; padding: 11px 0 11px var(--s-4); }
/* under 360px the sheet hangs from the header, not from the button, so it can't leave the screen */
@media (max-width: 22.49em) {
  .menu { position: static; }
  .menu nav { left: var(--page-pad); right: var(--page-pad); min-width: 0; }
}
@media (min-width: 37.5em) {
  .site-header { gap: var(--s-5); padding-block: var(--s-5); }
  .brand img { height: 34px; }
}
@media (min-width: 75em) {
  .nav { display: block; }
  .menu { display: none; }
}

/* =========================================================== button (the only solid control) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  background: var(--navy); color: #fff; border: 0; border-radius: var(--r-btn);
  font: 600 var(--fs-ui)/1.2 var(--sans); padding: 13px 18px; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 0 var(--gold); transition: box-shadow var(--t-ui) var(--ease-ui);
}
.btn:hover { color: #fff; box-shadow: var(--stamp); text-decoration: none; }
.btn:active { box-shadow: 1px 1px 0 0 var(--gold); }
.btn--head { padding: 12px 14px; }
.btn--head .btn-short::before { content: "Quote"; }   /* CSS text: the link's name stays "Request a quote" */
.btn--head .btn-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 37.5em) {
  .btn--head { padding: 13px 18px; }
  .btn--head .btn-long { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; }
  .btn--head .btn-short { display: none; }
}

/* =========================================================== doors and link-buttons */
.door, .link-button {
  position: relative; display: inline-block; color: var(--navy); text-decoration: none;
  font: 600 var(--fs-ui)/1.3 var(--sans); padding: 10px 0 12px;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.door .ink, .link-button .ink { left: -2px; bottom: 3px; width: calc(100% + 4px); height: 8px; }
.door:hover, .link-button:hover { color: var(--pen); }
.door--gold .ink path { stroke: var(--gold); stroke-width: 3px; }
.door:hover .ink path, .link-button:hover .ink path { stroke-width: 3px; }
@media (max-width: 37.49em) {
  .door .ink, .link-button .ink { display: none; }
  .door, .link-button { text-decoration: underline; text-decoration-color: var(--pen-stroke); text-decoration-thickness: 2px; text-underline-offset: .28em; }
  .door--gold { text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
}

/* =========================================================== notes */
.fn { font-size: var(--fs-fn); line-height: 1.5; color: var(--ink-soft); max-width: 40em; }
.fn-mark { font-family: var(--mono); color: var(--pen); margin-right: .3em; }
.fn-ref { font-family: var(--mono); font-size: .8em; color: var(--pen); text-decoration: none; vertical-align: super; line-height: 0; padding: 0 .12em; }
.fn-ref:hover { text-decoration: underline; }
.fn:target { background: var(--hl-soft); box-shadow: 0 0 0 6px var(--hl-soft); }

.note { font: italic 400 var(--fs-note)/var(--lh-note) var(--serif); position: relative; }
.note--pen { color: var(--pen); padding-left: var(--s-4); border-left: 1.5px solid var(--pen-stroke); max-width: 30rem; }
.note--pen .ink { display: none; }
.note--tn { color: var(--ink); padding-left: var(--s-4); border-left: 1.5px solid var(--rule-strong); max-width: 30rem; }
.note--tn b, .tn b { display: block; font: 600 .8125rem/1.2 var(--sans); color: var(--navy); margin-bottom: .3rem; font-style: normal; }
.note--tn .ink { display: none; }

/* =========================================================== grid and named compositions */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--col-gap); }
@media (min-width: 56.25em) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lay-hero > :first-child { grid-column: 1 / span 8; }
  .lay-hero > .standfirst { grid-column: 9 / span 4; }
  .lay-head > :first-child { grid-column: 1 / span 8; }
  .lay-head > .aside { grid-column: 9 / span 4; padding-top: .6rem; }
  .lay-offset > * { grid-column: 3 / span 7; }
  .lay-margin > .body { grid-column: 1 / span 8; }
  .lay-margin > .margin { grid-column: 10 / span 3; }
  .lay-doors > :first-child { grid-column: 1 / span 7; }
  .lay-doors > :last-child { grid-column: 9 / span 4; margin-top: var(--s-8); }
}

/* =========================================================== page opening */
.hero { padding-top: var(--s-5); }
.standfirst { margin-top: var(--s-5); }
.standfirst p { font-size: var(--fs-lede); line-height: 1.55; color: var(--ink); max-width: 31em; }
.standfirst p + p { margin-top: var(--s-3); }
.standfirst .mono, .standfirst .fn { font-size: var(--fs-meta); line-height: var(--lh-meta); }
.standfirst .fn { font-size: var(--fs-fn); line-height: 1.5; margin-bottom: var(--s-3); }
.doors-inline { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin-top: var(--s-3); }
@media (min-width: 56.25em) {
  .hero { padding-top: var(--s-7); }
  .standfirst { margin-top: 0; padding-top: .55rem; }
}
/* the date stamp of the dated documents (/data-security, /privacy, /privacidade): "Last reviewed" or "Last updated"
   and the version, in mono, inside a double rule */
.stamp {
  position: relative; display: inline-block; padding: 11px 16px 12px;
  font-size: .8125rem; line-height: 1.6; color: var(--navy-light); border: 1.5px solid currentColor;
}
.stamp::before { content: ""; position: absolute; inset: 3px; border: 1px solid currentColor; opacity: .5; pointer-events: none; }
.stamp a { color: inherit; }

/* =========================================================== the annotated line (.line) */
.line { position: relative; margin-top: var(--s-7); }
.line-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; font-size: .875rem; color: var(--ink); }
.line-meta .mono b { color: var(--navy); font-weight: 600; }
.line-pt {
  font: 400 var(--fs-line)/var(--lh-line) var(--serif); letter-spacing: var(--tr-line);
  color: var(--navy); margin-top: .1em;
}
.line-pt .l1, .line-pt .l2 { display: block; }
.line-pt .l2 { font-style: normal; font-weight: 400; color: inherit; padding-left: 6%; margin-top: .06em; }   /* roman even inside an h1 (404) */
.line-foot { margin-top: var(--s-4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.line-en { font: italic 400 var(--fs-line-en)/1.1 var(--serif); color: var(--navy-mid); }
.line-en span { background: linear-gradient(transparent 58%, var(--hl) 58% 92%, transparent 92%); padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.line-clock { color: var(--ink); }
.line + .fn { margin-top: var(--s-4); }
/* the pen may run past the words; on the narrowest screens it must not widen the page */
@media (max-width: 37.49em) { .line { overflow-x: clip; } }
@media (min-width: 37.5em) {
  .line-pt .l2 { padding-left: 17.5%; }
}
@media (min-width: 56.25em) {
  .line-foot { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .line-foot .line-en { grid-column: 1 / span 6; }
  .line-foot .note--tn { grid-column: 8 / span 5; }
  .line-foot .note--pen { grid-column: 1 / span 6; }
  .line-foot .line-clock { grid-column: 8 / span 5; text-align: right; }
}
@media (min-width: 75em) {
  .line .note--float {
    position: absolute; top: 2.6rem; right: 0; width: min(24rem, 29%);
    border: 0; padding: 0; transform: rotate(-1.2deg); transform-origin: 0 0;
  }
  .line .note--float .ink--arrow { display: block; left: -236px; top: 44px; width: 226px; height: 113px; }
  .line-foot .note--tn { border: 0; padding-left: 22px; }
  .line-foot .note--tn::before { content: ""; position: absolute; left: 1.5px; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--pen-stroke); }
  .line-foot .note--tn::after { content: ""; position: absolute; left: 3.25px; top: calc(.5em + 5px); bottom: .3em; width: 1.5px; background: var(--pen-stroke); opacity: .6; }
  .line-foot .note--tn .ink--thread { display: block; left: -58px; top: -64px; width: 62px; height: 66px; }
}

/* =========================================================== divider (pencil, once per page) */
.divider { margin-top: var(--s-8); }
.divider .ink { position: static; width: 100%; height: 20px; }

/* =========================================================== processing sentences */
.proc p { font-size: .96875rem; line-height: 1.6; max-width: 32em; }
.proc p + p { margin-top: .55em; }
.proc code { font-size: .88em; }
.fn--proc .proc p { font-size: inherit; }

/* =========================================================== section heads */
.lay-head .aside { margin-top: var(--s-5); }
@media (min-width: 56.25em) { .lay-head .aside { margin-top: 0; } }

/* =========================================================== the bench */
.bench { position: relative; }
.bench-controls { margin-top: var(--s-6); }

/* state selector, drawn as three words and two pencil arrows */
.stage { display: flex; flex-direction: column; align-items: flex-start; }
.stage legend { font: 600 .875rem/1.3 var(--sans); color: var(--ink); margin-bottom: var(--s-2); float: left; width: 100%; }
.stage-opt { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; cursor: pointer; }
.stage-opt input, .chip input, .tape-tab input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.stage-opt--m span { font: 400 1rem/1 var(--mono); color: var(--ink); }
.stage-opt--r span { font: italic 500 1.3rem/1 var(--serif); color: var(--pen); }
.stage-opt--d span { font: 500 1.25rem/1 var(--serif); color: var(--navy); }
.stage-opt .ink { display: none; left: -2px; top: -2px; width: calc(100% + 4px); height: calc(100% + 4px); }
.stage-opt input:checked ~ .ink { display: block; }
.stage-opt input:focus-visible + span { outline: var(--focus-ring); outline-offset: 8px; border-radius: var(--r-focus); }
.stage-opt:hover span { text-decoration: underline; text-decoration-color: var(--pencil); text-underline-offset: 5px; }
.stage-opt input:checked + span { text-decoration: none; }
.stage > .ink--pencil-arrow { position: static; width: 34px; height: 14px; flex: none; }
/* phones: the three stages flush left in one column, a small pencil arrow down between them */
.stage > .ink--pencil-arrow { width: 20px; height: 9px; margin: -6px 0 -6px 16px; transform: rotate(90deg); }
@media (min-width: 37.5em) {
  .stage { flex-direction: row; flex-wrap: wrap; gap: 0 4px; }
  .stage > .ink--pencil-arrow { width: 34px; height: 14px; margin: 0; transform: none; align-self: center; }
}

/* the sheet */
.sheet {
  --sheet-pad: clamp(16px, 3vw, 44px);
  position: relative; background: var(--sheet); box-shadow: var(--shadow-sheet);
  margin: var(--s-3) calc(var(--gut) * -1) 0;
  padding: clamp(18px, 3vw, 40px) var(--sheet-pad) clamp(20px, 3vw, 36px);
  overflow-x: clip;
}
@media (min-width: 37.5em) { .sheet { margin-inline: var(--sheet-bleed); } }
@media (min-width: 56.25em) {
  .sheet::before { /* margin rule, as on a legal pad */
    content: ""; position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--margin-line); opacity: .55;
    left: calc(var(--sheet-pad) + var(--meta-col) + var(--col-gap) / 2);
  }
}
.sheet-top { position: relative; z-index: 1; background: inherit; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px var(--s-5); padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule); font-size: .8125rem; }
.sheet-key { font-size: .75rem; color: var(--ink); }

/* player: lanes + reserved control slot */
.player { padding: var(--s-4) 0 var(--s-4); border-bottom: 1px solid var(--rule); }
.lanes { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); column-gap: 12px; align-items: start; }
.lane-names { list-style: none; }
.lane-name { height: 28px; font: 600 .875rem/24px var(--sans); color: var(--navy); white-space: nowrap; cursor: default; }
.lane-names--6 .lane-name { height: 22px; font-size: .8125rem; line-height: 20px; }
.lane-name del { display: none; }
.lane-track { position: relative; }
.lane-svg { overflow: visible; }
.lane-rule { stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 1 3; }
.seg { cursor: pointer; transition: opacity var(--t-ui) var(--ease-ui); }
.seg-fill { fill: currentColor; }
.seg--m { display: none; }
.seg-mbox { fill: none; stroke: var(--pencil); stroke-width: 1.2; stroke-dasharray: 3 2.5; }
.seg-strike path { fill: none; stroke: var(--pen-stroke); stroke-width: 2.2px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.inaud-bg { fill: var(--sheet); }
.tick { font: 400 11px var(--mono); fill: var(--ink); }
@media (max-width: 22.49em) { .tick--q { display: none; } }
/* the key: pen italic under the track; the parts are switched on by the bench states below */
.lane-key { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0 var(--s-4); margin-top: 2px; font: italic 400 .875rem/1.4 var(--serif); color: var(--pen); }
.lane-key :is(.k-m, .k-f) { display: none; }
.lane-key:not(:has(.k-i)) { display: none; }
.v-int, .v-m { color: var(--v-int); }
.v-p1, .v-r1 { color: var(--v-p1); }
.v-r2 { color: var(--v-r2); }
.v-r3 { color: var(--v-r3); }
.v-r4 { color: var(--v-r4); }
.v-r5 { color: var(--v-r5); }
.is-dim { opacity: .38; }
.player-ctl { min-height: 44px; margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }
.player-note { font-size: .8125rem; color: var(--ink); flex: 1 1 16rem; }
/* Play is said in the reviewer's voice, not drawn as a box: the gold cursor and the lit turn carry the motion */
.play {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 6px 0 0;
  font: italic 500 1.1875rem/1.1 var(--serif); color: var(--pen); background: none;
  border: 0; cursor: pointer; white-space: nowrap;
}
.play svg { flex: none; width: 12px; height: 12px; fill: currentColor; }
.play:hover span { text-decoration: underline; text-decoration-color: var(--pen-stroke); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.play[aria-pressed="true"] { color: var(--navy); }
.clock { font: 600 .875rem/1 var(--mono); color: var(--navy); margin-left: auto; min-width: 6.2em; text-align: right; }
/* the range doubles as the cursor: a gold 2px rule with a round head */
.scrub { position: absolute; left: -6px; top: -8px; width: calc(100% + 12px); height: var(--track-h, 60px); margin: 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; }
.scrub:focus { outline: none; }
.scrub:focus-visible { outline: var(--focus-ring); outline-offset: 4px; }
.scrub::-webkit-slider-runnable-track { background: transparent; height: var(--track-h, 60px); }
.scrub::-moz-range-track { background: transparent; height: var(--track-h, 60px); }
.scrub::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: ew-resize;
  width: 12px; height: var(--track-h, 60px); border: 0; border-radius: 0;
  background: radial-gradient(circle at 50% 5px, var(--gold) 4.5px, transparent 5px), linear-gradient(90deg, transparent 5px, var(--gold) 5px 7px, transparent 7px);
}
.scrub::-moz-range-thumb {
  pointer-events: auto; cursor: ew-resize; width: 12px; height: var(--track-h, 60px); border: 0; border-radius: 0;
  background: radial-gradient(circle at 50% 5px, var(--gold) 4.5px, transparent 5px), linear-gradient(90deg, transparent 5px, var(--gold) 5px 7px, transparent 7px);
}
@media (min-width: 56.25em) {
  .lanes { grid-template-columns: var(--meta-col) minmax(0, 1fr); column-gap: var(--col-gap); }
  /* Play, the note and the clock sit in the text column, clear of the gold margin rule (with or without JS) */
  .player-ctl { padding-left: calc(var(--meta-col) + var(--col-gap)); }
}

/* turns */
.turns { list-style: none; }
.turn { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 6px; padding-block: var(--s-5); scroll-margin-top: var(--s-6); }
.turn + .turn { border-top: 1px solid var(--rule); }
.turn-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.ts { display: inline-block; padding-block: 4px; font: 400 .8125rem/1.3 var(--mono); color: var(--navy-light); text-decoration: none; }
.ts:hover { color: var(--pen); text-decoration: underline; }
.ts .m { display: none; }
.lab { font: 600 .875rem/1.2 var(--sans); color: var(--navy); cursor: default; }
.pt, .en { font-size: var(--fs-body); line-height: 1.6; max-width: 40em; }
.en { color: var(--navy-mid); }
.side { display: grid; gap: var(--s-3); align-content: start; }
.rv, .signoff, .split { display: none; }
.rv { font: italic 400 1rem/1.4 var(--serif); color: var(--pen); }
.rv .mono { font-size: .8125em; font-style: normal; }
.tn { position: relative; font: italic 400 .96875rem/1.45 var(--serif); color: var(--ink); padding-left: 14px; border-left: 1.5px solid var(--pen-stroke); }
.tn::before { content: ""; position: absolute; left: -3.25px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--pen-stroke); }
.fix { position: relative; }
.fix del { display: none; }
.pair { text-decoration: underline dotted var(--gold) 1.5px; text-underline-offset: .22em; }
.pair.is-lit, .tn.is-lit { background: var(--hl-soft); box-shadow: 0 0 0 2px var(--hl-soft); text-decoration-color: transparent; }
.circ { position: relative; white-space: nowrap; }
.circ .ink { display: none; left: -8px; top: -3px; width: calc(100% + 16px); height: calc(100% + 6px); }
.v-verb, .as-code, .fmt-say--deid { display: none; }
/* US/UK spellings and the sheet's style word: both variants are in the page and PHP puts [hidden] on the
   inactive one (from the URL); the radios switch them inside @supports below (author display beats [hidden]) */
/* below lg the English follows the Portuguese in the same type: a hairline and a small EN tell them apart */
.pt + .en { padding-left: 12px; border-left: 1.5px solid var(--rule-strong); }
.pt + .en::before { content: "EN" / ""; display: block; font: 600 .6875rem/1.5 var(--mono); color: var(--ink-soft); }
@media (min-width: 64em) {
  .pt + .en { padding-left: 0; border-left: 0; }
  .pt + .en::before { display: none; }
}
.tag { font: 400 .8125rem/1 var(--mono); color: var(--navy-light); }
.split { font: italic 500 1rem/1 var(--serif); color: var(--pen); white-space: nowrap; }
.split::before { content: "// "; font: 600 .875rem/1 var(--sans); color: var(--pen); }
.turn.is-active .pt, .turn.is-active .en { background: var(--hl-soft); box-shadow: 0 0 0 4px var(--hl-soft); }
.turn.is-active .ts { color: var(--ink); font-weight: 600; }
.turn.is-active::before { content: ""; position: absolute; left: calc(var(--sheet-pad) * -1 + 4px); top: calc(var(--s-5) + 2px); width: 3px; height: 14px; background: var(--gold); }
.signoff { margin-top: var(--s-4); font: italic 400 1.0625rem/1.45 var(--serif); color: var(--pen); transform: rotate(-.8deg); transform-origin: 0 50%; max-width: 40em; }
@media (min-width: 56.25em) {
  .turn { grid-template-columns: var(--meta-col) minmax(0, 1fr); column-gap: var(--col-gap); }
  .turn-meta { grid-column: 1; grid-row: 1 / span 3; flex-direction: column; gap: 6px; align-self: start; }
  .pt, .en, .side { grid-column: 2; }
  .signoff { margin-left: calc(var(--meta-col) + var(--col-gap)); }
}
@media (min-width: 64em) {
  .turn { grid-template-columns: var(--meta-col) minmax(0, 1fr) minmax(0, 1fr) var(--note-col); }
  .turn-meta { grid-row: 1; }
  .pt { grid-column: 2; grid-row: 1; }
  .en { grid-column: 3; grid-row: 1; }
  .side { grid-column: 4; grid-row: 1; }
}

.bench-foot { margin-top: var(--s-4); display: grid; gap: var(--s-4); }
.caption { font-size: var(--fs-fn); }
@media (min-width: 56.25em) {
  .bench-foot { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .bench-foot .caption { grid-column: 1 / span 6; }
  .bench-foot .fmt { grid-column: 8 / span 5; justify-self: end; }
  .bench-foot .tape-more { grid-column: 8 / span 5; }
}

/* The format panel: a GET form that also drives the sheet. It reads as a line of the sheet's own header,
   "Show Portuguese · side by side · English", and the pen rings the chosen word (round 2: no toolbar). */
.fmt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-5); }
.fmt-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.fmt-group legend { float: left; font: 400 .75rem/1.2 var(--mono); color: var(--ink-soft); margin-right: 6px; padding: 0; }
.opt { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px; cursor: pointer; font: 400 .9375rem/1.2 var(--sans); color: var(--ink); white-space: nowrap; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opt + .opt::before { content: "·"; position: absolute; left: -8px; color: var(--ink-soft); }
.opt .ink { display: none; left: 0; top: 7px; width: 100%; height: calc(100% - 14px); }
.opt input:checked + span { color: var(--navy); font-weight: 600; }
.opt input:checked ~ .ink { display: block; }
.opt:hover span { text-decoration: underline; text-decoration-color: var(--pencil); text-underline-offset: 5px; }
.opt input:checked + span { text-decoration: none; }
.opt input:focus-visible + span { outline: var(--focus-ring); outline-offset: 6px; border-radius: var(--r-focus); }
.fmt-notes { flex-basis: 100%; display: grid; gap: 2px; margin-top: 2px; }
@media (forced-colors: active) { .opt input:checked + span { text-decoration: underline; } }
/* the contact form keeps real chips: a row of paper cells */
.chips { display: inline-flex; flex-wrap: wrap; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule-strong); border-radius: var(--r-btn); padding: 2px; }
.chip { position: relative; cursor: pointer; }
.chip + .chip { box-shadow: -1px 0 0 0 var(--rule-strong); }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 10px; font: 400 .8125rem/1.15 var(--sans); border-radius: 2px; color: var(--ink); }
/* each option shows it can be chosen: a small open ring, filled when chosen */
.chip span::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--navy-light); }
.chip:hover span { background: var(--paper); }
.chip input:checked + span { background: var(--navy); color: #fff; font-weight: 600; }
.chip input:checked + span::before { background: #fff; box-shadow: none; }
@media (min-width: 56.25em) { .chip span { min-height: 40px; } }
.chip input:focus-visible + span { outline: var(--focus-ring); outline-offset: 2px; }
.fmt-say { font-size: .8125rem; line-height: 1.45; color: var(--ink-soft); max-width: 40em; }
/* phones: whole cells in a grid, so a wrapped row keeps its edges */
@media (max-width: 37.49em) {
  /* wrapping flex, cells grow: a short last row fills its width instead of leaving a grey hole */
  .chips { display: flex; flex-wrap: wrap; gap: 1px; padding: 1px; background: var(--rule-strong); box-shadow: none; }
  .chip { display: flex; flex: 1 1 7.5rem; }
  .chip + .chip { box-shadow: none; }
  .chip span { flex: 1; background: var(--sheet); border-radius: 0; }
}

/* tapes (folder tabs, /samples) */
.tapes { display: none; }
.tape-h { font-size: var(--fs-h3); margin-top: var(--s-7); }

@supports selector(:has(*)) {
  .tapes { display: flex; gap: 4px; margin-bottom: var(--s-5); }
  .tape-tab { position: relative; cursor: pointer; }
  .tape-tab > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); font: 600 .875rem/1 var(--sans); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-strong); border-radius: var(--r-btn) var(--r-btn) 0 0; }
  .tape-tab input:checked + span { background: var(--sheet); box-shadow: 0 -2px 0 0 var(--gold) inset, inset 0 0 0 1px var(--rule-strong); }
  .tape-tab input:focus-visible + span { outline: var(--focus-ring); outline-offset: 2px; }
  .bench:has(#tape-int:checked) .tape--fg, .bench:has(#tape-fg:checked) .tape--int { display: none; }
  .bench:has(#tape-int) .tape-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

  /* ---------- machine_draft ---------- */
  .bench:has(#st-m:checked) .sheet { background: var(--sheet-machine); font-family: var(--mono); }
  .bench:has(#st-m:checked) .sheet::before { opacity: .15; }
  .bench:has(#st-m:checked) .pt { font: 400 .9375rem/1.7 var(--mono); }
  .bench:has(#st-m:checked) :is(.en, .tn, .rv, .tag, .bench-foot .fmt) { display: none; }
  .bench:has(#st-m:checked) .fix del { display: inline; }
  .bench:has(#st-m:checked) .fix ins { display: none; }
  .bench:has(#st-m:checked) .v-verb { display: inline; }
  .bench:has(#st-m:checked) .ts .m { display: inline; }
  .bench:has(#st-m:checked) .ts .r { display: none; }
  .bench:has(#st-m:checked) .ts { font-size: .75rem; color: var(--ink); }
  .bench:has(#st-m:checked) .lab { font: 400 .8125rem/1.2 var(--mono); color: var(--ink); }
  .bench:has(#st-m:checked) .pair { text-decoration: none; }
  .bench:has(#st-m:checked) .turn--merged-2 { padding-top: 0; border-top: 0; }
  .bench:has(#st-m:checked) .turn--merged-2 .turn-meta { visibility: hidden; }
  .bench:has(#st-m:checked) .turn--merged-1 { padding-bottom: 0; }
  .bench:has(#st-m:checked) .lane-name { font: 400 .8125rem/24px var(--mono); color: var(--ink); }
  .bench:has(#st-m:checked) .lane-names--6 .lane-name { font-size: .75rem; line-height: 20px; }
  .bench:has(#st-m:checked) .lane-name del { display: inline; }
  .bench:has(#st-m:checked) .lane-name ins { display: none; }
  .bench:has(#st-m:checked) .seg--fixed { display: none; }
  .bench:has(#st-m:checked) .seg-fill { fill: var(--struck); }
  .bench:has(#st-m:checked) .seg--m { display: inline; }
  .bench:has(#st-m:checked) .seg-mbox { fill: var(--struck); stroke: none; }
  .bench:has(#st-m:checked) :is(.seg-strike, .seg-inaudible, .lane-key) { display: none; }

  /* ---------- the reviewer's pass (also a still .sheet--pass outside a bench: /qualitative-research) ---------- */
  :is(.bench:has(#st-r:checked), .sheet--pass) :is(.en, .tn, .bench-foot .fmt) { display: none; }
  :is(.bench:has(#st-r:checked), .sheet--pass) :is(.rv, .signoff) { display: block; }
  :is(.bench:has(#st-r:checked), .sheet--pass) .pt { line-height: 2.55; max-width: 46em; }
  :is(.bench:has(#st-r:checked), .sheet--pass) .fix del { display: inline; color: var(--struck); text-decoration: line-through; text-decoration-color: var(--pen-stroke); text-decoration-thickness: 2px; }
  :is(.bench:has(#st-r:checked), .sheet--pass) .pt .fix ins {
    position: absolute; left: 50%; bottom: 1.2em; transform: translateX(-50%) rotate(-2deg);
    font: italic 500 1.0625rem/1 var(--serif); color: var(--pen); white-space: nowrap;
  }
  :is(.bench:has(#st-r:checked), .sheet--pass) .pt .fix ins::after { content: "‸"; position: absolute; left: 50%; top: .9em; font: 400 .875rem/1 var(--sans); color: var(--pen); transform: translateX(-50%); }
  :is(.bench:has(#st-r:checked), .sheet--pass) .lab .fix { display: inline-flex; flex-direction: column-reverse; gap: 2px; }
  :is(.bench:has(#st-r:checked), .sheet--pass) .lab .fix del { font: 400 .6875rem/1.2 var(--mono); }
  :is(.bench:has(#st-r:checked), .sheet--pass) .lab .fix ins { font: italic 500 1.0625rem/1.1 var(--serif); color: var(--pen); }
  :is(.bench:has(#st-r:checked), .sheet--pass) .circ .ink { display: block; }
  :is(.bench:has(#st-r:checked), .sheet--pass) .circ { margin-inline: .22em; }   /* room for the loop, clear of the words beside it */
  :is(.bench:has(#st-r:checked), .sheet--pass) .pair { text-decoration: none; }
  :is(.bench:has(#st-r:checked), .sheet--pass) .split { display: inline; }
  :is(.bench:has(#st-r:checked), .sheet--pass) .turn--merged-2 :is(.ts, .lab) { font: italic 500 1rem/1.2 var(--serif); color: var(--pen); }
  :is(.bench:has(#st-r:checked), .sheet--pass) .lane-name del { display: inline; font: 400 .6875rem/1 var(--mono); color: var(--struck); text-decoration: line-through; text-decoration-color: var(--pen-stroke); text-decoration-thickness: 1.5px; margin-right: 6px; }
  :is(.bench:has(#st-r:checked), .sheet--pass) .lane-name ins { font: italic 500 1rem/1 var(--serif); color: var(--pen); }
  :is(.bench:has(#st-r:checked), .sheet--pass) .seg--m { display: inline; }
  :is(.bench:has(#st-r:checked), .sheet--pass) .seg--fixed .seg-fill { fill: transparent; stroke: var(--pen); stroke-width: 1.5; }
  :is(.bench:has(#st-r:checked), .sheet--pass) .lane-key { display: flex; }
  :is(.bench:has(#st-r:checked), .sheet--pass) .lane-key :is(.k-m, .k-f) { display: inline; }

  /* ---------- what you receive: the format panel ---------- */
  .bench:has(#st-d:checked):has(#o-pt:checked) .en,
  .bench:has(#st-d:checked):has(#o-en:checked) .pt { display: none; }
  .bench:has(#s-vb:checked):not(:has(#st-m:checked)) .v-verb { display: inline; background: var(--hl-soft); }
  .bench:has(#n-id:checked) .as-spoken { display: none; }
  .bench:has(#n-id:checked) :is(.as-code, .fmt-say--deid) { display: inline; }
  .bench:has(#n-id:checked) .fmt-say--deid { display: block; }
  .bench:has(#n-id:checked) .deid .as-code { font: 400 .875em/1 var(--mono); }
  .bench:has(#sp-uk:checked) .sp-us, .bench:has(#sp-us:checked) .sp-uk { display: none; }
  .bench:has(#sp-uk:checked) .sp-uk, .bench:has(#sp-us:checked) .sp-us { display: inline; }
  .bench:has(#s-vb:checked) .ctx-clean, .bench:has(#s-cl:checked) .ctx-verb { display: none; }
  .bench:has(#s-vb:checked) .ctx-verb, .bench:has(#s-cl:checked) .ctx-clean { display: inline; }
  /* a Portuguese-only delivery carries no English translator's notes */
  .bench:has(#st-d:checked):has(#o-pt:checked) .tn { display: none; }
  .bench:has(#st-d:checked):has(#o-en:checked) .pt + .en { padding-left: 0; border-left: 0; }
  .bench:has(#st-d:checked):has(#o-en:checked) .pt + .en::before { display: none; }
}
@media (max-width: 56.24em) {
  /* no room for the struck machine code beside the lane name on phones */
  @supports selector(:has(*)) {
    :is(.bench:has(#st-r:checked), .sheet--pass) .lane-name del { display: none; }
  }
  .lanes { grid-template-columns: 5.6rem minmax(0, 1fr); }
}
@media (min-width: 64em) {
  @supports selector(:has(*)) {
    .bench:has(#st-m:checked) .pt, :is(.bench:has(#st-r:checked), .sheet--pass) .pt { grid-column: 2 / span 2; }
    .bench:has(#st-d:checked):has(#o-pt:checked) .pt { grid-column: 2 / span 2; }
    .bench:has(#st-d:checked):has(#o-en:checked) .en { grid-column: 2 / span 2; }
  }
}
@supports not selector(:has(*)) {
  .stage, .tapes { display: none; }
}

/* =========================================================== credits (Playfair prose) */
.credits p { font: 400 var(--fs-voice)/1.45 var(--serif); color: var(--navy); max-width: var(--measure-voice); }
.credits p + p { margin-top: .75em; }
.credits .pen-line { font-style: italic; color: var(--pen); }
.credits a { text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.credits a:hover { text-decoration-color: var(--pen-stroke); }

/* =========================================================== audience doors */
.doors a { display: block; text-decoration: none; color: var(--navy); padding-block: var(--s-3); }
.door-title { display: block; font-family: var(--serif); color: var(--navy); }
.door-a .door-title { font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.05; letter-spacing: var(--tr-h2); }
.door-b .door-title { font-style: italic; font-weight: 400; font-size: var(--fs-h3); line-height: 1.25; color: var(--navy-mid); }
.door-line { display: block; margin-top: var(--s-3); font-size: var(--fs-body); color: var(--ink); max-width: 30em; }
.door-go { display: inline-block; margin-top: var(--s-3); font: 600 var(--fs-ui)/1.3 var(--sans); color: var(--navy); position: relative; padding: 4px 0 10px; }
.door-go .ink { left: -2px; bottom: 2px; width: calc(100% + 4px); height: 8px; }
.doors a:hover .door-title { text-decoration: underline; text-decoration-color: var(--pen-stroke); text-decoration-thickness: 2px; text-underline-offset: .14em; }
.doors a:hover .door-go { color: var(--pen); }
.doors .door-b { margin-top: var(--s-6); }
@media (max-width: 37.49em) {
  .door-go .ink { display: none; }
  .door-go { text-decoration: underline; text-decoration-color: var(--pen-stroke); text-decoration-thickness: 2px; text-underline-offset: .28em; }
}
@media (min-width: 56.25em) { .doors .door-b { margin-top: var(--s-9); } }

/* =========================================================== delivery folder + report */
/* the folder: a flat file listing under a navy tab (no paper, no shadow: only the transcript is a sheet) */
.folder {
  position: relative; border-top: 2px solid var(--navy-light);
  padding: var(--s-2) 0 0; margin-top: calc(var(--s-6) + 26px);
}
.folder::before { /* the tab */
  content: ""; position: absolute; left: 0; bottom: 100%; width: min(15rem, 60%); height: 26px; background: var(--navy-light);
  clip-path: polygon(0 100%, 0 0, calc(100% - 16px) 0, 100% 100%);
}
.folder-name { position: absolute; left: var(--s-3); bottom: calc(100% + 5px); z-index: 1; font-size: .75rem; color: #fff; }
.folder ul { list-style: none; }
.folder li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px var(--s-5); padding-block: var(--s-3); border-bottom: 1px dotted var(--rule-strong); }
.folder code { font-size: .875rem; color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.folder li span { font-size: .9375rem; line-height: 1.5; }
@media (min-width: 37.5em) {
  .folder li { grid-template-columns: 15.5rem minmax(0, 1fr); }
  .folder li > .note--pen { grid-column: 2; }
}

/* the delivery report: a document (Inter), not a table; the pen marks two phrases and says why in the margin */
.report {
  position: relative; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px var(--rule-strong);
  padding: var(--s-5) var(--s-5) var(--s-5) calc(var(--s-5) + 6px); font-size: .96875rem; line-height: 1.65;
}
.report-h { font-size: .8125rem; font-weight: 600; color: var(--navy); }
.report-sub { margin: 2px 0 var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule); font-size: .875rem; color: var(--ink-soft); }
.report > p + p { margin-top: var(--s-3); }
.report .mono { font-size: .875em; }
.report .fn { margin-top: var(--s-5); }
.rp-mark { text-decoration: underline; text-decoration-color: var(--pen-stroke); text-decoration-thickness: 1.5px; text-underline-offset: .3em; }
/* a margin note: under its phrase on small screens; from xl in the gutter at the phrase's line, on a pen thread */
.note--pen.rp-pen, .note--pen.folder-pen { display: block; width: fit-content; margin: var(--s-2) 0 var(--s-1); border: 0; padding: 0; font-size: 1rem; transform: rotate(-1.5deg); transform-origin: 0 50%; }
@media (min-width: 75em) {
  .note--pen.rp-pen, .note--pen.folder-pen {
    position: absolute; left: -9.2rem; width: 7rem; margin: -.15em 0 0; text-align: right;
    line-height: 1.25; transform: rotate(-2deg); transform-origin: 100% 50%;
  }
  /* the folder note hangs from the folder's edge at the first row (static top), the report's at its phrase */
  .note--pen.folder-pen { --thread: calc(2.2rem + 2 * var(--s-5) - 8px); left: calc(-9.2rem - var(--s-5)); margin-top: calc(var(--s-3) - .15em); }
  .note--pen.rp-pen { --thread: calc(2.2rem + var(--s-5) - 2px); margin-top: -1.55rem; }   /* up to the phrase's last line */
  .note--pen:is(.rp-pen, .folder-pen)::after {
    content: ""; position: absolute; left: calc(100% + 8px); top: .7em; height: 1.5px;
    width: var(--thread); background: var(--pen-stroke); transform: rotate(2deg); transform-origin: 0 50%;
  }
  .note--pen:is(.rp-pen, .folder-pen)::before {
    content: ""; position: absolute; left: calc(100% + 8px + var(--thread) - 2px); top: calc(.7em - 1px);
    width: 5px; height: 5px; border-radius: 50%; background: var(--pen-stroke);
  }
}

/* =========================================================== the mini-form (a sentence with blanks) */
/* No card (round 2): the sentence sits on the paper. Variants: --open (home: large, bare), --ruler (academic:
   inside the study ruler), --note (market: a pen note under the debrief prose), --row (translation: a row of a
   sheet, the reader's turn). The default keeps a gold margin rule. */
.miniform { position: relative; padding-left: var(--s-5); }
.miniform::before { content: ""; position: absolute; top: .3em; bottom: .3em; left: 0; width: 1.5px; background: var(--margin-line); opacity: .7; }
.miniform-line { font: 400 clamp(1.4rem, 2.4vw, 2.05rem)/1.7 var(--serif); color: var(--navy); }
.miniform--open { padding-left: 0; }
.miniform--open::before, .miniform--ruler::before, .miniform--row::before { display: none; }
.miniform--open .miniform-line { font-size: clamp(1.75rem, 4.2vw, 3.6rem); line-height: 1.45; letter-spacing: -.01em; max-width: 22em; }
.miniform--ruler { padding-left: 0; }
.miniform--ruler .miniform-line { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.75; max-width: 30em; }
.miniform--note::before { background: var(--pen-stroke); opacity: 1; }
.miniform--note .miniform-line { font-style: italic; color: var(--pen); }
.miniform--note .blank input { color: var(--navy); font-style: normal; }
.blank input {
  width: 3.2ch; min-width: 2.6em; text-align: center; font: italic 500 1em/1.1 var(--serif); color: var(--pen);
  border: 0; border-bottom: 1.5px solid var(--navy-light); border-radius: 0; background: transparent; padding: 0 .1em;
  -moz-appearance: textfield; appearance: textfield;
}
.blank input::-webkit-outer-spin-button, .blank input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.blank input:focus-visible { outline: var(--focus-ring); outline-offset: 4px; border-bottom-color: var(--pen); }
.inline-radios { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin-top: var(--s-3); }
.inline-radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: var(--fs-ui); }
.inline-radios input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.miniform-act { margin-top: var(--s-4); }
.miniform-alt { margin-top: var(--s-3); font-size: .875rem; color: var(--ink-soft); }
.mf-hours { margin-top: var(--s-2); font: italic 400 var(--fs-note)/1.4 var(--serif); color: var(--pen); transform: rotate(-1deg); transform-origin: 0 50%; }
.blank--date { position: relative; display: inline-block; }
.blank--date input { width: 8.6em; text-align: left; }
.blank--date input::placeholder { color: var(--struck); opacity: 1; font-weight: 400; }

/* =========================================================== colophon (the only fixed navy) */
.colophon {
  background: var(--navy); color: var(--on-navy); margin-top: var(--s-10);
  padding: var(--s-8) var(--page-pad) var(--s-7);
  display: grid; gap: var(--s-6); font-size: .9375rem;
}
.colophon a { color: var(--on-navy); text-decoration-color: var(--green-light); }
.colophon a:hover { text-decoration-thickness: 2px; }
.colophon :focus-visible { outline-color: var(--green-light); }
.colophon-name { font: 500 1.5rem/1.2 var(--serif); }
.colophon-name span { color: var(--on-navy-soft); font-weight: 400; }
.colophon-voice { margin-top: var(--s-4); font: 400 clamp(1.125rem, 1.5vw, 1.3rem)/1.5 var(--serif); max-width: 32em; }
.colophon-voice i { font-style: italic; }
.colophon .legal { margin-top: var(--s-5); font-size: .8125rem; line-height: 1.6; color: var(--on-navy-soft); max-width: 50em; }
.colophon .legal .mono { font-size: 1em; }
.colophon-side { display: grid; gap: var(--s-3); align-content: start; }
.colophon-mail { font-weight: 600; }
.colophon-clock { color: var(--on-navy-soft); }
.colophon-nav { list-style: none; columns: 2 11rem; column-gap: var(--s-5); margin-top: var(--s-2); }
.colophon-nav a { display: inline-block; padding: 6px 0; text-decoration-color: rgba(0, 204, 119, .55); }
.colophon-nav a[aria-current] { text-decoration-color: var(--green-light); text-decoration-thickness: 2px; }
.colophon-promise { font-size: .8125rem; color: var(--on-navy-soft); }
.print-line { display: none; }
@media (min-width: 56.25em) {
  .colophon { grid-template-columns: 1.6fr 1fr; column-gap: var(--s-8); }
}

/* =========================================================== contact form fields (§10.20; F3 extends) */
.field { display: grid; gap: 4px; margin-top: var(--s-4); max-width: 34rem; }
.field label { font: 600 var(--fs-ui)/1.3 var(--sans); }
.req { font-weight: 400; color: var(--ink-soft); margin-left: .3em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; border: 0; border-bottom: 1.5px solid var(--navy-light); border-radius: 0;
  background: transparent; padding: 8px 2px; font-size: var(--fs-body); color: var(--ink);
}
.field textarea { border: 1.5px solid var(--rule-strong); border-bottom-color: var(--navy-light); padding: 10px; resize: vertical; line-height: 1.5; }
.field :is(input, select, textarea):focus-visible { outline: var(--focus-ring); outline-offset: 2px; border-bottom-color: var(--pen); }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.field-hint { font-size: .875rem; color: var(--ink-soft); }
.field-error { font-size: .875rem; font-weight: 600; color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { font-weight: 600; padding: var(--s-2) 0 var(--s-2) var(--s-4); border-left: 3px solid var(--pen-stroke); margin-bottom: var(--s-5); max-width: 40em; }
.alert--ok { border-left-color: var(--pen-stroke); color: var(--navy); }
.alert--err { border-left-color: var(--error); }
.alert ul { list-style: none; margin-top: var(--s-2); font-weight: 400; }

/* =========================================================== the study on a pencil ruler .study (§10.14; academic)
   Dotted until the first recording (00:00:00), drawn through after it. Each stage is a .phase.grid.lay-margin:
   .body (H3 + text) and .margin (its links, from xl in columns 9 to 12). */
.study-lede { margin-top: var(--s-4); font-size: var(--fs-lede); line-height: 1.55; max-width: 30em; }
.phases { --rx: 4px; --to-ruler: calc(var(--s-6) - 4px); --dots: repeating-linear-gradient(var(--pencil) 0 2px, transparent 2px 6px); }
.phase { position: relative; padding: 0 0 var(--s-6) var(--s-6); --tick: calc(var(--fs-h3) * .62); }
:is(.phase, .phase-cep)::before, .phase::after { content: ""; position: absolute; background: var(--pencil); }
.phase::before { left: var(--rx); top: 0; bottom: 0; width: 1.4px; }
.phase::after { left: calc(var(--rx) - 7px); top: var(--tick); width: 15px; height: 1.4px; }
.phase--grant::before { top: var(--tick); background: var(--dots); }
.phase--ethics::before { background: var(--dots); }
.phase--field::before { background: linear-gradient(var(--pencil), var(--pencil)) 0 var(--tick) / 100% 100% no-repeat, var(--dots) 0 0 / 100% var(--tick) no-repeat; }
.phase .body { position: relative; }
.phase .body p { margin-top: var(--s-3); max-width: 34em; }
.phase--ethics { --fs-ethics: clamp(1.45rem, 2vw, 1.9rem); --tick: calc(var(--fs-ethics) * .6); }
.phase--ethics h3 { font-size: var(--fs-ethics); line-height: 1.12; }
.phase--ethics .body p { font-size: var(--fs-lede); max-width: 36em; }
.phase--field { --tick: .45rem; }
.phase-cep { position: relative; }
.phase-cep::before { left: calc(-1 * var(--to-ruler) - 4px); top: .8em; width: 9px; height: 1.4px; }
.zero { display: block; margin-bottom: var(--s-2); font-size: var(--fs-tick); line-height: 1; }
.phase .margin { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin-top: var(--s-2); }
.phase.phase--paper { padding-bottom: 0; }
@media (min-width: 56.25em) {
  .phases { --rx: calc((100% - 11 * var(--col-gap)) / 12); --to-ruler: var(--col-gap); }
  .phase { padding: 0 0 var(--s-7); }
  .phase > :is(.body, .margin) { grid-column: 2 / span 7; }
  .phase--field { --tick: calc(var(--fs-h3) * .62); }
  .zero { position: absolute; right: calc(100% + var(--col-gap) + 12px); top: calc(var(--tick) - .5em); margin: 0; }
}
@media (min-width: 75em) {
  .phase > .margin { grid-column: 9 / span 4; grid-row: 1; flex-direction: column; align-items: flex-start; margin-top: 0; padding-top: calc(var(--tick) - 1.1rem); }
}

/* =========================================================== glossary .glossary (§10.16)
   A run-in dictionary: the term in Playfair, the gloss on the same line, hanging indent, two newspaper columns. */
.glossary { column-gap: var(--s-7); }
.glossary > div { break-inside: avoid; padding: 0 0 var(--s-3) 1.1em; text-indent: -1.1em; }
.glossary dt { display: inline; margin-right: .3em; font: 500 1.25rem/1.3 var(--serif); color: var(--navy); scroll-margin-top: var(--s-6); }
.glossary dd { display: inline; margin: 0; font-size: .96875rem; line-height: 1.6; }
.glossary dt:target { background: var(--hl-soft); box-shadow: 0 0 0 4px var(--hl-soft); }
@media (min-width: 56.25em) { .glossary { columns: 2; } }

/* =========================================================== crosstalk line .xt (§10.3; market)
   R2 talks over R4, so her line rises into his. The brace is ink('brace'). */
.xt-pt { --xt: clamp(2.3rem, 6vw, 5.6rem); font-size: var(--xt); }
.xt-a, .xt-b { display: block; }
.xt-b { color: var(--navy-light); margin-top: -.02em; padding-left: 8%; }
.xt-who { display: inline-block; vertical-align: top; margin-top: calc(var(--xt) * .19); font: 600 .8125rem/1 var(--mono); color: inherit; }
.xt-en { margin-top: var(--s-4); }
.xt-en--b { margin-top: .12em; padding-left: 8%; color: var(--navy-light); }
.xt-brace { display: none; }
.xt-note { margin-top: var(--s-4); }
.ink--brace { left: 0; top: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .ink--brace.draw { clip-path: inset(-30% -30% 100% -30%); animation-name: ink-down; --dur: .8s; }
}
@media (min-width: 37.5em) { .xt-b { margin-top: -.11em; padding-left: 1.6em; } .xt-en--b { padding-left: 2.6em; } }
@media (min-width: 56.25em) {
  .xt { display: grid; grid-template-columns: minmax(0, max-content) 1.7rem minmax(9rem, 1fr); column-gap: var(--s-4); align-items: center; }
  .xt > * { grid-column: 1; }
  .xt-w { display: block; position: relative; }
  .xt-who { position: absolute; right: 100%; margin-right: .6rem; }
  .xt-brace { display: block; position: relative; grid-column: 2; grid-row: 1; align-self: stretch; margin: .2em 0 .02em; }
  .xt .xt-note { grid-column: 3; grid-row: 1; max-width: 17rem; margin: 0 0 .5em; border: 0; padding: 0; transform: rotate(-1.4deg); }
}

/* =========================================================== slips .slips (§10.15; market): loose index cards */
.slips { list-style: none; display: grid; gap: var(--s-6); }
.slip { background: var(--sheet); box-shadow: 0 0 0 1px var(--rule-strong); padding: var(--s-3) var(--s-5) var(--s-5); max-width: 23rem; transform: rotate(var(--rot, 0deg)); }
.slip:nth-child(1) { --rot: -1.5deg; }
.slip:nth-child(2) { --rot: 1deg; justify-self: end; }
.slip:nth-child(3) { --rot: -.6deg; margin-left: 6%; }
.slip:nth-child(4) { --rot: 1.2deg; justify-self: end; margin-right: 4%; }
.slip:nth-child(5) { --rot: -1deg; }
.slip-src { padding-bottom: var(--s-2); border-bottom: 1.5px solid var(--margin-line); }
.slip-src a { display: inline-block; padding-block: 4px; font-size: var(--fs-meta); color: var(--navy-light); text-decoration: none; }
.slip-src a:hover { color: var(--pen); text-decoration: underline; }
.slip-pt { margin-top: var(--s-3); font: 400 1.5rem/1.2 var(--serif); color: var(--navy); }
.slip-note { margin-top: var(--s-3); font: italic 400 1rem/1.45 var(--serif); }
.slip-note i { font-style: normal; }

/* =========================================================== committee sheet .checklist (§10.17; data handling)
   A .sheet form: letterhead, one .q per question (§ anchor in the margin column, question, answer, the box
   the pen ticks), .q-end. The first box shows its label; the others say it to screen readers only. */
.letterhead { display: block; background: none; z-index: auto; font-size: .75rem; line-height: 1.55; color: var(--ink); padding-bottom: var(--s-4); }
.letterhead p:first-child { font-weight: 600; color: var(--navy); }
.q { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-2); padding-block: var(--s-5); scroll-margin-top: var(--s-5); }
.q + .q { border-top: 1px solid var(--rule); }
.q-anchor a { display: inline-flex; gap: .8em; align-items: baseline; min-height: 24px; padding-block: 2px; font-size: .875rem; color: var(--navy-light); text-decoration: none; }
.q-anchor a:hover [data-sec] { text-decoration: underline; text-decoration-color: var(--pen-stroke); text-decoration-thickness: 2px; }
/* the question's own address shows on hover, focus and :target; CSS text, so it isn't part of the link's name */
.q-anchor a::after { content: attr(data-url); visibility: hidden; font-size: .75rem; color: var(--pen); }
.q-anchor a:is(:hover, :focus-visible)::after, .q:target .q-anchor a::after { visibility: visible; }
.q-need-short { font-weight: 400; color: var(--ink-soft); }
@media (min-width: 56.25em) { .q-need-short { display: none; } }
.q h3 { max-width: 24em; }
.q:target h3 span { background: linear-gradient(transparent 58%, var(--hl) 58% 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.q-a p { max-width: var(--measure); }
.q-a p + p { margin-top: var(--s-3); }
.q-a :is(.mono, code) { font-size: .88em; }
.q-need { position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; min-width: 44px; margin-top: var(--s-1); cursor: pointer; font: 600 .875rem/1.3 var(--sans); color: var(--navy); }
.q-need input { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; background: var(--sheet); border: 1.5px solid var(--navy-light); border-radius: 2px; cursor: pointer; }
.q-need input:checked { border-color: var(--pen); }
.q-need input:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }
.q-need:hover span { text-decoration: underline; text-decoration-color: var(--pencil); text-underline-offset: 4px; }
.q-need .ink { display: none; left: -6px; top: calc(50% - 30px); width: 38px; height: 38px; --dur: .4s; }
.q-need .ink path { stroke-width: 2.6px; }
.q-need input:checked ~ .ink { display: block; }
@media (forced-colors: active) {
  .q-need input { -webkit-appearance: auto; appearance: auto; }
  .q-need .ink { display: none !important; }
}
@supports selector(:has(*)) {
  /* a ticked question gets the gold margin tick the bench gives the active turn */
  .q:has(.q-need input:checked)::before { content: ""; position: absolute; left: calc(var(--sheet-pad) * -1 + 4px); top: calc(var(--s-5) + 3px); width: 3px; height: 14px; background: var(--gold); }
}
.q-end { padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.q-foot { font: 400 1.25rem/1.45 var(--serif); color: var(--navy); max-width: 28em; }
.q-act { display: inline-block; margin: var(--s-5) var(--s-6) 0 0; vertical-align: middle; }
.q-tools { display: inline-flex; vertical-align: middle; flex-wrap: wrap; align-items: center; gap: 0 var(--s-5); margin-top: var(--s-4); }
.q-status { font: italic 400 1.0625rem/1.3 var(--serif); color: var(--pen); }
@media (min-width: 56.25em) {
  .q { grid-template-columns: var(--meta-col) minmax(0, 1fr); column-gap: var(--col-gap); }
  .q-anchor { grid-column: 1; grid-row: 1 / span 3; padding-top: .3rem; }
  .q > :is(h3, .q-a, .q-need) { grid-column: 2; }
  :is(.letterhead, .q-end) { padding-left: calc(var(--meta-col) + var(--col-gap)); }
}
@media (min-width: 64em) {
  .checklist { max-width: 70rem; }
  .q { grid-template-columns: var(--meta-col) minmax(0, 1fr) var(--note-col); }
  .q-anchor { grid-row: 1 / span 2; }
  .q > .q-need { grid-column: 3; grid-row: 1 / span 2; align-self: start; margin-top: -7px; }
}

/* =========================================================== the navy plate: the path a recording takes .plate (§10.19)
   The only navy block outside the colophon (data handling). Don't reveal the boundary by animating a path inside
   an SVG <mask>: Chromium doesn't reliably repaint the masked element. A navy cover stroke un-draws instead. */
.plate {
  --plate-line: #D7E1EA;   /* the drawing's line on navy (13:1) */
  background: var(--navy); color: var(--on-navy);
  margin-inline: calc(var(--gut) * -1); padding: var(--s-7) var(--gut);
}
.plate :focus-visible { outline-color: var(--green-light); }
.plate a { color: var(--on-navy); text-decoration-color: var(--green-light); }
.plate-h { color: var(--on-navy); max-width: 15em; }
.plate-h .dash { text-decoration: underline dashed var(--green); text-decoration-thickness: .055em; text-underline-offset: .2em; }
.path-fig { width: 100%; height: auto; margin-top: var(--s-6); overflow: visible; }
.path-fig--wide { display: none; }
.path-fig--tall { max-width: 24rem; }
.path-fig .pl-line { fill: none; stroke: var(--lit, var(--plate-line)); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.path-fig .pl-thin { stroke-width: 1; }
.path-fig .pl-ext { fill: none; stroke: var(--plate-line); stroke-width: 1; stroke-dasharray: 2 4; opacity: .75; }
.path-fig .pl-dot { fill: var(--plate-line); }
.path-fig .pl-box { fill: var(--navy-mid); stroke: var(--lit, var(--plate-line)); stroke-width: 1.5; }
.path-fig .pl-t { font: 400 17px var(--sans); fill: var(--lit, var(--on-navy)); }
.path-fig .pl-t--b { font-weight: 600; font-size: 18px; }
.path-fig .pl-m { font: 400 14px var(--mono); fill: var(--lit, var(--on-navy-soft)); }
/* the pen: the only green on the plate, and it only marks the local step */
.path-fig .pl-pen { font: italic 400 22px var(--serif); fill: var(--green-light); }
.path-fig--tall .pl-pen { font-size: 20px; }
.path-fig .pl-bound { fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 10 8; }
.path-fig .bd-cover { fill: none; stroke: var(--navy); stroke-width: 9; stroke-dasharray: 1 1; stroke-dashoffset: -1; }
/* the pen draws the boundary while the plate scrolls into view (CSS only). Browsers without scroll-driven
   animation, and reduced motion, get the finished drawing: the cover is all gap. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .plate { view-timeline: --plate block; }
    .path-fig .bd-cover { animation: bd-draw linear both; animation-timeline: --plate; animation-range: entry 40% cover 45%; }
  }
}
@keyframes bd-draw { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
.plate .path-text { margin-top: var(--s-6); padding-left: 1.5em; max-width: var(--measure); font-size: var(--fs-ui); line-height: 1.55; }
.plate .path-text li { padding-left: .5em; color: var(--lit, var(--on-navy)); }
.plate .path-text li + li { margin-top: var(--s-3); }
.plate .path-text li::marker { font: 600 .8125rem var(--mono); color: var(--lit, var(--on-navy-soft)); }
.plate .path-text code { color: var(--on-navy); }
.path-after { margin-top: var(--s-5); font: 400 var(--fs-voice)/1.4 var(--serif); color: var(--on-navy); max-width: 21em; }
/* a step in the list and the same step in the drawing light up together (pointer only; extra) */
@supports selector(:has(*)) {
  .plate:has(.ps-1:hover, .st-1:hover) :is(.ps-1, .st-1),
  .plate:has(.ps-2:hover, .st-2:hover) :is(.ps-2, .st-2),
  .plate:has(.ps-3:hover, .st-3:hover) :is(.ps-3, .st-3),
  .plate:has(.ps-4:hover, .st-4:hover) :is(.ps-4, .st-4),
  .plate:has(.ps-5:hover, .st-5:hover) :is(.ps-5, .st-5),
  .plate:has(.ps-6:hover, .st-6:hover) :is(.ps-6, .st-6) { --lit: var(--gold); }
}
@media (min-width: 37.5em) {
  .plate { margin-inline: var(--sheet-bleed); padding-inline: clamp(24px, 4vw, 56px); }
}
@media (min-width: 56.25em) {
  .plate { padding-block: var(--s-8); }
  .plate-h { grid-column: 1 / span 9; }
  .path-fig--tall { grid-column: 1 / span 5; grid-row: 2 / span 2; }
  .plate :is(.path-text, .path-after) { grid-column: 7 / span 6; }
}
@media (min-width: 75em) {
  .path-fig--wide { display: block; grid-column: 1 / -1; }
  .path-fig--tall { display: none; }
  .plate .path-text { grid-column: 1 / span 7; }
  .plate .path-after { grid-column: 9 / span 4; margin-top: var(--s-6); align-self: start; }
}
