/* The travel guide shares the materials and illustrated world of the encounter home. */
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 116px; background: var(--bg); }
html[data-theme="dark"] { color-scheme: dark; }
body[data-haven-page="docs"] { margin: 0; min-width: 0; color: var(--text); font-size: 14px; line-height: 1.8; background: transparent; isolation: isolate; -webkit-tap-highlight-color: transparent; }
body[data-haven-page="docs"] *, body[data-haven-page="docs"] *::before, body[data-haven-page="docs"] *::after { box-sizing: border-box; }
body[data-haven-page="docs"] button, body[data-haven-page="docs"] a { touch-action: manipulation; }
body[data-haven-page="docs"] button { cursor: pointer; font: inherit; }
body[data-haven-page="docs"] a { color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 1px; }
body[data-haven-page="docs"] a:hover { text-decoration-color: var(--gold); }
body[data-haven-page="docs"] h1, body[data-haven-page="docs"] h2, body[data-haven-page="docs"] h3, body[data-haven-page="docs"] h4 { font-family: var(--font-display); font-weight: 400; }
.guide-icon { width: 21px; height: 21px; display: inline-block; flex: 0 0 auto; vertical-align: middle; fill: none; }
.guide-skip { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--surface); border: 1px solid var(--gold); border-radius: 12px; }
.guide-skip:focus { top: 12px; }
.guide-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: linear-gradient(150deg, #f4f3e9 0%, #e8f0e9 48%, #e0ece9 100%); }
.guide-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #f4f2eb8c, #f4f2ebd9 65%, #f4f2ebf2); }
.guide-horizon { position: absolute; bottom: -10vh; width: 100%; height: 80vh; object-fit: cover; object-position: center bottom; opacity: .16; }
.guide-sky-stars { position: absolute; inset: 0; z-index: 1; opacity: .22; background-image: radial-gradient(circle at 14% 24%, var(--gold) 0 1px, transparent 1.6px), radial-gradient(circle at 78% 65%, var(--gold) 0 1px, transparent 1.5px), radial-gradient(circle at 40% 90%, var(--gold) 0 .7px, transparent 1.3px); background-size: 410px 360px, 630px 520px, 230px 270px; }
html[data-theme="dark"] .guide-sky { background: linear-gradient(150deg, #0d1b24, #17323a 65%, #172b35); }
html[data-theme="dark"] .guide-sky::after { background: linear-gradient(180deg, #0d1b244d, #0d1b24b3 65%, #0d1b24e0); }
html[data-theme="dark"] .guide-horizon { opacity: .055; filter: saturate(.3) hue-rotate(155deg); }
html[data-theme="dark"] .guide-sky-stars { opacity: .42; }
.guide-header { position: sticky; top: 0; z-index: 20; min-height: 80px; padding: 14px clamp(22px, 4vw, 60px); display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(16px); }
body[data-haven-page="docs"] .guide-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.guide-brand-mark { width: 32px; height: 40px; color: var(--gold); flex: 0 0 auto; }
.guide-brand strong { display: block; font: 400 24px/1.25 var(--font-display); letter-spacing: 2px; }
.guide-brand small { display: block; margin-top: 5px; color: var(--text-secondary); font-size: 8px; letter-spacing: 1.5px; }
.guide-header-place { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--text-secondary); font-size: 12px; }
.guide-header-place .guide-icon { width: 17px; height: 17px; color: var(--gold); }
.guide-header-dot { opacity: .45; margin: 0 3px; }
.guide-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
body[data-haven-page="docs"] .guide-theme { display: flex; align-items: center; justify-content: center; border: 1px solid transparent; color: var(--text-secondary); background: transparent; padding: 0; }
body[data-haven-page="docs"] .guide-theme:hover { border-color: var(--border); color: var(--gold); background: var(--surface); }
body[data-haven-page="docs"] .guide-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 17px; min-height: 46px; max-width: 100%; color: var(--text); border: 1px solid var(--border); border-radius: 13px; text-decoration: none; background: color-mix(in srgb, var(--surface) 50%, transparent); transition: background .2s, border-color .2s, transform .2s; }
body[data-haven-page="docs"] .guide-button:hover { background: var(--surface); border-color: var(--gold); transform: translateY(-1px); }
body[data-haven-page="docs"] .guide-button-primary { color: #fbfaf6; background: var(--accent); border-color: var(--accent); }
body[data-haven-page="docs"] .guide-button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
html[data-theme="dark"] body[data-haven-page="docs"] .guide-button-primary { color: #0a1128; }
.guide-back { font-size: 12px; }
.guide-back .guide-icon { width: 17px; height: 17px; }
.guide-wrap { width: min(1250px, calc(100% - 96px)); margin: 0 auto; }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(40px, 7vw, 110px); padding: 66px 24px 64px; }
.guide-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-size: 11px; letter-spacing: 1.2px; margin: 0 0 22px; }
.guide-eyebrow > span { width: 26px; height: 1px; background: var(--gold); }
.guide-hero h1 { margin: 0 0 25px; font-size: clamp(40px, 4.4vw, 62px); line-height: 1.36; letter-spacing: 2px; }
.guide-hero h1 span { color: var(--gold); }
.guide-lead { color: var(--text-secondary); font-size: 14px; line-height: 2; margin: 0 0 26px; }
.guide-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.guide-hero-actions .guide-button { min-height: 52px; padding: 12px 21px; border-radius: 15px; }
body[data-haven-page="docs"] .guide-text-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; text-decoration: none; font-size: 12px; }
.guide-text-link span { font-size: 22px; color: var(--gold); }
.guide-hero-note { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); margin: 20px 0 0; font-size: 11px; }
.guide-hero-note .guide-icon { width: 15px; height: 15px; color: var(--gold); }
.guide-encounter { position: relative; width: 100%; max-width: 365px; margin: 0; justify-self: end; padding: 9px 9px 0; border: 1px solid color-mix(in srgb, var(--gold) 36%, transparent); border-radius: 220px 220px 24px 24px; background: color-mix(in srgb, var(--surface) 60%, transparent); box-shadow: 0 24px 48px -32px #253d4345; }
.guide-encounter::before { content: ""; position: absolute; width: 6px; height: 6px; top: -4px; left: calc(50% - 3px); transform: rotate(45deg); background: var(--gold); }
.guide-encounter img { display: block; width: 100%; height: auto; aspect-ratio: 1.23; object-fit: cover; object-position: center bottom; border-radius: 220px 220px 14px 14px; }
.guide-encounter figcaption { min-height: 70px; display: flex; justify-content: center; align-items: center; gap: 11px; padding: 14px 6px; color: var(--text-secondary); font: 400 14px/1.5 var(--font-display); letter-spacing: .5px; }
.guide-encounter figcaption .guide-icon { color: var(--gold); }
.guide-encounter figcaption small { display: block; font: 8px/1.8 var(--font); letter-spacing: 1.1px; margin-top: 4px; }
.guide-orbit { position: absolute; z-index: -1; inset: -18px -17px 16%; border: 1px dashed color-mix(in srgb, var(--gold) 18%, transparent); border-radius: 50%; transform: rotate(12deg); }
.guide-orbit::before, .guide-orbit::after { content: "✦"; position: absolute; color: var(--gold); background: var(--bg); font: 18px/1 Georgia, serif; }
.guide-orbit::before { left: 3%; top: 28%; }
.guide-orbit::after { right: -1%; top: 67%; font-size: 12px; }
.guide-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 55px; border-block: 1px solid var(--border); padding: 25px 0; }
body[data-haven-page="docs"] .guide-shortcuts a { display: flex; align-items: center; gap: 16px; padding: 10px 25px; min-width: 0; color: var(--text); text-decoration: none; border-right: 1px solid var(--border); transition: background .2s; }
body[data-haven-page="docs"] .guide-shortcuts a:last-child { border-right: 0; }
body[data-haven-page="docs"] .guide-shortcuts a:hover { background: color-mix(in srgb, var(--surface) 75%, transparent); border-radius: 12px; }
.guide-shortcuts .guide-icon { width: 28px; height: 28px; color: var(--gold); }
.guide-shortcuts strong { display: block; font: 400 18px/1.6 var(--font-display); letter-spacing: .5px; }
.guide-shortcuts small { display: block; margin-top: 3px; color: var(--text-secondary); font-size: 11px; }
.guide-shortcut-arrow { margin-left: auto; color: var(--gold); font-size: 22px; }
.guide-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 52px; align-items: start; }
.guide-sidebar { position: sticky; top: 108px; max-height: calc(100dvh - 125px); overflow-y: auto; scrollbar-width: thin; }
.guide-toc { border: 1px solid var(--border); border-radius: 22px; padding: 23px 14px 20px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.guide-toc-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 18px; border-bottom: 1px solid var(--border); margin-bottom: 13px; }
.guide-toc-heading > span { font: 400 18px/1.5 var(--font-display); white-space: nowrap; }
.guide-toc-heading .guide-icon { width: 18px; height: 18px; color: var(--gold); margin-right: 5px; }
.guide-toc-heading small { font-size: 8px; letter-spacing: .5px; color: var(--text-secondary); }
.guide-chapter-links { display: grid; gap: 2px; position: relative; }
.guide-chapter-links::before { content: ""; width: 1px; position: absolute; left: 13px; top: 23px; bottom: 23px; background: var(--border); }
body[data-haven-page="docs"] .guide-chapter-links a { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 8px 10px; position: relative; border-radius: 12px; color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.guide-toc-star { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); background: var(--surface); flex: 0 0 auto; }
.guide-toc-index { font: 12px/1.5 Georgia, serif; opacity: .65; }
body[data-haven-page="docs"] .guide-chapter-links a:hover { background: var(--surface-2); color: var(--text); }
body[data-haven-page="docs"] .guide-chapter-links a[aria-current] { background: var(--accent-soft); color: var(--accent); }
.guide-chapter-links a[aria-current] .guide-toc-star { background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 10%, transparent); }
.guide-reading { margin: 19px 8px 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 10px; }
.guide-reading strong { display: block; margin-top: 5px; color: var(--text); font-weight: 400; font-size: 11px; }
.guide-progress-track { height: 2px; background: var(--border); margin-top: 14px; }
.guide-progress-track > span { height: 100%; width: 0; display: block; background: var(--gold); }
body[data-haven-page="docs"] .guide-side-note { display: flex; align-items: center; gap: 10px; padding: 22px 10px; color: var(--text-secondary); text-decoration: none; font-size: 12px; }
.guide-side-note small { display: block; font-size: 10px; margin-top: 3px; }
.guide-side-note > .guide-icon { color: var(--gold); width: 19px; height: 19px; }
.guide-side-note > span:last-child { margin-left: auto; color: var(--gold); font-size: 18px; }
.guide-article { min-width: 0; }
.guide-chapter { position: relative; margin: 0 0 26px; padding: 36px 40px 38px; border: 1px solid var(--border); border-radius: 24px; background: color-mix(in srgb, var(--surface) 82%, transparent); box-shadow: 0 12px 40px -32px #253d4333; scroll-margin-top: 0; }
.guide-chapter::before { content: ""; position: absolute; left: 40px; top: -1px; width: 50px; height: 1px; background: var(--gold); opacity: .7; }
.guide-chapter-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.guide-chapter-number { display: flex; align-items: center; justify-content: center; flex: 0 0 42px; height: 48px; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: 22px 22px 9px 9px; font: 18px/1.2 Georgia, serif; }
.guide-kicker { margin: 0 0 7px; color: var(--gold); font: 9px/1.4 var(--font); letter-spacing: 1.8px; }
.guide-chapter h2 { margin: 0; font-size: 28px; line-height: 1.45; letter-spacing: 1.5px; }
.guide-chapter-subtitle { margin: 6px 0 0; font-size: 12px; color: var(--text-secondary); }
.guide-chapter-body { font-size: 14px; line-height: 1.95; color: var(--text-secondary); overflow-wrap: anywhere; }
.guide-chapter-body > :first-child { margin-top: 0; }
.guide-chapter-body > :last-child { margin-bottom: 0; }
.guide-chapter-body p { margin: 14px 0; }
.guide-chapter-body strong { color: var(--text); font-weight: 500; }
.guide-chapter-body ul, .guide-chapter-body ol { padding-left: 22px; margin: 16px 0; }
.guide-chapter-body li { margin: 8px 0; padding-left: 3px; }
.guide-chapter-body li::marker { color: var(--gold); }
.guide-chapter-body h3 { color: var(--text); margin: 27px 0 13px; font-size: 22px; letter-spacing: .6px; line-height: 1.55; }
.guide-chapter-body h4 { margin: 0 0 7px; font-size: 18px; color: var(--text); line-height: 1.6; }
.guide-chapter-body :is(.mini, .step) h3 { margin: 0 0 7px; font-size: 18px; color: var(--text); line-height: 1.6; }
.guide-chapter-body .bi { display: none; }
.guide-chapter-body .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.guide-chapter-body .mini { padding: 19px 20px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--surface-2) 52%, transparent); }
.guide-chapter-body .mini h3::before { content: "✦"; color: var(--gold); font: 14px/1 Georgia, serif; margin-right: 8px; }
.guide-chapter-body .mini p { margin: 0; font-size: 13px; }
.guide-chapter-body .steps { display: grid; gap: 0; }
.guide-chapter-body .step { display: flex; gap: 17px; align-items: flex-start; position: relative; padding: 0 0 26px; }
body[data-haven-page="docs"] .guide-chapter-body .step { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.guide-chapter-body .step:not(:last-child)::before { content: ""; position: absolute; width: 1px; background: var(--border); left: 15px; top: 34px; bottom: 3px; }
.guide-chapter-body .step:last-child { padding-bottom: 0; }
.guide-chapter-body .step .n { border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); flex: 0 0 32px; height: 32px; border-radius: 50%; text-align: center; font: 16px/30px Georgia, serif; color: var(--gold); }
.guide-chapter-body .step p { margin: 0; }
.guide-chapter-body .card { margin-top: 22px; padding: 17px 21px; border-left: 2px solid var(--gold); border-radius: 0 14px 14px 0; background: color-mix(in srgb, var(--accent-soft) 58%, transparent); }
.guide-chapter-body .card p { margin: 5px 0 0; }
.guide-chapter-body .card .label { font-size: 11px; color: var(--gold); letter-spacing: 1px; }
.guide-chapter-body code { padding: 3px 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--code-bg); font-size: .9em; color: var(--text); }
.guide-chapter-body .cmd { border-collapse: collapse; width: 100%; text-align: left; border: 1px solid var(--border); font-size: 13px; }
.guide-chapter-body .cmd :is(th, td) { padding: 13px 15px; border-bottom: 1px solid var(--border); }
.guide-chapter-body .cmd th { color: var(--text); background: var(--surface-2); font-weight: 500; }
.guide-farewell { position: relative; text-align: center; padding: 48px 24px 52px; }
.guide-farewell > .guide-icon { width: 32px; height: 32px; color: var(--gold); margin-bottom: 22px; }
.guide-farewell h2 { font-size: 32px; line-height: 1.6; letter-spacing: 1.5px; margin: 13px 0 18px; }
.guide-farewell > p:not(.guide-kicker) { color: var(--text-secondary); font-size: 13px; margin-bottom: 26px; }
.guide-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 27px 0 32px; margin-top: 18px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-secondary); }
.guide-footer > span { display: inline-flex; align-items: center; gap: 10px; }
.guide-footer > span .guide-icon { width: 17px; height: 17px; color: var(--gold); }
.guide-footer nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
body[data-haven-page="docs"] .guide-footer nav a { color: var(--text-secondary); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.guide-footer small { flex: 1 0 100%; color: var(--text-secondary); font: 12px/1.8 var(--font-display); letter-spacing: .7px; }
.guide-dock { display: none; }
@media (min-width: 1500px) { .guide-wrap { width: min(1280px, calc(100% - 120px)); } .guide-hero { padding-top: 78px; padding-bottom: 80px; } }
@media (max-width: 1120px) {
  .guide-header-place { display: none; }
  .guide-wrap { width: calc(100% - 64px); }
  .guide-hero { padding-inline: 0; gap: 38px; }
  .guide-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 28px; }
  .guide-chapter { padding: 29px; }
  .guide-shortcuts a { gap: 12px; }
  .guide-shortcuts strong { font-size: 16px; }
  body[data-haven-page="docs"] .guide-shortcuts a { padding: 8px 16px; }
  .guide-toc-heading small { display: none; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 188px; }
  .guide-layout { display: block; }
  .guide-sidebar { top: 79px; z-index: 10; margin-bottom: 26px; max-height: none; overflow: visible; }
  .guide-toc { padding: 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(15px); }
  .guide-toc-heading { padding: 0 6px 4px; margin-bottom: 0; border: 0; }
  .guide-toc-heading > span { font-size: 13px; }
  .guide-toc-heading .guide-icon { width: 14px; height: 14px; }
  .guide-toc-heading small { display: block; font-size: 9.5px; }
  .guide-chapter-links { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scroll-snap-type: x proximity; padding: 2px 0 10px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 26px), transparent 100%); }
  .guide-chapter-links::before { display: none; }
  body[data-haven-page="docs"] .guide-chapter-links a { flex: 0 0 auto; min-height: 44px; scroll-snap-align: start; padding: 8px 11px; gap: 7px; font-size: 12px; }
  .guide-toc-star { display: none; }
  .guide-reading, body[data-haven-page="docs"] .guide-side-note { display: none; }
  .guide-chapter { padding: 30px; }
  .guide-hero h1 { font-size: 44px; }
  .guide-hero-actions { gap: 12px; }
  .guide-hero-actions .guide-button { padding-inline: 15px; }
  .guide-hero-note { font-size: 11px; }
  .guide-encounter figcaption { font-size: 12px; gap: 7px; }
  .guide-encounter figcaption small { font-size: 9px; }
  .guide-shortcuts { margin-bottom: 32px; padding: 17px 0; }
  .guide-shortcuts .guide-icon { width: 22px; height: 22px; }
  .guide-shortcut-arrow { display: none; }
  .guide-shortcuts small { font-size: 10px; }
  .guide-footer { padding-bottom: 124px; }
  .guide-dock { display: flex; justify-content: center; align-items: stretch; position: fixed; z-index: 25; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 6px; width: min(370px, calc(100% - 32px)); min-height: 70px; border: 1px solid var(--border); border-radius: 20px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 12px 35px #07182218; backdrop-filter: blur(18px); }
  body[data-haven-page="docs"] .guide-dock a { display: flex; flex: 1 1 0; min-width: 0; align-items: center; justify-content: center; flex-direction: column; gap: 6px; border-radius: 14px; font-size: 11px; color: var(--text-secondary); text-decoration: none; padding: 7px 6px; }
  body[data-haven-page="docs"] .guide-dock a[aria-current] { color: var(--gold); background: var(--accent-soft); }
  .guide-dock .guide-icon { width: 20px; height: 20px; }
}
@media (max-width: 650px) {
  .guide-header { min-height: 70px; padding: 12px 20px; gap: 12px; }
  .guide-brand-mark { width: 27px; height: 34px; }
  .guide-brand strong { font-size: 20px; letter-spacing: 1.2px; }
  .guide-brand small { font-size: 9px; letter-spacing: .9px; }
  .guide-header-actions { gap: 5px; }
  .guide-back { font-size: 11px; }
  body[data-haven-page="docs"] .guide-back { padding: 9px 10px; min-height: 44px; gap: 7px; }
  .guide-back .guide-icon { display: none; }
  .guide-wrap { width: calc(100% - 40px); }
  .guide-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 37px; }
  .guide-hero h1 { font-size: 40px; margin-bottom: 21px; }
  .guide-eyebrow { font-size: 11px; margin-bottom: 18px; }
  .guide-lead { font-size: 13px; margin-bottom: 22px; }
  .guide-hero-actions { gap: 17px; }
  .guide-hero-actions .guide-button { font-size: 13px; min-height: 48px; }
  .guide-hero-note { margin-top: 14px; }
  .guide-encounter { width: min(270px, 75%); justify-self: center; }
  .guide-encounter figcaption { font-size: 12px; min-height: 63px; }
  .guide-encounter figcaption small { font-size: 9px; }
  .guide-shortcuts { display: flex; flex-direction: column; gap: 0; padding: 10px 0; }
  body[data-haven-page="docs"] .guide-shortcuts a { border-right: 0; min-height: 72px; padding: 13px 10px; gap: 16px; }
  body[data-haven-page="docs"] .guide-shortcuts a + a { border-top: 1px solid var(--border); }
  .guide-shortcuts strong { font-size: 17px; }
  .guide-shortcuts small { font-size: 11px; }
  .guide-shortcut-arrow { display: block; }
  .guide-sidebar { top: 78px; margin-inline: -5px; margin-bottom: 20px; }
  .guide-toc { padding: 9px 8px; }
  .guide-chapter { padding: 26px 21px; border-radius: 20px; margin-bottom: 20px; }
  .guide-chapter::before { left: 23px; }
  .guide-chapter-head { gap: 14px; padding-bottom: 20px; margin-bottom: 21px; }
  .guide-chapter-number { flex-basis: 34px; height: 43px; font-size: 16px; }
  .guide-chapter h2 { font-size: 25px; letter-spacing: 1px; }
  .guide-chapter-subtitle { font-size: 11px; }
  .guide-kicker { font-size: 10px; letter-spacing: 1.2px; }
  .guide-chapter-body { font-size: 13px; line-height: 2; }
  .guide-chapter-body h3 { font-size: 20px; }
  .guide-chapter-body h4 { font-size: 17px; }
  .guide-chapter-body .grid-2 { grid-template-columns: 1fr; gap: 12px; }
  .guide-chapter-body .card { padding: 15px 16px; }
  .guide-chapter-body .step { gap: 12px; }
  .guide-chapter-body .cmd :is(th, td) { padding: 10px; }
  .guide-chapter-body .cmd td:first-child { width: 33%; }
  .guide-farewell { padding: 35px 12px; }
  .guide-farewell h2 { font-size: 27px; }
  .guide-footer { gap: 12px; }
  .guide-footer nav { width: 100%; margin-left: 0; gap: 20px; }
  body[data-haven-page="docs"] .guide-footer nav a { min-height: 44px; }
}
@media (max-width: 370px) {
  .guide-header { padding-inline: 15px; gap: 6px; }
  .guide-brand { gap: 7px; }
  .guide-brand strong { font-size: 18px; }
  .guide-brand-mark { width: 24px; }
  .guide-wrap { width: calc(100% - 32px); }
  .guide-hero h1 { font-size: 37px; }
  .guide-chapter { padding-inline: 17px; }
  .guide-hero-actions { gap: 12px; }
  body[data-haven-page="docs"] .guide-text-link { font-size: 11px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body[data-haven-page="docs"] *, body[data-haven-page="docs"] *::before, body[data-haven-page="docs"] *::after { transition: none !important; animation: none !important; }
}
@media print {
  html { color-scheme: light; }
  .guide-sky, .guide-header, .guide-sidebar, .guide-shortcuts, .guide-dock, .guide-hero-actions, .guide-farewell, .guide-skip { display: none !important; }
  .guide-wrap { width: 100%; }
  .guide-hero { padding: 20px 0; grid-template-columns: 1fr; }
  .guide-encounter { display: none; }
  .guide-layout { display: block; }
  .guide-chapter { box-shadow: none; background: white; border-color: #ddd; break-inside: avoid; }
  .guide-chapter-body, .guide-chapter h2, .guide-chapter h3 { color: #222; }
  .guide-footer { padding-bottom: 20px; }
}
/* 触屏设备（手机横屏 844 宽够不到 ≤650/≤900 断点）：按指针类型与矮视口补齐指南页的触控下限 */
@media (pointer: coarse), (max-height: 500px) {
  body[data-haven-page="docs"] .guide-back { min-height: 44px; }
  body[data-haven-page="docs"] .guide-footer nav a { min-height: 44px; }
  body[data-haven-page="docs"] .guide-dock a { min-height: 44px; }
}
