/* Prosp site styles. System fonts only: nothing is fetched from another host. */
:root {
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #5b6270;
  --line: #e3e6ec;
  --panel: #f6f7fa;
  --brand: #4a5cff;
  --brand-ink: #2f3fd6;
  --warn-bg: #fff4d6;
  --warn-fg: #6b4a00;
  --code-bg: #f1f3f7;
  --radius: 8px;
  --max: 72rem;
  --prose: 46rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --fg: #e7e9ee;
    --muted: #a0a7b4;
    --line: #262a33;
    --panel: #171a21;
    --brand: #8a96ff;
    --brand-ink: #b3bbff;
    --warn-bg: #3a2f10;
    --warn-fg: #ffe29a;
    --code-bg: #1b1f27;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); }
a { color: var(--brand-ink); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
code, pre { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: var(--code-bg); padding: 1rem; border-radius: var(--radius); overflow-x: auto; line-height: 1.45; }
pre code { background: none; padding: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0.4em 0; }
h2 { font-size: 1.45rem; margin-top: 2.2em; }
.muted, .meta { color: var(--muted); font-size: 0.92rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; flex-wrap: wrap; }
.nav ul { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--fg); }
.nav a[aria-current="page"] { color: var(--brand-ink); font-weight: 600; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.1rem; }

main.wrap { padding-top: 1.5rem; padding-bottom: 3rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: 0.92rem; }
.site-footer p { margin: 0.3rem 0; }

.hero { padding: 2.5rem 0 1rem; max-width: var(--prose); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: var(--prose); }
.cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button { display: inline-block; padding: 0.65rem 1.1rem; border-radius: var(--radius); background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; }
.button:hover { color: #fff; filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--brand-ink); border: 1px solid var(--line); }

.steps { padding-left: 1.2rem; max-width: var(--prose); }
.steps li { margin-bottom: 0.8rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--panel); }
.card h3 { margin-top: 0.2rem; }
.card code { word-break: break-all; }

.article-list { list-style: none; padding: 0; }
.article-list li { border-top: 1px solid var(--line); padding: 1rem 0; }
.article-list li > a { font-size: 1.15rem; font-weight: 600; }
.article-list p { margin: 0.3rem 0; }
.empty { color: var(--muted); }
.badge { display: inline-block; font-size: 0.75rem; padding: 0.1em 0.5em; border-radius: 999px; margin-left: 0.4rem; vertical-align: middle; }
.warn { background: var(--warn-bg); color: var(--warn-fg); }
.banner { padding: 0.8rem 1rem; border-radius: var(--radius); margin: 0.5rem 0 1rem; }

.prose { max-width: var(--prose); }
.prose table, .use-case table { border-collapse: collapse; width: 100%; font-size: 0.93rem; margin: 1rem 0; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 0.45rem 0.6rem; vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--line); }
caption { text-align: left; color: var(--muted); font-size: 0.88rem; padding-bottom: 0.3rem; }
.table-scroll { overflow-x: auto; }
.use-case { max-width: var(--max); }
.use-case > p, .use-case > ul, .use-case > dl.who, .use-case > h2 { max-width: var(--prose); }
.kicker { color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem; margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.6rem; margin: 1rem 0; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.8rem; }
.facts dt { color: var(--muted); font-size: 0.82rem; }
.facts dd { margin: 0; font-weight: 600; }
.who dt { font-weight: 600; }
.who dd { margin: 0 0 0.6rem 0; }
.prose > table { display: block; overflow-x: auto; }
.prose td code { word-break: break-word; }
.histogram th code { word-break: break-all; }
.histogram meter { width: 100%; min-width: 3rem; height: 0.9rem; }
.histogram td:nth-child(2) { text-align: right; width: 5rem; }
.transcript { list-style: none; padding: 0; }
.transcript li { margin: 0.4rem 0; }
.transcript .who { font-size: 0.8rem; color: var(--muted); }
.transcript pre { margin: 0.2rem 0; white-space: pre-wrap; }
.transcript .bot pre { background: var(--panel); border: 1px solid var(--line); }
.byline { color: var(--muted); font-size: 0.92rem; margin-top: 0; }
.note { color: var(--muted); font-size: 0.93rem; max-width: var(--prose); }
.tldr { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.2rem 1.2rem 0.4rem; max-width: var(--prose); }
.tldr h2 { font-size: 1.1rem; margin-top: 0.8rem; }
.checks td:first-child, .checks td:nth-child(3) { white-space: nowrap; }
.result { display: inline-block; font-size: 0.82rem; font-weight: 600; padding: 0.05em 0.5em; border-radius: 999px; border: 1px solid var(--line); }
.result.mismatch { background: var(--warn-bg); color: var(--warn-fg); border-color: transparent; }

/* API reference: Scalar renders full-height below the site header. */
body.api-reference .site-footer { display: none; }
.beacon { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cta-box { margin-top: 2.5rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); }
.cta-box .cta { margin-top: 0.8rem; }

/* Consent banner (templates/_consent.html): a bar at the bottom, never an overlay. Accept and
   Decline share .consent-choice, so they are identical in size, colour and weight. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08); font-size: 0.92rem; max-height: 60vh; overflow-y: auto; }
.consent[hidden] { display: none; }
.consent-inner { padding-top: 0.8rem; padding-bottom: 0.8rem; }
.consent p { margin: 0.3rem 0; max-width: var(--prose); }
.consent-title { font-weight: 600; }
.consent-details summary { cursor: pointer; font-weight: 600; }
.consent-details[open] { max-height: 40vh; overflow-y: auto; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.consent-choice { border: 0; font: inherit; font-weight: 600; cursor: pointer; min-width: 8rem; }
