/* Guides (/guides/, /guides/<slug>/). Loaded after main.css and help.css by tools/build-guides.mjs.
   Reuses their parts (hc-crumbs, hc-h1, hc-meta, hc-toc, hc-table, hc-band, hc-cards, hc-pn, doc-body) and the tokens
   of main.css :root; this file only sets the article column and fits those parts into it. Class prefix gd-. */

.gd { padding: clamp(28px, 4vw, 56px) 0 var(--sec); }
.gd-in { max-width: calc(760px + var(--gutter) * 2); }
.gd-head { display: grid; gap: 10px; margin-bottom: clamp(22px, 3vw, 32px); }
.gd-head .hc-meta { margin-top: 4px; }
.page-guide .hc-meta { gap: 8px; }
.hc-meta time + span::before, .hc-card-f time + span::before { content: "·"; margin-right: 8px; color: var(--ink-3); }

.gd-prose p, .gd-prose li { font-size: 1.04rem; line-height: 1.7; }
.gd-prose h2 { font-size: clamp(1.4rem, 2.3vw, 1.7rem); line-height: 1.2; letter-spacing: -0.025em; margin: clamp(38px, 5vw, 52px) 0 12px; text-wrap: balance; scroll-margin-top: calc(var(--nav-h) + 20px); }
.gd-prose h3 { scroll-margin-top: calc(var(--nav-h) + 20px); }
.gd-prose strong { color: var(--ink); font-weight: 650; }
.gd-intro p:first-child { font-size: clamp(1.1rem, 1.5vw, 1.22rem); line-height: 1.55; color: var(--ink); }
.gd-toc { margin: 26px 0 0; }
.gd-toc ol { grid-template-columns: 1fr; }

/* tables scroll inside themselves on a narrow screen */
.gd-table { margin: 16px 0 20px; }
.gd-table .hc-table { margin: 0; font-size: 0.92rem; }
.gd-table .hc-table th, .gd-table .hc-table td { padding: 11px 14px; line-height: 1.5; }
.gd-table .hc-table .gd-r { text-align: right; white-space: nowrap; }
.gd-table tbody th { color: var(--ink); }
.gd-table .gd-total th, .gd-table .gd-total td { background: var(--bar); }
.gd-table:focus-visible { outline: 2px solid var(--word-profit); outline-offset: 2px; }

.gd-cta { margin: clamp(32px, 4vw, 44px) 0 0; }
.gd-cta > div { flex: 1 1 280px; }
.gd-cta span { line-height: 1.45; }
.gd-cta-act { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-cta .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.38); }
.gd-cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px #fff; }

.gd-tail { margin-top: clamp(28px, 4vw, 40px); }
.gd-prose .gd-note { font-size: 0.86rem; line-height: 1.55; color: var(--ink-3); }
.gd-tail h2 { font-size: 1.1rem; margin: 26px 0 8px; }
.gd-prose .gd-src { padding-left: 1.1em; gap: 4px; }
.gd-prose .gd-src li { font-size: 0.9rem; line-height: 1.5; }

/* the list page */
.gd-list { padding: clamp(8px, 2vw, 24px) 0 var(--sec); }
.gd-cards { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; }
.gd-cards .hc-card-t { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.gd-cards .hc-card-p { font-size: 0.98rem; max-width: 64ch; }

/* lists keep their numbers and bullets (the site reset removes them); a two-column table needs no side scroll */
.gd-prose ol:not(.gd-src) { list-style: decimal; padding-left: 1.5em; }
.gd-prose ul:not(.gd-src) { list-style: disc; padding-left: 1.3em; }
.gd-prose .gd-src { list-style: disc; }
.gd-prose li::marker { color: var(--ink-3); }
.gd-table .hc-table.gd-c2 { min-width: 0; }
