/* Guide and document pages. Tokens come from base.css. */
.guide > .breadcrumb, .guide > .related-pages { width: calc(100% - 48px); max-width: 1072px; margin-left: auto; margin-right: auto; }
.guide > .breadcrumb { margin-top: 24px; }
.guide-hero { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; padding-top: 28px; }
.guide-hero h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; margin: 14px 0 16px; }
.guide-lede { color: var(--muted); font-size: 16px; max-width: 560px; }
.guide-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.prep { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.prep .eyebrow { margin-bottom: 8px; }
.prep-item { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.prep-item:first-of-type { border-top: 0; }
.prep-item > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font: 700 12px var(--mono); flex: none; }
.prep-item strong { font-size: 14px; }
.prep-item p { font-size: 13px; color: var(--muted); }
.prep-note { margin-top: 10px; font-size: 12.5px; color: var(--faint); }

.route { margin: 32px 0 0; padding: 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.route-lane { display: flex; align-items: stretch; gap: 0; overflow-x: auto; }
.route-node { flex: 1 1 0; min-width: 104px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 12px; background: var(--surface-2); text-decoration: none; text-align: center; transition: background .15s; }
a.route-node:hover { background: var(--surface-3); }
.route-node svg { width: 22px; height: 22px; color: var(--muted); margin-bottom: 4px; }
.route-node strong { font-size: 14px; }
.route-node small { font-size: 12px; color: var(--faint); }
.route-node.is-accent { background: var(--accent-soft); }
.route-node.is-accent svg { color: var(--accent); }
.route-node.is-optional { border: 1px dashed var(--border-strong); background: transparent; }
.route-arrow { flex: 0 0 28px; align-self: center; height: 2px; background: var(--border-strong); position: relative; }
.route-arrow::after { content: ""; position: absolute; right: 0; top: -3px; border: 4px solid transparent; border-left: 6px solid var(--border-strong); border-right: 0; }
.route figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.route-tag { font: 700 11px/1 var(--mono); padding: 4px 7px; border-radius: 5px; background: var(--surface-3); color: var(--muted); }

.guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; margin-top: 40px; }
.guide-side { position: sticky; top: 84px; align-self: start; display: grid; gap: 16px; }
.guide-nav ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.guide-nav a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: 14px; }
.guide-nav a span { font: 600 12px/1.6 var(--mono); color: var(--faint); }
.guide-nav a:hover { background: var(--surface-2); color: var(--text); }
.guide-nav a[aria-current="step"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.side-card { padding: 16px; border-radius: 14px; background: var(--surface-2); font-size: 13px; }
.side-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.side-card p { color: var(--muted); }
.side-card a { display: inline-block; margin-top: 8px; color: var(--accent); text-decoration: none; font-weight: 600; }

.guide-article { min-width: 0; max-width: 760px; }
.guide-step { padding: 8px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.step-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.step-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font: 600 13px var(--mono); flex: none; }
.step-head p { font-size: 13px; color: var(--faint); }
.step-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.step-body p, .step-body li { color: var(--muted); }
.step-body p { margin: 12px 0; }
.step-body a { color: var(--accent); text-underline-offset: 3px; }
.step-body code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.step-body .code-block code { background: none; border: 0; padding: 0; }
.step-body img { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.verify-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.verify-grid div { padding: 18px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.verify-grid span { font: 700 12px var(--mono); color: var(--accent); }
.verify-grid strong { display: block; margin: 4px 0; }
.verify-grid p { margin: 0; font-size: 13px; }
.guide-finish { position: relative; overflow: hidden; padding: 28px 32px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.guide-finish::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.guide-finish h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.guide-finish p { color: var(--muted); margin-top: 6px; }

.document .breadcrumb { margin-bottom: 8px; }

@media (max-width: 900px) {
  .guide-hero, .guide-layout { grid-template-columns: 1fr; gap: 24px; }
  .guide-side { position: static; }
  .guide-nav ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .verify-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .guide > .breadcrumb, .guide > .related-pages { width: calc(100% - 32px); }
  .guide-hero { padding-top: 20px; }
  .route { padding: 14px; }
  .route-node { min-width: 88px; }
  .route-arrow { flex-basis: 14px; }
}
