/* ═══════════════════════════════════════════
   DESIGN TOKENS — mirrors new_index.css
═══════════════════════════════════════════ */
@font-face { font-family:'Inter'; font-style:normal; font-weight:100 900; font-display:swap;
  src:url('/fonts/Inter-var.woff2') format('woff2'), url('/fonts/Inter-var.ttf') format('truetype'); }
:root {
  /* Light enterprise scheme: cool slate neutrals + charcoal accent (matches the site theme). */
  --bg:       oklch(0.99  0.004 255);
  --bg2:      oklch(0.955 0.007 255);
  --bg3:      oklch(0.930 0.008 255);
  --line:     oklch(0.875 0.008 255);
  --text:     oklch(0.14  0.012 250);
  --text-dim: oklch(0.46  0.010 250);
  --text-sub: oklch(0.52  0.010 250);
  --accent:   #323232;
  --accent-l: rgba(50,50,50,.08);
  --f-serif:  var(--f-sans);   /* unified: Inter everywhere (was Georgia serif) */
  --f-sans:   'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad:      max(24px, 5vw);
}
/* Dark = neutral surfaces + grey accent. theme.js sets data-theme; the @media keeps zero-JS
   auto-dark but yields to a forced light. */
:root[data-theme="dark"] {
  --bg:#16171a; --bg2:#1d1f23; --bg3:#25282e; --line:#2c2f36;
  --text:#e7e8ec; --text-dim:#9aa0aa; --text-sub:#8c929c;
  --accent:#c2c7d0; --accent-l:rgba(255,255,255,.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#16171a; --bg2:#1d1f23; --bg3:#25282e; --line:#2c2f36;
    --text:#e7e8ec; --text-dim:#9aa0aa; --text-sub:#8c929c;
    --accent:#c2c7d0; --accent-l:rgba(255,255,255,.08);
  }
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--bg); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* ═══════════════════════════════════════════
   DOCUMENT LAYOUT
═══════════════════════════════════════════ */
body > main {
  padding-top: 60px;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px var(--pad) 96px;
}

/* ═══════════════════════════════════════════
   DOCUMENT HEADER
═══════════════════════════════════════════ */
.doc-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.doc-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.doc-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.t-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.doc-header h1 {
  font-family: var(--f-serif);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 16px;
}

.doc-meta {
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: 0.02em;
}
.doc-meta strong { color: var(--text-dim); font-weight: 500; }

/* ═══════════════════════════════════════════
   INTRO CALLOUT
═══════════════════════════════════════════ */
.doc-intro {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 22px 26px;
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.8;
}
.doc-intro p + p { margin-top: 10px; }

/* ═══════════════════════════════════════════
   DOCUMENT BODY TYPOGRAPHY
═══════════════════════════════════════════ */
.doc-body h2 {
  font-family: var(--f-serif);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
  padding-top: 36px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
  line-height: 1.2;
}
.doc-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc-body p {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 14px;
  max-width: 660px;
}
.doc-body p:last-child { margin-bottom: 0; }

.doc-body ul,
.doc-body ol {
  margin-bottom: 14px;
  padding-left: 0;
  list-style: none;
}
.doc-body ul ul { margin-top: 8px; margin-bottom: 0; padding-left: 20px; }

.doc-body li {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.8;
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid var(--line);
  max-width: 660px;
}
.doc-body li:last-child { border-bottom: none; }
.doc-body li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 13px;
}
.doc-body ul ul > li::before { content: '·'; }

.doc-body strong { font-weight: 600; color: var(--text); }
.doc-body em { font-style: italic; color: var(--text-dim); }

.doc-body address {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════
   DOCUMENT FOOTER NOTE
═══════════════════════════════════════════ */
.doc-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.doc-footer p {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 8px;
}
.doc-footer p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 600px) {
  .doc { padding: 40px var(--pad) 64px; }
  .doc-header { margin-bottom: 32px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

/* WCAG 1.4.1 — in-text links need a non-color cue */
p a, li a { text-decoration: underline; text-underline-offset: 2px; }
