/* ---- Guides ----------------------------------------------------------------
   Long-form answers in the same ledger world. These pages are read, not
   operated: the answer comes first, the measure stays near 68ch, and structure
   is headings, hairlines and one tinted note — never cards. */

.article-page { padding-top: 40px; padding-bottom: 88px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* The site's nav underlines its last link as a rule; a breadcrumb is not that nav. */
.crumbs a:last-child { border-bottom: 0; padding-bottom: 0; }
.crumbs a:hover { text-decoration-thickness: 2px; }
.crumbs [aria-current='page'] { color: var(--ink); }

/* The head: the question, then its answer in two or three sentences. The
   site's <header> rule lays out the brand bar; an article head is a block. */
.article-head { display: block; max-width: 820px; padding: 0; }
.article-head h1 { margin: 0 0 24px; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -0.04em; }
.article-answer { max-width: 60ch; margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink); }
.article-meta { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* The body: one reading column, sections ruled off by a hairline. */
.article-body { max-width: 720px; margin-top: 56px; }
.article-body > section + section { margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--line); }
.article-body h2 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.03em; }
.article-body h3 { margin: 28px 0 10px; font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.article-body p,
.article-body li { font-size: 17px; line-height: 1.7; }
.article-body p { max-width: 68ch; }
.article-body p + p { margin-top: 16px; }
.article-body ul,
.article-body ol { max-width: 66ch; margin: 16px 0 0; padding-left: 1.25rem; }
.article-body li + li { margin-top: 8px; }
.article-body :is(ul, ol, .table-scroll, .article-note) + p { margin-top: 16px; }
.article-body li::marker { color: var(--muted); }
.article-body strong { font-weight: 500; }

/* Facts side by side are a ledger: a 2px ink rule opens it, hairlines divide,
   figures are tabular. Wide tables scroll inside their own frame on a phone. */
.table-scroll { max-width: 100%; margin: 24px 0 8px; overflow-x: auto; }
.article-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
/* The caption belongs to the scrolling table but must stay readable at its
   left edge on a phone, so it wraps to the visible width, not the table's. */
.article-table caption { position: sticky; left: 0; caption-side: bottom; max-width: calc(100vw - 40px); padding-top: 10px; text-align: left; font-size: 13px; color: var(--muted); }
.article-table th { padding: 0 16px 10px 0; border-bottom: 2px solid var(--ink); text-align: left; vertical-align: bottom; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.article-table td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-table td:first-child { font-weight: 500; }
.article-table .num { text-align: right; white-space: nowrap; }

/* The one tint: a note that qualifies what is around it. */
.article-note { max-width: 68ch; margin: 24px 0 0; padding: 18px 20px; border: 1px solid var(--line); background: var(--panel, #eaece3); font-size: 15px; line-height: 1.6; }
.article-note p { font-size: 15px; }

/* Questions, as the site's other FAQs: hairline rows, answers in muted body. */
.article-faq { max-width: 720px; margin-top: 56px; }
.article-faq details p { font-size: 16px; line-height: 1.65; }

/* Sources are part of the answer: listed, dated, quiet. */
.article-sources { max-width: 720px; margin-top: 48px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.article-sources h2 { margin: 0 0 12px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.article-sources ol { margin: 0; padding-left: 1.2rem; }
.article-sources li { margin: 6px 0; overflow-wrap: anywhere; }
.article-sources a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* The next step closes the page on a 2px ink rule, like a statement's total. */
.article-next { max-width: 720px; margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--ink); }
.article-next h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.03em; }
.article-next > p { max-width: 56ch; margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 24px 0 0; }

/* Related guides and the guides index share one hairline list. */
.article-related { max-width: 720px; margin-top: 48px; }
.article-related h2 { margin: 0 0 8px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.guide-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: grid; gap: 4px; padding: 18px 0; min-height: 44px; }
/* A whole-row link carries its own hover rule, not the running-text underline. */
main .guide-list li > a:not(.button):not(.text-link):not(.tour-action) { text-decoration: none; }
.guide-list a:hover .guide-list-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.guide-list-title { font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.guide-list-summary { max-width: 68ch; font-size: 15px; line-height: 1.6; color: var(--muted); }
.guides-index .guide-list { max-width: 820px; margin-top: 48px; }

@media (max-width: 640px) {
  .article-page { padding-top: 24px; }
  .article-answer { font-size: 17px; }
  .article-body { margin-top: 40px; }
  .article-body p,
  .article-body li { font-size: 16px; }
  .article-body > section + section { margin-top: 40px; padding-top: 28px; }
}
