:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #0e1930;
  --muted: #4a5872;
  --line: #d6deeb;
  --blue: #1f56d8;
  --blue-hover: #1946b4;
  --on-blue: #ffffff;
  --hit: #ffe27a;
  --hit-ink: #3a2c00;
  --code-bg: #e9eef7;
  --surface-2: #f8fafd;
  --line-soft: #e3e9f3;
  --band: #e8eefa;
  --glow: rgba(31, 86, 216, 0.16);
  --glow-2: rgba(255, 214, 90, 0.22);
  --warn-bg: #fff6e0;
  --warn-line: #e3a008;
  --warn-ink: #5c3d00;
  --warn-icon: #b45309;
  --shadow: 0 1px 2px rgba(14, 25, 48, 0.08), 0 24px 60px -24px rgba(14, 25, 48, 0.35);
  --shadow-sm: 0 1px 2px rgba(14, 25, 48, 0.06), 0 8px 24px -12px rgba(14, 25, 48, 0.18);
  --shadow-lift: 0 2px 4px rgba(14, 25, 48, 0.06), 0 18px 36px -16px rgba(14, 25, 48, 0.28);
  --radius-lg: 14px;
  --radius-sm: 6px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1322;
    --surface: #131c30;
    --ink: #e7ecf6;
    --muted: #a6b3ca;
    --line: #27334c;
    --blue: #7aa2ff;
    --blue-hover: #9bb9ff;
    --on-blue: #0a1430;
    --hit: #f5cf4a;
    --hit-ink: #2a1f00;
    --code-bg: #1b2640;
    --surface-2: #17213a;
    --line-soft: #222d45;
    --band: #111a2e;
    --glow: rgba(122, 162, 255, 0.18);
    --glow-2: rgba(245, 207, 74, 0.07);
    --warn-bg: #2a2110;
    --warn-line: #b7841b;
    --warn-ink: #f6e3b4;
    --warn-icon: #f5c451;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px -24px rgba(0, 0, 0, 0.8);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 36px -16px rgba(0, 0, 0, 0.7);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-hover); }

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(1100px + 64px);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; clip-path: inset(6.25% round 22%); }
.site-nav { display: flex; gap: 20px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav .hide-sm { display: none; }
@media (min-width: 720px) { .site-nav .hide-sm { display: inline; } }

/* Hero */
.hero { padding: 32px 0 0; position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -120px 0 -360px;
  background:
    radial-gradient(60% 55% at 18% 30%, var(--glow), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, var(--glow-2), transparent 70%);
  pointer-events: none;
}
@media (min-width: 720px) { .hero { padding-top: 56px; } }

.hero h1 {
  margin: 0;
  max-width: 21ch;
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 750;
  text-wrap: balance;
}
.hero .lede {
  margin: 20px 0 0;
  max-width: 60ch;
  font-size: 1.15rem;
  color: var(--muted);
}
.hero .scope {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--muted);
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.25;
  border: 2px solid var(--blue);
}
.btn small { font-weight: 450; font-size: 0.82rem; opacity: 0.9; }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--on-blue); }
.btn-secondary { background: transparent; color: var(--blue); }
.btn-secondary:hover { background: var(--surface); color: var(--blue-hover); }
@media (max-width: 479px) { .btn { flex: 1 1 100%; } }

.release-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Showcase */
.showcase { padding: 40px 0 0; }
.showcase figure { margin: 0; min-width: 0; }
.showcase img {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.shot-main img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 24px;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots figure:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 12px);
  }
}
figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Sections */
section.block { padding: 72px 0 0; }
@media (min-width: 720px) { section.block { padding-top: 112px; } }
section.steps-block { padding-top: 64px; }
@media (min-width: 720px) { section.steps-block { padding-top: 88px; } }

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--blue);
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 730;
  text-wrap: balance;
}
h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 680;
}
.section-intro { margin: 0 0 36px; max-width: 62ch; color: var(--muted); }

/* How it works */
.steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.step h3 { font-size: 1.02rem; margin-bottom: 4px; }
.step p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--hit);
  color: var(--hit-ink);
  font-weight: 750;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.card {
  min-width: 0;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.cards .card { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.cards .card:hover, .cards .card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
}
@media (prefers-reduced-motion: reduce) {
  .cards .card { transition: none; }
  .cards .card:hover, .cards .card:focus-within { transform: none; }
}
.card-icon, .band-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 11%, transparent);
  margin-bottom: 16px;
}
.card-icon svg, .band-icon svg { width: 24px; height: 24px; }
.card-eyebrow {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.card > p { margin: 0 0 14px; }
.checks {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line-soft);
}
.checks li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 0.96rem;
  line-height: 1.5;
}
.checks li + li { border-top: 1px dashed var(--line-soft); }
.checks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.82em;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* Search */
.search-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 56px;
  align-items: start;
}
@media (min-width: 960px) { .search-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); } }
.search-feature p { margin: 0 0 14px; max-width: 60ch; }
.table-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: -3px; border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 16px; }
thead th {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
tbody tr:nth-child(even) { background: var(--surface-2); }
td code {
  font-size: 0.86em;
  background: var(--code-bg);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  overflow-wrap: normal;
  white-space: nowrap;
}
td:first-child { white-space: nowrap; }
td:first-child code {
  display: inline-block;
  margin: 1px 0;
  background: var(--hit);
  color: var(--hit-ink);
  font-weight: 600;
  padding: 0.08em 0.38em;
  border-radius: 4px;
}
td:last-child { color: var(--muted); }
td:last-child code { color: var(--ink); }
@media (max-width: 559px) {
  th, td { padding: 9px 12px; }
  table { font-size: 0.88rem; min-width: 520px; }
}

/* AI agent (MCP) */
.agent {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 960px) { .agent { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.agent-steps { margin: 0 0 6px; padding-left: 1.3em; }
.agent-steps li { margin-bottom: 8px; }
.agent-steps li::marker { color: var(--blue); font-weight: 700; }
.card > .snippet-label {
  margin: 20px 0 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--muted);
}
.card > .snippet-hint { margin: 4px 0 0; font-size: 0.88rem; color: var(--muted); }
.agent-card pre { margin: 8px 0 0; line-height: 1.5; }
.agent-card pre:focus-visible { outline-offset: 1px; }
.card > .agent-note { margin: 16px 0 0; font-size: 0.93rem; color: var(--muted); }
.tool-group + .tool-group { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-soft); }
.tool-head { margin: 0 0 8px; font-size: 0.93rem; color: var(--muted); }
.access {
  display: inline-block;
  margin-right: 6px;
  padding: 0.05em 0.5em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}
.access-write { color: var(--warn-ink); background: var(--warn-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn-line) 45%, transparent); }
.tool-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tool-list code { font-size: 0.82rem; overflow-wrap: normal; white-space: nowrap; }
.tools-card .agent-note { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.agent-sub { margin: 40px 0 12px; font-size: 1.3rem; }
.agent-security { display: grid; grid-template-columns: 1fr; column-gap: 40px; }
@media (min-width: 860px) {
  .agent-security { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-security li:nth-child(2) { border-top: 0; }
}
.agent-security strong { color: var(--ink); }
.agent-security li { color: var(--muted); }

/* Privacy band */
.band {
  margin-top: 112px;
  padding: 64px 0;
  background: var(--band);
  border-block: 1px solid var(--line-soft);
}
@media (max-width: 719px) { .band { margin-top: 72px; padding: 48px 0; } }
.privacy {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 40px;
}
@media (min-width: 760px) { .privacy { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.privacy li { min-width: 0; }
.privacy h3 { font-size: 1.05rem; margin-bottom: 4px; }
.privacy p { margin: 0; color: var(--muted); max-width: 36ch; }
.band-icon { background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }

/* Install */
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 8px 0 28px;
  padding: 16px 18px;
  max-width: 820px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid color-mix(in srgb, var(--warn-line) 45%, transparent);
  border-left: 4px solid var(--warn-line);
  border-radius: 10px;
}
.callout p { margin: 0; }
.callout-icon { flex: none; color: var(--warn-icon); line-height: 0; margin-top: 1px; }
.install {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (max-width: 479px) { .card { padding: 20px 18px 18px; } }
@media (min-width: 860px) { .install { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.install-card h3 { font-size: 1.3rem; margin-bottom: 2px; }
.install-meta { margin: 0 0 18px; color: var(--muted); font-size: 0.93rem; }
.install ol { margin: 0; padding-left: 1.3em; }
.install li { margin-bottom: 12px; }
.install li:last-child { margin-bottom: 0; }
.install li::marker { color: var(--blue); font-weight: 700; }
pre {
  margin: 10px 0;
  padding: 11px 14px;
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.86rem;
}
pre code { background: none; padding: 0; overflow-wrap: normal; }
pre.clicks { white-space: pre-wrap; }

/* FAQ */
.faq {
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 650;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 0; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq details p { margin: 0; padding: 0 20px 20px; max-width: 68ch; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 112px; border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer p { margin: 0; }

/* 404 */
.notfound { padding: 64px 0 96px; }
.notfound p { max-width: 55ch; color: var(--muted); }

.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------------------------------- */
/* Documentation (site/docs/, generated by scripts/build-docs.cjs)                              */

.docs .site-nav .is-current { color: var(--ink); font-weight: 650; }
.docs .site-nav .is-current[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }
.docs .brand span { white-space: nowrap; }
.docs .site-nav { gap: 14px; }
@media (max-width: 419px) {
  .docs .site-header .wrap { gap: 12px; }
  .docs .site-nav { gap: 14px; }
  .docs .brand span { display: none; }
}
@media (min-width: 720px) { .docs .site-nav { gap: 20px; } }
.docs .site-header { border-bottom: 1px solid var(--line-soft); }
.docs .site-header .wrap, .docs .site-footer .wrap { max-width: calc(1240px + 64px); }
.docs .site-footer { margin-top: 72px; }

.doc-layout {
  max-width: calc(1240px + 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 48px;
  padding-top: 20px;
}
@media (min-width: 900px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); padding-top: 32px; }
}
@media (min-width: 1100px) { .doc-layout { grid-template-columns: 264px minmax(0, 1fr); gap: 0 64px; } }

/* Sidebar */
.doc-menu-btn { display: none; }
.doc-sidebar { font-size: 0.93rem; line-height: 1.45; }
.doc-sidebar ul { list-style: none; margin: 0 0 18px; padding: 0; }
.doc-sidebar a {
  display: block;
  padding: 5px 10px;
  margin-left: -10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
}
.doc-sidebar a:hover { color: var(--ink); background: var(--surface-2); }
.doc-sidebar a[aria-current="page"] {
  color: var(--blue);
  font-weight: 650;
  background: color-mix(in srgb, var(--blue) 10%, transparent);
}
.doc-sidebar a:focus-visible { outline-offset: 0; }
.doc-nav-home { margin: 0 0 14px; font-weight: 600; }
.doc-nav-title {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

@media (min-width: 900px) {
  .doc-sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 4px 8px 16px 12px;
    margin-left: -12px;
    overscroll-behavior: contain;
  }
}
@media (max-width: 899px) {
  .js .doc-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
  }
  .js .doc-menu-btn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
  .doc-sidebar {
    margin-top: 8px;
    padding: 14px 16px 2px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }
  .js .doc-sidebar { display: none; }
  .js .doc-sidebar.is-open { display: block; }
}

/* Article */
.doc-main { min-width: 0; padding-top: 16px; }
@media (min-width: 900px) { .doc-main { padding-top: 0; } }
.doc-article { max-width: 70ch; }
.doc-article h1 {
  margin: 8px 0 20px;
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 750;
  text-wrap: balance;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
}
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }

.doc-toc {
  margin: 0 0 32px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.93rem;
}
.doc-toc-title { margin: 0 0 6px; font-weight: 650; }
.doc-toc ol { margin: 0; padding-left: 1.3em; }
.doc-toc li { margin: 3px 0; }
.doc-toc li::marker { color: var(--muted); }

.doc-content, .doc-lede { overflow-wrap: break-word; }
.doc-content > :first-child { margin-top: 0; }
.doc-content p, .doc-content ul, .doc-content ol { margin: 0 0 16px; }
.doc-content li { margin-bottom: 6px; }
.doc-content li > ul, .doc-content li > ol { margin: 6px 0 0; }
.doc-content li::marker { color: var(--blue); }
.doc-content ol > li::marker { font-weight: 700; }
.doc-content h2, .doc-faq h2, .doc-related h2, .doc-hub h2 {
  margin: 48px 0 14px;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 720;
  scroll-margin-top: 16px;
}
.doc-content h3 {
  margin: 32px 0 10px;
  font-size: 1.12rem;
  scroll-margin-top: 16px;
}
.doc-content h4 { margin: 24px 0 8px; font-size: 1rem; }
.doc-content strong { font-weight: 650; }
.doc-content pre { margin: 0 0 18px; line-height: 1.5; }
.doc-content pre code { font-size: 0.95em; }
.doc-content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc-content blockquote {
  margin: 0 0 18px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.doc-content img { border-radius: 8px; }

/* Tables (scoped so the home page table styles do not apply) */
.doc-table {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.doc-table table { font-size: 0.92rem; min-width: 0; }
.doc-table thead th { text-transform: none; letter-spacing: 0; font-size: 0.85rem; color: var(--ink); }
.doc-table td:first-child { white-space: normal; }
.doc-table td:last-child { color: var(--ink); }
.doc-table td:first-child code { background: var(--code-bg); color: var(--ink); font-weight: 400; display: inline; padding: 0.12em 0.4em; }
.doc-table td code { white-space: normal; overflow-wrap: anywhere; }
.doc-table tbody tr + tr { border-top: 1px solid var(--line-soft); }
@media (max-width: 559px) { .doc-table table { min-width: 0; } .doc-table th, .doc-table td { padding: 9px 12px; } }

/* Callouts ("> Note:" and "> Warning:" in the Markdown sources) */
.doc-callout {
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
}
.doc-callout p { margin: 0 0 8px; }
.doc-callout p:last-child { margin-bottom: 0; }
.doc-callout strong:first-child { color: var(--blue); }
.doc-callout-warning {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-color: color-mix(in srgb, var(--warn-line) 45%, transparent);
  border-left-color: var(--warn-line);
}
.doc-callout-warning strong:first-child { color: var(--warn-icon); }
.doc-callout-warning code { background: color-mix(in srgb, var(--warn-line) 18%, transparent); color: inherit; }

/* Screenshots */
.doc-figure { margin: 8px 0 28px; }
.doc-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.doc-figure figcaption { margin-top: 10px; }

/* FAQ, related pages, page footer */
.doc-faq .faq { max-width: none; }
.doc-faq .faq summary { padding-top: 15px; padding-bottom: 15px; }
.doc-faq .faq-answer { padding: 0 20px 18px; color: var(--muted); }
.doc-faq .faq-answer p { padding: 0; margin: 0 0 10px; color: inherit; }
.doc-faq .faq-answer p:last-child { margin-bottom: 0; }
.doc-faq .faq-answer code { color: var(--ink); }

.doc-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-related li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.doc-related a { font-weight: 650; }
.doc-related span { display: block; margin-top: 2px; font-size: 0.92rem; color: var(--muted); }

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.doc-meta p { margin: 0; }

/* Hub */
.doc-lede { margin: 0 0 8px; font-size: 1.1rem; color: var(--muted); }
.doc-hub { max-width: 80ch; }
.doc-hub-section > p { margin: 0 0 14px; color: var(--muted); }
.doc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .doc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doc-cards li {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.doc-cards li:hover, .doc-cards li:focus-within { border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.doc-cards a { font-weight: 650; text-decoration: none; }
.doc-cards a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.doc-cards a:focus-visible { outline: none; }
.doc-cards a:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 2px; }
.doc-cards p { margin: 4px 0 0; font-size: 0.93rem; color: var(--muted); }

/* AI card: the only element with the gradient treatment. */
.card.card-ai {
  grid-column: 1 / -1;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, #7c3aed, #2563eb 48%, #06b6d4) border-box;
  position: relative;
  overflow: hidden;
}
.card.card-ai::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.14), transparent 70%);
  pointer-events: none;
}
.card.card-ai > * { position: relative; }
.card.card-ai .card-icon {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #2563eb 55%, #06b6d4);
}
.card.card-ai .card-eyebrow {
  background: linear-gradient(90deg, #7c3aed, #2563eb 55%, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.cards .card.card-ai:hover, .cards .card.card-ai:focus-within { border-color: transparent; }
@media (min-width: 860px) {
  .card.card-ai { padding: 28px 30px 26px; }
  .card.card-ai .checks { columns: 2; column-gap: 28px; }
  .card.card-ai .checks li { break-inside: avoid; }
}
@media (prefers-color-scheme: dark) {
  .card.card-ai::before { background: radial-gradient(closest-side, rgba(124, 58, 237, 0.22), transparent 70%); }
}
