/* Bidharrier. Palette comes from harrier country: marsh green, reed gold, open sky. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --marsh: #14342b;
  --marsh-soft: #1f4a3d;
  --ink: #10221c;
  --ground: #f2f5f0;
  --surface: #ffffff;
  --reed: #d4a72c;
  --reed-deep: #8a6a0f;
  --rust: #b5412a;
  --muted: #5b6b63;
  --line: #d9e0da;
  --display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1rem/1.55 var(--body);
}
a { color: var(--marsh-soft); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--reed); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: 1.3rem; font-weight: 650; }
p { margin: 0 0 1em; max-width: var(--measure); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* Header */
.topbar { background: var(--marsh); color: #fff; }
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0.7rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none;
  font: 700 1.3rem/1 var(--display); letter-spacing: -0.02em;
}
.brand:hover { color: #fff; }
.brand svg { width: 30px; height: 20px; flex: none; }
.nav { display: flex; gap: 0.25rem; flex: 1; flex-wrap: wrap; }
.nav a {
  color: #d5e2dc; text-decoration: none; padding: 0.4rem 0.75rem; border-radius: 999px; font-weight: 500;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current="page"] { color: var(--marsh); background: var(--reed); }
.topbar form { margin: 0; }
.linklike {
  background: none; border: 0; padding: 0.4rem 0.5rem; color: #d5e2dc; font: inherit; cursor: pointer;
}
.linklike:hover { color: #fff; text-decoration: underline; }

.page { max-width: 1120px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head p { margin: 0.4rem 0 0; }
.narrow { max-width: 640px; }

/* Buttons */
.btn {
  display: inline-block; font: 600 0.95rem/1 var(--body); padding: 0.7rem 1.1rem; border-radius: 6px;
  border: 1.5px solid var(--marsh); background: var(--marsh); color: #fff; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--marsh-soft); color: #fff; }
.btn.quiet { background: transparent; color: var(--marsh); }
.btn.quiet:hover { background: rgba(20, 52, 43, 0.07); color: var(--marsh); }
.btn.gold { background: var(--reed); border-color: var(--reed); color: var(--ink); }
.btn.gold:hover { background: #e2b842; color: var(--ink); }
.btn.danger { background: transparent; border-color: var(--rust); color: var(--rust); }
.btn.danger:hover { background: var(--rust); color: #fff; }
.btn.sm { padding: 0.45rem 0.7rem; font-size: 0.85rem; }

/* Messages */
.flash {
  background: #fff; border-left: 4px solid var(--reed); padding: 0.8rem 1rem; margin-bottom: 1.25rem;
  border-radius: 0 6px 6px 0;
}

/* Tabs and filters */
.tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 0.5rem; flex-wrap: wrap; }
.tabs a { padding: 0.6rem 0; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--reed); }
.tabs .count { font-weight: 400; font-variant-numeric: tabular-nums; }
.filters { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem; }
.filters label { display: grid; gap: 0.25rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.filters .grow { flex: 1 1 240px; }
.filters input, .filters select { height: 2.6rem; }

/* Form controls */
input[type="text"], input[type="search"], input[type="email"], input[type="password"],
input[type="number"], select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9c5be; border-radius: 6px;
  padding: 0.55rem 0.7rem; width: 100%;
}
textarea { line-height: 1.45; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--marsh); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }
.field { margin-bottom: 1.2rem; }
.field > label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field .help { font-size: 0.85rem; color: var(--muted); margin: 0.3rem 0 0; }
.field .errorlist, .form > .errorlist { list-style: none; padding: 0; margin: 0.3rem 0 0; color: var(--rust); font-weight: 600; font-size: 0.9rem; }
.form > .errorlist { margin-bottom: 1rem; }
.field ul:not(.errorlist), .field div[id] {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.25rem 1rem;
}
.field ul label, .field div[id] label { font-weight: 400; display: flex; gap: 0.45rem; align-items: center; }
.field input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--marsh); }
.form-section { font: 650 1.05rem var(--display); margin: 1.8rem 0 0.9rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.form-actions { display: flex; gap: 0.6rem; align-items: center; margin-top: 1.4rem; flex-wrap: wrap; }

/* Region picker and wizard */
fieldset.field { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
fieldset.field legend { font-weight: 600; padding: 0; margin-bottom: 0.4rem; }
.regions details { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 0.4rem; }
.regions summary { cursor: pointer; padding: 0.55rem 0.8rem; font-weight: 600; }
.regions .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 0.25rem 1rem; padding: 0.2rem 0.8rem 0.8rem; }
.regions .checks label, label.inline { font-weight: 400; display: flex; gap: 0.45rem; align-items: center; }
.field label.inline { font-weight: 400; }
.wizard-steps { list-style: none; display: flex; gap: 0.4rem; padding: 0; margin: 0 0 1.6rem; counter-reset: wstep; flex-wrap: wrap; }
.wizard-steps li { counter-increment: wstep; flex: 1 1 110px; font-size: 0.85rem; font-weight: 600; color: var(--muted); border-top: 4px solid #cfd8d2; padding-top: 0.45rem; }
.wizard-steps li::before { content: counter(wstep) ". "; }
.wizard-steps li.done { border-top-color: var(--marsh-soft); color: var(--marsh-soft); }
.wizard-steps li[aria-current="step"] { border-top-color: var(--reed); color: var(--ink); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.preview { position: sticky; top: 1rem; background: var(--marsh); color: #fff; border-radius: 10px; padding: 1.25rem; }
.preview .muted { color: #b9cdc4; }
.preview-count { font-size: 1rem; margin: 0 0 0.9rem; }
.preview-count strong { font: 750 2.6rem/1 var(--display); color: var(--reed); display: block; font-variant-numeric: tabular-nums; margin-bottom: 0.2rem; }
.preview-list { list-style: none; padding: 0; margin: 0.4rem 0 1rem; }
.preview-list li { border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 0.55rem 0; display: grid; gap: 0.1rem; }
.preview-title { font-weight: 600; font-size: 0.93rem; line-height: 1.3; }

/* Tender rows: the closing runway on the left is the signature element. */
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.row { display: grid; grid-template-columns: 112px 1fr auto; gap: 1.1rem; padding: 1rem 1.15rem; border-top: 1px solid var(--line); align-items: start; }
.row:first-child { border-top: 0; }
.closing { font-variant-numeric: tabular-nums; }
.closing .when { font: 700 1rem/1.2 var(--display); display: block; }
.closing .date { font-size: 0.8rem; color: var(--muted); display: block; margin-top: 0.1rem; }
.runway { height: 5px; background: #e6ebe7; border-radius: 3px; margin-top: 0.45rem; overflow: hidden; }
.runway i { display: block; height: 100%; background: var(--marsh-soft); border-radius: 3px; }
.soon .runway i { background: var(--reed); }
.urgent .runway i { background: var(--rust); }
.urgent .closing .when { color: var(--rust); }
.row h3 { font: 600 1.02rem/1.3 var(--body); }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a:hover { text-decoration: underline; }
.meta { font-size: 0.875rem; color: var(--muted); margin: 0.25rem 0 0; max-width: none; }
.why { font-size: 0.85rem; margin: 0.4rem 0 0; color: var(--reed-deep); max-width: none; }
.row-actions { display: flex; gap: 0.4rem; align-items: center; }
.score {
  font: 700 0.85rem/1 var(--body); font-variant-numeric: tabular-nums; color: var(--marsh);
  border: 1.5px solid var(--marsh); border-radius: 999px; padding: 0.3rem 0.55rem; white-space: nowrap;
}
.empty { background: var(--surface); border: 1px dashed #b9c5be; border-radius: 10px; padding: 2.2rem 1.5rem; }
.empty h2 { margin-bottom: 0.5rem; }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1.2rem; font-size: 0.9rem; }
.result-count { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.6rem; }
.htmx-request .rows { opacity: 0.55; }

/* Detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.detail .body { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }
.detail .body p { white-space: pre-line; }
.facts { margin: 0; display: grid; gap: 0.9rem; }
.facts dt { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0.1rem 0 0; overflow-wrap: anywhere; }
.side { display: grid; gap: 1.25rem; }
.side .closing .when { font-size: 1.5rem; }

/* Watch list */
.watch { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.1rem 1.15rem; border-top: 1px solid var(--line); align-items: center; }
.watch:first-child { border-top: 0; }
.watch h3 { font: 650 1.1rem var(--display); }
.paused { font-size: 0.8rem; font-weight: 600; color: var(--rust); margin-left: 0.4rem; }
.preset-pick { display: flex; gap: 0.6rem; align-items: end; flex-wrap: wrap; margin-top: 1.5rem; }
.preset-pick label { display: grid; gap: 0.25rem; font-weight: 600; flex: 1 1 260px; }

/* Landing */
.hero { background: var(--marsh); color: #fff; }
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 3rem 1.25rem 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.1rem); font-weight: 750; letter-spacing: -0.03em; line-height: 0.98; }
.hero .lede { color: #cfe0d8; font-size: 1.15rem; margin: 1.3rem 0 1.8rem; max-width: 34ch; }
.hero-copy { padding-bottom: 3.5rem; }
.hero .cta { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.hero .cta a:not(.btn) { color: #cfe0d8; }
.live { background: var(--ground); color: var(--ink); border-radius: 12px 12px 0 0; padding: 1.1rem 1.1rem 0; }
.live-head { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.7rem; }
.live .rows { border-radius: 8px 8px 0 0; border-bottom: 0; }
.live .row { grid-template-columns: 96px 1fr; padding: 0.8rem 0.9rem; }
.steps { max-width: 1120px; margin: 0 auto; padding: 3.5rem 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
.steps li { list-style: none; counter-increment: step; }
.steps li::before { content: counter(step); font: 750 2.4rem/1 var(--display); color: var(--reed-deep); display: block; margin-bottom: 0.6rem; }
.steps h2 { margin-bottom: 0.5rem; }
.steps p { color: var(--muted); margin: 0; }
.foot { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.auth { max-width: 460px; margin: 0 auto; }
.auth.wide { max-width: 620px; }
.auth h1 { margin-bottom: 0.4rem; }
.auth > p { margin-bottom: 1.5rem; }

@media (max-width: 820px) {
  .topbar-inner { gap: 0.5rem 1rem; }
  .topbar-inner > form { margin-left: auto; }
  .nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -0.5rem; padding-bottom: 0.15rem; }
  .nav a { white-space: nowrap; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 2.5rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .detail { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .preview { position: static; order: -1; }
  .row { grid-template-columns: 96px 1fr; }
  .row-actions { grid-column: 2; }
}
@media (max-width: 480px) {
  .row, .live .row { grid-template-columns: 1fr; gap: 0.6rem; }
  .row-actions { grid-column: 1; }
  .runway { max-width: 140px; }
  .watch { grid-template-columns: 1fr; }
}

.prose h2 { margin: 1.7rem 0 0.5rem; }
.prose h1 { margin-bottom: 0.4rem; }

/* ---------- Public site ---------- */
.site-nav { display: flex; gap: 0.15rem; flex: 1; flex-wrap: wrap; }
.site-nav a { color: #d5e2dc; text-decoration: none; padding: 0.4rem 0.7rem; border-radius: 6px; font-weight: 500; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--reed); border-radius: 0; }
.topbar .login { color: #d5e2dc; text-decoration: none; padding: 0.4rem 0.5rem; font-weight: 500; }
.topbar .login:hover { color: #fff; text-decoration: underline; }

.notice { background: #fbf3d9; border-bottom: 1px solid #e9d795; }
.notice.warn { background: #f8e3dd; border-bottom-color: #e3b5aa; }
.notice-inner { max-width: 1120px; margin: 0 auto; padding: 0.55rem 1.25rem; display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; font-size: 0.93rem; }
.notice form { margin: 0; }
.notice .linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--marsh); text-decoration: underline; cursor: pointer; }

.band { padding: 4rem 1.25rem; }
.band.tint { background: #e8eee8; }
.band.dark { background: var(--marsh); color: #fff; }
.band.dark p { color: #cfe0d8; }
.band.dark a:not(.btn) { color: #fff; }
.wrap { max-width: 1120px; margin: 0 auto; }
.band h2, .page-title { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem); font-weight: 720; letter-spacing: -0.02em; max-width: 22ch; }
.band .intro, .lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; margin: 0.9rem 0 0; }
.band.dark .intro { color: #cfe0d8; }
.page-hero { background: var(--marsh); color: #fff; padding: 3.2rem 1.25rem 3rem; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 740; letter-spacing: -0.025em; line-height: 1.02; max-width: 20ch; }
.page-hero p { color: #cfe0d8; font-size: 1.15rem; max-width: 58ch; margin: 1.1rem 0 0; }

.hero h1 span { display: block; }
@media (min-width: 1000px) { .hero h1 span { white-space: nowrap; } }
.hero .sub { color: #a9c2b7; margin: 1.4rem 0 0; font-size: 0.95rem; }
.live-foot { font-size: 0.82rem; color: var(--muted); padding: 0.6rem 0.2rem 0.9rem; margin: 0; max-width: none; }

.source-strip { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3rem; align-items: start; }
.source-names { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.source-names li { break-inside: avoid; padding: 0.5rem 0; border-top: 1px solid #cdd8cf; font-weight: 550; }
.source-names small { display: block; font-weight: 400; color: var(--muted); }

.steps3 { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: s; }
.steps3 li { counter-increment: s; }
.steps3 li::before { content: counter(s); font: 750 2.6rem/1 var(--display); color: var(--reed-deep); display: block; margin-bottom: 0.7rem; }
.steps3 h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.steps3 p { color: var(--muted); margin: 0; }

.explain { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3.5rem; align-items: center; }
.example { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; color: var(--ink); }
.example .tag { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.7rem; }
.example h3 { font: 650 1.2rem/1.25 var(--body); }
.example .meta { margin-bottom: 1rem; }
.band.dark .example p { color: var(--muted); }
.band.dark .example p.why { color: var(--reed-deep); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.checks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.6rem; align-items: start; }
.checks li::before { content: ""; width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; border-radius: 50%; background: var(--reed) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.6' fill='none' stroke='%2310221c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.checks strong { display: block; }
.checks span { color: var(--muted); font-size: 0.95rem; }
.band.dark .checks span { color: #cfe0d8; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile { padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); display: block; }
.tile:hover { background: #fbfcfa; color: var(--ink); }
.tile h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.tile:hover h3 { text-decoration: underline; text-decoration-color: var(--reed); text-underline-offset: 0.2em; }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.two-up h2 { font-size: 1.6rem; max-width: none; }
.two-up p { color: var(--muted); margin: 0.8rem 0 1rem; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.2rem; max-width: 860px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.7rem; display: flex; flex-direction: column; }
.plan.current { border: 2px solid var(--marsh); }
.plan h3 { font-size: 1.4rem; }
.plan .price { font: 750 2.5rem/1 var(--display); margin: 1rem 0 0.2rem; font-variant-numeric: tabular-nums; }
.plan .price small { font: 500 1rem var(--body); color: var(--muted); }
.plan .yearly { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0.4rem 0 1.5rem; display: grid; gap: 0.5rem; flex: 1; align-content: start; }
.plan li { padding-left: 1.5rem; position: relative; font-size: 0.97rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.7rem; height: 0.4rem; border-left: 2.5px solid var(--marsh-soft); border-bottom: 2.5px solid var(--marsh-soft); transform: rotate(-45deg); }
.plan li:first-child { font-weight: 650; }
.plan .buy { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.plan .buy form { margin: 0; }

.faq { max-width: 760px; margin-top: 2rem; border-top: 1px solid #c9d4cb; }
.faq details { border-bottom: 1px solid #c9d4cb; }
.faq summary { cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; font: 620 1.08rem var(--body); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.85rem; font: 400 1.5rem/1 var(--body); color: var(--marsh-soft); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); }

.closing { text-align: left; }
.closing h2 { max-width: 18ch; }
.closing .btn { margin-top: 1.6rem; }

.ledger { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 1.2rem; }
.ledger th { text-align: left; font-size: 0.85rem; color: var(--muted); font-weight: 600; padding: 0.7rem 1rem; background: #eef2ee; }
.ledger td { padding: 0.85rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.ledger td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .where { color: var(--muted); font-size: 0.9rem; display: block; }
.state { font-weight: 650; white-space: nowrap; }
.state.ok { color: #1c6b45; }
.state.wait { color: var(--reed-deep); }
.plain-list { margin: 1rem 0 0; padding: 0; list-style: none; columns: 2; column-gap: 2.5rem; max-width: 860px; }
.plain-list li { break-inside: avoid; padding: 0.45rem 0; border-top: 1px solid #cdd8cf; }
.plain-list small { color: var(--muted); }

.industry { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; padding: 2.6rem 0; border-top: 1px solid #c9d4cb; scroll-margin-top: 1rem; }
.industry:first-of-type { border-top: 0; padding-top: 0.5rem; }
.industry h2 { font-size: 1.7rem; max-width: none; }
.industry p { color: var(--muted); }
.industry h3 { font: 650 1rem var(--body); margin: 0 0 0.5rem; }
.words { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; }
.words li { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.25rem 0.6rem; font-size: 0.92rem; }
.jump { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 1.4rem; }
.jump a { color: #fff; }

.article { max-width: 720px; margin: 0 auto; padding: 3rem 1.25rem 4rem; font-size: 1.06rem; line-height: 1.65; }
.article h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); letter-spacing: -0.02em; }
.article .byline { color: var(--muted); font-size: 0.92rem; margin: 0.9rem 0 2rem; }
.article h2 { font-size: 1.5rem; margin: 2.4rem 0 0.7rem; }
.article h3 { font: 650 1.1rem var(--body); margin: 1.5rem 0 0.4rem; }
.article li { margin-bottom: 0.45rem; }
.article .callout { background: var(--surface); border-left: 4px solid var(--reed); padding: 1rem 1.2rem; margin: 1.6rem 0; border-radius: 0 8px 8px 0; }
.article .callout p:last-child { margin: 0; }

.account-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem 1.5rem; margin-bottom: 1.5rem; }
.account-box h2 { margin-bottom: 0.5rem; }
.account-box p:last-child { margin-bottom: 0; }
.account-box form { display: inline; }
.inline-links { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Footer: a complete map of the site */
.footer { background: var(--marsh); color: #cfe0d8; padding: 3.5rem 1.25rem 2rem; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 3rem; }
.footer .brand { font-size: 1.5rem; }
.footer .tagline { margin: 1rem 0 1.4rem; max-width: 30ch; font-size: 1.02rem; color: #cfe0d8; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem 1.5rem; }
.footer h2 { font: 650 0.95rem var(--body); color: #fff; margin: 0 0 0.8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer a { color: #cfe0d8; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.16); margin-top: 2.8rem; padding-top: 1.4rem; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 3rem; font-size: 0.85rem; color: #a9c2b7; }
.footer-legal p { margin: 0; max-width: 78ch; }

@media (max-width: 820px) {
  .site-nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -0.4rem; }
  .site-nav a { white-space: nowrap; }
  .topbar-inner > .spacer { flex: 1; }
  .band { padding: 3rem 1.25rem; }
  .source-strip, .explain, .two-up, .industry, .footer-top, .footer-legal { grid-template-columns: 1fr; gap: 1.8rem; }
  .steps3, .tiles { grid-template-columns: 1fr; }
  .steps3 { gap: 1.8rem; }
  .plans { grid-template-columns: 1fr; }
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--line); padding: 0.7rem 1rem; gap: 0.2rem 1rem; }
  .ledger td { border: 0; padding: 0; }
  .ledger td:nth-child(2) { grid-column: 1; color: var(--muted); font-size: 0.9rem; }
  .ledger td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .ledger td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; font-size: 0.9rem; color: var(--muted); }
}
@media (max-width: 520px) {
  .source-names, .plain-list { columns: 1; }
}
