/* Brand tokens (F-01), from Kara's brand rules, recorded in 04 section 2.
   Palette: Ink, Mist, Slate, Copper, and White only. Ovo for headings at
   24px and up only; Almarai for body and UI. One solid Ink pill per page;
   no shadows or gradients.
   Contrast rules (WCAG AA): Ink, Slate, and Copper all pass as text on
   White and Mist. On Ink, use White text and Mist labels. Copper on Ink is
   3.84:1, so only at 24px and up. Never Slate text on Ink; never Copper on
   Slate. A test enforces the forbidden pairs.
   Fonts are served from this Worker: no third-party font requests
   (04 section 2). Ovo and Almarai are SIL Open Font License; the .woff2
   files under /fonts are the latin subsets. */

@font-face {
  font-family: "Ovo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ovo-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/almarai-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/almarai-700-latin.woff2") format("woff2");
}

:root {
  /* Ink: primary text, headlines, dark sections, the one primary button. */
  --color-ink: #000000;
  /* Mist: section backgrounds and gentle separation. */
  --color-mist: #e6ecee;
  /* Slate: labels, eyebrows, dividers. Never for links or actions. */
  --color-slate: #44606e;
  /* Copper: links, highlights, text-link CTAs only. Never structure. */
  --color-copper: #985a2e;
  /* White: primary background. */
  --color-white: #ffffff;
  /* Status colors (D-106, widened by D-127): Pine means ready or Low risk
     only; Brick means not ready, high risk, and error messages, always
     with the icon or status word. Medium risk uses the Slate half-circle.
     Status and errors only: never links, buttons, structure, or
     decoration; never color alone. On Ink, icons only (graphics
     contrast), never text at any size. */
  --color-pine: #2e6b4a;
  --color-brick: #b23a30;

  --font-heading: "Ovo", serif;
  --font-body: "Almarai", sans-serif;

  /* Web scale: title 40, section 24, body 16, caption 12; buttons 18.
     16px is the minimum for text; 44px targets (04 section 11, D-23). */
  --text-title: 40px;
  --text-section: 24px;
  --text-body: 16px;
  --text-caption: 12px;
  --text-button: 18px;
  --tap-target: 44px;

  /* Stat cards are White with 32px corners on Mist. */
  --radius-card: 32px;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-white);
}

/* Ovo only at 24px and up; smaller headings stay in the body font. */
h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0 0 0.5em;
}

h1 {
  font-size: var(--text-title);
}

h2 {
  font-size: var(--text-section);
}

h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  margin: 0 0 0.5em;
}

/* Alternate White and Mist sections instead of rules. */
.section-mist {
  background: var(--color-mist);
}

/* Labels and eyebrows: Slate, uppercase bold. Never on Ink. */
.label {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-slate);
}

/* On Ink sections, labels are Mist, text is White. */
.on-ink {
  background: var(--color-ink);
  color: var(--color-white);
}

.on-ink .label {
  color: var(--color-mist);
}

/* The one solid Ink pill per page. No shadows, no gradients. */
.pill {
  display: inline-block;
  min-height: var(--tap-target);
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--color-ink);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: 700;
  line-height: var(--tap-target);
  cursor: pointer;
  text-decoration: none;
}

/* Secondary: outlined pill. Self-sufficient so links render as pills
   (999px corners, Almarai 18px bold, no underline), never square boxes. */
.pill-outline {
  display: inline-block;
  min-height: var(--tap-target);
  padding: 0 28px;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: 700;
  line-height: calc(var(--tap-target) - 4px);
  cursor: pointer;
  text-decoration: none;
}

/* Tertiary: Copper text link with an arrow. Links only, never structure. */
.link-cta {
  color: var(--color-copper);
  font-family: var(--font-body);
  font-size: var(--text-body);
}

/* Every text link: regular weight, Copper, underlined (04 section 2).
   Pills and buttons set their own styles and are excluded. */
a {
  color: var(--color-copper);
  font-weight: 400;
  text-decoration: underline;
}

/* Stat cards: White with 32px corners on Mist. */
.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 24px;
}

/* Intake framework (F-02): one column, labels above fields, 44px targets,
   16px minimum text. */
.progress {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-slate);
}

.progress .current {
  color: var(--color-ink);
}

.question {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
}

.question legend {
  font-size: var(--text-body);
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap-target);
  font-size: var(--text-body);
  cursor: pointer;
}

.option input {
  width: 20px;
  height: 20px;
  margin: 0;
}

/* Inline errors (D-127): Brick text at regular weight with the "!" alert
   icon before it, directly under the question or field. The icon is
   aria-hidden, so the color never carries the message on its own. Brick
   on White is 5.9:1 and on Mist 5.0:1; Brick never sits on Ink. */
.error-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--color-brick);
  font-size: var(--text-body);
  font-weight: 400;
  margin: 8px 0;
}

/* display: flex would outrank the browser's own [hidden] rule. */
.error-line[hidden] {
  display: none;
}

.error-line:focus {
  outline: none;
}

.error-line .error-icon {
  width: 20px;
  height: 20px;
  flex: none;
  /* The circle is drawn with currentColor, so the icon is Brick too. */
  margin-top: 1px;
}

.required-message {
  margin: 8px 0 0;
}

.step-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

/* Zones (F-03a): every screen keeps a side gutter, 16px minimum at 375px
   and wider on desktop, so text never touches an edge. Full-bleed bands
   (like the Mist example band) carry the gutter inside themselves. */
.zone {
  padding: 24px 16px;
}

@media (min-width: 768px) {
  .zone {
    padding: 32px 48px;
  }
}

/* Start screen (F-03, F-03a). Classes only; no style attributes. */
.start-zone:focus {
  outline: none;
}

.turnstile-widget {
  margin: 16px 0;
  min-height: 65px;
}

.terms-line {
  font-size: var(--text-body);
  margin-top: 12px;
}

/* Results page (F-05). */
.results-page h1 {
  font-size: var(--text-section);
  font-family: var(--font-heading);
}

.readiness-list,
.gap-list {
  margin: 0 0 16px;
  padding-left: 20px;
}

.result-tier,
.result-outline {
  margin: 24px 0;
}

.outline-list {
  margin: 8px 0 16px;
  padding-left: 20px;
}

.report-form {
  margin: 24px 0;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.report-form input[type="email"] {
  display: block;
  width: 100%;
  max-width: 420px;
  min-height: var(--tap-target);
  font-size: var(--text-body);
  font-family: var(--font-body);
  border: 2px solid var(--color-slate);
  border-radius: 8px;
  padding: 0 12px;
  margin-bottom: 12px;
}

.caution-line,
.limits-line {
  /* Body text style, regular weight (Kara). */
  font-weight: 400;
  font-size: var(--text-body);
}

.wrong-link {
  margin: 24px 0;
}

/* The closing links row (D-128): "Start another check | Something looks
   wrong?". Start another check is a button styled like the base link rule,
   since it acts on this page instead of navigating. Both links keep a
   44px tap target (04 section 11) without the text changing size. */
.page-actions {
  margin: 24px 0;
}

/* The star rating (D-129): Ink stars, five 44px targets in a row, and the
   wording for each star read by screen readers. The stars are outlines
   until they are chosen, so the choice is a shape change and not a color
   change alone. */
.rating {
  border: 0;
  margin: 32px 0 0;
  padding: 0;
}

.rating legend {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 700;
  padding: 0;
}

.rating-stars {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
}

.rating-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

/* The star shape carries the choice visually; the wording beside it is
   for screen readers, so it is clipped rather than resized (G-05). */
.rating-star-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.rating-star input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.rating-star-shape {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 1.5;
}

.rating-star input:checked ~ .rating-star-shape,
.rating-star:hover .rating-star-shape {
  fill: var(--color-ink);
}

.rating-star input:focus-visible ~ .rating-star-shape {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

.rating-thanks {
  font-size: var(--text-body);
  margin: 8px 0 0;
}

/* The "Stuck?" line at the foot of every screen (D-129). Regular weight,
   the address a Copper link from the base rule, and selectable so it can
   be copied as text. print.css hides it. */
.stuck-line {
  font-size: var(--text-body);
  font-weight: 400;
  margin: 24px 0 0;
  user-select: text;
}

.page-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.page-actions-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.page-actions-separator {
  color: var(--color-slate);
}

/* D-133: on a phone the row stacks, 12px apart, and the pipe goes, since
   it only separates items that sit side by side. */
@media (max-width: 767px) {
  .page-actions-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-actions-separator {
    display: none;
  }
}

/* The fine print closing a page (D-133): 48px below the action row, the
   disclaimer at body size in Slate, then the credit line 8px under it at
   the caption size. The credit is the last thing on the page. */
.fine-print {
  margin-top: 48px;
  color: var(--color-slate);
}

.fine-print .limits-line {
  color: var(--color-slate);
  margin: 0 0 8px;
}

.fine-print .credit-line,
.fine-print .copyright-notice {
  margin: 0;
}

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--color-copper);
  text-decoration: underline;
  cursor: pointer;
}

.start-over-confirm {
  margin: 8px 0 0;
}

.start-over-confirm p {
  margin: 0 0 12px;
}

.start-over-confirm p:focus {
  outline: none;
}

.start-over-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Progress (F-05a, D-106): under 768px a step line and segment bar; from
   768px the full named row. Screen readers always get the named list. */
.progress-mobile {
  margin: 0 0 24px;
}

.progress-step-line {
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-slate);
  margin: 0 0 8px;
}

.progress-segments {
  display: flex;
  gap: 4px;
  height: 4px;
}

.progress-segments .segment {
  flex: 1;
  background: var(--color-mist);
}

.progress-segments .segment.done {
  background: var(--color-slate);
}

.progress-segments .segment.current {
  background: var(--color-ink);
}

@media (max-width: 767px) {
  /* Visually hidden, still read by screen readers. */
  .progress-names {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 768px) {
  .progress-mobile {
    display: none;
  }
}

/* Results page (F-05a, D-106). */
.verdict-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 24px 0;
  margin: 0 0 32px;
}

/* The verdict is the answer, so it gets its own box (D-123): the Slate
   uppercase eyebrow above it, then a 2px Ink border with no fill, so it
   prints with backgrounds off. Ink text only, never a status color. */
.verdict-eyebrow {
  margin: 0 0 8px;
}

.verdict-box {
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-card);
  padding: 24px;
  background: none;
}

.verdict-line {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-ink);
  margin: 0;
}

.stat-grid {
  display: grid;
  /* Six sources in a 3 by 2 grid on desktop, with both rows the same
     height and every card filling its cell (D-124 follow-up). The phone
     rule below keeps two columns. */
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

/* Inside the White results card the stat cards are Mist, or they vanish
   White-on-White: 16px padding, no min-height, no extra margins. Each card
   fills its cell, so the row heights match (D-124 follow-up). */
.stat-grid .stat-card {
  height: 100%;
  background: var(--color-mist);
  padding: 16px;
  margin: 0;
  min-height: 0;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-section);
  display: block;
}

.stat-name {
  display: block;
}

.stat-grid .status {
  margin-top: 4px;
}

@media (max-width: 767px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

/* The risk card's inline icon, centered on the text, right before the
   bolded tier word. */
.risk-icon {
  vertical-align: middle;
  margin-right: 6px;
}

.risk-icon svg {
  display: block;
}

.status svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.status-pine {
  color: var(--color-pine);
}

.status-brick {
  color: var(--color-brick);
}

.status-slate {
  color: var(--color-slate);
}

.alert-card {
  background: var(--color-mist);
  border-radius: var(--radius-card);
  padding: 20px;
  margin: 0 0 32px;
}

.alert-card p {
  margin: 0;
}

.tier-section {
  margin: 24px -16px 0;
  padding: 24px 16px;
}

@media (min-width: 768px) {
  .tier-section {
    margin: 32px -48px 0;
    padding: 32px 48px;
  }
}

/* F-05a follow-up (Kara's 390px check): 32px between sections; the
   results card has no side margin and a 20px gutter under 768px. */
.results-page .gap-list,
.results-page .report-form {
  margin: 0 0 32px;
}

.tier-section h2 {
  margin-top: 32px;
}

.pricing-link {
  display: inline-block;
}

@media (max-width: 767px) {
  .results-page.zone {
    margin: 0;
    padding: 24px 20px;
  }
}

/* Risk card lines (D-106 follow-up). */
.risk-card .label {
  margin: 0 0 8px;
}

.risk-tier-line {
  margin: 0 0 8px;
  font-size: var(--text-body);
}

.risk-detail {
  margin: 0;
}

.report-form-items {
  margin: 0 0 16px;
  padding-left: 20px;
}

/* Results page heading (D-110): Ovo 40px H1, matching the page title. */
.results-heading {
  font-family: var(--font-heading);
  font-size: 40px;
  margin: 0 0 24px;
}

/* Readiness card help disclosure (D-110); rendered only once the help
   text is approved. */
.source-help {
  margin-top: 8px;
  /* Readable text, 16px on screen (F-08 review). */
  font-size: var(--text-body);
}

.source-help summary {
  color: var(--color-slate);
  text-decoration: underline;
  cursor: pointer;
}

.source-help p {
  margin: 8px 0 0;
}

/* Next steps band (D-110, per the approved mockup): the lead, the 90-day
   plan card, the tier cards, and the actions row. */
.next-steps-heading {
  margin: 0 0 8px;
}

.fit-sentence {
  margin: 0 0 32px;
  font-size: 18px;
}

.plan-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 28px;
  margin: 0 0 32px;
}

.plan-phase {
  margin: 16px 0 0;
  font-weight: 700;
}

.plan-card p {
  margin: 12px 0 0;
}

.plan-card .label {
  margin: 0;
}

.plan-steps {
  list-style: none;
  counter-reset: plan-step;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-steps li {
  counter-increment: plan-step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.plan-steps li::before {
  content: counter(plan-step);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-mist);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.plan-more {
  color: var(--color-slate);
}

.tier-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 32px;
}

.tier-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 28px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tier-card.recommended {
  border-color: var(--color-ink);
}

.tier-card h3,
.tier-card p {
  margin: 0;
}

.tier-price {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-top: 6px;
}

.tier-min {
  color: var(--color-slate);
}

.tier-card .tier-fit {
  margin-top: 10px;
}

.tier-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

@media (max-width: 640px) {
  .tier-cards {
    grid-template-columns: 1fr;
  }

  .plan-card,
  .tier-card {
    padding: 22px;
    border-radius: 24px;
  }
}

.report-form-heading {
  margin: 0 0 12px;
}

/* Report form (F-06). */
.report-form-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 16px;
}

.report-thumbnail {
  width: 48px;
  height: 64px;
  flex: none;
  color: var(--color-slate);
}

.consent-disclosure {
  margin: 12px 0 8px;
}

/* The confirmation card replaces the form: Ink, everything inside White
   (Kara's restyle). No Copper, Slate, Pine, or Brick inside the card. */
.report-confirmation {
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 24px;
  margin: 0 0 32px;
}

.report-confirmation h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-white);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.confirmation-check {
  width: 20px;
  height: 20px;
  flex: none;
}

.report-confirmation p {
  color: var(--color-white);
  margin: 0 0 12px;
}

.report-confirmation a {
  color: var(--color-white);
}

/* On Ink, the outlined pill is White on White borders. */
.report-confirmation .pill-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

/* The no-JavaScript message (F-08, BTC-X-26). */
.no-js {
  font-size: var(--text-body);
  padding: 24px 20px;
}

/* The brand header (D-119): the official horizontal logo, top left, at
   least 160px wide; the clear space around it is at least half the logo
   circle's diameter (the margins below). Never on Slate, Copper, or Ink.
   The site line sits top right. */
.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 40px;
}

.brand-header img {
  width: 180px;
  height: auto;
  flex: none;
}

.brand-site {
  color: var(--color-slate);
}

/* Numbered section heads (D-119): the 2pt Slate rule, the uppercase
   eyebrow, then the Ovo heading. */
.section-head {
  border-top: 2pt solid var(--color-slate);
  padding-top: 12px;
  margin: 0 0 16px;
}

.section-head .eyebrow {
  margin: 0 0 8px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
}

/* The web report's footer row (D-120): the actions on one wrapping line,
   then the thin Slate divider before the limits line and the notice.
   Hidden in print (print.css). */
.report-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 24px 0 0;
}

.report-footer-row p {
  margin: 0;
}

.footer-divider {
  border: 0;
  border-top: 1px solid var(--color-slate);
  margin: 16px 0;
}

.copyright-notice {
  color: var(--color-slate);
  font-size: var(--text-body);
  margin: 24px 0 0;
}

/* Private report page (F-07, D-115). .print-only is shown by print.css
   only. */
.print-only {
  display: none;
}

.private-notice {
  color: var(--color-slate);
  margin: 0 0 24px;
}

.report-date {
  color: var(--color-slate);
  margin: 0 0 16px;
}

.private-summary .verdict-box {
  margin: 0 0 24px;
}

.risk-line {
  margin: 0 0 24px;
}

.best-fit {
  font-weight: 700;
  margin: 0 0 16px;
}

.gap-finding {
  color: var(--color-slate);
}

.reminder-line {
  margin: 32px 0 16px;
  font-weight: 700;
}

.turn-off-link {
  margin: 16px 0 24px;
  /* Readable text, 16px on screen (F-08 review). */
  font-size: var(--text-body);
}

.working-urls {
  margin: 8px 0 0;
}

/* The page-1 footer line (Kara's PDF review): small Slate text closing
   the summary. */
.prepared-line {
  color: var(--color-slate);
  font-size: 13px;
  margin: 24px 0 0;
}

/* The credit line closing the web results page (D-123), at the caption
   size since D-133. It stays inside BTC-G-05's under-16px exception list. */
.credit-line {
  color: var(--color-slate);
  font-size: var(--text-caption);
  margin: 24px 0 0;
}

.private-section {
  margin: 0 0 32px;
}

.gap-fix-list {
  margin: 0;
  padding-left: 20px;
}

.gap-fix-list li {
  margin: 0 0 16px;
}

.gap-fix-list h3,
.gap-fix-list p {
  margin: 0 0 4px;
}

.rating-list {
  margin: 0 0 12px;
  padding-left: 20px;
}

.claims-limits-line {
  margin: 0;
}

.template-table-wrap {
  overflow-x: auto;
}

.template-table {
  border-collapse: collapse;
  /* 16px on screen inside its horizontal scroll container; print.css
     sizes it down for paper only (F-08 review). A real table at every
     width (D-120): the min-width forces the container's horizontal
     scroll on narrow screens instead of squashed or stacked cells. */
  font-size: var(--text-body);
  display: table;
  min-width: 1080px;
}

.template-table th,
.template-table td {
  border: 1px solid var(--color-slate);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.template-outline {
  margin: 0;
  padding-left: 20px;
}

.template-outline li {
  margin: 0 0 12px;
}

.reminder a {
  margin-top: 8px;
}

/* Intake question help (Kara): rendered only once the drafts are
   approved; same look as the readiness-card help. */
.question-help {
  margin: 4px 0 8px;
  /* Readable text, 16px on screen (F-08 review). */
  font-size: var(--text-body);
}

.question-help summary {
  color: var(--color-slate);
  text-decoration: underline;
  cursor: pointer;
}

.question-help p {
  margin: 8px 0 0;
}

.consent-box {
  min-height: var(--tap-target);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.consent-box input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-ink);
  margin: 0;
  flex: none;
}

.consent-box span {
  min-width: 0;
}

/* D-132: the privacy-notice link sits at the end of the disclosure line.
   The line may wrap on a phone, but the link text never breaks inside
   itself, so "How I use your email" stays one unit. */
.privacy-link {
  white-space: nowrap;
}
