/* ============================================================
   TECHNICAL ENABLEMENT PORTAL — Documentation shell
   build/doc.css
   ------------------------------------------------------------
   Documentation layout for the microsite
   technical enablement portal. Built ONLY on the existing design
   tokens loaded ahead of this file:
     css/tokens.css  ->  css/semantic-tokens.css
     css/components.css  ->  css/microsite.css
   Components here reference --hx-*, --glass-*, --cap-*, --mode-*
   and the Ubuntu type scale. No new raw colours are introduced
   except a couple of doc-only neutral steps derived from white.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--hx-canvas);
  color: var(--hx-text-high);
  font-family: var(--font-body);
  font-weight: var(--fw-ubuntu-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* doc-only spacing + sizing scale (kept local to the portal) */
:root {
  --doc-bar-h: 60px;
  --doc-nav-w: 268px;
  --doc-toc-w: 232px;
  --doc-max: 1480px;
  --doc-measure: 56rem;
  --doc-radius: 14px;
  --doc-radius-sm: 9px;
}

/* ============================================================
   PASSWORD GATE  (parity with employee.html — soft gate, not auth)
   Markup is injected by doc.js; these styles mirror the original.
   ============================================================ */
.password-gate {
  position: fixed; inset: 0;
  background: rgba(13, 26, 45, 0.95);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 1;
  transition: opacity 0.6s ease-out;
}
.password-gate.hidden { opacity: 0; pointer-events: none; }
.password-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 48px; max-width: 420px; width: 90%;
  text-align: center;
  animation: docSlideUp 0.6s ease-out;
}
.password-card h1 { font-size: 24px; font-weight: 700; color: #fff; margin: 0 0 12px; letter-spacing: -0.5px; }
.password-card p  { color: rgba(255,255,255,0.5); font-size: 14px; margin: 0 0 32px; line-height: 1.5; }
.password-input-group { margin-bottom: 20px; }
.password-input-group input {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; color: #fff; font-size: 14px;
  box-sizing: border-box; transition: all 0.2s ease;
}
.password-input-group input:focus { outline: none; border-color: var(--cap-lightblue-600); background: rgba(255,255,255,0.08); }
.password-input-group input::placeholder { color: rgba(255,255,255,0.3); }
.password-submit {
  width: 100%; padding: 12px 24px;
  background: var(--cap-lightblue-600); border: none; border-radius: 8px;
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
}
.password-submit:hover { background: var(--cap-lightblue-700); transform: translateY(-2px); }
.password-submit:active { transform: translateY(0); }
.password-error { display: none; color: var(--red-400); font-size: 13px; margin-top: 12px; animation: docShake 0.4s ease; }
.password-error.show { display: block; }

@keyframes docSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes docShake { 0%,100% { transform: translateX(0);} 10%,30%,50%,70%,90% { transform: translateX(-4px);} 20%,40%,60%,80% { transform: translateX(4px);} }

/* Page reveal once unlocked */
.page-content { opacity: 0; pointer-events: none; transition: opacity 0.5s ease-out 0.15s; }
.page-content.visible { opacity: 1; pointer-events: auto; }

/* ============================================================
   TOP BAR
   ============================================================ */
.doc-bar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--doc-bar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px; z-index: 900;
  background: rgba(13, 26, 45, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.doc-bar__home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hx-text-high); }
.doc-bar__home img { height: 26px; width: auto; display: block; }
.doc-bar__home span { font-size: 13px; color: var(--hx-text-med); }
.doc-bar__crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hx-text-low); margin-left: 4px; min-width: 0; }
.doc-bar__crumbs a { color: var(--hx-text-med); text-decoration: none; }
.doc-bar__crumbs a:hover { color: var(--hx-text-high); }
.doc-bar__crumbs .sep { opacity: 0.5; }
.doc-bar__crumbs .cur { color: var(--hx-text-high); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-bar__spacer { flex: 1; }
.doc-bar__toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px; cursor: pointer;
  background: var(--hx-surface-1); border: 1px solid var(--glass-border); color: var(--hx-text-high);
}
.doc-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px; cursor: pointer; flex-shrink: 0;
  background: var(--hx-surface-1); border: 1px solid var(--glass-border); color: var(--hx-text-med);
  font-size: 15px; transition: background 0.15s ease, color 0.15s ease;
}
.doc-theme-toggle:hover { background: var(--hx-surface-2); color: var(--hx-text-high); }

/* The bar and mobile nav drawer are translucent panels over the page canvas,
   hardcoded to the dark navy since they predate light mode — re-point them
   under .hx-light so they don't stay dark when the rest of the page goes light. */
.hx-light .doc-bar { background: rgba(255, 255, 255, 0.72); }

/* ============================================================
   SHELL LAYOUT  (sidebar · content · on-this-page)
   ============================================================ */
.doc-shell {
  display: grid;
  grid-template-columns: var(--doc-nav-w) minmax(0, 1fr) var(--doc-toc-w);
  gap: 40px;
  max-width: var(--doc-max);
  margin: 0 auto;
  padding: calc(var(--doc-bar-h) + 16px) 32px 80px;
  align-items: start;
}

/* Left section nav (rendered by doc.js) */
.doc-nav {
  position: sticky; top: calc(var(--doc-bar-h) + 24px);
  max-height: calc(100vh - var(--doc-bar-h) - 40px);
  overflow-y: auto; padding-right: 8px;
}
.doc-nav__title { font-size: var(--fs-10); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--hx-text-low); margin: 0 0 14px 4px; }
.doc-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.doc-nav__link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--doc-radius-sm);
  color: var(--hx-text-med); text-decoration: none; font-size: 14px;
  border-left: 2px solid transparent; transition: background 0.15s ease, color 0.15s ease;
}
.doc-nav__link:hover { background: var(--hx-state-hover); color: var(--hx-text-high); }
.doc-nav__link.is-active { background: var(--hx-tint-accent-soft); color: var(--hx-text-high); border-left-color: var(--cap-lightblue-600); }
.doc-nav__num { font-size: 11px; color: var(--hx-text-low); min-width: 16px; }
.doc-nav__link.is-active .doc-nav__num { color: var(--cap-lightblue-400); }
/* in-page sub-anchors for the active page */
.doc-nav__sub { list-style: none; margin: 2px 0 6px; padding: 0 0 0 30px; display: flex; flex-direction: column; gap: 1px; }
.doc-nav__sub a { font-size: 13px; color: var(--hx-text-low); text-decoration: none; padding: 4px 8px; border-radius: 6px; display: block; }
.doc-nav__sub a:hover { color: var(--hx-text-high); background: var(--hx-state-hover); }

/* Right "on this page" rail (rendered by doc.js) */
.doc-toc {
  position: sticky; top: calc(var(--doc-bar-h) + 24px);
  max-height: calc(100vh - var(--doc-bar-h) - 40px); overflow-y: auto;
  font-size: 13px;
}
.doc-toc__title { font-size: var(--fs-10); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--hx-text-low); margin: 0 0 12px; }
.doc-toc__list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--glass-border); }
.doc-toc__list a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--hx-text-low); text-decoration: none; line-height: 1.4; }
.doc-toc__list a:hover { color: var(--hx-text-high); }
.doc-toc__list a.is-active { color: var(--cap-lightblue-400); border-left-color: var(--cap-lightblue-600); }
.doc-toc__list a.lvl-3 { padding-left: 26px; font-size: 12.5px; }

/* ============================================================
   CONTENT
   ============================================================ */
.doc-main { min-width: 0; max-width: var(--doc-measure); }
.doc-main > section { scroll-margin-top: calc(var(--doc-bar-h) + 20px); }
/* headings are the scroll targets for the TOC — offset them past the fixed bar */
.doc-main h2[id], .doc-main h3[id], .doc-acc[id] { scroll-margin-top: calc(var(--doc-bar-h) + 20px); }

.doc-eyebrow { font-size: var(--fs-10); font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cap-lightblue-400); margin: 0 0 12px; }
.doc-title { font-family: var(--font-display); font-weight: var(--fw-ubuntu-light); font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.5px; margin: 0 0 18px; }
.doc-lede { font-size: 18px; line-height: 1.6; color: var(--hx-text-med); margin: 0 0 14px; max-width: 46rem; }

.doc-main h2 { font-family: var(--font-display); font-weight: var(--fw-ubuntu-medium); font-size: 26px; line-height: 1.25; letter-spacing: -0.3px; margin: 56px 0 16px; padding-top: 8px; }
.doc-main h3 { font-weight: var(--fw-ubuntu-medium); font-size: 19px; line-height: 1.3; margin: 32px 0 12px; }
.doc-main h4 { font-weight: var(--fw-ubuntu-medium); font-size: 15px; line-height: 1.3; margin: 22px 0 8px; color: var(--hx-text-high); }
.doc-main p  { font-size: 15.5px; line-height: 1.7; color: var(--hx-text-med); margin: 0 0 16px; }
.doc-main ul, .doc-main ol { font-size: 15.5px; line-height: 1.7; color: var(--hx-text-med); margin: 0 0 16px; padding-left: 22px; }
.doc-main li { margin: 0 0 6px; }
.doc-main li::marker { color: var(--hx-text-low); }
.doc-main strong { color: var(--hx-text-high); font-weight: var(--fw-ubuntu-medium); }
.doc-main a { color: var(--cap-lightblue-400); text-decoration: none; }
.doc-main a:hover { text-decoration: underline; }
.doc-main hr { border: none; border-top: 1px solid var(--glass-border); margin: 40px 0; }

/* heading anchor link */
.doc-anchor { opacity: 0; margin-left: 8px; color: var(--hx-text-low); text-decoration: none; font-weight: 400; }
.doc-main h2:hover .doc-anchor, .doc-main h3:hover .doc-anchor { opacity: 1; }

/* inline code */
.doc-main :not(pre) > code {
  font-family: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  font-size: 0.86em; padding: 2px 6px; border-radius: 6px;
  background: var(--hx-surface-2); border: 1px solid var(--glass-border); color: var(--cap-turquoise-300);
  word-break: break-word;
}

/* ============================================================
   CODE BLOCKS  (with copy button via doc.js)
   ============================================================ */
.doc-code { position: relative; margin: 0 0 20px; }
.doc-code pre {
  margin: 0; padding: 16px 18px; overflow-x: auto;
  background: var(--cap-darkblue-800); border: 1px solid var(--glass-border);
  border-radius: var(--doc-radius-sm); box-shadow: var(--glass-shadow);
}
.doc-code pre code {
  font-family: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  font-size: 13px; line-height: 1.6; color: #d6e2f5; white-space: pre; background: none; border: none; padding: 0;
}
.doc-code__label { position: absolute; top: 0; left: 16px; transform: translateY(-50%); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--hx-text-low); background: var(--cap-darkblue-800); padding: 2px 8px; border: 1px solid var(--glass-border); border-radius: 20px; }
.doc-copy {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
  background: var(--hx-surface-1); border: 1px solid var(--glass-border); color: var(--hx-text-med);
  transition: all 0.15s ease;
}
.doc-copy:hover { background: var(--hx-surface-2); color: var(--hx-text-high); }
.doc-copy.copied { color: var(--green-400); border-color: var(--hx-tint-success-border); }

/* ============================================================
   CALLOUTS
   ============================================================ */
.doc-callout {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  padding: 14px 18px; margin: 0 0 20px; border-radius: var(--doc-radius-sm);
  background: var(--hx-surface-1); border: 1px solid var(--glass-border);
  border-left: 3px solid var(--hx-text-low);
}
.doc-callout__icon { font-size: 15px; line-height: 1.5; }
.doc-callout p { margin: 0; font-size: 14.5px; }
.doc-callout p + p { margin-top: 8px; }
.doc-callout--note    { border-left-color: var(--cap-lightblue-600); }
.doc-callout--note    .doc-callout__icon { color: var(--cap-lightblue-400); }
.doc-callout--tip     { border-left-color: var(--green-500); }
.doc-callout--tip     .doc-callout__icon { color: var(--green-400); }
.doc-callout--warning { border-left-color: var(--yellow-500); }
.doc-callout--warning .doc-callout__icon { color: var(--yellow-400); }
.doc-callout--important { border-left-color: var(--mode-sensing); }
.doc-callout--important .doc-callout__icon { color: var(--mode-sensing); }

/* ============================================================
   SPEC TABLES
   ============================================================ */
.doc-tablewrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--glass-border); border-radius: var(--doc-radius-sm); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.doc-table th, .doc-table td { text-align: left; padding: 11px 14px; vertical-align: top; line-height: 1.5; }
.doc-table thead th { background: var(--hx-surface-2); color: var(--hx-text-high); font-weight: var(--fw-ubuntu-medium); font-size: 12.5px; letter-spacing: 0.3px; border-bottom: 1px solid var(--glass-border); }
.doc-table tbody td { color: var(--hx-text-med); border-bottom: 1px solid var(--glass-border); }
.doc-table tbody tr:last-child td { border-bottom: none; }
.doc-table tbody tr:hover td { background: var(--hx-state-hover); }
.doc-table code { white-space: nowrap; }

/* ============================================================
   ACCORDION  (feature reference + FAQ-style sections)
   ============================================================ */
.doc-acc { border: 1px solid var(--glass-border); border-radius: var(--doc-radius-sm); margin: 0 0 12px; background: var(--hx-surface-1); overflow: hidden; }
.doc-acc__q {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 16px 18px; cursor: pointer; user-select: none;
  background: none; border: none; text-align: left; color: var(--hx-text-high);
  font-family: var(--font-body); font-size: 16px; font-weight: var(--fw-ubuntu-medium);
}
.doc-acc__q:hover { background: var(--hx-state-hover); }
.doc-acc__tag { font-size: 10px; letter-spacing: 0.6px; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; color: var(--hx-text-med); background: var(--hx-surface-2); border: 1px solid var(--glass-border); white-space: nowrap; }
.doc-acc__arrow { margin-left: auto; transition: transform 0.3s ease; color: var(--hx-text-low); font-size: 12px; }
.doc-acc.open .doc-acc__arrow { transform: rotate(180deg); }
.doc-acc__a { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1); }
.doc-acc.open .doc-acc__a { max-height: 2400px; }
.doc-acc__a-inner { padding: 4px 18px 20px; }
.doc-acc__a-inner p:first-child { margin-top: 0; }

/* the 4-part feature template grid */
.doc-spec { display: grid; gap: 14px; margin-top: 6px; }
.doc-spec__row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--glass-border); }
.doc-spec__row:first-child { border-top: none; }
.doc-spec__k { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--hx-text-low); padding-top: 2px; }
.doc-spec__v { font-size: 14.5px; line-height: 1.6; color: var(--hx-text-med); }
.doc-spec__v p { font-size: 14.5px; margin: 0 0 8px; }
.doc-spec__v p:last-child { margin-bottom: 0; }

/* ============================================================
   CARDS  (hub grid + cross-links)
   ============================================================ */
.doc-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 8px 0 28px; }
.doc-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px; border-radius: var(--doc-radius);
  background: var(--hx-surface-1); border: 1px solid var(--glass-border);
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.doc-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--card-accent, var(--cap-lightblue-600)); opacity: 0.85; }
.doc-card:hover { transform: translateY(-3px); border-color: var(--card-accent, var(--cap-lightblue-600)); background: var(--hx-surface-2); }
.doc-card__kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--card-accent, var(--cap-lightblue-400)); }
.doc-card__title { font-size: 18px; font-weight: var(--fw-ubuntu-medium); color: var(--hx-text-high); }
.doc-card__desc { font-size: 14px; line-height: 1.55; color: var(--hx-text-med); }
.doc-card__more { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--card-accent, var(--cap-lightblue-400)); }

/* ============================================================
   NUMBERED STEPS  (implementation flow)
   ============================================================ */
.doc-steps { list-style: none; counter-reset: docstep; margin: 8px 0 24px; padding: 0; }
.doc-steps > li {
  position: relative; counter-increment: docstep;
  padding: 0 0 22px 52px; margin: 0;
}
.doc-steps > li::before {
  content: counter(docstep); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
  background: var(--cap-blue-600); box-shadow: 0 0 0 4px var(--hx-tint-primary-soft);
}
.doc-steps > li::after {
  content: ""; position: absolute; left: 16px; top: 38px; bottom: 0; width: 2px; background: var(--glass-border);
}
.doc-steps > li:last-child { padding-bottom: 0; }
.doc-steps > li:last-child::after { display: none; }
.doc-steps__title { font-size: 16px; font-weight: var(--fw-ubuntu-medium); color: var(--hx-text-high); margin: 4px 0 6px; }
.doc-steps__unlocks { font-size: 13px; color: var(--cap-turquoise-300); margin-top: 6px; }
.doc-steps__unlocks strong { color: var(--cap-turquoise-300); }

/* ============================================================
   FILTER PILLS  (feature reference)
   ============================================================ */
.doc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.doc-filter__pill {
  font-size: 13px; padding: 7px 14px; border-radius: 20px; cursor: pointer;
  background: var(--hx-surface-1); border: 1px solid var(--glass-border); color: var(--hx-text-med);
  transition: all 0.15s ease;
}
.doc-filter__pill:hover { color: var(--hx-text-high); background: var(--hx-surface-2); }
.doc-filter__pill.is-active { background: var(--cap-blue-600); border-color: var(--cap-blue-600); color: #fff; }
.doc-search { width: 100%; max-width: 420px; padding: 11px 16px; margin: 0 0 16px; background: var(--hx-surface-1); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--hx-text-high); font-size: 14px; font-family: var(--font-body); }
.doc-search:focus { outline: none; border-color: var(--cap-lightblue-600); background: var(--hx-surface-1-hover); }
.doc-search::placeholder { color: var(--hx-text-low); }
.is-hidden { display: none !important; }

/* ============================================================
   FIGURES / DIAGRAMS
   ============================================================ */
.doc-figure { margin: 8px 0 26px; padding: 20px; border-radius: var(--doc-radius); background: var(--hx-surface-1); border: 1px solid var(--glass-border); }
.doc-figure svg { width: 100%; height: auto; display: block; }
.doc-figure img { width: 100%; height: auto; display: block; border-radius: var(--doc-radius-sm); }
.doc-figcaption { margin-top: 14px; font-size: 13px; color: var(--hx-text-low); text-align: center; line-height: 1.5; }

/* small helpers */
.doc-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.4px; padding: 3px 9px; border-radius: 20px; }
.doc-badge--live { background: var(--hx-badge-success-bg); color: var(--hx-badge-success-text); }
.doc-badge--plan { background: var(--hx-badge-warning-bg); color: var(--hx-badge-warning-text); }
.doc-badge--info { background: var(--hx-badge-info-bg); color: var(--hx-badge-info-text); }
.doc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.doc-tags span { font-size: 11px; padding: 3px 9px; border-radius: 6px; background: var(--hx-surface-2); border: 1px solid var(--glass-border); color: var(--hx-text-med); }

/* pillar accent helpers (set --card-accent / text colour) */
.acc-sensing       { --card-accent: var(--mode-sensing); }
.acc-orchestration { --card-accent: var(--mode-orchestration); }
.acc-data          { --card-accent: var(--mode-data); }
.acc-generative    { --card-accent: var(--mode-generative); }
.acc-blue          { --card-accent: var(--cap-blue-600); }
.acc-lightblue     { --card-accent: var(--cap-lightblue-600); }
.acc-turquoise     { --card-accent: var(--cap-turquoise-600); }

/* ============================================================
   PREV / NEXT PAGER
   ============================================================ */
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--glass-border); }
.doc-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--doc-radius-sm); background: var(--hx-surface-1); border: 1px solid var(--glass-border); text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease; }
.doc-pager a:hover { border-color: var(--cap-lightblue-600); background: var(--hx-surface-2); }
.doc-pager__dir { font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--hx-text-low); }
.doc-pager__name { font-size: 15px; color: var(--hx-text-high); font-weight: var(--fw-ubuntu-medium); }
.doc-pager a.next { text-align: right; grid-column: 2; }
.doc-pager a.prev { grid-column: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .doc-shell { grid-template-columns: var(--doc-nav-w) minmax(0, 1fr); gap: 32px; }
  .doc-toc { display: none; }
}
@media (max-width: 900px) {
  .doc-shell { grid-template-columns: minmax(0, 1fr); padding: calc(var(--doc-bar-h) + 16px) 20px 64px; }
  .doc-bar__toggle { display: inline-flex; }
  .doc-bar__home span { display: none; }
  .doc-nav {
    position: fixed; top: var(--doc-bar-h); left: 0; bottom: 0; width: 280px;
    max-height: none; padding: 20px; z-index: 850;
    background: rgba(13, 26, 45, 0.97); backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    transform: translateX(-100%); transition: transform 0.25s ease;
  }
  .doc-nav.is-open { transform: translateX(0); }
  .hx-light .doc-nav { background: rgba(255, 255, 255, 0.97); }
  .doc-scrim { position: fixed; inset: var(--doc-bar-h) 0 0; background: rgba(0,0,0,0.5); z-index: 840; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
  .doc-scrim.is-open { opacity: 1; pointer-events: auto; }
  .doc-pager { grid-template-columns: 1fr; }
  .doc-pager a.next { grid-column: 1; text-align: left; }
}
@media (min-width: 901px) { .doc-scrim { display: none; } }
@media (max-width: 600px) {
  .doc-spec__row { grid-template-columns: 1fr; gap: 4px; }
  .doc-spec__k { padding-top: 0; }
  .doc-acc__q { font-size: 15px; gap: 8px; }
  .doc-acc__tag { display: none; }
}

/* honour reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
