/* Vema — site stylesheet. Direction A "Chambers", palette P2 (powder blue + apricot).
   One file. Motion techniques from the launch-site toolkit: one hero load choreography (.rise),
   one reveal style (.reveal), hairline underline (.ul). Everything is complete with JS off. */

@font-face { font-family: "Libre Caslon Display"; src: url(/fonts/libre-caslon-display-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url(/fonts/libre-caslon-text-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url(/fonts/libre-caslon-text-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url(/fonts/libre-caslon-text-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --bg: #E8EEF5; --surface: #F7FAFD; --ink: #1C2633; --ink-2: #485466;
  --rule: #C3CFDD; --accent: #A2522F; --accent-ink: #FFFFFF;
  --action: var(--accent); --action-ink: var(--accent-ink);
  --tint: rgba(28, 38, 51, .035);
  --font-display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --font-text: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 16px; --container: 1240px; --measure: 40em;
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gutter: 48px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font-text); font-feature-settings: "kern", "liga", "onum"; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule); }
a:hover { text-decoration-color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--action); color: var(--action-ink); padding: 10px 16px; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
em, i { font-style: italic; }
strong { font-weight: 700; }
code, kbd, samp, pre { font-family: var(--font-mono); font-feature-settings: normal; }
p code, li code, td code, dd code { font-size: .86em; background: var(--tint); padding: 1px 4px; border: 1px solid var(--rule); }

/* ---------- letterhead ---------- */
.letterhead { padding-top: 24px; }
.lh-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 20px; position: relative; }
.lh-row .home { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.lh-row .wm { display: block; height: 21px; width: auto; }
.nav { display: none; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink); }
.nav a.contact { color: var(--accent); }
.mnav { position: static; }
.mnav > summary { list-style: none; cursor: pointer; font: italic 400 15px/1 var(--font-text); padding: 10px 0 10px 12px; color: var(--ink); }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary::after { content: " +"; font-style: normal; color: var(--accent); }
.mnav[open] > summary::after { content: " \2013"; }
.mnav nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); z-index: 5; padding: 8px 0 14px; }
.mnav nav a { display: block; padding: 11px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 18px; }
.mnav nav a:last-child { border-bottom: 0; }
.mnav nav a[aria-current="page"] { color: var(--accent); }
@media (min-width: 980px) { .nav { display: flex; } .mnav { display: none; } }
.double-rule { border-top: 2px solid var(--ink); padding-top: 3px; }
.double-rule::after { content: ""; display: block; border-top: 1px solid var(--ink); }
.lh-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; font-size: 13.5px; font-style: italic; color: var(--ink-2); }
.lh-meta span:last-child { display: none; }
@media (min-width: 760px) { .lh-meta span:last-child { display: inline; } }

/* ---------- buttons & links ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.btn { display: inline-block; background: var(--action); color: var(--action-ink); text-decoration: none; font: 400 16px/1.2 var(--font-text); padding: 14px 26px 13px; border: 1px solid var(--action); cursor: pointer; }
.btn:hover { background: transparent; color: var(--action); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--bg); }
.link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--rule); font-size: 16px; }
.link:hover { text-decoration-color: var(--accent); }
.ul { position: relative; text-decoration: none; }
.ul::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: currentColor; opacity: .55; transform-origin: left; transition: transform .45s cubic-bezier(0.15, 0.75, 0.5, 1); }
.ul:hover::after, .ul:focus-visible::after { transform: scaleX(0); transform-origin: right; transition: transform .4s cubic-bezier(0.23, 0.46, 0.4, 1); }

/* ---------- hero (home) ---------- */
.hero { display: grid; gap: 48px; padding: 56px 0 80px; }
@media (min-width: 1000px) { .hero { grid-template-columns: 7fr 5fr; gap: 80px; padding: 84px 0 104px; align-items: start; } }
h1, .h1 { font: 400 clamp(38px, 5.1vw, 70px)/1.06 var(--font-display); letter-spacing: -0.012em; margin: 0 0 30px; max-width: 15ch; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.45vw, 20.5px); line-height: 1.6; color: var(--ink-2); max-width: 36em; margin: 0 0 34px; }

/* ---------- document sheets ---------- */
.sheet-stack { position: relative; padding: 0 12px 12px 0; }
.sheet-stack::before { content: ""; position: absolute; inset: 12px 0 0 12px; background: var(--surface); border: 1px solid var(--rule); }
.sheet { position: relative; background: var(--surface); border: 1px solid var(--rule); padding: 30px 28px 26px; font-size: 14.5px; line-height: 1.55; }
@media (min-width: 760px) { .sheet { padding: 34px 34px 30px; } }
.stamp { display: inline-block; border: 1px solid var(--accent); color: var(--accent); font-size: 12.5px; letter-spacing: .04em; padding: 5px 10px 4px; margin-bottom: 24px; line-height: 1.3; }
.sheet h2, .sheet .sheet-title { font: 400 25px/1.2 var(--font-display); margin: 0 0 18px; }
.sheet dl, dl.particulars { display: grid; grid-template-columns: 7.5em 1fr; gap: 6px 14px; margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.sheet dt, dl.particulars dt { font-style: italic; color: var(--ink-2); }
.sheet dd, dl.particulars dd { margin: 0; }
dl.particulars { grid-template-columns: 8.5em 1fr; }
.sheet ol.contents { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: c; }
.sheet ol.contents li { counter-increment: c; display: grid; grid-template-columns: 2em 1fr; padding: 7px 0; border-bottom: 1px dotted var(--rule); }
.sheet ol.contents li::before { content: counter(c) "."; color: var(--ink-2); }
.sheet .terms { font-style: italic; color: var(--ink-2); margin: 0; font-size: 13.5px; }
.sheet .sheet-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13.5px; }
.sheet-link { text-decoration: none; display: block; }
.sheet-link:hover .sheet { border-color: var(--ink-2); }

/* ---------- page head (inner pages) ---------- */
.pagehead { display: grid; gap: 40px; padding: 48px 0 64px; }
@media (min-width: 1000px) { .pagehead { grid-template-columns: 7fr 5fr; gap: 80px; padding: 72px 0 88px; align-items: start; } }
.pagehead h1 { font-size: clamp(36px, 4.4vw, 60px); max-width: 17ch; }
.ref { font-size: 14px; font-style: italic; color: var(--ink-2); margin: 0 0 22px; }
.ref .sn { color: var(--accent); font-style: normal; margin-right: .35em; }
.pagehead.solo { grid-template-columns: 1fr; }
.pagehead.solo h1 { max-width: 20ch; }

/* ---------- sections ---------- */
.sec { padding-bottom: 88px; }
.sec-head { display: grid; gap: 8px; border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: 10px; }
@media (min-width: 1000px) { .sec-head { grid-template-columns: 7fr 5fr; gap: 80px; } }
.sec-head h2 { font: 400 clamp(28px, 2.8vw, 38px)/1.15 var(--font-display); margin: 0; }
.sn { color: var(--accent); margin-right: .45em; white-space: nowrap; }
.sec-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 34em; }
.sec-body { max-width: var(--measure); }
.sec-body p, .prose p { max-width: var(--measure); }
.cols { display: grid; gap: 28px; margin-top: 26px; }
@media (min-width: 1000px) { .cols { grid-template-columns: 7fr 5fr; gap: 80px; } }

/* ---------- clauses (numbered rows) ---------- */
.clauses { list-style: none; margin: 0; padding: 0; }
.clause { display: grid; gap: 6px 24px; padding: 24px 0 26px; border-bottom: 1px solid var(--rule); }
@media (min-width: 1000px) { .clause { grid-template-columns: 4.5em 5fr 7fr; gap: 0 32px; } }
.clause .n { color: var(--accent); font-size: 15px; padding-top: 5px; }
.clause h3 { font: 400 25px/1.25 var(--font-display); margin: 0; }
.clause h3 a { text-decoration: none; }
.clause h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.clause .for { display: block; font: italic 400 15.5px/1.5 var(--font-text); color: var(--ink-2); margin-top: 6px; }
.clause .body p { max-width: 40em; }
.clause .body p:last-child { margin-bottom: 0; }
.clause .body ul { margin: 0 0 1em; padding-left: 1.1em; }
.clause .body li { margin-bottom: .35em; }
.clause .dur { display: block; font-style: italic; color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.clauses.compact .clause { padding: 18px 0 20px; }
.clauses.compact .clause h3 { font: 400 20px/1.3 var(--font-text); }
.clauses.terms .clause h3 { font: 700 16.5px/1.4 var(--font-text); padding-top: 3px; }
.more { margin-top: 26px; }

/* ---------- process strip ---------- */
.strip { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.strip li { padding: 18px 0 20px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 3em 1fr; gap: 4px 12px; }
.strip .n { color: var(--accent); font-size: 15px; padding-top: 3px; grid-row: span 2; }
.strip h3 { font: 400 20px/1.3 var(--font-text); margin: 0; }
.strip p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (min-width: 1000px) {
  .strip { grid-template-columns: repeat(6, 1fr); border-top: 0; }
  .strip li { display: block; border-bottom: 0; border-left: 1px solid var(--rule); padding: 4px 22px 8px; }
  .strip li:first-child { border-left: 0; padding-left: 0; }
  .strip .n { display: block; margin-bottom: 14px; }
  .strip h3 { margin-bottom: 8px; }
}

/* ---------- record ledger ---------- */
.ledger { margin: 0; padding: 0; }
.ledger > div { display: grid; gap: 4px 28px; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .ledger > div { grid-template-columns: 13em 1fr; } }
.ledger dt { font-style: italic; color: var(--ink-2); font-size: 15.5px; }
.ledger dd { margin: 0; }
.ledger dd p:last-child { margin-bottom: 0; }
.ledger .label-note { display: block; font-size: 13.5px; margin-top: 4px; }

/* ---------- stat tiles (facts already stated on the page) ---------- */
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 30px 0 6px; }
.stat { display: grid; gap: 6px; margin: 0; padding: 20px 20px 18px; border: 1px solid var(--rule); background: var(--surface); align-content: start; }
.stat-num { font: 400 40px/1 var(--font-display); color: var(--ink); }
.stat-cap { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); font-style: italic; }

/* ---------- document thumbnails (home, samples) ---------- */
.docs { display: grid; gap: 40px; margin-top: 30px; }
@media (min-width: 1000px) { .docs { grid-template-columns: 1fr 1fr; gap: 56px; } }
.doc-thumb .sheet { font-size: 13.5px; }
.doc-thumb .caption { margin: 18px 0 0; }
.doc-thumb .caption h3 { font: 400 22px/1.3 var(--font-display); margin: 0 0 6px; }
.doc-thumb .caption p { color: var(--ink-2); margin: 0 0 10px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.4; }
.mini-table th { text-align: left; font-weight: 400; font-style: italic; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding: 6px 8px 6px 0; }
.mini-table td { border-bottom: 1px solid var(--rule); padding: 7px 8px 7px 0; vertical-align: top; }

/* ---------- tables (documents, terms) ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0 24px; -webkit-overflow-scrolling: touch; }
table.reg { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; min-width: 560px; }
table.reg caption { text-align: left; font-style: italic; color: var(--ink-2); padding-bottom: 8px; font-size: 14px; }
table.reg th { text-align: left; font-weight: 400; font-style: italic; color: var(--ink-2); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 12px 8px 0; vertical-align: bottom; }
table.reg td { border-bottom: 1px solid var(--rule); padding: 10px 12px 10px 0; vertical-align: top; }
table.reg td.num, table.reg th.num { text-align: right; white-space: nowrap; font-feature-settings: "lnum", "tnum"; }
table.reg tr.total td { border-top: 1px solid var(--ink); border-bottom: 2px solid var(--ink); font-weight: 700; }
.sev { white-space: nowrap; }
.sev-high { color: var(--accent); font-weight: 700; }
.sev-med { font-weight: 700; }

/* ---------- code ---------- */
pre.code { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--rule); padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 10px 0 22px; max-width: 100%; }
pre.code .file { display: block; font-family: var(--font-text); font-style: italic; color: var(--ink-2); font-size: 13px; margin-bottom: 10px; }
pre.code .c { color: var(--ink-2); font-style: italic; }
pre.code .hl { background: rgba(162, 82, 47, .12); display: inline-block; width: 100%; }
.pair { display: grid; gap: 14px; }
@media (min-width: 1100px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair pre.code { margin: 0; height: 100%; }

/* ---------- long documents (samples, insights, policies) ---------- */
.document { max-width: 900px; margin: 0 auto 96px; }
.document .page { position: relative; background: var(--surface); border: 1px solid var(--rule); padding: 26px 18px 34px; margin-bottom: 18px; }
@media (min-width: 760px) { .document .page { padding: 44px 64px 52px; } }
.runhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 30px; font-size: 13px; color: var(--ink-2); font-style: italic; }
.runhead .stamp { margin: 0; font-style: normal; }
.document h1 { font-size: clamp(32px, 4vw, 48px); max-width: 20ch; margin-bottom: 20px; }
.document h2 { font: 400 clamp(24px, 2.4vw, 30px)/1.2 var(--font-display); margin: 0 0 16px; }
.document h2 .sn { font-size: .8em; }
.document h3 { font: 700 16.5px/1.4 var(--font-text); margin: 26px 0 8px; }
.document p, .document li { max-width: 68ch; }
.document ul, .document ol { padding-left: 1.25em; margin: 0 0 1em; }
.document li { margin-bottom: .4em; }
.document .pnum { color: var(--ink-2); margin-right: .5em; font-size: .92em; }
.document .callout { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; margin: 18px 0 24px; }
.document .callout p:last-child { margin-bottom: 0; }
.document .verdict { font: 400 22px/1.4 var(--font-display); margin: 6px 0 18px; max-width: 34em; }
.document .pagefoot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--rule); margin-top: 34px; padding-top: 10px; font-size: 12.5px; color: var(--ink-2); font-style: italic; }
.document .cover dl.particulars { max-width: 560px; }
.toc { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { display: grid; grid-template-columns: 2.4em 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px dotted var(--rule); max-width: none; margin: 0; }
.toc li .no { color: var(--ink-2); }
.toc li a { text-decoration: none; }
.toc li a:hover { text-decoration: underline; }
.article { max-width: 760px; }
.article h2 { font: 400 clamp(24px, 2.4vw, 30px)/1.2 var(--font-display); margin: 40px 0 14px; }
.article p, .article li { font-size: 18px; line-height: 1.7; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: .5em; }
.byline { font-style: italic; color: var(--ink-2); font-size: 15px; margin: -10px 0 28px; }
sup.fn { font-size: .7em; line-height: 0; }
sup.fn a { text-decoration: none; color: var(--accent); padding: 0 1px; }

/* ---------- sources / footnotes ---------- */
.sources { border-top: 1px solid var(--ink); padding-top: 16px; margin-top: 8px; }
.sources h2 { font: 400 22px/1.3 var(--font-display); margin: 0 0 10px; }
.sources ol { margin: 0; padding-left: 1.4em; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.sources li { margin-bottom: 8px; max-width: 70em; overflow-wrap: anywhere; }
.note { font-size: 14.5px; font-style: italic; color: var(--ink-2); max-width: 46em; }

/* ---------- lists of entries (insights, samples) ---------- */
.entries { list-style: none; margin: 18px 0 0; padding: 0; }
.entries li { display: grid; gap: 4px 32px; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
@media (min-width: 1000px) { .entries li { grid-template-columns: 11em 1fr; } }
.entries .date { font-style: italic; color: var(--ink-2); font-size: 15px; padding-top: 4px; }
.entries h3 { font: 400 24px/1.3 var(--font-display); margin: 0 0 6px; }
.entries h3 a { text-decoration: none; }
.entries h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.entries p { margin: 0; color: var(--ink-2); max-width: 44em; }

/* ---------- correspondence block ---------- */
.corr { display: grid; gap: 28px; border-top: 1px solid var(--ink); padding-top: 22px; }
@media (min-width: 1000px) { .corr { grid-template-columns: 7fr 5fr; gap: 80px; } }
.corr h2 { font: 400 clamp(28px, 2.8vw, 38px)/1.15 var(--font-display); margin: 0 0 14px; }
.corr address { font-style: normal; line-height: 1.75; }

/* ---------- form ---------- */
.form { display: grid; gap: 22px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 15.5px; }
.field .hint { font-size: 13.5px; font-style: italic; color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  font: 400 17px/1.4 var(--font-text); color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); border-bottom: 1px solid var(--ink-2); border-radius: 0; padding: 11px 12px; width: 100%; }
.field textarea { min-height: 170px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field-error { color: var(--accent); font-size: 14px; margin: 0; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15.5px; }
.check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: 15.5px; min-height: 1.5em; }
.form-status[data-state="success"] { border-left: 2px solid var(--accent); padding-left: 14px; }
.form-status[data-state="error"] { color: var(--accent); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ---------- footer ---------- */
.foot { margin-top: 24px; padding-bottom: 40px; }
.foot-grid { display: grid; gap: 30px; padding-top: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 5fr 2fr 2fr 3fr; gap: 40px; } }
.foot h2 { font: italic 400 14px/1.4 var(--font-text); color: var(--ink-2); margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.foot li { margin-bottom: 7px; }
.foot a { text-decoration: none; }
.foot address { font-style: normal; font-size: 15px; line-height: 1.7; }
.foot .mark { width: 44px; height: 44px; color: var(--ink); display: block; margin-bottom: 14px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--rule); margin-top: 30px; padding-top: 14px; font-size: 13.5px; font-style: italic; color: var(--ink-2); }

/* ---------- review mode: shows PROPOSED wording (open any page with ?review) ---------- */
.review [data-proposed] { outline: 1px dashed var(--accent); outline-offset: 2px; background: rgba(162, 82, 47, .07); }
.review [data-proposed]::before { content: "PROPOSED " attr(data-proposed) " · "; font: 700 11px/1.2 var(--font-mono); color: var(--accent); letter-spacing: .02em; }

/* ---------- motion (toolkit: one choreography, one reveal) ---------- */
@keyframes tk-rise { from { opacity: 0; transform: translateY(24px); } }
@media (min-width: 760px) and (prefers-reduced-motion: no-preference) {
  .js .rise { animation: tk-rise 1.3s var(--ease-out-cubic) var(--rise-delay, 0ms) backwards; }
  .js .rise-lead { --rise-delay: 450ms; }
  .js .rise-actions { --rise-delay: 600ms; }
  .js .rise-sheet { --rise-delay: 820ms; }
}
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 600ms var(--ease-out-cubic), transform 600ms var(--ease-out-cubic); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .rise { animation: none; }
  .ul::after { transition: none; }
}
/* screenshots / print: everything static */
.no-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.no-motion .rise { animation: none !important; }

@media print {
  .letterhead nav, .mnav, .foot-grid ul, .skip, .actions { display: none !important; }
  body { background: #fff; }
  .document .page { border: 0; page-break-after: always; }
}

/* grid children may shrink below their content (pre, tables scroll inside) */
.docs > *, .cols > *, .pair > *, .hero > *, .pagehead > *, .clause > *, .corr > *, .foot-grid > * { min-width: 0; }
.cols .ledger > div { grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 1000px) { .cols .ledger > div { grid-template-columns: 11em 1fr; } }
.clause .body p > a.link:last-child, .sec-body a.link:last-child { display: table; margin-top: 8px; }
.document .doc-title { font: 400 clamp(32px, 4vw, 48px)/1.08 var(--font-display); letter-spacing: -0.012em; max-width: 20ch; margin: 0 0 20px; }
@media (min-width: 1000px) { .cols.wide-right { grid-template-columns: 5fr 7fr; gap: 64px; } .cols .ledger > div { grid-template-columns: 12em 1fr; gap: 0 28px; } }
.document .pair { grid-template-columns: 1fr; }
pre.code .file { font-family: var(--font-mono); font-style: normal; font-size: 12px; }
.document table.reg td:first-child { white-space: nowrap; }
@media (max-width: 520px) {
  dl.particulars, .sheet dl { grid-template-columns: 1fr; gap: 0; }
  dl.particulars dt, .sheet dt { margin-top: 10px; font-size: .92em; }
  dl.particulars dt:first-child, .sheet dt:first-child { margin-top: 0; }
}
