/* Gallery chrome only: the table of contents and specimen frames. Colours,
   borders and radii come from the kit's tokens; the gallery adds none. */
.g-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.g-toc { position: sticky; top: 16px; display: grid; gap: 2px; font-size: 13px; }
.g-toc a { padding: 4px 8px; border-radius: var(--tb-radius); color: var(--tb-muted-fg); text-decoration: none; }
.g-toc a:hover { color: var(--tb-fg); background: var(--tb-accent); }
.g-specimen { padding: 20px; border-radius: var(--tb-soft-radius); background: var(--tb-ground); }
.g-specimen-tall { position: relative; height: 360px; overflow: hidden; }
.g-code { margin: 0; padding: 12px; overflow-x: auto; border-radius: var(--tb-radius); background: var(--tb-muted); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.g-result { margin: 0; max-height: 220px; overflow: auto; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; color: var(--tb-muted-fg); }
.g-wrap { flex-wrap: wrap; }
@media (max-width: 900px) { .g-layout { grid-template-columns: minmax(0, 1fr); } .g-toc { position: static; display: flex; flex-wrap: wrap; } }
