/* the user manual: a readable document column on the product site's chrome */
/* two panes: the contents stay put on the left; the text takes the rest of the screen.
   Below 980 px the contents become a drawer that slides over the text (the ☰ Contents button). */
.manual-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; padding: 0 clamp(16px, 2.5vw, 40px); }
.manual-side { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); z-index: 40; background: var(--surface); border-right: 1px solid var(--line);
  padding: 14px 16px 24px; overflow-y: auto; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
.manual-side.is-open { transform: none; }
.manual-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 39; }
.manual-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.toc-close { font-size: 1rem; }
@media (min-width: 980px) {
  .manual-wrap { grid-template-columns: 290px minmax(0, 1fr); }
  .manual-side { position: sticky; top: 62px; bottom: auto; width: auto; align-self: start; max-height: calc(100dvh - 62px); transform: none; box-shadow: none; padding: 24px 0 24px; border-right: 1px solid var(--line); background: transparent; z-index: auto; transition: none; }
  .manual-backdrop, .toc-toggle, .toc-close { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .manual-side { transition: none; } }
.manual-side-title { font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin: 0 0 8px; }
.manual-side .toc ul { list-style: none; margin: 0; padding: 0; }
.manual-side .toc > ul > li { margin: 2px 0; }
.manual-side .toc ul ul { padding-left: 12px; border-left: 1px solid var(--line); margin: 2px 0 6px 6px; }
.manual-side .toc a { display: block; color: var(--ink-soft); text-decoration: none; font-size: var(--text-sm); padding: 4px 8px; border-radius: 6px; }
.manual-side .toc a:hover { color: var(--ink); background: var(--brand-tint); }
.manual-side .toc a.is-current { color: var(--brand-dark); background: var(--brand-tint); font-weight: 600; }
.manual { width: 100%; min-width: 0; margin: 0; padding: 24px 0 64px; box-sizing: border-box; line-height: 1.6; }
.manual h2 { scroll-margin-top: 70px; }
.manual h3 { scroll-margin-top: 70px; }
.manual h1 { font-size: 2.1rem; margin: 0 0 8px; }
.manual h2 { font-size: 1.5rem; margin: 40px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.manual h3 { font-size: 1.12rem; margin: 26px 0 6px; }
.manual p, .manual li { color: var(--ink); }
.manual table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: var(--text-sm); }
.manual th, .manual td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.manual th { color: var(--ink-soft); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .06em; }
.manual code { font-family: var(--font-mono); font-size: .92em; background: var(--brand-tint); padding: 1px 5px; border-radius: 4px; }
.manual pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; overflow-x: auto; }
.manual a { color: var(--brand-dark); }
.manual hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.manual .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; }


/* the header must fit a phone: icon-only toggle, no wrapping, the sign-in link stays reachable */
.toc-toggle { white-space: nowrap; }
@media (max-width: 640px) { .toc-toggle-word { display: none; } }
