.guide-page { background: #070a13; overflow-x: visible; }
.guide-page::before { display: none; }
.guide-page [hidden] { display: none !important; }
.guide-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12; letter-spacing: -.045em; color: var(--text); }
.guide-page h2 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -.02em; }
.guide-page .site-header { box-shadow: none; background: #0c101e; }
.guide-page .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.guide-page .site-footer { margin-top: 4rem; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 18px; background: var(--background-raised); }
.skip-link:focus { top: 16px; }
.guide-home { max-width: 920px; padding-top: 4rem; }
.guide-intro h1 { margin: .5rem 0 1rem; }
.guide-lede { font-size: 1.2rem; color: #c8d0e6; }
.guide-meta { color: var(--muted); font-size: .875rem; margin: 1.2rem 0 2rem; }
.guide-meta span { margin-inline: .5rem; }
.guide-search { margin: 2.5rem 0 3rem; }
.guide-search label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: .6rem; }
.guide-search-field { display: flex; background: #101626; border: 1px solid #3b4864; border-radius: 14px; padding: 6px; gap: 4px; }
.guide-search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; padding: 12px; border-radius: 8px; }
.guide-search input::placeholder { color: #a9b1c8; }
.guide-search input:focus-visible { outline: 2px solid var(--secondary); outline-offset: 0; }
.guide-page button { cursor: pointer; min-height: 44px; padding: 8px 14px; color: var(--text); background: #19233c; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; }
#search-status { color: var(--muted); font-size: .9rem; }
#search-status:empty { display: none; }
.guide-results { list-style: none; padding: 0; margin: 1.25rem 0; }
.guide-results a { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.guide-results h2 { margin: .3rem 0 .5rem; }
.guide-results p { color: #c3cbe0; margin: .3rem 0; }
.guide-results small { color: var(--muted); }
.guide-section-label { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 1rem; }
.guide-section-label h2 { margin: 0; font-size: 1rem; }
.guide-section-label span { color: var(--muted); font-size: .85rem; }
.guide-chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 12px; }
.guide-chapters li { min-width: 0; }
.guide-chapters a { height: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 24px 20px; color: var(--text); background: #0f1523; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.guide-chapters a:hover { background: #161f33; border-color: #576b99; }
.guide-chapters h2 { font-size: 1.12rem; line-height: 1.4; margin: 0 0 .5rem; letter-spacing: -.01em; }
.guide-chapters p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.chapter-number { color: #95a8d6; font-size: .8rem; padding-top: 3px; font-variant-numeric: tabular-nums; }
.chapter-arrow { color: var(--muted); margin-left: auto; }
.guide-glossary { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; padding: 22px 2px; margin-top: .8rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.guide-glossary span:last-child { color: var(--muted); font-size: .95rem; }
.guide-support { color: var(--muted); margin: 2.5rem 0 0; }
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-top: 3rem; }
.guide-sidebar { min-width: 0; }
.guide-sidebar nav { position: sticky; top: 24px; }
.guide-sidebar ul { list-style: none; padding: 0; margin-top: 1rem; }
.guide-sidebar li a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .95rem; min-height: 44px; }
.guide-sidebar a[aria-current="page"] { color: #e4eaff; background: #1b2540; }
.guide-sidebar a:hover { color: var(--text); }
.guide-article { min-width: 0; max-width: 70ch; color: #c8d0e3; padding-bottom: 2rem; overflow-wrap: anywhere; }
.guide-article .eyebrow { margin-top: 0; }
.guide-article h1 { margin-top: .75rem; }
.guide-article h2 { color: var(--text); margin: 0 0 1rem; }
.guide-article strong { color: #f0f3ff; font-weight: 600; }
.guide-article p { margin-block: 1rem; }
.guide-article li { padding-left: .3rem; margin-block: .75rem; }
.guide-article ul, .guide-article ol { padding-left: 1.4rem; }
.guide-article li::marker { color: #9eaff0; }
.guide-article [id] { scroll-margin-top: 28px; }
.guide-section { margin-top: 3rem; }
.guide-section:has(+ .guide-faq) { margin-bottom: 1rem; }
.guide-note { padding: 18px 20px; border-left: 3px solid #899dff; background: #121b2d; border-radius: 0 10px 10px 0; }
.guide-toc { border-block: 1px solid var(--line); padding: .5rem 0; margin-top: 2rem; }
.guide-toc summary, .guide-faq summary { min-height: 44px; padding: 14px 4px; cursor: pointer; color: var(--text); font-weight: 600; }
.guide-toc a { display: inline-block; padding-block: 5px; }
.guide-faq { border-bottom: 1px solid var(--line); }
.guide-faq > div { padding: 0 4px 16px; }
.guide-faq[open] summary { color: #b9c8ff; }
.guide-faq:target, .guide-article h2:target { background: #1a2540; border-radius: 8px; }
.guide-page summary:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }
.guide-back { display: none; margin-bottom: 1.5rem; text-decoration: none; }
.guide-directory-link { display: inline-block; padding-block: 12px; margin-top: 1rem; }
.guide-article figure { margin: 2rem 0; }
.guide-article img { display: block; width: 100%; max-width: 360px; height: auto; margin-inline: auto; border: 1px solid var(--line-strong); border-radius: 12px; }
.guide-article figcaption { color: var(--muted); font-size: .9rem; margin-top: .75rem; }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .guide-sidebar { display: none; }
  .guide-back { display: inline-block; min-height: 44px; }
}
@media (max-width: 600px) {
  .guide-home { padding-top: 2.25rem; }
  .guide-chapters { grid-template-columns: minmax(0, 1fr); }
  .guide-chapters a { padding: 20px 16px; }
  .guide-page .site-shell { width: calc(100% - 32px); }
  .guide-page .site-header { padding-inline: 12px; gap: 10px; }
  .guide-page .site-nav { justify-content: flex-start; gap: 0 2px; }
  .guide-page .site-nav a { padding-inline: 8px; }
  .guide-layout { padding-top: 1.5rem; }
  .guide-article { font-size: 1rem; }
  .guide-section-label span { display: none; }
}
