/* Content pages (docs, privacy, terms, MCP changelog) in the landing's design: the same tokens, header
   (sections/01-hero.css) and footer (sections/09-final.css). Only presentation lives here. */

/* ---------- Page ---------- */
.page-main { position: relative; isolation: isolate; padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(96px, 12vw, 140px); }
/* The landing's soft dot grid behind the page head, fading out as the text starts. */
.page-main::before { content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgb(163 171 181 / 0.14) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 0, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 100% at 50% 0, #000 10%, transparent 75%); }

.doc { max-width: 760px; margin-inline: auto; overflow-wrap: anywhere; }
.doc-kicker { margin-bottom: 20px; }
.doc h1, .doc-title { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 650; margin-bottom: 16px; }
.doc-meta { font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.doc-lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--body); margin-bottom: 24px; }

/* ---------- Prose ---------- */
.doc h2 { font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -0.02em; margin: 56px 0 14px; padding-top: 32px; border-top: 1px solid var(--line-soft); scroll-margin-top: 88px; }
.doc h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 8px; scroll-margin-top: 88px; }
.doc p, .doc li { color: var(--body); font-size: 16px; line-height: 1.7; }
.doc p { margin-bottom: 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc ul { list-style: disc; } .doc ol { list-style: decimal; }
.doc li { margin-bottom: 6px; padding-left: 4px; }
.doc li::marker { color: var(--faint); }
.doc ol > li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.doc strong, .doc b { color: var(--ink); font-weight: 600; }
/* Links are the only text that reaches white (the app's rule), with a lime underline on hover. */
.doc a { color: var(--link); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.doc a:hover { text-decoration-color: var(--lime); }

.doc code { font-family: var(--mono); font-size: 0.86em; color: var(--ink); background: var(--raised); padding: 0.12em 0.4em; border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--line); }
.doc pre { margin: 0 0 20px; padding: 14px 16px; overflow-x: auto; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.03); }
.doc pre code { background: none; box-shadow: none; padding: 0; font-size: 13px; line-height: 1.65; color: var(--body-strong); }

/* Tables: a card with the app's table head (a step up from the card, muted ink, sentence case). */
.doc .tbl-wrap, .doc .comparison { margin: 0 0 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.03); }
.doc .comparison table { min-width: 480px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc :not(.tbl-wrap):not(.comparison) > table { margin-bottom: 24px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; color: var(--body); line-height: 1.55; border-bottom: 1px solid var(--line-soft); }
.doc th { background: var(--sidebar); color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0; border-bottom-color: var(--line); }
.doc tbody tr:last-child td { border-bottom: 0; }
.doc tbody tr { transition: background-color var(--dur-fast) var(--ease); }
.doc tbody tr:hover { background: rgb(255 255 255 / 0.018); }
.doc td:first-child { white-space: nowrap; color: var(--body-strong); }
.doc td code { white-space: nowrap; }

/* Table of contents: quiet chips that take the brand wash on hover. */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.doc .toc a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; text-decoration: none;
  color: var(--body); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / 0.04);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.doc .toc a:hover { color: var(--lime-ink); background: linear-gradient(to right, color-mix(in oklab, var(--lime) 14%, var(--card)), var(--card) 80%);
  box-shadow: inset 0 0 0 1px var(--lime-line), inset 0 1px 0 rgb(255 255 255 / 0.04); }

/* Note: the app's note (ui_note), the tone's tint fading in from the left with a tinted hairline. */
.note { margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius);
  background: linear-gradient(to right, color-mix(in oklab, var(--lime) 9%, var(--canvas)), var(--canvas) 70%);
  border: 1px solid color-mix(in oklab, var(--lime) 24%, var(--line)); }
.note p { margin: 0; color: var(--body-strong); }

/* ---------- Install cards (docs) ---------- */
.install-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 8px 0 28px; }
.install-card { min-width: 0; padding: 24px; border-radius: var(--radius-lg); scroll-margin-top: 88px;
  border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(to bottom, rgb(255 255 255 / 0.11), rgb(255 255 255 / 0.03) 40%, var(--line)) border-box;
  box-shadow: var(--shadow-card); }
.install-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 16px; }
.doc .install-head h3 { font-size: 18px; margin: 0; }
.install-head span { font-size: 13.5px; color: var(--muted); }
.doc .install-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.doc .install-steps li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 0; font-size: 15px; line-height: 1.55; color: var(--body-strong); }
/* Step number: the app's numbered chip (fc-order-n), lime ink in a lime-line ring. */
.install-steps .n { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--lime-ink); background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--lime-line), inset 0 1px 0 rgb(255 255 255 / 0.05); }
.install-steps b { color: var(--ink); font-weight: 600; }
.url-label { font-size: 12.5px; font-weight: 500; color: var(--muted); margin: 0 0 6px; }
/* The connector URL as an app field: its own surface, a firmer hairline, lime focus ring. */
.url-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 5px 5px 14px; border-radius: 10px;
  background: var(--field); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.25);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.url-row:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.doc .url-row code { flex: 1 1 0; width: 0; min-width: 0; padding: 0; background: none; box-shadow: none; font-size: 13.5px; color: var(--title);
  overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.url-row code::-webkit-scrollbar { display: none; }
.copy-btn { flex: none; min-height: 36px; padding: 0 14px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink); background: var(--raised); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.copy-btn:hover { border-color: var(--faint); color: var(--link); }
.copy-btn.done { color: var(--lime-ink); background: var(--lime-soft); border-color: var(--lime-line); }
.install-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.doc .install-foot a { font-weight: 600; }
