/* =========================================================================
   NewsGlobalERP — General User (Service Holder) Documentation
   style.css
   Design system built around the brand violet palette extracted from
   newsglobalerp.com. Adds a numbered .steps component for step-by-step guides.
   ========================================================================= */

/* ----------------------------- Design tokens ----------------------------- */
:root {
  /* Brand palette (extracted from newsglobalerp.com) */
  --brand-primary: #722af8;
  --brand-primary-rgb: 114, 42, 248;
  --brand-dark: #20005c;
  --brand-light: #d3befb;
  --brand-tint: #f9f9ff;

  /* Neutrals */
  --ink-900: #101010;
  --ink-700: #2a2a33;
  --ink-600: #434343;
  --ink-400: #6b6b78;
  --line-200: #e0e0e0;
  --line-100: #f0f0f0;
  --surface: #ffffff;
  --surface-2: #f9f9ff;

  /* Callout accents */
  --info: #2563eb;
  --info-bg: #eff4ff;
  --success: #0f9d6e;
  --success-bg: #e9f9f2;
  --warning: #c2790a;
  --warning-bg: #fff6e6;
  --danger: #dc2b3d;
  --danger-bg: #fdecee;

  /* Gradient */
  --brand-gradient: linear-gradient(135deg, #722af8 0%, #20005c 100%);

  /* Shape & shadow */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 16, .05);
  --shadow: 0 6px 20px rgba(32, 0, 92, .07);
  --shadow-lg: 0 18px 48px rgba(32, 0, 92, .14);

  /* Layout */
  --topbar-h: 64px;
  --sidebar-w: 300px;
  --toc-w: 248px;
  --maxw: 1480px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Poppins", var(--font-sans);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 20px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: var(--surface-2);
  line-height: 1.65;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink-900); line-height: 1.25; }

code {
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--brand-tint);
  border: 1px solid var(--line-200);
  border-radius: 6px;
  padding: .12em .4em;
  color: var(--brand-dark);
}

::selection { background: var(--brand-light); color: var(--brand-dark); }

/* ------------------------------- Top bar --------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-200);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar__menu-btn {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-200);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink-700);
  border-radius: 2px;
  position: relative;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }
body.drawer-open .hamburger { background: transparent; }
body.drawer-open .hamburger::before { transform: translateY(6px) rotate(45deg); }
body.drawer-open .hamburger::after { transform: translateY(-6px) rotate(-45deg); }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--brand-gradient);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  border-radius: 11px;
  box-shadow: var(--shadow);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--ink-900); font-size: 15px; }
.brand__sub { font-size: 12px; color: var(--ink-400); }

.topbar__actions { display: flex; align-items: center; gap: 12px; }
.topbar__badge {
  font-size: 12px; font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 5px 11px;
  border-radius: 999px;
}
.topbar__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-600);
  padding: 8px 12px;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .2s, color .2s;
}
.topbar__link:hover { border-color: var(--brand-light); color: var(--brand-primary); }

.ext-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------- Layout ---------------------------------- */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  align-items: start;
}

/* ------------------------------- Sidebar --------------------------------- */
.sidebar {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 22px 16px 40px;
  border-right: 1px solid var(--line-200);
  background: var(--surface);
}

.search { position: relative; margin-bottom: 14px; }
.search__icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px;
  fill: none; stroke: var(--ink-400); stroke-width: 2; stroke-linecap: round;
  pointer-events: none;
}
.search__input {
  width: 100%;
  padding: 11px 38px 11px 38px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-700);
  background: var(--surface-2);
  border: 1px solid var(--line-200);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.search__input:focus {
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), .15);
}
.search__input::placeholder { color: var(--ink-400); }
.search__kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  color: var(--ink-400);
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: 6px;
  padding: 1px 7px;
}

/* Search results */
.search-results { margin-bottom: 8px; }
.search-results__list { list-style: none; margin: 0; padding: 0; }
.search-results__list li { margin: 0; }
.search-result {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  transition: background .15s;
}
.search-result:hover, .search-result.is-active { background: var(--brand-tint); }
.search-result__title { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.search-result__title mark { background: var(--brand-light); color: var(--brand-dark); border-radius: 3px; padding: 0 1px; }
.search-result__group { display: block; font-size: 11.5px; color: var(--ink-400); margin-top: 1px; }
.search-result__snippet { display: block; font-size: 12px; color: var(--ink-400); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result__snippet mark { background: var(--brand-light); color: var(--brand-dark); border-radius: 3px; }

.search-results__empty { text-align: center; padding: 26px 14px; }
.search-results__empty svg { width: 30px; height: 30px; fill: none; stroke: var(--brand-light); stroke-width: 2; stroke-linecap: round; }
.search-results__empty p { margin: 10px 0 2px; font-weight: 600; color: var(--ink-700); }
.search-results__empty span { font-size: 12.5px; color: var(--ink-400); }

/* Nav */
.nav__group { margin-bottom: 4px; }
.nav__group-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  border: none; background: none; cursor: pointer;
  font-family: var(--font-head);
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-400);
  padding: 12px 10px 6px;
}
.nav__chevron {
  width: 13px; height: 13px; margin-left: auto;
  fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s ease;
}
.nav__group.is-collapsed .nav__chevron { transform: rotate(-90deg); }
.nav__list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.nav__group.is-collapsed .nav__list { display: none; }
.nav__link {
  display: block;
  padding: 7px 12px;
  margin: 1px 0;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--ink-600);
  border-left: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.nav__link:hover { background: var(--brand-tint); color: var(--brand-dark); }
.nav__link.is-sub { padding-left: 22px; font-size: 13px; color: var(--ink-400); }
.nav__link.is-active {
  background: var(--brand-tint);
  color: var(--brand-primary);
  font-weight: 600;
  border-left-color: var(--brand-primary);
}

/* ------------------------------- Content --------------------------------- */
.content { min-width: 0; padding: 0 12px; }
.content__inner { max-width: 820px; margin: 0 auto; padding: 38px 22px 80px; }

.doc-hero { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line-200); }
.doc-hero__eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-tint);
  border: 1px solid var(--brand-light);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.doc-hero__title { font-size: 38px; font-weight: 700; margin: 0 0 14px; letter-spacing: -.02em; }
.doc-hero__lead { font-size: 17px; color: var(--ink-600); margin: 0 0 18px; max-width: 64ch; }
.doc-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-600);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: 999px;
  padding: 5px 12px;
}

/* Sections */
.doc-section { scroll-margin-top: calc(var(--topbar-h) + 24px); padding: 26px 0; border-bottom: 1px solid var(--line-100); }
.doc-section:last-of-type { border-bottom: none; }
.doc-section[data-sub="true"] { padding-top: 6px; }

.doc-section__head { display: flex; align-items: center; gap: 10px; }
.doc-section h2 { font-size: 27px; margin: 0; letter-spacing: -.01em; }
.doc-section h3 { font-size: 20px; margin: 18px 0 0; }
.doc-section[data-sub="true"] h3 { margin-top: 0; }
.micro-heading { font-family: var(--font-head); font-size: 15.5px; font-weight: 600; color: var(--ink-700); margin: 18px 0 4px; }
.doc-section p { margin: 12px 0; color: var(--ink-600); }
.doc-section .lead { font-size: 16.5px; color: var(--ink-700); }

/* Copy-link button */
.copy-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid transparent;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--ink-400);
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s, color .18s, border-color .18s, background .18s;
}
.doc-section__head:hover .copy-link, .copy-link:focus-visible { opacity: 1; }
/* Touch / no-hover devices: keep copy-link visible since hover is unavailable. */
@media (hover: none) {
  .copy-link { opacity: .65; }
}
.copy-link:hover { color: var(--brand-primary); border-color: var(--brand-light); background: var(--brand-tint); }
.copy-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Highlight flash on jump */
@keyframes section-flash {
  0% { box-shadow: 0 0 0 0 rgba(var(--brand-primary-rgb), .0); background: rgba(var(--brand-primary-rgb), .10); }
  100% { box-shadow: none; background: transparent; }
}
.doc-section.is-flash { animation: section-flash 1.6s ease-out; border-radius: var(--radius); }

/* ----------------------------- Callout boxes ----------------------------- */
.callout {
  display: flex; gap: 13px;
  padding: 15px 17px;
  margin: 18px 0;
  border-radius: var(--radius);
  border: 1px solid var(--line-200);
  background: var(--surface);
  border-left-width: 4px;
}
.callout__icon {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 700; font-size: 14px;
  color: #fff;
}
.callout__body { min-width: 0; }
.callout__title { font-family: var(--font-head); font-weight: 600; color: var(--ink-900); margin: 0 0 3px; }
.callout__body p { margin: 0; color: var(--ink-600); }
.callout__title + p { margin-top: 2px; }

.callout--info { border-left-color: var(--info); background: var(--info-bg); }
.callout--info .callout__icon { background: var(--info); font-style: italic; font-family: Georgia, serif; }
.callout--success { border-left-color: var(--success); background: var(--success-bg); }
.callout--success .callout__icon { background: var(--success); }
.callout--warning { border-left-color: var(--warning); background: var(--warning-bg); }
.callout--warning .callout__icon { background: var(--warning); }
.callout--danger { border-left-color: var(--danger); background: var(--danger-bg); }
.callout--danger .callout__icon { background: var(--danger); }

/* ----------------------------- Reference links --------------------------- */
.ref-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.ref-link {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 15px;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s, color .18s;
}
.ref-link:hover {
  color: var(--brand-primary);
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.ref-link .ext-icon { color: var(--brand-primary); }

/* ------------------------- Numbered steps (guide) ------------------------ */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 20px 0;
  padding: 0;
}
.steps > li {
  position: relative;
  counter-increment: step;
  padding: 0 0 22px 52px;
  margin: 0;
}
/* Vertical connector line between steps */
.steps > li::after {
  content: "";
  position: absolute;
  left: 17px; top: 36px; bottom: -4px;
  width: 2px;
  background: var(--line-200);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
/* Number badge */
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--brand-gradient);
  color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.steps__title { font-family: var(--font-head); font-weight: 600; color: var(--ink-900); font-size: 16px; margin: 6px 0 4px; }
.steps p { margin: 6px 0; color: var(--ink-600); }
.steps .ref-links { margin: 12px 0 0; }

/* ----------------------------- Feature cards ----------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.feature-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-light); }
.feature-card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-tint);
  margin-bottom: 12px;
}
.feature-card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h4 { margin: 0 0 5px; font-size: 16px; }
.feature-card p { margin: 0; font-size: 14px; color: var(--ink-400); }

/* ----------------------------- Code blocks ------------------------------- */
.code-box {
  position: relative;
  margin: 18px 0;
  border-radius: var(--radius);
  border: 1px solid var(--ink-700);
  background: #16131f;
  overflow: hidden;
}
.code-box__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: #211c30;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.code-box__lang { font-size: 12px; color: var(--brand-light); font-weight: 600; letter-spacing: .04em; }
.code-box__copy {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,.16);
  background: transparent;
  color: #cfc8e6;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.code-box__copy:hover { background: rgba(var(--brand-primary-rgb), .25); color: #fff; }
.code-box pre { margin: 0; padding: 15px 16px; overflow-x: auto; }
.code-box code {
  background: none; border: none; padding: 0;
  color: #e6e1f5;
  font-size: 13.5px;
  line-height: 1.7;
}

/* --------------------------- Image placeholders -------------------------- */
.img-ph {
  margin: 18px 0;
  border: 1.5px dashed var(--brand-light);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(45deg, var(--brand-tint) 0, var(--brand-tint) 12px, #fff 12px, #fff 24px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.img-ph--16x9 { aspect-ratio: 16 / 9; }
.img-ph__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; }
.img-ph__glyph { width: 38px; height: 38px; fill: none; stroke: var(--brand-primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.img-ph__label { margin-top: 10px; font-family: var(--font-head); font-weight: 600; color: var(--brand-dark); font-size: 14.5px; }
.img-ph__dim { margin-top: 2px; font-size: 12.5px; color: var(--ink-400); }

/* Galleries */
.img-gallery { display: grid; gap: 14px; margin: 18px 0; }
.img-gallery .img-ph { margin: 0; aspect-ratio: 4 / 3; }
.img-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.img-gallery--3 { grid-template-columns: repeat(3, 1fr); }
.img-gallery--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .img-gallery--4 { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------- Footer ---------------------------------- */
.doc-footer { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-200); }
.doc-footer p { font-size: 13px; color: var(--ink-400); margin: 0; }

/* --------------------------- Table of contents --------------------------- */
.toc {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 38px 20px;
}
.toc__title { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); margin: 0 0 12px; }
.toc__nav { display: flex; flex-direction: column; gap: 1px; border-left: 2px solid var(--line-200); }
.toc__link {
  padding: 5px 0 5px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 13px;
  color: var(--ink-400);
  transition: color .15s, border-color .15s;
}
.toc__link:hover { color: var(--brand-dark); }
.toc__link.is-sub { padding-left: 26px; font-size: 12.5px; }
.toc__link.is-active { color: var(--brand-primary); border-left-color: var(--brand-primary); font-weight: 600; }

/* ------------------------------ Back to top ------------------------------ */
.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 50;
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
}
.back-to-top:not([hidden]) { opacity: 1; transform: translateY(0); }
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* -------------------------------- Toast ---------------------------------- */
.toast {
  position: fixed;
  left: 50%; bottom: 30px;
  transform: translateX(-50%) translateY(16px);
  z-index: 80;
  background: var(--ink-900);
  color: #fff;
  font-size: 13.5px; font-weight: 500;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Drawer backdrop */
.drawer-backdrop {
  position: fixed; inset: 0;
  z-index: 55;
  background: rgba(16, 16, 16, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s;
}
.drawer-backdrop:not([hidden]) { opacity: 1; }

/* ------------------------------ Responsive ------------------------------- */
/* Tablet: hide TOC, keep sidebar + content (2-col) */
@media (max-width: 1180px) {
  .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .toc { display: none; }
}

/* Mobile: sidebar becomes a drawer */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .topbar__menu-btn { display: inline-flex; }
  .topbar__badge { display: none; }

  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    width: min(86vw, 320px);
    height: calc(100vh - var(--topbar-h));
    z-index: 58;
    transform: translateX(-104%);
    transition: transform .28s ease;
    box-shadow: var(--shadow-lg);
  }
  body.drawer-open .sidebar { transform: translateX(0); }

  .content__inner { padding: 28px 18px 70px; }
  .doc-hero__title { font-size: 30px; }
  .doc-section h2 { font-size: 23px; }
  .img-gallery--2, .img-gallery--3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .doc-hero__title { font-size: 26px; }
  .ref-link { width: 100%; }
}

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