/* =====================================================================
   Site público Uneway — Miller DS (tokens do app) + Liquid Glass em CSS.
   Canvas preto/branco, CTA neutro em pílula, vidro em todas as superfícies.
   ===================================================================== */
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-display: "General Sans", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --content-max: 1160px;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* escuro (padrão) */
  color-scheme: dark;
  --canvas: #000000;
  --surface: #16181a;
  --hairline: rgba(255, 255, 255, 0.12);
  --divider: rgba(255, 255, 255, 0.07);
  --fill: rgba(255, 255, 255, 0.07);
  --fill-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.74);
  --text-3: #8d969e;
  --cta-bg: #ffffff;
  --cta-text: #000000;
  --positive: #34c26a;
  --negative: #ff5a66;
  --warning: #f59a2a;
  --glass-bg: rgba(12, 12, 13, 0.58);
  --glass-bg-regular: rgba(21, 22, 23, 0.40);
  --glass-edge: rgba(255, 255, 255, 0.22);
  --glass-edge-soft: rgba(255, 255, 255, 0.08);
  --glass-spec: rgba(255, 255, 255, 0.12);
  --glass-shade: rgba(0, 0, 0, 0.28);
  --ray-1: rgba(255, 255, 255, 0.16);
  --ray-2: rgba(160, 170, 180, 0.12);
  /* emblema em vidro: branco translúcido no escuro */
  --logo-face-0: rgba(255, 255, 255, 0.80);
  --logo-face-1: rgba(241, 243, 246, 0.40);
  --logo-face-2: rgba(201, 206, 214, 0.22);
  --logo-face-3: rgba(227, 231, 236, 0.36);
  --logo-face-4: rgba(255, 255, 255, 0.66);
  --logo-edge-0: #ffffff;
  --logo-edge-1: rgba(186, 192, 201, 0.55);
  --logo-edge-2: #ffffff;
  --logo-depth: rgba(255, 255, 255, 0.22);
  --logo-shadow: rgba(0, 0, 0, 0.55);
  --logo-rim: rgba(255, 255, 255, 0.85);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --canvas: #f4f4f4;
    --surface: #ffffff;
    --hairline: #e2e2e7;
    --divider: #ececf0;
    --fill: rgba(25, 28, 31, 0.05);
    --fill-strong: rgba(25, 28, 31, 0.09);
    --text: #191c1f;
    --text-2: #505a63;
    --text-3: #6f7880;
    --cta-bg: #000000;
    --cta-text: #ffffff;
    --positive: #2f7a12;
    --negative: #d0313f;
    --warning: #a35600;
    --glass-bg: rgba(255, 255, 255, 0.66);
    --glass-bg-regular: rgba(255, 255, 255, 0.45);
    --glass-edge: rgba(255, 255, 255, 0.9);
    --glass-edge-soft: rgba(0, 0, 0, 0.06);
    --glass-spec: rgba(255, 255, 255, 0.55);
    --glass-shade: rgba(0, 0, 0, 0.10);
    --ray-1: rgba(120, 130, 140, 0.20);
    --ray-2: rgba(0, 0, 0, 0.06);
    /* emblema em vidro fumê no claro: corpo escuro, borda e sombra escuras */
    --logo-face-0: rgba(74, 79, 87, 0.78);
    --logo-face-1: rgba(28, 31, 36, 0.84);
    --logo-face-2: rgba(8, 9, 11, 0.90);
    --logo-face-3: rgba(36, 40, 46, 0.86);
    --logo-face-4: rgba(90, 96, 106, 0.80);
    --logo-edge-0: rgba(0, 0, 0, 0.90);
    --logo-edge-1: rgba(92, 94, 96, 0.75);
    --logo-edge-2: rgba(0, 0, 0, 0.90);
    --logo-depth: rgba(0, 0, 0, 0.45);
    --logo-shadow: rgba(0, 0, 0, 0.26);
    --logo-rim: rgba(255, 255, 255, 0.50);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #f4f4f4;
  --surface: #ffffff;
  --hairline: #e2e2e7;
  --divider: #ececf0;
  --fill: rgba(25, 28, 31, 0.05);
  --fill-strong: rgba(25, 28, 31, 0.09);
  --text: #191c1f;
  --text-2: #505a63;
  --text-3: #6f7880;
  --cta-bg: #000000;
  --cta-text: #ffffff;
  --positive: #2f7a12;
  --negative: #d0313f;
  --warning: #a35600;
  --glass-bg: rgba(255, 255, 255, 0.66);
  --glass-bg-regular: rgba(255, 255, 255, 0.45);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --glass-edge-soft: rgba(0, 0, 0, 0.06);
  --glass-spec: rgba(255, 255, 255, 0.55);
  --glass-shade: rgba(0, 0, 0, 0.10);
  --ray-1: rgba(120, 130, 140, 0.20);
  --ray-2: rgba(0, 0, 0, 0.06);
  /* emblema em vidro fumê no claro: corpo escuro, borda e sombra escuras */
  --logo-face-0: rgba(74, 79, 87, 0.78);
  --logo-face-1: rgba(28, 31, 36, 0.84);
  --logo-face-2: rgba(8, 9, 11, 0.90);
  --logo-face-3: rgba(36, 40, 46, 0.86);
  --logo-face-4: rgba(90, 96, 106, 0.80);
  --logo-edge-0: rgba(0, 0, 0, 0.90);
  --logo-edge-1: rgba(92, 94, 96, 0.75);
  --logo-edge-2: rgba(0, 0, 0, 0.90);
  --logo-depth: rgba(0, 0, 0, 0.45);
  --logo-shadow: rgba(0, 0, 0, 0.26);
  --logo-rim: rgba(255, 255, 255, 0.50);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}
/* Raios de luz atrás do vidro (dão o que refratar) */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vmax 28vmax at 78% 8%, var(--ray-1), transparent 70%),
    radial-gradient(36vmax 30vmax at 8% 38%, var(--ray-2), transparent 70%),
    radial-gradient(30vmax 22vmax at 70% 82%, var(--ray-2), transparent 70%);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; z-index: 100; background: var(--cta-bg); color: var(--cta-text); padding: 8px 14px; border-radius: var(--radius-full); }

.wrap { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Vidro (mesmo material do app: thick / regular) ---------- */
.glass, .glass-thick {
  background:
    linear-gradient(180deg, var(--glass-spec) 0%, transparent 38%, transparent 72%, var(--glass-shade) 100%),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    inset 0 1px 0 0 var(--glass-edge),
    inset 0 0 0 1px var(--glass-edge-soft),
    inset 0 -1px 0 0 var(--glass-shade),
    0 1px 2px 0 var(--glass-shade);
}
.glass-regular {
  background:
    linear-gradient(180deg, var(--glass-spec) 0%, transparent 40%, transparent 75%, var(--glass-shade) 100%),
    var(--glass-bg-regular);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  box-shadow: inset 0 1px 0 0 var(--glass-edge), inset 0 0 0 1px var(--glass-edge-soft);
}

/* ---------- Tipografia ---------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; }
h3 { font-size: 20px; line-height: 1.35; }
p { margin: 0; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); line-height: 1.55; max-width: 640px; }
.muted { color: var(--text-3); }
.small { font-size: 14px; }
.caption { font-size: 13px; color: var(--text-3); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
code, pre { font-family: var(--font-mono); font-size: 13.5px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: var(--radius-full); padding: 8px 8px 8px 18px; min-height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
/* Emblema Uneway em vidro (sprite #uw-glass no topo de cada página) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand .brand-logo { width: 34px; height: 29px; overflow: visible; flex-shrink: 0; }
#uw-face stop:nth-child(1) { stop-color: var(--logo-face-0); }
#uw-face stop:nth-child(2) { stop-color: var(--logo-face-1); }
#uw-face stop:nth-child(3) { stop-color: var(--logo-face-2); }
#uw-face stop:nth-child(4) { stop-color: var(--logo-face-3); }
#uw-face stop:nth-child(5) { stop-color: var(--logo-face-4); }
#uw-edge stop:nth-child(1) { stop-color: var(--logo-edge-0); }
#uw-edge stop:nth-child(2) { stop-color: var(--logo-edge-1); }
#uw-edge stop:nth-child(3) { stop-color: var(--logo-edge-2); }
.uw-depth { fill: var(--logo-depth); }
.uw-shadow { fill: var(--logo-shadow); }
.uw-rim { stroke: var(--logo-rim); }
.nav-links { display: none; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius-full); text-decoration: none; font-size: 15px; color: var(--text-2); transition: background .2s var(--ease), color .2s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--fill); color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-actions .btn-ghost { display: none; }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions .btn-ghost { display: inline-flex; }
  .menu-btn { display: none !important; }
}
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full); border: 0; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--fill); }
.icon-btn svg { width: 20px; height: 20px; }
.mobile-menu { display: none; margin-top: 8px; border-radius: var(--radius-lg); padding: 8px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: flex; min-height: 48px; align-items: center; padding: 0 14px; border-radius: var(--radius-md); text-decoration: none; color: var(--text); }
.mobile-menu a:hover { background: var(--fill); }
@media (min-width: 960px) { .mobile-menu { display: none !important; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-full); border: 0;
  font: 600 15px/1 var(--font-sans); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: transform .12s var(--ease), opacity .2s var(--ease), background .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--cta-bg); color: var(--cta-text); }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--fill); }
.btn-glass { color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Seções ---------- */
section { padding: 72px 0; }
@media (min-width: 720px) { section { padding: 96px 0; } }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.hero { padding: 56px 0 72px; }
@media (min-width: 720px) { .hero { padding: 88px 0 104px; } }
.hero h1 { max-width: 900px; }
.hero .lead { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; list-style: none; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--radius-full); font-size: 14px; color: var(--text-2); }
.chip b { color: var(--text); font-weight: 600; }

.grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { border-radius: var(--radius-lg); padding: 24px; min-width: 0; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15px; }
.card .icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--fill); margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; }
.panel { border-radius: var(--radius-xl); padding: 24px; }
@media (min-width: 720px) { .panel { padding: 36px; } }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; }
.steps li .card::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 14px; color: var(--text-3); margin-bottom: 18px; }

/* ---------- Tabela de preços ---------- */
.table-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
table.prices { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 15px; }
.prices th { text-align: left; font-size: 13px; font-weight: 600; color: var(--text-3); padding: 12px 10px; border-bottom: 1px solid var(--divider); }
.prices td { padding: 16px 10px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.prices tr:last-child td { border-bottom: 0; }
.prices td.fee { font-weight: 600; font-family: var(--font-display); font-size: 18px; }
.prices .r { text-align: right; }
.facts { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { border-radius: var(--radius-md); padding: 16px; background: var(--fill); }
.fact .k { font-size: 13px; color: var(--text-3); }
.fact .v { font-family: var(--font-display); font-size: 22px; margin-top: 4px; }
.state { padding: 20px; border-radius: var(--radius-md); background: var(--fill); color: var(--text-2); font-size: 15px; }
.state.error { color: var(--text); }
.skeleton { height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--fill), var(--fill-strong), var(--fill)); background-size: 200% 100%; animation: sk 1.4s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Formulários ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.input, .select {
  width: 100%; min-height: 56px; padding: 0 16px; border-radius: var(--radius-md);
  border: 0; color: var(--text); font: 400 16px var(--font-sans);
  background: var(--fill); box-shadow: inset 0 0 0 1px var(--hairline);
  transition: box-shadow .2s var(--ease), background .2s var(--ease);
}
.input:focus, .select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--text); }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 22px) 26px, calc(100% - 16px) 26px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.select option { color: #191c1f; background: #fff; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-msg { font-size: 14px; min-height: 20px; }
.form-msg.ok { color: var(--positive); }
.form-msg.err { color: var(--negative); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--text); }

/* ---------- Calculadora ---------- */
.calc { display: grid; gap: 24px; }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--divider); font-size: 15px; }
.result-row:last-child { border-bottom: 0; }
.result-row .k { color: var(--text-3); }
.result-row.big .v { font-family: var(--font-display); font-size: 28px; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented button { min-height: 40px; padding: 0 14px; border-radius: var(--radius-full); border: 0; background: var(--fill); color: var(--text-2); font: 600 14px var(--font-sans); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--cta-bg); color: var(--cta-text); }

/* ---------- Código ---------- */
.code { border-radius: var(--radius-lg); padding: 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; white-space: pre; color: var(--text); }
.code .c { color: var(--text-3); }
.code .s { color: var(--positive); }

/* ---------- FAQ ---------- */
.faq details { border-radius: var(--radius-lg); padding: 0 20px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 24px; color: var(--text-3); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--text-2); font-size: 15px; }
.faq details > div p + p { margin-top: 10px; }

/* ---------- Documento (termos, privacidade) ---------- */
.doc { max-width: 780px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { margin: 24px 0 8px; font-size: 18px; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc .updated { margin-top: 12px; }
.toc { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.toc a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 12px; border-radius: var(--radius-full); background: var(--fill); text-decoration: none; font-size: 14px; color: var(--text-2); }

/* ---------- CTA e rodapé ---------- */
.cta-band { border-radius: var(--radius-xl); padding: 32px 24px; display: grid; gap: 28px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding: 48px; align-items: start; } }
.site-footer { padding: 40px 0 48px; }
.footer-grid { border-radius: var(--radius-xl); padding: 28px 24px; display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; padding: 36px; } }
.footer-grid h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid a { text-decoration: none; color: var(--text-2); font-size: 15px; display: inline-flex; min-height: 32px; align-items: center; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--text-3); padding: 0 8px; }

.page-head { padding: 56px 0 24px; }
@media (min-width: 720px) { .page-head { padding: 80px 0 32px; } }
.page-head h1 { font-size: clamp(36px, 6vw, 60px); }
.page-head .lead { margin-top: 16px; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; background: var(--fill); color: var(--text-2); }
.list-check { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.list-check li { display: flex; gap: 10px; color: var(--text-2); font-size: 15px; }
.list-check li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--fill-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%238d969e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Documentação da API (/docs) ---------- */
.docs-head { padding-bottom: 16px; }
.docs-head h1 { font-size: clamp(30px, 5vw, 48px); }
.docs-layout { display: grid; gap: 14px; align-items: start; }
@media (min-width: 960px) { .docs-layout { grid-template-columns: 240px minmax(0, 1fr); } }
.docs-nav { border-radius: var(--radius-lg); padding: 8px; }
@media (min-width: 960px) { .docs-nav { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; } }
.docs-nav summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-weight: 600; }
.docs-nav summary::-webkit-details-marker { display: none; }
.docs-nav summary::after { content: "+"; font-family: var(--font-display); font-size: 20px; color: var(--text-3); }
.docs-nav details[open] summary::after { content: "–"; }
@media (min-width: 960px) { .docs-nav summary { display: none; } }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-md); text-decoration: none; color: var(--text-2); font-size: 15px; }
.docs-nav a:hover, .docs-nav a[aria-current="page"] { background: var(--fill); color: var(--text); }
.docs-content { max-width: none; min-width: 0; }
.docs-content h2 { font-size: 24px; margin: 36px 0 12px; scroll-margin-top: 96px; }
.docs-content h2:first-child { margin-top: 0; }
.docs-content p code, .docs-content li code, .docs-content td code { background: var(--fill); padding: 1px 6px; border-radius: 6px; font-size: 13px; overflow-wrap: anywhere; }
.docs-content .code { margin: 14px 0; font-size: 13px; }
.docs-content .table-wrap { margin: 14px 0; }
table.dtable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
table.dtable th { text-align: left; color: var(--text-3); font-weight: 600; font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
table.dtable td { padding: 10px 12px; border-bottom: 1px solid var(--divider); color: var(--text-2); vertical-align: top; }
.req { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--warning); text-transform: uppercase; letter-spacing: .04em; }
.endpoint { border-top: 1px solid var(--divider); padding-top: 22px; margin-top: 22px; scroll-margin-top: 96px; }
.endpoint h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 6px; overflow-wrap: anywhere; }
.endpoint .ep-summary { font-weight: 600; color: var(--text); }
.endpoint .ep-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.verb { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 6px; font: 700 12px var(--font-mono); background: var(--fill-strong); color: var(--text); }
.verb-get { color: var(--positive); }
.verb-post { color: var(--warning); }
.verb-put, .verb-patch { color: #6aa8ff; }
.verb-delete { color: var(--negative); }
.code-tabs { margin: 14px 0; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.code-tabs details { border-radius: var(--radius-md); background: var(--fill); min-width: 0; overflow: hidden; }
.code-tabs summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 14px; font-weight: 600; font-size: 14px; }
.code-tabs summary::-webkit-details-marker { display: none; }
.code-tabs details > .code { margin: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.ref-index { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 4px; }
@media (min-width: 720px) { .ref-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ref-index a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: var(--radius-md); text-decoration: none; color: var(--text-2); overflow-wrap: anywhere; }
.ref-index a:hover { background: var(--fill); }
