/* passivevoicefixer.com — HORIZON (StrongMocha House System, DESIGN.md Register 8, the tidvane.com look).
   Owner decision 27.09.2026. Look only: every id/class the desk scripts use is kept; copy and URLs are unchanged.
   The editor backdrop and the transparent textarea share one set of text metrics — change them together.
   Fonts bundled (Archivo + Instrument Sans, variable woff2, latin subset) — no CDN, no external script. */

@font-face { font-family: 'Archivo'; src: url('/assets/fonts/Archivo-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/assets/fonts/InstrumentSans-var.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

.reg-horizon {
  --navy: #0F2552; --ink: #33466B; --muted: #66779A; --agate: #8A98B5;
  --line: #DCE7F4; --line-mid: #D2DEEE; --paper: #FFFFFF; --sky: #F5F9FE; --tint: #EAF3FC; --panel: #F3F8FE;
  --accent: #1F6FEB; --accent-deep: #1E4FC4; --accent-2: #2EE6D0; --accent-mid: #22C3E8;
  --grad: linear-gradient(90deg, var(--accent-2) 0%, var(--accent-mid) 45%, var(--accent) 100%);
  --grad-button: linear-gradient(90deg, #1FB5E3, #1F6FEB);
  --grad-text: linear-gradient(90deg, #1E4FC4, #1F6FEB 55%, #22A9E8);
  --ok: #059E86; --ok-bg: #E3F8F3; --hold: #B26A00; --hold-bg: #FFF4DF; --urgent: #D9304F; --urgent-bg: #FDE8EC;
  /* proof marks (functional, described in the copy: solid red = passive, dashed ochre = possible, blue = the doer) */
  --mark: #D9304F; --mark-bg: #FDE8EC; --maybe: #B26A00; --maybe-bg: #FFF1D6;
  --shadow: 0 1px 2px rgba(15, 37, 82, .06), 0 10px 30px rgba(31, 79, 196, .10);
  --shadow-lift: 0 2px 4px rgba(15, 37, 82, .06), 0 18px 40px rgba(31, 79, 196, .16);
  --radius-lg: 24px; --radius: 18px;
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--sky); background-image: linear-gradient(180deg, #F3F8FE 0%, #FFFFFF 42%, #F4F9FE 100%);
  color: var(--ink); font: 400 17px/1.6 var(--font-ui);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body * { margin: 0; padding: 0; }
main { flex: 1; }
[hidden] { display: none !important; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }
::selection { background: rgba(31, 111, 235, .22); }
:focus-visible { outline: 3px solid rgba(31, 111, 235, .45); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--navy); letter-spacing: -.015em; line-height: 1.1; }
.shell { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.measure { max-width: 66ch; }
.u-label { font: 700 .72rem/1.3 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; }
.u-mono { font: 600 .72rem/1.35 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
.u-tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top strip + masthead ---------- */
.topbar { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .55); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 2px 14px; flex-wrap: wrap; padding: 4px var(--gutter); color: var(--muted); }
.topbar-in .u-mono { font-size: .64rem; letter-spacing: .14em; }
.topbar .lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.topbar .lang-switch a, .topbar .lang-switch .cur { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 32px; padding: 0 8px; border-radius: 999px; text-decoration: none; }
.topbar .lang-switch a { color: var(--accent-deep); border: 1px solid var(--line-mid); background: #fff; }
.topbar .lang-switch a:hover { border-color: #A9C4EA; }
.topbar .lang-switch .cur { color: var(--navy); }
.masthead { position: relative; z-index: 3; }
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 10px; }
.brand-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); min-height: 40px; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand .brand-name { font: 700 1.02rem/1.1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.brand .brand-name em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.masthead .tag { color: var(--muted); padding-left: 47px; font-size: .64rem; }
.mainnav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.mainnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; text-decoration: none;
  font: 500 .93rem/1 var(--font-ui); color: var(--ink); transition: background .2s var(--ease), color .2s var(--ease); }
.mainnav a:hover { color: var(--navy); background: rgba(255, 255, 255, .85); }
.mainnav a[aria-current="page"] { color: var(--navy); background: var(--paper); box-shadow: var(--shadow); font-weight: 700; }
.masthead-rule { display: none; }
@media (max-width: 760px) {
  .topbar-in { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; white-space: nowrap; gap: 16px; padding-top: 2px; padding-bottom: 2px; }
  .topbar-in::-webkit-scrollbar { display: none; }
  .topbar-in > * { flex: none; }
  .topbar .lang-switch { order: -1; }
  .mast-in { padding-top: 8px; padding-bottom: 4px; }
  .brand .brand-name { font-size: .92rem; }
  .mainnav { width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); overflow-x: auto; scrollbar-width: none; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav ul { padding: 2px var(--gutter) 6px; width: max-content; }
  .mainnav a { min-height: 38px; padding: 0 13px; font-size: .9rem; }
}

/* ---------- hero with the film band (the film never pushes the desk down) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(20px, 3.4vw, 46px) 0 clamp(78px, 8vw, 118px); }
.hero .film { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 78% 40%, #FFFFFF 0%, #E6F2FC 55%, #DDEBFA 100%); }
.hero .film canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0; transition: opacity 1s var(--ease); }
.hero .film .on { opacity: 1; }
.hero .film video { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hero .film::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(245, 249, 254, .97) 0%, rgba(245, 249, 254, .92) 36%, rgba(245, 249, 254, .45) 60%, rgba(245, 249, 254, .05) 84%),
              linear-gradient(180deg, #F4F9FE 0%, rgba(245, 249, 254, 0) 22%, rgba(245, 249, 254, 0) 70%, #F5F9FE 100%); }
.hero .kicker { display: inline-block; color: var(--ink); font-weight: 500; font-size: .74rem; letter-spacing: .22em; }
.hero h1 { margin: 14px 0 12px; max-width: 15em; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; }
.hero h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { max-width: 40em; font-size: clamp(1rem, 1.5vw, 1.16rem); color: var(--ink); }
.hero .privacy-line { margin-top: 12px; color: var(--muted); text-transform: none; letter-spacing: .02em; font-weight: 500; font-size: .86rem; }
.hero .privacy-line strong { color: var(--ok); font-weight: 700; }
@media (max-width: 900px) {
  .hero .film canvas { object-position: 72% 50%; }
  .hero .film::after { background: linear-gradient(180deg, rgba(245, 249, 254, .9) 0%, rgba(245, 249, 254, .8) 45%, rgba(245, 249, 254, .9) 78%, #F5F9FE 100%); }
}
@media (max-width: 760px) {
  .hero { padding: 14px 0 64px; }
  .hero h1 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); margin: 10px 0 8px; }
  .hero .kicker { font-size: .68rem; letter-spacing: .16em; }
  .hero .sub { font-size: .95rem; line-height: 1.48; }
  .hero .privacy-line { margin-top: 8px; font-size: .8rem; }
}

/* ---------- the desk (tool) ---------- */
.desk { position: relative; z-index: 2; margin-top: -54px; padding-bottom: clamp(36px, 5vw, 64px); }
.desk-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
@media (max-width: 900px) { .desk-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FBFDFF, #F5F9FE); }
.panel-head .u-mono { color: var(--navy); }
.toolbar { display: flex; gap: 6px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 600 .86rem/1 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--navy); background: var(--paper); border: 1px solid var(--line-mid);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease); }
.btn:hover { border-color: #A9C4EA; color: var(--accent-deep); box-shadow: 0 4px 12px rgba(31, 79, 196, .10); }
#btn-sample, .btn-accent { color: #fff; border-color: transparent; background: var(--grad-button); }
#btn-sample:hover, .btn-accent:hover { color: #fff; box-shadow: 0 6px 16px rgba(31, 111, 235, .28); }
.btn:disabled { opacity: .5; cursor: default; }

/* editor: transparent textarea over a marked-up backdrop — identical metrics on both layers */
.editor-wrap { position: relative; margin: 14px 16px 0; border: 1px solid var(--line-mid); border-radius: 14px; background: #FBFDFF; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.editor-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 111, 235, .14); background: #fff; }
.editor-backdrop, .editor-input { font-family: var(--font-ui); font-size: 17px; font-weight: 400; line-height: 1.75; padding: 16px 16px 24px; width: 100%;
  white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; letter-spacing: normal; border: 0; }
.editor-backdrop { position: absolute; inset: 0; overflow: hidden; color: var(--navy); pointer-events: none; border-radius: 14px; }
.editor-input { position: relative; display: block; background: transparent; color: transparent; caret-color: var(--navy); resize: none; min-height: 340px; outline: none; border-radius: 14px; }
.editor-input::placeholder { color: var(--agate); opacity: 1; }
.editor-input:focus-visible { outline: none; }
mark.m-passive, mark.m-possible { color: inherit; padding: 1px 0; border-radius: 3px; }
mark.m-passive { background: var(--mark-bg); box-shadow: inset 0 -2px 0 var(--mark); }
mark.m-possible { background: var(--maybe-bg); background-image: linear-gradient(90deg, var(--maybe) 55%, transparent 55%); background-size: 7px 2px; background-repeat: repeat-x; background-position: 0 100%; }
mark.m-agent { background: transparent; color: inherit; box-shadow: inset 0 -2px 0 var(--accent); }
mark.flash { outline: 2px solid var(--accent); outline-offset: 1px; }
.editor-foot { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 10px 18px 14px; color: var(--muted); }
.editor-foot .u-mono { text-transform: none; letter-spacing: .01em; font-weight: 500; font-size: .84rem; }

.legend { display: flex; gap: 8px 18px; flex-wrap: wrap; padding: 12px 4px 0; color: var(--muted); }
.legend .u-mono { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: .01em; font-weight: 500; font-size: .84rem; }
.swatch { width: 24px; height: 12px; display: inline-block; border-radius: 3px; }
.swatch.s-passive { background: var(--mark-bg); box-shadow: inset 0 -2px 0 var(--mark); }
.swatch.s-possible { background: var(--maybe-bg); background-image: linear-gradient(90deg, var(--maybe) 55%, transparent 55%); background-size: 7px 2px; background-repeat: repeat-x; background-position: 0 100%; }
.swatch.s-agent { box-shadow: inset 0 -2px 0 var(--accent); }
.lang-chip { display: inline-flex; align-items: center; min-height: 30px; margin: 10px 0 0; padding: 0 12px; border-radius: 999px; background: var(--tint); color: var(--accent-deep); border: 1px solid #BFD5F3; font-size: .7rem; }

/* stats + verdict */
.statrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--panel); }
.stat { padding: 14px 6px 13px; text-align: center; border-left: 1px solid var(--line); overflow: hidden; }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 700 clamp(1.35rem, 2.4vw, 1.8rem)/1.15 var(--font-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 4px; color: var(--muted); font-size: .64rem; }
@media (max-width: 480px) {
  .statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.verdict { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; border-top: 1px solid var(--line); padding: 14px 18px; }
.verdict .chip { flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; font: 700 .74rem/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
.verdict .chip.v-clean { color: var(--ok); background: var(--ok-bg); }
.verdict .chip.v-light { color: var(--hold); background: var(--hold-bg); }
.verdict .chip.v-heavy { color: var(--urgent); background: var(--urgent-bg); }
.verdict .chip.v-none { color: var(--muted); background: var(--tint); }
.verdict p { color: var(--ink); font-size: .92rem; text-align: right; }
@media (max-width: 480px) { .verdict { flex-direction: column; align-items: flex-start; } .verdict p { text-align: left; } }

/* findings */
.findings { display: flex; flex-direction: column; }
.findings-scroll { max-height: 560px; overflow-y: auto; }
@media (max-width: 900px) { .findings-scroll { max-height: none; overflow: visible; } }
.finding { border-bottom: 1px solid var(--line); padding: 16px 18px; }
.finding:last-child { border-bottom: 0; }
.finding .ref { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); margin-bottom: 6px; }
.finding .ref .t-passive { color: var(--mark); }
.finding .ref .t-possible { color: var(--maybe); }
.finding blockquote { color: var(--navy); margin: 2px 0 8px; font-size: .98rem; }
.finding blockquote mark { background: transparent; font-weight: 700; padding: 0; color: inherit; }
.finding blockquote mark.q-passive { box-shadow: inset 0 -2px 0 var(--mark); }
.finding blockquote mark.q-possible { background-image: linear-gradient(90deg, var(--maybe) 55%, transparent 55%); background-size: 7px 2px; background-repeat: repeat-x; background-position: 0 100%; }
.finding .why { font-size: .9rem; color: var(--ink); }
.finding .fix { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--tint); border-left: 3px solid var(--accent); font-size: .95rem; color: var(--navy); }
.finding .fix .u-mono { color: var(--accent-deep); font-size: .62rem; display: block; margin-bottom: 3px; }
.finding .jump { display: inline-flex; align-items: center; min-height: 32px; margin-top: 8px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line-mid); color: var(--accent-deep); font: 600 .78rem/1 var(--font-ui); text-decoration: none; }
.finding .jump:hover { border-color: #A9C4EA; box-shadow: 0 4px 12px rgba(31, 79, 196, .10); }
.finding-actions { display: flex; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.finding-actions .jump { margin-top: 8px; }
.ai-go { color: var(--accent); }
.ai-fix { border-left-color: var(--ok); background: var(--ok-bg); }
.ai-fix .u-mono { color: var(--ok); }
.ai-err { border-left-color: var(--mark); background: var(--mark-bg); }
.ai-err .u-mono { color: var(--mark); }
.all-clear { padding: 28px 18px; text-align: center; color: var(--muted); }
.all-clear b { display: block; margin-bottom: 4px; font: 700 1.2rem/1.2 var(--font-display); color: var(--ok); }

/* AI panel (BYOK) */
.ai-panel { margin-top: 16px; }
.ai-panel summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 12px 18px; color: var(--navy); }
.ai-panel summary::-webkit-details-marker { display: none; }
.ai-panel summary::after { content: "+"; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--accent-deep); font: 700 1rem/1 var(--font-ui); }
.ai-panel[open] summary::after { content: "−"; }
.ai-body { border-top: 1px solid var(--line); padding: 16px 18px 18px; }
.ai-media { margin-bottom: 14px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--tint); }
.ai-media img { width: 100%; height: 100%; object-fit: cover; }
.ai-note { font-size: .9rem; color: var(--ink); margin-bottom: 14px; }
.ai-note strong { color: var(--ok); }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 480px) { .ai-grid { grid-template-columns: minmax(0, 1fr); } }
.ai-grid label { display: block; }
.ai-grid label span { display: block; margin-bottom: 6px; color: var(--muted); }
.ai-grid select, .ai-grid input { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-mid); background: #FBFDFF; font: 400 .95rem/1.3 var(--font-ui); color: var(--navy); }
.ai-grid select:focus, .ai-grid input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 111, 235, .14); }
.ai-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.ai-status { color: var(--muted); text-transform: none; letter-spacing: .01em; font-weight: 500; font-size: .84rem; }
.ai-status.on { color: var(--ok); }

/* ---------- sections ---------- */
.section { padding: clamp(32px, 4.6vw, 60px) 0; }
.section-head { margin-bottom: clamp(18px, 3vw, 30px); }
.section-head .kicker { color: var(--accent-deep); }
.section-head h2 { margin-top: 10px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
@media (max-width: 900px) { .feature-cards { grid-template-columns: minmax(0, 1fr); max-width: 620px; } }
.fcard { background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.fcard:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.fcard-media { aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.fcard-media img { width: 100%; height: 100%; object-fit: cover; }
.fcard-body { padding: 20px 22px 24px; }
.fcard-body .n, .cols-3 .n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px; background: var(--grad); color: #fff; font: 700 .82rem/1 var(--font-display); }
.fcard-body h3 { font-size: 1.16rem; margin-bottom: 6px; }
.fcard-body p { font-size: .97rem; color: var(--ink); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.cols-3 > div { background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
@media (max-width: 820px) { .cols-3 { grid-template-columns: minmax(0, 1fr); } }
.cols-3 h3 { font-size: 1.14rem; margin-bottom: 6px; }
.cols-3 p { font-size: .97rem; }
.section > .shell > .prose { max-width: 820px; margin: 0; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); }

/* prose (index sections, guide, legal) */
.prose { max-width: 66ch; margin: 0 auto; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.prose p { margin: .75em 0; }
.prose ul, .prose ol { margin: .75em 0 .75em 1.4em; }
.prose li { margin: .35em 0; }
.prose .u-mono { color: var(--accent-deep); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .note { background: var(--tint); border-radius: 14px; border-left: 3px solid var(--accent); padding: 14px 18px; margin: 1.2em 0; font-size: .97rem; }
.prose address { font-style: normal; line-height: 1.8; }
.prose .ex { font-style: normal; color: var(--navy); }
.prose .ex-bad { box-shadow: inset 0 -2px 0 var(--mark); }
.prose .ex-good { box-shadow: inset 0 -2px 0 var(--ok); }
.prose p a, .prose li a { overflow-wrap: anywhere; }
table.ledger { border-collapse: collapse; width: 100%; margin: 1em 0; background: #FBFDFF; border-radius: 12px; overflow: hidden; }
table.ledger th { font: 700 .66rem/1.3 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: left; border-bottom: 1px solid var(--line-mid); padding: 10px 12px 8px; background: var(--panel); }
table.ledger td { border-bottom: 1px solid var(--line); padding: 10px 12px; vertical-align: top; font-size: .95rem; }
table.ledger td:first-child { color: var(--mark); }
table.ledger td:last-child { color: var(--navy); }
.table-scroll { overflow-x: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; min-height: 48px; padding: 14px 2px; font: 600 1.04rem/1.35 var(--font-ui); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--accent-deep); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 2px 18px; margin: 0; color: var(--ink); max-width: 62ch; }

/* article pages: the document on a white sheet */
.article { width: min(920px, calc(100% - 2 * var(--gutter))); max-width: none; margin: clamp(14px, 3vw, 36px) auto clamp(56px, 8vw, 104px); padding: clamp(22px, 5vw, 60px);
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.article-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.article-head .kicker { color: var(--accent-deep); }
.article-head h1 { margin: 10px 0 8px; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.06; max-width: 18em; }
.article-head .dateline { color: var(--muted); }
.article-rule { display: none; }
.article .prose { max-width: none; margin: 0; }
.article .prose > * { max-width: 66ch; }
.article .prose > .table-scroll, .article .prose > table { max-width: none; }

/* ---------- footer ---------- */
footer.site { margin-top: auto; padding: clamp(40px, 5vw, 64px) 0 20px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px var(--gutter); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-brand { display: inline-block; font: 700 .98rem/34px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.foot-brand img { display: inline-block; width: 34px; height: 34px; vertical-align: middle; margin: -3px 11px 0 0; }
.foot-brand em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-grid p { margin-top: 12px; max-width: 34em; font-size: .95rem; color: var(--muted); }
.foot-grid h4 { margin: 6px 0 8px; color: var(--navy); }
.foot-grid ul { list-style: none; }
.foot-grid li a { display: inline-flex; align-items: center; min-height: 36px; font-size: .95rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.foot-grid li a:hover { color: var(--accent); }
.foot-grid li a[href^="mailto:"] { color: var(--accent); font-weight: 600; }
.hallmark { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.hallmark .sq { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--grad); }
.hallmark .sq b { font: 700 .8rem/1 var(--font-display); color: #fff; letter-spacing: .04em; }
.hallmark .hm-meta { color: var(--muted); font-size: .62rem; line-height: 1.7; }
.family-row { display: flex; gap: 4px 22px; flex-wrap: wrap; align-items: center; margin-top: 28px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.family-row .u-label { color: var(--navy); margin-right: 4px; }
.family-row a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.family-row a:hover { color: var(--accent); }
.foot-legal { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.foot-legal .u-mono { text-transform: none; letter-spacing: .01em; font-weight: 500; font-size: .88rem; }
.attribution { color: var(--muted); }
.attribution a { display: inline-block; padding: 9px 0; color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent-mid); text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.prose address a { display: inline-block; padding: 6px 0; }
.prose .note a { display: inline-block; padding: 6px 0; }
