/*
 * Site stylesheet. One file, no framework.
 *
 * Register: a firm's printed document. Warm paper, blue-black ink, one ledger
 * red that means money leaving an account. Besley (Clarendon) for display and
 * figures, Schibsted Grotesk for reading and UI, IBM Plex Mono only inside
 * drawn documents. Hairline rules, a margin column for section marks,
 * footnotes. Nothing is rotated.
 */

/* ---------- Faces ---------- */

@font-face {
  font-family: "Besley";
  src: url("/assets/fonts/besley.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A7, U+00A9, U+00B6, U+00B7, U+00D7, U+2018-2019, U+201C-201D, U+2020-2022, U+2026, U+2212;
}
@font-face {
  font-family: "Besley";
  src: url("/assets/fonts/besley-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A7, U+00A9, U+00B6, U+00B7, U+00D7, U+2018-2019, U+201C-201D, U+2020-2022, U+2026, U+2212;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A7, U+00A9, U+00B6, U+00B7, U+00D7, U+2018-2019, U+201C-201D, U+2020-2022, U+2026, U+2212;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plexmono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A7, U+00A9, U+00B6, U+00B7, U+00D7, U+2018-2019, U+201C-201D, U+2020-2022, U+2026, U+2212;
}
/* Metric-matched fallbacks, so the swap to the webfont does not move text. */
@font-face {
  font-family: "Besley Fallback";
  src: local("Georgia"), local("Noto Serif"), local("Times New Roman");
  size-adjust: 114.1%;
  ascent-override: 109.5%;
  descent-override: 37.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 105.8%;
  ascent-override: 92.3%;
  descent-override: 24.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Plex Mono Fallback";
  src: local("Courier New"), local("Menlo"), local("Roboto Mono");
  size-adjust: 100%;
  ascent-override: 102.5%;
  descent-override: 27.5%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  --paper: oklch(0.972 0.004 95);
  --paper-2: oklch(0.94 0.006 95);
  --sheet: oklch(0.993 0.002 95);
  --ink: oklch(0.205 0.022 262);
  --ink-2: oklch(0.39 0.018 262);
  --ink-3: oklch(0.49 0.015 262);
  --rule: oklch(0.84 0.006 95);
  --rule-soft: oklch(0.205 0.022 262 / 0.12);
  /* Ledger red: used only for money leaving an account. */
  --red: oklch(0.53 0.2 27);
  --red-2: oklch(0.66 0.16 28);
  --red-3: oklch(0.8 0.09 28);
  --red-wash: oklch(0.6 0.2 27 / 0.08);
  --on-ink: oklch(0.95 0.004 95);
  --on-ink-2: oklch(0.79 0.01 95);
  --rule-on-ink: oklch(0.4 0.02 262);
  /* Ledger green: used only for the thing to press. */
  --action: oklch(0.44 0.105 155);
  --action-2: oklch(0.36 0.085 156);
  /* Highlighter: used only to mark a passage on a drawn document. */
  --hi: oklch(0.94 0.11 98);

  --serif: "Besley", "Besley Fallback", Georgia, serif;
  --sans: "Schibsted Grotesk", "Schibsted Fallback", Arial, sans-serif;
  --mono: "Plex Mono", "Plex Mono Fallback", "Courier New", monospace;

  --step--2: 0.75rem;
  --step--1: 0.8125rem;
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
  --step-4: clamp(2.375rem, 1.6rem + 3.6vw, 4.5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --col-gap: clamp(16px, 2.2vw, 32px);
  --maxw: 1320px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@supports not (color: oklch(0 0 0)) {
  :root {
    --paper: #f6f6f3;
    --paper-2: #ecebe7;
    --sheet: #fdfdfb;
    --ink: #121721;
    --ink-2: #40454f;
    --ink-3: #5c6169;
    --rule: #cccac6;
    --rule-soft: rgba(18, 23, 33, 0.12);
    --red: #c51e21;
    --red-2: #e36558;
    --red-3: #f2a89d;
    --red-wash: rgba(214, 40, 40, 0.08);
    --on-ink: #efeeeb;
    --on-ink-2: #bcbbb3;
    --rule-on-ink: #3d4450;
    --action: #096338;
    --action-2: #044a29;
    --hi: #ffec95;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 450;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
h2 { font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.022em; font-weight: 560; }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.005em; font-weight: 500; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--on-ink); }
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--on-ink); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Grid ---------- */

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.grid > * { grid-column: 1 / -1; min-width: 0; }

/* ---------- Folio and masthead ---------- */

.folio {
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.folio-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 7px;
}
.folio a { text-decoration: none; color: var(--ink-2); }
.folio a:hover { text-decoration: underline; }
.folio-row > a { display: none; }

.masthead { border-bottom: 1px solid var(--ink); background: var(--paper); }
.masthead-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "lockup actions" "nav nav";
  align-items: center;
  column-gap: 16px;
  padding-top: 12px;
}

.lockup {
  grid-area: lockup;
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink);
  justify-self: start;
}
/* Wordmark: the name over an accountant's double rule, the mark of a closed
 * total. Works for any name; a trailing "Partners" sets small beneath, on the
 * rule's center line. Tracking leaves a gap after the last letter, so each line
 * gets the same gap in front: the rule and "Partners" center on the letters,
 * not on the box. */
.lockup-words { display: grid; justify-items: center; line-height: 1; }
.lockup-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 16px; letter-spacing: 0.13em; text-transform: uppercase;
  white-space: nowrap; padding: 0 0 5px 0.13em;
  border-bottom: 3px double currentColor;
}
.lockup-desc {
  font-size: 8.5px; font-weight: 600; letter-spacing: 0.46em; text-transform: uppercase;
  margin-top: 5px; padding-left: 0.46em; color: var(--ink-2);
}
.lockup.no-desc .lockup-desc { display: none; }

.masthead-actions { grid-area: actions; display: flex; align-items: center; gap: 18px; }
.phone {
  font-weight: 600; text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums; font-size: 0.9375rem;
}
.phone-label { display: none; color: var(--ink-3); font-weight: 500; }
.masthead-actions .masthead-cta { display: none; }

.nav {
  grid-area: nav;
  display: flex; gap: 17px;
  margin-top: 10px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 9px var(--gutter) 10px;
  border-top: 1px solid var(--rule-soft);
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 0.875rem;
}
.nav::-webkit-scrollbar { display: none; }
.nav-link { text-decoration: none; white-space: nowrap; color: var(--ink-2); padding-block: 2px; }
.nav-link:hover { color: var(--ink); text-decoration: underline; }
.nav-link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.nav-cta { display: none; }

@media (min-width: 640px) {
  .folio-row > a { display: inline; }
}
@media (min-width: 960px) {
  .masthead-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "lockup nav actions";
    padding-block: 18px;
  }
  .nav {
    margin: 0; padding: 0; border: 0; overflow: visible;
    justify-content: center; gap: clamp(18px, 2.4vw, 34px);
  }
  .nav-cta { display: none; }
  .masthead-actions .masthead-cta { display: inline-flex; }
  .phone-label { display: inline; }
  .lockup-name { font-size: 18px; }
  .lockup-desc { font-size: 9px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px 14px;
  /* The darker green wipes across from the left on hover. */
  background: var(--action) linear-gradient(var(--action-2), var(--action-2)) no-repeat 0 0 / 0% 100%;
  color: #fff;
  border: 1px solid var(--action);
  font: 600 1rem/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-size 260ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.btn:hover { background-size: 100% 100%; border-color: var(--action-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 10px; flex: none; transition: transform 220ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 11px 15px 10px; font-size: 0.9375rem; }
.btn-line { background-color: transparent; background-image: linear-gradient(var(--ink), var(--ink)); color: var(--ink); border-color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--on-ink); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-arrow:hover { border-bottom-width: 2px; padding-bottom: 1px; }

/* ---------- Sections ---------- */

.sec { padding-block: clamp(52px, 7vw, 96px); }
.sec > .grid { row-gap: 28px; }
.sec-head { display: block; }
.sec-head::before { content: ""; display: block; width: 44px; border-top: 2px solid var(--ink); margin-bottom: 14px; }
.sec-num {
  margin: 0; font-family: var(--serif); font-size: var(--step-2); line-height: 1;
  font-variant-numeric: lining-nums;
}
.sec-label {
  margin: 0; font-size: var(--step--2); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.sec-text > h2 { margin-bottom: 0.6em; }
.sec-text > p, .sec-text li { color: var(--ink-2); max-width: 62ch; }
.sec-text > p strong { color: var(--ink); }
.sec-text .lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.sec-foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.sec-dek { color: var(--ink-2); max-width: 52ch; }
.sec-note { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); border-top: 2px solid var(--ink); padding-top: 14px; }
.sec-note p { margin-bottom: 0.9em; }
.sec-dek p:last-child { margin-bottom: 0; }
.sec-ink .sec-dek { color: var(--on-ink-2); }

@media (min-width: 900px) {
  .sec-head { grid-column: 1 / 3; }
  .sec-head::before { width: 100%; }
  .sec-num { font-size: var(--step-3); }
  .sec-text { grid-column: 3 / 8; }
  .sec-art { grid-column: 8 / -1; }
  .sec--wide .sec-text { grid-column: 3 / 10; }
  .sec--wide .sec-art { grid-column: 3 / -1; }
  .sec--flip .sec-head { grid-row: 1; }
  .sec--flip .sec-text { grid-column: 8 / -1; grid-row: 1; }
  .sec--flip .sec-art { grid-column: 3 / 8; grid-row: 1; }
  .sec-foot { grid-column: 3 / -1; }
  .sec--plain .sec-text { grid-column: 1 / 7; }
  .sec--plain .sec-art { grid-column: 8 / -1; }
  .sec--plain .roles { grid-column: 1 / -1; }
  .sec--split .sec-text { grid-column: 1 / 7; }
  .sec--split .sec-dek { grid-column: 8 / -1; align-self: end; }
  .sec--split .sec-foot { grid-column: 1 / -1; }
  .sec--split .sec-text > h2 { margin-bottom: 0; }
}

/* Ink band */
.sec-ink { background: var(--ink); color: var(--on-ink); }
.sec-ink .sec-head::before { border-top-color: var(--on-ink); }
.sec-ink h2, .sec-ink h3 { color: var(--on-ink); }
.sec-ink .sec-label { color: var(--on-ink-2); }
.sec-ink .sec-text > p { color: var(--on-ink-2); }
.sec-ink a { color: var(--on-ink); }
.sec-ink :focus-visible { outline-color: var(--on-ink); }

.sec-paper-2 { background: var(--paper-2); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(32px, 5vw, 72px) clamp(36px, 4vw, 56px); }
.hero > .grid { row-gap: 36px; align-items: start; }
.dateline {
  margin: 0 0 22px; font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.hero h1 { max-width: 15ch; }
/* The home promise is one long sentence. Where the hero is a single column it
 * gets the full measure, so it breaks at "unless" instead of after two words. */
body.home .hero h1 { max-width: 22ch; text-wrap: balance; }
/* Second sentence of the headline: the price model, set as the rate card's
 * own italic so the two read as one statement. */
.h1-sub {
  display: block; margin-top: 0.34em;
  font-style: italic; font-weight: 400; font-size: 0.5em; line-height: 1.2; letter-spacing: -0.01em;
}
/* The request form's first question, asked here. Each answer opens the form
 * with that answer ticked. */
.start { margin-top: 30px; }
.start-q { margin: 0 0 12px; font-weight: 600; color: var(--ink); }
.start-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px 0; }
.start-choices { display: flex; gap: 8px; }
.start-choices .btn { justify-content: center; min-width: 56px; padding-inline: 18px; font-variant-numeric: lining-nums; white-space: nowrap; }
@media (max-width: 520px) {
  .start-choices { flex: 1 0 100%; }
  .start-choices .btn { flex: 1 1 0; min-width: 0; padding-inline: 6px; }
  .start-choices .btn:last-child { flex: 2.1 1 0; }
}
.assure { margin: 20px 0 0; max-width: 46ch; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.hero .lead {
  margin-top: 28px; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2);
  max-width: 46ch;
}
.hero-act { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px 0; }
.hero-act .btn { padding-inline: 26px; }
.phone-block {
  display: grid; align-content: center; gap: 3px;
  padding: 0 22px; margin-left: 22px; border-left: 1px solid var(--rule);
  text-decoration: none; color: var(--ink);
}
.phone-block small { font-size: var(--step--1); color: var(--ink-3); }
.phone-block b { font-family: var(--serif); font-weight: 500; font-size: var(--step-2); line-height: 1; font-variant-numeric: lining-nums; }
.phone-block:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
@media (max-width: 520px) {
  .phone-block { flex-basis: 100%; margin: 10px 0 0; padding: 0; border-left: 0; }
}
.phone-alt { color: var(--ink-2); }
.phone-alt a { font-weight: 600; color: var(--ink); }
.fine {
  margin-top: 22px; max-width: 46ch;
  font-size: var(--step--1); line-height: 1.5; color: var(--ink-3);
  padding-top: 12px; border-top: 1px solid var(--rule);
}
@media (min-width: 1000px) {
  .hero-text { grid-column: 1 / 8; padding-top: 8px; }
  .hero-art { grid-column: 8 / -1; }
}

/* Page hero for inner pages */
.page-hero { padding-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 56px); }
.page-hero h1 { font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.75rem); max-width: 20ch; }
.page-hero .lead { margin-top: 22px; font-size: var(--step-1); color: var(--ink-2); max-width: 54ch; }
@media (min-width: 900px) {
  .page-hero .grid > div { grid-column: 1 / 10; }
}

/* ---------- Schedule A: the rate card ---------- */

.schedule {
  margin: 0;
  container: schedule / inline-size;
  view-transition-name: schedule-a;
}
.schedule-sheet {
  background: var(--sheet);
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: -7px;
  padding: clamp(22px, 7cqi, 36px) clamp(20px, 7cqi, 38px) clamp(20px, 6cqi, 30px);
}
.schedule-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px;
  padding-bottom: 14px; border-bottom: 2px solid var(--ink);
}
.schedule-no {
  grid-column: 1 / -1; margin: 0;
  font-size: var(--step--2); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
}
.schedule-title { margin: 0; font-family: var(--serif); font-size: clamp(1.375rem, 7cqi, 1.875rem); line-height: 1.1; }
.schedule-eff { margin: 0; font-size: var(--step--2); color: var(--ink-3); text-align: right; }
.sched-cols {
  display: flex; justify-content: space-between; margin: 12px 0 0;
  font-size: var(--step--2); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.schedule-rows { margin: 0; }
.sched-row {
  display: flex; align-items: baseline; gap: 10px;
  padding-block: clamp(10px, 3cqi, 15px);
  border-bottom: 1px solid var(--rule);
}
.sched-row dt { font-size: clamp(0.9375rem, 4cqi, 1.0625rem); color: var(--ink-2); white-space: nowrap; }
.sched-row dd {
  margin: 0 0 0 auto; padding-left: 8px; text-align: right;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.5rem, 9cqi, 2.375rem); line-height: 1;
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em;
  position: relative;
}
/* Dot leaders between band and fee. */
.sched-row { position: relative; }
.sched-row dt {
  flex: 1; display: flex; align-items: baseline; gap: 8px; min-width: 0;
}
.sched-row dt::after {
  content: ""; flex: 1; min-width: 16px;
  border-bottom: 1.5px dotted var(--ink-3);
  transform: translateY(-0.28em);
}
.schedule-terms {
  margin: 16px 0 0; padding: 0; list-style: none; counter-reset: term;
  font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2);
}
.schedule-terms li { counter-increment: term; display: grid; grid-template-columns: 1.6em 1fr; padding-block: 3px; }
.schedule-terms li::before { content: counter(term) "."; font-family: var(--serif); color: var(--ink-3); font-variant-numeric: lining-nums; }
.schedule-promise {
  margin: 18px 0 0; padding-top: 14px; border-top: 3px double var(--ink);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.125rem, 5.4cqi, 1.4375rem); line-height: 1.25;
}
@container schedule (max-width: 360px) {
  .sched-row dt { font-size: 0.875rem; }
  .sched-row dd { font-size: 1.625rem; }
}
@container schedule (max-width: 290px) {
  .sched-row { flex-wrap: wrap; }
  .sched-row dt { white-space: normal; }
}

/* ---------- Exhibits (drawn documents) ---------- */

.exhibit { margin: 0; }
.exhibit-cap {
  margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 0 12px;
  font-size: var(--step--1); line-height: 1.45; color: var(--ink-3);
}
.exhibit-cap b {
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--step--2);
  color: var(--ink); padding-top: 2px;
}
.doc {
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--rule), 0 18px 32px -28px oklch(0.235 0.028 258 / 0.35);
}

/* Exhibit 1: bank statement */
.stmt-wrap { container: stmt / inline-size; }
.stmt {
  font-family: var(--mono); font-size: clamp(0.6875rem, 2.6cqi, 0.8125rem); line-height: 1.35;
  color: var(--ink);
  padding: clamp(14px, 4cqi, 26px);
}
.stmt-top {
  display: flex; justify-content: space-between; gap: 12px; align-items: start;
  padding-bottom: 12px; border-bottom: 1px solid var(--ink);
}
.stmt-bank { font-family: var(--sans); font-weight: 700; font-size: clamp(0.8125rem, 3cqi, 0.9375rem); letter-spacing: 0.02em; margin: 0; }
.stmt-meta { margin: 0; text-align: right; color: var(--ink-2); }
.stmt-meta span { display: block; }
.stmt table { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.stmt th {
  font-family: var(--sans); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); text-align: left; padding: 6px 6px 6px 0; border-bottom: 1px solid var(--rule);
}
.stmt td { padding: 5px 6px 5px 0; border-bottom: 1px dotted var(--rule); vertical-align: top; }
.stmt .r { text-align: right; }
.stmt .d { color: var(--ink-3); white-space: nowrap; }
.stmt .desc { width: 46%; }
.stmt .amt-net { display: none; }
.stmt tr.day-start td { border-top: 1px solid var(--rule); }
.stmt tr.adv td { background: var(--red-wash); }
.stmt tr.adv .out, .stmt tr.adv .amt-net { color: var(--red); }
.stmt .tick-c { width: 18px; padding-right: 0; }
.tick { width: 14px; height: 11px; color: var(--red); }
.tick path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stmt .pen {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1.5px;
  padding-bottom: 1px;
}
.stmt-sum {
  display: grid; gap: 14px 28px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ink);
}
.stmt-sum dl { margin: 0; }
.stmt-sum dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.stmt-sum dd { margin: 0; }
.stmt-sum .adv { color: var(--red); }
.stmt-mark { margin: 0; color: var(--red); font-family: var(--sans); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; }
.stmt-mark b { font-family: var(--serif); font-weight: 500; font-size: clamp(2.25rem, 9cqi, 3.5rem); line-height: 0.9; font-variant-numeric: lining-nums; }
.stmt-mark span { font-size: var(--step--1); line-height: 1.35; max-width: 17ch; }
@container stmt (min-width: 620px) {
  .stmt-sum { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
  .stmt-mark { justify-self: end; }
}
@container stmt (max-width: 520px) {
  .stmt .col-out, .stmt .col-in { display: none; }
  .stmt .amt-net { display: table-cell; }
  .stmt .desc { width: auto; }
}


/* Exhibit 2: UCC-1 anatomy */
.ucc-fig { container: ucc / inline-size; }
.ucc-wrap { display: grid; gap: 22px; }
.ucc {
  font-family: var(--sans); font-size: 0.6875rem; line-height: 1.25; color: var(--ink);
  border: 1.5px solid var(--ink); background: var(--sheet);
}
.ucc-row { display: grid; border-bottom: 1px solid var(--ink); }
.ucc-row:last-child { border-bottom: 0; }
.ucc-cell { padding: 6px 8px 8px; border-right: 1px solid var(--ink); min-width: 0; position: relative; }
.ucc-cell:last-child { border-right: 0; }
.ucc-lab { display: block; font-size: 0.625rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-2); }
.ucc-val { display: block; margin-top: 4px; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.ucc-head { grid-template-columns: 1.35fr 1fr; }
.ucc-title { font-weight: 700; font-size: 0.875rem; letter-spacing: 0.04em; margin: 0 0 6px; }
.ucc-faint { color: var(--ink-3); }
.ucc-office { display: grid; align-content: space-between; gap: 8px; background: var(--paper); }
.ucc-stamp {
  border: 1.5px solid var(--ink); color: var(--ink); padding: 6px 8px; font-family: var(--mono); font-size: 0.75rem; line-height: 1.4;
}
.ucc-stamp strong { display: block; font-family: var(--sans); letter-spacing: 0.24em; font-size: 0.8125rem; }
.ucc-sec { background: var(--paper-2); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.04em; padding: 4px 8px; border-bottom: 1px solid var(--ink); }
.ucc-addr { grid-template-columns: 2.2fr 1.4fr 0.6fr 0.9fr 0.7fr; }
.ucc-boxes { grid-template-columns: 1fr 1fr; }
.ucc-box-row { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--ink-3); }
.ucc-box-row span::before { content: ""; display: inline-block; width: 8px; height: 8px; border: 1px solid var(--ink-3); margin-right: 5px; vertical-align: -1px; }
.ucc-pin {
  position: absolute; top: 5px; right: 6px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--sheet);
  font: 700 0.6875rem/1 var(--sans);
}
.ucc [data-box] { transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.ucc-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.ucc-notes li {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
  padding: 10px 0; border-top: 1px solid var(--rule);
  font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2);
}
.ucc-notes li:focus-within, .ucc-notes li:hover { color: var(--ink); }
.ucc-notes b { color: var(--ink); font-weight: 650; }
.ucc-notes .ucc-pin { position: static; margin-top: 2px; }
.ucc-notes li[tabindex] { cursor: default; }
.ucc-notes li[tabindex]:focus-visible { outline-offset: 2px; }
/* Point at a note, and its box lights up on the form. */
.ucc-wrap:has([data-note="1"]:is(:hover, :focus-visible)) [data-box="1"],
.ucc-wrap:has([data-note="2"]:is(:hover, :focus-visible)) [data-box="2"],
.ucc-wrap:has([data-note="3"]:is(:hover, :focus-visible)) [data-box="3"],
.ucc-wrap:has([data-note="4"]:is(:hover, :focus-visible)) [data-box="4"] {
  background: var(--hi);
  box-shadow: inset 0 0 0 2px var(--ink);
}
@container ucc (min-width: 700px) {
  .ucc-wrap { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 28px; }
}
@container ucc (max-width: 460px) {
  .ucc-addr { grid-template-columns: 1fr 1fr; }
  .ucc-addr .ucc-cell { border-bottom: 1px solid var(--ink); }
  .ucc-addr .ucc-cell:nth-child(even) { border-right: 0; }
  .ucc-addr .ucc-cell:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .ucc-head { grid-template-columns: 1fr; }
  .ucc-head .ucc-cell { border-right: 0; }
  .ucc-head .ucc-cell + .ucc-cell { border-top: 1px solid var(--ink); }
  .ucc-boxes { grid-template-columns: 1fr; }
  .ucc-boxes .ucc-cell { border-right: 0; }
  .ucc-boxes .ucc-cell + .ucc-cell { border-top: 1px solid var(--ink); }
}

/* Definitions beside the UCC exhibit */
.defs { margin: 0; display: grid; gap: 0; }
.defs > div { padding: 0 0 22px; }
.defs dt { font-family: var(--serif); font-size: var(--step-1); font-weight: 500; margin-bottom: 6px; }
.defs dd { margin: 0; color: var(--ink-2); max-width: 62ch; }
@media (min-width: 900px) {
  .sec--filings .sec-text { grid-column: 3 / 8; }
  .sec--filings .defs { grid-column: 8 / -1; }
  .sec--pulls .sec-text { grid-column: 3 / 10; }
  .sec--pulls .sec-art { grid-column: 1 / 10; }
  .sec--pulls .sec-note { grid-column: 10 / -1; align-self: start; padding-top: 6px; }
}

/* Exhibit 3: a contract clause */
.clause {
  padding: clamp(20px, 5vw, 40px) clamp(20px, 5vw, 44px) clamp(22px, 5vw, 36px);
  font-family: var(--serif); font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem); line-height: 1.6;
  color: var(--ink);
}
.clause-top {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--sans); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 18px;
}
.clause h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.01em; }
.clause p { margin: 0 0 0.7em; display: grid; grid-template-columns: 2.6em 1fr; }
.clause p > span:first-child { color: var(--ink-3); font-variant-numeric: lining-nums; }
.clause mark {
  background: linear-gradient(var(--hi), var(--hi)) no-repeat 0 0 / 100% 100%;
  color: inherit; padding: 0.1em 0.14em; margin: 0 -0.14em;
}
.clause-note {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: var(--step--1); color: var(--ink-2);
  display: grid; grid-template-columns: 18px 1fr; gap: 10px;
}
.clause-note .tick { margin-top: 3px; color: var(--ink); }

/* ---------- Worksheet ---------- */

.worksheet { container: worksheet / inline-size; margin: 0; }
.wk-sheet { background: var(--sheet); border: 1px solid var(--ink); }
.wk-head {
  display: grid; grid-template-columns: 1fr; gap: 4px 20px;
  padding: 18px clamp(16px, 4cqi, 32px) 16px;
  border-bottom: 2px solid var(--ink);
}
.wk-no { margin: 0; font-size: var(--step--2); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.wk-title { font-size: var(--step-2); }
.wk-private { margin: 4px 0 0; font-size: var(--step--1); color: var(--ink-3); }
.wk-body { display: grid; }
.wk-inputs { padding: 20px clamp(16px, 4cqi, 32px) 24px; border-bottom: 1px solid var(--ink); }
.wk-results { padding: 22px clamp(16px, 4cqi, 32px) 26px; background: var(--paper); min-height: 380px; }
.wk-step { margin: 0 0 10px; padding: 0; font-family: var(--serif); font-size: var(--step-1); font-weight: 500; color: var(--ink); }
.wk-deposits { margin: 0 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: 10px; align-items: end; }
.wk-field { display: grid; gap: 5px; min-width: 0; }
.wk-lab { font-size: var(--step--1); color: var(--ink-2); }
.wk-money { display: flex; align-items: center; border: 1px solid var(--ink-3); background: var(--sheet); }
.wk-money > span { padding-left: 10px; color: var(--ink-3); font-family: var(--mono); }
.worksheet input, .worksheet select {
  width: 100%; min-width: 0; border: 0; background: transparent;
  font: 400 1rem/1.2 var(--mono); color: var(--ink);
  padding: 11px 10px 10px 4px; font-variant-numeric: tabular-nums;
}
.worksheet select {
  border: 1px solid var(--ink-3); background: var(--sheet); font-family: var(--sans); font-size: 0.9375rem;
  padding: 11px 30px 10px 10px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.wk-money:focus-within, .worksheet select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.worksheet input:focus-visible { outline: none; }
.wk-list { display: grid; gap: 0; }
.wk-funder {
  padding: 14px 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end;
  grid-template-areas: "head head" "bal pay" "freq low";
}
.wk-row-head { grid-area: head; display: flex; justify-content: space-between; align-items: center; }
.wk-funder .wk-field:nth-of-type(1) { grid-area: bal; }
.wk-funder .wk-field:nth-of-type(2) { grid-area: pay; }
.wk-funder .wk-field:nth-of-type(3) { grid-area: freq; }
/* The one hypothetical on the row: a lower payment to try. Dashed, so it reads
 * as a what-if beside the three facts. */
.wk-funder .wk-field-low { grid-area: low; }
.wk-field-low .wk-money { border-style: dashed; }
.wk-funder .wk-remove { padding: 4px 0; }
.wk-n {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px;
  background: var(--ink); color: var(--sheet);
  font: 700 0.75rem/1 var(--sans); font-variant-numeric: tabular-nums;
}
.wk-remove, .wk-add {
  font: 600 0.875rem/1 var(--sans); color: var(--ink-2); background: none; border: 0; cursor: pointer;
  padding: 12px 0; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px;
  justify-self: start;
}
.wk-remove:hover, .wk-add:hover { color: var(--ink); text-decoration-thickness: 2px; }
.wk-add { margin-top: 6px; color: var(--ink); }
.wk-add::before { content: "+ "; text-decoration: none; display: inline-block; margin-right: 4px; }
.wk-example { margin: 14px 0 0; font-size: 0.875rem; color: var(--ink-2); }
.wk-share {
  margin: 0 0 16px; font-family: var(--serif); font-size: clamp(1.25rem, 3.6cqi, 1.625rem); line-height: 1.25;
  font-variant-numeric: tabular-nums lining-nums;
}
.wk-bar {
  display: flex; height: 44px; border: 1px solid var(--ink); background: var(--sheet); overflow: hidden;
}
.wk-bar-empty { background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 12px); }
.wk-seg {
  flex: 0 0 var(--w, 0%); min-width: 0;
  border-right: 2px solid var(--sheet);
  transition: flex-basis 320ms var(--ease);
}
.wk-seg-1 { background: var(--red); }
.wk-seg-2 { background: repeating-linear-gradient(135deg, var(--red) 0 2px, var(--red-3) 2px 5px); }
.wk-seg-3 { background: var(--red-2); }
.wk-seg-4 { background: repeating-linear-gradient(90deg, var(--red) 0 2px, var(--red-3) 2px 5px); }
.wk-keys { display: flex; height: 18px; margin-top: 4px; font: 700 0.75rem/18px var(--sans); color: var(--ink); }
.wk-keys span { flex: 0 0 var(--w, 0%); min-width: 0; white-space: nowrap; padding-left: 1px; transition: flex-basis 320ms var(--ease); }
.wk-seg-rest { flex: 1 1 auto; border-right: 0; background: transparent; }
.wk-bar-over { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.wk-bar-scale {
  display: flex; justify-content: space-between; margin-top: 2px;
  font-size: var(--step--2); color: var(--ink-3);
}
.wk-h { font-family: var(--serif); font-size: var(--step-1); font-weight: 500; color: var(--ink); margin: 26px 0 6px; }
.wk-fees { margin: 0; }
.wk-fee-row {
  display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule);
}
.wk-fee-row dt { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; color: var(--ink-2); font-size: 0.9375rem; }
.wk-fee-row dt .wk-n { flex: none; }
.wk-fee-row dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-variant-numeric: tabular-nums lining-nums; }
.wk-fee-row.wk-total { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.wk-fee-row.wk-total dt { color: var(--ink); font-weight: 600; }
.wk-fee-row.wk-total dd { font-size: 1.5rem; font-weight: 500; }
.wk-muted { color: var(--ink-3); }
.wk-plan { padding: 12px 0 14px; border-top: 1px solid var(--rule); }
.wk-plan-head { margin: 0; display: flex; align-items: baseline; gap: 10px; font-size: 0.9375rem; color: var(--ink-2); }
.wk-plan-head .wk-n { flex: none; }
.wk-plan-band { flex: 1; min-width: 0; }
.wk-plan-fee { white-space: nowrap; }
.wk-plan-fee b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; margin-left: 4px; }
.wk-plan-nums { margin: 10px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0 14px; }
.wk-plan-nums > div { display: grid; align-content: space-between; gap: 2px; border-left: 2px solid var(--ink); padding-left: 10px; }
.wk-plan-nums dt { font-size: var(--step--1); line-height: 1.3; color: var(--ink-2); }
.wk-plan-nums dd { margin: 0; font-family: var(--serif); font-size: clamp(1.25rem, 5.4cqi, 1.5rem); line-height: 1.15; font-variant-numeric: tabular-nums lining-nums; }
.wk-plan .wk-note { margin-top: 8px; }
.wk-plans + .wk-fees .wk-total { border-top-width: 2px; }
.wk-note { margin: 12px 0 0; font-size: 0.875rem; color: var(--ink-2); line-height: 1.45; }
.wk-noscript { margin: 0; padding: 12px clamp(16px, 4cqi, 32px); font-size: var(--step--1); border-top: 1px solid var(--rule); }
.worksheet:not(.is-live) .wk-add, .worksheet:not(.is-live) .wk-remove { display: none; }
@container worksheet (min-width: 560px) {
  .wk-funder { grid-template-columns: 24px minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.2fr) auto; grid-template-areas: "n bal pay freq rm" ". low low low ."; }
  .wk-funder .wk-field-low { grid-template-columns: auto minmax(0, 9.5rem); align-items: center; justify-content: start; gap: 12px; }
  .wk-row-head { display: contents; }
  .wk-row-head .wk-n { grid-area: n; margin-bottom: 11px; }
  .wk-row-head .wk-remove { grid-area: rm; padding: 12px 0; }
  .wk-deposits { grid-template-columns: minmax(0, 18rem) 8rem; }
}
@container worksheet (min-width: 920px) {
  .wk-head { grid-template-columns: 1fr auto; align-items: end; }
  .wk-head .wk-no { grid-column: 1 / -1; }
  .wk-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .wk-inputs { border-bottom: 0; border-right: 1px solid var(--ink); }
}

/* ---------- Three questions, three answers ---------- */

.sec--ask { padding-block: clamp(36px, 4.6vw, 60px); }
.ask3-h { font-size: var(--step-2); max-width: 30ch; margin: 0 0 22px; }
.ask3-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.ask3-list > li { padding: 16px 0 18px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; }
.ask3-q { margin: 0; font-weight: 600; color: var(--ink); max-width: 30ch; }
.ask3-a { margin: 0; font-family: var(--serif); font-style: italic; font-size: var(--step-3); line-height: 1; letter-spacing: -0.01em; }
.ask3-d { grid-column: 1 / -1; margin: 6px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
@media (min-width: 860px) {
  .ask3-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .ask3-list > li { grid-template-columns: 1fr; align-content: start; gap: 0; padding-bottom: 0; }
  .ask3-q { min-height: 2.9em; }
  .ask3-a { margin-top: 10px; }
  .ask3-d { margin-top: 12px; }
}

/* ---------- Lists: steps, never, roles ---------- */

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 4px 16px;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: var(--step-2); line-height: 1; color: var(--ink-3);
  font-variant-numeric: tabular-nums lining-nums;
}
.steps > li > * { grid-column: 2; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); max-width: 60ch; }
@media (min-width: 900px) {
  .steps-grid > li { grid-template-columns: 3.6rem minmax(0, 0.9fr) minmax(0, 1.6fr); align-items: baseline; }
  .steps-grid > li > p { grid-column: 3; }
  .steps-grid h3 { margin: 0; }
}

/* Schedule B: the perimeter, set as a printed schedule page */
.sched-b { border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding: 26px 0 8px; }
.sched-b-head { display: grid; gap: 8px 24px; margin-bottom: 26px; }
.sched-b-head h2 { margin: 0; }
.sched-b-dek { margin: 6px 0 0; color: var(--ink-2); max-width: 54ch; }
.never { margin: 0; padding: 0; list-style: none; }
.never > li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0 12px; padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.never b { font: 600 var(--step--1) / 1.9 var(--sans); color: var(--ink-3); font-variant-numeric: lining-nums; }
.never p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.never strong {
  display: block; margin-bottom: 8px;
  font-family: var(--serif); font-weight: 500; font-size: var(--step-1); line-height: 1.25; color: var(--ink);
}
@media (min-width: 900px) {
  .sched-b-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .sched-b-head .schedule-no { grid-column: 1 / -1; }
  .sched-b-dek { justify-self: end; }
}
@media (min-width: 900px) {
  .never { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--col-gap) * 2); }
}
/* The same list on paper */
.never.on-paper p { color: var(--ink-2); }
.never.on-paper strong { color: var(--ink); }

.roles { display: grid; gap: 0; margin: 0; }
.roles > div { padding: 22px 0; border-top: 1px solid var(--rule); }
.roles h3 { margin-bottom: 10px; }
.roles ul { margin: 0; padding: 0; list-style: none; }
.roles li { padding: 6px 0 6px 20px; position: relative; color: var(--ink-2); }
.roles li::before { content: ""; position: absolute; left: 0; top: 0.9em; width: 9px; border-top: 1px solid var(--ink); }
.roles .role-note { margin: 12px 0 0; font-size: var(--step--1); color: var(--ink-3); }
@media (min-width: 900px) {
  .roles { grid-column: 3 / -1; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); }
}

/* Swimlane: who does what at each stage of a file */
.lanes-fig { margin: 0; container: lanes / inline-size; }
.lanes { width: 100%; border-collapse: collapse; table-layout: fixed; }
.lanes th, .lanes td { text-align: left; vertical-align: top; padding: 14px 14px 16px 0; }
.lanes thead th {
  font-family: var(--serif); font-weight: 500; font-size: var(--step-1); line-height: 1.2;
  border-bottom: 2px solid var(--ink); padding-bottom: 12px;
}
.lanes thead th .st { display: block; font: 600 var(--step--2) / 1 var(--sans); letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 8px; font-variant-numeric: lining-nums; }
.lanes thead th:first-child { width: 12rem; }
.lanes tbody th { font-family: var(--sans); font-weight: 650; font-size: 0.9375rem; padding-right: 22px; }
.lanes tbody th small { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--step--1); margin-top: 2px; }
.lanes tbody td { font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.lanes tbody tr + tr > * { border-top: 1px solid var(--rule); }
.lanes .lane-desk td { color: var(--ink); }
.lanes .lane-atty td { padding-top: 16px; }
.lane-bar {
  display: block; padding: 10px 14px; border: 1px dashed var(--ink-3); color: var(--ink-2);
}
.lanes-cap { margin-top: 14px; font-size: var(--step--1); color: var(--ink-3); }
@container lanes (max-width: 820px) {
  .lanes, .lanes tbody, .lanes tr, .lanes th, .lanes td { display: block; width: auto; }
  .lanes thead { display: none; }
  .lanes tbody tr { padding: 4px 0 18px; }
  .lanes tbody tr + tr > * { border-top: 0; }
  .lanes tbody tr + tr { border-top: 1px solid var(--ink); }
  .lanes tbody th { padding: 16px 0 6px; font-size: 1rem; }
  .lanes tbody td { padding: 6px 0; display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; }
  .lanes tbody td::before { content: attr(data-stage); font-weight: 650; color: var(--ink); font-size: 0.875rem; }
  .lanes .lane-atty td { display: block; }
  .lanes .lane-atty td::before { content: none; }
}

/* Margin note */
.aside {
  font-size: var(--step--1); line-height: 1.5; color: var(--ink-3);
  border-left: 2px solid var(--ink); padding-left: 14px;
}

/* ---------- Closing call to action ---------- */

.close { padding-block: clamp(64px, 9vw, 128px); background: var(--paper-2); }
.close > .grid { row-gap: 44px; }
.close h2 { font-size: var(--step-4); line-height: 1.08; max-width: 14ch; }
.close .lead { margin-top: 22px; font-size: var(--step-1); color: var(--ink-2); max-width: 48ch; }
.close-act { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.close-side { border-top: 1px solid var(--ink); padding-top: 18px; }
.close-side h3 { font-size: var(--step-1); margin-bottom: 8px; }
.close-side p { color: var(--ink-2); font-size: 0.9375rem; }
.close-more { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); }
.hours { margin: 22px 0 0; max-width: 48ch; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }

/* ---------- The principal: a mounted photograph and a signature block ---------- */

.principal { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; }
.principal-photo {
  display: block; width: 104px; height: 104px; object-fit: cover;
  padding: 3px; background: var(--sheet); border: 1px solid var(--ink);
  filter: grayscale(1) contrast(1.05);
}
.principal .principal-name { margin: 0; font-family: var(--serif); font-size: var(--step-1); font-weight: 600; line-height: 1.2; color: var(--ink); }
.principal .principal-role { margin: 3px 0 0; font-size: var(--step--1); color: var(--ink-3); }
.principal .principal-bio { margin: 10px 0 0; }
@media (max-width: 420px) {
  .principal { grid-template-columns: 1fr; }
  .principal-photo { width: 88px; height: 88px; }
}
.principal-line {
  margin: 22px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2);
}
.principal-line .principal-photo { width: 52px; height: 52px; padding: 2px; }
.principal-line b { color: var(--ink); font-weight: 650; }
@media (min-width: 900px) {
  .close .grid > .close-main { grid-column: 1 / 8; }
  .close .grid > .close-side { grid-column: 9 / -1; align-self: end; }
}

/* ---------- Footnotes and sources ---------- */

sup.fn { font-size: 0.68em; line-height: 0; vertical-align: super; margin-left: 1px; font-variant-numeric: lining-nums; }
sup.fn a {
  color: var(--ink); font-weight: 650; padding: 0 1px; text-decoration: none; font-family: var(--sans);
}
sup.fn a:hover { text-decoration: underline; }
.sec-ink sup.fn a { color: var(--on-ink); }
.sources { padding-block: 40px 56px; border-top: 1px solid var(--ink); }
.sources-h { font-family: var(--serif); font-size: var(--step-1); font-weight: 500; }
.sources-list {
  margin: 14px 0 0; padding-left: 1.6em;
  font-size: 0.875rem; line-height: 1.5; color: var(--ink-2);
  columns: 1; column-gap: var(--col-gap);
}
.sources-list li { break-inside: avoid; padding: 0 0 10px 4px; }
.sources-list li::marker { font-family: var(--sans); font-weight: 650; color: var(--ink); }
.sources-list li:target { background: var(--paper-2); }
.src-pub { color: var(--ink); }
.src-back { color: var(--ink-3); margin-left: 4px; }
@media (min-width: 900px) {
  .sources-h { grid-column: 1 / 3; }
  .sources-list { grid-column: 3 / -1; columns: 2; margin-top: 0; }
}

/* ---------- Questions page ---------- */

.qa { margin: 0; }
.qa details { border-top: 1px solid var(--rule); }
.qa details:last-child { border-bottom: 1px solid var(--rule); }
.qa summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 22px; gap: 16px; align-items: baseline;
  padding: 20px 0;
  font-family: var(--serif); font-size: var(--step-1); line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; width: 12px; height: 12px; justify-self: end; align-self: center;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform 200ms var(--ease);
}
.qa details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat; }
.qa summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.qa .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }
.qa .ans p:last-child { margin-bottom: 0; }
.qa-group { margin-bottom: 40px; }
.qa-group h2 { font-family: var(--sans); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
@media (min-width: 900px) {
  .qa-wrap { grid-column: 3 / 11; }
}
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .qa details { interpolate-size: allow-keywords; }
    .qa details::details-content { block-size: 0; overflow: hidden; transition: block-size 260ms var(--ease), content-visibility 260ms allow-discrete; }
    .qa details[open]::details-content { block-size: auto; }
  }
}

/* ---------- Checklist page (Form 7) ---------- */

.form7 { padding: clamp(20px, 5vw, 44px); }
.form7-top {
  display: flex; justify-content: space-between; gap: 16px; align-items: end;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 6px;
}
.form7-top p { margin: 0; }
.form7-no { font-size: var(--step--2); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.form7-title { font-family: var(--serif); font-size: var(--step-2); line-height: 1.1; }
.checks { margin: 0; padding: 0; list-style: none; counter-reset: q; }
.checks li { counter-increment: q; border-bottom: 1px solid var(--rule); }
.checks label { display: grid; grid-template-columns: 28px 2rem 1fr; gap: 12px; padding: 18px 0; cursor: pointer; align-items: start; }
.checks input {
  appearance: none; width: 22px; height: 22px; margin: 4px 0 0; border: 1.5px solid var(--ink); background: var(--sheet);
  display: grid; place-items: center; cursor: pointer;
}
.checks input::after {
  content: ""; width: 12px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform 160ms var(--ease);
}
.checks input:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.checks .qn { font-family: var(--serif); font-size: var(--step-1); color: var(--ink-3); line-height: 1.3; font-variant-numeric: lining-nums; }
.checks .qn::before { content: counter(q) "."; }
.checks .qt { display: block; font-family: var(--serif); font-size: var(--step-1); line-height: 1.3; color: var(--ink); margin-bottom: 6px; }
.checks .qd { display: block; color: var(--ink-2); font-size: 0.9375rem; max-width: 60ch; }
.checks li:has(input:checked) .qt { color: var(--ink-3); }
.form7-foot { margin: 16px 0 0; font-size: var(--step--1); color: var(--ink-3); }
@media (min-width: 1000px) {
  .form7-side { grid-column: 1 / 6; position: sticky; top: 24px; padding-right: 12px; }
  .form7-wrap { grid-column: 6 / -1; }
}

/* ---------- Prose pages ---------- */

.prose { max-width: 66ch; }
.prose h2 { font-size: var(--step-2); margin: 1.6em 0 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ol, .prose ul { padding-left: 1.2em; }
.prose-sec { counter-reset: clause; }
.prose-sec h2 { counter-increment: clause; display: grid; grid-template-columns: 2.2em 1fr; }
.prose-sec h2::before { content: counter(clause) "."; color: var(--ink-3); font-variant-numeric: lining-nums; }
@media (min-width: 900px) {
  .prose-col { grid-column: 3 / 10; }
}

/* Ledger: the worked example */
.ledger { margin: 0; border-top: 2px solid var(--ink); }
.ledger > div { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ledger dt { flex: 1; color: var(--ink-2); }
.ledger dd { margin: 0; font-family: var(--serif); font-size: var(--step-1); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.ledger .sub dt { padding-left: 1.2em; font-size: 0.9375rem; }
.ledger .sub dd { font-size: 1.0625rem; color: var(--ink-2); }
.ledger .total { border-top: 1px solid var(--ink); border-bottom: 2px solid var(--ink); }
.ledger .total dt { color: var(--ink); font-weight: 600; }
.ledger .total dd { font-size: var(--step-2); }

/* ---------- Intake form ---------- */

.intake > .grid { row-gap: 32px; align-items: start; }
.intake > .grid::before { display: none; }
@media (min-width: 1000px) {
  .intake > .grid { grid-template-rows: auto 1fr; }
  .intake-intro { grid-column: 1 / 6; grid-row: 1; padding-right: 12px; }
  .intake-more { grid-column: 1 / 6; grid-row: 2; align-self: start; padding-right: 12px; }
  .intake-main { grid-column: 6 / -1; grid-row: 1 / span 2; }
}
body.intake-page .masthead-actions .masthead-cta { display: none; }
.intake-side h1, .form7-side h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.875rem); }
.intake-side .lead, .form7-side .lead { margin-top: 18px; color: var(--ink-2); font-size: var(--step-1); }
.after { margin: 0; padding: 0; list-style: none; counter-reset: after; }
.after li {
  counter-increment: after; display: grid; grid-template-columns: 2rem 1fr; gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.9375rem;
}
.after li::before { content: counter(after) "."; font-family: var(--serif); color: var(--ink-3); font-size: 1.0625rem; }

.form-shell {
  background: var(--sheet); border: 1px solid var(--ink);
  padding: clamp(20px, 4vw, 40px);
}
.form-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.form-top p { margin: 0; }
.form-no { font-size: var(--step--2); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.progress { display: flex; gap: 6px; align-items: center; }
.progress span { width: 28px; height: 4px; background: var(--rule); transition: background-color 320ms var(--ease); }
.progress span.on { background: var(--ink); }
.progress::after { content: "Step 1 of 2"; margin-left: 8px; font-size: var(--step--1); color: var(--ink-3); }
.progress:has(#bar-2.on)::after { content: "Step 2 of 2"; }
.field { margin: 0 0 24px; border: 0; padding: 0; }
.field > label, .field-q {
  display: block; margin-bottom: 10px;
  font-family: var(--serif); font-size: var(--step-1); line-height: 1.3; color: var(--ink);
}
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select {
  width: 100%; padding: 13px 12px 12px; border: 1px solid var(--ink-3); border-radius: 0; background: var(--paper);
  font: 400 1rem/1.3 var(--sans); color: var(--ink);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.choices label {
  display: flex; gap: 10px; align-items: center;
  padding: 13px 14px; cursor: pointer;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem; color: var(--ink-2); background: var(--sheet);
  transition: background-color 140ms var(--ease);
}
.choices input {
  appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border: 1.5px solid var(--ink-3); border-radius: 50%;
  display: grid; place-items: center; background: var(--sheet);
}
.choices input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform 140ms var(--ease); }
.choices input:checked { border-color: var(--ink); }
.choices input:checked::after { transform: scale(1); }
.choices input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.choices label:hover { background: var(--paper); }
.choices label:has(input:checked) { background: var(--paper-2); color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.choices-4 { grid-template-columns: repeat(4, 1fr); }
.choices-3 { grid-template-columns: repeat(3, 1fr); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; color: var(--ink-2); margin: 8px 0 18px; cursor: pointer; }
.consent input { appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--ink); background: var(--sheet); display: grid; place-items: center; }
.consent input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 140ms var(--ease); }
.consent input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.consent input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); }
.form-note { font-size: var(--step--1); color: var(--ink-3); margin: 18px 0 0; }
.form-error { color: var(--red); font-weight: 600; margin: 4px 0 0; display: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
#form-done h2, #form-fail h2 { font-size: var(--step-3); margin-bottom: 14px; }
#form-done p, #form-fail p { color: var(--ink-2); }
[hidden] { display: none !important; }
@media (max-width: 520px) {
  .choices, .choices-3 { grid-template-columns: 1fr; }
  .choices-4 { grid-template-columns: 1fr 1fr; }
  .form-nav .btn { flex: 1; justify-content: center; white-space: nowrap; }
  .form-nav #back-btn { flex: 0 0 auto; padding-inline: 20px; }
  .form-nav > span:empty { display: none; }
}

/* ---------- Colophon ---------- */

.colophon { background: var(--ink); color: var(--on-ink-2); padding-block: clamp(48px, 7vw, 88px) 28px; font-size: 0.9375rem; }
.colophon a { color: var(--on-ink); text-decoration-color: var(--rule-on-ink); }
.colophon a:hover { text-decoration-color: var(--on-ink); }
.colophon :focus-visible { outline-color: var(--on-ink); }
.colophon .lockup { color: var(--on-ink); grid-area: auto; }
.colophon .lockup-desc { color: var(--on-ink-2); }
.lockup-lg .lockup-name { font-size: 26px; padding-bottom: 7px; border-bottom-width: 4px; }
.lockup-lg .lockup-desc { font-size: 10.5px; margin-top: 7px; }
.colophon-head { display: grid; gap: 22px; padding-bottom: 28px; border-bottom: 1px solid var(--rule-on-ink); }
.colophon-addr { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 1rem; color: var(--on-ink); }
.colophon-addr a { font-weight: 600; }
.colophon-addr span { color: var(--on-ink-2); }
.colophon-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px; border-bottom: 1px solid var(--rule-on-ink); }
.disclaimer { margin: 24px 0 0; font-size: var(--step--1); line-height: 1.55; max-width: 92ch; }
.colophon-base { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: var(--step--2); letter-spacing: 0.04em; }
.sources-list li::marker { font-variant-numeric: normal; letter-spacing: 0; }
@media (min-width: 900px) {
  .colophon-head { grid-template-columns: auto 1fr; align-items: end; column-gap: 56px; }
  .colophon-addr { justify-content: flex-end; }
}

/* ---------- 404 ---------- */

.nf { padding-block: clamp(64px, 10vw, 140px); }
.nf .doc { padding: clamp(22px, 5vw, 40px); max-width: 640px; font-family: var(--mono); font-size: 0.875rem; }
.nf .doc p { margin: 0 0 6px; }

/* ---------- Call bar (phones) ---------- */

/* Two actions that stay in reach on a long page. Fixed, so it never moves the
 * layout; the request page has its own form and leaves it out. Where scroll
 * timelines exist it waits until the first screen has passed. */
.callbar { display: none; }
@media (max-width: 760px) {
  body:not(.intake-page) { padding-bottom: calc(69px + env(safe-area-inset-bottom)); }
  body:not(.intake-page) .callbar {
    display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px;
    position: fixed; inset: auto 0 0 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--ink);
  }
  .callbar .btn { justify-content: center; padding-block: 15px 14px; white-space: nowrap; }
  .callbar .btn-line { background-color: var(--paper); }
  @supports (animation-timeline: scroll()) {
    body:not(.intake-page) .callbar {
      animation: callbar-in linear both;
      animation-timeline: scroll(root block);
      animation-range: 440px 540px;
    }
    @media (prefers-reduced-motion: reduce) {
      body:not(.intake-page) .callbar { animation-name: callbar-show; }
    }
  }
}
@keyframes callbar-in { from { transform: translateY(100%); visibility: hidden; } to { transform: none; visibility: visible; } }
@keyframes callbar-show { from { visibility: hidden; } to { visibility: visible; } }

/* ---------- Motion ---------- */

/* Cross-page view transitions: the masthead holds still, the page turns. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .masthead { view-transition-name: masthead; }
  .folio { view-transition-name: folio; }
  ::view-transition-old(root) { animation: 140ms cubic-bezier(0.4, 0, 1, 1) both vt-out; }
  ::view-transition-new(root) { animation: 280ms var(--ease) 60ms both vt-in; }
  ::view-transition-group(schedule-a) { animation-duration: 420ms; animation-timing-function: var(--ease); }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
}

/* Scroll-driven marks, tied to the documents they mark. The default (and the
 * reduced-motion, and the unsupported) state is fully marked; scrolling only
 * draws the marks in, so nothing is ever hidden. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stmt tr.adv .tick path {
      stroke-dasharray: 22; stroke-dashoffset: 0;
      animation: draw-tick linear both;
      animation-timeline: view();
      animation-range: entry 90% cover 42%;
    }
    .stmt tr.adv .pen {
      animation: draw-pen linear both;
      animation-timeline: view();
      animation-range: entry 90% cover 44%;
    }
    .stmt tr.adv td {
      animation: wash-row linear both;
      animation-timeline: view();
      animation-range: entry 90% cover 40%;
    }
  }
}
@keyframes draw-tick { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
@keyframes draw-pen { from { background-size: 0% 1.5px; } to { background-size: 100% 1.5px; } }
@keyframes wash-row { from { background-color: transparent; } to { background-color: var(--red-wash); } }

/* ---------- Motion: the documents get worked ----------
 * Figures are entered, lines are ruled, a stamp lands, a clause is highlighted.
 * "anim" is set on <html> by the inline script in the layout, only when motion is
 * welcome; each [data-anim] block gets "is-in" when it scrolls into view. Without
 * the script, with reduced motion, and in print, every block sits finished, so
 * nothing is ever hidden. Only transform, opacity, clip-path and background-size
 * move, so nothing shifts the layout. */

/* On load, the four start buttons arrive one after another. */
@media (prefers-reduced-motion: no-preference) {
  .start-choices .btn { animation: rise-in 480ms var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms + 160ms); }
  .start-choices .btn:nth-child(2) { --i: 1; }
  .start-choices .btn:nth-child(3) { --i: 2; }
  .start-choices .btn:nth-child(4) { --i: 3; }
  /* The second step of the request form, and its end states, rise into place. */
  #step-2:not([hidden]), #form-done:not([hidden]), #form-fail:not([hidden]) { animation: rise-in 380ms var(--ease) backwards; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }

/* Section marks: the rule is drawn, then the number. */
.anim .sec-head::before { transform-origin: 0 50%; transition: transform 700ms var(--ease); }
.anim .sec-head:not(.is-in)::before { transform: scaleX(0); }
.anim .sec-head .sec-num { transition: opacity 500ms var(--ease) 250ms; }
.anim .sec-head:not(.is-in) .sec-num { opacity: 0; }

/* Schedule A: each leader runs out to its figure, and the figure is entered.
 * Skipped when arriving from another page of the site, where the card is
 * already carried across by the view transition. */
.sched-row:nth-child(2) { --i: 1; }
.sched-row:nth-child(3) { --i: 2; }
.sched-row:nth-child(4) { --i: 3; }
.sched-row:nth-child(5) { --i: 4; }
.sched-row:nth-child(6) { --i: 5; }
.sched-row:nth-child(7) { --i: 6; }
.anim:not(.inner) .schedule[data-anim] .sched-row dt::after { clip-path: inset(-3px 0 -3px 0); transition: clip-path 460ms var(--ease) calc(var(--i, 0) * 110ms + 120ms); }
.anim:not(.inner) .schedule[data-anim]:not(.is-in) .sched-row dt::after { clip-path: inset(-3px 100% -3px 0); }
.anim:not(.inner) .schedule[data-anim] .sched-row dd { transition: opacity 280ms var(--ease) calc(var(--i, 0) * 110ms + 400ms), transform 460ms var(--ease) calc(var(--i, 0) * 110ms + 400ms); }
.anim:not(.inner) .schedule[data-anim]:not(.is-in) .sched-row dd { opacity: 0; transform: translateY(0.45em); }
.anim:not(.inner) .schedule[data-anim] :is(.schedule-terms, .schedule-promise) { transition: opacity 520ms var(--ease) 1050ms; }
.anim:not(.inner) .schedule[data-anim]:not(.is-in) :is(.schedule-terms, .schedule-promise) { opacity: 0; }

/* The five stages arrive in the order they happen. */
.lanes :is(th, td):nth-child(3) { --c: 1; }
.lanes :is(th, td):nth-child(4) { --c: 2; }
.lanes :is(th, td):nth-child(5) { --c: 3; }
.lanes :is(th, td):nth-child(6) { --c: 4; }
.lanes .lane-atty td { --c: 5; }
.anim .lanes-fig[data-anim] :is(thead th, tbody td) { transition: opacity 420ms var(--ease) calc(var(--c, 0) * 120ms + 80ms), transform 420ms var(--ease) calc(var(--c, 0) * 120ms + 80ms); }
.anim .lanes-fig[data-anim]:not(.is-in) :is(thead th:not(:first-child), tbody td) { opacity: 0; transform: translateY(10px); }

/* Exhibit 1: the share of the week's deposits is stamped under the totals. */
.anim .stmt-mark[data-anim] b { display: inline-block; transform-origin: 0 60%; transition: opacity 140ms linear 150ms, transform 380ms cubic-bezier(0.2, 1.5, 0.4, 1) 150ms; }
.anim .stmt-mark[data-anim]:not(.is-in) b { opacity: 0; transform: scale(1.3); }
.anim .stmt-mark[data-anim] span { transition: opacity 400ms var(--ease) 420ms; }
.anim .stmt-mark[data-anim]:not(.is-in) span { opacity: 0; }

/* Exhibit 2: the boxes are numbered in turn, each one lighting as it is
 * numbered, and the filing office stamp lands last. */
[data-box="2"], [data-note="2"] { --n: 1; }
[data-box="3"], [data-note="3"] { --n: 2; }
[data-box="4"], [data-note="4"] { --n: 3; }
.anim .ucc[data-anim] [data-box] .ucc-pin { transition: transform 320ms cubic-bezier(0.2, 1.5, 0.4, 1) calc(var(--n, 0) * 280ms + 200ms); }
.anim .ucc[data-anim]:not(.is-in) [data-box] .ucc-pin { transform: scale(0); }
.anim .ucc[data-anim].is-in [data-box] { animation: box-lit 1100ms var(--ease) calc(var(--n, 0) * 280ms + 200ms) 1; }
@keyframes box-lit { 25% { background-color: var(--hi); } }
/* The stamp starts larger than its box; the form's own edge clips it, so it can
 * never widen the page on a phone. */
.anim .ucc[data-anim] { overflow: hidden; overflow: clip; }
.anim .ucc[data-anim] .ucc-stamp { transform-origin: 50% 50%; transition: opacity 100ms linear 1040ms, transform 300ms cubic-bezier(0.2, 1.6, 0.4, 1) 1040ms; }
.anim .ucc[data-anim]:not(.is-in) .ucc-stamp { opacity: 0; transform: scale(1.35); }
.anim .ucc-notes[data-anim] li { transition: opacity 420ms var(--ease) calc(var(--n, 0) * 140ms), transform 420ms var(--ease) calc(var(--n, 0) * 140ms), color 160ms var(--ease); }
.anim .ucc-notes[data-anim]:not(.is-in) li { opacity: 0; transform: translateX(-10px); }

/* Exhibit 3: the highlighter runs over the two passages that matter, then the
 * margin note is ticked. */
.anim .clause[data-anim] mark { transition: background-size 900ms cubic-bezier(0.4, 0, 0.3, 1) 250ms; }
.anim .clause[data-anim] p:nth-of-type(3) mark { transition-duration: 520ms; transition-delay: 1250ms; }
.anim .clause[data-anim]:not(.is-in) mark { background-size: 0% 100%; }
.anim .clause[data-anim] .clause-note .tick path { stroke-dasharray: 22; stroke-dashoffset: 0; transition: stroke-dashoffset 420ms var(--ease) 1850ms; }
.anim .clause[data-anim]:not(.is-in) .clause-note .tick path { stroke-dashoffset: 22; }

/* Schedule B: each line is ruled, then its entry appears. */
.never > li:nth-child(2) { --i: 1; }
.never > li:nth-child(3) { --i: 2; }
.never > li:nth-child(4) { --i: 3; }
.never > li:nth-child(5) { --i: 4; }
.never > li:nth-child(6) { --i: 5; }
.never > li:nth-child(7) { --i: 6; }
.never > li:nth-child(8) { --i: 7; }
.anim .never[data-anim] > li { position: relative; border-top-color: transparent; }
.anim .never[data-anim] > li::before {
  content: ""; position: absolute; inset: -1px 0 auto 0; border-top: 1px solid var(--rule);
  transform-origin: 0 50%; transition: transform 600ms var(--ease) calc(var(--i, 0) * 90ms);
}
.anim .never[data-anim]:not(.is-in) > li::before { transform: scaleX(0); }
.anim .never[data-anim] > li > * { transition: opacity 460ms var(--ease) calc(var(--i, 0) * 90ms + 160ms), transform 460ms var(--ease) calc(var(--i, 0) * 90ms + 160ms); }
.anim .never[data-anim]:not(.is-in) > li > * { opacity: 0; transform: translateY(8px); }

/* Three questions: each answer is entered in turn. */
.ask3-list > li:nth-child(2) { --i: 1; }
.ask3-list > li:nth-child(3) { --i: 2; }
.anim .ask3-list[data-anim] .ask3-a { transition: opacity 420ms var(--ease) calc(var(--i, 0) * 160ms + 120ms), transform 420ms var(--ease) calc(var(--i, 0) * 160ms + 120ms); }
.anim .ask3-list[data-anim]:not(.is-in) .ask3-a { opacity: 0; transform: translateY(8px); }

/* The principal's photograph settles into its mount. */
.anim .principal[data-anim] .principal-photo { transition: opacity 500ms var(--ease), clip-path 700ms var(--ease); clip-path: inset(0); }
.anim .principal[data-anim]:not(.is-in) .principal-photo { opacity: 0; clip-path: inset(0 0 100% 0); }
.anim .principal[data-anim] figcaption { transition: opacity 500ms var(--ease) 260ms, transform 500ms var(--ease) 260ms; }
.anim .principal[data-anim]:not(.is-in) figcaption { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Print ---------- */

@media print {
  .folio, .nav, .masthead-actions, .close-act, .worksheet, .skip, .callbar, .start { display: none !important; }
  body { background: #fff; }
  .sec-ink, .colophon { background: #fff; color: #000; }
  .sec-ink h2, .never strong, .colophon a, .colophon-line { color: #000; }
  .sources-list a::after { content: " (" attr(href) ")"; word-break: break-all; }
  .anim [data-anim], .anim [data-anim] *, .anim [data-anim] *::before, .anim [data-anim] *::after, .anim .sec-head::before, .anim .sec-head .sec-num {
    opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; animation: none !important;
  }
  .anim .clause mark { background-size: 100% 100% !important; }
  .anim .tick path { stroke-dashoffset: 0 !important; }
}

/* A section that continues the one before it on the same paper */
.sec--follow { padding-top: 8px; }

/* ---------- Library: guides, state law pages, industry pages, calculators ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--step--1); color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.crumbs a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.crumb-sep { color: var(--rule); }
.kicker { margin: 0 0 12px; font-size: var(--step--2); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.article-hero h1 { max-width: 24ch; font-size: clamp(2rem, 1.45rem + 2.5vw, 3.375rem); text-wrap: balance; }
.article-hero .lead { max-width: 60ch; }
.article-meta { margin: 22px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); max-width: 60ch; font-size: var(--step--1); color: var(--ink-3); }
.article-main { padding-block: clamp(8px, 2vw, 24px) clamp(52px, 7vw, 96px); }
.article-main > .grid { row-gap: 28px; }

.article-toc { font-size: 0.9375rem; line-height: 1.4; }
.article-toc summary::after { content: "+"; float: right; font-size: 1rem; letter-spacing: 0; line-height: 1; }
.article-toc details[open] summary::after { content: "\2212"; }
.article-toc summary { cursor: pointer; list-style: none; font-size: var(--step--2); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding: 12px 0; border-top: 2px solid var(--ink); }
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc ol { list-style: none; margin: 0; padding: 0 0 6px; }
.article-toc li { border-top: 1px solid var(--rule); }
.article-toc a { display: block; padding: 9px 0; text-decoration: none; color: var(--ink-2); }
.article-toc a:hover { color: var(--ink); text-decoration: underline; }

.article-body { max-width: 68ch; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { font-size: var(--step-2); margin: 1.9em 0 0.55em; scroll-margin-top: 20px; }
.article-body h3 { font-family: var(--sans); font-size: var(--step-0); font-weight: 650; letter-spacing: 0; color: var(--ink); margin: 1.5em 0 0.35em; }
.article-body ul, .article-body ol { margin: 0 0 1.1em; }
.article-body li { margin-bottom: 0.4em; }
.article-body p strong, .article-body li strong { color: var(--ink); }
.article-body a:not(.btn) { color: var(--ink); }

.keyfacts { border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding: 20px 0 8px; margin: 0 0 2em; }
.article-body .keyfacts h2 { font-family: var(--sans); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.keyfacts ul { list-style: none; padding: 0; margin: 0; }
.keyfacts li { position: relative; padding: 0 0 10px 22px; color: var(--ink); }
.keyfacts li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; border-top: 2px solid var(--ink); }

.note { border-left: 2px solid var(--ink); padding: 2px 0 2px 16px; margin: 1.6em 0; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
.note p:last-child { margin-bottom: 0; }
.article-note { margin-top: 3em; color: var(--ink-3); }

.tbl-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border-top: 2px solid var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; font-variant-numeric: lining-nums; }
.tbl caption { caption-side: bottom; text-align: left; padding-top: 10px; font-size: var(--step--1); color: var(--ink-3); }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); }
.tbl thead th { font-size: var(--step--2); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.tbl tbody th { font-weight: 650; color: var(--ink); }
.tbl td { color: var(--ink-2); }
.tbl .r { text-align: right; white-space: nowrap; }

.howto { list-style: none; padding: 0; counter-reset: howto; }
.article-body .howto > li { counter-increment: howto; position: relative; padding: 16px 0 6px 52px; border-top: 1px solid var(--rule); margin: 0; }
.howto > li::before { content: counter(howto); position: absolute; left: 0; top: 14px; font-family: var(--serif); font-size: var(--step-2); font-weight: 600; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.article-body .howto h3 { margin-top: 0; }

.statute { margin: 1.4em 0; padding: 16px 20px; background: var(--sheet); border: 1px solid var(--rule); font-family: var(--serif); color: var(--ink); }
.statute p { margin-bottom: 0.6em; color: var(--ink); }
.statute cite { display: block; font-family: var(--sans); font-style: normal; font-size: var(--step--1); color: var(--ink-3); }

.letter { padding: clamp(18px, 4vw, 34px); margin: 1.4em 0 1.8em; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.6; }
.letter p { color: var(--ink); margin-bottom: 1em; }
.letter p:last-child { margin-bottom: 0; }

.glossary { margin: 0; }
.glossary dt { font-family: var(--serif); font-size: var(--step-1); font-weight: 600; color: var(--ink); padding-top: 18px; border-top: 1px solid var(--rule); scroll-margin-top: 20px; }
.glossary dd { margin: 6px 0 18px; color: var(--ink-2); }

.cta-inline { margin: 2.2em 0; padding: 22px 24px 24px; background: var(--paper-2); border-top: 2px solid var(--ink); }
.cta-inline p { color: var(--ink-2); font-size: 0.9375rem; margin-bottom: 0.9em; }
.cta-inline .cta-inline-h { font-family: var(--serif); font-size: var(--step-1); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.cta-inline .cta-inline-act { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin: 16px 0 0; }

.article-body .qa { margin-top: 0.6em; }
.article-body .qa summary { font-weight: 600; }

.hub-group { margin-bottom: 44px; }
.article-body .hub-group h2 { font-family: var(--sans); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 4px; }
.hub-list, .article-body ul.hub-list { list-style: none; margin: 0; padding: 0; }
.article-body .hub-list li, .hub-list li { margin: 0; padding: 16px 0 14px; border-top: 1px solid var(--rule); }
.hub-list li:last-child { border-bottom: 1px solid var(--rule); }
.hub-list a { font-family: var(--serif); font-size: var(--step-1); font-weight: 600; line-height: 1.25; color: var(--ink); text-decoration: none; }
.hub-list a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.hub-list p { margin: 6px 0 0; font-size: 0.9375rem; color: var(--ink-2); max-width: 62ch; }
.article.is-hub .article-body { max-width: none; }

.related { padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--ink); }
.related-h { font-family: var(--serif); font-size: var(--step-1); font-weight: 500; }

@media (min-width: 720px) {
  .article.is-hub .hub-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .article.is-hub .hub-list li:last-child { border-bottom: 0; }
  .related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .related-list li:last-child { border-bottom: 0; }
}
@media (min-width: 900px) {
  .article-hero .grid > div { grid-column: 1 / 11; }
  .article-body { grid-column: 3 / 10; }
  .article.is-hub .article-body { grid-column: 3 / -1; }
  .related-h { grid-column: 1 / 3; }
  .related-list { grid-column: 3 / -1; margin-top: 0; }
}
@media (min-width: 1080px) {
  .article.has-toc .article-toc { grid-column: 1 / 4; grid-row: 1; align-self: start; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; padding-right: 12px; }
  .article.has-toc .article-toc summary { pointer-events: none; }
  .article.has-toc .article-toc summary::after { content: none; }
  .article.has-toc .article-body { grid-column: 4 / 11; grid-row: 1; }
}

/* Five links do not fit a phone's width. The library is one tap away in the footer and in every breadcrumb. */
@media (max-width: 479px) {
  .nav-link[href="/guides/"] { display: none; }
}

/* ---------- Calculators ---------- */

.wk-grid { display: grid; gap: 14px; }
.wk-grid .wk-field { align-content: start; }
.worksheet .wk-plain input { padding-left: 10px; }
.worksheet .wk-money > .wk-unit { padding: 0 10px 0 0; }
.wk-results .ledger { margin-top: 4px; }
.wk-results .ledger dd { font-size: var(--step-0); }
.wk-results .ledger .total dd { font-size: var(--step-1); }
.wk-results .wk-note a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
@container worksheet (min-width: 560px) {
  .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
}
.wk-grid + .wk-step { margin-top: 22px; }
.worksheet .wk-text { border: 1px solid var(--ink-3); background: var(--sheet); padding: 11px 10px 10px; font-family: var(--sans); font-size: 0.9375rem; }
.worksheet .wk-text:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.wk-actions { display: flex; gap: 18px; margin: 0 0 8px; }
.wk-btn { font: 600 0.9375rem/1 var(--sans); color: var(--sheet); background: var(--ink); border: 1px solid var(--ink); padding: 12px 18px; cursor: pointer; }
.wk-btn:hover { background: var(--ink-2); }
.worksheet:not(.is-live) .wk-actions { display: none; }
@media print {
  body * { visibility: hidden; }
  [data-calc="letter"] .letter, [data-calc="letter"] .letter * { visibility: visible; }
  [data-calc="letter"] .letter { position: absolute; left: 0; top: 0; width: 100%; border: 0; margin: 0; }
}
.embed-box { margin: 1em 0 1.6em; }
.embed-code { margin: 0 0 10px; padding: 14px 16px; background: var(--sheet); border: 1px solid var(--ink-3); font-family: var(--mono); font-size: 0.8125rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: auto; }
body.embed { padding: 8px; }
.embed-credit { margin: 10px 2px 0; font-size: var(--step--1); color: var(--ink-3); }
.embed-credit a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
