.guide-page {
  background:
    radial-gradient(circle at 74% 5%, rgba(125, 60, 255, .12), transparent 30rem),
    var(--bg);
}

.guide-page .topbar {
  position: sticky;
  top: 0;
}

.guide-top-links > a:first-child,
.guide-top-links > a.guide-active {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
}

.guide-top-links > a.guide-active {
  color: var(--text);
}

.guide-layout {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 205px minmax(0, 760px);
  justify-content: center;
  gap: 76px;
  padding-block: 64px 100px;
}

.guide-sidebar {
  position: sticky;
  top: 106px;
  height: max-content;
  padding: 15px 0;
  border-right: 1px solid var(--line);
}

.guide-sidebar > p {
  margin: 0 0 15px;
  color: #d1c9dc;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.guide-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-sidebar a {
  margin-right: -1px;
  padding: 9px 18px 9px 0;
  border-right: 1px solid transparent;
  color: #8f899c;
  font-size: .8rem;
  line-height: 1.35;
  transition: color .16s ease, border-color .16s ease;
}

.guide-sidebar a:hover,
.guide-sidebar a:focus-visible {
  border-color: var(--violet);
  color: var(--text);
}

.guide-article {
  min-width: 0;
}

.guide-hero {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.guide-hero .eyebrow {
  margin-bottom: 14px;
}

.guide-hero h1 {
  max-width: 720px;
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  line-height: 1;
}

.guide-hero > p:not(.eyebrow, .search-status) {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.guide-search {
  min-height: 54px;
  margin-top: 30px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
  transition: border-color .16s ease, background .16s ease;
}

.guide-search:focus-within {
  border-color: rgba(154,103,255,.72);
  background: rgba(125,60,255,.08);
}

.guide-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: #a39dac;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.guide-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: .9rem;
}

.guide-search input::placeholder { color: #716b7a; }

.guide-search kbd {
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.12);
  border-bottom-color: rgba(255,255,255,.2);
  border-radius: 6px;
  color: #77717f;
  background: rgba(255,255,255,.04);
  font: inherit;
  font-size: .62rem;
}

.search-status {
  min-height: 18px;
  margin: 8px 2px 0;
  color: #817b8e;
  font-size: .7rem;
}

.faq-section {
  padding-top: 54px;
  scroll-margin-top: 92px;
}

.faq-section[hidden] { display: none; }

.faq-section > h2 {
  margin: 0 0 9px;
  color: #cbb2ff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.faq-entry {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.faq-entry[hidden] { display: none; }

.faq-entry h3 {
  margin: 0;
  color: #faf8ff;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.35;
  letter-spacing: -.025em;
}

.faq-entry p {
  margin: 12px 0 0;
  color: #aaa4b7;
  font-size: .92rem;
  line-height: 1.72;
}

.guide-empty {
  margin: 44px 0 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  text-align: center;
}

.guide-contact {
  margin-top: 64px;
  padding: 25px;
  border: 1px solid rgba(154,103,255,.26);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(125,60,255,.13), rgba(16,13,23,.7));
}

.guide-contact strong {
  color: var(--text);
  font-size: 1rem;
}

.guide-contact p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.guide-contact a {
  color: #cbb2ff;
  font-size: .8rem;
  font-weight: 750;
}

.guide-contact a:hover { text-decoration: underline; }
.guide-footer { background: rgba(8,6,12,.72); }

@media (max-width: 860px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 34px 76px;
  }

  .guide-sidebar {
    position: static;
    padding: 0 0 20px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
  }

  .guide-sidebar > p { margin-bottom: 10px; }
  .guide-sidebar nav { width: max-content; flex-direction: row; gap: 7px; }
  .guide-sidebar a {
    margin: 0;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
  }
}

@media (max-width: 620px) {
  .guide-top-links { gap: 12px; }
  .guide-top-links > a:first-child { display: none; }
  .guide-hero { padding-bottom: 30px; }
  .guide-hero h1 { font-size: 2.55rem; }
  .guide-hero > p:not(.eyebrow, .search-status) { font-size: .9rem; }
  .guide-search { min-height: 50px; padding-inline: 12px; }
  .guide-search kbd { display: none; }
  .faq-section { padding-top: 40px; }
  .faq-entry { padding: 25px 0; }
  .faq-entry p { font-size: .86rem; line-height: 1.65; }
}
