/* Public Filing Desk: one stylesheet for every page.
   Identity: a well-run municipal consultancy. Warm record paper, ink navy (#17324f) as the brand
   colour, one green-teal accent (#1e9a80 for marks, #0d6f60 when it is text), and a navy-blue for
   links. The three services share the accent and are told apart by their folder icons (/brand/).
   Newsreader for headings, Public Sans for text. No scripts; menus and FAQ use native <details>. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/newsreader.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/public-sans.woff2") format("woff2");
}

:root {
  --paper: #f6f5f0;
  --card: #ffffff;
  --sunk: #efede6;
  --ink: #142030;
  --ink-2: #2e3b4a;
  --muted: #566170;
  --rule: #d8d4c8;
  --rule-soft: #e7e4db;
  --navy: #17324f;
  --navy-deep: #0f2238;
  --accent: #1d5592;
  --accent-deep: #143f6e;
  --tint: #e9eff6;
  --brand: #1e9a80;
  --brand-ink: #0d6f60;
  --brand-tint: #e3f2ee;
  --warn: #8a4a10;
  --warn-tint: #f8ecdc;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-wrap: break-word;
}
table, .stats, .docket time, .keybox dd { font-variant-numeric: tabular-nums; }
@media (min-width: 960px) { body { font-size: 1.1rem; } }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* Type */
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.55rem); line-height: 1.07; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.35rem); line-height: 1.14; }
h3 { font-size: 1.16rem; line-height: 1.3; font-weight: 700; }
h4 { font-size: 1.02rem; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
p + p { margin-top: 0.85em; }
strong { font-weight: 700; }
ul, ol { margin: 0; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* Utility strip and header */
.utility { background: var(--navy); color: #dfe7f0; font-size: 0.86rem; }
.utility-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.utility p { margin: 0; }
.utility a { color: #fff; text-decoration: none; font-weight: 600; }
.utility a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 719px) { .utility p { display: none; } .utility-row { justify-content: flex-end; } }

.site-header { background: var(--card); border-bottom: 1px solid var(--rule); position: relative; z-index: 30; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px 20px; }
.site-nav li + li { margin-top: 0; }
.site-nav a { display: inline-block; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.site-nav .svc-link { font-weight: 650; display: inline-flex; align-items: center; gap: 7px; }
.site-nav .svc-link img, .menu-panel a img { width: 20px; height: 20px; }
.menu-panel a img { display: inline-block; vertical-align: -4px; margin-right: 8px; }
.site-nav .divider { width: 1px; height: 22px; background: var(--rule); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.menu { display: none; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 42px;
  padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 16px; height: 16px; }
.menu[open] summary { background: var(--ink); color: #fff; }
.menu-panel { padding: 6px var(--gutter) 18px; border-top: 1px solid var(--rule); background: var(--card); }
.menu-panel ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap); display: grid; }
.menu-panel li + li { margin-top: 0; }
.menu-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel a:hover { color: var(--accent); }
.menu-panel .menu-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 14px; }
@media (min-width: 560px) { .menu-panel ul { grid-template-columns: 1fr 1fr; column-gap: 28px; } .menu-panel .menu-label { grid-column: 1 / -1; } }
@media (max-width: 1119px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .menu-panel { position: absolute; left: 0; right: 0; top: 100%; box-shadow: 0 22px 34px -22px rgba(20, 32, 48, 0.45); }
}
@media (max-width: 599px) {
  .brand img { height: 30px; }
  .header-tools .header-cta { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 22px; border: 2px solid var(--navy); border-radius: var(--radius); background: var(--navy);
  color: #fff; font-weight: 650; font-size: 1rem; line-height: 1.25; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--tint); color: var(--navy-deep); }
.btn-small { min-height: 40px; padding: 7px 15px; font-size: 0.94rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) { .actions .btn { width: 100%; } }

/* Sections */
.section { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-card { background: var(--card); }
.section-sunk { background: var(--sunk); }
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink);
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.lede { max-width: 68ch; margin-top: 16px; color: var(--ink-2); font-size: 1.07em; }
.measure { max-width: 70ch; }
.muted { color: var(--muted); }
.cite { margin-top: 10px; font-size: 0.86rem; color: var(--muted); }
.cite a { color: var(--muted); overflow-wrap: anywhere; }
.cite a:hover { color: var(--accent); }
.fine { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.stack > * + * { margin-top: 1rem; }

/* Service labels: one accent for all three; the folder icon says which service */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 5px; border-radius: 999px; align-self: flex-start;
  background: var(--brand-tint); color: var(--brand-ink); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.02em; white-space: nowrap;
}
.tag img { width: 16px; height: 16px; }
.svc-icon { width: 48px; height: 48px; }

/* Home hero */
.hero { padding-block: clamp(44px, 6.5vw, 92px) clamp(48px, 6vw, 84px); }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 56px; align-items: start; } }
.hero h1 { max-width: 19ch; }
.hero .lede { font-size: 1.15em; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.hero-points li { margin: 0; display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.hero-points svg { width: 20px; height: 20px; margin-top: 3px; color: var(--brand); }

/* Docket: a dated list styled like a filing calendar */
.docket { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(20, 32, 48, 0.04), 0 18px 40px -30px rgba(20, 32, 48, 0.35); }
.docket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px 12px; border-bottom: 2px solid var(--ink); }
.docket-head h2 { font-size: 1.3rem; }
.docket-head p { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.docket ol { list-style: none; margin: 0; padding: 0; }
.docket li { margin: 0; display: grid; grid-template-columns: 7.3rem 1fr; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--rule-soft); }
.docket li:last-child { border-bottom: 0; }
.docket time { font-weight: 700; font-size: 0.95rem; line-height: 1.35; }
.docket p { font-size: 0.95rem; line-height: 1.45; }
.docket .tag { margin-bottom: 4px; }
@media (max-width: 419px) { .docket li { grid-template-columns: 1fr; gap: 4px; } }

/* Cards and grids */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 22px 24px; }
.card h3 + p, .card h3 + ul { margin-top: 8px; }
.card p, .card li { color: var(--ink-2); }
.card-plain { background: transparent; border: 0; padding: 0; }
.card .k { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.svc-card { position: relative; display: flex; flex-direction: column; border-top: 4px solid var(--brand); padding-top: 24px; }
.svc-head { display: flex; align-items: center; gap: 12px; }
.svc-head .k { color: var(--brand-ink); }
.svc-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.15; margin-top: 10px; }
.svc-card .for { margin-top: 10px; }
.svc-card dl { margin: 18px 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule-soft); }
.svc-card dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.svc-card dt { font-size: 0.82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.svc-card dd { margin: 0; font-weight: 600; }
.svc-card .btn { margin-top: auto; }
.svc-card .card-foot { margin-top: auto; padding-top: 22px; }

/* Stats */
.stats { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { background: var(--card); padding: 20px 22px; }
.stat strong { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); line-height: 1.05; color: var(--navy); }
.stat p { margin-top: 8px; font-size: 0.95rem; color: var(--ink-2); line-height: 1.45; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 700px) { .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps-row.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps-row.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .steps-row.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps > li { margin: 0; counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 22px 22px 22px; }
.steps > li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 12px;
}
.steps h3 + p, .steps h3 + ul { margin-top: 8px; }
.steps p, .steps li li { color: var(--ink-2); }
.steps .when { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.steps-long > li { display: grid; gap: 4px 24px; }
@media (min-width: 820px) {
  .steps-long > li { grid-template-columns: 52px minmax(0, 15rem) minmax(0, 1fr); padding: 24px 28px; align-items: start; }
  .steps-long > li::before { margin: 0; }
  .steps-long > li > :not(h3) { grid-column: 3; }
  .steps-long > li > h3 { grid-column: 2; grid-row: 1 / span 4; }
}

/* Who does what */
.roles { display: grid; gap: 18px; }
@media (min-width: 900px) { .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.role { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.role .k { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.role h3 { margin-top: 6px; }
.role ul { margin-top: 10px; }
.role-mid { border-color: var(--navy); box-shadow: inset 0 4px 0 var(--navy); }

/* Callouts */
.note { background: var(--tint); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; }
.note-svc { background: var(--brand-tint); border-left-color: var(--brand); }
.note-warn { background: var(--warn-tint); border-left-color: var(--warn); }
.note h3 { font-size: 1.04rem; }
.note h3 + p, .note h3 + ul { margin-top: 6px; }

/* Lists with rule cites */
.rules { display: grid; gap: 16px; }
@media (min-width: 820px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rule-item { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; }
.rule-item h3 + p { margin-top: 8px; color: var(--ink-2); }
.rule-item .cite { margin-top: 10px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { margin: 0; display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checklist li::before { content: ""; width: 14px; height: 14px; margin-top: 6px; border: 2px solid var(--brand); border-radius: 3px; background: linear-gradient(var(--brand), var(--brand)) center / 6px 6px no-repeat; }
.cols-2 { columns: 1; column-gap: 40px; }
@media (min-width: 820px) { .cols-2 { columns: 2; } .cols-2 > li { break-inside: avoid; } }

.dash-list { list-style: none; padding: 0; }
.dash-list li { padding-left: 18px; position: relative; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--brand); }

/* Tables */
.table-wrap { margin-top: 18px; }
table.data { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); font-size: 0.97rem; }
table.data caption { caption-side: top; text-align: left; padding: 0 0 10px; font-weight: 700; color: var(--ink); }
table.data caption span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
table.data thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 2px solid var(--ink); background: var(--card); }
table.data tbody th { font-weight: 650; }
table.data .num { text-align: right; white-space: nowrap; }
table.data thead th.num { white-space: normal; }
table.data tr.total th, table.data tr.total td { border-top: 2px solid var(--ink); font-weight: 700; }
table.data .sub { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
table.price td.num, table.price th.num { font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--navy); }
@media (max-width: 679px) {
  table.stack, table.stack thead, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; }
  table.stack { border: 0; background: transparent; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 6px 14px; margin-bottom: 10px; }
  table.stack th, table.stack td { border-bottom: 1px solid var(--rule-soft); padding: 8px 0; }
  table.stack tr > :last-child { border-bottom: 0; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  table.stack .num { text-align: left; }
  table.stack tr.total { border: 2px solid var(--ink); }
  table.stack tr.total th, table.stack tr.total td { border-top: 0; }
}

/* Definition grid (buying terms, supplier details) */
.terms { display: grid; gap: 0; border-top: 1px solid var(--rule); margin: 0; }
.terms > div { display: grid; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .terms > div { grid-template-columns: 12rem 1fr; } }
.terms dt { font-weight: 700; }
.terms dd { margin: 0; color: var(--ink-2); }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(40px, 5.5vw, 76px) clamp(36px, 4.5vw, 60px); background: var(--card); border-bottom: 1px solid var(--rule); }
.page-hero.has-svc { box-shadow: inset 0 5px 0 var(--brand); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { font-size: 1.12em; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.hero-split { display: grid; gap: 32px; }
@media (min-width: 1000px) { .hero-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 56px; align-items: start; } }
.keybox { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); padding: 20px 22px; }
.keybox h2 { font-family: var(--body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.keybox dl { margin: 10px 0 0; }
.keybox dl div { padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.keybox dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.keybox dt { font-size: 0.86rem; color: var(--muted); font-weight: 600; }
.keybox dd { margin: 2px 0 0; font-weight: 700; font-size: 1.04rem; }

/* On-page navigation */
.onpage { background: var(--paper); border-bottom: 1px solid var(--rule); }
.onpage ul { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.onpage li { margin: 0; }
.onpage a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.onpage a:hover { border-color: var(--brand); color: var(--brand); }

/* Categories (water) */
.cats { display: grid; gap: 14px; }
@media (min-width: 760px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.cat .act { margin-top: auto; align-self: start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--sunk); color: var(--ink-2); }
.cat .act.replace { background: var(--warn-tint); color: var(--warn); }
.cat .act.identify { background: var(--tint); color: var(--accent-deep); }

/* Document excerpts ("look inside") */
.doc { background: var(--card); border: 1px solid var(--rule); border-radius: 3px; box-shadow: 0 16px 34px -26px rgba(20, 32, 48, 0.5); padding: 22px 22px 26px; position: relative; overflow: hidden; }
.doc .doc-k { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.doc h4 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-top: 4px; }
.doc p, .doc li { font-size: 0.93rem; color: var(--ink-2); }
.doc .doc-body { margin-top: 12px; border-top: 1px solid var(--rule-soft); padding-top: 12px; }
.doc .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.86rem; margin-top: 4px; }
.doc table th, .doc table td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--rule-soft); }
.doc table code { font-size: 0.82rem; }
.doc-note { font-size: 0.86rem; color: var(--muted); margin-top: 10px; }

/* Samples */
.samples { display: grid; gap: 22px; }
@media (min-width: 900px) { .samples { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sample { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.sample a.page { display: block; border: 1px solid var(--rule); box-shadow: 0 14px 30px -22px rgba(20, 32, 48, 0.55); background: #fff; }
.sample a.page:hover { border-color: var(--brand); }
.sample figcaption { margin-top: 14px; font-size: 0.93rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sample figcaption strong { color: var(--ink); }
.sample figcaption .pdf { margin-top: auto; padding-top: 6px; font-weight: 650; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 16px; align-items: start;
  padding: 18px 0; font-weight: 650; font-size: 1.06rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); text-align: center; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 0 22px; max-width: 74ch; color: var(--ink-2); }
.faq .answer ul { margin-top: 8px; }
.faq-group + .faq-group { margin-top: 44px; }
.faq-group > h2 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); margin-bottom: 12px; }

/* Insight list */
.insights { display: grid; gap: 18px; }
@media (min-width: 900px) { .insights { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.insight { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--ink); }
.insight:hover { border-color: var(--brand); color: var(--ink); }
.insight time, .insight .k { font-size: 0.84rem; color: var(--muted); }
.insight h3 { font-family: var(--display); font-weight: 600; font-size: 1.28rem; line-height: 1.22; }
.insight p { color: var(--ink-2); font-size: 0.96rem; }
.insight .more { margin-top: auto; color: var(--accent); font-weight: 650; font-size: 0.95rem; }

/* Articles */
.article-head { padding-block: clamp(36px, 5vw, 64px) 28px; background: var(--card); border-bottom: 1px solid var(--rule); }
.article-head h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); max-width: 24ch; }
.article-head .meta { margin-top: 14px; color: var(--muted); font-size: 0.93rem; }
.prose { max-width: 70ch; padding-block: 36px 64px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.8rem); margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose .lead { font-size: 1.14em; color: var(--ink-2); }
.prose table.data { font-size: 0.95rem; }
.prose .note, .prose .card { margin-top: 1.6em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--rule); color: var(--ink-2); }
.sources { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--rule); font-size: 0.93rem; }
.sources h2 { font-size: 1.15rem; margin-top: 0; font-family: var(--body); font-weight: 700; }
.sources ul { margin-top: 8px; }
.sources a { overflow-wrap: anywhere; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .wrap { padding-block: clamp(48px, 6vw, 80px); display: grid; gap: 28px; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e1ec; margin-top: 12px; max-width: 60ch; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--navy); }
.cta-band .btn:hover { background: #e7eef6; border-color: #e7eef6; color: var(--navy); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cta-band a:not(.btn) { color: #fff; }
.cta-band .actions { margin-top: 0; }
.cta-band .small { font-size: 0.9rem; color: #c2d0df; margin-top: 14px; }

/* Footer */
.site-footer { background: #101b28; color: #c9d3de; font-size: 0.95rem; }
.site-footer a { color: #e6edf5; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; padding-block: 52px 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 1fr 0.8fr 1.3fr; } }
.site-footer h2 { font-family: var(--body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8fa1b5; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer .brand img { height: 34px; }
.site-footer p + p { margin-top: 10px; }
.footer-base { position: relative; padding-block: 20px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: #263445; }
.footer-base p { margin: 0; }
.footer-base nav { display: flex; gap: 20px; }

/* 404 */
.notfound { padding-block: clamp(64px, 10vw, 140px); }
.notfound h1 { max-width: 18ch; }

/* Spacing utilities last, so they win over component margins */
.mt-l { margin-top: clamp(32px, 4vw, 48px); }
.mt-m { margin-top: 24px; }

/* Print: plain and readable */
@media print {
  .utility, .site-nav, .menu, .onpage, .cta-band, .site-footer .footer-grid, .actions { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section, .page-hero { padding-block: 18px; border: 0; box-shadow: none; }
  .faq details { display: block; }
  a { color: inherit; }
}
