/* Long text in the taste design: blog posts and legal pages. Owned by the blog
   migration; legal pages link it as is (keep these class names stable).

   <main id="top"><article class="article"><div class="wrap">
     <header class="article__head"> meta, h1, lead </header>
     <div class="article__body"> h2, h3, p, ul, ol, table, blockquote … </div>
   </div></article></main>

   Guides add their composed blocks (.article__block and its parts, below). */
main > .article { padding: calc(var(--nav) + var(--s-9)) 0 var(--s-9); }
.article .wrap { display: grid; justify-items: start; }
.article__head { display: grid; gap: var(--s-4); max-width: 62ch; margin-bottom: var(--s-8); }
.article__meta { font: 500 var(--t-small)/1.4 var(--font-mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin: 0; }
.article__head h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.06; margin: 0; }
.article__lead { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); margin: 0; }
.article__body { max-width: 62ch; font: 400 18px/1.7 var(--font-text); color: var(--ink); width: 100%; }
.article__body > * + * { margin-top: var(--s-5); }
.article__body h2 { font-size: var(--t-h3); line-height: 1.2; margin-top: var(--s-8); }
.article__body h3 { font-size: var(--t-card); line-height: 1.3; margin-top: var(--s-7); }
.article__body ul, .article__body ol { padding-left: 1.25em; display: grid; gap: var(--s-2); }
.article__body ul { list-style: disc; } .article__body ol { list-style: decimal; }
.article__body a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.article__body strong { font-weight: 500; }
.article__body code, .article__body .mono { font-family: var(--font-mono); font-size: .92em; }
.article__body blockquote { border-left: 2px solid var(--action); padding-left: var(--s-5); color: var(--muted); }
.article__body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article__body th, .article__body td { text-align: left; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.article__body th { font: 500 var(--t-small)/1.3 var(--font-mono); color: var(--muted); }
@media (max-width: 639px) { .article__body { font-size: 17px; } .article__body table { display: block; overflow-x: auto; } }

/* ---------------------------------------------------------------- guide head extras */
.article__crumbs { margin: 0 0 var(--s-2); }
.article__crumbs .link--back::after { content: none; }
.article__crumbs .link--back::before { content: "\2190"; display: inline-block; margin-right: var(--s-2); transition: transform var(--dur, 200ms) var(--ease, ease); }
.article__crumbs .link--back:hover::before { transform: translateX(-3px); }
.article__cat { color: var(--action); }
.article__lead a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }

/* figures: the head's three (heroStats) and a stats block; values in mono */
.article__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin: 0; }
.article__stats > div { display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.article__stats dd { order: 0; margin: 0; font: 500 var(--t-stat)/1.05 var(--font-mono); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.article__stats dt { order: 1; font-size: var(--t-body); line-height: 1.45; color: var(--ink); }
.article__note { order: 2; font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--muted); }
.article__stats--head { margin-top: var(--s-4); }
@media (max-width: 639px) { .article__stats { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); } }

/* ---------------------------------------------------------------- the guide's blocks */
.article__body > .article__block + .article__block { margin-top: var(--s-8); }
.article__block { display: grid; gap: var(--s-4); }
.article__block > * { margin: 0; }
.article__block > h2 { margin-top: 0; }
.article__block h3 { margin: 0; }
.article__intro { color: var(--ink); }

/* prose bullets: a ruled column, not a second paragraph */
.article__body .article__bullets { list-style: none; padding-left: var(--s-5); border-left: 2px solid var(--line-strong, var(--line)); gap: var(--s-3); }

/* steps: the number in mono, the step to its right, a rule above each */
.article__body .article__steps { list-style: none; padding: 0; gap: 0; }
.article__steps > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--line); }
.article__step-n { font: 500 20px/1.4 var(--font-mono); color: var(--action); font-variant-numeric: tabular-nums; }
.article__steps h3 { font-size: var(--t-card); line-height: 1.35; }
.article__steps p { margin: var(--s-2) 0 0; }

/* compare: two columns, the first marked +, the second − */
.article__compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.article__compare > div { display: grid; align-content: start; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card, var(--bg)); }
.article__compare h3 { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-card); line-height: 1.3; }
.article__sign { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm); font: 500 16px/1 var(--font-mono); background: var(--surface); color: var(--muted); }
.article__compare .is-for .article__sign { background: var(--action); color: var(--action-ink, #fff); }
.article__body .article__compare ul { list-style: none; padding: 0; gap: var(--s-3); font-size: 16px; line-height: 1.55; }
@media (max-width: 639px) { .article__compare { grid-template-columns: minmax(0, 1fr); } }

/* checklist: a check mark per line, ruled */
.article__body .article__checklist { list-style: none; padding: 0; gap: 0; border-top: 1px solid var(--line); }
.article__checklist > li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.article__check { width: 18px; height: 18px; margin-top: .35em; fill: none; stroke: var(--action); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* a two-column table: the first column mono so figures line up; wide tables scroll inside */
.article__table { overflow-x: auto; }
.article__table table { min-width: 420px; }
.article__table td { font-size: 16px; line-height: 1.5; }
.article__table td.mono { font-family: var(--font-mono); font-size: 15px; color: var(--muted); white-space: nowrap; }
.article__body .article__table { display: block; }

/* a schematic of the reader's plant (components/taste/blog/Diagram.tsx) */
.article__figure { margin: 0; display: grid; gap: var(--s-3); }
.article__diagram { overflow-x: auto; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); }
.article__diagram svg { display: block; width: 100%; min-width: 520px; height: auto; }
.article__figure figcaption { font-size: 16px; line-height: 1.5; color: var(--muted); }
.adg-box { fill: var(--bg); stroke: var(--line-strong, var(--muted)); }
.adg-line { stroke: var(--line-strong, var(--muted)); }
.adg-label { font: 400 9px var(--font-mono); fill: var(--muted); }
.adg-strong { font: 500 10px var(--font-mono); fill: var(--ink); }

/* a callout and the takeaway: a ruled aside on the surface ground */
.article__callout, .article__takeaway { padding: var(--s-5) var(--s-6); border-left: 2px solid var(--action); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--surface); gap: var(--s-2); }
.article__callout h3 { font-size: var(--t-card); line-height: 1.35; }
.article__callout p { font-size: 17px; line-height: 1.6; }
.article__label { font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--action); }
.article__takeaway p { font-weight: 500; }

/* icon grid: two-up, each with its icon */
.article__body .article__icons { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.article__icons > li { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card, var(--bg)); }
.article__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--action); color: var(--action-ink, #fff); }
.article__icons h3 { font-size: var(--t-card); line-height: 1.3; }
.article__icons p { margin: 0; font-size: 16px; line-height: 1.55; }
@media (max-width: 639px) { .article__body .article__icons { grid-template-columns: minmax(0, 1fr); } }

/* the guide's questions, open in full */
.article__faq dl { margin: 0; border-top: 1px solid var(--line); }
.article__faq dl > div { display: grid; gap: var(--s-2); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.article__faq dt { font: 500 var(--t-card)/1.35 var(--font-text); }
.article__faq dd { margin: 0; font-size: 17px; line-height: 1.6; }

.article__body > .article__action { margin-top: var(--s-7); justify-items: start; }
.article__body a.btn { color: var(--action-ink, #fff); text-decoration: none; }
@media (max-width: 639px) { .article__action .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .article__crumbs .link--back::before { transition: none; } }
