/* nu:legal Gesetze — design tokens from Figma Design System + nulegal.eu */
:root {
  --ink: #0c0e0f;
  --gray: #5c5e60;
  --gray-2: #9a9c9e;
  --blue: #2621ff;
  --blue-deep: #1411b3;
  --tint: #f0f0ff;
  --tint-2: #eeedff;
  --bg: #f7f8f9;
  --paper: #fff;
  --line: #e8e9eb;
  --amber-bg: #fff7e8;
  --amber-line: #f0ab36;
  --radius: 14px;
  --font-head: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --shadow-float: 0 4px 12px rgba(12, 14, 15, .08), 0 16px 48px rgba(12, 14, 15, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Honour the OS "reduce motion" setting (WCAG 2.3.3) — kills smooth-scroll jumps
   and every transition for users who ask for no motion (also Bork's own stance). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0; height: 100dvh;
  display: flex; flex-direction: column; overflow: hidden;
  font: 400 16px/1.63 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -.015em; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.shell { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  flex: none; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo {
  font: 800 20px var(--font-head); color: var(--ink); letter-spacing: -.02em;
  white-space: nowrap;
}
.logo-nu { color: var(--blue); }
.logo-section { font-weight: 600; color: var(--gray); margin-left: 6px; }
.logo.small { font-size: 16px; }
.header-nav { display: flex; gap: 20px; white-space: nowrap; }
.header-nav a { font: 500 14px var(--font-body); color: var(--gray); }
.header-nav a:hover { color: var(--ink); }

.header-search { position: relative; flex: 1; max-width: 560px; display: flex; align-items: center; }
.header-search .search-icon {
  position: absolute; left: 14px; width: 17px; height: 17px; color: var(--gray-2); pointer-events: none;
}
.header-search input {
  width: 100%; height: 42px; padding: 0 44px 0 40px;
  font: 400 14.5px var(--font-body); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.header-search input:focus {
  background: var(--paper); border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--tint);
}
.header-search kbd {
  position: absolute; right: 12px;
  font: 500 11px var(--font-body); color: var(--gray-2);
  border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; background: var(--paper);
}

.suggest {
  position: absolute; top: 50px; left: 0; right: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-float); overflow: hidden;
}
.suggest a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 10px 16px; border-bottom: 1px solid var(--bg); color: var(--ink); font-size: 14px;
}
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.active { background: var(--tint); }
.suggest .s-ref { font: 600 13.5px var(--font-head); color: var(--blue); white-space: nowrap; }
.suggest .s-head { color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero .shell { position: relative; padding-top: 72px; padding-bottom: 64px; z-index: 1; }
.hero-mark {
  position: absolute; right: 20px; top: -60px;
  font-size: 380px; line-height: 1; color: var(--tint);
  user-select: none; z-index: 0;
}

.eyebrow {
  font: 600 12.5px var(--font-body); text-transform: uppercase; letter-spacing: .09em;
  color: var(--gray); margin: 0 0 14px;
}
.eyebrow a { color: inherit; }
.eyebrow a:hover { color: var(--blue); }
.display {
  font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; line-height: 1.08; max-width: 21ch;
}
.display em { color: var(--blue); }
.stat-row { display: flex; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.stat strong { display: block; font: 700 28px var(--font-head); letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--gray); }
.chip-row { display: flex; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.chip {
  font: 600 13.5px var(--font-head); color: var(--ink);
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  transition: all .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); background: var(--tint); }

/* ---------- areas ---------- */
.section-title { font-size: 24px; font-weight: 700; margin: 56px 0 22px; }
/* court-tier subheadings on the Rechtsprechung landing (13A-103) */
.tier-title { font-size: 15px; font-weight: 700; margin: 30px 0 8px; color: var(--ink); display: flex; align-items: baseline; gap: 10px; }
.tier-title .count { font-size: 12px; font-weight: 500; color: var(--gray); }
.court-more a { font: 500 14px var(--font-body); color: var(--gray); }
.court-more a:hover { color: var(--blue); }
.area-list, .law-list { margin: 0 0 80px; padding: 0; list-style: none;
  border-top: 1px solid var(--line); }
.area-list a, .law-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
  color: var(--ink); font: 500 15px var(--font-body);
}
.area-list a:hover span:first-child, .law-list a:hover span:first-child { color: var(--blue); }
.area-list .count, .law-list .abbr {
  font-size: 13px; white-space: nowrap;
}
@media (min-width: 720px) { .area-list { columns: 2; column-gap: 48px; } .area-list li { break-inside: avoid; } }

/* ---------- documents ---------- */
.doc { padding: 52px 0 90px; }
.doc-head h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.15; max-width: 30ch; }
.doc-sub { color: var(--gray); font-size: 14px; margin-top: 14px; }

.banner {
  margin-top: 20px; padding: 12px 16px; border-radius: 10px; font-size: 14px;
  border: 1px solid var(--line); background: var(--paper);
}
.banner-amber { background: var(--amber-bg); border-color: var(--amber-line); }
.banner-blue { background: var(--tint); border-color: var(--blue); }
.banner-gray { color: var(--gray); }

/* law TOC */
.toc { margin: 36px 0 0; padding: 0; list-style: none; }
.toc-section {
  font: 700 13px var(--font-head); text-transform: uppercase; letter-spacing: .07em;
  color: var(--gray); padding: 26px 0 8px; border-bottom: 1px solid var(--line);
}
.toc-norm a {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline;
  padding: 9px 10px; margin: 0 -10px; border-radius: 8px; color: var(--ink);
}
.toc-norm a:hover { background: var(--tint); }
.toc-norm a:hover .toc-ref { color: var(--blue-deep); }
.toc-ref { font: 600 14.5px var(--font-head); color: var(--blue); white-space: nowrap; }
.toc-heading { font-size: 14.5px; }
.toc-annex .toc-ref { color: var(--gray); }

/* norm reading page */
.norm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 56px; }
@media (max-width: 900px) { .norm-layout { grid-template-columns: 1fr; } .sidebar { order: 2; } }
.reading { max-width: 72ch; }
.doc-head h1.norm-title {
  display: flex; flex-wrap: wrap; gap: 0 12px; align-items: baseline;
  font-size: clamp(23px, 2.3vw, 30px); max-width: none; line-height: 1.3;
}
.norm-ref { color: var(--blue); }
.norm-text { margin-top: 34px; font-size: 17px; line-height: 1.75; }
.absatz { margin: 0 0 18px; }
.abs-marker {
  font: 700 14px var(--font-head); color: var(--blue);
  margin-right: 5px;  /* + real space in markup = same visual gap, copy-safe */
}
a.cite {
  color: var(--blue-deep);
  border-bottom: 1px dotted rgba(38, 33, 255, .5);
  transition: background .12s;
}
a.cite:hover { background: var(--tint-2); border-bottom-style: solid; }
/* in-text links to other decisions (13A-68) — same affordance as norm cites */
a.caseref {
  color: var(--blue-deep);
  border-bottom: 1px dotted rgba(38, 33, 255, .5);
  transition: background .12s;
}
a.caseref:hover { background: var(--tint-2); border-bottom-style: solid; }


/* sidebar */
.sidebar { padding-top: 52px; }
.side-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
   padding: 18px 20px; margin-bottom: 20px;
  position: sticky-disabled;
}
.side-box h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--gray); margin-bottom: 12px; }
.versions { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.versions li { padding: 5px 0; border-left: 2px solid var(--line); padding-left: 12px; }
.versions li.current { border-left-color: var(--blue); }
.versions li.current a { font-weight: 600; color: var(--ink); }
.copy-cite {
  font: 600 14px var(--font-head); color: var(--blue);
  background: var(--tint); border: 1px solid transparent; border-radius: 9px;
  padding: 9px 14px; cursor: pointer; transition: all .15s; width: 100%; text-align: left;
}
.copy-cite:hover { border-color: var(--blue); }
.footnote { font-size: 12.5px; color: var(--gray-2); line-height: 1.55; margin-top: 12px; }
.footnote a { color: var(--gray); text-decoration: underline; }

/* ---------- rechtsprechung section ---------- */
.court-list { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.court-list > li { padding: 15px 4px 17px; border-bottom: 1px solid var(--line); }
.court-row { display: flex; align-items: baseline; gap: 14px; color: var(--ink); font: 500 15px var(--font-body); }
.court-abbr { font: 700 15px var(--font-head); min-width: 76px; }
.court-row:hover .court-abbr, .court-row:hover .court-name { color: var(--blue); }
.court-row .count { margin-left: auto; font-size: 13px; white-space: nowrap; color: var(--gray); }
.court-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.court-years { margin-top: 12px; }
.court-years .chip { font-size: 12.5px; padding: 4px 12px; }
.chip-active, .chip-active:hover { border-color: var(--blue); color: var(--paper); background: var(--blue); }
.pagination { display: flex; align-items: baseline; gap: 22px; margin: 34px 0 20px; font: 600 14px var(--font-head); }
.pagination span { color: var(--gray); font-weight: 500; }

/* search tabs */
.tabs { display: flex; gap: 26px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 2px 11px; font: 600 14.5px var(--font-head); color: var(--gray); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.tab-active { color: var(--ink); border-bottom-color: var(--blue); }
.tabs .count { color: var(--gray-2); font-weight: 500; }

/* search facets: mode selector + focus areas (13A-61/63) — flat, static */
.facets { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 12px; }
.chip { font: 500 12.5px var(--font-head); color: var(--gray); padding: 3px 9px;
        border: 1px solid var(--line); border-radius: 999px; }
.chip:hover { color: var(--ink); border-color: var(--gray-2); }
.chip-active { color: var(--ink); border-color: var(--blue); }
.facet-sep { flex-basis: 100%; height: 0; }

/* search results */
.results { margin: 30px 0 0; padding: 0; list-style: none; }
.results li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.result-ref { font: 700 16px var(--font-head); }
.result-heading { font-size: 14.5px; color: var(--gray); margin-left: 10px; }
.result-snippet { font-size: 14.5px; color: var(--ink); margin: 8px 0 0; max-width: 78ch; }
.result-snippet mark { background: var(--tint-2); color: var(--blue-deep); border-radius: 3px; padding: 0 2px; }
.candidates { list-style: none; padding: 0; }
.candidates li { padding: 8px 0; }
.candidates .abbr { color: var(--gray-2); font-size: 13px; margin-left: 8px; }

/* ---------- preview hover card ---------- */
.preview-card {
  position: fixed; z-index: 100; width: 380px; max-width: calc(100vw - 32px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-float); padding: 16px 18px;
}

.preview-card .pc-eyebrow {
  font: 700 11.5px var(--font-head); text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue); margin: 0 0 6px;
}
.preview-card h4 { font: 700 15px var(--font-head); margin: 0 0 8px; color: var(--ink); }
.preview-card p { font-size: 13.5px; line-height: 1.6; color: var(--gray); margin: 0 0 10px; }
.preview-card .pc-more { font: 600 13px var(--font-head); }

/* ---------- footer ---------- */
.site-footer { flex: none; border-top: 1px solid var(--line); background: var(--paper); }
.footer-row {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 8px; padding-bottom: 8px;
  font-size: 12px; color: var(--gray);
}
.footer-row a { color: var(--gray); text-decoration: underline; }
.footer-row a:hover { color: var(--blue); }


/* ---------- reader pane (norm pages, wide screens) ---------- */
@media (min-width: 900px) {
  body.reader main { overflow: hidden; }
  body.reader .norm-layout { height: 100%; grid-template-rows: minmax(0, 1fr); }
  body.reader .doc { padding: 0; }
  body.reader .reading { height: 100%; overflow-y: auto; padding: 44px 8px 60px 0; }
  body.reader .sidebar { height: 100%; overflow-y: auto; padding: 44px 0 24px; }
}
.side-state { font-size: 12.5px; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px;
  border: 1px solid var(--line); }
.side-state a { font-weight: 600; }

/* ---------- structured norm content ---------- */
.norm-text .dl { margin: 6px 0 14px 4px; }
.norm-text .dl .dl { margin-left: 22px; }
.dl-row { display: grid; grid-template-columns: minmax(34px, auto) 1fr; gap: 10px; margin: 5px 0; }
.dt { font-weight: 600; color: var(--gray); text-align: right; white-space: nowrap; }
.dd > .absatz:first-child { margin-top: 0; }
.dd .absatz { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; margin: 14px 0 20px; }
.norm-text table { border-collapse: collapse; font-size: 14.5px; min-width: 50%; }
.norm-text th, .norm-text td {
  border: 1px solid var(--line); padding: 7px 11px; vertical-align: top; text-align: left;
}
.norm-text th { font: 600 13.5px var(--font-head); background: var(--bg); }
.img-note { color: var(--gray); font-size: 13px; font-style: italic; }
.banner-source { display: block; margin-top: 4px; font-size: 12px; color: var(--gray); }

/* ---------- side navigation: pills (default), text-flanking columns (wide) ---------- */
.side-nav {
  position: fixed; bottom: 54px; z-index: 40;
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-float); color: var(--blue);
}
.side-prev { left: 16px; }
.side-next { right: 16px; }
.side-nav:hover { border-color: var(--blue); background: var(--tint); }
.side-arrow { font: 600 17px var(--font-head); line-height: 1; }
.side-ref { font: 600 12px var(--font-head); color: var(--gray); white-space: nowrap; }
.side-nav:hover .side-ref { color: var(--blue-deep); }
@media (min-width: 900px) { .side-nav { display: none; } }

.side-nav-row {
  display: flex; margin-bottom: 20px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.side-nav-row a, .side-nav-row .disabled {
  flex: 1; padding: 11px 8px; text-align: center;
  font: 600 13.5px var(--font-head); color: var(--blue);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-nav-row a:hover { background: var(--tint); color: var(--blue-deep); }
.side-nav-row .disabled { color: var(--gray-2); }
@media (max-width: 900px) { .side-nav-row { display: none; } }


/* ---------- focus / a11y ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px;
}
.footnote, .area-list .count, .law-list .abbr, .suggest .s-head { color: var(--gray); }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .logo-section, .header-nav, .header-search kbd { display: none; }
  .header-row { gap: 14px; }
  .hero-mark { display: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .sidebar, .suggest, .preview-card, .side-nav { display: none !important; }
  body { background: #fff; font-size: 11pt; height: auto; overflow: visible; display: block; }
  main { overflow: visible; }
  .norm-layout { display: block; }
  a, a.cite { color: #000; border-bottom: none; }
  .norm-ref, .abs-marker { color: #000; }
  .doc { padding: 0; }
}

/* ---------- law abbreviation marks ---------- */
.law-mark {
  display: inline-block; margin: 2px 0 10px;
  font: 800 26px var(--font-head); letter-spacing: -.02em; color: var(--blue);
}
.law-mark:hover { color: var(--blue-deep); }
.side-law-abbrev { display: block; font: 800 30px var(--font-head); letter-spacing: -.02em; color: var(--ink); }
.side-law-abbrev:hover { color: var(--blue); }
.side-law-title { margin: 4px 0 10px; font-size: 13px; color: var(--gray); line-height: 1.45; }
.side-law-toc { font: 600 13px var(--font-head); }

/* ---------- mobile polish ---------- */
@media (max-width: 640px) {
  .shell { padding-left: 18px; padding-right: 18px; }
  .stat-row { gap: 26px; margin-top: 28px; }
  .norm-text { font-size: 16.5px; }
  .doc { padding-top: 34px; }
  .law-mark { font-size: 22px; }
  .side-nav { bottom: 14px; }
  /* footer appears only once the reader has scrolled down */
  .site-footer { display: none; }
  body.scrolled-down .site-footer {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 44;
  }
  body.scrolled-down .side-nav { bottom: 72px; }
  /* both spans stay visible: the second carries Über/Impressum/Datenschutz (§ 5 DDG) */
  .footer-row { flex-wrap: wrap; gap: 2px 10px; padding-top: 8px; padding-bottom: 8px; font-size: 11.5px; }
  .footer-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}

/* current norm between the nav buttons */
.snr-current {
  flex: 1.6; padding: 11px 8px; text-align: center;
  font: 700 13.5px var(--font-head); color: var(--ink);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- review-pass: a11y + scanability ---------- */
.skip-link {
  position: absolute; left: -9999px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
  font: 600 14px var(--font-head);
}
.skip-link:focus { left: 0; top: 0; color: #fff; }
/* screen-reader-only: off-screen but announced (used for the search input label) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.toc-l2 { padding-left: 16px; }
.toc-l3 { padding-left: 32px; font-weight: 600; letter-spacing: .05em; }
.toc-gone, .toc-gone a, .toc-gone .toc-ref { color: var(--gray-2); }
.toc-gone a:hover { background: none; }

@media (pointer: coarse) {
  .suggest a, .toc-norm a, .side-nav-row a, .area-list a, .law-list a { padding-top: 13px; padding-bottom: 13px; }
}

/* prose pages (Über, Datenschutz) */
.prose { max-width: 68ch; margin-top: 30px; font-size: 15px; line-height: 1.7; }
.prose h2 { font-size: 16px; font-weight: 700; margin: 26px 0 8px; }
.prose p { margin: 10px 0; }
.prose a { color: var(--blue); }

/* case-law reader (rechtsprechung.html) */
.case-sec { margin: 0 0 8px; }
.case-sec h2 { font: 700 15px var(--font-head); letter-spacing: .04em; text-transform: uppercase;
  color: var(--gray); margin: 34px 0 16px; }
.case-sec .rn { display: grid; grid-template-columns: 34px 1fr; gap: 0 14px; margin: 0 0 18px; }
.rn-no { color: var(--gray); font-size: 13px; text-align: right; padding-top: 4px; }
.rn-body p { margin: 0 0 12px; }
.rn-body p:last-child { margin-bottom: 0; }
.case-table { font-size: 13px; overflow-x: auto; }
@media (max-width: 720px) { .case-sec .rn { grid-template-columns: 24px 1fr; gap: 0 10px; } }

/* ============================================================
   Developer docs + widget instructions  (13A-54 — DRAFT, not deployed)
   Scoped under .devdoc so nothing here affects existing pages.
   ============================================================ */
.devdoc { padding: 44px 0 90px; }
.devdoc .doc-head { margin-bottom: 10px; }
.devdoc .lead { max-width: 70ch; font-size: 16px; line-height: 1.65; color: var(--gray); margin: 16px 0 6px; }
.devdoc h2 { font-size: 20px; font-weight: 800; margin: 40px 0 6px; letter-spacing: -.01em; }
.devdoc h3 { font: 700 15px var(--font-head); margin: 24px 0 6px; }
.devdoc p { max-width: 70ch; font-size: 15px; line-height: 1.65; margin: 8px 0; }
.devdoc .prose-list { max-width: 70ch; margin: 8px 0; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.devdoc .prose-list li { margin: 5px 0; }
.devdoc a { color: var(--blue); }
.devdoc a:hover { color: var(--blue-deep); }

/* code blocks */
.code {
  position: relative; background: #0c0e14; color: #e7e7ef; border-radius: 12px;
  border: 1px solid #1d1f2b; margin: 14px 0; overflow: hidden;
}
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.code code {
  font: 400 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: inherit; white-space: pre; tab-size: 2;
}
.code .copy {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font: 600 11.5px var(--font-body); color: #b9b9c8;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 7px; padding: 4px 9px; cursor: pointer;
}
.code .copy:hover { background: rgba(255,255,255,.12); color: #fff; }
.code .lang {
  display: inline-block; font: 600 10.5px var(--font-body); letter-spacing: .06em;
  text-transform: uppercase; color: var(--gray-2);
  padding: 6px 18px 0; background: transparent;
}
p code, li code, td code {
  font: 500 12.5px ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--tint); color: var(--blue-deep); padding: 1px 6px; border-radius: 5px;
}

/* params / examples table */
.api-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.api-table th, .api-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.api-table th { font: 700 12px var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--gray); }
.api-table td:first-child { white-space: nowrap; }
.api-table code { white-space: nowrap; }

/* method + endpoint pill */
.endpoint { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.method { font: 700 11px var(--font-head); letter-spacing: .06em; color: #fff; background: var(--blue);
  border-radius: 6px; padding: 3px 8px; }
.path { font: 600 14px ui-monospace, Menlo, monospace; color: var(--ink); }

/* live widget demo panel */
.demo-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center;
}
.demo-panel .demo-note { flex-basis: 100%; font-size: 13px; color: var(--gray-2); margin: 0 0 2px; }

/* draft banner */
.draft-banner {
  background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 12px;
  padding: 12px 16px; margin: 0 0 22px; font-size: 13.5px; color: #7a5200; max-width: 70ch;
}
