.guide-page { background: var(--paper); color: var(--ink); }
.guide-head { background: var(--night); color: #fff9f0; }
.guide-head .wrap { padding-block: clamp(25px, 3.6vw, 52px) clamp(30px, 4.5vw, 65px); }
.guide-head h1 {
  max-width: 24ch;
  margin: 0;
  font: 545 clamp(2.3rem, 4.5vw, 4.2rem)/1.04 Rubik, system-ui, sans-serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.guide-head .breadcrumbs { margin: 0 0 22px; font-size: .91rem; color: var(--fog); }
.guide-head .breadcrumbs a { color: var(--fog); }
.guide-deck { margin: 19px 0 0; max-width: 69ch; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.55; color: #dce1e8; }
.guide-head a:not(.breadcrumbs a) { color: var(--amber); }
.guide-head-photo {
  background-color: var(--night);
  background-image: linear-gradient(90deg, var(--night) 10%, #151e2ef7 43%, #151e2eaa 64%, #151e2e40 100%), var(--guide-photo);
  background-size: cover, min(66%, 1200px) auto;
  background-repeat: no-repeat;
  background-position: center, right center;
}
.guide-desk { --guide-photo: url("/assets/evening-desk.webp"); }
.guide-rack { --guide-photo: url("/assets/evening-rack.webp"); }
.guide-layout {
  display: grid;
  grid-template-columns: minmax(180px, 255px) minmax(0, 760px);
  align-items: start;
  gap: clamp(40px, 6vw, 100px);
  padding-block: clamp(30px, 4vw, 62px) clamp(48px, 6vw, 96px);
}
.guide-aside { position: sticky; top: 100px; font: 400 .94rem/1.45 Rubik, system-ui, sans-serif; }
.guide-aside strong, .guide-jump summary { font-weight: 550; }
.guide-aside nav, .guide-jump nav { display: grid; margin-top: 10px; }
.guide-aside nav a, .guide-jump nav a { padding: 8px 0; color: #37465b; border-top: 1px solid var(--line); }
.guide-jump { display: none; }
.guide-body { min-width: 0; overflow-wrap: anywhere; font: 400 clamp(1rem, 1.13vw, 1.15rem)/1.64 system-ui, sans-serif; }
.guide-body .prose, .guide-body > p { max-width: 70ch; }
.guide-body h2 { font: 550 clamp(1.45rem, 2.1vw, 2.1rem)/1.16 Rubik, sans-serif; color: var(--ink); letter-spacing: -.035em; }
.guide-body .prose > :first-child, .guide-body > :first-child { margin-top: 0; }
.guide-body .prose, .guide-body p, .guide-body li, .guide-body td, .guide-body th { color: #334251; }
.guide-body h3, .guide-body strong { color: var(--ink); }
.guide-body .prose a, .guide-body a, .guide-recovery a { color: #305781; text-decoration: underline; text-underline-offset: .18em; }
.guide-body .cta-box {
  max-width: 70ch;
  margin: 32px 0 0;
  padding: 22px;
  background: #ede9e1;
  border: 1px solid #d4d0c7;
  border-radius: 4px;
}
.guide-body .cta-box a { color: #305781; }
.guide-body .prose table { max-width: 100%; border-collapse: collapse; }
.guide-body .prose th { background: #eee9e0; }
.guide-body .prose :is(td, th) { border-color: #cccac3; }
.guide-body .prose tr:hover { background: #eeebe5; }
.guide-body code { color: #2b4560; background: #ede9e2; }
.guide-search { padding-block: 30px 60px; max-width: 860px; min-height: 230px; }
.guide-head .search-box { max-width: 740px; margin: 24px 0 0; }
.guide-head .search-box input { background: var(--paper); color: var(--ink); min-width: 0; border: 1px solid #d5d1cb; border-radius: 5px; padding: 14px 16px; }
.guide-head .search-box input::placeholder { color: #596779; }
.guide-search .search-results { gap: 0; }
.guide-search .muted { color: #47596d; }
.guide-search .search-hit { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 15px 0; }
.guide-search .search-hit h3 { font-size: 1.22rem; }
.guide-search a { color: #315982; }
.guide-recovery { padding: 30px 0 70px; min-height: 220px; color: #435368; }
.guide-recovery .muted { color: inherit; }

@media (max-width: 800px) {
  .guide-layout { display: block; padding-top: 19px; }
  .guide-head-photo { background-size: cover, auto 100%; }
  .guide-aside { display: none; }
  .guide-jump { display: block; margin-bottom: 24px; border-block: 1px solid var(--line); }
  .guide-jump summary { padding: 12px 2px; cursor: pointer; }
  .guide-jump nav { margin: 0 0 8px; }
  .guide-head .breadcrumbs { margin-bottom: 16px; }
}
@media (max-width: 550px) {
  .guide-head-photo { background-image: linear-gradient(90deg, #151e2ef5, #151e2edb 68%, #151e2e99), var(--guide-photo); }
  .guide-head h1 { font-size: clamp(2rem, 8.6vw, 2.8rem); }
}
