
  :root {
    /* Dark API-reference palette — matches the main docs shell
       (static/site.css). Brand colors kept for accents. */
    --bg: #0c0c0d;
    --bg-elev: #17171b;
    --bg-card: #17171b;
    --bg-soft: #1d1d23;
    --bg-code: #0e0e10;
    --line: #26262d;
    --line-soft: #1d1d23;
    --text: #ececf1;
    --text-dim: #a4a4b3;
    --text-mute: #6b6b78;
    --link: #9b95ff;
    --link-hover: #c7c3ff;
    --code-inline: #98c379;

    --sogni-green: #00C97A;
    --sogni-lime: #6FBE00;
    --sogni-pink: #F0008F;
    --sogni-magenta: #FF00CF;
    --sogni-blue: #3D31FA;
    --sogni-amber: #FFCC3B;
    --sogni-cyan: #00B8B0;

    /* Vivid brand gradients reserved for the hero banner. */
    --sogni-green-vivid: #00FF9D;
    --sogni-lime-vivid: #C3FF03;
    --grad-primary: linear-gradient(135deg, #00FF9D 0%, #C3FF03 100%);
    --grad-pink: linear-gradient(135deg, #F0008F 0%, #FF00CF 100%);
    --grad-violet: linear-gradient(135deg, #3D31FA 0%, #F0008F 100%);
    --grad-spectrum: linear-gradient(135deg, #00FF9D 0%, #00FFF8 25%, #3D31FA 55%, #F0008F 80%, #FFCC3B 100%);

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -16px rgba(15, 23, 42, 0.08);
    --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --sans: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  a { color: var(--link); text-decoration: none; }
  a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--link); }
  code, pre { font-family: var(--mono); }

  /* ---------- Top bar ---------- */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(12, 12, 13, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .topbar-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .topbar .back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 13.5px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    transition: color 120ms, background 120ms, border-color 120ms;
  }
  .topbar .back:hover {
    color: var(--text);
    border-color: #34343d;
    background: var(--bg-soft);
    text-decoration: none;
  }
  .topbar .ghlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 13.5px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 120ms, background 120ms;
  }
  .topbar .ghlink:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
  .topbar .ghlink svg { width: 16px; height: 16px; }
  .topbar .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
  }
  .topbar .brand .ball {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(0, 255, 157, 0.35));
  }
  .topbar .brand .wordmark {
    height: 22px;
    width: auto;
    flex-shrink: 0;
  }
  .topbar .brand .divider {
    width: 1px;
    height: 22px;
    background: var(--line);
    margin: 0 4px;
  }
  .topbar .brand .descriptor {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
    white-space: nowrap;
  }
  .topbar .spacer { flex: 1; }
  .topbar .pill {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mute);
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
  }
  .topbar .cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ececf1;
    color: #0c0c0d;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 120ms;
  }
  .topbar .cta:hover { background: var(--sogni-blue); text-decoration: none; color: #ffffff; }

  /* ---------- Layout (full-width, matches /pricing/) ---------- */
  .layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 32px 32px 120px;
  }

  /* ---------- Surfaces at a glance ---------- */
  .surfaces-glance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 24px 0 4px;
  }
  .surfaces-glance .glance-card {
    position: relative;
    padding: 16px 18px 18px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-elev);
    color: var(--text);
    text-decoration: none;
    transition: border-color 140ms, transform 140ms, box-shadow 140ms;
  }
  .surfaces-glance .glance-card::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: var(--grad-primary);
  }
  .surfaces-glance .glance-card:nth-child(2)::before { background: var(--grad-violet); }
  .surfaces-glance .glance-card:nth-child(3)::before { background: var(--grad-pink); }
  .surfaces-glance .glance-card:nth-child(4)::before { background: linear-gradient(180deg, #FFCC3B 0%, #F0008F 100%); }
  .surfaces-glance .glance-card:hover { border-color: #34343d; transform: translateY(-1px); box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.12); }
  .surfaces-glance .glance-card .tag {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 4px;
  }
  .surfaces-glance .glance-card .name {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text);
  }
  .surfaces-glance .glance-card p {
    margin: 0;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
  }

  /* ---------- Sticky TOC ---------- */
  nav.toc {
    position: sticky;
    top: 80px;
    align-self: start;
    padding: 12px 4px 32px;
    background: transparent;
    border: none;
    border-radius: 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  nav.toc .group-title {
    font-family: var(--mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-mute);
    font-weight: 600;
    padding: 0 10px;
    margin: 22px 0 6px;
  }
  nav.toc .group-title:first-child { margin-top: 0; }

  nav.toc ul {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  nav.toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.35;
    transition: color 120ms, background 120ms;
  }
  nav.toc a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
  nav.toc a.active {
    color: var(--text);
    background: var(--bg-soft);
    font-weight: 600;
  }

  /* Method badge inside the sidebar — small, monospace, color-coded by verb. */
  nav.toc .verb {
    display: inline-block;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: 36px;
    text-align: center;
    padding: 2px 0;
    border-radius: 4px;
    flex-shrink: 0;
  }
  nav.toc .verb-get    { background: #d1fae5; color: #047857; }
  nav.toc .verb-post   { background: #e0e7ff; color: #3730a3; }
  nav.toc .verb-patch  { background: #fef3c7; color: #92400e; }
  nav.toc .verb-delete { background: #fee2e2; color: #991b1b; }

  nav.toc a code,
  nav.toc a .path {
    font-family: var(--mono);
    font-size: 12px;
    color: inherit;
    background: transparent;
    padding: 0;
  }

  /* ---------- Main column ---------- */
  main { min-width: 0; }

  section.api-section {
    padding-top: 56px;
    padding-bottom: 24px;
    scroll-margin-top: 80px;
  }
  section.api-section:first-of-type { padding-top: 0; }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 16px;
  }
  .eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sogni-green);
    box-shadow: 0 0 10px var(--sogni-green);
  }
  h1 {
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 900;
    margin: 0 0 18px;
    color: var(--text);
  }
  h2 {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--text);
  }
  h3 {
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--text);
  }
  h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-mute);
    font-weight: 600;
    margin: 18px 0 8px;
  }
  p { margin: 0 0 14px; color: var(--text-dim); }
  p strong { color: var(--text); font-weight: 600; }
  ul, ol { margin: 0 0 14px; padding-left: 22px; color: var(--text-dim); }
  ul li, ol li { margin-bottom: 4px; }

  /* ---------- Hero banner ----------
     Dark colorful card at the top of main column — reuses the brand
     treatment from /Welcome to Sogni/. Everything below the banner is
     light-themed standard API-ref content. */
  .hero {
    position: relative;
    margin: 0 0 40px;
    padding: 44px 40px 48px;
    border-radius: 18px;
    background-color: #0c0c0d;
    /* Layered overlays so the cosmic artwork stays subtle behind text + cards.
       Left → right horizontal gradient darkens the text column the most,
       top → bottom adds a uniform darkening so the surfaces-glance row stays
       readable against the brightest part of the nebula. */
    background-image:
      linear-gradient(180deg, rgba(12, 12, 13, 0.32) 0%, rgba(12, 12, 13, 0.68) 100%),
      linear-gradient(90deg, rgba(12, 12, 13, 0.92) 0%, rgba(12, 12, 13, 0.78) 40%, rgba(12, 12, 13, 0.55) 75%, rgba(12, 12, 13, 0.55) 100%),
      url('/assets/api-reference-banner.jpg');
    background-size: cover, cover, cover;
    background-position: center center, center center, right center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    color: #ececf1;
    overflow: hidden;
    isolation: isolate;
  }
  .hero > * { position: relative; z-index: 1; }
  .hero .eyebrow {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
  }
  .hero h1 {
    /* Use color + paint-order so descenders (g, p, y) aren't clipped by
       the gradient text rendering. Padding gives the bottom bearing
       room for the "g" tail under all browsers. */
    color: transparent;
    background: linear-gradient(120deg, #00FF9D 0%, #C3FF03 55%, #FFCC3B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.025em;
    font-size: clamp(40px, 5.4vw, 64px);
    line-height: 1.15;
    margin: 14px 0 18px;
    padding-bottom: 0.08em;
    display: inline-block;
  }
  .hero p.lede {
    font-size: 17px;
    line-height: 1.55;
    color: #ececf1;
    max-width: 720px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  }
  .hero .badges {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero .badges .pill {
    font-family: var(--mono);
    font-size: 11.5px;
    color: rgba(236, 236, 241, 0.85);
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
  }
  .hero .badges .pill.accent {
    color: #0c0c0d;
    background: var(--grad-primary);
    border-color: transparent;
    font-weight: 700;
  }
  @media (max-width: 720px) {
    .hero { padding: 28px 24px 32px; border-radius: 14px; }
  }

  /* ---------- Endpoint cards ---------- */
  .endpoint {
    margin: 22px 0;
    padding: 22px 22px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elev);
    box-shadow: var(--shadow-soft);
    position: relative;
  }
  .endpoint:hover { border-color: #34343d; }
  .endpoint > header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .method {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 6px;
    color: #0c0c0d;
    text-transform: uppercase;
  }
  .method { color: #ffffff; }
  .method-get    { background: #047857; }
  .method-post   { background: #3730a3; }
  .method-patch  { background: #b45309; }
  .method-delete { background: #991b1b; }
  .method-put    { background: #1d4ed8; }
  .endpoint .path {
    font-family: var(--mono);
    font-size: 14.5px;
    color: var(--text);
    font-weight: 500;
    word-break: break-all;
  }
  .endpoint .auth-badge {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-mute);
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    white-space: nowrap;
  }
  .endpoint .auth-badge.auth-required { color: #047857; border-color: rgba(4, 120, 87, 0.32); background: #ecfdf5; }
  .endpoint .auth-badge.auth-public  { color: var(--text-mute); background: var(--bg-soft); }

  .endpoint .desc {
    color: var(--text-dim);
    margin: 0 0 12px;
  }

  /* ---------- Params tables ---------- */
  table.params {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin-bottom: 14px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  table.params th, table.params td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
  }
  table.params th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-mute);
    font-weight: 600;
    background: var(--bg-soft);
  }
  table.params td { color: var(--text-dim); }
  table.params td code,
  table.params td.name,
  table.params td.type {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--text);
  }
  table.params td .req {
    color: #c81b6e;
    font-weight: 700;
    margin-left: 4px;
    font-family: var(--mono);
  }
  table.params td.in {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-mute);
    text-transform: lowercase;
  }
  table.params tr:last-child td { border-bottom: none; }

  /* ---------- Code blocks with tabs ---------- */
  .code-tabs {
    margin: 12px 0 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-code);
    overflow: hidden;
  }
  .code-tabs .tabs {
    display: flex;
    border-bottom: 1px solid #1d1d23;
    background: #18181c;
  }
  .code-tabs .tab {
    border: none;
    background: transparent;
    color: #a4a4b3;
    font-family: var(--mono);
    font-size: 11.5px;
    padding: 9px 14px;
    cursor: pointer;
    letter-spacing: 0.04em;
    border-right: 1px solid #1d1d23;
    transition: color 120ms;
  }
  .code-tabs .tab:hover { color: #ececf1; }
  .code-tabs .tab.active {
    color: #ececf1;
    background: rgba(0, 255, 157, 0.08);
    border-bottom: 1px solid var(--sogni-green-vivid);
    margin-bottom: -1px;
  }
  .code-tabs pre {
    margin: 0;
    padding: 14px 16px;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.55;
    color: #d9d9e2;
  }
  .code-tabs pre[hidden] { display: none; }
  .code-tabs pre code { color: inherit; font-family: var(--mono); white-space: pre; }
  .code-tabs { position: relative; }

  /* Copy button — sits in the top-right of any code block.
     Code blocks are dark, so the copy button styles match that. */
  .copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a4a4b3;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    padding: 4px 9px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 140ms ease, color 140ms ease, border-color 140ms ease;
  }
  .code-tabs:hover .copy-btn,
  .code-tabs:focus-within .copy-btn,
  .has-copy:hover .copy-btn,
  .has-copy:focus-within .copy-btn,
  .copy-btn:focus { opacity: 1; }
  .copy-btn:hover { color: #ececf1; border-color: var(--sogni-green-vivid); }
  .copy-btn.copied { color: var(--sogni-green-vivid); border-color: var(--sogni-green-vivid); }

  .has-copy { position: relative; }

  /* ---------- Response block ---------- */
  pre.response {
    margin: 0 0 6px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-code);
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.55;
    color: #d9d9e2;
  }

  /* ---------- Inline code ---------- */
  p code, li code, td code:not(.no-style) {
    background: var(--bg-soft);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.92em;
    color: var(--code-inline);
    border: 1px solid var(--line-soft);
  }

  /* ---------- Callouts ---------- */
  .callout {
    border-left: 3px solid #3730a3;
    background: #eef2ff;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 14px 0;
    color: #1e293b;
    font-size: 14px;
  }
  .callout.warn { border-left-color: #b45309; background: #fffbeb; color: #1e293b; }
  .callout.tip  { border-left-color: #047857; background: #ecfdf5; color: #1e293b; }
  .callout strong { color: #0f172a; }

  /* ---------- Status code badges ---------- */
  .status-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
  .status-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); }
  .status-table tr:last-child td { border-bottom: none; }
  .status {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    color: #0c0c0d;
  }
  .status { color: #ffffff; }
  .status-2xx { background: #047857; }
  .status-4xx { background: #b45309; }
  .status-5xx { background: #991b1b; }

  /* ---------- Footer / resources ---------- */
  .resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 12px;
  }
  .resources a {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elev);
    color: var(--text);
    transition: border-color 120ms, transform 120ms, box-shadow 120ms;
  }
  .resources a:hover {
    border-color: #34343d;
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.12);
  }
  .resources a .title {
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
  }
  .resources a .summary {
    color: var(--text-dim);
    font-size: 13px;
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 960px) {
    .layout { grid-template-columns: 1fr; padding: 24px 20px 100px; }
    nav.toc { position: relative; top: 0; max-height: none; }
    h1 { font-size: 36px; }
    .topbar-inner { padding: 12px 20px; gap: 12px; flex-wrap: wrap; }
    .topbar .spacer { display: none; }
  }

/* Shared, multi-page reference shell. No carousel or product-app scripts. */
:root { --text-mute: #9898a7; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sogni-green-vivid); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 30; padding: 10px; background: var(--bg-elev); }
.skip-link:focus { top: 10px; }
.api-logo { width: 108px; max-height: 36px; object-fit: contain; }
.layout { grid-template-columns: 235px minmax(0, 1fr); gap: 40px; }
.api-sidebar { position: sticky; top: 92px; align-self: start; max-height: calc(100dvh - 108px); overflow-y: auto; padding: 4px; }
.api-sidebar nav.toc { position: static; max-height: none; padding-bottom: 12px; }
.api-search { position: relative; padding: 0 6px 12px; }
.api-search label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.api-search input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: var(--text); background: var(--bg-elev); font: inherit; font-size: 12px; }
.api-search-results { margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-elev); font-size: 12px; }
.api-search-results a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.api-search-results a:last-child { border: 0; }
.api-search-results strong, .api-search-results span { display: block; }
.api-search-results span { color: var(--text-dim); margin-top: 4px; }
.api-nav-toggle { display: none; width: 100%; padding: 12px; color: var(--text); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; font: inherit; text-align: left; }
.api-overview-link { margin-bottom: 18px; }
.api-context { color: var(--text-dim); font-size: 12px; margin: 0 0 28px; }
.api-content h1 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.15; letter-spacing: -0.04em; margin: 0 0 24px; }
.api-content h2, .api-content h3, .api-content h4 { scroll-margin-top: 110px; }
.api-content h2 { margin-top: 36px; }
.api-reading > p, .api-directory-intro { color: var(--text-dim); max-width: 80ch; }
.api-reading > ul, .api-reading > ol { padding-left: 24px; }
.api-reading li { margin: 6px 0; }
.api-reading p code, .api-reading li code { overflow-wrap: anywhere; }
.api-reading pre { position: relative; max-width: 100%; overflow-x: auto; padding: 40px 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-code); font-size: 12px; line-height: 1.6; }
.api-reading pre code { white-space: pre; }
.api-reading .copy-btn { opacity: 1; }
.api-reading .heading-anchor { display: inline; margin-right: 8px; font-size: 0.65em; color: var(--text-mute); }
.api-reading table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
.api-reading th, .api-reading td { padding: 10px 12px; text-align: left; border: 1px solid var(--line); vertical-align: top; }
.api-reading th { background: var(--bg-soft); }
.api-reading td { color: var(--text-dim); }
.api-page-toc { display: none; }
.api-page-toc ul { padding-left: 12px; list-style: none; }
.api-page-toc a { display: block; padding: 5px 0; color: var(--text-dim); font-size: 12px; }
.api-page-toc a[aria-current] { color: var(--sogni-green-vivid); }
.api-page-toc .group-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.api-page-toc ul ul ul { display: none; }
.api-directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.api-directory-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); padding: 20px; }
.api-directory-card h4 { margin: 0 0 8px; font-size: 18px; }
.api-directory-card p { color: var(--text-dim); font-size: 13px; margin: 0 0 14px; }
.api-directory-card ul { list-style: none; padding: 0; margin: 0; }
.api-directory-card li { margin: 9px 0; font-size: 11px; }
.api-directory-card li a { display: flex; align-items: baseline; gap: 8px; }
.api-directory-card code { background: none; border: 0; padding: 0; font-size: 11px; overflow-wrap: anywhere; }
.api-directory-card .verb { flex: 0 0 42px; font-family: var(--mono); font-size: 10px; color: #aaa3ff; }
.api-directory-card .verb-get { color: #64d6ab; }
.api-directory-card .verb-delete { color: #ff9daa; }
.api-directory-card .verb-patch { color: #edc277; }
.api-overview .api-reading { border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: radial-gradient(ellipse at top right, #292140 0%, transparent 70%), var(--bg-elev); }
.api-overview .api-reading h1 { max-width: 16ch; color: var(--text); }
.api-mascot { margin: 28px 0; }
.api-mascot > a { display: block; border-radius: 10px; overflow: hidden; }
.api-mascot img { display: block; width: 100%; height: auto; }
.api-mascot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 10px; font-size: 11px; line-height: 1.6; color: var(--text-mute); }
.api-mascot-topic { max-width: 680px; }
@media (min-width: 1280px) {
  .api-overview .api-reading { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 28px; }
  .api-overview .api-reading > h1 { grid-column: 1; grid-row: 1; }
  .api-overview .api-reading > p { grid-column: 1 / -1; }
  .api-overview .api-reading > p:first-of-type { grid-column: 1; grid-row: 2; margin-top: 0; }
  .api-overview .api-mascot { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0 0 24px; }
}
.api-legacy-links { margin: 48px 0; color: var(--text-dim); font-size: 13px; }
.api-legacy-links summary { cursor: pointer; }
.api-legacy-links li { scroll-margin-top: 100px; }
.api-footer { display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; font-size: 12px; color: var(--text-mute); }
@media (min-width: 1400px) {
  .layout:has(.api-page-toc) { grid-template-columns: 235px minmax(0, 1fr) 175px; gap: 32px; }
  .api-page-toc { display: block; position: sticky; top: 100px; align-self: start; max-height: calc(100dvh - 120px); overflow-y: auto; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 20px 16px 60px; }
  .api-sidebar { position: static; max-height: none; overflow: visible; }
  .api-nav-toggle { display: block; }
  .api-enhanced #api-navigation:not(.is-open) { display: none; }
  .api-overview .api-reading { padding: 24px; }
  .topbar-inner { padding: 12px 16px; gap: 10px; }
  .topbar .cta { margin-left: auto; font-size: 12px; }
  .topbar .brand { gap: 8px; }
  .topbar .descriptor { font-size: 12px; }
  .api-logo { width: 76px; }
  .endpoint { padding: 14px; }
  .api-context { margin-bottom: 20px; }
}
@media (max-width: 480px) {
  .topbar .cta { display: none; }
  .topbar .brand { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
