.guide-shell {
  display: grid; grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: var(--sp-6, 2rem); align-items: start;
}
.guide-nav {
  position: sticky; top: var(--sp-4, 1rem);
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1em 1.1em 1.3em;
  max-height: calc(100vh - 2rem); overflow-y: auto;
}
.guide-nav__home {
  display: block; font-weight: 700; padding: .3em 0 .6em;
  border-bottom: 1px solid var(--border); margin-bottom: .6em;
}
.guide-nav__tier {
  text-transform: uppercase; letter-spacing: .07em; font-size: .72em;
  font-weight: 700; color: var(--muted); margin: 1.1em 0 .3em;
}
.guide-nav ul { list-style: none; margin: 0; padding: 0; }
.guide-nav li { margin: 0; }
.guide-nav a {
  display: block; padding: .28em 0; font-size: .88em; line-height: 1.35;
  color: var(--text, inherit); text-decoration: none;
}
.guide-nav a:hover { color: var(--primary); }
.guide-nav a.is-current, .guide-nav a[aria-current="page"] {
  color: var(--primary); font-weight: 700;
}
/* The search box's look lives in console.css since 1.1: the rail carries one too. */
.guide-body { min-width: 0; }
@media (max-width: 900px) {
  .guide-shell { grid-template-columns: 1fr; }
  .guide-nav { position: static; max-height: none; }
}

/* --- the page body itself: unchanged from the single-page guide -------- */
.guide { max-width: 900px; }
.guide h1 { margin-bottom: .2em; }
.guide .lead { color: var(--muted); font-size: 1.05em; margin-top: 0; }
.guide h2 {
  border-bottom: 1px solid var(--border); padding-bottom: .4em; margin-top: 1.4em;
}
.guide h3 { margin-top: 1.8em; }
.guide h4 { margin-top: 1.3em; margin-bottom: .3em; }
.guide p, .guide li { line-height: 1.6; }
.guide pre {
  background: var(--menu-dark); color: #e6ebe8; padding: 1em 1.2em;
  border-radius: var(--radius-sm);
  overflow-x: auto; font-size: .84em; line-height: 1.55;
}
.guide pre code { background: none; padding: 0; color: inherit; }
.guide .callout {
  background: var(--primary-soft); border: 0;
  border-left: 3px solid var(--primary);
  padding: .9em 1.2em; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.3em 0;
}
.guide .callout.warn { border-left-color: var(--warn-fg); background: var(--warn-bg); color: var(--warn-fg); }
.guide .callout.bad { border-left-color: var(--err-fg); background: var(--err-bg); color: var(--err-fg); }
.guide .callout p:first-child { margin-top: 0; } .guide .callout p:last-child { margin-bottom: 0; }
.guide .tag {
  font-family: var(--font-mono); background: var(--primary-soft);
  color: var(--primary); padding: .12em .45em; border-radius: 4px;
  font-size: .9em; white-space: nowrap;
}
.guide .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.guide .grid2 > div { min-width: 0; }
.guide table { box-shadow: var(--shadow); margin: 1em 0; }
.guide table code { font-size: .85em; }
.guide .method { font-weight: 700; color: var(--primary); }
.guide .see-also {
  margin-top: 2.4em; padding-top: 1em; border-top: 1px solid var(--border);
  font-size: .9em; color: var(--muted);
}
@media (max-width: 780px) { .guide .grid2 { grid-template-columns: 1fr; } }

/* A row reached from the console's error link (/docs/errors#CODE) stands out (1.3, 2026-11-01). */
tr:target { background: var(--ok-bg, #eef6ee); }
