/* ============================================
   GTI SMS — API Docs
   Sistema visual (placeholder até receber brand)
   ============================================ */

:root {
  /* ===== LIGHT THEME (default) ===== */
  /* Cores base — branco/preto/vermelho GTI SMS */
  --bg: #ffffff;
  --bg-elev-1: #fafaf7;
  --bg-elev-2: #f4f4ef;
  --bg-elev-3: #e9e9e3;
  --border: #e6e6e0;
  --border-strong: #d2d2cc;

  --fg: #0a0a0a;
  --fg-muted: #525252;
  --fg-subtle: #8a8a85;

  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-dim: #fda4af;
  --accent-bg: rgba(225, 29, 72, 0.08);

  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;
  --info: #0369a1;

  /* HTTP method colors */
  --method-get: #15803d;
  --method-post: #e11d48;
  --method-put: #b45309;
  --method-delete: #991b1b;
  --method-patch: #6d28d9;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Spacing */
  --nav-w: 280px;
  --content-max: 1400px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 15, 15, 0.05);
  --shadow: 0 4px 14px rgba(15, 15, 15, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 15, 15, 0.16);

  /* Code panel — stays dark for readability */
  --code-bg: #0f1115;
  --code-bg-2: #161922;
  --code-border: #262a35;
  --code-fg: #e5e7eb;
  --code-fg-muted: #9ca3af;

  /* Topbar/elev surface alpha colors */
  --topbar-bg: rgba(255, 255, 255, 0.85);
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg: #0d0d0f;
  --bg-elev-1: #16161a;
  --bg-elev-2: #1f1f24;
  --bg-elev-3: #2a2a30;
  --border: #2a2a30;
  --border-strong: #3a3a42;

  --fg: #f5f5f4;
  --fg-muted: #a8a8a3;
  --fg-subtle: #6e6e68;

  --accent: #fb3a64;
  --accent-hover: #fda4af;
  --accent-dim: #7f1d1d;
  --accent-bg: rgba(251, 58, 100, 0.14);

  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #38bdf8;

  --method-get: #4ade80;
  --method-post: #fb3a64;
  --method-put: #fbbf24;
  --method-delete: #f87171;
  --method-patch: #c4b5fd;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);

  --topbar-bg: rgba(13, 13, 15, 0.85);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-hover); }

code, pre {
  font-family: var(--font-mono);
  font-feature-settings: "liga" 0;
}

/* ============================================
   App layout
   ============================================ */
.app {
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  min-height: 100vh;
}

/* ============================================
   Top bar
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: var(--topbar-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.brand-mark {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img {
  height: 28px;
  width: auto;
  display: block;
}
.brand-mark .placeholder-note {
  position: absolute;
  font-size: 8px;
  color: var(--fg-subtle);
  bottom: -14px;
  white-space: nowrap;
}

/* Hidden utility */
.hidden { display: none !important; }

.brand-version {
  margin-left: 4px;
  padding: 2px 8px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

/* Standalone code block used inside content pages */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow: auto;
  color: var(--code-fg);
  margin: 12px 0;
}
.code-block code { color: var(--code-fg); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  width: 260px;
  flex-shrink: 1;
  min-width: 0;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg-subtle);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.15s, background 0.15s;
}
.search-trigger:hover {
  border-color: var(--border-strong);
  background: var(--bg-elev-2);
}
.search-trigger .kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-elev-2);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-elev-1);
  border-color: var(--border);
}

/* ============================================
   Sidebar nav
   ============================================ */
.sidebar {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 24px 16px 80px;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

.nav-group {
  margin-bottom: 22px;
}
.nav-group-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  padding: 6px 10px;
  margin-bottom: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  line-height: 1.3;
}
.nav-item:hover {
  background: var(--bg-elev-1);
  color: var(--fg);
}
.nav-item.active {
  background: var(--accent-bg);
  color: var(--accent-hover);
  font-weight: 500;
}
.nav-method {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.02em;
  min-width: 36px;
  text-align: center;
}
.nav-method.get    { background: rgba(34, 197, 94, 0.15); color: var(--method-get); }
.nav-method.post   { background: rgba(59, 130, 246, 0.15); color: var(--method-post); }
.nav-method.put    { background: rgba(245, 158, 11, 0.15); color: var(--method-put); }
.nav-method.delete { background: rgba(239, 68, 68, 0.15); color: var(--method-delete); }
.nav-method.patch  { background: rgba(167, 139, 250, 0.15); color: var(--method-patch); }

/* ============================================
   Main content
   ============================================ */
.main {
  min-width: 0;
  padding: 40px 56px 120px;
  max-width: 1600px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-subtle);
  margin-bottom: 14px;
}
.crumbs span { color: var(--fg-muted); }
.crumbs .sep { opacity: 0.5; }

.page-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--fg);
}
.page-lede {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 720px;
}

h2.section-h {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
  padding-top: 8px;
  color: var(--fg);
  scroll-margin-top: 80px;
}
h3.section-h {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--fg);
  scroll-margin-top: 80px;
}

p { margin: 0 0 14px; color: var(--fg); }
p.muted { color: var(--fg-muted); }

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

/* Callout */
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.55;
}
.callout.info    { border-color: rgba(6, 182, 212, 0.3);  background: rgba(6, 182, 212, 0.06); }
.callout.warn    { border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.06); }
.callout.success { border-color: rgba(34, 197, 94, 0.3);  background: rgba(34, 197, 94, 0.06); }
.callout-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }

/* ============================================
   Endpoint card
   ============================================ */
.endpoint {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 36px;
  margin: 32px 0 60px;
  scroll-margin-top: 80px;
}
@media (max-width: 1180px) {
  .endpoint { grid-template-columns: 1fr; }
}

.endpoint-left { min-width: 0; }
.endpoint-right { min-width: 0; }

.endpoint-h {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.endpoint-desc {
  color: var(--fg-muted);
  font-size: 15px;
  margin: 0 0 20px;
}

.url-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.url-method {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
}
.url-method.get    { background: var(--method-get); }
.url-method.post   { background: var(--method-post); }
.url-method.put    { background: var(--method-put); }
.url-method.delete { background: var(--method-delete); }
.url-method.patch  { background: var(--method-patch); }

.url-path {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--fg);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.url-path::-webkit-scrollbar { display: none; }
.url-path .url-base { color: var(--fg-subtle); }
.url-path .url-var { color: var(--accent-hover); }

.try-btn {
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
}
.try-btn:hover { background: var(--bg-elev-2); color: var(--fg); }

/* Param table */
.params-h {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  margin: 24px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.param {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.param-key {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.param-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  font-weight: 600;
  word-break: break-word;
}
.param-type {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
}
.param-flags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.param-flag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 3px;
}
.param-flag.required { background: rgba(225, 29, 72, 0.12); color: var(--accent); }
.param-flag.optional { background: var(--bg-elev-2); color: var(--fg-subtle); }
.param-desc {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.55;
  min-width: 0;
  overflow-wrap: anywhere;
}
.param-desc .ex {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
}

/* ============================================
   Code panel (right column)
   ============================================ */
.code-panel {
  position: sticky;
  top: 80px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-tabs {
  display: flex;
  align-items: center;
  background: var(--code-bg-2);
  border-bottom: 1px solid var(--code-border);
  padding: 0 4px;
  height: 38px;
  gap: 0;
  overflow-x: auto;
}
.code-tabs::-webkit-scrollbar { display: none; }
.lang-tab {
  border: none;
  background: transparent;
  color: var(--code-fg-muted);
  padding: 0 12px;
  height: 100%;
  font-size: 12.5px;
  font-family: var(--font-sans);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.lang-tab:hover { color: var(--code-fg); }
.lang-tab.active {
  color: var(--code-fg);
  border-bottom-color: var(--accent);
}
.code-toolbar {
  margin-left: auto;
  display: flex;
  gap: 4px;
  padding-right: 6px;
}
.icon-btn {
  background: transparent;
  border: none;
  color: var(--code-fg-muted);
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--code-fg); }
/* icon-btn inside light surfaces (drawer/topbar) */
.topbar .icon-btn,
.tryit-head .icon-btn { color: var(--fg-muted); }
.topbar .icon-btn:hover,
.tryit-head .icon-btn:hover { background: var(--bg-elev-2); color: var(--fg); }

.code-body {
  max-height: 480px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  padding: 18px 20px;
  color: var(--code-fg);
}
.code-body::-webkit-scrollbar { width: 8px; height: 8px; }
.code-body::-webkit-scrollbar-track { background: transparent; }
.code-body::-webkit-scrollbar-thumb { background: var(--code-border); border-radius: 4px; }

.code-body pre { margin: 0; white-space: pre; }

/* Syntax highlighting (simple) */
.tok-kw     { color: #c084fc; }
.tok-str    { color: #86efac; }
.tok-num    { color: #fbbf24; }
.tok-fn     { color: #60a5fa; }
.tok-cm     { color: #6b7280; font-style: italic; }
.tok-prop   { color: #93c5fd; }
.tok-flag   { color: #f472b6; }
.tok-url    { color: #fdba74; }

/* Response section */
.response-block {
  border-top: 1px solid var(--code-border);
}
.response-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--code-bg-2);
  font-size: 12px;
  color: var(--code-fg-muted);
  cursor: pointer;
}
.response-head:hover { background: #1d212d; }
.status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.status-pill.s2xx { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-pill.s4xx { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-pill.s5xx { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* ============================================
   Search modal (Cmd+K)
   ============================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid;
  place-items: start center;
  padding-top: 12vh;
}
.search-modal {
  width: 90%;
  max-width: 580px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-size: 15px;
  font-family: inherit;
}
.search-input::placeholder { color: var(--fg-subtle); }
.search-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13.5px;
}
.search-result:hover, .search-result.active {
  background: var(--accent-bg);
  color: var(--accent-hover);
}
.search-result-group {
  font-size: 11px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 12px 4px;
}
.search-empty {
  padding: 40px 12px;
  text-align: center;
  color: var(--fg-subtle);
  font-size: 13px;
}

/* ============================================
   Try-it drawer
   ============================================ */
.tryit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 90;
}
.tryit-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(560px, 96vw);
  background: var(--bg-elev-1);
  border-left: 1px solid var(--border-strong);
  z-index: 95;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.tryit-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.tryit-title {
  font-weight: 600;
  font-size: 15px;
  flex: 1;
}
.tryit-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}
.tryit-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field-label {
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-label code {
  font-family: var(--font-mono);
  color: var(--accent);
}
.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 100px; resize: vertical; }

.tryit-response {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tryit-resp-head {
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  gap: 10px;
  align-items: center;
}
.tryit-resp-body {
  padding: 14px;
  background: var(--code-bg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: pre-wrap;
  color: var(--code-fg);
  max-height: 280px;
  overflow: auto;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elev-3);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 200;
  box-shadow: var(--shadow);
  animation: toastIn 0.2s ease-out;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================
   Hero (overview page)
   ============================================ */
.hero {
  padding: 28px 0 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--accent-bg);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 18px;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0 8px;
}
.feature {
  padding: 16px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, transform 0.15s;
  cursor: pointer;
}
.feature:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--accent-bg);
  color: var(--accent-hover);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.feature-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.feature-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Quickstart block */
.quickstart {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 24px 0;
}
.quickstart-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.quickstart-steps li {
  position: relative;
  padding-left: 36px;
  padding-bottom: 14px;
  counter-increment: step;
}
.quickstart-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--accent-bg);
  color: var(--accent-hover);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
  font-family: var(--font-mono);
}
.quickstart-steps li:last-child { padding-bottom: 0; }
.quickstart-steps li::after {
  content: "";
  position: absolute;
  left: 11.5px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.quickstart-steps li:last-child::after { display: none; }

/* Status grid */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.status-card {
  padding: 14px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.status-card-label {
  font-size: 11px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.status-card-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

/* Responsive */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 28px 20px 80px; }
  .search-trigger { width: 180px; }
}

/* Theme toggle button */
.theme-toggle {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.theme-toggle:hover {
  background: var(--bg-elev-1);
  color: var(--fg);
  border-color: var(--border-strong);
}

/* Status button — green operational indicator */
.btn-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(21, 128, 61, 0.3);
  background: rgba(21, 128, 61, 0.08);
  color: var(--success);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-status:hover {
  background: rgba(21, 128, 61, 0.14);
  border-color: rgba(21, 128, 61, 0.5);
  color: var(--success);
}
.btn-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.18);
  animation: statusPulse 2.2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(21, 128, 61, 0.28); }
}
[data-theme="dark"] .btn-status {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.1);
}
[data-theme="dark"] .btn-status:hover {
  background: rgba(74, 222, 128, 0.18);
  border-color: rgba(74, 222, 128, 0.5);
}
[data-theme="dark"] .btn-status .status-dot {
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22);
}
[data-theme="dark"] @keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22); }
  50%      { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.32); }
}

/* Hide status label on narrower viewports, keep the dot */
@media (max-width: 1100px) {
  .btn-status .status-label { display: none; }
  .btn-status { padding: 7px 10px; }
}

/* Smooth transitions on theme change */
body, .topbar, .sidebar, .nav-item, .btn,
.url-row, .param, .callout, .feature, .status-card,
.quickstart, .search-modal, .tryit-drawer {
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}


/* Anchor link */
.anchor {
  opacity: 0;
  margin-left: 8px;
  color: var(--fg-subtle);
  transition: opacity 0.15s;
  text-decoration: none;
  font-size: 0.85em;
}
h2.section-h:hover .anchor,
h3.section-h:hover .anchor { opacity: 1; }
