/* The guide uses the wiki's HUD palette with an editorial chapter rhythm. */
.site-nav { flex-wrap: wrap; }
.guide-home .page-head {
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(90deg, #050a18 2%, rgb(5 10 24 / 90%) 33%, rgb(5 10 24 / 12%)), url('/guide/lanterns.webp') center right / cover;
  border: 1px solid var(--hud-edge);
  position: relative;
}
.guide-home .page-head h1 { max-width: 12ch; font-size: clamp(2.6rem, 5vw, 4.25rem); }
.guide-home .page-head .lede { max-width: 38ch; margin: 1.2rem 0 0; color: #c2cee0; }
.guide-home .eyebrow, .guide-sidebar .eyebrow { color: var(--hud-gold); }
.journey-intro { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1rem 0 1.6rem; }
.journey-intro h2, .journey-future h2, .journey-reference h2 { margin: 0 0 .8rem; padding: 0; border: 0; }
.journey-intro p:not(.eyebrow) { max-width: 60ch; margin: 0; }
.guide-start { flex-shrink: 0; padding: .8rem 1.15rem; background: var(--hud-gold); color: var(--hud-track); text-decoration: none; font-weight: 600; }
.guide-start:hover { color: var(--hud-track); background: var(--hud-gold-bright); }
.guide-start span { margin-left: 1rem; }
.journey-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hud-edge); }
.journey-list li { margin: 0; border-bottom: 1px solid var(--hud-edge); }
.journey-list a { display: grid; grid-template-columns: 5rem 1fr 2rem; align-items: start; gap: 1.4rem; padding: 2rem 1.25rem; text-decoration: none; transition: background 150ms ease; }
.journey-list a:hover { background: var(--hud-plate); }
.journey-number { font-family: var(--font-display); font-size: 2.8rem; color: var(--hud-gold); line-height: 1.1; }
.journey-copy { display: grid; gap: .55rem; }
.journey-stage { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--hud-secondary); font-weight: 600; }
.journey-title { color: var(--hud-title); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; }
.journey-description { max-width: 65ch; color: var(--hud-body); }
.journey-outcome { color: var(--hud-secondary); font-size: .82rem; }
.journey-arrow { color: var(--hud-gold); font-size: 1.5rem; }
.journey-future { margin: 2.5rem 0; padding: 1.5rem 2rem; border-left: 2px solid var(--hud-gold-dim); background: var(--hud-plate); }
.journey-future p:last-child { max-width: 75ch; margin: 0; }
.journey-reference { display: flex; align-items: center; gap: 2rem; justify-content: space-between; padding-top: 1rem; }
.journey-reference h2 { font-size: 1.2rem; }
.journey-reference p { max-width: 55ch; }
.journey-reference > a { flex-shrink: 0; font-size: .9rem; }
.guide-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.guide-sidebar { position: sticky; top: 6rem; }
.guide-sidebar .eyebrow { font-size: .65rem; }
.guide-sidebar ol { list-style: none; padding: 0; margin: 0; }
.guide-sidebar li { margin: 0; }
.guide-sidebar nav a { display: flex; gap: .8rem; align-items: baseline; padding: .9rem .8rem; border-left: 2px solid var(--hud-edge); text-decoration: none; color: var(--hud-secondary); font-size: .85rem; }
.guide-sidebar nav a[aria-current='page'] { border-left-color: var(--hud-gold); color: var(--hud-title); background: var(--hud-plate); }
.chapter-number { font-family: var(--font-display); font-size: .8rem; color: var(--hud-gold); }
.guide-library-link { display: block; margin: 1.5rem .8rem; font-size: .8rem; }
.guide-article { min-width: 0; max-width: 48rem; }
.guide-article .breadcrumb { color: var(--hud-secondary); font-size: .65rem; }
.guide-article .breadcrumb a { color: var(--hud-gold); }
.guide-article .blume-content { line-height: 1.8; }
.guide-article .blume-content h2 { margin: 2.6rem 0 1rem; font-size: 1.35rem; }
.guide-article .blume-content p, .guide-article .blume-content li { color: var(--hud-body); }
.guide-article .blume-content a { color: var(--hud-gold); text-decoration: underline; }
.guide-article .blume-content .blume-heading-anchor { color: inherit; text-decoration: none; }
.guide-article .blume-content strong { color: var(--hud-title); }
.guide-article .blume-content li { padding-left: .3rem; margin: .45rem 0; }
.guide-article h2 { scroll-margin-top: 8rem; }
.guide-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hud-edge); }
.guide-pagination a { display: grid; gap: .5rem; padding: 1rem; text-decoration: none; border: 1px solid var(--hud-edge); background: var(--hud-plate); }
.guide-pagination a:hover { border-color: var(--hud-gold); }
.guide-pagination span { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--hud-secondary); }
.guide-pagination strong { font-size: .9rem; }
a:focus-visible { outline: 2px solid var(--hud-gold-bright); outline-offset: 4px; }
.mobile-chapters { display: none; }
@media (max-width: 55rem) {
  .guide-layout { grid-template-columns: 1fr; gap: 2rem; }
  .guide-sidebar { position: static; }
  .guide-sidebar > .eyebrow, .guide-sidebar .desktop-chapters { display: none; }
  .mobile-chapters { display: block; border: 1px solid var(--hud-edge); background: var(--hud-plate); }
  .mobile-chapters summary { display: grid; gap: .4rem; padding: .85rem 1rem; cursor: pointer; list-style: none; min-height: 44px; }
  .mobile-chapters summary::-webkit-details-marker { display: none; }
  .chapter-menu-label { display: flex; justify-content: space-between; align-items: center; color: var(--hud-title); font-size: .8rem; font-weight: 600; }
  .chapter-menu-label > span { color: var(--hud-gold); font-size: 1.1rem; }
  .mobile-chapters[open] .chapter-menu-label > span { transform: rotate(180deg); }
  .chapter-menu-current { color: var(--hud-secondary); font-size: .8rem; line-height: 1.4; }
  .mobile-chapters[open] summary { border-bottom: 1px solid var(--hud-edge); }
  .mobile-chapters summary:focus-visible { outline: 2px solid var(--hud-gold-bright); outline-offset: 4px; }
  .guide-sidebar nav ol { display: grid; gap: 0; }
  .guide-sidebar .mobile-chapters nav a { min-height: 44px; box-sizing: border-box; padding: .85rem 1rem; border: 0; border-left: 2px solid transparent; }
  .guide-sidebar .mobile-chapters nav a[aria-current='page'] { border-left-color: var(--hud-gold); background: rgb(197 160 89 / 10%); }
  .chapter-overview { display: block; padding: 1rem; font-size: .85rem; border-top: 1px solid var(--hud-edge); }
  .guide-layout { gap: 1.5rem; }
  .guide-sidebar nav a { border: 1px solid var(--hud-edge); padding: .6rem .75rem; }
  .guide-sidebar nav a[aria-current='page'] { border-color: var(--hud-gold); }
  .guide-library-link { display: none; }
  .journey-intro, .journey-reference { align-items: start; flex-direction: column; gap: 1rem; }
}
@media (max-width: 40rem) {
  .guide-home .page-head { min-height: 23rem; justify-content: end; background-image: linear-gradient(0deg, #050a18 3%, rgb(5 10 24 / 90%) 40%, rgb(5 10 24 / 8%)), url('/guide/lanterns.webp'); background-position: center, 75% center; }
  .guide-home .page-head h1 { font-size: 2.55rem; }
  .guide-home .page-head .lede { font-size: 1rem; }
  .journey-list a { grid-template-columns: 2.6rem 1fr 1rem; gap: .7rem; padding: 1.7rem 0; }
  .journey-number { font-size: 1.9rem; }
  .journey-title { font-size: 1.3rem; }
  .journey-future { padding: 1.2rem; }
  .guide-pagination { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-list a { transition: none; }
}
