@font-face { font-family: "Avalon Sora"; src: url("/assets/fonts/sora/Sora-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #060807;
  --panel: #0c100e;
  --panel-2: #111612;
  --line: #202923;
  --text: #f2f7f3;
  --muted: #91a097;
  --accent: #d7ff39;
  --accent-soft: rgba(215, 255, 57, .12);
  --code: #080b09;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

html[data-doc-theme="light"] {
  color-scheme: light;
  --bg: #f6f8f6;
  --panel: #fff;
  --panel-2: #f0f4f1;
  --line: #dbe3dd;
  --text: #111713;
  --muted: #5f6d64;
  --accent: #6d8f00;
  --accent-soft: rgba(109, 143, 0, .11);
  --code: #edf2ee;
  --shadow: 0 24px 60px rgba(28, 47, 34, .1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Avalon Sora", Sora, "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}
body, button, input { font: inherit; }
button, input { color: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
code { color: var(--accent); }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--accent); color: #101508; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.docs-shell { min-height: 100vh; }
.docs-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: 306px; flex-direction: column; overflow-y: auto; border-right: 1px solid var(--line); background: var(--panel); scrollbar-color: var(--line) transparent; }
.brand-row { display: flex; align-items: center; justify-content: space-between; min-height: 86px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.brand img { display: block; width: 126px; height: auto; max-height: 44px; object-fit: contain; object-position: left center; }
.brand span { color: var(--accent); font-size: 12px; letter-spacing: .12em; }
.mobile-close, .menu-button { display: none; background: transparent; font-size: 24px; }
.search-box { display: flex; align-items: center; gap: 9px; margin: 18px 16px 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel-2); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.docs-nav { padding: 0 10px 20px; }
.nav-group { padding: 10px 0 8px; }
.nav-group > strong { display: block; padding: 6px 12px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-group > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 6px 12px; border-radius: 7px; color: var(--muted); font-size: 13px; }
.nav-group > a:hover, .nav-group > a.is-active { background: var(--accent-soft); color: var(--text); }
.nav-group > a.is-active { box-shadow: inset 3px 0 var(--accent); }
.nav-group > a > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.method { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 43px; padding: 2px 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.method-post { color: #7bd7ff; background: rgba(123, 215, 255, .11); }
.method-put { color: #d6a5ff; background: rgba(214, 165, 255, .11); }
.method-delete { color: #ff9e9e; background: rgba(255, 158, 158, .11); }
.sidebar-actions { display: grid; gap: 8px; margin: auto 16px 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sidebar-actions a { color: var(--accent); font-size: 12px; }
.sidebar-actions a:hover { text-decoration: underline; }

.docs-main { min-width: 0; margin-left: 306px; }
.docs-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; min-height: 72px; padding: 0 42px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); }
.topbar-title { display: grid; line-height: 1.2; }
.topbar-title span { font-weight: 800; letter-spacing: -.02em; }
.topbar-title small { color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; color: var(--muted); font-size: 12px; }
.topbar-actions > a { color: var(--accent); font-weight: 700; }
.topbar-actions button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-2); }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #7ee787; box-shadow: 0 0 0 4px rgba(126, 231, 135, .12); }
.docs-content { width: min(100%, 1160px); margin: 0 auto; padding: 68px 58px 42px; }
.hero { padding-bottom: 56px; }
.eyebrow, .section-heading > span, .reference-heading > span, .group-heading span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 780px; margin: 14px 0 18px; font-size: clamp(40px, 5vw, 70px); line-height: 1.03; letter-spacing: -.065em; }
.hero > p { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); font-size: 13px; font-weight: 700; }
.button:hover { border-color: var(--accent); }
.button.primary { border-color: var(--accent); background: var(--accent); color: #111709; }
.base-url-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 670px; margin-top: 28px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.base-url-card small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.base-url-card code { word-break: break-all; font-size: 13px; }
.base-url-card button, .code-head button { padding: 6px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 62px; }
.overview-grid article { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.overview-grid article > span { color: var(--accent); font-size: 12px; font-weight: 800; }
.overview-grid h2 { margin: 12px 0 7px; font-size: 16px; letter-spacing: -.02em; }
.overview-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.doc-section, .endpoint-group, .availability { scroll-margin-top: 96px; padding: 48px 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 15px; }
.section-heading h2, .reference-heading h2, .group-heading h2 { margin: 6px 0 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -.045em; }
.doc-section > p, .reference-heading > p, .group-heading > p { max-width: 760px; color: var(--muted); font-size: 15px; }
.code-card { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--code); }
.code-head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; }
pre { margin: 0; overflow-x: auto; padding: 16px; color: var(--text); font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.notice, .endpoint-note { display: flex; gap: 10px; margin-top: 16px; padding: 13px 15px; border: 1px solid rgba(215, 255, 57, .24); border-radius: 8px; background: var(--accent-soft); color: var(--muted); font-size: 13px; }
.notice strong { color: var(--accent); white-space: nowrap; }
.reference-heading { padding: 68px 0 20px; }
.group-heading { display: grid; grid-template-columns: minmax(180px, .65fr) 1fr; gap: 30px; align-items: end; margin-bottom: 16px; }
.group-heading > p { margin: 0 0 3px; }
.endpoint { scroll-margin-top: 96px; margin: 12px 0; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.endpoint-title { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.endpoint-title > code { color: var(--text); font-size: 13px; word-break: break-all; }
.auth-badge { margin-left: auto; color: var(--muted); font-size: 11px; }
.endpoint h3 { margin: 15px 0 4px; font-size: 18px; }
.endpoint > p { margin: 0; color: var(--muted); font-size: 13px; }
.endpoint-note { display: inline-flex; padding: 7px 10px; font-size: 12px; }
.endpoint details { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.endpoint summary { padding: 10px 13px; cursor: pointer; color: var(--muted); font-size: 12px; }
.endpoint details pre { border-top: 1px solid var(--line); }
.availability-row { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.availability-row strong { color: #7ee787; font-size: 12px; }
.availability-row strong[class*="partial"], .availability-row strong[class*="beta"] { color: #ffd866; }
.docs-footer { display: flex; justify-content: space-between; gap: 20px; padding: 42px 0 8px; color: var(--muted); font-size: 11px; }
.docs-footer div { display: flex; gap: 15px; }
.docs-footer a:hover { color: var(--accent); }
.copy-toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; padding: 9px 13px; border-radius: 7px; background: var(--accent); color: #111709; font-size: 12px; font-weight: 800; box-shadow: var(--shadow); }
.sidebar-backdrop { display: none; }

@media (max-width: 980px) {
  .docs-sidebar { width: min(90vw, 330px); transform: translateX(-101%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .docs-sidebar.is-open { transform: translateX(0); }
  .mobile-close, .menu-button { display: block; }
  .mobile-close { color: var(--muted); }
  .menu-button { margin-right: 12px; color: var(--text); }
  .docs-main { margin-left: 0; }
  .docs-topbar { padding: 0 18px; }
  .topbar-title { margin-right: auto; }
  .docs-content { padding: 48px 22px 24px; }
  .overview-grid { grid-template-columns: 1fr; }
  .group-heading { grid-template-columns: 1fr; gap: 0; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(0, 0, 0, .55); }
}

@media (max-width: 620px) {
  .docs-topbar { min-height: 62px; }
  .topbar-title small, .status { display: none; }
  .topbar-actions { gap: 8px; }
  .docs-content { padding: 36px 16px 20px; }
  .hero { padding-top: 5px; }
  .hero h1 { font-size: 40px; }
  .hero > p { font-size: 16px; }
  .base-url-card { align-items: flex-start; flex-direction: column; }
  .base-url-card button { align-self: flex-start; }
  .overview-grid { margin-bottom: 54px; }
  .doc-section { padding: 42px 0; }
  .auth-badge { margin-left: 0; }
  .endpoint { padding: 16px; }
  .docs-footer { flex-direction: column; }
}
