/* ==============================================================================
   NexChecker API Docs — Minimal Obsidian Developer Reference
   ============================================================================== */

:root {
  --bg-page: #070709;
  --bg-surface: #0c0c10;
  --bg-card: #111116;
  --bg-card-2: #17171e;
  --bg-code: #0a0a0e;

  --border-subtle: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text-primary: #fafafa;
  --text-body: #b6b6c4;
  --text-muted: #70707e;

  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.13);
  --accent-glow: rgba(59, 130, 246, 0.28);

  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.12);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --purple: #c084fc;
  --purple-soft: rgba(192, 132, 252, 0.12);

  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --sidebar-w: 210px;
  --header-h: 58px;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) #0d0d11;
}

/* Night-mode Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #141418;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid #141418;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}
::-webkit-scrollbar-corner {
  background: #141418;
}

body {
  background: var(--bg-page);
  background-image: radial-gradient(ellipse 75% 40% at 50% -10%, var(--accent-soft), transparent 70%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-image 500ms ease;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border-subtle);
  padding: 1px 5px;
  border-radius: 5px;
  color: #e4e4ec;
}

pre {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.52;
  overflow-x: auto;
  tab-size: 2;
}

/* ══ HEADER ════════════════════════════════════════════════════════════════ */
.docs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(9, 9, 12, 0.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.header-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 0; }

.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 160ms ease;
}
.menu-toggle:hover {
  background: var(--bg-card-2);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-soft);
}
.menu-toggle:active { transform: scale(0.95); }
.menu-toggle.is-open {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.hamburger-box {
  position: relative;
  width: 16px;
  height: 12px;
  display: block;
}
.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease, top 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 5px; width: 12px; }
.hamburger-line:nth-child(3) { top: 10px; }

.menu-toggle.is-open .hamburger-line:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.menu-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-6px);
}
.menu-toggle.is-open .hamburger-line:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  min-width: 0;
}
.top-nav .nav-link {
  margin-bottom: 0;
  padding: 6px 12px;
  border-left: none;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
}
.top-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}
.top-nav .nav-link.active {
  background: var(--bg-card-2);
  color: var(--text-primary);
  box-shadow: inset 0 -2px 0 var(--accent), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.brand-mark:hover { text-decoration: none; }

.dynamic-logo-frame {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 18px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: box-shadow 450ms ease, border-color 450ms ease;
}

.dynamic-logo-img {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
  border-radius: 5px;
  will-change: transform, opacity, clip-path, filter;
}
.dynamic-logo-img.is-hidden { display: none; }
.dynamic-logo-img.is-front  { z-index: 2; }
.dynamic-logo-img.is-stage  { z-index: 3; }

.logo-dissolve-flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, var(--accent-glow) 60%, transparent 100%);
  mix-blend-mode: screen;
}
.logo-dissolve-flash.is-flashing {
  animation: dissolveFlash 400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes dissolveFlash {
  0%   { opacity: 0; transform: scale(0.75); }
  40%  { opacity: 0.9; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.25); }
}

/* ── Editorial Film Transitions (Wipe, Additive Dissolve, Cross-Cut, Spin, Cutaway) ── */
.tr-wipe-out { animation: trWipeOut 400ms ease forwards; }
.tr-wipe-in  { animation: trWipeIn 400ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes trWipeOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0.45; transform: scale(0.9); }
}
@keyframes trWipeIn {
  0%   { clip-path: polygon(0 0, 0 0, -28% 100%, -28% 100%); filter: brightness(1.35); }
  100% { clip-path: polygon(0 0, 130% 0, 102% 100%, 0 100%); filter: brightness(1); }
}

.tr-dissolve-out { animation: trDissolveOut 400ms ease forwards; }
.tr-dissolve-in  { animation: trDissolveIn 400ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes trDissolveOut {
  0%   { opacity: 1; filter: brightness(1) blur(0); transform: scale(1); }
  50%  { opacity: 0.8; filter: brightness(2.5) blur(1.5px); transform: scale(1.07); }
  100% { opacity: 0; filter: brightness(2.8) blur(3px); transform: scale(1.1); }
}
@keyframes trDissolveIn {
  0%   { opacity: 0; filter: brightness(2.6) saturate(1.4); transform: scale(0.92); }
  100% { opacity: 1; filter: brightness(1) saturate(1); transform: scale(1); }
}

.tr-crosscut-out { animation: trCrosscutOut 340ms cubic-bezier(0.55, 0, 1, 0.45) forwards; }
.tr-crosscut-in  { animation: trCrosscutIn 340ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes trCrosscutOut {
  0%   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(-125%, 0, 0) scale(0.86); }
}
@keyframes trCrosscutIn {
  0%   { opacity: 0; transform: translate3d(125%, 0, 0) scale(0.86); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.tr-spin-out { animation: trSpinOut 420ms cubic-bezier(0.4, 0, 0.6, 1) forwards; }
.tr-spin-in  { animation: trSpinIn 420ms cubic-bezier(0.34, 1.38, 0.64, 1) forwards; }
@keyframes trSpinOut {
  0%   { opacity: 1; transform: rotate(0deg) scale(1); }
  100% { opacity: 0; transform: rotate(-180deg) scale(0.35); }
}
@keyframes trSpinIn {
  0%   { opacity: 0; transform: rotate(180deg) scale(0.35); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}

.tr-cutaway-out { animation: trCutawayOut 360ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.tr-cutaway-in  { animation: trCutawayIn 360ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes trCutawayOut {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.32); filter: blur(2px); }
}
@keyframes trCutawayIn {
  0%   { opacity: 0; transform: scale(0.66); }
  65%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand-title {
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -0.35px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.brand-label-slot {
  display: block;
  height: 13px;
  overflow: hidden;
  margin-top: 2px;
}

.brand-live-service {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 13px;
  will-change: transform, opacity;
}
.brand-live-service.label-out { animation: labelSlideOut 150ms ease forwards; }
.brand-live-service.label-in  { animation: labelSlideIn 220ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes labelSlideOut {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-100%); }
}
@keyframes labelSlideIn {
  0%   { opacity: 0; transform: translateY(100%); }
  100% { opacity: 1; transform: translateY(0); }
}

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: all 140ms ease;
}
.nav-btn:hover { border-color: var(--border-strong); background: var(--bg-card-2); text-decoration: none; }
.nav-btn.primary { background: #f4f4f6; border-color: #f4f4f6; color: #09090b; }
.nav-btn.primary:hover { background: #ffffff; }

/* ══ SHELL & MOBILE DRAWER ═════════════════════════════════════════════════ */
body.drawer-open { overflow: hidden; }

.docs-shell {
  padding-top: var(--header-h);
  min-height: 100vh;
}

.docs-sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: min(290px, 84vw);
  background: rgba(11, 11, 15, 0.96);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-right: 1px solid var(--border-strong);
  box-shadow: 16px 0 40px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  padding: 14px 12px 24px;
  z-index: 310;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), visibility 240ms ease;
}
.docs-sidebar.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.drawer-close {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 140ms ease;
}
.drawer-close:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-card-2);
}

#sidebarNav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: none;
  gap: 8px;
}
.drawer-footer .nav-btn {
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  transition: all 140ms ease;
  border-left: 2px solid transparent;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); text-decoration: none; }
.docs-sidebar .nav-link.active {
  background: var(--accent-soft);
  color: var(--text-primary);
  border-left-color: var(--accent);
  font-weight: 700;
}

.method-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green);
}

.sidebar-backdrop {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ══ MAIN CONTENT ══════════════════════════════════════════════════════════ */
.docs-main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  min-width: 0;
}

.doc-section {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.doc-section:last-child { border-bottom: none; margin-bottom: 0; }

h2.sec-h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.35px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

h3.sub-h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 16px 0 8px;
}

p.desc { color: var(--text-body); margin-bottom: 10px; font-size: 13px; }

/* ── Compact Callouts ── */
.callout {
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: 12px 0;
  border: 1px solid;
  font-size: 12.5px;
  line-height: 1.55;
}
.callout.info { background: var(--blue-soft); border-color: rgba(96, 165, 250, 0.25); color: #dbeafe; }
.callout.warn { background: var(--amber-soft); border-color: rgba(251, 191, 36, 0.25); color: #fef3c7; }

/* ── Endpoint Card ── */
.endpoint-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin: 10px 0 18px;
  overflow: hidden;
}

.endpoint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 16px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border-subtle);
}

.endpoint-path-wrap { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.http-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.32);
}

.endpoint-path { font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; color: var(--text-primary); }

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.auth-badge.active { background: var(--green-soft); color: var(--green); }
.auth-badge.active::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.auth-badge.disabled { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }
.auth-badge.apikey { background: var(--purple-soft); color: var(--purple); }

.endpoint-body { padding: 14px 16px; }

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 8px 0 12px;
  background: var(--bg-card);
}

table.doc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; text-align: left; }
table.doc-table th {
  background: var(--bg-card-2);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
table.doc-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
  vertical-align: top;
}
table.doc-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
table.doc-table tr:last-child td { border-bottom: none; }

.req-pill {
  font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px;
  background: var(--red-soft); color: var(--red); margin-left: 5px;
}
.opt-pill {
  font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.06); color: var(--text-muted); margin-left: 5px;
}

.engine-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
.engine-name-cell img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px;
}

/* ── Code Blocks (VS Code Dark+ Theme) ── */
.code-block {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  margin: 8px 0 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: #252526;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  color: #cccccc;
}

.copy-code-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d4d4d4;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  cursor: pointer;
}
.copy-code-btn:hover { border-color: #007acc; color: #ffffff; background: rgba(0, 122, 204, 0.25); }

.code-block pre {
  padding: 10px 0;
  color: #d4d4d4;
  max-height: 390px;
  background: #1e1e1e;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) #1e1e1e;
}

.code-block pre::-webkit-scrollbar-track { background: #1e1e1e; }
.code-block pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid #1e1e1e;
}
.code-block pre::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }
.code-block pre::-webkit-scrollbar-corner { background: #1e1e1e; }

.code-line {
  display: flex;
  align-items: flex-start;
  min-width: max-content;
  padding-right: 16px;
  transition: background 90ms ease;
}
.code-line:hover {
  background: rgba(255, 255, 255, 0.035);
}

.line-num {
  flex: 0 0 42px;
  padding: 0 11px 0 8px;
  text-align: right;
  color: #6e7681;
  user-select: none;
  -webkit-user-select: none;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  margin-right: 14px;
  position: sticky;
  left: 0;
  background: #1e1e1e;
}
.code-line:hover .line-num {
  color: #c6c6d0;
  background: #252527;
}

.line-code {
  flex: 1;
  white-space: pre;
}

/* VS Code Dark+ / Dark Modern Token Colors */
.tok-key  { color: #9cdcfe; }
.tok-str  { color: #ce9178; }
.tok-num  { color: #b5cea8; }
.tok-bool { color: #569cd6; }
.tok-kw   { color: #569cd6; }
.tok-ctrl { color: #c586c0; }
.tok-fn   { color: #dcdcaa; }
.tok-type { color: #4ec9b0; }
.tok-var  { color: #9cdcfe; }
.tok-comm { color: #6a9955; font-style: italic; }
.tok-punc { color: #d4d4d4; }
.tok-brk1 { color: #ffd700; }
.tok-brk2 { color: #da70d6; }

.code-tabs { display: flex; gap: 4px; }
.code-tab {
  background: none;
  border: 1px solid transparent;
  color: #858585;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  cursor: pointer;
}
.code-tab:hover { color: #cccccc; }
.code-tab.active {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.14);
  border-bottom-color: #007acc;
  color: #ffffff;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card-2);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 180ms ease;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ══ RESPONSIVE ════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .docs-header { padding: 0 14px; }
  .menu-toggle { display: inline-flex; }
  .top-nav { display: none; }
  .docs-main { padding: 20px 16px 52px; }
}

@media (max-width: 520px) {
  .header-right .nav-btn:not(.primary) { display: none; }
  .drawer-footer { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
