/* njwholesaleproperties.com: the closing table. A New Jersey settlement statement on a yellow legal pad, with its red
   margin line, Rule Blue ruled lines and a red pencil. One family (Recursive, self-hosted): the sans at 800 for display,
   MONO 1 with tabular numerals for every figure, table, line number and line item. Colors are the seven brief tokens and
   their tints only. Ruled lines are borders; nothing here draws an image, a shadow or a gradient. */

@font-face {
  font-family: "Recursive";
  src: url(/assets/fonts/recursive-latin-mono-casl-wght.woff2) format("woff2-variations"), url(/assets/fonts/recursive-latin-mono-casl-wght.woff2) format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --pad: #F6F1E3;
  --ink: #1B1B1F;
  --rule: #9DB8D9;
  --margin: #D9534F;
  --red: #B23A26;
  --brass: #8A6A1F;
  --slate: #3D4654;
  /* tints (color-mix toward Pad) */
  --rule-soft: color-mix(in srgb, var(--rule) 45%, var(--pad));
  --red-wash: color-mix(in srgb, var(--red) 8%, var(--pad));
  --brass-wash: color-mix(in srgb, var(--brass) 10%, var(--pad));
  --slate-soft: color-mix(in srgb, var(--slate) 82%, var(--pad));

  --sans: "Recursive", system-ui, sans-serif;
  --line: 2.5rem;            /* one ruled line on the statement and the ledgers */
  --gutter: 16px;
  --margin-x: 0px;           /* the red margin line's x inside .wrap; 0 below 1100px (no line) */
  --measure: 66ch;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pad);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-variation-settings: "MONO" 0, "CASL" 0;
  font-kerning: normal;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, dl, figure, table, fieldset { margin: 0; }
ol, ul { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* MONO 1, tabular figures: every figure, table, line number and line item */
.mono, table, .num, .tag, .meta, .crumbs, .fig, .stmt, .ledger-tag, .toc, .sources-list, .strategy-list, .steps .step-n {
  font-variation-settings: "MONO" 1, "CASL" 0;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ---------- links, buttons, focus ---------- */
a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em;
    border: 2px solid transparent; margin: 0 -2px; border-radius: 2px; }
a:hover { text-decoration-thickness: 2px; }
/* focus: a 3px Red Pencil outline plus a 2px Ink inner border (every focusable element reserves the 2px border) */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 0; border-color: var(--ink) !important; }
.on-slate a:focus-visible, .on-slate button:focus-visible { background: var(--pad); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 3rem; padding: 0.55rem 1.25rem;
  background: var(--red); color: var(--pad);
  border: 2px solid var(--red); border-radius: var(--radius); margin: 0;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); border-color: var(--ink); text-decoration: none; }
.btn-compact { min-height: 2.75rem; padding: 0.45rem 1rem; font-size: 1rem; width: 100%; }
.text-link { font-weight: 700; }

.skip { position: absolute; left: 8px; top: -60px; background: var(--pad); padding: 0.5rem 1rem; z-index: 10; margin: 0; }
.skip:focus-visible { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- the 12-column page ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

/* the legal-pad margin line: Margin Red, decorative, down the left edge of the content column at 1100px and up */
@media (min-width: 1100px) {
  :root { --gutter: 40px; --margin-x: 64px; }
  .ruled-margin { position: relative; }
  .ruled-margin::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + var(--margin-x) - 14px);
    border-left: 2px solid var(--margin); pointer-events: none;
  }
  .ruled-margin > .wrap, .wrap.ruled-margin { padding-left: calc(var(--gutter) + var(--margin-x)); }
}
@media (min-width: 1100px) {
  .ruled-margin { --line-x: calc(var(--gutter) + var(--margin-x) - 20px); }
}

/* ---------- header ---------- */
.site-header { border-bottom: 2px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.125rem; line-height: 1.1;
            font-variation-settings: "MONO" 0, "CASL" 0.3; letter-spacing: -0.01em; }
.wordmark svg { width: 26px; height: 30px; flex: none; }
.site-nav ul { list-style: none; display: flex; gap: 4px 18px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 6px 0; display: inline-block; }
.site-nav a:hover { color: var(--red); text-decoration: underline; }
.nav-short { display: none; }
.site-nav a[aria-current] { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 520px) {
  .site-nav .nav-optional, .nav-long { display: none; }
  .nav-short { display: inline; }
  .header-row { flex-wrap: nowrap; gap: 10px; }
  .wordmark { font-size: 0.9375rem; gap: 8px; }
  .site-nav ul { gap: 4px 14px; flex-wrap: nowrap; }
  .site-nav a { font-size: 0.9375rem; }
}

/* ---------- display type ---------- */
.display, h1 { font-weight: 800; font-variation-settings: "MONO" 0, "CASL" 0.3; letter-spacing: -0.02em; line-height: 1.02; }
h1 { font-size: clamp(2.375rem, 1.6rem + 3.4vw, 4.5rem); }
.hero h1 { font-size: clamp(3.125rem, 2.25rem + 3.4vw, 4.5rem); }
h2 { font-weight: 800; font-variation-settings: "MONO" 0, "CASL" 0.3; letter-spacing: -0.01em; line-height: 1.15; font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
p, li { max-width: var(--measure); }

/* ---------- the hero: the closing statement ---------- */
.hero { padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.hero h1 { max-width: 12ch; }
.hero-line { margin-top: 16px; font-size: 1.0625rem; line-height: 1.5; max-width: 34ch; }
@media (min-width: 600px) { .hero-line { font-size: 1.1875rem; } }
.hero-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-actions .text-link { font-size: 1.0625rem; }
@media (min-width: 1100px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .hero-text { grid-column: 1 / span 6; padding-top: 12px; }
  .statement { grid-column: 7 / span 6; }
  .hero h1 { font-size: 4.5rem; }
}

/* the statement: a typeset seller's closing statement on ruled paper */
.statement { position: relative; background: var(--pad); border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 16px 16px; }
.stmt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-right: 104px; min-height: 2.25rem; }
.stmt-title { font-size: 1.25rem; font-weight: 800; font-variation-settings: "MONO" 0, "CASL" 0.3; line-height: 1.2; }
.stamp {
  position: absolute; top: 12px; right: 14px; transform: rotate(-6deg);
  border: 2px solid var(--brass); border-radius: var(--radius); padding: 1px 10px;
  color: var(--brass); font-weight: 800; font-size: 1.25rem; line-height: 1.4;
  font-variation-settings: "MONO" 1, "CASL" 0;
}
.tabs { display: flex; gap: 8px; margin: 10px 0 6px; flex-wrap: wrap; }
.tab {
  min-height: 2.75rem; padding: 0.4rem 0.75rem; border-radius: var(--radius); cursor: pointer; margin: 0;
  background: var(--pad); color: var(--ink); border: 2px solid var(--ink); font-weight: 700; font-size: 1rem;
  font-variation-settings: "MONO" 1, "CASL" 0; font-feature-settings: "tnum" 1;
}
.tab { text-align: left; }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--pad); }
.tab:hover { border-color: var(--red); }
.no-js .tabs { display: none; }

.stmt-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 1rem; }
.stmt-table caption { text-align: left; }
.stmt-table th, .stmt-table td { border-bottom: 1px solid var(--rule); height: var(--line); padding: 0 6px; vertical-align: middle; text-align: left; font-weight: 400; }
.stmt-table thead th { font-weight: 700; font-size: 0.9375rem; border-bottom: 2px solid var(--rule); }
.stmt-table .num { width: 2.25rem; color: var(--brass); font-weight: 800; font-size: 1.1875rem; padding-left: 0; }
.stmt-table .fig { width: 8.25rem; text-align: right; white-space: nowrap; }
.stmt-table .fig.varies { font-weight: 400; }
.stmt-table .label a { color: var(--ink); text-decoration-color: var(--red); }
.stmt-table .label a:hover { color: var(--red); }
.stmt-table tr.total td, .stmt-table tr.total th { border-top: 4px double var(--ink); border-bottom: 1px solid var(--rule); font-weight: 800; }
.stmt-table tr.total .fig { color: var(--red); }
.stmt-table tr.blank td { height: calc(var(--line) * 0.5); }
.js .stmt-table [data-col] { display: none; }
.js .stmt-table[data-show="450000"] [data-col="450000"], .js .stmt-table[data-show="850000"] [data-col="850000"], .js .stmt-table[data-show="1200000"] [data-col="1200000"] { display: table-cell; }
.stmt-note { margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; max-width: none; }
.stmt-sub { font-size: 0.9375rem; }
@media (max-width: 599px) {
  .statement { padding: 12px 12px 14px; }
  .stmt-head { padding-right: 92px; }
  .stamp { font-size: 1.1875rem; right: 10px; }
  .stmt-table .fig { width: 6.75rem; padding-right: 2px; }
  .stmt-table .num { width: 1.75rem; }
  .stmt-table .label { padding-left: 2px; font-size: 0.9375rem; }
  .tabs { gap: 6px; flex-wrap: nowrap; }
  .tab { padding: 0.4rem 0.5rem; font-size: 0.9375rem; }
  /* no JavaScript: all three price columns stay, each row's label on its own ruled line above its three figures */
  .no-js .stmt-table, .no-js .stmt-table tbody, .no-js .stmt-table thead { display: block; }
  .no-js .stmt-table tr { display: grid; grid-template-columns: 1.75rem repeat(3, minmax(0, 1fr)); column-gap: 6px; border-bottom: 1px solid var(--rule); }
  .no-js .stmt-table thead .fig { font-size: 0.875rem; }
  .no-js .stmt-table th, .no-js .stmt-table td { border-bottom: 0; height: auto; min-height: 2rem; padding: 4px 2px; width: auto; display: block; }
  .no-js .stmt-table td.label, .no-js .stmt-table th.label { grid-column: 2 / -1; }
  .no-js .stmt-table .num { grid-row: 1; grid-column: 1; }
  .no-js .stmt-table thead .num { visibility: hidden; }
  .no-js .stmt-table thead th.label { display: none; }
  .no-js .stmt-table thead tr { grid-template-columns: 1.75rem repeat(3, minmax(0, 1fr)); }
  .no-js .stmt-table .fig { grid-row: 2; font-size: 1rem; }
  .no-js .stmt-table .fig[data-col="450000"] { grid-column: 2; }
  .no-js .stmt-table .fig[data-col="850000"] { grid-column: 3; }
  .no-js .stmt-table .fig[data-col="1200000"] { grid-column: 4; }
  .no-js .stmt-table thead .fig { grid-row: 1; }
  .no-js .stmt-table tr.total { border-top: 4px double var(--ink); }
  .no-js .stmt-table tr.total td, .no-js .stmt-table tr.total th { border-top: 0; }
}

/* ---------- sections, the ledger ---------- */
.section { padding: 48px 0; }
.section + .section { padding-top: 8px; }
.section-head { display: grid; gap: 10px; margin-bottom: 20px; }
.answer { font-size: 1.1875rem; }
@media (min-width: 1100px) {
  .section-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .section-head h2 { grid-column: 1 / span 6; }
  .section-head .answer { grid-column: 7 / span 6; }
}

.ledger { list-style: none; border-top: 2px solid var(--ink); }
.ledger li { max-width: none; }
.ledger-row { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ledger-n { grid-row: 1 / span 3; color: var(--brass); font-weight: 800; font-size: 1.1875rem; font-variation-settings: "MONO" 1; font-feature-settings: "tnum" 1; }
.ledger-topic { font-weight: 800; font-size: 1.25rem; line-height: 1.3; font-variation-settings: "MONO" 0, "CASL" 0.3; }
.ledger-text { font-size: 1.0625rem; line-height: 1.55; max-width: var(--measure); }
.ledger-tag { justify-self: start; font-size: 0.9375rem; font-weight: 700; padding: 1px 8px; border: 1px solid var(--ink); border-radius: var(--radius); white-space: nowrap; }
@media (min-width: 1100px) {
  .ledger { margin-left: calc(var(--margin-x) * -1); }
  .ledger-row { grid-template-columns: var(--margin-x) repeat(12, minmax(0, 1fr)); column-gap: 24px; min-height: calc(var(--line) * 2); padding: 12px 0; }
  .ledger-n { grid-row: 1; grid-column: 1; text-align: right; padding-right: 26px; }
  .ledger-topic { grid-column: 2 / span 3; }
  .ledger-text { grid-column: 5 / span 6; }
  .ledger-tag { grid-column: 11 / -1; justify-self: end; }
}

/* ---------- the signup slip ---------- */
.slip-band { background: var(--slate); color: var(--pad); padding: 56px 0; }
.slip {
  background: var(--pad); color: var(--ink); border-radius: 0 0 var(--radius) var(--radius); position: relative;
  border-top: 3px dashed var(--ink); padding: 26px 20px 24px;
}
.slip-tear { margin: 0 0 8px 12px; font-size: 0.875rem; color: var(--pad); font-variation-settings: "MONO" 1; line-height: 1.2; }
.slip-h { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); font-weight: 800; font-variation-settings: "MONO" 0, "CASL" 0.3; line-height: 1.15; letter-spacing: -0.01em; }
.slip-sub { margin-top: 8px; }
.slip-mini { border: 2px solid var(--ink); border-top: 3px dashed var(--ink); border-radius: 0 0 var(--radius) var(--radius); padding: 22px 16px 20px; margin-top: 40px; }
.slip-mini .slip-h { font-size: 1.5rem; }
@media (min-width: 1100px) { .slip { padding: 32px 36px 32px; } }

/* the form (mirrored from the Liva Holdings buyers list) */
.deals-form { margin-top: 20px; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 20px; align-items: start; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .label-row label, .fgrid legend { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.req, .opt { font-size: 0.875rem; font-variation-settings: "MONO" 1; }
input[type=text], input[type=email], input[type=tel], select, .picker-btn, .picker-filter {
  width: 100%; min-height: 2.875rem; padding: 0.5rem 0.75rem; margin: 0;
  background: var(--pad); border: 2px solid var(--ink); border-radius: var(--radius); font-size: 1.0625rem; line-height: 1.3;
}
select[multiple] { padding: 4px; min-height: 0; }
.hint { font-size: 0.9375rem; line-height: 1.45; margin-bottom: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.45; max-width: 72ch; }
.check input { width: 1.25rem; height: 1.25rem; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.sms-consent { padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--brass-wash); margin-bottom: 20px; }
.sms-consent[hidden] { display: none; }
.chips { border: 0; padding: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 0.4rem 0.7rem; border: 2px solid var(--ink); border-radius: var(--radius); font-size: 0.9375rem; line-height: 1.3; cursor: pointer; background: var(--pad); }
.chip input:checked + span { background: var(--ink); color: var(--pad); }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 0; }
.chip span:hover { border-color: var(--red); }
.form-foot { margin-top: 24px; display: grid; gap: 16px; align-items: center; }
.consent { font-size: 0.9375rem; line-height: 1.5; }
.form-error { margin-top: 16px; padding: 10px 12px; border: 2px solid var(--red); border-radius: var(--radius); background: var(--red-wash); color: var(--ink); font-weight: 600; }
.form-error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }
.thanks { display: none; }
.thanks:target, .thanks.is-on { display: block; }
.thanks-text { font-size: 1.375rem; font-weight: 800; font-variation-settings: "MONO" 0, "CASL" 0.3; line-height: 1.3; padding: 18px 0 4px; border-bottom: 4px double var(--ink); }
.slip:has(.thanks:target) .deals-form { display: none; }

/* the state picker (with JavaScript; without it the native multi-select shows) */
.picker { position: relative; }
.picker-btn { text-align: left; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.picker-btn .picked { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-panel { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; width: max(100%, 300px); background: var(--pad); border: 2px solid var(--ink); border-radius: var(--radius); padding: 10px; }
.picker-panel[hidden] { display: none; }
.picker-list { max-height: 260px; overflow: auto; margin: 8px 0; list-style: none; }
.picker-list li { border-bottom: 1px solid var(--rule); }
.picker-list label { display: flex; gap: 8px; align-items: center; padding: 6px 2px; font-size: 1rem; cursor: pointer; }
.picker-list input { accent-color: var(--red); width: 1.125rem; height: 1.125rem; }
.picker-list li[hidden] { display: none; }
.picker-done { min-height: 2.5rem; }
.js .states-native, .js .states-hint-nojs { display: none; }
.no-js .picker { display: none; }
.field-states.is-invalid .picker-btn, .field-states.is-invalid select { border-color: var(--red); }

@media (min-width: 700px) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid .span-all { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .slip .fgrid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
  .slip .f-name { grid-column: span 2; }
  .slip .f-email { grid-column: span 3; }
  .slip .f-phone { grid-column: span 2; }
  .slip .f-states { grid-column: span 3; }
  .slip .f-cities { grid-column: span 2; }
  .slip .sms-consent { grid-column: 1 / -1; }
  .slip .f-strategies { grid-column: span 3; }
  .slip .f-price { grid-column: span 3; }
  .slip .f-buy { grid-column: span 3; }
  .slip .f-analysis { grid-column: span 3; }
  .slip .form-foot { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
  /* labels that wrap above a narrow field keep every input on the same line */
  .slip .fgrid { align-items: stretch; }
  .slip .field { grid-template-rows: auto 1fr; }
  .slip .field > input, .slip .field > .picker, .slip .field > select { align-self: end; }
  .slip-mini .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slip-mini .fgrid > * { grid-column: auto; }
  .slip-mini .sms-consent, .slip-mini .chips { grid-column: 1 / -1; }
  .slip-mini .form-foot { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- the Appraize band ---------- */
.appraize-box { border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 24px; }
.appraize-box h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem); max-width: 22ch; }
.appraize-box p { margin-top: 12px; }
.appraize-box .see { margin-top: 18px; display: inline-block; font-weight: 700; }
.strategy-list { list-style: none; border-top: 2px solid var(--ink); }
.strategy-list li { display: grid; grid-template-columns: 2.25rem 1fr; border-bottom: 1px solid var(--rule); min-height: 2.25rem; align-items: center; font-size: 1.0625rem; }
.strategy-list .num { color: var(--brass); font-weight: 800; font-size: 1.1875rem; }
@media (min-width: 1100px) {
  .appraize-box { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 32px 36px; }
  .appraize-copy { grid-column: 1 / span 7; }
  .strategy-wrap { grid-column: 8 / span 5; }
}
.appraize-single .appraize-copy { grid-column: 1 / -1; }
.appraize-tag { font-size: 1.75rem; line-height: 1.15; max-width: 24ch; }
.strategy-cap { font-weight: 700; font-size: 1rem; margin-bottom: 6px; font-variation-settings: "MONO" 1; }

/* ---------- the author box: a signed line on the pad ---------- */
.author { padding: 40px 0 48px; }
.signed { display: grid; gap: 10px; }
.signature { font-weight: 800; font-variation-settings: "MONO" 0, "CASL" 0.4; font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem); line-height: 1; letter-spacing: -0.02em;
             border-bottom: 2px solid var(--ink); padding: 0 0 6px; max-width: 520px; }
.signature-x { color: var(--brass); font-size: 1.1875rem; font-weight: 800; font-variation-settings: "MONO" 1; margin-right: 10px; }
.signed p:not(.signature) { max-width: 60ch; }
@media (min-width: 1100px) {
  .signed { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .signature { grid-column: 1 / span 5; }
  .signed p:not(.signature) { grid-column: 6 / span 7; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--slate); color: var(--pad); padding: 44px 0 0; }
.site-footer a { color: var(--pad); }
.footer-grid { display: grid; gap: 28px; }
.footer-name { font-weight: 800; font-size: 1.375rem; font-variation-settings: "MONO" 0, "CASL" 0.3; }
.footer-bio { margin-top: 8px; font-size: 1rem; max-width: 52ch; }
.footer-links { list-style: none; columns: 2; column-gap: 24px; font-size: 1rem; }
.footer-links li { padding: 4px 0; break-inside: avoid; }
.footer-fine { margin-top: 36px; border-top: 1px solid var(--rule); padding-top: 12px; padding-bottom: 24px; font-size: 0.9375rem; }
@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .footer-about { grid-column: 1 / span 6; }
  .footer-nav { grid-column: 8 / span 5; }
}

/* ---------- inner pages: header band, rail, prose ---------- */
.page-head { padding: 22px 0 26px; border-bottom: 2px solid var(--rule); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 0.9375rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--slate); }
.crumbs a { color: var(--slate); }
.page-head h1 { margin-top: 12px; font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem); max-width: 20ch; }
.lede { margin-top: 14px; font-size: 1.1875rem; line-height: 1.5; }
.meta { margin-top: 12px; font-size: 0.9375rem; color: var(--slate); }

.toc-details { margin-top: 16px; border: 2px solid var(--ink); border-radius: var(--radius); max-width: var(--measure); }
.toc-details summary { cursor: pointer; padding: 10px 14px; font-weight: 700; list-style-position: inside; border: 2px solid transparent; margin: -2px; border-radius: var(--radius); }
.toc-details[open] summary { border-bottom: 1px solid var(--rule); }
.toc { list-style: none; counter-reset: toc; font-size: 0.9375rem; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 2rem 1fr; border-bottom: 1px solid var(--rule); max-width: none; }
.toc li::before { content: counter(toc, decimal-leading-zero); color: var(--brass); font-weight: 800; padding: 7px 0 0 0; font-size: 1.1875rem; line-height: 1.2; }
.toc a { color: var(--ink); text-decoration: none; display: block; padding: 8px 4px; line-height: 1.35; }
.toc a:hover { color: var(--red); text-decoration: underline; }
.toc a[aria-current] { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; font-weight: 700; }
.toc-details .toc { padding: 0 14px 8px; }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 24px; }
.rail { display: none; }
@media (min-width: 1100px) {
  .toc-details { display: none; }
  .page-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .page-main { grid-column: 1 / span 8; }
  .rail { display: block; grid-column: 9 / span 4; }
  .rail-inner { position: sticky; top: 24px; display: grid; gap: 18px; }
  .rail-h { font-weight: 700; font-size: 1rem; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-variation-settings: "MONO" 1; }
}

.prose > * + * { margin-top: 18px; }
.q { padding-bottom: 12px; }
.q + .q { margin-top: 40px; }
.q > * + * { margin-top: 16px; }
.q h2 { scroll-margin-top: 20px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 8px; }
.prose ul.ruled, .prose ol.ruled { padding-left: 0; list-style: none; border-top: 2px solid var(--ink); }

/* a figure set as a statement table: MONO, Rule Blue rules, right-aligned figures */
.ftable-wrap { max-width: 100%; overflow-x: auto; }
.ftable { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
.ftable caption { text-align: left; font-weight: 700; padding-bottom: 8px; font-size: 1rem; }
.ftable th, .ftable td { border-bottom: 1px solid var(--rule); padding: 9px 8px; vertical-align: top; text-align: left; }
.ftable thead th { border-bottom: 2px solid var(--ink); font-weight: 700; font-size: 0.9375rem; vertical-align: bottom; }
.ftable .r { text-align: right; white-space: nowrap; }
.ftable .n { color: var(--brass); font-weight: 800; font-size: 1.1875rem; width: 2.5rem; padding-left: 0; }
.ftable tbody th { font-weight: 600; }
.ftable tr.total td, .ftable tr.total th { border-top: 4px double var(--ink); font-weight: 800; }
.ftable .side { font-weight: 700; }
.ftable tr.group th { background: var(--brass-wash); border-bottom: 2px solid var(--ink); border-top: 2px solid var(--ink); font-weight: 800; font-size: 1rem; padding: 8px; }
.ftable-note { font-size: 0.9375rem; margin-top: 8px; }
.ftable th[aria-sort] { white-space: nowrap; }
/* three or more columns on a phone: each row becomes a ruled block, each cell labeled with its column */
@media (max-width: 699px) {
  .ftable.stack thead { display: none; }
  .ftable .r { white-space: normal; }
  .ftable th, .ftable td { padding-left: 4px; padding-right: 4px; overflow-wrap: anywhere; }
  .ftable.stack tr { display: block; border-bottom: 1px solid var(--rule); padding: 6px 0; }
  .ftable.stack tbody th, .ftable.stack td { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 8px; border: 0; padding: 3px 0; text-align: left; white-space: normal; }
  .ftable.stack td::before, .ftable.stack tbody th::before { content: attr(data-label); font-weight: 700; font-size: 0.875rem; }
  .ftable.stack tr.group th { display: block; padding: 8px 4px; }
  .ftable.stack tr.group th::before { content: none; }
  .ftable.stack .n { display: none; }
}
.ftable .sort-mark { color: var(--ink); font-weight: 800; }

/* verbatim official text: statute and bill language, quoted exactly */
.verbatim { margin: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 12px 0 10px 18px; position: relative; }
.verbatim::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 10px; border-left: 4px solid var(--brass); }
.verbatim p { font-size: 1.0625rem; line-height: 1.6; }
.verbatim .cite { margin-top: 6px; font-size: 0.9375rem; color: var(--slate); }

/* statement lines: one rate or rule per ruled line */
.sline { list-style: none; border-top: 2px solid var(--ink); padding-left: 0 !important; }
.sline li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border-bottom: 1px solid var(--rule); padding: 8px 0; max-width: none; margin: 0 !important; align-items: baseline; }
.sline .k { font-size: 1rem; }
.sline .v { font-weight: 800; font-size: 1.0625rem; text-align: right; max-width: 30ch; }
@media (max-width: 699px) {
  .sline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sline .v { text-align: left; max-width: none; }
}

/* numbered ledger rows (court steps, grounds) */
.steps { list-style: none; padding-left: 0 !important; border-top: 2px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 4px 8px; border-bottom: 1px solid var(--rule); padding: 12px 0; max-width: none; margin: 0 !important; }
.steps .step-n { color: var(--brass); font-weight: 800; font-size: 1.1875rem; line-height: 1.5; }
.steps .step-t { font-weight: 700; display: block; }
.steps .step-b { display: block; }

.sources { margin-top: 48px; }
.sources-list { list-style: none; padding-left: 0 !important; counter-reset: src; border-top: 2px solid var(--ink); font-size: 0.9375rem; }
.sources-list li { counter-increment: src; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); border-bottom: 1px solid var(--rule); padding: 8px 0; max-width: none; margin: 0 !important; overflow-wrap: anywhere; }
.sources-list li::before { content: counter(src, decimal-leading-zero); color: var(--brass); font-weight: 800; font-size: 1.1875rem; line-height: 1.3; }
.src-host { color: var(--slate); }
.disclaimer { margin-top: 32px; padding: 14px 0; border-top: 4px double var(--ink); border-bottom: 1px solid var(--rule); font-weight: 600; }

.page-author { margin-top: 8px; }

/* a page with no rail content keeps the same grid */
.plain-note { font-size: 1rem; }

@media print {
  .site-header, .site-footer, .slip-band, .slip-mini, .rail, .tabs { display: none; }
}
