[hidden] { display: none !important; }
:root {
  --navy: #13294b; --navy-2: #1f3d6b; --green: #2f7d4f; --green-2: #e5f2ea; --mint: #9fd8b4;
  --ink: #17202e; --muted: #5b6676; --line: #d9dee6; --bg: #f6f7f9; --card: #ffffff; --band: #eef3f8;
  --blue: #2a78d6; --radius: 12px;
  --head: "Bricolage Grotesque", system-ui, sans-serif; --body: "Public Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
html, body { margin: 0; }
body { font: 17px/1.55 var(--body); color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.12; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.1rem; }
a { color: var(--navy-2); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; }
section.wrap { padding: 56px 16px; }
.band { background: var(--band); }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.kicker { text-transform: uppercase; letter-spacing: .07em; font-weight: 600; font-size: .8rem; color: var(--green); margin: 0 0 6px; }
.lede { font-size: 1.1rem; color: #33404f; max-width: 46rem; }

.sample-banner { background: #fff4dc; color: #6b4600; text-align: center; padding: 8px 16px; font-size: .875rem; }
.topbar { position: sticky; top: 0; z-index: 5; background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; gap: 8px 24px;
  align-items: center; justify-content: space-between; padding: 12px 16px; }
.brand { color: #fff; text-decoration: none; font-family: var(--head); font-size: 1.15rem; display: flex; gap: 10px; align-items: center; }
.brand b { color: var(--mint); }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--mint); position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 50%; top: 2px; transform: translateX(-50%);
  border: 5px solid transparent; border-bottom: 9px solid var(--mint); border-top: 0; }
.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { text-decoration: underline; }

.hero { padding-top: 64px; padding-bottom: 40px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.btn { display: inline-block; font: inherit; font-weight: 600; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy);
  color: #fff; padding: 11px 18px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--navy-2); }
.btn.ghost { background: #fff; color: var(--navy); }
.btn:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.small-btn { padding: 7px 12px; font-size: .9rem; }
.steps-row { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 28px 0 14px; counter-reset: s; }
.steps-row li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 14px 52px; position: relative; }
.steps-row li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-top: 12px; }
.picker { justify-content: flex-start; }
select, input[type=text], textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
textarea { width: 100%; resize: vertical; }
.toggle { display: flex; gap: 8px; align-items: center; }

/* map */
.map-wrap { position: relative; }
svg.map { width: 100%; height: auto; display: block; background: #fbfcfd; border-radius: 8px; }
svg.map path.d { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: default; }
svg.map path.d.hot { stroke: var(--navy); stroke-width: 3; }
svg.map circle { fill: #fff; fill-opacity: .9; stroke: var(--ink); stroke-width: .9; pointer-events: none; }
svg.map text { font: 700 22px var(--body); text-anchor: middle; dominant-baseline: middle; pointer-events: none; paint-order: stroke;
  stroke-width: 4px; }
.tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font-size: .875rem; box-shadow: 0 4px 14px rgba(0,0,0,.12); max-width: 230px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; border: 1px solid rgba(0,0,0,.08); }
table.data { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
table.data td.n { font-variant-numeric: tabular-nums; }

/* brief */
.brief-head { border-bottom: 3px solid var(--navy); padding-bottom: 10px; margin-bottom: 14px; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 12px 0 16px; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fbfcfd; }
.tile-v { font-family: var(--head); font-size: 1.8rem; color: var(--navy); line-height: 1.1; }
.tile-l { font-weight: 600; font-size: .9rem; }
.brief-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
@media (max-width: 720px) { .brief-grid { grid-template-columns: 1fr; } }
svg.brief-map { width: 100%; height: auto; max-height: 380px; display: block; }
svg.brief-map path { fill: #e8f1fc; stroke: var(--navy); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
svg.brief-map circle { fill: var(--blue); fill-opacity: .75; stroke: #fff; stroke-width: .8; }
ul.bars { list-style: none; padding: 0; margin: 6px 0; }
ul.bars li { display: grid; grid-template-columns: minmax(0, 12rem) 1fr 2.6rem; gap: 8px; align-items: center; margin: 6px 0; font-size: .875rem; }
.bar { background: #eef2f7; border-radius: 4px; height: 10px; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; }
.bar-v { text-align: right; font-variant-numeric: tabular-nums; }
ul.cols { list-style: none; padding: 0; columns: 3 13rem; column-gap: 20px; font-size: .875rem; }
ul.cols li { break-inside: avoid; margin-bottom: 6px; line-height: 1.3; }

/* alert stepper */
.stepper { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: st; }
.stepper li { counter-increment: st; }
.stepper button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 99px;
  padding: 8px 14px; cursor: pointer; }
.stepper button::before { content: counter(st) ". "; }
.stepper button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-card .mock { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mock-bar { background: #f0f3f7; padding: 8px 12px; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.mock-body { padding: 18px; }
.field { margin: 10px 0; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 4px; }
.field .val { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: #fbfcfd; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--green-2); color: var(--green); }
.pill.warn { background: #fff4dc; color: #8a5a00; }
.log { list-style: none; padding: 0; margin: 10px 0; font-size: .9rem; }
.log li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.log time { color: var(--muted); min-width: 7.5rem; font-variant-numeric: tabular-nums; }
.email { max-width: 560px; margin: 0 auto; }
.email .hdr { font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 12px; }
.legs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 10px 0; }
.leg { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fbfcfd; }
.done { background: var(--green-2); border-radius: 10px; padding: 18px; }
.next { margin-top: 16px; display: flex; justify-content: flex-end; }

/* results */
.cols-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding: 24px 4px 0; border-bottom: 1px solid var(--line); }
.cols-chart div { flex: 1; background: var(--blue); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; }
.cols-chart div span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: .8rem; font-variant-numeric: tabular-nums; }
.cols-x { display: flex; gap: 10px; padding: 4px; font-size: .8rem; color: var(--muted); }
.cols-x span { flex: 1; text-align: center; }

.grid3 { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 18px 0; }
.grid3 li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.grid3 p { margin: 0; color: #33404f; font-size: .95rem; }
.foot { padding: 28px 16px 48px; }

@media print {
  body * { visibility: hidden; }
  #brief-card, #brief-card * { visibility: visible; }
  #brief-card { position: absolute; left: 0; top: 0; width: 100%; border: 0; margin: 0; }
  @page { size: letter; margin: .5in; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
