/* IBANdb — shared styles. Security-print palette: vellum paper, intaglio green ink. */
:root {
  --paper: #eef1ec;
  --surface: #f9faf7;
  --sunken: #e4e9e3;
  --ink: #0f1f1a;
  --ink-2: #3e4d47;
  --ink-3: #66746e;
  --rule: #cfd7d0;
  --rule-2: #e0e6e0;
  --green: #1d6a4f;
  --green-hi: #155a42;
  --green-tint: #d9eadf;
  --on-green: #f6fbf8;
  --seg-cc: #1d6a4f;
  --seg-ck: #6b3fa3;
  --seg-bank: #22508f;
  --seg-branch: #8f6200;
  --seg-acct: #3e4d47;
  --bad: #a3262a;
  --bad-tint: #f6e1df;
  --warn: #7a5600;
  --warn-tint: #f5ecd3;
  --focus: #22508f;
  --shadow: 0 1px 0 rgba(15, 31, 26, .04), 0 12px 32px -18px rgba(15, 31, 26, .28);
  --sans: "Familjen Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1411;
    --surface: #121d19;
    --sunken: #0a110e;
    --ink: #dfe8e3;
    --ink-2: #b1beb8;
    --ink-3: #85938d;
    --rule: #2a3934;
    --rule-2: #1e2b26;
    --green: #5cc49a;
    --green-hi: #7fd6b2;
    --green-tint: #173a2d;
    --on-green: #06140e;
    --seg-cc: #5cc49a;
    --seg-ck: #b89cf2;
    --seg-bank: #8db0ee;
    --seg-branch: #e2b24c;
    --seg-acct: #b1beb8;
    --bad: #f08a84;
    --bad-tint: #3a1a19;
    --warn: #e2b24c;
    --warn-tint: #33280f;
    --focus: #8db0ee;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 40px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-hi); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: .86em; font-stretch: 87.5%; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); max-width: 22ch; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.25; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule-2); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 26px; height: 26px; color: var(--green); }
.brand b { font-weight: 700; color: var(--green); }
.nav { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .98rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav .opt { display: none; } .nav { gap: .9rem; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 .98rem/1 var(--sans); padding: .8rem 1.15rem; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-hi); color: var(--on-green); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { padding: .5rem .75rem; font-size: .88rem; border-radius: 6px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.nav .btn { color: var(--on-green); }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--rule-2); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { max-width: 62ch; color: var(--ink-2); font-size: 1.1rem; margin: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5rem); }
.hero h1 { font-size: clamp(2.4rem, 1.3rem + 4.2vw, 4.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; max-width: 17ch; }
.hero .lede { margin: 1.25rem 0 2.25rem; max-width: 60ch; font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); }

/* IBAN decoder input: transparent text over a coloured mirror */
.decoder { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: clamp(1rem, 2.5vw, 1.5rem); }
.field-label { display: block; font-size: .9rem; color: var(--ink-3); margin-bottom: .4rem; }
.decoder .row { display: flex; gap: .75rem; align-items: stretch; }
.iban-box { flex: 1; min-width: 0; position: relative; border-radius: 10px; background: var(--paper); border: 1px solid var(--rule); }
.iban-box:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.iban-mirror, .iban-input {
  font: 500 clamp(1rem, .55rem + 1.9vw, 1.6rem)/1 var(--mono);
  font-stretch: 87.5%;
  letter-spacing: .02em;
  padding: 1rem 1rem;
  margin: 0;
  white-space: pre;
  overflow: hidden;
}
.iban-mirror { position: absolute; inset: 0; pointer-events: none; color: var(--ink); border: 1px solid transparent; }
.iban-input { position: relative; width: 100%; border: 1px solid transparent; background: transparent; color: transparent; caret-color: var(--ink); outline: none; text-transform: uppercase; }
.iban-input::placeholder { color: var(--ink-3); opacity: .6; }
.iban-input::selection { background: color-mix(in srgb, var(--focus) 30%, transparent); color: transparent; }
@media (max-width: 520px) { .iban-mirror, .iban-input { font-stretch: 75%; letter-spacing: 0; padding: .9rem .75rem; } }
.s-cc { color: var(--seg-cc); }
.s-ck { color: var(--seg-ck); }
.s-bank { color: var(--seg-bank); }
.s-branch { color: var(--seg-branch); }
.s-acct { color: var(--seg-acct); }
.decoder .btn { padding-inline: 1.5rem; border-radius: 10px; }
@media (max-width: 520px) { .decoder .row { flex-direction: column; } .decoder .btn { padding-block: .9rem; } }

.legend { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: .8rem 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--ink-3); }
.legend li { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: .9rem; height: 3px; border-radius: 2px; background: currentColor; display: inline-block; }
.legend span { color: var(--ink-3); }

.samples { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.1rem; font-size: .92rem; color: var(--ink-3); }
.chip { font: 500 .88rem/1 var(--sans); padding: .45rem .7rem; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--green); color: var(--green); }

.status-line { margin: 1.25rem 0 0; font-size: .92rem; color: var(--ink-3); }

/* ---------- register entry (result card) ---------- */
.result { margin-top: 1.25rem; }
.result:empty { display: none; }
.entry { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.entry-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; align-items: flex-start; }
.entry-name { font-size: clamp(1.35rem, 1rem + 1.4vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0; max-width: 30ch; overflow-wrap: anywhere; }
.entry-sub { margin: .3rem 0 0; color: var(--ink-3); font-size: .95rem; }
.flags { display: flex; flex-wrap: wrap; gap: .4rem; }
.flag { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 500; padding: .3rem .6rem; border-radius: 999px; background: var(--sunken); color: var(--ink-2); }
.flag.ok { background: var(--green-tint); color: var(--green); }
.flag.bad { background: var(--bad-tint); color: var(--bad); }
.flag.warn { background: var(--warn-tint); color: var(--warn); }
.flag svg { width: 14px; height: 14px; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin: 1.25rem 0 0; }
.fields > div { padding: .7rem 0; border-bottom: 1px dashed var(--rule); min-width: 0; }
.fields dt { font-size: .85rem; color: var(--ink-3); margin-bottom: .2rem; }
.fields dd { margin: 0; overflow-wrap: anywhere; }
.fields dd .mono { font-size: .92rem; }
.fields .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.fields .note { display: block; font-size: .85rem; color: var(--ink-3); margin-top: .2rem; }
sup.cite { font: 600 .68rem/1 var(--sans); color: var(--green); margin-left: .2rem; vertical-align: super; }
sup.cite a { text-decoration: none; }
.schemes { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.scheme { font-size: .84rem; padding: .25rem .55rem; border-radius: 5px; border: 1px solid var(--rule); color: var(--ink-2); background: var(--paper); }
.scheme abbr { text-decoration: none; }

.citations { margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--rule); font-size: .88rem; color: var(--ink-2); list-style: none; display: grid; gap: .35rem; }
.citations li { display: grid; grid-template-columns: 1.6rem 1fr; }
.citations li > b { color: var(--green); font-weight: 600; }
.entry-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; margin-top: 1rem; font-size: .85rem; color: var(--ink-3); }
.toggle-json { background: none; border: 0; padding: 0; font: inherit; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.message { padding: 1rem 1.1rem; border-radius: 8px; background: var(--sunken); color: var(--ink-2); }
.message.bad { background: var(--bad-tint); color: var(--bad); }
.message.warn { background: var(--warn-tint); color: var(--ink); }
.message p:last-child { margin: 0; }
.message strong { color: var(--ink); }
.message.bad strong { color: var(--bad); }

/* ---------- code ---------- */
pre.code { margin: 0; padding: 1rem 1.1rem; background: var(--sunken); border: 1px solid var(--rule-2); border-radius: 8px; overflow: auto; font-size: .8rem; line-height: 1.65; color: var(--ink); tab-size: 2; }
pre.code code { font-size: inherit; }
.j-key { color: var(--seg-bank); }
.j-str { color: var(--seg-cc); }
.j-num { color: var(--seg-ck); }
.j-lit { color: var(--seg-branch); }
.c-cmt { color: var(--ink-3); }
.code-tabs { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); overflow: hidden; }
.tablist { display: flex; gap: 0; border-bottom: 1px solid var(--rule); padding: 0 .5rem; overflow-x: auto; }
.tablist button { font: 500 .95rem/1 var(--sans); background: none; border: 0; padding: .95rem .9rem .85rem; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tablist button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--green); }
.tablist .spacer { flex: 1; }
.tablist .copy { color: var(--green); }
.code-tabs pre.code { border: 0; border-radius: 0; background: transparent; padding: 1.1rem 1.25rem 1.3rem; }

/* ---------- trust ---------- */
.lineage { width: 100%; border-collapse: collapse; font-size: 1rem; }
.lineage th, .lineage td { text-align: left; padding: .95rem 1rem .95rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.lineage thead th { font-size: .88rem; font-weight: 500; color: var(--ink-3); padding-top: 0; }
.lineage td:first-child { width: 34%; }
.lineage td:first-child span { display: block; color: var(--ink-3); font-size: .9rem; }
.lineage .field-names { font-family: var(--mono); font-stretch: 87.5%; font-size: .8rem; color: var(--ink-2); }
@media (max-width: 640px) {
  .lineage thead { display: none; }
  .lineage tr { display: block; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
  .lineage td { display: block; border: 0; padding: .1rem 0; width: auto !important; }
}
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; max-width: 60rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } }
.principles h3 { margin-bottom: .5rem; }
.principles p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.principles code { color: var(--ink); }
.freshness { margin-top: clamp(2.5rem, 5vw, 3.5rem); border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.freshness summary { cursor: pointer; padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; align-items: baseline; list-style: none; }
.freshness summary::-webkit-details-marker { display: none; }
.freshness summary::before { content: "+"; font: 500 1.1rem/1 var(--mono); color: var(--green); width: 1rem; }
.freshness[open] summary::before { content: "−"; }
.freshness summary strong { font-weight: 600; }
.freshness .tbl-wrap { border-top: 1px solid var(--rule); max-height: 32rem; overflow: auto; }

/* ---------- tables (sources, coverage) ---------- */
.tbl-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th, table.data td { padding: .6rem .9rem; text-align: left; border-bottom: 1px solid var(--rule-2); vertical-align: middle; }
table.data thead th { position: sticky; top: 0; background: var(--surface); font-weight: 500; color: var(--ink-3); font-size: .85rem; border-bottom: 1px solid var(--rule); white-space: nowrap; z-index: 1; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .dim { color: var(--ink-3); }
table.data td .mono { font-size: .8rem; }
.freshness td:nth-child(5), .freshness td:nth-child(6) { white-space: nowrap; }
.stale-yes { color: var(--warn); font-weight: 600; }

.cov-tools { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-bottom: 1rem; }
.search { flex: 1 1 16rem; max-width: 26rem; font: 400 1rem/1 var(--sans); padding: .75rem .9rem; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
.search:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.check { display: inline-flex; gap: .45rem; align-items: center; font-size: .95rem; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--green); width: 1rem; height: 1rem; }
.cov-count { margin-left: auto; font-size: .9rem; color: var(--ink-3); }
.cov { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); max-height: 38rem; overflow: auto; }
.cov table.data thead th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.cov table.data thead th button[aria-sort]::after { content: ""; }
.cov table.data thead th[aria-sort="ascending"] button::after { content: " ↑"; }
.cov table.data thead th[aria-sort="descending"] button::after { content: " ↓"; }
.cc { display: inline-block; width: 2.2rem; font-family: var(--mono); font-stretch: 87.5%; font-size: .78rem; color: var(--ink-3); }
.meter { display: inline-flex; align-items: center; gap: .55rem; justify-content: flex-end; min-width: 7.5rem; }
.meter b { font-weight: 500; font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: right; }
.meter i { display: block; width: 4rem; height: 6px; border-radius: 3px; background: var(--rule-2); position: relative; overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--green); border-radius: 3px; }
.meter.low i::after { background: var(--seg-branch); }
@media (max-width: 640px) { .meter i { display: none; } .meter { min-width: 0; } .hide-sm { display: none; } table.data th, table.data td { padding: .55rem .6rem; } }
.cov td:first-child { white-space: nowrap; }
.cov-notes { margin-top: 1.25rem; color: var(--ink-2); font-size: .95rem; max-width: 70ch; }
.cov-notes li { margin-bottom: .35rem; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); overflow: hidden; }
.plan { padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; border-right: 1px solid var(--rule); }
.plan:last-child { border-right: 0; }
@media (max-width: 760px) { .plan { border-right: 0; border-bottom: 1px solid var(--rule); } .plan:last-child { border-bottom: 0; } }
.plan h3 { font-size: 1.15rem; }
.price { font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.quota { font-size: 1.05rem; }
.quota + .muted { font-size: .9rem; margin-top: -.5rem; }
.plan .btn { margin-top: auto; }
.plan-foot { margin-top: 1.25rem; color: var(--ink-2); font-size: .95rem; max-width: 70ch; }
.checkout-error { color: var(--bad); font-size: .9rem; min-height: 1.2em; margin: .75rem 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; font-weight: 500; font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; margin-top: -.6rem; font: 500 1.2rem/1 var(--mono); color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 1.25rem; color: var(--ink-2); max-width: 66ch; }
.faq details > div p:last-child { margin: 0; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 3.5rem 0 3rem; font-size: .92rem; color: var(--ink-2); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: minmax(14rem, 1fr) 2fr; gap: 2.5rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h3 { font-size: 1rem; margin-bottom: .6rem; }
.foot-links { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .35rem; }
.foot-links a { color: var(--ink-2); }
.attrib p { max-width: 70ch; }
.publishers { columns: 2 16rem; column-gap: 2rem; padding: 0; margin: .5rem 0 0; list-style: none; font-size: .86rem; }
.publishers li { break-inside: avoid; margin-bottom: .3rem; color: var(--ink-3); }
.publishers a, .foot-links a { color: var(--ink-2); text-decoration: none; }
.publishers a:hover, .foot-links a:hover { color: var(--green); text-decoration: underline; }
.colophon { margin-top: 2.5rem; font-size: .85rem; color: var(--ink-3); }

/* ---------- docs / prose pages ---------- */
.doc-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 3.5rem; padding-top: 3rem; padding-bottom: 5rem; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
.toc { position: sticky; top: 5rem; align-self: start; font-size: .95rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.toc a { display: block; padding: .3rem 0; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--green); }
.toc .sub a { padding-left: .9rem; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 860px) { .toc { position: static; border: 1px solid var(--rule); border-radius: 10px; padding: .75rem 1rem; background: var(--surface); } .toc .sub { display: none; } .toc ol { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); } }
.prose { max-width: 48rem; }
.prose h1 { font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.3rem); letter-spacing: -.03em; margin-bottom: 1rem; }
.prose h2 { font-size: 1.75rem; margin: 3.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); max-width: none; }
.prose h3 { margin: 2.25rem 0 .75rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose pre.code { margin: 1rem 0 1.5rem; }
.prose :not(pre) > code { background: var(--sunken); padding: .1em .35em; border-radius: 4px; color: var(--ink); overflow-wrap: anywhere; }
.prose table.data { margin: 1rem 0 1.5rem; font-size: .92rem; }
.prose table.data td { vertical-align: top; color: var(--ink-2); }
.prose table.data td:first-child { white-space: nowrap; color: var(--ink); }
.prose .tbl-wrap { border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); margin: 1rem 0 1.5rem; }
.prose .tbl-wrap table.data { margin: 0; }
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.5rem 0 .5rem; font-family: var(--mono); font-stretch: 87.5%; font-size: .92rem; }
.verb { font: 600 .75rem/1 var(--sans); padding: .35rem .5rem; border-radius: 4px; background: var(--green-tint); color: var(--green); }
.verb.post { background: color-mix(in srgb, var(--seg-bank) 16%, transparent); color: var(--seg-bank); }
.auth-tag { font: 500 .8rem/1 var(--sans); color: var(--ink-3); }
.callout { border-left: 3px solid var(--green); background: var(--surface); padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; margin: 1.25rem 0; }
.callout.warn { border-color: var(--seg-branch); }
.callout p:last-child { margin: 0; }

.draft-banner { background: var(--warn-tint); color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--seg-branch) 40%, transparent); padding: .8rem 0; font-size: .95rem; }
.draft-banner strong { color: var(--warn); }
.placeholder { background: var(--warn-tint); color: var(--ink); padding: 0 .25em; border-radius: 3px; }

/* ---------- success ---------- */
.claim { max-width: 44rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.claim h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -.03em; margin-bottom: 1rem; }
.key-box { display: flex; gap: .5rem; align-items: stretch; margin: 1.5rem 0 1rem; }
.key-box output { flex: 1; min-width: 0; display: block; font: 500 .95rem/1.4 var(--mono); font-stretch: 87.5%; padding: 1rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--green); overflow-wrap: anywhere; user-select: all; }
@media (max-width: 520px) { .key-box { flex-direction: column; } }
.steps { padding-left: 1.25rem; color: var(--ink-2); }
.steps li { margin-bottom: .5rem; }

@media (prefers-reduced-motion: no-preference) {
  .entry { animation: settle .35s ease-out; }
  @keyframes settle { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* request / response pair */
.api-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 960px) { .api-pair { grid-template-columns: 1fr; } }
.resp { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); overflow: hidden; }
.resp-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--rule); font-size: .95rem; color: var(--ink-3); }
.resp-head strong { color: var(--ink); font-weight: 500; }
.resp pre.code { border: 0; border-radius: 0; background: transparent; padding: 1.1rem 1.25rem 1.3rem; max-height: 30rem; }
