/* ─────────────────────────────────────────────────────────────────────────
   FieldFaktor Help Center
   Tokens mirror the product (apps/app/src/index.css + apps/web global.css):
   charcoal dark default, Signal Orange #FF5A1F accent, Space Grotesk /
   DM Sans / IBM Plex Mono, wordmark in Barlow 800 per FieldFaktorLockup.jsx.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --accent: #FF5A1F;
  --accent-dim: rgba(255, 90, 31, 0.15);
  --accent-mid: rgba(255, 90, 31, 0.35);
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius-card: 16px;
  --radius-btn: 14px;
  --radius-input: 12px;
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-brand: 'Barlow', 'Bahnschrift', 'Arial Black', sans-serif;
  --topbar-h: 64px;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  /* On dark surfaces Signal Orange is 6.39:1 — text uses it directly
     (mirrors apps/web --brand-text). */
  --accent-text: #FF5A1F;
  --bg: #0d1117;
  --surface: #161c26;
  --card: #161c26;
  --elevated: #1c2433;
  --border: rgba(255, 255, 255, 0.07);
  --divider: rgba(255, 255, 255, 0.05);
  --text: #f2f2f4;
  --text-secondary: #a8a8b4;
  --text-muted: #8090a0;
  --input-bg: #1a2130;
  --input-border: rgba(255, 255, 255, 0.09);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.3);
  --body-gradient: radial-gradient(1200px 420px at 50% -10%, rgba(255, 90, 31, 0.12) 0%, transparent 60%);
  --code-bg: #10151f;
  --scrim: rgba(4, 8, 14, 0.6);
}

[data-theme="light"] {
  color-scheme: light;
  /* Signal Orange on white is 3.12:1 and fails WCAG AA for normal text;
     Orange Deep #CF3D0C is 5.42:1 (mirrors apps/web --brand-text). Fills,
     borders and glows keep --accent; anything setting `color:` uses
     --accent-text. */
  --accent-text: #CF3D0C;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --card: #ffffff;
  --elevated: #f0f1f3;
  --border: rgba(0, 0, 0, 0.08);
  --divider: rgba(0, 0, 0, 0.05);
  --text: #1a1a2e;
  --text-secondary: #5a5a6e;
  --text-muted: #6a6a7e;
  --input-bg: #ffffff;
  --input-border: rgba(0, 0, 0, 0.12);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
  --body-gradient: radial-gradient(1200px 420px at 50% -10%, rgba(255, 90, 31, 0.06) 0%, transparent 60%);
  --code-bg: #eef0f4;
  --scrim: rgba(20, 24, 32, 0.35);
}

/* ── Base ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  background-image: var(--body-gradient);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ── Wordmark (mirrors apps/web FieldFaktorLockup.jsx) ── */
.wm { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.wm-mark { display: block; height: 22px; width: auto; }
.wm-mark--light { display: none; }
[data-theme="light"] .wm-mark--dark { display: none; }
[data-theme="light"] .wm-mark--light { display: block; }
.wm-text {
  font-family: var(--font-brand); font-weight: 800; font-size: 15px;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
}
.wm-text-accent { color: var(--accent); }

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1400px; margin: 0 auto; height: var(--topbar-h);
  display: flex; align-items: center; gap: 20px; padding: 0 20px;
}
.topbar-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-brand:hover { text-decoration: none; }
.topbar-brand-sub {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted);
  border-left: 1px solid var(--border); padding-left: 10px;
}
.topbar-links { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-shrink: 0; }
.topbar-links a { color: var(--text-secondary); font-size: 14px; font-weight: 600; }
.topbar-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle { display: none; }

.theme-toggle {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--accent-mid); }
.theme-toggle-icon { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset -4px -3px 0 0 var(--text-secondary); }
[data-theme="light"] .theme-toggle-icon {
  box-shadow: none; background: var(--warning); position: relative;
}

/* ── Search ── */
.topbar-search { position: relative; flex: 1; max-width: 460px; }
.topbar-search input,
.hero-search input {
  width: 100%; padding: 9px 38px 9px 14px;
  background: var(--input-bg); color: var(--text);
  border: 1px solid var(--input-border); border-radius: var(--radius-input);
  font-family: var(--font-body); font-size: 14px;
}
.topbar-search input:focus, .hero-search input:focus { border-color: var(--accent); outline: none; }
.search-kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px; background: var(--surface);
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
  background: var(--elevated); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-card);
  max-height: 420px; overflow-y: auto; padding: 6px;
}
.search-result {
  display: block; padding: 10px 12px; border-radius: 8px; cursor: pointer;
}
.search-result:hover, .search-result.is-selected { background: var(--accent-dim); text-decoration: none; }
.search-result-title { display: block; font-weight: 600; font-size: 14px; color: var(--text); }
.search-result-section {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px;
}
.search-result-snippet { display: block; font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.search-empty { padding: 14px; font-size: 13.5px; color: var(--text-muted); text-align: center; }

/* ── Shell / sidebar ── */
.shell {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0;
  min-height: calc(100vh - var(--topbar-h));
}
.sidebar {
  border-right: 1px solid var(--border);
  padding: 28px 16px 40px 20px;
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
}
.side-section { margin-bottom: 22px; }
.side-section-title {
  display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 8px;
}
.side-section-title:hover, .side-section-title.is-active { color: var(--accent-text); text-decoration: none; }
.side-links { display: flex; flex-direction: column; }
.side-link {
  color: var(--text-secondary); font-size: 13.5px; padding: 5px 10px;
  border-left: 2px solid var(--divider); border-radius: 0 8px 8px 0;
}
.side-link:hover { color: var(--text); background: var(--accent-dim); text-decoration: none; }
.side-link.is-active {
  color: var(--accent-text); border-left-color: var(--accent);
  background: var(--accent-dim); font-weight: 600;
}
.sidebar-scrim { display: none; }

.main { padding: 36px 40px 80px; min-width: 0; }

/* ── Breadcrumb / meta ── */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13px; color: var(--text-muted); margin-bottom: 22px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb span[aria-current] { color: var(--text-secondary); }
.audience-chip {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent-dim);
  border: 1px solid var(--accent-mid); border-radius: 999px; padding: 3px 12px;
}
.article-updated { font-size: 13px; color: var(--text-muted); }

/* ── Article ── */
.article-wrap { display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: 48px; }
.article { min-width: 0; }
.article-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; }
.article-desc { font-size: 17px; color: var(--text-secondary); margin: 10px 0 14px; }
.article-meta { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }

.article-body { padding-top: 10px; font-size: 15.5px; }
.article-body h2 {
  font-size: 23px; font-weight: 700; margin: 40px 0 12px; padding-top: 8px;
}
.article-body h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.article-body h4 { font-size: 15.5px; font-weight: 700; margin: 22px 0 8px; }
.h-anchor { margin-left: 8px; opacity: 0; font-weight: 400; font-size: 0.85em; }
.article-body h2:hover .h-anchor, .article-body h3:hover .h-anchor { opacity: 0.7; }
.article-body p { margin: 0 0 14px; }
.article-body code {
  font-family: var(--font-mono); font-size: 0.86em;
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 6px;
}
.article-body pre.code {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; overflow-x: auto; margin: 0 0 16px;
}
.article-body pre.code code { background: none; border: none; padding: 0; font-size: 13px; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.article-body blockquote {
  margin: 0 0 16px; padding: 4px 18px; border-left: 3px solid var(--accent-mid);
  color: var(--text-secondary);
}
.article-body ul { margin: 0 0 16px; padding-left: 22px; }
.article-body ul li { margin-bottom: 6px; }

/* Numbered steps — the core how-to pattern. */
.article-body ol { list-style: none; counter-reset: steps; margin: 0 0 20px; padding: 0; }
.article-body ol > li {
  counter-increment: steps; position: relative;
  padding: 0 0 14px 44px; margin: 0;
}
.article-body ol > li::before {
  content: counter(steps);
  position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid var(--accent-mid);
  color: var(--accent-text); font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.article-body ol > li:not(:last-child)::after {
  content: ''; position: absolute; left: 13.5px; top: 30px; bottom: -2px;
  width: 1px; background: var(--divider);
}
.article-body ol ul, .article-body ol ol { margin-top: 8px; padding-left: 18px; list-style: disc; }
.article-body ol ul li::before, .article-body ol ol li::before { display: none; }
.article-body ol ul li, .article-body ol ol li { padding: 0; margin-bottom: 4px; counter-increment: none; }
.article-body ol ul li::after, .article-body ol ol li::after { display: none; }
.article-body ol ul { list-style: disc; }

/* ── Callouts ── */
.callout {
  border-radius: 12px; border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface); padding: 14px 18px; margin: 0 0 18px;
}
.callout-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.callout-icon {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-dim); color: var(--accent-text);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.callout-title { font-weight: 700; font-size: 14px; font-family: var(--font-head); }
.callout-body { font-size: 14px; color: var(--text-secondary); }
.callout-body p:last-child { margin-bottom: 0; }
.callout--tip { border-left-color: var(--success); }
.callout--tip .callout-icon { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.callout--warning { border-left-color: var(--warning); }
.callout--warning .callout-icon { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.callout--important { border-left-color: var(--danger); }
.callout--important .callout-icon { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* ── Tables ── */
.table-scroll { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 12px; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 14px; }
.article-body th {
  text-align: left; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted);
  background: var(--surface); padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.article-body tr:last-child td { border-bottom: none; }

/* ── Screenshots ── */
.shot { margin: 6px 0 22px; }
.shot-frame {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.shot-frame img { display: block; width: 100%; }
.shot figcaption { font-size: 13px; color: var(--text-muted); margin-top: 10px; text-align: center; }
.shot--pending .shot-frame {
  min-height: 180px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, var(--divider) 12px 13px),
    var(--surface);
  box-shadow: none;
}
.shot-pending-badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent-dim); border: 1px solid var(--accent-mid);
  border-radius: 999px; padding: 4px 14px;
}
.shot-pending-alt { font-size: 13px; color: var(--text-muted); max-width: 420px; text-align: center; padding: 0 20px; }

/* ── Article footer ── */
.article-foot { margin-top: 48px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.pager-link {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px;
}
.pager-link:hover { border-color: var(--accent-mid); text-decoration: none; }
.pager-next { text-align: right; }
.pager-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.pager-title { font-weight: 600; font-size: 14px; color: var(--text); }
.support-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; font-size: 14px; color: var(--text-secondary);
}
.suggest-edit { font-size: 13px; white-space: nowrap; }

/* ── TOC ── */
.toc {
  position: sticky; top: calc(var(--topbar-h) + 32px);
  align-self: start; font-size: 13px;
  border-left: 1px solid var(--border); padding-left: 18px;
  display: flex; flex-direction: column; gap: 8px;
  max-height: calc(100vh - var(--topbar-h) - 64px); overflow-y: auto;
}
.toc-title {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px;
}
.toc a { color: var(--text-secondary); }
.toc a:hover { color: var(--accent-text); text-decoration: none; }

/* ── Section index ── */
.section-head { margin-bottom: 28px; }
.section-head h1 { font-size: 32px; margin: 12px 0 8px; }
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 680px; margin: 0; }
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.article-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.article-card:hover { border-color: var(--accent-mid); transform: translateY(-2px); text-decoration: none; }
.article-card h2 { font-size: 17px; font-weight: 700; color: var(--text); }
.article-card p { font-size: 13.5px; color: var(--text-secondary); margin: 0; flex: 1; }
.article-card-cta { font-size: 13px; font-weight: 600; color: var(--accent-text); }

/* ── Home ── */
.is-home .main { padding: 0 40px 80px; }
.hero { text-align: center; padding: 72px 0 44px; }
.hero h1 { font-size: 42px; font-weight: 700; letter-spacing: -1px; }
.hero-sub { font-size: 17px; color: var(--text-secondary); margin: 12px auto 30px; max-width: 560px; }
.hero-search { position: relative; max-width: 560px; margin: 0 auto; }
.hero-search input { padding: 15px 20px; font-size: 16px; border-radius: var(--radius-btn); box-shadow: var(--shadow-card); }

.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 52px; }
.role-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.role-card:hover { border-color: var(--accent-mid); transform: translateY(-3px); text-decoration: none; }
.role-card-audience {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-text);
}
.role-card h2 { font-size: 20px; color: var(--text); }
.role-card p { font-size: 14px; color: var(--text-secondary); margin: 0; flex: 1; }
.role-card-cta { font-size: 13.5px; font-weight: 600; color: var(--accent-text); }

.home-h2 { font-size: 22px; margin-bottom: 18px; }
.top-tasks { margin-bottom: 52px; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.task-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px;
}
.task-card:hover { border-color: var(--accent-mid); text-decoration: none; }
.task-card-section {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
}
.task-card-title { font-weight: 600; font-size: 14.5px; color: var(--text); }

.all-sections { margin-bottom: 52px; }
.all-section { padding: 18px 0; border-top: 1px solid var(--divider); }
.all-section h3 { font-size: 16px; margin-bottom: 10px; }
.all-section h3 a { color: var(--text); }
.all-section-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.all-section-links a { font-size: 13.5px; color: var(--text-secondary); }
.all-section-links a:hover { color: var(--accent-text); }

.support-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--accent-dim), transparent 70%), var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-card); padding: 30px 34px;
}
.support-band h2 { font-size: 20px; }
.support-band p { color: var(--text-secondary); margin: 6px 0 0; font-size: 14.5px; }
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14.5px; padding: 12px 24px;
  border-radius: var(--radius-btn); white-space: nowrap;
}
.btn-primary:hover { text-decoration: none; filter: brightness(1.08); }

/* ── 404 ── */
.notfound { max-width: 560px; padding-top: 60px; }
.notfound h1 { font-size: 34px; margin-bottom: 14px; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 22px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-brand { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-text); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .article-wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 880px) {
  .topbar-inner { gap: 12px; }
  .topbar-brand-sub { display: none; }
  .topbar-links a { display: none; }
  .search-kbd { display: none; }
  .shell { grid-template-columns: 1fr; }
  .main { padding: 26px 20px 60px; }
  .is-home .main { padding: 0 20px 60px; }
  .hero { padding: 44px 0 32px; }
  .hero h1 { font-size: 30px; }
  .article-head h1 { font-size: 27px; }
  .pager { grid-template-columns: 1fr; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 38px; height: 38px; padding: 9px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    cursor: pointer; flex-shrink: 0;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text-secondary); }
  .sidebar {
    position: fixed; z-index: 60; top: 0; bottom: 0; left: 0;
    width: min(300px, 84vw); height: 100vh;
    background: var(--bg); border-right: 1px solid var(--border);
    transform: translateX(-102%); transition: transform 0.2s ease;
    padding-top: 24px;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .sidebar-scrim {
    display: block; position: fixed; inset: 0; z-index: 55; background: var(--scrim);
  }
  body.nav-open { overflow: hidden; }
}

/* ── Print — a printed article doubles as the PDF handout ── */
@media print {
  .topbar, .sidebar, .toc, .footer, .pager, .support-card, .breadcrumb, .theme-toggle { display: none !important; }
  body { background: #fff; color: #111; }
  .shell { display: block; }
  .main { padding: 0; }
  .article-wrap { display: block; }
  .shot-frame { box-shadow: none; border-color: #ccc; }
  a { color: #111; text-decoration: underline; }
}
