/* ═══════════════════════════════════════════════════════════════════════
   guides.css — the /guides hub and the fourteen topic guides
   (includes/_guide-page.php). Rides on tokens.css + main.css: the nav,
   hero atmosphere, stats ribbon, cards, buttons and FAQ are the site's own
   classes; only what a long article needs and main.css lacks lives here.
   Every colour is a token, so dark mode needs nothing extra.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Nav: five links + three controls overflow main.css's nav between the
   861px breakpoint (where the burger takes over) and about 1100px, so on
   guide pages the secondary button steps aside and the links tighten. ── */
@media (max-width: 1120px) {
  .gd-page .dim-nav__cta .dim-btn--glass { display: none; }
  .gd-page .dim-nav__link { padding-inline: 11px; }
}

/* ── Hero: copy left, photo right ────────────────────────────────────── */
.gd-hero { padding-bottom: clamp(36px, 6vw, 72px); }
.gd-hero__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.gd-hero__copy { text-align: left; max-width: 640px; margin: 0; }
.gd-hero__copy .dim-hero__eyebrow { justify-content: flex-start; }
.gd-hero__copy .dim-hero__eyebrow a { color: inherit; text-decoration: none; }
.gd-hero__copy .dim-hero__eyebrow a:hover { text-decoration: underline; }
.gd-hero__h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.3rem); }
.gd-lead { margin: 0; max-width: none; text-align: left; }
.gd-lead p { margin: 0 0 0.9em; }
.gd-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.gd-hero__meta { margin: 18px 0 0; font: 600 var(--text-xs)/1.7 var(--font-body); color: var(--ink-muted); }
.gd-hero__photo {
  margin: 0; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-pane);
}
.gd-hero__photo img { display: block; width: 100%; height: auto; }
@media (min-width: 861px) { .gd-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }

/* ── Article + sticky contents ───────────────────────────────────────── */
.gd-layout { display: grid; gap: 36px; }
@media (min-width: 1024px) { .gd-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 56px; } }
.gd-toc { align-self: start; }
@media (min-width: 1024px) { .gd-toc { position: sticky; top: 96px; } }
.gd-toc__lbl {
  font: 700 var(--text-xs)/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 12px;
}
.gd-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.gd-toc a {
  display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent;
  font: 600 var(--text-sm)/1.4 var(--font-body); color: var(--ink-muted); text-decoration: none;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.gd-toc a:hover { color: var(--ink); border-color: var(--brand); }
@media (max-width: 1023px) {
  .gd-toc ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .gd-toc li { max-width: 100%; }   /* a long heading wraps inside its chip instead of running off a phone screen */
  .gd-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; margin: 0; }
}

.gd-article { max-width: 720px; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-body); }
.gd-article > section + section { margin-top: clamp(36px, 5vw, 56px); }
.gd-article h2 {
  font-size: var(--text-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em;
  margin: 0 0 14px; text-wrap: balance;
}
.gd-article h3 { font-size: 1.125rem; font-weight: 600; margin: 1.6em 0 0.5em; }
.gd-article p { margin: 0 0 1.05em; }
.gd-article ul, .gd-article ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.gd-article li { margin: 0 0 0.45em; }
.gd-article strong { color: var(--ink); font-weight: 700; }
.gd-article a { color: var(--brand); }
.gd-article dl { margin: 0 0 1.1em; }
.gd-article dt { font-weight: 700; color: var(--ink); margin-top: 0.9em; }
.gd-article dd { margin: 0.2em 0 0; }
.gd-article .callout {
  margin: 1.4em 0; padding: 16px 20px; border-left: 3px solid var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.gd-article .callout p:last-child { margin-bottom: 0; }
.gd-article .note { font-size: var(--text-sm); color: var(--ink-muted); }
.gd-article .tbl-wrap { overflow-x: auto; margin: 1.2em 0 1.4em; border: 1px solid var(--line); border-radius: var(--r-md); }
.gd-article table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); background: var(--bg-card); }
.gd-article th, .gd-article td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.gd-article thead th {
  font: 700 var(--text-xs)/1.4 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted); background: color-mix(in srgb, var(--bg-raise) 60%, transparent);
}
.gd-article tbody tr:last-child td { border-bottom: 0; }
.gd-article td { font-variant-numeric: tabular-nums; }
.gd-note {
  margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: var(--text-xs); color: var(--ink-muted); line-height: 1.6;
}

/* ── "How the app handles it": numbered cards with a capture each ────── */
.gd-lede { max-width: 720px; }
.gd-lede p { margin: 0 0 0.8em; }
.gd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.gd-step { padding: clamp(20px, 3vw, 32px); }
.gd-step__head { display: flex; align-items: center; gap: 14px; }
.gd-step__n {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); display: grid; place-items: center;
  font: 800 15px/1 var(--font-body);
}
.gd-step h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.gd-step__text { margin-top: 12px; color: var(--ink-body); line-height: 1.7; max-width: 760px; }
.gd-step__text p { margin: 0 0 0.8em; }
.gd-step__text p:last-child { margin: 0; }
.gd-step figure { margin: 18px 0 0; }
.gd-step img {
  display: block; width: 100%; height: auto; border-radius: var(--r-md);
  border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(15, 23, 42, 0.13);
}
.gd-step figcaption { margin-top: 10px; font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.6; }

/* ── Feature grid, CTA card, closing, related ────────────────────────── */
.gd-h2-sm { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.gd-feat__i { font-size: 24px; line-height: 1; }
.gd-features .dim-trade h3 { font-size: 1rem; margin: 6px 0 2px; }
.gd-features .dim-trade p { margin: 0; font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.6; }
.gd-cta { padding: clamp(24px, 4vw, 40px); text-align: center; }
.gd-cta p { color: var(--ink-muted); max-width: 620px; margin: 10px auto 0; line-height: 1.7; }
.gd-cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.gd-closing .gd-article { margin: 0 auto; }
.gd-rel { padding: 0; overflow: hidden; }
.gd-rel img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.gd-rel__body { padding: 16px 18px 20px; }
.gd-rel h3 { font-size: 1rem; margin: 0 0 4px; }
.gd-rel p { margin: 0; font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.55; }
.gd-also { margin: 26px 0 0; color: var(--ink-muted); line-height: 2; }
.gd-also a { color: var(--brand); }

/* ── Hub ─────────────────────────────────────────────────────────────── */
.gd-hub__aside { margin: 26px auto 0; font-size: var(--text-sm); color: var(--ink-muted); text-align: center; }
.gd-hub__aside a { color: var(--brand); }
.gd-group { padding-top: clamp(20px, 3vw, 36px); }
.gd-group .dim-eyebrow { margin-bottom: 4px; }
.gd-group .dim-h2 { margin-top: 8px; margin-bottom: 20px; }
