/* pedalscope.com — chrome for the HOSTED guide pages, injected at site
   assembly by Site/wrap_guide.py. The pages themselves are the committed
   docsbuild output, byte-untouched in Docs/build; this sheet only styles
   the injected top navigation and sidebar. Palette variables come from
   guide.css (same values as site.css). No JavaScript on this site;
   keep it that way. */

/* --- top nav (same look as site.css's .site-nav) -------------------- */

.site-nav {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.site-nav img { width: 28px; height: 28px; border-radius: 6px; }

.site-nav .wordmark {
  color: var(--ink);
  font-weight: 700;
  margin-right: auto;
}

.site-nav a { color: var(--ink-secondary); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* --- shell: sidebar + content --------------------------------------- */
/* Mobile-first single column with the sidebar AFTER the page (readers
   land on content; the full tree waits at the end). Two columns with a
   sticky sidebar from 900px up. */

.guide-shell {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.guide-sidebar {
  order: 2;
  margin: 2rem 1.5rem 0;
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.5;
}

.guide-sidebar .sidebar-part {
  margin: 1.1rem 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.guide-sidebar ul { list-style: none; margin: 0; padding: 0; }
.guide-sidebar li { margin: 0.15rem 0; }
.guide-sidebar a { color: var(--ink-secondary); }
.guide-sidebar a:hover { color: var(--ink); }

.guide-sidebar a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}

/* Sitewide trademark notice — same fine print as the www footers,
   full width below the shell. */
.site-fineprint {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.site-fineprint p { margin: 0; }

@media (min-width: 900px) {
  .guide-shell {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0 1.5rem;
    align-items: start;
  }

  .guide-sidebar {
    order: 0;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    margin: 0;
    padding: 1rem 1rem 2rem 0;
    border-top: none;
    border-right: 1px solid var(--border);
  }
}
