/* ═══════════════════════════════════════════════════════════════════════════
   site-guides.css — /guides/ only (agent E). Loaded after site.css, which
   already carries .prose, .toc, .meta and .sources; this adds the few things a
   long article needs that a landing page does not: a worked-example box, a
   disclaimer line, and spacing for the blocks nvpage.py drops into a guide.
   Colour, size and curve come from /v2/css/tokens.css — no literal colours.
   Generated pages come from tools/seo/gen_e.py — edit the generator, not a page.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Byline, disclaimer */
.g-byline { margin-top: 18px; }
.g-disclaimer { margin-top: 14px; max-width: 72ch; font-size: var(--fs-caption); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.g-disclaimer b { color: var(--text-soft); font-weight: 500; }

/* The article column */
.g-article { margin-top: 8px; }
.g-article > h2:first-child { margin-top: 32px; }
.prose h2 { scroll-margin-top: calc(var(--nav-h) + 16px); }
.prose .tbl { max-width: 100%; }
.prose .tbl table { font-size: 15px; }
.prose .tbl caption { caption-side: top; text-align: left; padding: 10px 14px 0; font-size: var(--fs-caption); color: var(--muted); }
.prose .steps { margin-top: 18px; }
.prose ol.steps, .prose ul.ticks { padding-left: 0; }
.prose .steps li + li, .prose .ticks li + li { margin-top: 0; }

/* A worked example: the sum laid out so it can be checked */
.g-example { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-md);
             background: var(--surface); max-width: 72ch; }
.g-example > * + * { margin-top: 10px; }
.g-example-h { font-size: var(--fs-micro); line-height: var(--lh-micro); text-transform: uppercase; letter-spacing: var(--tr-micro);
               color: var(--muted); font-weight: 500; }
.g-example p { color: var(--text-soft); }
.g-calc { display: grid; gap: 6px; font-size: 15px; }
.g-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.g-row:last-child { border-bottom: none; }
.g-row > span:first-child { color: var(--text-soft); min-width: 0; }
.g-num { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 500; white-space: nowrap; text-align: right; }
.g-row.g-total > span { color: var(--text); font-weight: 500; }

/* Callouts inside the prose */
.g-callout { margin-top: 20px; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--border);
             background: var(--surface-2); max-width: 72ch; }
.g-callout p { color: var(--text-soft); }
.g-callout > * + * { margin-top: 8px; }
.g-warn { border-left: 3px solid var(--warn); }
.g-note { border-left: 3px solid var(--accent); }

/* How Nivasik handles this */
.g-niv { margin-top: clamp(40px, 5vw, 64px); }
.g-niv .ticks { margin-top: 16px; }
.g-niv .limits { max-width: 72ch; }
.g-price { font-size: var(--fs-caption); color: var(--muted); }

/* Related + sources */
.g-related { padding-bottom: 0; }
.sources { margin-top: clamp(32px, 4vw, 48px); }
.sources h2 { font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--text); margin-bottom: 8px; }
.sources ol { padding-left: 20px; margin: 0; }
.sources li { line-height: 1.6; }
.sources a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-control); }
.sources a:hover { color: var(--text); }
.g-reviewed { margin-top: 14px; color: var(--muted); }

/* The TOC on a phone: one column, comfortable targets */
.toc a { color: var(--text-soft); }
.toc a:hover { color: var(--text); }
@media (max-width: 640px) { .toc ol { gap: 8px; } .g-row { flex-wrap: wrap; } }
