/* Simple Pay Application: one stylesheet for the site and the app. Direction and every token: docs/DESIGN.md.
   World: the job-trailer desk at month end (ledger pad, carbon copies, an orange rubber stamp, the crew outside).
   Signature: the accountant's double rule under the totals; line 8 (current payment due) is the only orange figure.
   Blue = actions, links, focus. Orange = the stamp and the payment due. 2-4 px corners; a hard offset shadow only on
   paper objects; hairlines; no accent edges, no pills, no gradients of hue, no emoji. 4 px spacing scale. */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/barlow-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/barlow-condensed-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; src: url("/static/fonts/public-sans-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; src: url("/static/fonts/public-sans-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* neutrals */
  --surface: #ffffff; --ground: #f6f6f4; --sunk: #eeeeeb;
  --rule: #e2e2de; --rule-strong: #cbcac4; --fill-line: #858a91;
  --ink: #181b1f; --ink-2: #4a4f57; --ink-3: #6b7078;
  /* paper */
  --paper: #fffefb; --paper-back: #f1f0ec;
  /* dark */
  --deep: #14171b; --deep-2: #1d2126; --deep-rule: #2c3138; --deep-ink: #f1f0ec; --deep-soft: #a9afb7;
  /* blueprint blue: actions, links, focus */
  --blue: #1d4e86; --blue-hover: #163e6c; --blue-wash: #edf2f8; --blue-on-dark: #8fb8ec;
  /* safety orange: the stamp and the payment due */
  --orange: #b84d17; --orange-ink: #9f4313; --orange-on-dark: #e88a50;
  /* meaning only */
  --ok: #1f7347; --ok-wash: #e8f2ec; --warn: #7a4f00; --warn-wash: #fbf3e0; --stop: #b0281f; --stop-wash: #fbe9e7;
  /* type */
  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* shape */
  --r-1: 2px; --r-2: 4px; --r-paper: 3px;
  --r-ctl: 4px; --r-card: 4px;                 /* older names, kept for screens not yet redone */
  --shadow-paper: 6px 6px 0 var(--ink);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(64px, 8vw, 112px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hover); }
h1, h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: 0; margin: 0 0 8px; text-wrap: balance; }
h1 { font-size: 36px; line-height: 1.1; }
h2 { font-size: 24px; line-height: 1.15; }
h3 { font: 600 16px/1.35 var(--font); margin: 0 0 8px; }
p { margin: 0 0 12px; }
img { max-width: 100%; height: auto; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ---------------------------------------------------------------- app bar (dark, plain tabs, account menu) */
.top { background: var(--deep); color: var(--deep-ink); position: relative; z-index: 20; }
.top .in { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; align-items: stretch; gap: 32px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--deep-ink); text-decoration: none; white-space: nowrap;
  font: 600 19px/1 var(--f-display); letter-spacing: .005em; }
.brand:hover { color: #fff; }
.brand img { width: 24px; height: 24px; display: block; }
.nav { display: flex; gap: 24px; flex: 1; align-items: stretch; }
.nav a { display: flex; align-items: center; color: var(--deep-soft); text-decoration: none; font-weight: 500; font-size: 15px;
  border-bottom: 2px solid transparent; padding-top: 2px; transition: color .12s var(--ease), border-color .12s var(--ease); }
.nav a:hover { color: var(--deep-ink); }
.nav a[aria-current="page"] { color: var(--deep-ink); border-bottom-color: var(--deep-ink); }
.acct { position: relative; display: flex; align-items: center; }
.acct summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--deep-soft); font-size: 14px;
  font-weight: 500; padding: 8px 0; transition: color .12s var(--ease); }
.acct summary::-webkit-details-marker { display: none; }
.acct summary:hover, .acct[open] summary { color: var(--deep-ink); }
.acct-sheet { position: absolute; right: 0; top: calc(100% + 4px); width: 248px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: var(--r-2); padding: 4px 0; animation: sheet-in .18s var(--ease); }
.acct-sheet .who { margin: 0; padding: 10px 14px 12px; border-bottom: 1px solid var(--rule); font-weight: 500; font-size: 14px; }
.acct-sheet .who span { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.acct-sheet a, .acct-sheet button { display: flex; align-items: center; width: 100%; min-height: 36px; padding: 0 14px; border: 0; background: none;
  font: inherit; font-size: 14px; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.acct-sheet a:hover, .acct-sheet button:hover { background: var(--ground); color: var(--ink); }
.acct-sheet a[aria-current="page"] { font-weight: 600; }
.acct-sheet form { margin: 0; border-top: 1px solid var(--rule); padding-top: 4px; margin-top: 4px; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; color: var(--deep-ink); padding: 0 14px; height: 40px; display: flex; align-items: center;
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--r-2); font-size: 14px; font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu .sheet { position: absolute; left: 0; right: 0; top: 100%; background: var(--deep-2); border-top: 1px solid var(--deep-rule); padding: 8px 16px 16px; }
.menu .sheet a, .menu .sheet button { display: block; width: 100%; text-align: left; color: var(--deep-ink); text-decoration: none; padding: 12px 4px;
  border: 0; border-bottom: 1px solid var(--deep-rule); background: none; font: inherit; font-size: 16px; }
.menu .sheet form { margin: 0; }
.menu .sheet .who-line { color: var(--deep-soft); font-size: 13px; padding: 12px 4px 4px; }
@media (max-width: 760px) {
  .top .in { padding: 0 16px; gap: 12px; }
  .nav, .acct { display: none; }
  .menu { display: flex; align-items: center; margin-left: auto; }
}

main.page { max-width: 1280px; margin: 0 auto; padding: 32px 32px 64px; }
main.page.wide { max-width: 1440px; }   /* only the sheet goes wide; the app bar keeps its container (RADAR-STEP3-CHECK should 2) */
@media (max-width: 640px) { main.page { padding: 20px 16px 48px; } h1 { font-size: 30px; } h2 { font-size: 22px; } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 24px; }
.head .lead { margin: 4px 0 0; color: var(--ink-2); max-width: 680px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); text-decoration: none; margin-bottom: 12px; padding: 4px 0; }
.back:hover { color: var(--ink); }

/* ---------------------------------------------------------------- surfaces (flattened: a box only for a separate object) */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-2); padding: 24px; margin-bottom: 20px; }
.card > h2:first-child { margin-bottom: 16px; }
.card.tight { padding: 16px; }
.form-page { max-width: 720px; }
.form-page.wide { max-width: 1080px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cols2 { grid-template-columns: 1fr; } .card { padding: 16px; } }

/* notes: the only coloured box in the app; meaning only, no edge */
.note { border-radius: var(--r-1); padding: 12px 16px; margin-bottom: 20px; border: 1px solid; font-size: 14px; }
.note.ok { background: var(--ok-wash); border-color: #b9d6c4; color: #154d30; }
.note.due { background: var(--warn-wash); border-color: #e6d2a6; color: #5e3a00; }
.note.stop { background: var(--stop-wash); border-color: #e8bcb6; color: #6e1c15; }
.note.info { background: var(--blue-wash); border-color: #c8d6e8; color: #143a63; }
.note ul { margin: 8px 0 0; padding-left: 20px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- forms */
label, .label { display: block; font-weight: 500; font-size: 14px; margin: 0 0 4px; color: var(--ink); }
.field { margin-bottom: 16px; }
.field .hint { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.field .err { font-size: 13px; color: var(--stop); margin-top: 4px; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--stop); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=date], input[type=tel], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-1); padding: 8px 12px; min-height: 40px;
  transition: border-color .12s var(--ease); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input::placeholder, textarea::placeholder { color: #9a9ea5; }
textarea { min-height: 96px; resize: vertical; }
textarea.paste { font: 13px/1.5 var(--mono); min-height: 240px; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(29,78,134,.22); outline-offset: 0; border-color: var(--blue); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--blue); }
.money-in input { font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--r-2);
  border: 1px solid var(--blue); background: var(--blue); color: #fff; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease), transform .1s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn:active { transform: scale(.98); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--rule-strong); }
.btn.secondary:hover { background: var(--surface); border-color: var(--ink-3); color: var(--ink); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding: 8px; }
.btn.quiet:hover { color: var(--ink); background: var(--sunk); }
.btn.danger { background: var(--surface); color: var(--stop); border-color: #e2b2ac; }
.btn.danger:hover { background: var(--stop-wash); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.actions .end { margin-left: auto; }   /* a secondary action on the right of the row (Clear the mark) */
.inline { display: inline; margin: 0; }

/* ---------------------------------------------------------------- tables (rules, not boxes) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--r-2); background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--surface); white-space: nowrap; border-bottom-color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color .12s var(--ease); }
tbody tr.link:hover { background: var(--ground); }
tfoot td { border-top: 1px solid var(--ink); border-bottom: 0; font-weight: 600; }
td a.rowlink { font-weight: 600; color: var(--ink); text-decoration: none; }
td a.rowlink:hover { color: var(--blue); text-decoration: underline; }
/* status words: plain text, never a pill */
.tag { display: inline; font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 0; border: 0; background: none; white-space: nowrap; }
.tag.ok { color: var(--ok); }
.tag.due, .tag.co, .tag.lock { color: var(--ink-2); }
.tag.pick { color: var(--ink); margin-left: 4px; }
.tag svg.i { width: 14px; height: 14px; vertical-align: -2px; }
@media (max-width: 760px) {
  table.cards thead { display: none; }
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
  table.cards tr { padding: 12px 16px; border-bottom: 1px solid var(--rule); }
  table.cards td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.cards td::before { content: attr(data-label); color: var(--ink-3); font-size: 13px; text-align: left; }
  table.cards td.first { display: block; text-align: left; padding-bottom: 6px; }
  table.cards td.first::before { content: none; }
  table.cards tfoot { display: none; }
}

/* ---------------------------------------------------------------- project facts (a ruled box, no coloured edge) */
.title-block { display: grid; grid-template-columns: auto auto; border: 1px solid var(--rule-strong); border-radius: var(--r-1); background: var(--surface); font-size: 13px; min-width: 260px; }
.title-block div { padding: 6px 12px; border-bottom: 1px solid var(--rule); }
.title-block div:nth-child(odd) { color: var(--ink-3); border-right: 1px solid var(--rule); }
.title-block div:nth-child(even) { color: var(--ink); font-variant-numeric: tabular-nums; }
.title-block div:nth-last-child(-n+2) { border-bottom: 0; }
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--rule); margin-bottom: 24px; }
.figs > div { padding: 16px 20px 16px 0; }
.figs > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.figs span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.figs strong { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
@media (max-width: 900px) { .figs { grid-template-columns: 1fr 1fr; } .figs > div:nth-child(3) { border-left: 0; padding-left: 0; } .figs > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
dl.facts { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
dl.facts dt { color: var(--ink-3); }
dl.facts dd { margin: 0; white-space: pre-line; }
@media (max-width: 640px) { dl.facts { grid-template-columns: 1fr; gap: 0; } dl.facts dd { margin-bottom: 12px; } }
dl.facts.tight, dl.facts.tight dd { grid-template-columns: auto 1fr; gap: 8px 16px; margin-bottom: 0; }

/* ---------------------------------------------------------------- photo moments */
.photo-band { position: relative; border-radius: var(--r-2); overflow: hidden; min-height: 200px; display: flex; align-items: flex-end; margin-bottom: 24px; background: var(--deep); }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band .shade { position: absolute; inset: 0; background: rgba(14, 17, 21, .58); }
.photo-band .txt { position: relative; padding: 28px 32px; color: #fff; max-width: 720px; }
.photo-band .txt h1, .photo-band .txt h2 { color: #fff; margin-bottom: 4px; }
.photo-band .txt p { color: #e2e6ea; margin: 0; }
.photo-band .credit { position: absolute; right: 12px; bottom: 8px; font-size: 12px; color: var(--deep-soft); }
@media (max-width: 640px) { .photo-band { min-height: 168px; } .photo-band .txt { padding: 20px 20px 40px; } .photo-band .credit { bottom: 10px; } }
.empty { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.empty .pic { position: relative; min-height: 320px; border-radius: var(--r-2); overflow: hidden; }
.empty .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.empty .txt { padding: 8px 0; display: flex; flex-direction: column; justify-content: center; }
.empty .txt p { color: var(--ink-2); max-width: 440px; }
.empty ol { margin: 4px 0 20px; padding-left: 20px; color: var(--ink-2); }
.empty ol li { margin-bottom: 4px; }
@media (max-width: 760px) { .empty { grid-template-columns: 1fr; gap: 16px; } .empty .pic { min-height: 180px; } }

/* ---------------------------------------------------------------- guided first job */
.example { background: var(--ground); border: 1px solid var(--rule); border-radius: var(--r-2); padding: 16px 20px; font-size: 14px; }
.example h3 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.example dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.example dt { color: var(--ink-3); }
.example dd { margin: 0; }
.example table { font-size: 13px; }
.example td { padding: 4px 0; border-bottom: 1px solid var(--rule); }
.explain { color: var(--ink-2); margin: 0 0 20px; max-width: 680px; }
.explain p { margin: 0 0 4px; }
.form-narrow { max-width: 760px; }

/* ---------------------------------------------------------------- the schedule grid */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin: 0 0 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 14px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); margin-bottom: 20px; }
.tally > div { padding: 16px 20px 16px 0; }
.tally > div + div:not(.bar) { padding-left: 20px; border-left: 1px solid var(--rule); }
.tally span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.tally strong { font-size: 22px; font-variant-numeric: tabular-nums; font-weight: 600; }
.tally .match strong { color: var(--ok); }
.tally .off strong { color: var(--stop); }
.tally .bar { grid-column: 1 / -1; height: 4px; background: var(--sunk); padding: 0; position: relative; }
.tally .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); transition: width .2s var(--ease); }
.tally .bar i.over { background: var(--stop); }
.tally .bar i.match { background: var(--ok); }
@media (max-width: 640px) { .tally { grid-template-columns: 1fr 1fr; } .tally > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--rule); border-left: 0; padding-left: 0; }
  .tally > div { padding: 12px 12px 12px 0; } .tally strong { font-size: 18px; }
  .tabs { gap: 0; } .tabs a { padding: 10px 8px; gap: 6px; } }
table.sov th, table.sov td { padding: 4px 8px; vertical-align: middle; }
table.sov th { padding: 10px 8px; }
table.sov td.ln, table.sov th.ln { width: 48px; color: var(--ink-3); text-align: right; }
table.sov td.ln { font: 12px var(--mono); }
table.sov td.ln .co-no { font-family: var(--font); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
table.sov td.v { width: 200px; }
table.sov td.x { width: 48px; text-align: center; }
table.sov input { min-height: 36px; border-color: transparent; background: transparent; border-radius: var(--r-1); padding: 6px 8px; }
table.sov input:hover { border-color: var(--ink-3); }
table.sov input:focus { background: var(--surface); border-color: var(--blue); }
table.sov input.money { text-align: right; font-variant-numeric: tabular-nums; }
table.sov tr.locked input.money { color: var(--ink-2); }
table.sov tr.err td { background: var(--stop-wash); }
table.sov tr.rowerr td { font-size: 12px; color: var(--stop); padding: 0 8px 8px 56px; background: var(--stop-wash); }
table.sov tfoot td { padding: 12px 8px; }
.icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--r-1); background: transparent; color: var(--ink-3); cursor: pointer; }
.icon-btn:hover { border-color: var(--rule); color: var(--stop); background: var(--surface); }
@media (max-width: 640px) { table.sov td.ln, table.sov th.ln { display: none; } table.sov td.v { width: 132px; } table.sov td.x { width: 36px; } table.sov tr.rowerr td { padding-left: 8px; } }
.drop { border: 1px dashed var(--rule-strong); border-radius: var(--r-2); padding: 24px; background: var(--ground); text-align: center; }
.file { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 16px; }
.drop .file { justify-content: center; margin: 4px 0 16px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file label.btn { cursor: pointer; margin: 0; }
.file-input:focus-visible + label.btn { outline: 2px solid var(--blue); outline-offset: 2px; }
.file-name { overflow-wrap: anywhere; }
.file-name.chosen { color: var(--ink); }

/* ---------------------------------------------------------------- plans (columns on hairlines, no coloured tops) */
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }  /* WP-20: four plans and the single */
.plan { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-2); padding: 24px; display: flex; flex-direction: column; }
.plan.usual, .plan.picked { border: 2px solid var(--ink); padding: 23px; }
.plan .your-plan { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--ok); }
.plan h2 { font-size: 22px; margin-bottom: 4px; }
.plan .price { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin: 8px 0 0; }
.plan .per { color: var(--ink-3); font-size: 13px; min-height: 20px; }
.plan ul { padding: 0; list-style: none; margin: 16px 0 20px; font-size: 14px; color: var(--ink-2); flex: 1; }
/* Radar L1 (13 Nov): a long plan name wraps inside its button instead of running past the card */
.plan .btn { white-space: normal; text-align: center; line-height: 1.25; }
.plan li { padding: 6px 0; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 8px; }
.plan li b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan form { margin: 0 0 8px; }
.plan form.paybtns { display: grid; gap: 8px; }
.co-price { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin: 0 0 16px; }
.co-price span { font-size: 13px; font-weight: 400; letter-spacing: 0; }
#checkout { min-height: 120px; }
.co-switch { margin: 16px 0 8px; }
.co-projects { list-style: none; margin: 8px 0 16px; padding: 0; max-height: 232px; overflow-y: auto; border: 1px solid var(--rule); border-radius: var(--r-2); font-size: 14px; }
.co-projects li { padding: 8px 12px; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.co-projects li:first-child { border-top: 0; }
.co-pay .note:last-child { margin-bottom: 0; }
.dev { margin-top: 24px; border: 1px dashed var(--warn); background: var(--warn-wash); border-radius: var(--r-2); padding: 16px 20px; font-size: 14px; }
.dev h2 { font-size: 18px; color: var(--warn); }
.dev form { display: inline-block; margin: 4px 8px 4px 0; }
@media (max-width: 1240px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- auth: centred compact panel over a job-site photo */
.auth-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--deep); position: relative; overflow: hidden; }
.auth-page > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.auth-page > .shade { position: absolute; inset: 0; background: rgba(14, 17, 21, .62); }
.auth-top { position: relative; padding: 20px 24px; }
.auth-main { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 16px 40px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--r-2); padding: 32px; }
.auth-card .check a { color: var(--blue); }
.auth-card h1 { font-size: 32px; margin-bottom: 4px; }
.auth-card .sub { color: var(--ink-2); margin-bottom: 24px; font-size: 14px; }
.auth-card .alt { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); text-align: center; }
.auth-foot { position: relative; padding: 12px 24px 20px; color: rgba(255,255,255,.72); font-size: 12px; text-align: center; }
.auth-foot a { color: rgba(255,255,255,.85); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 480px) { .auth-card { padding: 24px 20px; } .auth-top { padding: 16px; } }

/* footer (app) */
.foot { border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 12px; }
.foot .in { max-width: 1280px; margin: 0 auto; padding: 20px 32px; display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 760px; }
@media (max-width: 640px) { .foot .in { padding: 20px 16px; } }

/* ---------------------------------------------------------------- the pay app editor (DESIGN.md 7.3) */
.app-title { align-items: flex-start; }
.app-title .meta { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.app-title .meta.small { font-size: 13px; margin-top: 2px; }
.due-fig { text-align: right; }
.due-fig span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.due-fig strong { display: inline-block; font: 500 32px/1.1 var(--mono); font-variant-numeric: tabular-nums; color: var(--orange-ink);
  padding-bottom: 6px; border-bottom: 3px double var(--ink); }
.app-dates { display: grid; grid-template-columns: 200px 200px minmax(0, 300px); gap: 0 24px; padding: 20px 0 4px; border-top: 1px solid var(--rule); }
.app-dates .field { margin-bottom: 16px; }
.app-facts-row { padding: 16px 0; border-top: 1px solid var(--rule); }
.sec { border-top: 1px solid var(--rule); padding-top: 24px; margin-top: 16px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; max-width: 760px; }
.sheet-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.ledger { width: 100%; min-width: 1200px; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
table.ledger th { font: 500 12px/1.3 var(--font); color: var(--ink-2); text-align: right; vertical-align: bottom; padding: 8px 8px 10px;
  border-bottom: 1px solid var(--ink); background: var(--surface); white-space: normal; }
table.ledger th.entry { color: var(--ink); font-weight: 600; }
table.ledger th.desc, table.ledger td.desc { text-align: left; }
table.ledger td { height: 40px; padding: 0 8px; border-bottom: 1px solid var(--rule); text-align: right; vertical-align: middle;
  font: 400 13px/1 var(--mono); white-space: nowrap; color: var(--ink); }
table.ledger th.ln, table.ledger td.ln { width: 40px; padding-inline: 4px 12px; text-align: right; }
table.ledger td.ln { font-size: 12px; color: var(--ink-3); }
table.ledger td.desc { font: 400 14px/1.35 var(--font); white-space: normal; min-width: 180px; padding-block: 8px; }
table.ledger td.desc .co-no { color: var(--ink-2); }
table.ledger td.zero { color: var(--ink-3); }
table.ledger td.in { position: relative; padding: 0 4px; width: 108px; }
table.ledger td.in.pct { width: 72px; }
table.ledger td.in.st { width: 96px; }
table.ledger td.in input { width: 100%; height: 32px; min-height: 0; padding: 0 6px; border: 1px solid transparent; border-radius: var(--r-1);
  background: transparent; font: inherit; text-align: right; color: var(--ink); }
table.ledger td.in:has(input:placeholder-shown)::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 9px;
  border-bottom: 1px dotted var(--fill-line); pointer-events: none; }
table.ledger td.in:hover::after, table.ledger td.in:focus-within::after { display: none; }
table.ledger td.in:hover input { border-color: var(--ink-3); background: var(--surface); }
table.ledger td.in input:focus { border-color: var(--blue); background: var(--surface); outline: 2px solid rgba(29,78,134,.22); outline-offset: 0; }
table.ledger td.in.bad input { border-color: var(--stop); background: var(--stop-wash); }
table.ledger td.stored-link a { font-family: var(--mono); }
table.ledger tr.rowerr td { height: auto; border-top: 0; color: var(--stop); font: 12px/1.4 var(--font); padding: 0 10px 8px; text-align: left; white-space: normal; }
table.ledger tfoot td { height: 48px; font-weight: 500; border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); }
table.ledger tfoot td.desc { font-weight: 600; }
table.ledger .ln-m, table.ledger .sum-m, table.ledger .more-btn { display: none; }
.sheet-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); max-width: 900px; }
.app-lower { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; margin-top: 16px; }
.app-lower > section, .app-lower > aside > section { border-top: 1px solid var(--rule); padding-top: 24px; }
.app-lower aside > section + section { margin-top: 24px; }
.app-lower h2 { margin-bottom: 12px; }
table.summary { width: 100%; font-variant-numeric: tabular-nums; }
table.summary td { padding: 0 0; height: 40px; border-bottom: 1px solid var(--rule); vertical-align: middle; font-size: 15px; }
table.summary tr:last-child td { border-bottom: 0; }
table.summary td.sl { width: 40px; font: 12px var(--mono); color: var(--ink-3); }
table.summary td.num { font: 400 14px var(--mono); }
table.summary tr.sub td { color: var(--ink-2); font-size: 13px; }
table.summary tr.sub td.lbl { padding-left: 24px; }
table.summary tr.due td { height: 56px; font-weight: 600; }
table.summary tr.due td.num strong { font: 500 20px/1 var(--mono); color: var(--orange-ink); padding-bottom: 4px; border-bottom: 3px double var(--ink); }
table.summary.co td { font-size: 14px; height: auto; padding: 10px 0; }
table.summary.co td.num { font-size: 13px; line-height: 1.6; }
.doc-actions { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
.signed { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 500; font-size: 14px; }
.due-bar { display: none; }
@media (max-width: 1100px) { .app-lower { grid-template-columns: 1fr; gap: 0; } .app-lower aside { margin-top: 24px; } }
@media (max-width: 760px) {
  .app-title { flex-direction: column; align-items: stretch; }
  .due-fig { text-align: left; }
  .due-fig strong { font-size: 28px; }
  .app-dates { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .app-dates .field:last-child { grid-column: 1 / -1; }
  .sheet-scroll { overflow: visible; }
  table.ledger { min-width: 0; }
  table.ledger thead { display: none; }
  table.ledger, table.ledger tbody, table.ledger tfoot { display: block; }
  table.ledger tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  table.ledger td, table.ledger tfoot td { display: block; height: auto; border: 0; padding: 0; text-align: left; width: auto; white-space: normal; }
  table.ledger td.ln, table.ledger td.gap { display: none; }
  table.ledger td.desc { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 600; padding: 0; min-width: 0; }
  table.ledger td.desc .d { flex: 1; }
  table.ledger .ln-m { display: inline; font: 400 13px var(--mono); color: var(--ink-3); }
  table.ledger .more-btn { display: inline; border: 0; background: none; padding: 4px 0; color: var(--blue); font: 500 13px var(--font); cursor: pointer; }
  table.ledger .sum-m { display: block; grid-column: 1 / -1; font: 400 13px/1.5 var(--mono); color: var(--ink-2); }
  table.ledger td.more { display: none; }
  table.ledger tr.open td.more { display: block; }
  table.ledger td.wide-m { grid-column: 1 / -1; }
  table.ledger td[data-label]::before { content: attr(data-label); display: block; font: 400 12px/1.3 var(--font); color: var(--ink-2); margin-bottom: 4px; }
  table.ledger td.in, table.ledger td.in.pct { padding: 0; width: auto; }
  table.ledger td.in input { height: 44px; font-size: 16px; border-color: var(--rule-strong); background: var(--surface); }
  table.ledger td.in::after { display: none; }
  table.ledger tr.rowerr { display: block; padding: 0 0 12px; border: 0; }
  table.ledger tfoot tr { border-bottom: 3px double var(--ink); border-top: 1px solid var(--ink); }
  table.ledger tfoot td.desc { display: block; }
  .due-bar { display: flex; position: sticky; bottom: 0; z-index: 10; align-items: center; justify-content: space-between; gap: 12px;
    margin: 24px -16px 0; padding: 8px 16px; min-height: 64px; background: var(--surface); border-top: 1px solid var(--rule-strong); }
  .due-bar span { display: block; font-size: 12px; color: var(--ink-2); }
  .due-bar strong { font: 500 18px/1.2 var(--mono); color: var(--orange-ink); border-bottom: 3px double var(--ink); padding-bottom: 2px; }
}

/* WP-07: signature, record, files */
.sigpad { display: block; width: 100%; max-width: 600px; aspect-ratio: 10 / 3; background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--r-1); touch-action: none; cursor: crosshair; }
.sig-typed { font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", "Lucida Handwriting", cursive; font-size: 28px; line-height: 1.4;
  color: var(--ink); min-height: 40px; overflow-wrap: anywhere; }
.sig-mark { border-bottom: 1px solid var(--rule-strong); padding: 8px 0 12px; margin-bottom: 20px; max-width: 560px; }
.sig-mark img { display: block; max-width: 100%; max-height: 140px; }
code.hash { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; word-break: break-all; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions form { display: inline; }
.btn.small[disabled] { opacity: .35; }
.btn.quiet.stop-text { color: var(--stop); }
.btn.quiet.stop-text:hover { background: var(--stop-wash); }
.card .table-wrap + form { margin-top: 16px; }
/* the older editor names, still used by the change-order and stored-materials screens */
.card.flush { padding: 0; overflow: hidden; }
.sheet-head { padding: 20px 24px 8px; }
.sheet-foot { padding: 12px 24px 16px; margin: 0; border-top: 1px solid var(--rule); }
.card.flush .table-wrap { border: 0; border-radius: 0; border-top: 1px solid var(--rule); }

/* ================================================================ public site */
body.site { font-size: 17px; line-height: 1.6; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
/* header: white with a hairline; transparent over the home photo */
.site .top { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--rule); }
.site .top .in { max-width: var(--wrap); padding: 0 var(--gutter); height: 64px; gap: 28px; }
.site .brand { color: var(--ink); font-size: 21px; }
.site .brand img { width: 28px; height: 28px; }
.site .nav { justify-content: flex-end; gap: 28px; }
.site .nav a { color: var(--ink-2); }
.site .nav a:hover, .site .nav a[aria-current="page"] { color: var(--ink); }
.site .nav a.nav-cta { align-self: center; border: 0; padding: 0 18px; min-height: 40px; color: #fff; background: var(--blue); border-radius: var(--r-2); }
.site .nav a.nav-cta:hover { background: var(--blue-hover); color: #fff; }
.site .menu summary { color: var(--ink); border-color: var(--rule-strong); }
.site .menu .sheet { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.site .menu .sheet a { color: var(--ink); border-bottom-color: var(--rule); }
.home-page .top { position: absolute; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: rgba(255,255,255,.12); }
.home-page .brand { color: #fff; }
.home-page .nav a { color: var(--deep-soft); }
.home-page .nav a:hover { color: #fff; }
.home-page .nav a.nav-cta { background: var(--deep-ink); color: var(--deep); }
.home-page .nav a.nav-cta:hover { background: #fff; color: var(--deep); }
.home-page .menu summary { color: #fff; border-color: rgba(255,255,255,.28); }
.home-page .menu .sheet { background: var(--deep-2); border-color: var(--deep-rule); }
.home-page .menu .sheet a { color: var(--deep-ink); border-bottom-color: var(--deep-rule); }
@media (max-width: 900px) { .site .nav { display: none; } .site .menu { display: flex; align-items: center; margin-left: auto; } .site .top .in { height: 56px; } }

/* inner pages */
main.site-page { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 0; }
main.site-page:not(:has(.site-cta.end)) { padding-bottom: 64px; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 24px; }
.crumbs a { color: var(--ink-2); }
.prose h1 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; margin-bottom: 16px; }
.prose h2 { margin: 56px 0 12px; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; }
.prose h3 { margin: 24px 0 6px; font-size: 18px; }
.prose p, .prose li { line-height: 1.6; max-width: 720px; }
.prose > p, .prose > ul, .prose > ol, .prose > h2 { max-width: 760px; }
.prose .lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-2); }
.prose ul.dir { columns: 3 180px; padding-left: 20px; }
.prose ol.steps li { margin-bottom: 6px; }
.prose dl.facts { margin: 8px 0 16px; }
.prose q { quotes: "\201C" "\201D"; }
.sources { margin-top: 24px; }
/* the FAQ on guide and State pages: one full-bleed ground band inside the article */
.prose .faq { border: 0 solid transparent; padding-block: 8px 48px; margin-top: 64px;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='2' height='2' fill='%23f6f6f4'/%3E%3C/svg%3E") 0 fill / 0 / 0 100vmax stretch; }
.prose .faq h2 { margin-top: 48px; }
.prose .faq h3 { margin: 0; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 17px; }
.prose .faq h3 + p { margin: 6px 0 20px; color: var(--ink-2); }
/* paper objects: sample pages of the PDF */
figure.sample { margin: 24px 0; }
figure.sample img { display: block; width: 100%; max-width: 520px; height: auto; background: var(--paper); border: 1px solid var(--rule-strong);
  border-radius: var(--r-paper); box-shadow: var(--shadow-paper); }
figure.sample figcaption { font-size: 13px; color: var(--ink-3); margin-top: 16px; max-width: 520px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; margin-bottom: 8px; }
.intro-grid h1 { margin-top: 0; }
.intro-grid figure.sample { margin: 0 6px 6px 0; }
.intro-grid figure.sample img { max-width: 100%; max-height: 560px; width: auto; }
.step-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; margin: 12px 0 8px; }
.step-grid ol.steps, .step-grid ul { margin-top: 0; }
.step-grid ol.steps li { margin-bottom: 10px; }
/* app screens on public pages sit in a plain browser frame */
.frame { margin: 0; border: 1px solid var(--rule-strong); border-radius: var(--r-2); overflow: hidden; background: var(--surface); }
.frame { position: relative; }
.frame::before { content: ""; display: block; height: 28px; border-bottom: 1px solid var(--rule); background: var(--ground); }
.frame::after { content: ""; position: absolute; left: 14px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--rule-strong);
  box-shadow: 14px 0 0 var(--rule-strong), 28px 0 0 var(--rule-strong); }
.frame img { display: block; width: 100%; height: auto; }
.frame-bar { display: none; }
/* site tables: ledgers */
.prose .table-wrap, .band .table-wrap { margin: 16px 0 20px; border: 0; border-radius: 0; background: transparent; }
.site-table { font-size: 15px; }
.site-table th { font-size: 13px; padding: 10px 12px; }
.site-table td { padding: 10px 12px; }
.site-table.sov td.num { font: 13px var(--mono); }
.site-table.sov td:first-child { min-width: 140px; }
.site-table td.num, .site-table th.num, .figtab td.num, .cmp .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-table tr.tot td { font-weight: 600; border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); }
.site-table.sov tr.tot td.num { font-weight: 500; }
.site-table td[data-facts] { color: var(--ink-2); font-size: 14px; }
.site-table td.first { font-weight: 500; }
table.figtab { max-width: 560px; margin: 16px 0 20px; border-collapse: collapse; font-size: 15px; }
table.figtab td { padding: 0; height: 40px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.figtab td.num { font: 14px var(--mono); }
table.figtab tr:last-child td { border-bottom: 0; }
table.figtab .ln { display: inline-block; width: 32px; text-indent: 0; color: var(--ink-3); font: 12px var(--mono); }
table.figtab td:first-child:has(.ln) { padding-left: 32px; text-indent: -32px; }
table.figtab tr.due td { height: 56px; font-weight: 600; }
table.figtab tr.due td.num { color: var(--orange-ink); font: 500 18px var(--mono); }
table.figtab tr.due td.num { text-decoration: underline 3px double var(--ink); text-underline-offset: 8px; text-decoration-skip-ink: none; }
.statute { border: 1px solid var(--rule); border-radius: var(--r-1); background: var(--surface); margin: 12px 0; max-width: 760px; }
.statute summary { cursor: pointer; padding: 12px 16px; font-weight: 500; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.statute summary .mono { font-size: 12px; font-weight: 400; }
.statute .st-body { padding: 4px 20px 16px; border-top: 1px solid var(--rule); font-family: Georgia, "Times New Roman", serif; font-size: 15px; color: #23272c; }
.statute .st-body p { margin: 8px 0; max-width: none; overflow-wrap: anywhere; }   /* the statutes' long blank lines ("____") wrap on a phone */
.statute .st-head { text-align: center; font-weight: 600; letter-spacing: .02em; }
.statute .st-notice { font-weight: 600; font-size: 14px; }
.statute .st-sub { font-weight: 600; margin-top: 16px; }
.statute .st-blank { display: flex; gap: 8px; align-items: flex-end; }
.statute .st-blank span:first-child { flex: none; max-width: 70%; }
.statute .st-line { flex: 1; border-bottom: 1px solid var(--ink-3); min-width: 48px; height: 1em; }
.site-plans { margin: 24px 0; }
@media (max-width: 980px) { .site-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .site-plans { grid-template-columns: 1fr; }
  .statute .st-body { padding: 4px 14px 14px; font-size: 14px; }
  .statute .st-blank { flex-wrap: wrap; }
  .site-table.sov { font-size: 13px; }
  table.cmp { font-size: 13px; }
  table.cmp th, table.cmp td, table.cmp td.num { padding: 10px 10px 10px 0; white-space: normal; }
  table.cmp td:first-child { min-width: 112px; }
}
/* calls to action: a ruled panel in the page; the closing one is the dark band */
.site-cta { border: 1px solid var(--rule-strong); border-radius: var(--r-2); padding: 20px 24px; margin: 32px 0; max-width: 760px; }
.site-cta p { margin: 0 0 16px; }
.site-cta p:last-child { margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
/* full-bleed from inside the article: one solid border image (#14171b = --deep) painted 100vmax out to each side;
   it is ink overflow, so it never makes the page scroll sideways, and one paint layer leaves no seam at the edges */
.site-cta.end { max-width: none; border: 0 solid transparent; border-radius: 0; margin: var(--band) 0 0; padding: 56px 0; color: var(--deep-ink);
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='2' height='2' fill='%2314171b'/%3E%3C/svg%3E") 0 fill / 0 / 0 100vmax stretch;
  display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.site-cta.end p:first-child { margin: 0; max-width: 640px; font-size: 18px; color: var(--deep-soft); }
.site-cta.end p:first-child b { display: block; font: 600 clamp(28px, 2.8vw, 40px)/1.1 var(--f-display); color: var(--deep-ink); margin-bottom: 8px; }
.site-cta.end .btn { min-height: 48px; padding: 0 24px; }
.site-cta.end .btn:not(.secondary) { background: var(--deep-ink); border-color: var(--deep-ink); color: var(--deep); }
.site-cta.end .btn:not(.secondary):hover { background: #fff; border-color: #fff; }
.site-cta.end .btn.secondary { background: transparent; color: var(--deep-ink); border-color: rgba(255,255,255,.28); }
.site-cta.end .btn.secondary:hover { border-color: var(--deep-soft); }
.site-cta.end a:not(.btn) { color: var(--blue-on-dark); }
/* footer (site) */
.site .foot { background: var(--deep); color: var(--deep-soft); border-top: 1px solid var(--deep-rule); font-size: 13px; }
.site .foot .in { max-width: var(--wrap); padding: 32px var(--gutter) 40px; }
.site .foot a { color: var(--deep-ink); }
.site .note.info { margin-bottom: 24px; }

/* ---------------------------------------------------------------- home */
.home .band { padding-block: var(--band); }
.band-white { background: var(--surface); }
.band-ground { background: var(--ground); }
.band-deep { background: var(--deep); color: var(--deep-ink); }
.band-deep h2, .band-deep h3 { color: var(--deep-ink); }
.band-deep p, .band-deep li { color: var(--deep-soft); }
.band-deep a { color: var(--blue-on-dark); }
.band h2 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; margin-bottom: 32px; max-width: 22ch; }
.band .intro { max-width: 720px; margin: -16px 0 32px; color: var(--ink-2); }
/* hero: full-bleed photo, one-neutral scrim, copy left, the pay-app paper stack right */
.hero { position: relative; overflow: hidden; background: var(--deep); color: var(--deep-ink); min-height: min(100svh, 860px);
  display: flex; align-items: center; padding: 120px 0 88px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,17,21,.90) 0%, rgba(14,17,21,.82) 45%, rgba(14,17,21,.55) 100%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 588px) minmax(0, 476px); justify-content: space-between; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.005em; max-width: 15ch; margin: 0 0 24px; color: #fff; }
.hero-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: #d2d7de; max-width: 46ch; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.hero-cta .btn { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn.light { background: var(--deep-ink); border-color: var(--deep-ink); color: var(--deep); }
.btn.light:hover { background: #fff; border-color: #fff; color: var(--deep); }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.28); color: var(--deep-ink); }
.btn.ghost:hover { background: transparent; border-color: var(--deep-soft); color: #fff; }
.hero-proof { list-style: none; padding: 0; margin: 0; font-size: 15px; color: var(--deep-soft); }
.hero-proof li { padding: 6px 0; border-top: 1px solid var(--deep-rule); max-width: 440px; }
.hero-proof li:last-child { border-bottom: 1px solid var(--deep-rule); }
.hero .credit { position: absolute; right: 16px; bottom: 12px; font-size: 12px; color: var(--deep-soft); }
/* the pay-app paper stack and the stamp (DESIGN.md 6.1) */
.paystack { position: relative; margin: 0; max-width: 476px; width: 100%; padding: 0 8px 8px 0; animation: rise .32s var(--ease) both; }
.paystack .sheet-back { position: absolute; inset: 8px 0 0 8px; background: var(--paper-back); border: 1px solid var(--rule-strong); border-radius: var(--r-paper);
  box-shadow: 8px 8px 0 #07090b; }
.paystack .sheet { position: relative; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-paper); }
.sheet-hd { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--ink); }
.sheet-title { font: 600 24px/1.1 var(--f-display); margin: 0; }
.sheet-date { font: 400 12px/1.4 var(--mono); color: var(--ink-3); margin: 0; }
.sheet-job { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.sheet-lines { margin: 0; padding: 4px 24px 8px; }
.sheet-lines > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: 36px; border-bottom: 1px solid var(--rule); }
.sheet-lines > div:last-child { border-bottom: 0; }
.sheet-lines dt { font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.sheet-lines dt span { display: inline-block; width: 24px; font: 12px var(--mono); color: var(--ink-3); }
.sheet-lines dd { margin: 0; font: 13px var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.sheet-lines .due { min-height: 56px; }
.sheet-lines .due dt { font-weight: 600; font-size: 15px; color: var(--ink); }
.sheet-lines .due dd { font: 500 18px/1 var(--mono); color: var(--orange-ink); padding-bottom: 4px; border-bottom: 3px double var(--ink); }
.sheet-ft { margin: 0; padding: 12px 24px 16px; border-top: 1px solid var(--rule); font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.stamp { position: absolute; top: -40px; right: -14px; z-index: 2; transform: rotate(-4deg); margin: 0; text-align: center;
  font: 600 15px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--orange);
  padding: 9px 12px 7px; background: var(--paper); border: 2px solid var(--orange); border-radius: var(--r-1);
  outline: 1px solid var(--orange); outline-offset: -6px; animation: land .18s var(--ease) .16s both; }
.stamp span { display: block; margin-top: 5px; font: 500 11px/1 var(--mono); letter-spacing: .04em; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes land { from { opacity: 0; transform: rotate(-4deg) scale(1.06); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
/* steps: app screens in browser frames */
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.how-steps .frame { margin-bottom: 20px; }
.how-steps .frame img { height: 220px; object-fit: cover; object-position: top left; }
.how-steps h3 { font-size: 18px; display: flex; align-items: baseline; gap: 10px; }
.how-steps p { color: var(--ink-2); margin: 0; font-size: 16px; }
.step-no { font: 500 13px var(--mono); color: var(--ink-3); }
/* what a pay app includes: one ruled grid */
.get-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-2); overflow: hidden; }
.get-grid > div { background: var(--surface); padding: 24px 24px 28px; }
.get-grid h3 { font-size: 18px; }
.get-grid p { margin: 0; color: var(--ink-2); font-size: 16px; }
/* the sample to check by hand */
.sample-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.sample-in p { color: var(--ink-2); max-width: 600px; }
.paper { margin: 0 6px 6px 0; justify-self: center; width: 100%; max-width: 440px; }
.paper img { display: block; width: 100%; height: auto; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--r-paper); box-shadow: var(--shadow-paper); }
/* photo band: full-bleed */
.photo-full { position: relative; min-height: 480px; display: flex; align-items: flex-end; background: var(--deep); overflow: hidden; }
.photo-full img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
.photo-full .shade { position: absolute; inset: 0; background: rgba(14, 17, 21, .58); }
.photo-full .wrap { position: relative; padding-block: 64px; }
.photo-full h2 { color: #fff; margin-bottom: 8px; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; }
.photo-full p { color: #e2e6ea; max-width: 560px; margin: 0; font-size: 18px; }
.photo-full .credit { position: absolute; right: 16px; bottom: 12px; font-size: 12px; color: var(--deep-soft); }
/* plans: four columns on hairlines */
.plan-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--rule-strong); border: 1px solid var(--rule-strong);
  border-radius: var(--r-2); overflow: hidden; margin-bottom: 48px; }
.ps { background: var(--surface); padding: 24px; }
.ps.usual { outline: 2px solid var(--ink); outline-offset: -2px; position: relative; }
.ps h3 { font-size: 18px; margin-bottom: 8px; }
.ps-price { font-size: 32px; font-weight: 600; margin: 0 0 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ps-price span { font-size: 15px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.ps p { margin: 0; }
.band h3.cmp-h { font: 600 clamp(22px, 2vw, 28px)/1.15 var(--f-display); margin: 0 0 12px; }
table.cmp { max-width: 720px; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
table.cmp th { font-size: 13px; }
table.cmp td, table.cmp th { padding: 12px 16px 12px 0; }
table.cmp td.num { font-variant-numeric: tabular-nums; }   /* chrome, not paper: Public Sans, never mono */
table.cmp td:last-child { color: var(--ink); font-weight: 600; }
/* trust: the dark ruled grid */
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--deep-rule);
  border: 1px solid var(--deep-rule); border-radius: var(--r-2); overflow: hidden; }
.trust-list li { background: var(--deep); padding: 28px 28px 32px; color: var(--deep-soft); }
.trust-list b { display: block; color: var(--deep-ink); font: 600 22px/1.2 var(--f-display); margin-bottom: 8px; }
.home ul.dir { columns: 4 180px; padding-left: 20px; margin: 0; }
.home ul.dir li { margin-bottom: 6px; }
.faq-band h2 { margin-bottom: 8px; }
.faq-band h3 { font-size: 18px; margin: 0; padding-top: 24px; border-top: 1px solid var(--rule); }
.faq-band h3 + p { margin: 8px 0 24px; max-width: 760px; color: var(--ink-2); }
.faq-band .faq { max-width: 860px; }
.home .site-cta.end { margin: 0; padding: 0; border-image: none; }
.preview-foot { padding: 16px 0; }
.preview-foot .note { margin: 0; }
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero .paystack { max-width: 476px; }
  .how-steps, .get-grid { grid-template-columns: 1fr 1fr; }
  .plan-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .intro-grid, .step-grid, .sample-in { grid-template-columns: 1fr; gap: 32px; }
  .intro-grid figure.sample img { max-height: 440px; }
  .trust-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { padding: 88px 0 56px; min-height: 0; }
  .hero-scrim { background: rgba(14,17,21,.80); }
  .hero h1 { margin-bottom: 16px; }
  .hero-lead { margin-bottom: 24px; }
  .hero-cta .btn { width: 100%; }
  .hero .paystack { margin-top: 56px; }
  .stamp { top: -34px; right: 4px; }
  .sheet-hd, .sheet-lines, .sheet-ft { padding-inline: 16px; }
  .how-steps, .get-grid, .plan-strip { grid-template-columns: 1fr; }
  .how-steps .frame img { height: 200px; }
  .photo-full { min-height: 320px; }
  .photo-full .wrap { padding-block: 40px; }
  .site-cta.end { padding: 48px 0; }
  .prose h2 { margin-top: 48px; }
}

/* ================================================================ step 3: every other signed-in screen (DESIGN.md 4, 7.1, 7.2, 7.4, 7.5)
   One flat page: a section is a heading on a hairline, never a box. The only boxes left in the app are plan cards,
   notes, menus, the file drop zone and the signature pad. */
main.page .card { background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 24px 0 8px; margin: 0 0 24px; }
main.page .card.tight { padding: 16px 0 4px; }
main.page .card > h2:first-child, main.page .card > .sec-head:first-child { margin-bottom: 12px; }
main.page .table-wrap { border: 0; border-radius: 0; background: transparent; }
main.page .split { grid-template-columns: minmax(0, 1fr) 340px; gap: 0 56px; }
main.page .split > aside > :first-child, main.page .split > nav:first-child { margin-top: 0; }
main.page .head { margin-bottom: 28px; }
main.page .head h1 { margin-bottom: 4px; }
.meta { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.meta .sep { color: var(--ink-3); margin: 0 6px; }
.co-no { color: var(--ink-2); white-space: nowrap; }
.status { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.status.final, .status.signed { color: var(--ink); }
.status.ok { color: var(--ok); font-weight: 500; }
.status svg.i { color: var(--ok); width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
td .sub { display: block; font-size: 13px; color: var(--ink-3); }
td a.rowlink + .num-tag, td .proj-no { font-size: 13px; color: var(--ink-3); margin-left: 6px; font-weight: 400; }
/* lists of links on hairlines (project page "On this job", help topics) */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-bottom: 1px solid var(--rule); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.link-list a span { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.link-list a:hover { color: var(--blue); }
.link-list a[aria-current="page"] { color: var(--ink); font-weight: 600; }
/* project facts: one ruled box (DESIGN.md 7.5), values in Public Sans */
.title-block { min-width: 300px; font-size: 14px; }
.title-block div { padding: 7px 12px; }
/* figures row (dashboard, project, retainage, stored materials): rules, no boxes; the key figure sits on the double rule */
.figs { margin-bottom: 32px; }
.figs strong.on-rule { display: inline-block; padding-bottom: 4px; border-bottom: 3px double var(--ink); }
.figs strong.due { color: var(--orange-ink); }
.figs em { display: block; font-style: normal; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.figs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 14px; }
.link-list a span .i { width: 16px; height: 16px; color: var(--ink-3); }
@media (max-width: 760px) {
  .figs > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 12px; padding: 14px 0 !important; border-left: 0 !important; }
  .figs > div + div { border-top: 1px solid var(--rule); }
  .figs { grid-template-columns: 1fr !important; }
  .figs > div:nth-child(-n+2) { border-bottom: 0; }
  .figs span { margin: 0; }
  .figs strong { font-size: 22px; text-align: right; }
  .figs em { grid-column: 1 / -1; margin-top: 2px; }
}
/* dashboard sections */
.dash-sec { border-top: 1px solid var(--rule); padding-top: 24px; margin-top: 8px; margin-bottom: 32px; }
.dash-sec .sec-head { margin-bottom: 8px; }
.dash-sec .sec-head h2 { margin: 0; }
.dash-sec .sec-head p { font-size: 14px; color: var(--ink-2); }
main.page table td { vertical-align: middle; }
main.page table th { padding-top: 10px; padding-bottom: 10px; }
main.page tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
@media (max-width: 760px) { main.page table.cards tbody tr:last-child td { border-bottom: 0; } }   /* a phone card keeps one rule, under the card */
main.page table td.num, main.page table th.num { text-align: right; }
.empty-line { color: var(--ink-3); margin: 8px 0 0; font-size: 14px; }
/* waivers screen: one source line above the choices, a short section line under each */
.waiver-choice { padding: 10px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.waiver-choice:last-of-type { border-bottom: 0; }
.waiver-choice b { font-weight: 600; }
.source-line { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; max-width: 760px; }
dl.facts.two { grid-template-columns: 200px minmax(0, 1fr); }
@media (min-width: 1100px) { dl.facts.wide2 { grid-template-columns: 200px minmax(0, 1fr) 200px minmax(0, 1fr); } }
/* guided first job: the example sits beside the form as a ruled column, not a tinted box */
.example { background: none; border: 0; border-left: 0; border-top: 1px solid var(--ink); border-radius: 0; padding: 16px 0 0; }
.example h3 { font: 600 15px/1.35 var(--font); margin-bottom: 12px; }
.example table { width: 100%; }
.explain { font-size: 15px; }
/* signature record and the sign forms */
.sig-record .sig-mark { margin-top: 8px; }
/* help: article and the topic list */
.help-body h1 { margin-bottom: 16px; }
.help-body p { color: var(--ink-2); max-width: 680px; font-size: 16px; line-height: 1.6; }
.help-nav { border-top: 1px solid var(--rule); padding-top: 24px; }
.help-nav h2 { margin-bottom: 8px; }
/* plans: the photo band and the plan cards (DESIGN.md 7.5) */
.plans { gap: 16px; }
.plan h2 .pick { display: block; margin: 4px 0 0; font: 500 13px/1.4 var(--font); color: var(--ink-2); letter-spacing: 0; }
.dev { border-radius: var(--r-1); }
/* message and error pages */
.msg-page { max-width: 640px; padding: 40px 0 24px; }
.msg-page .code { font: 500 13px var(--mono); color: var(--ink-3); margin: 0 0 12px; }
.msg-page h1 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; margin-bottom: 12px; }
.msg-page p { color: var(--ink-2); font-size: 17px; }
/* legal pages */
.legal { max-width: 720px; }
.legal h2 { margin-top: 32px; }
.legal p { color: var(--ink-2); line-height: 1.6; }
@media (max-width: 980px) { main.page .split { grid-template-columns: 1fr; } }
@media (max-width: 640px) { main.page .head { margin-bottom: 20px; } .title-block { min-width: 0; width: 100%; } }

/* sign-in, sign-up, forgot (DESIGN.md 7.5): the photo page, a compact panel, display title, sharp corners */
.auth-card h1 { line-height: 1.05; }
.auth-top .brand { color: #fff; font-size: 21px; }
.auth-foot a { color: var(--deep-ink); }

/* public header (Radar should 3): content links, then a quiet "Sign in" and one button */
.site .nav a.nav-quiet { margin-left: 8px; padding-left: 28px; border-left: 1px solid var(--rule); border-bottom: 0; align-self: center; min-height: 24px; padding-top: 0; }
.home-page .nav a.nav-quiet { border-left-color: rgba(255,255,255,.18); }
/* pricing: the intro over the crew photo; "every plan includes" as a ruled ground band */
.page-photo { position: relative; overflow: hidden; border-radius: var(--r-2); background: var(--deep); color: var(--deep-ink); padding: 56px 48px; margin: 0 0 8px; min-height: 360px; display: flex; align-items: flex-end; }
.page-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
.page-photo .shade { position: absolute; inset: 0; background: rgba(14, 17, 21, .74); }
.page-photo .txt { position: relative; max-width: 640px; }
.prose .page-photo h1 { color: #fff; margin-bottom: 16px; }
.prose .page-photo p { color: #d2d7de; max-width: 600px; }
.prose .page-photo .lead { color: #e6e9ed; }
.page-photo .credit { position: absolute; right: 16px; bottom: 12px; font-size: 12px; color: var(--deep-soft); }
.prose .inc-band { border: 0 solid transparent; padding-block: 8px 48px; margin-top: 56px;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='2' height='2' fill='%23f6f6f4'/%3E%3C/svg%3E") 0 fill / 0 / 0 100vmax stretch; }
.prose .inc-band h2 { margin-top: 48px; }
.prose ul.inc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; max-width: none; }
.prose ul.inc li { border-top: 1px solid var(--rule-strong); padding: 16px 0 28px; margin: 0; font-size: 16px; color: var(--ink-2); max-width: none; }
@media (max-width: 900px) { .prose ul.inc { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .page-photo { padding: 32px 20px 40px; min-height: 0; } }
.ledger-links ul { list-style: none; padding: 0; margin: 4px 0 0; columns: 3 220px; column-gap: 32px; font-size: 14px; }
.ledger-links li { break-inside: avoid; padding: 3px 0; }
.ledger-links a .co-no { color: inherit; }
/* list tables on a flat page start flush with the headings above them (the ledger and the schedule grid keep their own cells) */
@media (min-width: 761px) {
  main.page .table-wrap > table:not(.sov):not(.ledger) th:first-child, main.page .table-wrap > table:not(.sov):not(.ledger) td:first-child { padding-left: 0; }
  main.page .table-wrap > table:not(.sov):not(.ledger) th:last-child, main.page .table-wrap > table:not(.sov):not(.ledger) td:last-child { padding-right: 0; }
}
main.page .head.facts-head { align-items: flex-start; }
main.page .head.facts-head h1 { margin-top: 4px; }
.plan .plan-note { min-height: 40px; margin: 0; font-size: 13px; line-height: 20px; }
.plan .plan-note .pick { display: block; color: var(--ink-2); font-weight: 500; }
.plan .plan-note .your-plan { margin: 0; }
.plan .price { margin-top: 0; }
/* facts in the narrow side column: the label above its value */
main.page aside dl.facts.tight { grid-template-columns: 1fr; gap: 0; }
main.page aside dl.facts.tight dt { margin-top: 8px; font-size: 13px; }
.hash, code.hash { overflow-wrap: anywhere; word-break: break-all; }
dl.facts dt, dl.facts dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { main.page dl.facts.tight { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 12px; } }
/* D2: "GC wants pay apps by" [day] day of the month */
.day-in { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.day-in input { width: 80px; }
.day-in span { color: var(--ink-2); font-size: 14px; }
form.due-day { margin-top: 8px; }
/* project page Details (RADAR-STEP3-CHECK must 1, should 4): the due day once, its input behind a small Edit */
dd.due-dd .due-v span { display: block; }
dd.due-dd .due-v .sub { font-size: 13px; color: var(--ink-3); }
.due-edit summary { display: inline-block; margin-top: 4px; cursor: pointer; color: var(--blue); font-size: 14px; list-style: none; }
.due-edit summary::-webkit-details-marker { display: none; }
.due-edit summary:hover { text-decoration: underline; }
.due-edit .hint { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.link-list.edit-links { margin-top: 12px; border-top: 1px solid var(--rule); }
/* "Already billed on this job" on the phone: each line a card like the ledger (DESIGN.md 7.4), never a sideways table */
@media (max-width: 760px) {
  table.sov.opening thead { display: none; }
  table.sov.opening, table.sov.opening tbody { display: block; }
  table.sov.opening tr.line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  table.sov.opening td { display: block; border: 0; padding: 0; height: auto; width: auto; text-align: left; }
  table.sov.opening td.ln { display: none; }
  table.sov.opening td.d { grid-column: 1 / -1; font-size: 16px; font-weight: 600; }
  table.sov.opening td[data-label]::before { content: attr(data-label); display: block; font: 400 12px/1.3 var(--font); color: var(--ink-2); margin-bottom: 4px; }
  table.sov.opening tr.line td.num { font-family: var(--mono); text-align: left; }
  table.sov.opening tr.line td.v { width: auto; align-self: end; }
  table.sov.opening tr.line td.v input { width: 100%; height: 44px; font-size: 16px; text-align: left; border-color: var(--rule-strong); background: var(--surface); }
  table.sov.opening tr.rowerr { display: block; }
  table.sov.opening tr.rowerr td { padding: 0 0 12px; }
}
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* WP-12: the quiet "confirm your address" line after the first payment, and the address above checkout */
.confirm-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 16px; }
.confirm-line form { margin: 0; }
.co-email { margin: 0 0 4px; }
.co-agree { margin: 0 0 16px; }      /* Radar C2: above Stripe's form at both widths */
.cf-turnstile { min-height: 65px; }

/* WP-17 A4: "How did you hear about us?" under the plans, one click */
.heard { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--rule); border-radius: var(--r-2); background: var(--surface); }
.heard h2 { font-size: 16px; margin: 0 0 12px; }
.heard form { display: flex; flex-wrap: wrap; gap: 8px; }
/* WP-17 A5: the owner's sources page */
.sources-period { margin-bottom: 32px; }
.sources-period .totals { margin: 4px 0 16px; }
/* Owner 5679: the cookie bar for visitors in Europe (static/consent.js), Federal Bid Alerts' bar in this site's type,
   with two equal buttons. */
.cbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 640px; margin: 0 auto;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.cbar a { color: #c7d7ff; }
.cbar-row { margin-top: 8px; display: flex; gap: 8px; }
.cbar-row .btn { flex: 1; }

/* Launch, owner 5730: the plan cards carry the brand colour (no plan singled out, no accent edge: WP-18). A light
   blue band behind the cards, the monthly or single "Pay" button filled and the yearly one outlined. */
.plans { background: var(--blue-wash); padding: 16px; border-radius: 8px; }
.plan.usual, .plan.picked { border-color: var(--blue); }
@media (max-width: 560px) { .plans { padding: 12px; margin-left: -4px; margin-right: -4px; } }
