/* Arcadia: a printed book. Ivory paper, brown ink, one sage wash.
   Forms: no boxes. Rules, plates, captions. Links are underlined with a marker swipe; the only buttons are
   the same marker-swipe links with an arrow. */
:root {
  --paper: #f1ecdf;
  --paper-2: #e9e2d0;
  --paper-3: #ddd4bd;
  --ink: #211d16;
  --ink-2: #5a5245;
  --ink-3: #8a7f6a;
  --rule: #cfc6b0;
  --sage: #6c8b64;
  --sage-deep: #46603f;
  --sage-wash: #cfdcc4;
  --ochre: #b0833a;
  --rust: #a8553a;
  --night: #17150f;
  --night-2: #221f17;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Fragment Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 58px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { /* a faint paper grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(33,29,22,.045) 1px, transparent 1.2px); background-size: 5px 5px;
}
main, header, footer { position: relative; z-index: 1; }
img, canvas, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--sage-wash); }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(46px, 8.4vw, 118px); letter-spacing: -0.025em; font-weight: 500; }
h1 em, h2 em { font-style: italic; color: var(--sage-deep); font-weight: 500; }
h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 500; }
h3 { font-size: clamp(24px, 2.6vw, 32px); }
h4 { font-size: 21px; }
p { margin: 0 0 1.1em; }
.lede { font-family: var(--serif); font-size: clamp(21px, 2.3vw, 28px); line-height: 1.32; color: var(--ink); font-weight: 500; }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.num { font-family: var(--serif); font-style: italic; color: var(--sage-deep); }
.mono { font-family: var(--mono); font-size: .9em; }
.sc { font-variant: small-caps; letter-spacing: .06em; }
.muted { color: var(--ink-2); }
small, .small { font-size: 13.5px; color: var(--ink-2); }
code { font-family: var(--mono); font-size: .86em; background: var(--paper-2); padding: .08em .35em; border-bottom: 1px solid var(--rule); }
pre { font-family: var(--mono); font-size: 13px; line-height: 1.55; background: var(--night); color: #e9e2d0; padding: 18px 20px; overflow-x: auto; margin: 1.2em 0; border-left: 3px solid var(--sage); }
pre code { background: none; border: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.rule-double { border-top: 3px double var(--ink); }

/* ---------------------------------------------------------------- links and buttons: one family */
.link, main p a, main li a, footer a.l {
  text-decoration: none; background: linear-gradient(var(--sage-wash), var(--sage-wash)) 0 100% / 100% 2px no-repeat; transition: background-size .18s ease; padding-bottom: 1px;
}
.link:hover, main p a:hover, main li a:hover, footer a.l:hover { background-size: 100% 100%; }
.btn {
  display: inline-flex; align-items: center; gap: .55em; font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  color: var(--ink); text-decoration: none; padding: .62em .1em .5em; cursor: pointer; background: linear-gradient(var(--sage-wash), var(--sage-wash)) 0 92% / 100% 52% no-repeat;
  border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; transition: background-size .2s ease, gap .2s ease;
}
.btn::after { content: '\2192'; font-family: var(--serif); font-size: 1.25em; line-height: 1; transition: transform .2s ease; }
.btn:hover { background-size: 100% 100%; }
.btn:hover::after { transform: translateX(4px); }
.btn.ghost { background: none; border-bottom-color: var(--rule); }
.btn.ghost:hover { border-bottom-color: var(--ink); background: linear-gradient(var(--sage-wash), var(--sage-wash)) 0 100% / 100% 0 no-repeat; }
.btn.plain::after { content: ''; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }

/* ---------------------------------------------------------------- the running head */
.head { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: rgba(241,236,223,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--ink); }
.head-in { height: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.brand svg { width: 30px; height: 30px; color: var(--ink); }
.brand b { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 29px; letter-spacing: -0.01em; line-height: 1; }
.folio { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-2); white-space: nowrap; }
.folio b { font-weight: 600; color: var(--sage-deep); margin-right: .45em; }
.head-r { display: flex; align-items: center; gap: 18px; justify-self: end; }
.head-r a.x { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; color: var(--ink); }
.head-r a.x svg { width: 17px; height: 17px; }
.contents-btn { font-family: var(--sans); font-weight: 600; font-size: 14px; background: none; border: 0; border-bottom: 1.5px solid var(--ink); color: var(--ink); padding: 4px 0 3px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; letter-spacing: .02em; }
.contents-btn i { display: inline-block; width: 14px; height: 9px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 50% / 70% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1.5px no-repeat; }
.toc { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 3px double var(--ink); display: none; padding: 34px var(--gutter) 40px; }
.toc.open { display: block; }
.toc-in { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; text-decoration: none; font-family: var(--serif); font-size: 29px; font-weight: 500; line-height: 1.1; }
.toc li a .rn { width: 3.2ch; color: var(--sage-deep); font-style: italic; }
.toc li a .dots { flex: 1; border-bottom: 2px dotted var(--ink-3); transform: translateY(-5px); min-width: 20px; }
.toc li a .pg { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.toc li a:hover .t { background: linear-gradient(var(--sage-wash), var(--sage-wash)) 0 100% / 100% 100% no-repeat; }
.toc li.cur a .t { font-style: italic; }
.toc aside p { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.toc aside .small { display: block; margin-top: 14px; }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 880px; }
section.chap { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); border-top: 1px solid var(--ink); }
.chap-head { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: baseline; margin-bottom: clamp(26px, 4vw, 52px); }
.chap-head .rn { font-family: var(--serif); font-style: italic; font-size: clamp(54px, 8vw, 104px); line-height: .85; color: var(--sage-deep); font-weight: 500; }
.chap-head .eyebrow { display: block; margin-bottom: 10px; }
.cols { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 260px); gap: 56px; justify-content: space-between; align-items: start; }
section.chap .cols > .main > p:first-child::first-letter { font-family: var(--serif); font-size: 4.4em; float: left; line-height: .8; padding: .06em .08em 0 0; color: var(--sage-deep); font-weight: 600; }
.note { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); border-top: 1px solid var(--ink); padding-top: 8px; margin-bottom: 26px; }
.note b { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--sage-deep); display: block; margin-bottom: 2px; font-weight: 600; }
.note i { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; display: block; color: var(--ink-3); margin-bottom: 4px; }
@media (max-width: 960px) {
  .cols { grid-template-columns: 1fr; gap: 12px; }
  .chap-head { grid-template-columns: 1fr; gap: 6px; }
  .chap-head .rn { font-size: 64px; }
  .toc-in { grid-template-columns: 1fr; gap: 20px; }
  .toc li a { font-size: 24px; }
  .toc aside { display: none; }
  .head-in { grid-template-columns: auto 1fr auto; }
  .folio { text-align: center; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
  .brand b { font-size: 24px; }
  .head-r a.x { display: none; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(34px, 5vw, 64px) 0 0; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.hero h1 { margin: 14px 0 0; }
.hero .lede { margin: 0 0 22px; }
.ca { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); border-bottom: 1px dotted var(--ink-3); padding: 6px 0; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; }
.ca b { font-weight: 400; color: var(--ink); }
.ca u { text-decoration: none; font-family: var(--sans); font-weight: 600; color: var(--sage-deep); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.plate { margin: clamp(26px, 4vw, 48px) 0 0; position: relative; }
.plate-frame { border: 1.5px solid var(--ink); padding: 7px; background: var(--paper); }
.plate-frame > .inner { border: 1px solid var(--ink); position: relative; overflow: hidden; background: var(--paper); line-height: 0; }
.plate canvas { width: 100%; height: auto; display: block; touch-action: pan-y; }
.plate figcaption { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); padding-top: 10px; line-height: 1.3; }
.plate figcaption b { font-style: normal; font-weight: 600; font-variant: small-caps; letter-spacing: .08em; color: var(--ink); margin-right: .5em; }
.simbtn { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: none; background: none; border: 0; border-bottom: 1.5px solid var(--ink); color: var(--ink); padding: 1px 0; margin-left: 10px; cursor: pointer; }
.simbtn:hover { background: var(--sage-wash); }
.plate figcaption .mode { font-family: var(--mono); font-style: normal; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 960px) {
  .hero-top { grid-template-columns: 1fr; }
  .plate-frame > .inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plate canvas { min-width: 920px; }
}

/* ---------------------------------------------------------------- the ledger */
.ledger { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); margin-top: 34px; }
.ledger > div { padding: 18px 18px 16px; border-right: 1px solid var(--rule); }
.ledger > div:last-child { border-right: 0; }
.ledger b { display: block; font-family: var(--serif); font-size: clamp(34px, 4.2vw, 56px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.ledger span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ledger b.tick { animation: tick .6s ease; }
@keyframes tick { 0% { color: var(--sage-deep); transform: translateY(-3px); } 100% { color: var(--ink); transform: none; } }
@media (max-width: 760px) { .ledger { grid-template-columns: repeat(2, 1fr); } .ledger > div:nth-child(2n) { border-right: 0; } .ledger > div { border-bottom: 1px solid var(--rule); } }

/* ---------------------------------------------------------------- residents + feed */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); margin-top: 44px; }
.two h3 { border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: baseline; }
.two h3 a { font-family: var(--sans); font-size: 13px; font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.res-row { text-decoration: none; color: inherit; display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.res-row:hover { background: linear-gradient(90deg, var(--sage-wash), transparent 80%); }
.res-row canvas { width: 52px; height: 62px; }
.res-row .nm { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1; }
.res-row .nm small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-3); margin-top: 4px; letter-spacing: .04em; }
.res-row .bal { font-family: var(--serif); font-size: 26px; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.res-row .bal small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.feed .t { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 70px 1fr; gap: 14px; }
.feed .t .r { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; padding-top: 4px; }
.feed .t .s b { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.feed .t .s q { display: block; font-family: var(--serif); font-style: italic; font-size: 18.5px; line-height: 1.3; color: var(--ink-2); margin-top: 2px; quotes: '\201c' '\201d'; }
.feed .t.new { animation: fresh 1.4s ease; }
@keyframes fresh { 0% { background: var(--sage-wash); } 100% { background: transparent; } }
.tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--rule); padding: 1px 5px; margin-left: 8px; vertical-align: 3px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- eight places */
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.place { padding: 14px 14px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); position: relative; transition: background .2s; }
.place:hover { background: var(--paper-2); }
.place canvas { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--ink); margin-bottom: 12px; background: var(--paper); }
.place .n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-3); }
.place h4 { font-size: 26px; margin: 2px 0 2px; }
.place h4 em { color: var(--sage-deep); }
.place p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: 6px 0 8px; }
.place .used { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.place .used b { color: var(--ink); font-weight: 400; }
@media (max-width: 1000px) { .places { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .places { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- the round (flow) + calculator */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 30px 0; border-top: 1px solid var(--ink); }
.flow > div { padding: 18px 14px 18px 0; position: relative; }
.flow > div::after { content: ''; position: absolute; right: 8px; top: 30px; width: 14px; height: 1px; background: var(--ink); }
.flow > div:last-child::after { display: none; }
.flow .n { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--sage-deep); }
.flow b { display: block; font-family: var(--serif); font-size: 21px; margin: 6px 0 4px; line-height: 1.1; }
.flow p { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.flow > div.on .n { color: var(--ink); }
.flow > div.on { background: linear-gradient(var(--sage-wash), var(--sage-wash)) 0 0 / 100% 3px no-repeat; }
@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, 1fr); } .flow > div::after { display: none; } }
.calc { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 24px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); margin: 36px 0; }
.calc label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: 18px; }
.calc label span { float: right; color: var(--ink); font-size: 13px; letter-spacing: 0; text-transform: none; font-family: var(--serif); font-size: 20px; }
.calc input[type=range] { width: 100%; accent-color: var(--sage-deep); margin: 8px 0 0; }
.calc table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.calc td { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.calc td:last-child { text-align: right; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.calc tr.total td { border-bottom: 2px solid var(--ink); }
.calc .small { margin-top: 12px; display: block; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- proof list + night band */
.proof { list-style: none; padding: 0; margin: 26px 0; border-top: 1px solid var(--ink); }
.proof li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.proof li b { font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; color: var(--sage-deep); font-variant-numeric: lining-nums; }
.proof li span { font-size: 15.5px; line-height: 1.5; }
.proof li span em { font-family: var(--serif); font-size: 20px; font-style: italic; }
.night { background: var(--night); color: #e9e2d0; border-top: 0; }
.night .num, .night h2 em, .night .chap-head .rn { color: #9fbd96; }
.night .eyebrow, .night .muted, .night small { color: #b9b09a; }
.night .note { border-top-color: #6a6250; color: #b9b09a; }
.night .link, .night main p a { background-image: linear-gradient(#3d4f38, #3d4f38); }
.night .btn { color: #f1ecdf; border-bottom-color: #f1ecdf; background-image: linear-gradient(#3d4f38, #3d4f38); }
.limits { list-style: none; padding: 0; margin: 0; counter-reset: l; border-top: 1px solid #6a6250; }
.limits li { counter-increment: l; padding: 18px 0 18px 64px; border-bottom: 1px solid #3a3528; position: relative; font-size: 16.5px; line-height: 1.5; }
.limits li::before { content: counter(l, lower-roman) '.'; position: absolute; left: 0; top: 14px; font-family: var(--serif); font-style: italic; font-size: 34px; color: #9fbd96; }
.limits li b { font-family: var(--serif); font-size: 23px; font-weight: 600; display: block; color: #f1ecdf; }

/* ---------------------------------------------------------------- tables and generic */
table.t { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
table.t th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); padding: 8px 12px 8px 0; }
table.t td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.t td.mono, table.t td code { overflow-wrap: anywhere; }
table.t td.mono { white-space: nowrap; }
table.t td.addr, table.t td .addr { white-space: normal; word-break: break-all; font-size: 12px; }
.scroll-x { overflow-x: auto; }
.pill-note { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 3px double var(--ink); margin-top: clamp(60px, 9vw, 120px); padding: 40px 0 56px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h5 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 7px 0; font-size: 15px; }
.foot .big { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; margin-bottom: 10px; display: block; }
.foot .fine { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- reveal on scroll */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .btn, .btn::after { transition: none; } html { scroll-behavior: auto; } .ledger b.tick, .feed .t.new { animation: none; } }

/* ---------------------------------------------------------------- docs */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: clamp(24px, 4vw, 56px); max-width: 1360px; margin: 0 auto; padding: 40px var(--gutter) 0; align-items: start; }
.docs nav.side { position: sticky; top: calc(var(--head-h) + 24px); max-height: calc(100vh - var(--head-h) - 48px); overflow-y: auto; padding-right: 12px; font-size: 14.5px; }
.docs nav.side h6 { font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 6px; }
.docs nav.side h6:first-child { margin-top: 0; }
.docs nav.side a { display: block; padding: 5px 0 5px 12px; text-decoration: none; border-left: 2px solid var(--rule); color: var(--ink-2); }
.docs nav.side a:hover { color: var(--ink); border-left-color: var(--ink-3); }
.docs nav.side a.cur { color: var(--ink); font-weight: 600; border-left-color: var(--sage-deep); background: linear-gradient(90deg, var(--sage-wash), transparent); }
.docs article { max-width: 740px; min-width: 0; }
.docs article h1 { font-size: clamp(40px, 5vw, 64px); margin: 8px 0 18px; }
.docs article h2 { font-size: clamp(28px, 3vw, 38px); margin: 2em 0 .5em; padding-top: .6em; border-top: 1px solid var(--rule); }
.docs article h3 { font-size: 24px; margin: 1.6em 0 .4em; }
.docs article ul, .docs article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.docs article li { margin: .35em 0; }
.docs article .lede { margin-bottom: 1.2em; }
.docs aside.toc2 { position: sticky; top: calc(var(--head-h) + 24px); font-size: 13.5px; }
.docs aside.toc2 h6 { font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.docs aside.toc2 a { display: block; padding: 4px 0; text-decoration: none; color: var(--ink-2); }
.docs aside.toc2 a:hover { color: var(--ink); }
.docs .callout { border-left: 3px solid var(--sage); background: var(--paper-2); padding: 12px 16px; margin: 1.4em 0; font-size: 15px; }
.docs .callout.warn { border-left-color: var(--rust); }
.docs .callout b { font-family: var(--serif); font-size: 19px; display: block; margin-bottom: 2px; }
.docs .pager { display: flex; justify-content: space-between; gap: 20px; border-top: 3px double var(--ink); margin-top: 3em; padding-top: 18px; font-family: var(--serif); font-size: 22px; }
.docs .pager small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 1100px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } .docs aside.toc2 { display: none; } }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; } .docs nav.side { position: static; max-height: none; border-bottom: 1px solid var(--rule); padding-bottom: 16px; } }

/* ---------------------------------------------------------------- record / residents / measures */
.rec-tools { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 20px 0 8px; font-size: 14px; }
.rec-tools button { font-family: var(--sans); font-size: 13.5px; font-weight: 600; background: none; border: 0; border-bottom: 1.5px solid transparent; color: var(--ink-2); padding: 3px 0; cursor: pointer; }
.rec-tools button.on { color: var(--ink); border-bottom-color: var(--ink); background: linear-gradient(var(--sage-wash), var(--sage-wash)) 0 100% / 100% 45% no-repeat; }
.rec-row { display: grid; grid-template-columns: 56px 92px 1fr 120px; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.rec-row .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 6px; }
.rec-row .who b { font-family: var(--serif); font-size: 22px; line-height: 1; display: block; }
.rec-row .who small { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; }
.rec-row .what b { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.rec-row .what q { display: block; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.32; color: var(--ink-2); margin-top: 3px; quotes: '\201c' '\201d'; }
.rec-row .what .fb { display: block; font-size: 12.5px; color: var(--rust); margin-top: 4px; }
.rec-row .ver { text-align: right; font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--ink-3); }
.rec-row .ver .ok { color: var(--sage-deep); font-weight: 600; }
.rec-row .ver .no { color: var(--rust); font-weight: 600; }
@media (max-width: 760px) { .rec-row { grid-template-columns: 1fr; gap: 6px; } .rec-row .ver { text-align: left; } }
.big-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); margin-top: 26px; }
.big-res article { padding: 18px 18px 22px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); cursor: pointer; position: relative; }
.big-res article:hover { background: var(--paper-2); }
.big-res article.left { opacity: .55; }
.big-res canvas { width: 100%; height: 170px; display: block; border-bottom: 1px solid var(--ink); margin-bottom: 12px; background: linear-gradient(var(--paper-2), var(--paper)); }
.big-res h3 { font-size: 34px; }
.big-res .meta { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0 10px; }
.big-res .bal { font-family: var(--serif); font-size: 32px; font-weight: 500; }
.big-res .bal small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-left: 6px; }
.big-res q { display: block; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--ink-2); margin-top: 10px; quotes: '\201c' '\201d'; }
.drawer { position: fixed; right: 0; top: var(--head-h); bottom: 0; width: min(520px, 100%); background: var(--paper); border-left: 1px solid var(--ink); z-index: 40; transform: translateX(102%); transition: transform .3s ease; overflow-y: auto; padding: 26px 26px 40px; box-shadow: -14px 0 30px rgba(33,29,22,.08); }
.drawer.open { transform: none; }
.drawer .x { position: absolute; right: 18px; top: 14px; font-family: var(--sans); font-size: 13px; font-weight: 600; background: none; border: 0; border-bottom: 1.5px solid var(--ink); cursor: pointer; padding: 2px 0; }
.drawer h3 { font-size: 44px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; margin-top: 30px; }
.chart { border-top: 1px solid var(--ink); padding-top: 10px; }
.chart h4 { font-size: 26px; }
.chart p.q { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-2); margin: 2px 0 12px; line-height: 1.3; }
.chart canvas, .chart svg { width: 100%; height: auto; display: block; }
.chart.wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .charts { grid-template-columns: 1fr; } }
.addr { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.empty { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-2); padding: 30px 0; }
[hidden]{display:none!important}

.plate video { width: 100%; height: auto; display: block; background: var(--night); }

.cols > * { min-width: 0; }
.ca { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
@media (max-width: 760px) { table.t td.mono { white-space: normal; } pre { font-size: 12px; } }

@media (max-width: 760px) { #short .flow { grid-template-columns: 1fr !important; } }
#short .flow > div::after { display: none; }
#short .flow > div { padding-right: 28px; }

.brand img { width: 34px; height: 34px; border-radius: 50%; display: block; }
