/* Articles (/guides): the landing's tokens, a reading column, a table of contents beside it on wide screens. */
.guide { padding: 112px 0 96px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { color: var(--text); } }
.guide-head { max-width: 760px; margin-top: 24px; }
.guide-head h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.guide-lead { margin-top: 20px; font-size: 19px; line-height: 1.6; color: var(--text-2); }
.guide-lead p + p { margin-top: 12px; }
.guide-meta { margin-top: 16px; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.guide-grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; margin-top: 48px; align-items: start; }
.toc { position: sticky; top: 96px; font-size: 14px; line-height: 1.45; max-height: calc(100vh - 128px); overflow: auto; padding-right: 8px; }
.toc b { display: block; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toc a { color: var(--text-2); text-decoration: none; }
@media (hover: hover) { .toc a:hover { color: var(--text); } }

.prose { font-size: 18px; line-height: 1.7; color: var(--text); min-width: 0; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; font-size: 30px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 600; scroll-margin-top: 96px; }
.prose h3 { margin-top: 36px; font-size: 21px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 600; scroll-margin-top: 96px; }
.prose h4 { margin-top: 28px; font-size: 18px; font-weight: 600; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 12px; }
.prose p { color: var(--text); }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: 8px; }
.prose li::marker { color: var(--text-3); }
.prose a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
@media (hover: hover) { .prose a:hover { color: var(--accent-ink); } }
.prose b { font-weight: 600; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.prose pre.code { margin-left: 0; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; font-size: 14.5px; line-height: 1.6; }
.prose pre.code code { padding: 0; border: 0; background: none; font-size: inherit; white-space: pre; }
.prose blockquote { margin-left: 0; padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.prose blockquote p + p { margin-top: 10px; }
.prose blockquote p:first-child b:first-child { color: var(--accent-ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose .table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--text-2); font-size: 14px; background: var(--surface); }

.guide-cta { display: flex; align-items: center; gap: 24px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); margin: 40px 0; }
.guide-cta b { display: block; font-size: 19px; line-height: 1.35; font-weight: 600; }
.guide-cta p { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.guide-cta .btn { flex: none; }
.guide-cta.end { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.related { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line); }
.related h2, .g-group h2 { font-size: 26px; letter-spacing: -0.02em; font-weight: 600; }
.g-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.g-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color 160ms ease, background-color 160ms ease; }
@media (hover: hover) { .g-card:hover { border-color: var(--line-2); background: var(--surface-2); } }
.g-card b { font-size: 17px; line-height: 1.35; font-weight: 600; }
.g-card span { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.g-card small { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--text-3); }
.g-group { margin-top: 56px; }
.guides-index .guide-cta { margin-top: 64px; }

@media (max-width: 1080px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .prose { max-width: 720px; }
  .g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .guide { padding: 88px 0 64px; }
  .guide-lead { font-size: 17px; }
  .guide-grid { margin-top: 32px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 25px; margin-top: 44px; }
  .prose h3 { font-size: 19px; }
  .guide-cta { flex-direction: column; align-items: stretch; padding: 20px; }
  .g-cards { grid-template-columns: minmax(0, 1fr); }
}

/* Article images: the cover under the title, a checklist card in the text, thumbnails in lists */
.g-cover { max-width: 760px; margin: 32px 0 0; }
.g-cover img, .g-fig img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); }
.g-fig { margin: 24px 0 8px; }
.g-card.has-thumb { padding-top: 12px; }
.g-card img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 252; object-fit: cover; border-radius: 12px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--surface-2); }
