/* nib guide — the walkthrough and internals pages under /guide/.

   Loaded after /style.css and /std/std.css, whose layout (top bar, sidebar,
   example panels) the guide shares; this file adds only what a chapter has
   and a reference page does not: section headings, ordered lists, tables and
   asides. No colour of its own: every value is a token from /style.css.
   Copied to site/guide/guide.css by gen/build_guide.py — edit it here. */

.std-top .crumb.other {
  color: var(--ink-3);
  font-weight: 400;
}

.guide-page h2 {
  margin: 2.4rem 0 0.6rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.guide-page h2 a.self {
  color: inherit;
  border-bottom: none;
}

.guide-page h3 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.02rem;
}

.guide-page ol {
  margin: 0.6rem 0 1rem;
  padding-left: 1.4rem;
  max-width: 46rem;
}

.guide-page ol li {
  margin: 0.3rem 0;
}

.guide-page pre.code.plain {
  margin: 0.8rem 0 1.2rem;
}

.guide-page .table {
  overflow-x: auto;
  margin: 0.8rem 0 1.2rem;
}

.guide-page table {
  border-collapse: collapse;
  font-size: 0.9rem;
}

.guide-page th,
.guide-page td {
  text-align: left;
  vertical-align: top;
  padding: 0.35rem 0.8rem 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.guide-page th {
  font-weight: 700;
}

.guide-page aside.note {
  margin: 1rem 0 1.2rem;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--line);
  max-width: 46rem;
}

.guide-page aside.note p {
  margin: 0;
}

/* ```bars charts (build_guide.py, `bars`): inline SVG in the page's tokens. */
figure.bars { margin: 1.4rem 0; overflow-x: auto; }
/* Two drawings of each chart: the wide one, and below 600 px a narrow one
   (labels above their bars) drawn at about a phone's width, so its text
   stays readable instead of shrinking with the page. */
figure.bars svg { width: 100%; height: auto; display: block; }
figure.bars svg.wide { min-width: 560px; }
figure.bars svg.narrow { display: none; max-width: 420px; }
@media (max-width: 600px) {
  figure.bars svg.wide { display: none; }
  figure.bars svg.narrow { display: block; }
}
figure.bars text { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-2); }
figure.bars text.lb { font-family: var(--mono); fill: var(--ink); }
figure.bars text.lg { fill: var(--ink); }
figure.bars .mk { stroke: var(--ink-3); stroke-dasharray: 3 3; stroke-width: 1; }
figure.bars figcaption { color: var(--ink-3); font-size: 0.9rem; margin-top: 0.4rem; }
