/* serpbit.com. Archivo for text, the dashboard's mono for code, both served from here: a visit fetches nothing from a
   third party. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); }

:root {
  --bg: #F7F6F2; --surface: #FFFFFF; --sunk: #EFEDE6; --ink: #15171B; --text: #2B2F36; --muted: #636973;
  --line: #E0DDD4; --line-strong: #C8C4B8;
  --accent: #1D6B4E; --accent-hover: #155A41; --accent-ink: #FFFFFF; --accent-soft: #E2EFE8;
  --mark: #FFE27A; --mark-ink: #15171B; --soon: #EAE7DE;
  --code-bg: #16181C; --code-line: #2A2D33; --code-text: #E7E5DF; --code-muted: #9C9EA3;
  --code-key: #9CC8B2; --code-str: #F2D27A; --code-num: #F0A27A; --code-hl: #1E3A2F;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111215; --surface: #191B1F; --sunk: #1F2126; --ink: #F1F0EB; --text: #D6D4CD; --muted: #9A9CA1;
    --line: #2B2E34; --line-strong: #3B3F46;
    --accent: #5BC199; --accent-hover: #7AD3AF; --accent-ink: #0B1A13; --accent-soft: #173127;
    --mark: #6B5A16; --mark-ink: #F7F1DA; --soon: #24262B;
    --code-bg: #0C0D10; --code-line: #24272D;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.55; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; line-height: 1.2; }
h1 { font-size: clamp(34px, 4.8vw, 54px); letter-spacing: -0.03em; line-height: 1.04; font-weight: 850; }
h2 { font-size: clamp(25px, 2.9vw, 32px); letter-spacing: -0.02em; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
b, strong, dt { font-weight: 700; }
p, ul, ol, dl, dd { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.ink { color: var(--ink); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 18px; color: var(--text); max-width: 38em; text-wrap: pretty; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 700; font-size: 15px;
  padding: 10px 16px; min-height: 44px; border-radius: 6px; border: 1px solid transparent; text-decoration: none; white-space: nowrap; }
.button:hover { text-decoration: none; }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.button.plain { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.button.plain:hover { border-color: var(--ink); color: var(--ink); }
.button.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.button.big { min-height: 52px; padding: 12px 22px; font-size: 16px; }
.button.big .g-mark { width: 20px; height: 20px; }
/* What the free plan gives, under the hero's button: ticks in the accent, the text at full strength. */
.perks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text); }
.perks li { display: inline-flex; align-items: center; gap: 8px; }
.perks li::before { content: ""; flex: none; width: 5px; height: 10px; margin: -3px 2px 0 3px; border: solid var(--accent);
  border-width: 0 2px 2px 0; transform: rotate(45deg); }
.g-mark { flex: none; width: 18px; height: 18px; background: #FFFFFF; border-radius: 50%; padding: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 12px 28px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 850; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .bar1 { fill: var(--accent); } .brand .bar2, .brand .bar3 { fill: var(--line-strong); }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; font-size: 15px; }
.nav-links a, .nav-signin { color: var(--text); text-decoration: none; }
.nav-links a:hover, .nav-signin:hover { color: var(--ink); text-decoration: underline; }
.nav-actions { display: flex; align-items: center; gap: 14px; font-size: 15px; }
@media (max-width: 720px) { .nav-links { order: 3; flex-basis: 100%; } }

/* sections */
.section { padding-block: 64px 0; display: flex; flex-direction: column; gap: 28px; }
.section.last { padding-bottom: 80px; }
.head { display: flex; flex-direction: column; gap: 8px; max-width: 46em; }
.head p { color: var(--muted); }
@media (max-width: 640px) { .section { padding-block: 48px 0; } }

/* hero */
.hero { padding-block: 72px 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 20px; max-width: 820px; min-width: 0; }
/* beside the headline: ten requests on one key, as a terminal shows them */
.hero-card { min-width: 0; border-radius: 12px; overflow: hidden; background: var(--code-bg); border: 1px solid var(--code-line);
  box-shadow: 0 18px 40px rgba(21, 23, 27, 0.16); }
.hero-card-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--code-line);
  font-family: var(--mono); font-size: 12px; color: var(--code-muted); }
.hero-card-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--code-line); }
.hero-card-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-card pre.code { font-size: 12.5px; line-height: 1.75; padding: 14px 16px; }
.hero-card .ok { color: var(--code-key); font-weight: 600; }
@media (max-width: 1000px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.hero .lead { max-width: 44em; }
@media (max-width: 640px) { .hero { padding-block: 44px 8px; } }

/* what you get: five points under the hero */
.values { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.values li { padding: 18px 16px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; gap: 6px; }
.values h3 { font-size: 15px; display: flex; align-items: flex-start; gap: 8px; }
.values h3::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.42em; background: var(--accent); border-radius: 1px; }
.values p { color: var(--muted); font-size: 14px; }

/* code */
pre.code { margin: 0; padding: 16px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--code-text);
  background: var(--code-bg); white-space: pre; overflow-x: auto; }
.k { color: var(--code-key); } .s { color: var(--code-str); } .n { color: var(--code-num); } .c { color: var(--code-muted); }

/* the annotated page */
.serp { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; }
.serp-bar { grid-column: 1 / -1; height: 30px; border: 1px solid var(--line-strong); border-radius: 15px; display: flex; align-items: center; padding: 0 12px;
  font-family: var(--mono); font-size: 12px; color: var(--muted); }
.serp-main, .serp-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.blk { border: 1px dashed var(--line-strong); border-radius: 6px; padding: 10px 12px; min-height: 44px; background: var(--bg);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.blk .name { font-size: 14px; font-weight: 700; color: var(--ink); }
.blk .fld { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.blk .lines { flex-basis: 100%; }
.blk .fld { overflow-wrap: anywhere; }
@media (max-width: 560px) { .serp { grid-template-columns: minmax(0, 1fr); } .blk.tall { min-height: 110px; } }

/* The page and its answer side by side. Pointing at a block lights it and its JSON, and the other way round; :has does
   it without a script, which the site's CSP does not allow. A tap is a hover on a phone; a key is :focus-visible. */
.anatomy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .anatomy { grid-template-columns: minmax(0, 1fr); } }
pre.json { border-radius: 10px; font-size: 12.5px; line-height: 1.65; padding: 14px 0; overflow: auto; }
.json .jl, .json .jf { display: block; padding: 0 16px 0 13px; border-left: 3px solid transparent; transition: opacity 0.15s, background-color 0.15s; }
.blk { transition: border-color 0.15s, background-color 0.15s; }
.blk:focus { outline: none; }
.blk:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.anatomy:has([data-b]:hover, [data-b]:focus-visible) .json > span { opacity: 0.32; }
.anatomy:has([data-b="aio"]:hover, [data-b="aio"]:focus-visible) .blk[data-b="aio"],
.anatomy:has([data-b="org"]:hover, [data-b="org"]:focus-visible) .blk[data-b="org"],
.anatomy:has([data-b="paa"]:hover, [data-b="paa"]:focus-visible) .blk[data-b="paa"],
.anatomy:has([data-b="kg"]:hover, [data-b="kg"]:focus-visible) .blk[data-b="kg"],
.anatomy:has([data-b="ts"]:hover, [data-b="ts"]:focus-visible) .blk[data-b="ts"],
.anatomy:has([data-b="rs"]:hover, [data-b="rs"]:focus-visible) .blk[data-b="rs"] {
  border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.anatomy:has([data-b="aio"]:hover, [data-b="aio"]:focus-visible) .jf[data-b="aio"],
.anatomy:has([data-b="org"]:hover, [data-b="org"]:focus-visible) .jf[data-b="org"],
.anatomy:has([data-b="paa"]:hover, [data-b="paa"]:focus-visible) .jf[data-b="paa"],
.anatomy:has([data-b="kg"]:hover, [data-b="kg"]:focus-visible) .jf[data-b="kg"],
.anatomy:has([data-b="ts"]:hover, [data-b="ts"]:focus-visible) .jf[data-b="ts"],
.anatomy:has([data-b="rs"]:hover, [data-b="rs"]:focus-visible) .jf[data-b="rs"] {
  opacity: 1; background: var(--code-hl); border-left-color: var(--code-key); }
/* A touch screen focuses the block it taps; the light stays until the next tap. */
@media (hover: none) {
  .anatomy:has([data-b]:focus) .json > span { opacity: 0.32; }
  .anatomy:has([data-b="aio"]:focus) .blk[data-b="aio"], .anatomy:has([data-b="org"]:focus) .blk[data-b="org"],
  .anatomy:has([data-b="paa"]:focus) .blk[data-b="paa"], .anatomy:has([data-b="kg"]:focus) .blk[data-b="kg"],
  .anatomy:has([data-b="ts"]:focus) .blk[data-b="ts"], .anatomy:has([data-b="rs"]:focus) .blk[data-b="rs"] {
    border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
  .anatomy:has([data-b="aio"]:focus) .jf[data-b="aio"], .anatomy:has([data-b="org"]:focus) .jf[data-b="org"],
  .anatomy:has([data-b="paa"]:focus) .jf[data-b="paa"], .anatomy:has([data-b="kg"]:focus) .jf[data-b="kg"],
  .anatomy:has([data-b="ts"]:focus) .jf[data-b="ts"], .anatomy:has([data-b="rs"]:focus) .jf[data-b="rs"] {
    opacity: 1; background: var(--code-hl); border-left-color: var(--code-key); }
}
@media (prefers-reduced-motion: reduce) { .json .jl, .json .jf, .blk { transition: none; } }
.lines { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; }
.lines i { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.lines i.w9 { width: 90%; } .lines i.w7 { width: 70%; } .lines i.w5 { width: 50%; } .lines i.t { height: 8px; background: var(--line-strong); width: 60%; }
.blk.tall { min-height: 150px; }

/* parameters */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.tile h3 { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.tile p { color: var(--muted); font-size: 14px; }
.vals { display: flex; flex-wrap: wrap; gap: 6px; }
.val { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); background: var(--sunk); border-radius: 4px; padding: 2px 7px; color: var(--ink); }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.numbers > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.numbers > div:first-child { padding-left: 0; }
.numbers > div + div { border-left: 1px solid var(--line); }
@media (max-width: 900px) {
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .numbers > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .numbers { grid-template-columns: minmax(0, 1fr); }
  .numbers > div { padding-left: 0; border-left: 0; }
  .numbers > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
.big { font-size: 32px; font-weight: 850; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* tables */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; background: var(--sunk); }
th, td { padding: 12px 16px; vertical-align: top; }
tbody tr { border-top: 1px solid var(--line); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.mono { white-space: nowrap; color: var(--ink); }
tr.group td { background: var(--sunk); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-block: 8px; }
.prices td { vertical-align: middle; }
@media (max-width: 760px) { .prices th, .prices td { padding: 10px 10px; } .prices .tag { display: none; } }
.prices .amount { font-size: 19px; font-weight: 800; color: var(--ink); }
.prices tr.pick td { background: var(--accent-soft); }
.prices tr.pick td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.plan-name { font-weight: 750; color: var(--ink); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); margin-left: 8px; vertical-align: 2px; }
.tag.soon { background: var(--soon); color: var(--muted); }


/* questions */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 0 40px; }
.faq > div { border-top: 1px solid var(--line); padding-block: 16px; display: flex; flex-direction: column; gap: 4px; }
.faq dt { font-weight: 650; color: var(--ink); }
.faq dd { color: var(--text); }

/* closing strip */
.closing { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 24px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); }
.closing h2 { font-size: 22px; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 36px 20px; font-size: 14px; }
.foot-grid nav { display: flex; flex-direction: column; gap: 6px; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-base { padding-block: 0 36px; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* docs and legal pages */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-block: 40px 80px; align-items: start; }
.doc-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.doc-nav div { display: flex; flex-direction: column; gap: 1px; }
.doc-nav a { color: var(--text); padding: 4px 8px; border-radius: 4px; text-decoration: none; }
.doc-nav a:hover { background: var(--sunk); color: var(--ink); }
.doc-nav .label { padding: 0 8px 4px; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; } .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 12px 20px; }
  .doc-nav div { flex-direction: row; flex-wrap: wrap; gap: 2px 4px; } .doc-nav .label { flex-basis: 100%; } }
.prose { min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.prose h1 { font-size: clamp(30px, 3.6vw, 40px); }
.prose h2 { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 10px; }
.prose p, .prose li { color: var(--text); max-width: 70ch; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose code { background: var(--sunk); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; color: var(--ink); overflow-wrap: anywhere; }
.prose pre.code { border-radius: 8px; }
.prose pre.code code { background: none; border: 0; padding: 0; color: inherit; }
.prose table { font-size: 14px; }
.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 10px 14px; border-radius: 0 6px 6px 0; color: var(--text); }
.legal { padding-block: 40px 80px; display: flex; flex-direction: column; gap: 20px; }
.legal-head { display: flex; flex-direction: column; gap: 8px; }
.notfound { min-height: 50vh; }

/* docs: an endpoint's text and example (internal/docs), one under the other here */
.ep, .ep-text, .ep-code { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ep { scroll-margin-top: 76px; }
.ep h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ep .table-box table { table-layout: fixed; }
.ep .table-box th:first-child { width: 30%; }
.ep .table-box th:nth-child(2):not(:last-child) { width: 16%; }
.ep .table-box td { vertical-align: top; overflow-wrap: anywhere; }
.ep .table-box td.mono { white-space: normal; }
.prose .table-box code { background: none; border: 0; padding: 0; color: var(--ink); }
.cost { display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 999px; background: var(--sunk); color: var(--accent);
  font-family: var(--mono); font-size: 12px; white-space: nowrap; }

/* the APIs: a card each, with a drawing of what it returns; the drawings take the theme's colors */
.apis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.api { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.api:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21, 23, 27, 0.08); }
.api:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.api svg { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; border-radius: 8px; background: var(--sunk); margin-bottom: 4px; }
.api h3 { font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-inline: 4px; }
.api h3 .tag { margin-left: 0; }
.api code { font-size: 12px; color: var(--accent); padding-inline: 4px; overflow-wrap: anywhere; }
.api p { font-size: 14px; color: var(--muted); padding-inline: 4px; }
@media (prefers-reduced-motion: reduce) { .api { transition: none; } .api:hover { transform: none; } }
.il-surf { fill: var(--surface); }
.il-line { fill: var(--line-strong); }
.il-soft { fill: var(--line); }
.il-ink { fill: var(--muted); }
.il-acc { fill: var(--accent); }
.il-accs { fill: var(--accent-soft); }
.il-mark { fill: var(--mark); }
.il-edge { stroke: var(--accent); stroke-width: 1.5; }
.il-ring { fill: none; stroke: var(--line-strong); stroke-width: 1.8; }
.il-road { fill: none; stroke: var(--surface); stroke-width: 5; stroke-linecap: round; }
.il-brace { fill: none; stroke: var(--line-strong); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.il-brace-acc { stroke: var(--accent); }
.il-arrow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* contact: a plain form that posts to /contact (a Pages Function); no script, as the CSP has it */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 48px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.contact-text { display: flex; flex-direction: column; gap: 14px; }
.contact-points { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.contact-points li { display: flex; gap: 10px; align-items: baseline; }
.contact-points li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--accent); border-radius: 1px; transform: translateY(-1px); }
.contact-form { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; min-height: 44px; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contact-send .button { border: 0; cursor: pointer; }
/* the trap: off screen for people, filled in by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* /sent/ and /not-sent/, where the form lands */
.landed { min-height: 50vh; padding-block: 80px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 640px; }

/* Tabs without script (the CSP allows none): a radio per tab, its label the tab, :checked shows its panel. */
.demo, .tabs { display: flex; flex-direction: column; gap: 0; margin-top: 24px; }
.demo > input, .tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.demo-tabs, .tab-labels { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--code-bg);
  border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--code-line); }
.demo-tabs label, .tab-labels label { font-family: var(--mono); font-size: 13px; color: var(--code-muted); padding: 7px 12px;
  border-radius: 7px; cursor: pointer; user-select: none; }
.demo-tabs label:hover, .tab-labels label:hover { color: var(--code-text); }
.demo-panel, .tab-panel { display: none; }
.demo-panel pre.code, .tab-panel pre.code { border-radius: 0 0 10px 10px; max-height: 460px; overflow: auto; }
.demo-panel pre.code { white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-req { background: var(--code-bg); color: var(--code-text); font-family: var(--mono); font-size: 13px; padding: 12px 16px 0;
  overflow-x: auto; white-space: nowrap; }
.demo > p { margin-top: 10px; }
#demo-search:checked ~ [data-p="search"], #demo-markdown:checked ~ [data-p="markdown"], #demo-content:checked ~ [data-p="content"],
#demo-aimode:checked ~ [data-p="aimode"], #demo-shopping:checked ~ [data-p="shopping"], #demo-maps:checked ~ [data-p="maps"],
#code-curl:checked ~ [data-c="curl"], #code-python:checked ~ [data-c="python"], #code-js:checked ~ [data-c="js"],
#code-go:checked ~ [data-c="go"], #code-mcp:checked ~ [data-c="mcp"] { display: block; }
#demo-search:checked ~ .demo-tabs [for="demo-search"], #demo-markdown:checked ~ .demo-tabs [for="demo-markdown"],
#demo-content:checked ~ .demo-tabs [for="demo-content"], #demo-aimode:checked ~ .demo-tabs [for="demo-aimode"],
#demo-shopping:checked ~ .demo-tabs [for="demo-shopping"], #demo-maps:checked ~ .demo-tabs [for="demo-maps"],
#code-curl:checked ~ .tab-labels [for="code-curl"], #code-python:checked ~ .tab-labels [for="code-python"],
#code-js:checked ~ .tab-labels [for="code-js"], #code-go:checked ~ .tab-labels [for="code-go"],
#code-mcp:checked ~ .tab-labels [for="code-mcp"] { background: var(--code-line); color: var(--code-text); }
.demo:has(> input:focus-visible) .demo-tabs, .tabs:has(> input:focus-visible) .tab-labels { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Custom Search's end: the line to change, beside why. */
.migrate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.migrate pre.code { border-radius: 10px; }
.migrate .del { color: #F0A27A; } .migrate .add { color: #9CC8B2; }
@media (max-width: 860px) { .migrate { grid-template-columns: minmax(0, 1fr); } }
.numbers-note { margin-top: 12px; }
.changes { display: flex; flex-direction: column; gap: 28px; max-width: 46em; }
.changes h2 { font-size: 20px; }
.changes time { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.changes ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
