/* rz-manual-toc.css — "On this page" rail + phone disclosure for manual/*.html (K26). Hairlines, mono caption,
   the manual's own tokens with neutral fallbacks; no card, no shadow, no radius above 4 px. */
main.mn-wrap [id], main.mn-wrap h2 { scroll-margin-top: var(--rz-mtoc-offset, 88px); }
/* theme-aware fallbacks for the two manuals that do not define the --mn tokens (AA on each theme's page background) */
:root { --rz-mtoc-muted: var(--mn-muted, #9aa4b2); --rz-mtoc-text: var(--mn-text, #e8edf5); --rz-mtoc-accent: var(--mn-accent, #ffaa00); }
[data-theme="light"] { --rz-mtoc-muted: var(--mn-muted, #4b5563); --rz-mtoc-text: var(--mn-text, #111827); --rz-mtoc-accent: var(--mn-accent, #a66e00); }
.rz-mtoc-rail {
  position: fixed; z-index: 5; width: 208px; max-height: calc(100vh - var(--rz-mtoc-offset, 88px) - 24px); overflow-y: auto;
  padding: 0 0 0 12px; border-left: 1px solid var(--mn-border, rgba(127, 127, 127, .3));
  font: 400 13px/1.35 var(--mn-sans, system-ui, sans-serif);
}
.rz-mtoc-rail[hidden] { display: none; }
.rz-mtoc-cap { margin: 0 0 10px; font: 500 11px/1 var(--mn-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--rz-mtoc-muted); }
.rz-mtoc-rail ol, .rz-mtoc-disc ol { list-style: none; margin: 0; padding: 0; }
.rz-mtoc-rail li + li { margin-top: 2px; }
.rz-mtoc-rail a, .rz-mtoc-disc a {
  display: flex; gap: 8px; padding: 5px 0; color: var(--rz-mtoc-muted); text-decoration: none;
  transition: color 160ms ease-out;
}
.rz-mtoc-rail a:hover, .rz-mtoc-disc a:hover { color: var(--rz-mtoc-text); }
.rz-mtoc-rail a[aria-current="true"] { color: var(--rz-mtoc-text); font-weight: 600; }
.rz-mtoc-rail a[aria-current="true"] .rz-mtoc-num { color: var(--rz-mtoc-accent); }
.rz-mtoc-num { flex: none; min-width: 1.6em; font: 500 12px/1.35 var(--mn-mono, ui-monospace, monospace); color: var(--rz-mtoc-muted); }
.rz-mtoc-rail a:focus-visible, .rz-mtoc-disc a:focus-visible, .rz-mtoc-disc summary:focus-visible { outline: 2px solid var(--rz-mtoc-accent); outline-offset: 2px; }
.rz-mtoc-disc { margin: 24px 0 8px; border-top: 1px solid var(--mn-border, rgba(127, 127, 127, .3)); border-bottom: 1px solid var(--mn-border, rgba(127, 127, 127, .3)); }
.rz-mtoc-disc summary { cursor: pointer; padding: 12px 0; min-height: 44px; box-sizing: border-box; font: 500 12px/20px var(--mn-mono, ui-monospace, monospace); letter-spacing: .06em; text-transform: uppercase; color: var(--rz-mtoc-muted); }
.rz-mtoc-disc nav { padding: 0 0 12px; }
.rz-mtoc-disc a { padding: 8px 0; min-height: 44px; box-sizing: border-box; align-items: center; }
html.rz-mtoc-has-rail .rz-mtoc-disc { display: none; }   /* the rail shows only where the margin is wide enough */
@media (prefers-reduced-motion: reduce) { .rz-mtoc-rail a, .rz-mtoc-disc a { transition: none; } }
