/* ── Fonts (mirrored from about.css) ─────────────────────────────── */
@font-face {
  font-family: "Acumin-Light";
  src: url('./fonts/Acumin-Pro/Acumin-Pro-Light.otf');
}
@font-face {
  font-family: "Acumin-Regular";
  src: url('./fonts/Acumin-Pro/Acumin-Pro-Book.otf');
}

/* ── Tokens ───────────────────────────────────────────────────────── */
:root {
  --blue:       #0e50c8;
  --ink:        #0a1a2b;
  --muted:      #556070;
  --rule:       #dde1e8;
  --bg:         #ffffff;
  --page-max:   720px;
  --gutter:     clamp(20px, 5vw, 56px);
  --font-light: "Acumin-Light",   system-ui, sans-serif;
  --font-reg:   "Acumin-Regular", system-ui, sans-serif;
}

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

html {
  background: #fff !important;
}

body {
  margin: 0 !important;
  background: #fff !important;
  color: var(--ink) !important;
  font-family: var(--font-light) !important;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 0 !important;
}

/* ── Page wrapper ─────────────────────────────────────────────────── */
.doc-page {
  flex: 1 !important;
  width: 100% !important;
  max-width: calc(var(--page-max) + var(--gutter) * 2) !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  /* top padding accounts for the fixed 80px header + visual breathing room */
  padding-top: calc(80px + clamp(24px, 4vw, 48px)) !important;
  padding-bottom: 64px !important;
  padding-left: var(--gutter) !important;
  padding-right: var(--gutter) !important;
  background: #fff !important;
  color: var(--ink) !important;
}

/* ── Page header ──────────────────────────────────────────────────── */
.doc-page__label {
  font-family: var(--font-reg);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

.doc-page__title {
  font-family: var(--font-light);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 16px;
}

.doc-page__lede {
  font-family: var(--font-light);
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}

/* ── Table of contents ────────────────────────────────────────────── */
.doc-toc {
  margin: 40px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--blue);
  background: #f2f6fd;
  border-radius: 0 8px 8px 0;
}

.doc-toc__title {
  font-family: var(--font-reg);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}

.doc-toc ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.doc-toc a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  font-family: var(--font-light);
}

.doc-toc a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Document sections ────────────────────────────────────────────── */
.doc-section {
  margin-top: 52px !important;
  padding-top: 48px !important;
  border-top: 1px solid var(--rule) !important;
}

.doc-section:first-of-type {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 40px !important;
}

.doc-section__num {
  font-family: var(--font-reg);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 8px;
}

.doc-section h2 {
  font-family: var(--font-reg);
  font-size: clamp(18px, 2.2vw, 23px);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 600;
}

.doc-section h3 {
  font-family: var(--font-reg);
  font-size: clamp(13px, 1.2vw, 14px);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 28px 0 8px;
  font-weight: 600;
}

.doc-section p {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.7;
}

.doc-section p:last-child { margin-bottom: 0; }

.doc-section ul,
.doc-section ol {
  color: var(--muted);
  margin: 0 0 16px 20px;
  padding: 0;
  line-height: 1.7;
}

.doc-section li { margin: 5px 0; }

.doc-section strong {
  color: var(--ink);
  font-family: var(--font-reg);
  font-weight: 600;
}

.doc-section a {
  color: var(--blue);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* ── Footer passthrough ───────────────────────────────────────────── */
footer .newsletter-msg {
  margin-top: 8px !important;
  min-height: 1em !important;
}
