/* ==========================================================================
   chat.css — the "Ask the standard" showcase, and the surface sub-plan D builds on.

   DESIGN §7.9 calls this band the centrepiece: two windows side by side, always,
   because the contrast between a grounded answer and a confident refusal *is* the
   product's argument. Styling consequences that are not decoration:

     * the refusal bubble is warm (--brand-warmDark), never error red — a boundary
       drawn confidently, not a malfunction;
     * both states share every other treatment, so neither reads as the "broken" one;
     * a citation chip is monospace and tappable-looking, because a citation that
       cannot be followed is a decoration.

   Split from site.css by the §II 30 KB file cap; loaded by base.html on every page
   so D can render inside any of them.
   ========================================================================== */

.chat-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

.chat-case {
  display: flex;
  flex-direction: column;
}

.case-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--brand-ochreLight);
  font-size: var(--text-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-label__tag {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;
  font-size: var(--text-nano);
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.8;
}

/* The window is a **light card on the dark band**, not a dark terminal. The band keeps the
   page's one dark moment (DESIGN §3, §7.9); the card inside it is where the words live, so
   every quotation sits on a ground its ink was chosen for. A caller who cannot read the
   source has not been given an answer. */
.chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-md);
  background-color: var(--brand-creamWarm);
  box-shadow: var(--shadow-card);
}

/* 3.5rem is the bar's own 44 px target: the *Start over* control sits in it, and a bar shorter
   than the control would put a 44 px hit area inside a 38 px strip. The body flexes under it
   (`.chat__body` is `flex: 1`), so the composer's position on a 768 px laptop does not move. */
.chat__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 0.25rem 0.75rem 0.25rem 1rem;
  border-bottom: 1px solid var(--brand-sand);
  background-color: var(--brand-cream);
}

.chat__bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

/* Quiet, because it is a destructive action next to a badge and must not read as the page's
   primary button: muted ink, an underline, and the 44 px target the rule requires. */
.chat__start-over {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.35rem;
  border: 0;
  border-radius: var(--radius-xs);
  background: none;
  color: var(--brand-muted);
  font-family: inherit;
  font-size: var(--text-micro);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* Underlined only on hover: at rest an underlined word next to a pill badge reads as a
   broken link, and the muted ink is the whole visual weight this control should carry. */
.chat__start-over:hover,
.chat__start-over:focus-visible {
  color: var(--brand-ochreDark);
  text-decoration: underline;
}

.chat__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-forestDark);
  font-size: var(--text-xs);
  font-weight: 600;
}

.chat__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background-color: var(--brand-ochre);
}

/* The one sage-green surface in the system: the forest token over cream. It is derived, not a
   fifth ground (DESIGN §3) — the same ink as the band, at 8 %, on the card. It marks the
   window's *state*, which is a category, not a decoration. */
.state-badge {
  padding: 0.125rem 0.5rem;
  border: 1px solid rgb(var(--brand-forest-rgb) / 0.18);
  border-radius: var(--radius-xs);
  background-color: rgb(var(--brand-forest-rgb) / 0.08);
  color: var(--brand-forestDark);
  font-size: var(--text-nano);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chat__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
}

.chat__row {
  display: flex;
  justify-content: flex-start;
}

.chat__row--user {
  justify-content: flex-end;
}

.chat__bubble {
  max-width: 90%;
  padding: 1rem;
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-lg);
  border-top-left-radius: 0;
  color: var(--brand-charcoal);
  font-size: var(--text-xs);
  line-height: var(--leading-body);
}

.chat__bubble p {
  margin: 0;
}

.chat__bubble p + p {
  margin-top: 0.75rem;
}

/* The question is the listener's voice, so it carries the sage tint and never a heavy ground:
   at 8 % forest, the band's own colour, it recedes behind the answer it produced. */
.chat__bubble--user {
  max-width: 85%;
  padding: 0.625rem 1rem;
  border-color: rgb(var(--brand-forest-rgb) / 0.16);
  border-top-right-radius: 0;
  border-top-left-radius: var(--radius-lg);
  background-color: rgb(var(--brand-forest-rgb) / 0.08);
  color: var(--brand-forestDark);
}

/* The answer is the card the page exists for: the lightest ground in the window, so the
   quotation underneath can be a second card and still read as subordinate (DESIGN §7.9). */
.chat__bubble--answer {
  background-color: var(--brand-cream);
}

/* Warm, never red (DESIGN §7.9). `--brand-ochreLight` is the accent's tint, and the ochre rule
   does the styling work; the copy names the four documents and offers the administrator. */
.chat__bubble--refusal {
  border-color: rgb(var(--brand-ochreDark-rgb) / 0.3);
  border-left: 3px solid var(--brand-ochreDark);
  background-color: var(--brand-ochreLight);
  color: var(--brand-warmDark);
}

/* D5: the sentence that names why this turn refused, under the fixed refusal line.
   Quieter than the sentence above it — it is an explanation, not the refusal — but the
   same warm family, so a citation that could not be checked never reads as an outage. */
.chat__bubble__note {
  color: var(--brand-muted);
  font-style: italic;
}

/* The waiting state. Muted, never an error and never a spinner pretending to be progress:
   the row says what is happening, and after 8 s the script replaces the label with a
   sentence that admits how long a long answer takes. The dots are decorative — a screen
   reader hears the label only. */
.chat__bubble--pending {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  background-color: var(--brand-cream);
  border-style: dashed;
  color: var(--brand-muted);
  font-style: italic;
}

.chat__pending-dots {
  display: inline-flex;
  gap: 0.15rem;
}

.chat__pending-dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-pill);
  background-color: currentColor;
  animation: chat-pending 1.2s ease-in-out infinite;
}

.chat__pending-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.chat__pending-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-pending {
  0%, 60%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* DESIGN §5: nothing else animates. A visitor who has asked for less motion gets a
   static label — the text carries the meaning, the dots never do. */
@media (prefers-reduced-motion: reduce) {
  .chat__pending-dot {
    animation: none;
    opacity: 0.6;
  }
}

/* A disabled control must still look like a control (§IV: a vanished button reads as a
   broken page). It dims, says `aria-busy`, and cannot be pressed twice. */
.chat__send:disabled {
  opacity: 0.55;
  cursor: progress;
}

.chat__bubble strong {
  color: var(--brand-forestDeep);
  font-weight: 600;
}

.chat__bubble--refusal strong {
  color: var(--brand-warmDark);
}

.cite-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
}

/* A citation chip is monospace because it is an address, not a word (DESIGN §7.9a). On the
   light card the accent ink is `--brand-ochreInk` — the ochre that was chosen for light
   grounds; `ochreLight` is a *tan*, and tan on cream is text that has been erased. */
.cite {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-xs);
  background-color: var(--brand-creamWarm);
  color: var(--brand-ochreInk);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;
  font-size: var(--text-nano);
}

.chat__followup {
  padding-top: 0.25rem;
}

.chat__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-ochreDark);
  font-size: var(--text-micro);
  font-weight: 600;
  text-decoration: underline;
}

.chat__link:hover {
  color: var(--brand-forestDark);
}

@media (min-width: 1024px) {
  .chat-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   The real surface at /ask/ (sub-plan D).

   The showcase above illustrates two states; this is the working window. It keeps
   the same ground, bubble and citation vocabulary so a visitor who saw the home
   page recognises the product, and adds only what a live exchange needs: a scrolling
   thread, a form, and a column for the clauses the answer came from (§7.9c).

   Mobile-first: the base rules are the phone, and the two-column desktop layout is
   the enhancement. The thread scrolls independently so the last answer is reachable
   when the keyboard is open; the form stays in normal flow below it.
   ========================================================================== */

/* The band above the window. `/ask/` is the one page whose head band height is a
   functional constraint rather than a rhythm: the window *is* the page, and a visitor
   who has to scroll to find the question box has been told the wrong thing about what
   the page is for. The head is **one line** — an eyebrow and a lede were two of the
   three lines, and the third said what the window says. Measured, not assumed:
   `tests/e2e/test_chat_composer.py::test_the_composer_is_above_the_fold`.

   Only the air differs now: since 2026-11-11 the base `.page-head__title` is this
   scale too (DESIGN §4), so this page is the reference the others were brought to
   rather than the exception. */
.page-head--ask {
  padding-block: 1.25rem 1.25rem;
}

.section--ask {
  padding-block: 1.5rem 4rem;
}

.chat-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.chat--page {
  /* Sized so bar + thread + composer clear a 768 px viewport. An empty window that
     pushes its own form below the fold is the defect this number removes. */
  min-height: 28rem;
}

.chat__body--thread {
  max-height: 26rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-margin-bottom: 30vh;
}

/* The empty thread holds one line and a lot of room. Centring that line stops the
   blank panel reading as a render that failed; the note disappears with the first
   question, so nothing is displaced by it later. */
.chat__empty {
  margin: auto 0;
  color: var(--brand-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-body);
}

/* A live answer is longer than a showcase bubble. The base `.chat__bubble` caps at
   90%; a citation block needs the room and must not become a horizontal scroller. */
.chat__bubble--answer,
.chat__bubble--refusal {
  overflow-wrap: anywhere;
}

/* The composer is the window's lightest strip — the thing a visitor came to touch. The
   consent row and the button share one line at 640 px and up (the layout the Stitch study
   used): the promise and the act are one decision, so they are read together. */
.chat-form {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--brand-sand);
  background-color: var(--brand-cream);
}

.chat-form__input {
  width: 100%;
  min-height: 5rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-sm);
  background-color: var(--brand-cream);
  color: var(--brand-charcoal);
  font-family: inherit;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  resize: vertical;
  scroll-margin-bottom: 30vh;
}

.chat-form__input::placeholder {
  color: rgb(var(--brand-muted-rgb) / 0.75);
}

.chat-form__input:focus-visible {
  outline: 2px solid var(--brand-ochre);
  outline-offset: 2px;
}

.chat__send {
  justify-self: start;
  min-height: 44px;
}

/* Enter sends, Shift+Enter inserts a newline; say so, because a textarea's default
   is the opposite and a visitor cannot discover the shortcut by looking at it. */
.chat-form__hint {
  margin: 0;
  color: var(--brand-muted);
  font-size: var(--text-xs);
}

/* At 640 px the consent row and the button share a line. The button sits at the end of the
   row, where the eye lands after reading the promise — the same arrangement the Stitch study
   used, and it removes a whole row of height above the fold on a laptop. */
@media (min-width: 640px) {
  .chat-form {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
    align-items: end;
  }

  .chat-form__input {
    grid-column: 1 / -1;
  }

  .chat-form__consent {
    grid-column: 1;
    margin-block: 0;
  }

  .chat__send {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .chat-form__hint {
    grid-column: 1 / -1;
  }
}

/* HTMX's request indicator: dim the button, never hide it. A control that vanishes
   mid-request reads as a broken page on a slow connection. */
.htmx-request.chat__send,
.chat__send.htmx-request {
  opacity: 0.6;
}

/* --- The clause column ---------------------------------------------------- */
/* A citation is the deliverable, so it has a column of its own beside the window instead of a
   disclosure inside the text it proves (DESIGN §7.9c, 2026-11-06). The column sits on the band,
   so its heading is band ink; the cards are the band's paper, and they are the *same figure* the
   answer page uses (`.answer__clause` / `.answer__quote`) — sand hairline, 3 px solid ochre rule,
   serif italic quotation. A reader who follows a question to its own URL meets the passage in
   the same clothes (rule 12). */

.ask-cites {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.cites__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgb(var(--brand-cream-rgb) / 0.22);
}

.cites__title {
  margin: 0;
  color: var(--brand-ochreLight);
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cites__count {
  color: rgb(var(--brand-cream-rgb) / 0.72);
  font-size: var(--text-micro);
}

.cite-card {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--brand-sand);
  border-left: 3px solid var(--brand-ochre);
  border-radius: var(--radius-sm);
  background-color: var(--brand-cream);
}

.cite-card__ref {
  margin: 0;
  color: var(--brand-ochreInk);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;
  font-size: var(--text-micro);
  font-weight: 600;
}

/* The quotation itself: the frame is the card, so the text carries no second border. Serif
   italic = it is quoted; the solid ochre rule on the card = the document's own words
   (DESIGN §7.9a). */
.cite-quote {
  margin: 0.5rem 0 0;
  color: var(--brand-charcoal);
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-style: italic;
  line-height: 1.6;
}

/* D79 option E: the row's printed label, rendered from the reviewed table at cite time.
   Context, not quotation — dashed rule and muted colour so it cannot be mistaken for a line
   the paper prints beside the quoted cells. */
.cite-context {
  margin: 0.5rem 0 0;
  padding-left: 0.6rem;
  border-left: 2px dashed var(--brand-sand);
  color: var(--brand-muted);
  font-size: var(--text-nano);
  letter-spacing: 0.02em;
}

.cite-source {
  margin: 0.5rem 0 0;
  color: var(--brand-muted);
  font-size: var(--text-nano);
  line-height: 1.5;
}

.cite__read {
  color: var(--brand-ochreInk);
  font-weight: 600;
  text-decoration: none;
}

.cite__read:hover,
.cite__read:focus-visible {
  color: var(--brand-ochreDark);
  text-decoration: underline;
}

/* D79 option E's legend, once per answer. On the band, not on a card, so it is band ink: the
   distinction it names is the whole risk of option E, and a legend nobody can read is not a
   legend. */
.cite-legend {
  margin: 0;
  color: rgb(var(--brand-cream-rgb) / 0.78);
  font-size: var(--text-nano);
  line-height: 1.55;
}

/* The empty column is a *card*, dashed like the board's empty state: on a reload a visitor
   sees a named column waiting for an answer, not a sentence floating on the band. */
.cites__empty {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px dashed rgb(var(--brand-cream-rgb) / 0.3);
  border-radius: var(--radius-sm);
  color: rgb(var(--brand-cream-rgb) / 0.78);
  font-size: var(--text-xs);
  line-height: var(--leading-body);
}

/* --- How this works, below the window ------------------------------------- */
/* Moved out of the column beside the window (DESIGN §7.9c): the column belongs to the answer
   now, so the explanation is a band of its own, readable before asking as well as after. Page
   ground, two cards — the three promises and the way out to a person — which also restores the
   alternation the board band needs below it. */

.how {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.how__main,
.how__aside {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-md);
  background-color: var(--brand-creamWarm);
}

.how__title {
  margin: 0 0 0.9rem;
  color: var(--brand-forestDark);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
}

.how__list {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--brand-charcoal);
  font-size: var(--text-xs);
  line-height: var(--leading-body);
}

.how__list strong {
  color: var(--brand-forestDeep);
  font-weight: 600;
}

.how__note {
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--brand-sand);
  color: var(--brand-muted);
  font-size: var(--text-micro);
  line-height: var(--leading-body);
}

.how__aside-title {
  margin: 0 0 0.5rem;
  color: var(--brand-forestDark);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 400;
}

.how__aside p {
  margin: 0 0 1.1rem;
  color: var(--brand-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-body);
}

@media (min-width: 1024px) {
  .how {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  /* Equal-height cards, with the way out pinned to the bottom of the narrow one: two cards
     of different heights read as an unfinished grid, and the study's pair stretched. */
  .how__aside {
    display: flex;
    flex-direction: column;
  }

  .how__aside p {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .chat-page {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .chat__body--thread {
    max-height: 34rem;
  }
}

/* The home band's link into the real surface. The generic `.link-more` is tuned for
   a cream ground; on the one dark band it needs the light accent. */
.section__more--dark .link-more--dark {
  color: var(--brand-ochreLight);
}

.section__more--dark .link-more--dark:hover {
  color: #fff;
}

/* `scrollIntoView` after a swap must clear the sticky header, or the first line of
   the answer lands underneath it. */
.chat__body--thread {
  scroll-margin-top: 5.5rem;
}

/* --- The consent control (D64) -------------------------------------------- */
/* Unticked is the honest default. It sits under the textarea and above the button, because a
   checkbox after the button reads as an afterthought and its help text is the promise the
   card's *awaiting review* state has to keep. */

.chat-form__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.6rem;
  align-items: start;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem;
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-sm);
  background-color: var(--brand-creamWarm);
}

.chat-form__checkbox {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--brand-ochre);
}

.chat-form__consent-label {
  color: var(--brand-forestDark);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.chat-form__consent-note {
  grid-column: 2;
  margin: 0;
  color: var(--brand-muted);
  font-size: var(--text-xs);
  line-height: 1.45;
}

/* --- The board (D62) ------------------------------------------------------ */
/* **Every block here is `ask-`-prefixed on purpose.** A class name is global across all four
   stylesheets, and this board was built as `.board` — which `components.css` already owned for
   `/building/`'s four-column roadmap grid. It rendered without a symptom only because no
   question had been published yet; the first card would have been 130 px wide. Its filter pills
   were `.chip`, which also restyled the placeholder chips on `/contact/`. Renamed 2026-11-06;
   `test_no_block_class_is_defined_in_two_stylesheets` is the guard (DESIGN §12.3).

   A light band under the dark ask section. Cards are the library: the unit of value is a
   grounded passage, so a card's job is to get a reader to its page in one tap. A Waiting card
   is warm-tinted, never red — the same rule as a refusal bubble, because it is the same claim.
   The waiting tint uses the left rule rather than a different ground: a band carries one of the
   four grounds and a card is not a band (DESIGN §3). */

.section--board {
  background-color: var(--brand-creamWarm);
}

.ask-board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.ask-board__title {
  margin: 0;
  color: var(--brand-forestDark);
  font-size: var(--text-2xl);
}

.ask-board__count {
  margin: 0;
  color: var(--brand-muted);
  font-size: var(--text-xs);
}

.ask-board__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ask-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* 44 px — DESIGN rule 5 */
  padding: 0 0.9rem;
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-pill);
  background-color: var(--brand-cream);
  color: var(--brand-charcoal);
  font-size: var(--text-xs);
  text-decoration: none;
  transition: colors 150ms;
}

.ask-chip:hover {
  border-color: var(--brand-ochre);
  color: var(--brand-ochreInk);
}

.ask-chip--active {
  border-color: var(--brand-forest);
  background-color: var(--brand-forest);
  color: var(--brand-cream);
}

.ask-board__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .ask-board__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--brand-sand);
  border-left: 3px solid var(--brand-ochre);
  border-radius: var(--radius-sm);
  background-color: var(--brand-cream);
}

.card--waiting {
  border-left-color: var(--brand-warmDark);
  background-color: var(--brand-ochreLight);
}

.card__question {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.3;
}

.card__link {
  color: var(--brand-forestDark);
  text-decoration: none;
}

.card__link:hover,
.card__link:focus-visible {
  color: var(--brand-ochreInk);
  text-decoration: underline;
}

.card__summary {
  margin: 0 0 0.6rem;
  color: var(--brand-charcoal);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  margin: 0;
  color: var(--brand-muted);
  font-size: var(--text-micro);
}

.card__topic {
  padding: 0 0.45rem;
  border-radius: var(--radius-pill);
  background-color: var(--brand-sageLight);
  color: var(--brand-forestDark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ask-board__empty {
  padding: 1rem;
  border: 1px dashed var(--brand-sand);
  border-radius: var(--radius-sm);
  color: var(--brand-muted);
  font-size: var(--text-sm);
}

.ask-board__note {
  margin: 1.5rem 0 0;
  color: var(--brand-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}

/* --- The answer page (D62/C) ---------------------------------------------- */
/* One question, one URL. The page is a *reading* surface, so it borrows the reader's
   measure (a prose column) rather than the board's grid. The clause block is the
   deliverable, which is why it is a quoted figure with its own source line and not a
   chip that expands. */

.section--answer {
  background-color: var(--brand-cream);
}

.answer {
  max-width: var(--container-prose);
}

.answer__question {
  margin: 0.25rem 0 0.5rem;
  color: var(--brand-forestDark);
  font-size: var(--text-3xl);
  line-height: var(--leading-title);
}

.answer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.75rem;
  color: var(--brand-muted);
  font-size: var(--text-xs);
}

.answer__text {
  margin: 0 0 1.75rem;
  color: var(--brand-charcoal);
  font-size: var(--text-lg);
  line-height: var(--leading-body);
}

.answer__h {
  margin: 2rem 0 0.6rem;
  color: var(--brand-forestDark);
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.answer__clause {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--brand-sand);
  border-left: 3px solid var(--brand-ochre);
  border-radius: var(--radius-sm);
  background-color: var(--brand-creamWarm);
}

.answer__quote {
  margin: 0 0 0.6rem;
  color: var(--brand-charcoal);
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* D79 option E: the row's printed label, rendered from the reviewed table at cite time —
   context, not quotation, so it is set in the metadata face and marked with a dashed rule. */
.answer__context {
  margin: 0 0 0.5rem;
  padding-left: 0.6rem;
  border-left: 2px dashed var(--brand-sand);
  color: var(--brand-muted);
  font-size: var(--text-micro);
  letter-spacing: 0.02em;
}

/* The legend the transcript carries, in the answer page's own ink. Same words, same once-per-
   answer rule (`_citation_legend.html`): a reader can arrive on either surface first. */
.answer__legend {
  margin: 0 0 1rem;
  color: var(--brand-muted);
  font-size: var(--text-xs);
  line-height: 1.55;
}

.answer__source {
  color: var(--brand-muted);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;
  font-size: var(--text-micro);
}

.answer__read {
  color: var(--brand-ochreInk);
  text-decoration: none;
}

.answer__read:hover {
  color: var(--brand-ochreDark);
  text-decoration: underline;
}

.answer__covers {
  margin: 0 0 1.75rem;
  padding-left: 1.1rem;
  color: var(--brand-charcoal);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.answer__covers li {
  margin-bottom: 0.35rem;
}

.answer__next {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.answer__next li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--brand-sand);
}

.answer__next a {
  color: var(--brand-forestDark);
  font-size: var(--text-sm);
  text-decoration: none;
}

.answer__next a:hover {
  color: var(--brand-ochreInk);
  text-decoration: underline;
}

.answer__next-note {
  color: var(--brand-muted);
  font-size: var(--text-xs);
}

.answer__cite {
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-sm);
  background-color: var(--brand-creamWarm);
  color: var(--brand-charcoal);
  font-size: var(--text-sm);
  line-height: 1.55;
  white-space: pre-line;
}

.answer__gap {
  margin: 0 0 2rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--brand-sand);
  border-left: 3px solid var(--brand-warmDark);
  border-radius: var(--radius-sm);
  background-color: var(--brand-ochreLight);
}

.answer__gap-lead {
  margin: 0 0 0.5rem;
  color: var(--brand-forestDark);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
}

.answer__gap p {
  color: var(--brand-charcoal);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
}

.answer__proceed {
  margin: 2rem 0 0.5rem;
  color: var(--brand-charcoal);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
}

.answer__proceed a {
  color: var(--brand-forestDark);
  font-weight: 600;
}

.answer__proceed a:hover {
  color: var(--brand-ochreInk);
}

.answer__provenance {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--brand-sand);
  color: var(--brand-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-body);
}
