/* Answer pages — design/reference/03-answer-page-1440.html */

.answer-head { padding-top: clamp(36px, 2rem + 2vw, 64px); padding-bottom: clamp(32px, 1.5rem + 2vw, 56px); }
.answer-head__draft { margin-top: 18px; }
.answer-head__title { margin-top: clamp(20px, 1rem + 1vw, 30px); max-width: 16em; }
.answer-head__meta { margin-top: 20px; }

.answer-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px var(--col-gap); padding-bottom: clamp(48px, 2rem + 2.5vw, 72px); align-items: start; }
@media (min-width: 900px) {
  .answer-intro { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .answer-intro__summary { grid-column: 1 / span 8; }
  .answer-intro__toc { grid-column: 10 / span 3; }
}
.answer-toc { counter-reset: toc; }
.answer-intro__toc > .answer-toc { margin-top: 4px; }
.answer-toc li { font-size: var(--fs-small); line-height: 1.45; }
.answer-toc li + li { border-top: 1px solid var(--rule); }
.answer-toc a { display: block; padding-block: 11px; color: var(--ink); text-decoration: none; text-wrap: balance; }  /* ≥ 44px tap target; no single word alone on a second line */
.answer-toc a:hover { color: var(--accent); text-decoration: underline; }

/* Sections authored in each page body */
.answer-section { padding-bottom: clamp(48px, 2rem + 2.5vw, 72px); }
.answer-section:not(.answer-section--alt) + .answer-section:not(.answer-section--alt) { border-top: 1px solid var(--rule); padding-top: clamp(48px, 2rem + 2.5vw, 72px); }
.answer-section > .wrap > h2, .answer-section__title { margin-bottom: clamp(20px, 1rem + 1vw, 32px); }
.answer-section--alt { background: var(--surface); border-block: 1px solid var(--rule); padding-block: clamp(48px, 2rem + 2.5vw, 72px); margin-bottom: clamp(48px, 2rem + 2.5vw, 72px); }
/* Head beside the body only from 1200px: below that, a 3-column head squeezes the title into 3–4 short lines */
.answer-section--split > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 1rem + 1vw, 32px) var(--col-gap); align-items: start; }
.answer-section--split .split__head > .answer-section__title { margin-bottom: 0; }
@media (min-width: 1200px) {
  .answer-section--split > .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .answer-section--split .split__head { grid-column: 1 / span 3; }
  .answer-section--split .split__body { grid-column: 5 / span 8; }
}
.answer-section .prose { max-width: var(--measure); }
/* Vertical rhythm for blocks stacked inside a section */
.answer-section > .wrap > * + *, .answer-section .split__body > * + * { margin-top: clamp(24px, 1rem + 1vw, 36px); }
.answer-section .split__body.prose > * + * { margin-top: 1.1em; }  /* paragraphs of one text, not separate blocks */
.answer-section > .wrap > h2 + *, .answer-section .split__body > h2 + * { margin-top: 0; }
.answer-section--split > .wrap > .split__body { margin-top: 0; }  /* the grid gap already separates head and body */
.answer-section h3 + .data-table, .answer-section h3 + .table-scroll { margin-top: clamp(16px, 0.75rem + 0.5vw, 22px); }
/* Preview only: a fully gated section followed by another section */
.answer-body > .gate + .answer-section { padding-top: clamp(32px, 1.5rem + 1vw, 48px); }
.answer-section .prose p { font-size: 1.0625rem; }

/* Numbered ruled rows inside a section — one family on every page (<ol class="ruled answer-rows">) */
.answer-rows .row__title { font-size: var(--fs-h4); line-height: 1.25; }
.answer-rows .row__body > * + * { margin-top: 14px; }
.answer-rows .row__body p { color: var(--muted); line-height: 1.8; }
@media (max-width: 899px) { .answer-rows .row__title { margin-bottom: 12px; } }

/* Numbered checklist (documents etc.) */
.checklist > li { border-top: 1px solid var(--rule-on-surface); padding: 16px 0; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 12px; }
.checklist > li:last-child { border-bottom: 1px solid var(--rule-on-surface); }
.checklist .num { padding-top: 4px; }
.checklist__text { color: var(--ink); line-height: 1.6; }
.checklist__text small { display: block; margin-top: 4px; font-size: var(--fs-small); color: var(--muted); }
/* preview only: an inline gate that holds the whole item keeps its note line inside the marker */
.checklist__text > span.gate { display: inline-block; }
.section--plain .checklist > li, .answer-section:not(.answer-section--alt) .checklist > li { border-top-color: var(--rule); }

/* Callout — the one thing almost nobody knows */
.answer-callout { max-width: var(--measure-lead); }
.answer-callout > * + * { margin-top: 16px; }
.answer-callout p { font-size: var(--fs-lead); font-weight: 400; line-height: 1.75; color: var(--muted); }
.answer-callout p + p { font-size: var(--fs-body); font-weight: 400; line-height: 1.8; max-width: var(--measure); }  /* only the first paragraph is the lead */

/* CTA row */
.answer-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px var(--col-gap); padding-block: clamp(24px, 1rem + 2vw, 64px) clamp(48px, 2rem + 2.5vw, 72px); align-items: start; }
@media (min-width: 900px) {
  .answer-cta { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .answer-cta__call { grid-column: 7 / span 6; }
  .answer-cta > :only-child { grid-column: 1 / span 8; }  /* no fee box (no fees are published) */
}
.answer-cta__title { font-size: var(--fs-h3); }
.answer-cta__call p { max-width: var(--measure); }
.btn-line--on-dark { color: var(--paper); border-color: #5B5A4E; }
.btn-line--on-dark:hover { color: var(--paper); border-color: var(--paper); }

.answer-related__title { margin-bottom: 28px; }
.answer-legal { margin-top: clamp(32px, 1.5rem + 1vw, 48px); max-width: 32rem; }
.answer-related .visually-hidden + .answer-legal { margin-top: 0; }  /* no related pages live yet */
.answer-legal p { font-size: var(--fs-fine); line-height: 1.8; color: var(--muted); }
.answer-legal p + p { margin-top: 10px; }
.answer-legal strong { color: var(--ink); font-weight: 500; }

/* Links to other answers inside the text: a whole question reads as a sentence, not as 12px capitals */
.answer-body .link-arrow { font-family: var(--sans); font-size: var(--fs-body); font-weight: 500; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 0.18em; padding-block: 10px; }

/* Notes and boxes inside sections: same measure everywhere; paper fill on the surface band */
.answer-section .note, .answer-section .box { max-width: calc(var(--measure) + 4rem); }
.answer-section--alt .note, .answer-section--alt .box { background: var(--paper); }
