@layer theme, base, legacy, venture, components, utilities;
@layer venture {
/* Binproof preview. Mobile first: one column with 16px gutters, two columns from 900px. */
:root {
  /* Streams: the kit's brand tokens when the page sits in the launch kit, the same values on their own in the preview. */
  --ink: var(--brand-head, #111814);
  --ink-2: var(--brand-body, #3a423d);
  --muted: var(--brand-smoke, #5d655f);
  --paper: var(--brand-ground, #f6f3ee);
  --card: var(--brand-panel, #ffffff);
  --line: var(--brand-line, #e3ded5);
  --brand: var(--brand-accent, #0f3b2c);
  --brand-2: #1f7a55;
  --brand-ink: var(--brand-accent-deep, #0a271d);
  --brand-tint: #e5eee8;
  --sun: #f2c94c;
  --amber: #b86e00;
  --amber-ink: #8a5300;
  --amber-tint: #fbf0d9;
  --red: #b4361f;
  --red-tint: #fbe7e1;
  --blue-tint: #e8eefb;
  --s-paper: #2563eb;
  --s-glass: #0e9f8e;
  --s-metal: #7c8a99;
  --s-plastic: #f2b200;
  --s-food: #8b5a2b;
  --s-garden: #4f9d2d;
  --s-residual: #2f3437;
  --s-other: #8b5cf6;
  --stripe: var(--bs-stripe, linear-gradient(90deg, #2563eb 0 14.29%, #0e9f8e 0 28.57%, #7c8a99 0 42.86%, #f2b200 0 57.14%, #8b5a2b 0 71.43%, #4f9d2d 0 85.71%, #2f3437 0));
  --radius: 22px;
  --shadow: 0 1px 2px rgba(17, 24, 20, 0.05), 0 24px 48px -30px rgba(17, 24, 20, 0.35);
  --ring: 0 0 0 1px rgba(17, 24, 20, 0.07);
  --head: var(--brand-font-display, "Bricolage Grotesque", system-ui, sans-serif);
  --body: var(--brand-font-text, "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: min(100% - 2 * var(--kit-gutter, 16px), var(--kit-max, 74rem)); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- test banner and header ---------- */
.test-banner {
  background: var(--ink);
  color: #e9f3ee;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
}
.test-banner strong { color: var(--sun); font-weight: 600; }
header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 245, 239, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 30px; height: 30px; }
.logo span { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
nav.links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
nav.links::-webkit-scrollbar { display: none; }
nav.links a {
  flex: none;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 999px;
}
nav.links a:hover { background: var(--brand-tint); color: var(--brand-ink); }
@media (max-width: 700px) {
  nav.links { display: none; }
}
.cta-small {
  margin-left: auto;
  flex: none;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
}
@media (min-width: 701px) { .cta-small { margin-left: 8px; } }

/* ---------- hero ---------- */
.hero { padding: 40px 0 28px; }
.hero .wrap { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 48px; } .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; } }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.hero h1 { font-size: clamp(38px, 9vw, 68px); font-weight: 700; margin: 16px 0 14px; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-2); max-width: 36em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--kit-button-radius, 14px);
  padding: 13px 22px;
  min-height: 48px;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.14), 0 12px 24px -14px rgba(15, 59, 44, 0.7); }
.btn.primary:hover { background: var(--brand-ink); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.hero-art { position: relative; background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 24px 18px 18px; overflow: hidden; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(23, 166, 115, 0.16), transparent);
}
.bin-row { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.bin-row .bin { text-align: center; animation: drop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.bin-row .bin:nth-child(2) { animation-delay: 0.08s; }
.bin-row .bin:nth-child(3) { animation-delay: 0.16s; }
.bin-row .bin:nth-child(4) { animation-delay: 0.24s; }
.bin-row .bin svg { width: 100%; height: auto; max-height: 150px; }
.bin-row .bin b { display: block; font-size: 12px; line-height: 1.25; margin-top: 6px; color: var(--ink-2); font-weight: 600; }
@keyframes drop { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bin-row .bin, .reveal { animation: none !important; } }
.countdown {
  position: relative;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
}
.countdown .num { font-family: var(--head); font-size: 40px; font-weight: 700; line-height: 1; color: var(--sun); }
.countdown small { display: block; color: #bfd3ca; font-size: 13px; }
.countdown strong { font-size: 15px; }

/* ---------- strip of what it does ---------- */
.steps { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 8px 0 8px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.steps a:hover { outline: 2px solid var(--brand-2); }
.steps .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); margin-bottom: 10px; }
.steps .ico svg { width: 22px; height: 22px; fill: var(--brand); }
.steps b { display: block; font-size: 15px; }
.steps span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- sections ---------- */
section.block { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 104px); scroll-margin-top: 64px; }
section.block.alt { background: var(--brand-titanium, #ede9e2); }
.block-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 40px); }
.block-head .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.block-head .kicker::before { content: ""; width: 2.2rem; height: 4px; border-radius: 2px; background: var(--stripe); }
.block-head h1, .block-head h2 { font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; margin: 14px 0 14px; }
.block-head p { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; max-width: 40em; }
.split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--ring), var(--shadow); padding: 20px; }
@media (min-width: 900px) { .card { padding: 28px; } }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  border: 0;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
}
.seg button:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.seg button[aria-pressed="true"] { background: var(--brand); box-shadow: none; color: #fff; font-weight: 600; }
select, input[type="text"], input[type="number"], input[type="email"], input[type="date"] {
  width: 100%;
  min-width: 0;
  border: 0;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2364766e' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 22px;
  padding-right: 38px;
}
select:focus, input:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); background-color: #fff; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1 1 auto; width: 0; }
.inline .btn { flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  border: 0;
  cursor: pointer;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand-ink); }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---------- results ---------- */
.result { min-height: 120px; }
.result.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  border: 1.5px dashed var(--brand-grey, #b5afa5);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  min-height: 220px;
  align-content: center;
}
/* ---------- the answer frame (site kit REBUILD.md section 0b) ----------
   One container per tool: the worked example (empty, dashed), the answer (outcome) or what went wrong (error). The
   page's script sets data-state; a part shows only in the states its data-when lists. The site kit carries the same
   frame (kit.css .sk-state); these rules draw it in the venture's own tokens so the page reads the same from either
   builder, and they replace the old result cards. */
.sk-state { display: grid; gap: 12px; align-content: start; min-height: 220px; padding: 20px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--card); color: var(--ink-2); }
.sk-state[hidden] { display: none; }
.sk-state > * { margin: 0; min-width: 0; }
.sk-state [data-when] { display: none; }
.sk-state[data-state="empty"] [data-when~="empty"], .sk-state[data-state="outcome"] [data-when~="outcome"], .sk-state[data-state="error"] [data-when~="error"] { display: revert; }
.sk-state__kicker, .sk-state__tag { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sk-state__tag.now { color: var(--red); }
.sk-state__tag.soon { color: var(--amber-ink); }
.sk-state__tag.info { color: #2450b3; }
.sk-state__tag.good { color: var(--brand); }
.sk-state__line { font-family: var(--head); font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); max-width: 18ch; text-wrap: balance; margin: 0; }
.sk-state__line.plan-how { font-size: 22px; max-width: 30ch; }
.sk-state__why { font-size: 16px; max-width: 46ch; }
.sk-state__why p { margin: 0 0 8px; }
.sk-state__why .item { font-weight: 600; color: var(--ink); }
.sk-state__why small { display: block; font-size: 13px; color: var(--muted); }
.sk-state__why .reg-no { font-size: 14px; color: var(--muted); }
.sk-state__why .note { margin-top: 8px; }
.sk-state p.sk-state__source { padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.sk-state__next { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sk-state__next .btn { min-height: 48px; flex: 1 1 100%; text-align: center; }
/* Where the answer comes from and the standing note close the frame, at its foot. */
/* On a phone the question and its frame fill the first screen: the frame's row is tall enough that what sits under the
   tool (the page's lead, what refines an answer) starts on the next one. */
@media (max-width: 899px) { .split.tool { grid-template-rows: auto minmax(28rem, auto); } .split.tool > .sk-state { align-self: stretch; } }
/* The worked example is as tall as its words: no empty tail in the dashed frame (site gate, 15 Nov 2026: "a large empty
   area under 'Source', which looks broken"). The answer keeps the tall row, so the page under it holds still. */
@media (max-width: 899px) { .split.tool:has(> .sk-state[data-state="empty"]) { grid-template-rows: auto auto; } .sk-state[data-state="empty"] { min-height: 0; } }
/* The council finder is a second tool: on a phone it starts a clear step below the register check and its example. */
@media (max-width: 899px) { #council.gap-top { margin-top: 56px; } }
.sk-state__live { display: flex; flex-direction: column; gap: 12px; min-height: 25rem; }
.sk-state__live > * { margin: 0; min-width: 0; }
.sk-state__foot { margin-top: auto; display: grid; gap: 12px; }
.sk-state .disclaimer { margin: 0; }
.sk-state details.fold { margin-top: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.sk-state details.fold > summary { min-height: 28px; }
.sk-state details.fold[open] > summary { margin-bottom: 10px; }
.sk-state a { color: var(--brand); font-weight: 600; }
.sk-state a.btn.ghost { color: var(--ink); }
.sk-state[data-state="empty"] { border: 1px solid var(--line); background: var(--card); }
.sk-state[data-state="empty"] .sk-state__kicker { display: inline-flex; justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--brand); }
.sk-state[data-state="empty"] [aria-hidden="true"] { pointer-events: none; user-select: none; }
.sk-state[data-state="empty"] .sk-state__line { color: var(--ink); }
.sk-state[data-state="outcome"] { border: 1px solid var(--brand); border-left-width: 6px; box-shadow: 0 22px 48px -28px rgba(15, 59, 44, 0.22); }
.sk-state__tag { display: inline-flex; justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.sk-state__tag.now { background: var(--red-bg); border-color: var(--red-bg); }
.sk-state__tag.soon { background: var(--amber-bg); border-color: var(--amber-bg); }
.sk-state__tag.good { background: var(--green-bg); border-color: var(--green-bg); }
.sk-state[data-state="error"] { border-color: var(--red); border-width: 3px; }
.sk-state[data-state="error"] .sk-state__line { font-size: 24px; max-width: 24ch; }
.sk-state .kit-stamp__head { display: none; }
@media (min-width: 900px) { .sk-state { padding: 28px; } .sk-state__live { min-height: 0; } }
/* The bin an item goes in: its picture beside the answer. */
.sk-state__bin { display: grid; gap: 10px; }
.sk-state[data-state="empty"] .sk-state__bin[data-when~="empty"] { display: grid; }
.sk-state__bin svg { width: 104px; height: auto; }
.sk-state__bin small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.plan-row i { border-radius: 6px 6px 10px 10px; display: block; flex: none; }
.sk-state__bin b { display: block; }
i.preview-paper { background: #2563eb; }
i.preview-gmp { background: linear-gradient(90deg, #0e9f8e 0 33.3%, #7c8a99 0 66.6%, #f2b200 0); }
i.preview-food { background: #8b5a2b; }
i.preview-residual { background: #2f3437; }
/* The bin plan: one ruled row a bin, in its stream's colour; what goes in it opens under its name. */
.plan-rows { border-bottom: 1px solid var(--line); }
.plan-row { border-top: 1px solid var(--line); }
div.plan-row, .plan-row > summary { display: flex; align-items: center; gap: 14px; padding: 10px 0; min-height: 64px; }
.plan-row > summary { cursor: pointer; list-style: none; }
.plan-row > summary::-webkit-details-marker { display: none; }
.plan-row > summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 500; color: var(--muted); }
.plan-row[open] > summary::after { content: "–"; }
.plan-row i { width: 36px; height: 44px; }
.plan-row b { display: block; font-family: var(--head); font-size: 20px; line-height: 1.15; color: var(--ink); }
.plan-row small { display: block; font-size: 13px; color: var(--muted); }
.plan-row span { font-size: 14px; color: var(--muted); }
.plan-row .body { padding: 0 0 14px; font-size: 15px; }
.plan-row .body .req { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.plan-row .body h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.plan-row .body ul { margin: 0 0 12px; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.plan-row .body ul li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; }
.plan-row .body ul li::before { content: "✓"; color: var(--brand); font-weight: 700; }
.plan-row .body ul.no li::before { content: "✕"; color: var(--red); }
.plan-row .body ol.todo { margin: 0 0 12px; }
.plan-row summary > span { display: grid; gap: 2px; min-width: 0; }
.plan-row .plan-preview { font-size: 13px; font-weight: 400; color: var(--ink-2); line-height: 1.35; }
.plan-row .body .notes { font-size: 14px; color: var(--ink-2); background: var(--paper); border-radius: 10px; padding: 10px; margin: 0 0 10px; }
.plan-row .body .codes { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.plan-more { margin-top: 18px; }
.plan-more label.toggle { display: flex; align-items: center; gap: 10px; font-size: 15px; }
/* One question on a phone's first screen: full-width answers, an answered question folded to its answer. */
.ask .seg.rows { display: grid; gap: 8px; }
.ask .seg.rows button { min-height: 48px; text-align: left; font-size: 16px; }
.ask .seg button[aria-pressed="true"] { background: var(--ink); }
.ask .q[data-done], .ask[data-start] .q[data-q="nation"] { margin-bottom: 8px; }
.ask[data-start] .q[data-q="nation"] > .label, .ask[data-start] .q[data-q="nation"] .seg button[aria-pressed="false"], .ask .q[data-done] > .label, .ask .q[data-done] > label, .ask .q[data-done] > .hint, .ask .q[data-done] > details, .ask .q[data-done] > .premises-chips, .ask .q[data-done] .seg button[aria-pressed="false"] { display: none; }
.premises-chips { margin: 0 0 10px; }
.premises-chips .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ask .q[data-done] .seg.rows, .ask[data-start] .q[data-q="nation"] .seg.rows { display: flex; }
.ask .q[data-done] .seg.rows button, .ask[data-start] .q[data-q="nation"] .seg.rows button { min-height: 44px; background: var(--brand-tint); color: var(--brand-ink); box-shadow: none; }
.ask .q[data-done] .seg.rows button::after, .ask[data-start] .q[data-q="nation"] .seg.rows button::after { content: "✓"; margin-left: 10px; font-weight: 700; }
/* Until the script takes over (it removes data-start), the page already shows England folded to its answer and keeps
   the room the next question takes (its label, its list and the gap under it), so nothing jumps when it opens. */
.ask[data-start] .q[data-q="nation"]::after { content: ""; display: block; height: 98px; }
.ask .q-more { margin-top: 10px; }
/* England starts chosen, so the line under it says how to pick somewhere else; it shows folded and open alike. */
.ask .q-change { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ask .q-change .linkish { padding: 6px 0; }
/* 4px above and below: a one-line summary is a tap target of 24 px or more on a phone (site gate `targets`). */
.ask .q-more summary, .more-lead summary { font-size: 14px; padding: 4px 0; }
.ask .scope-missing { color: var(--red); font-weight: 600; font-size: 14px; }
/* One row that scrolls sideways on a phone: its right edge fades out, so a chip cut by the edge reads as more to come,
   and the last chip scrolls clear of the fade. On a wide screen there is room, so the chips wrap and none is hidden
   (site gate, 15 Nov 2026: "the chip rows on the tool pages are clipped at the screen edge"). */
/* The example chips wrap onto whole rows at every width, so none is cut off at the card's edge (site check, Nov 2026:
   "Crisp packet" clipped on a phone with no cue that the row scrolled). A phone shows the first six, in two or three rows. */
.chips.scroll { flex-wrap: wrap; padding: 2px 0 0; }
@media (max-width: 899px) { .chips.scroll .chip:nth-child(n+7) { display: none; } }
.chips.scroll .chip { flex: none; min-height: 40px; padding: 8px 14px; font-size: 14px; }
details.refine { margin-top: 18px; padding: 14px 20px; }
details.refine > summary { color: var(--ink); }
details.refine .optional { font-weight: 400; color: var(--muted); }
details.refine[open] > summary { margin-bottom: 10px; }
.more-lead { margin-top: 18px; }
.more-lead p, .lead-rest { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 40em; margin: 8px 0 0; }
.lead-rest { margin-top: 18px; }
.sk-state .expiry { display: block; }
.sk-state .sample-tag.keep { justify-self: start; margin: 0; }
.sample-bins { margin: 0; padding-left: 20px; }
.reveal { animation: rise 0.45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.status {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}
.status.now { background: var(--red-tint); }
.status.soon { background: var(--amber-tint); }
.status.info { background: var(--blue-tint); }
.status.good { background: var(--brand-tint); }
.status h2, .status h3 { font-size: 22px; font-weight: 700; }
.status .tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.status.now .tag { color: var(--red); }
.status.soon .tag { color: var(--amber-ink); }
.status.info .tag { color: #2450b3; }
.status.good .tag { color: var(--brand); }
.ring { flex: none; width: 76px; height: 76px; position: relative; }
.ring svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.ring .lbl b { font-family: var(--head); font-size: 22px; display: block; }
.ring .lbl small { font-size: 10px; color: var(--muted); }
.reasons { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.reasons li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
.reasons li svg { width: 22px; height: 22px; fill: var(--brand); margin-top: 1px; }
.basis {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-ink);
  background: var(--brand-tint);
  border-radius: 6px;
  padding: 2px 7px;
}
.sub { font-family: var(--head); font-size: 17px; font-weight: 700; margin: 18px 0 8px; }
.facts { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { background: var(--paper); border-radius: 14px; padding: 14px; font-size: 14px; color: var(--ink-2); }
.fact b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.fact .big { font-family: var(--head); font-size: 28px; font-weight: 700; color: var(--ink); display: block; }
ol.todo { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 8px; }
ol.todo li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: 15px; }
ol.todo li::before {
  content: counter(s);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.disclaimer { margin-top: 16px; font-size: 12px; color: var(--muted); }
.error { background: var(--red-tint); color: var(--red); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.note { background: var(--amber-tint); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #5c3b00; }
.note.green { background: var(--brand-tint); color: var(--brand-ink); }

/* ---------- FTE ---------- */
.fte-gauge { position: relative; height: 14px; border-radius: 999px; background: var(--paper); margin: 10px 0 22px; }
.fte-gauge .fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--brand-2); }
.fte-gauge .fill.over { background: var(--amber); }
.fte-gauge .ten { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); }
.fte-gauge .ten span { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; white-space: nowrap; }
.pt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; margin-bottom: 8px; align-items: center; }
.pt-row button { height: 40px; border-radius: 10px; border: 0; background: var(--paper); cursor: pointer; font-size: 20px; color: var(--muted); }
details.fold { margin-top: 12px; }
/* A closed drawer's contents take no box at all (Chrome lays them out under content-visibility), so what is on a
   phone screen is what can be read there. */
details.fold:not([open]) > :not(summary), details.plan-row:not([open]) > :not(summary) { display: none; }
details.fold summary { cursor: pointer; font-weight: 600; color: var(--brand); }

/* ---------- which bin ---------- */
.cond { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.cond span { background: var(--brand-tint); color: var(--brand-ink); font-weight: 600; font-size: 13px; border-radius: 999px; padding: 4px 10px; }
.options { display: grid; gap: 8px; }
.options button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 0;
  text-align: left;
  cursor: pointer;
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}
.options button:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.pill { flex: none; font-size: 12px; font-weight: 700; color: #fff; border-radius: 999px; padding: 3px 9px; }
.timeline { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 4px 10px; margin-top: 12px; font-size: 14px; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); margin-top: 5px; }
.timeline .dot.later { background: var(--amber); }
.timeline .dot.maybe { background: var(--muted); }

/* ---------- bin plan ---------- */
.toggle { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: 15px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--brand); }
.routes { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
@media (min-width: 700px) { .routes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.route { background: var(--card); border-radius: 14px; padding: 12px 14px; font-size: 14px; box-shadow: var(--shadow); }
.route b { display: block; margin-bottom: 4px; }
.route span { color: var(--muted); font-size: 13px; }

/* ---------- collector ---------- */
.reg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.expiry { height: 10px; background: var(--paper); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.expiry span { display: block; height: 100%; background: var(--brand-2); border-radius: 999px; }
.dataset { font-size: 12px; color: var(--muted); margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- compliance file ---------- */
.file { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .file { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
}
.file-proof { grid-column: 1 / -1; }
.file-head { display: flex; align-items: center; gap: 16px; }
.file-head .ring { width: 92px; height: 92px; }
.file-head .ring svg { width: 92px; height: 92px; }
.file-head h2 { font-size: 22px; font-weight: 700; letter-spacing: 0.01em; }
.file-head p { color: var(--muted); font-size: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.checklist .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.st.in_place { background: var(--brand-2); }
.st.missing { background: var(--red); }
.st.attention { background: var(--amber); }
.st.not_needed { background: #b8c2bd; }
.checklist b { display: block; font-size: 15px; }
.checklist span { font-size: 13px; color: var(--ink-2); }
.checklist .still-open { display: block; margin-top: 4px; color: var(--amber-ink); }
.docs { list-style: none; margin: 0; padding: 0; position: relative; }
.docs li { position: relative; padding: 0 0 14px 22px; font-size: 14px; }
.docs li::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.docs li:last-child::before { display: none; }
.docs li::after { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.docs b { display: block; }
.docs span { color: var(--muted); font-size: 13px; }
.mini-bins { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-bins span { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 13px; font-weight: 600; }
.mini-bins i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.letter {
  background: #fffdf7;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 12px 30px rgba(16, 35, 28, 0.1);
  padding: 22px 20px;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  color: #1f2a26;
  max-width: 68ch;
}
@media (min-width: 700px) { .letter { padding: 32px 36px; } }
.letter .to { font-family: var(--body); font-size: 13px; color: var(--muted); }
.letter h3 { font-family: var(--body); font-size: 16px; margin: 6px 0 14px; }
.letter p { margin: 0 0 12px; }
.letter .refs { font-family: var(--body); font-size: 12px; color: var(--muted); border-top: 1px solid #eee5d0; margin-top: 14px; padding-top: 10px; }
.sample-tag { display: inline-block; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 8px; margin-bottom: 10px; }
.sample-tag.paid-tag { background: none; border: 1px solid var(--line); color: var(--ink-2); margin-bottom: 4px; }
.next-steps .paid-tag, .send-letter .paid-tag { margin-right: 4px; }
.paid-note { margin: 0 0 8px; }

/* ---------- pricing ---------- */
.prices { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); max-width: 820px; }
@media (min-width: 700px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price { position: relative; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; }
.price.best { box-shadow: inset 0 0 0 2px var(--brand), var(--shadow); }
.price .flag { position: absolute; top: -12px; right: 20px; background: var(--sun); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.price h3 { font-size: 20px; }
.price .amt { font-family: var(--head); font-size: 52px; font-weight: 700; margin: 8px 0 2px; letter-spacing: -0.02em; }
.price .amt small { font-size: 18px; color: var(--muted); font-weight: 600; }
.price .vat { font-size: 13px; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; font-size: 15px; }
.price li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.price li::before { content: "✓"; color: var(--brand); font-weight: 700; }
.price .btn { width: 100%; }
.free-line { margin-top: 18px; color: var(--ink-2); }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #c7d6cf; padding: 36px 0 44px; font-size: 14px; margin-top: 20px; }
footer .wrap { display: grid; gap: 16px; }
footer .logo span { color: #fff; }
footer a { color: #fff; }
footer small { display: block; color: #93a79e; font-size: 12px; line-height: 1.6; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.result a, .note a, .reg a { color: var(--brand); font-weight: 600; }

.print-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 0; }
.print-link span { font-size: 13px; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0; }
.share > span { font-size: 13px; color: var(--muted); }
.share-out { flex-basis: 100%; }
.calsync { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.calsync > p { margin: 8px 0; }
.cal-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-url { display: flex; gap: 8px; }
.cal-url input { flex: 1; min-width: 0; font: 13px/1.3 ui-monospace, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.cal-said:empty { display: none; }
.share-link { display: flex; gap: 8px; margin-top: 4px; }
.share-link input { flex: 1; min-width: 0; font-size: 14px; }

/* Documents by email: the forwarding address and what came in. */
.by-email:empty { display: none; }
.forward { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper, #fff); }
.forward .sub { margin-top: 0; }
.forward > p { font-size: 14px; margin: 0 0 8px; }
.forward .share-link input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.forward .hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.waiting { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.waiting li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.waiting li > div:first-child { min-width: 0; flex: 1 1 240px; }
.waiting b { display: block; overflow-wrap: anywhere; }
.waiting span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.waiting-actions { display: flex; align-items: center; gap: 12px; }
.waiting-out { flex-basis: 100%; }
.waiting-out:empty { display: none; }
.doc-file-name { font-size: 14px; margin: 0 0 10px; overflow-wrap: anywhere; }

/* Layout the pages used to set in style="" attributes, which the launch kit's CSP blocks. */
.btn.full { width: 100%; }
.gap-top { margin-top: 18px; }
.stack { display: grid; gap: 18px; }
.tool-title { font-size: 22px; margin-bottom: 6px; }
.tool-intro { margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.label.group-label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 8px; }
.pt-row.pt-head { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field.flush { margin: 0; }
.field.mb-0 { margin-bottom: 0; }
.field.mb-6 { margin-bottom: 6px; }
.field.mt-14 { margin-top: 14px; }
.mb-12 { margin-bottom: 12px; }

/* ---------- rule changes (/changes) ---------- */
.changes { display: grid; gap: 14px; max-width: 820px; }
.change h2 { font-size: 20px; font-weight: 700; margin: 4px 0 8px; }
.change h2 span { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.change-when { margin: 0; font-size: 13px; font-weight: 600; color: var(--brand); }
.change p { margin: 0 0 10px; }
.change details summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.change details ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
/* Source links in a list stand alone: each is a full 24 px target (WCAG 2.2 SC 2.5.8). */
.change details li a, .cov-list li a { display: inline-block; min-height: 24px; padding-block: 2px; }
.change details a { overflow-wrap: anywhere; }

/* Letters sent for you */
.send-letter { margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--brand-tint); }
.send-letter h3 { margin: 0 0 4px; font-size: 17px; }
.send-letter label[for] { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
.send-letter .check { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 14px; color: var(--ink); }
.send-letter .check input { margin-top: 3px; accent-color: var(--brand); }
.send-out:not(:empty) { margin-top: 10px; }
.reply-upsell { margin-top: 10px; }
.reply-upsell .btn { margin-top: 10px; display: inline-flex; }
.follow-choice { border: 0; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.follow-choice legend { font-size: 14px; font-weight: 600; padding: 0; }
.follow-choice .check { margin-top: 6px; }
.pick-carrier { border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 14px; margin: 10px 0 0; padding: 6px 14px 12px; display: grid; gap: 2px; }
.pick-carrier legend { font-size: 14px; font-weight: 600; padding: 0 6px; }
.pick-carrier .check { margin-top: 8px; align-items: flex-start; }
.pick-carrier small { color: var(--muted); }
.register-name .setup-actions { margin-top: 10px; }
.waiting .read-line { display: block; font-size: 13px; color: var(--brand); font-weight: 600; margin-top: 2px; }
.read-note { margin: 0 0 6px; font-size: 14px; }
.sent-reply { margin-top: 2px; padding: 10px 12px; border-radius: 10px; background: var(--brand-tint); display: grid; gap: 4px; }
.sent-reply span { font-size: 13px; color: var(--muted); }
.sent-reply p { margin: 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.sent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sent { padding: 14px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(16, 35, 28, 0.12); display: grid; gap: 6px; }
.sent.focus { box-shadow: inset 0 0 0 2px var(--brand); }
.sent > span { font-size: 14px; color: var(--muted); }
.sent-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.sent-head .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber-ink); }
.sent-head .tag.good { color: var(--brand); }
.sent-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 4px; }
#letters-sent:not(:empty) { margin-top: 20px; }
.send-letter .hint, .sent .hint, .share-out .hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* Adding a document */
.add-doc { margin-top: 12px; }
.doc-form { margin-top: 4px; padding: 18px; border-radius: 14px; background: var(--brand-tint); display: grid; gap: 6px; }
.doc-form h3 { margin: 0 0 4px; font-size: 17px; }
.doc-form > label, .doc-covers label { font-size: 14px; font-weight: 600; margin-top: 8px; }
.doc-covers { display: grid; gap: 6px; }
.doc-form [hidden] { display: none; }
.doc-form input[type="file"] { font: inherit; font-size: 14px; }
.doc-fields { border: 0; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.doc-fields legend { font-size: 14px; font-weight: 600; padding: 0; }
.doc-fields .check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.doc-fields .check input { margin-top: 3px; accent-color: var(--brand); }
.doc-fields .hint { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.doc-actions { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.doc-out:not(:empty) { margin-top: 8px; }
.note .missing { margin: 6px 0; padding-left: 20px; }

/* Setting up the premises on the file page (save_premises) */
.setup { max-width: 640px; }
.setup .hint { margin-bottom: 14px; }
.setup [hidden] { display: none; }
.setup .optional { font-weight: 400; color: var(--muted); }
.setup-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.setup-out:empty { display: none; }
.setup-out { margin-bottom: 10px; }
.file-head .linkish { font-size: 14px; margin-top: 4px; }

/* What a plan adds, where the free plan stops */
.upsell { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--brand-tint); border-radius: 14px; padding: 16px 18px; }
.upsell b { display: block; font-size: 16px; color: var(--ink); }
.upsell p { margin: 4px 0 0; font-size: 14px; color: var(--muted); max-width: 52ch; }
.upsell-file .setup-actions { margin-bottom: 16px; }
.upsell-file h2 { font-size: clamp(22px, 2.4vw, 28px); }
@media (min-width: 900px) { .upsell-file .ticks { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.upsell-file p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-tint); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 9px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* The document picker */
.doc-form .label-text { font-size: 14px; font-weight: 600; margin-top: 8px; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--brand); background: #fff; }
.drop.has-file { border-style: solid; border-color: var(--brand); }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.drop-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); }
.drop-text { display: grid; gap: 2px; min-width: 0; }
.drop-text b { font-size: 15px; overflow-wrap: anywhere; }
.drop-text span { font-size: 13px; color: var(--muted); }

/* A letter beside what happens when it's sent */
.letter-layout { display: grid; gap: 20px; }
.letter-side .send-letter { margin-top: 0; }
.next-steps { margin-top: 18px; }
.next-steps .sub { margin: 0 0 10px; }
.next-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.next-steps li { position: relative; padding-left: 38px; counter-increment: step; }
.next-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.next-steps b { display: block; font-size: 15px; }
.next-steps span { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .letter-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 28px; }
  .letter-layout .letter { max-width: none; }
}
/* Only where the side column fits the screen; it never leaves the letter's own grid. */
@media (min-width: 900px) and (min-height: 820px) { .letter-side { position: sticky; top: 96px; } }

/* The rules in full (/rules): a contents card beside a readable column, sticky only where it fits. */
.rules { display: grid; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (min-width: 960px) { .rules { grid-template-columns: 260px minmax(0, 1fr); } }
@media (min-width: 960px) and (min-height: 640px) { .rules-toc { position: sticky; top: calc(var(--kit-header-h, 72px) + 20px); } }
.rules-toc p { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.rules-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 15px; line-height: 1.35; }
.rules-toc a { color: var(--ink); text-decoration: none; }
.rules-toc a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.rules-body { display: grid; gap: clamp(28px, 4vw, 44px); max-width: 46rem; }
.rules-part { scroll-margin-top: calc(var(--kit-header-h, 72px) + 16px); }
.rules-part h2 { position: relative; font-size: clamp(24px, 1.2rem + 1.2vw, 32px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 14px; padding-top: 18px; }
.rules-part h2::before { content: ""; position: absolute; left: 0; top: 0; width: 2.2rem; height: 4px; border-radius: 2px; background: var(--stripe); }
.rules-part p, .rules-part li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.rules-part p { margin: 0 0 14px; }
.rules-part ul { margin: 0 0 14px; padding-left: 1.2em; display: grid; gap: 6px; }
.rules-part a { color: var(--ink); text-underline-offset: 0.2em; }
.rules-part b { color: var(--ink); }
.rules-src { border-top: 1px solid var(--line); padding: 12px 0; }
.rules-src:last-child { border-bottom: 1px solid var(--line); }
.rules-src summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.rules-src summary span { font-weight: 500; font-size: 14px; color: var(--muted); margin-left: 6px; }
.rules-src ul { margin: 10px 0 0; }
.rules-src li { font-size: 15px; }

/* The collector a bin plan follows: what it takes together, quoted from its own page. */
.collector-known { color: var(--brand-ink); }
.collector-known a { color: inherit; }

/* ---------- coverage map (/coverage, tools/build_pages.py build_coverage) ---------- */
.cov { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.cov-map { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(14px, 3vw, 28px); }
.cov-map svg { display: block; width: 100%; height: auto; max-height: 78vh; }
.cov-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cov-legend li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; }
.cov-legend b { display: block; font-size: 16px; line-height: 1.3; }
.cov-legend small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.cov-legend strong { font-family: var(--head); font-size: 26px; font-variant-numeric: tabular-nums; color: var(--ink); }
.cov-swatch { width: 24px; height: 26px; }
.cov-note { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.cov-notify { margin-top: 22px; background: var(--brand-tint); border-radius: 18px; padding: 20px; }
.cov-notify h3 { margin: 0 0 6px; font-size: 18px; }
.cov-notify p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.cov-notify .kit-notify { border-top: 0; padding-top: 0; margin-top: 14px; }
.cov-notify select, .cov-notify input[type="email"] { width: 100%; }
.cov-notify button { width: 100%; }
.cov-all { margin-top: 28px; }
.cov-all h3 { font-size: 16px; margin: 20px 0 8px; }
.cov-all h3 span { color: var(--muted); font-weight: 500; }
.cov-list { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 24px; font-size: 14px; line-height: 1.7; }
.cov-list a { color: var(--ink-2); }
.cov-list li { break-inside: avoid; }
.cov-list small { display: block; margin-top: -4px; color: var(--ink-2); font-size: 12px; }
@media (max-width: 860px) { .cov { grid-template-columns: 1fr; } }

/* The public sample is for buyers: the stamp's ids and versions (Technical details) stay on a customer's own answers,
   not on the sample (site gate, 7 Nov 2026: "version strings and codes shown to laypeople"). */
body:has([data-sample]) .kit-stamp__tech { display: none; }

}
