/* ================================================================
   Ticketify Docs CSS
   Inspired by: discordjs.guide  +  tickety.top/docs
   ================================================================ */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --docs-bg:          #0b0c14;
  --docs-sidebar-bg:  #0e0f1a;
  --docs-surface:     #13141f;
  --docs-surface2:    #191a27;
  --docs-border:      rgba(255,255,255,0.07);
  --docs-border2:     rgba(255,255,255,0.04);
  --docs-text:        #dde1f5;
  --docs-text-muted:  #6b7099;
  --docs-text-faint:  #3d4060;
  --docs-brand:       #5865F2;
  --docs-brand-hover: #4752c4;
  --docs-brand-soft:  rgba(88,101,242,0.12);
  --docs-brand-glow:  rgba(88,101,242,0.25);
  --docs-green:       #23d18b;
  --docs-yellow:      #e5c000;
  --docs-red:         #f14c4c;
  --docs-cyan:        #29b8db;
  --docs-topbar-h:    58px;
  --docs-sidebar-w:   270px;
  --docs-toc-w:       210px;
  --docs-radius:      10px;
  --docs-font:        'DM Sans', system-ui, sans-serif;
  --docs-mono:        'JetBrains Mono', 'Fira Code', monospace;
  --docs-transition:  0.15s ease;
}

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

.docs-body {
  font-family: var(--docs-font);
  font-size: 15px;
  line-height: 1.7;
  background: var(--docs-bg);
  color: var(--docs-text);
  min-height: 100vh;
}

/* ── Topbar ─────────────────────────────────────────────────────── */
.docs-topbar {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  height: var(--docs-topbar-h);
  background: rgba(11,12,20,0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--docs-border);
  z-index: 200;
}
.docs-topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 0 1.25rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* hamburger */
.docs-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.docs-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--docs-text-muted);
  border-radius: 2px;
  transition: var(--docs-transition);
}

/* brand */
.docs-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--docs-text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.docs-brand-avatar { border-radius: 50%; }
.docs-brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--docs-brand);
  background: var(--docs-brand-soft);
  border: 1px solid rgba(88,101,242,0.28);
  border-radius: 4px;
  padding: 1px 6px;
}

/* search */
.docs-search-wrap { flex: 1; max-width: 360px; position: relative; }
.docs-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  padding: 0.38rem 0.75rem;
  cursor: text;
  transition: border-color var(--docs-transition), box-shadow var(--docs-transition);
}
.docs-search-box:focus-within {
  border-color: var(--docs-brand);
  box-shadow: 0 0 0 3px var(--docs-brand-glow);
}
.docs-search-box svg { color: var(--docs-text-faint); flex-shrink: 0; }
#docsSearch {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  font-family: var(--docs-font); font-size: 0.85rem;
  color: var(--docs-text);
}
#docsSearch::placeholder { color: var(--docs-text-faint); }
.docs-search-box kbd {
  font-family: var(--docs-font);
  font-size: 0.62rem;
  padding: 1px 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--docs-text-muted);
  white-space: nowrap;
}

/* search dropdown */
.docs-search-dropdown {
  position: absolute; top: calc(100% + 6px); inset-inline: 0;
  background: #13141f;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--docs-radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 400;
}
.docs-search-dropdown.is-open { display: block; }
.docs-search-hit {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--docs-text);
  border-bottom: 1px solid var(--docs-border2);
  transition: background var(--docs-transition);
}
.docs-search-hit:last-child { border-bottom: none; }
.docs-search-hit:hover, .docs-search-hit:focus { background: var(--docs-brand-soft); outline: none; }
.docs-search-hit-label { font-size: 0.875rem; font-weight: 600; }
.docs-search-hit-group { font-size: 0.72rem; color: var(--docs-text-muted); margin-top: 1px; }
.docs-search-empty { padding: 1.25rem; text-align: center; font-size: 0.875rem; color: var(--docs-text-muted); }

/* topnav */
.docs-topnav {
  display: flex; align-items: center; gap: 0.15rem;
  margin-left: auto; flex-shrink: 0;
}
.docs-topnav-link {
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--docs-text-muted);
  text-decoration: none;
  white-space: nowrap;
  display: flex; align-items: center; gap: 0.35rem;
  transition: color var(--docs-transition), background var(--docs-transition);
}
.docs-topnav-link:hover { color: var(--docs-text); background: rgba(255,255,255,0.05); }
.docs-topnav-link.is-active { color: var(--docs-text); }
.docs-topnav-discord { color: #7289da !important; }
.docs-topnav-discord:hover { background: rgba(114,137,218,0.12) !important; }
.docs-topnav-cta {
  margin-left: 0.35rem;
  padding: 0.3rem 0.9rem;
  background: var(--docs-brand);
  color: #fff !important;
  border-radius: 7px;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none;
  transition: background var(--docs-transition), transform var(--docs-transition);
}
.docs-topnav-cta:hover { background: var(--docs-brand-hover); transform: translateY(-1px); }

/* ── Overlay (mobile) ───────────────────────────────────────────── */
.docs-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: 150;
}
.docs-overlay.is-open { display: block; }

/* ── Shell: sidebar + main ──────────────────────────────────────── */
.docs-shell {
  display: flex;
  margin-top: var(--docs-topbar-h);
  min-height: calc(100vh - var(--docs-topbar-h));
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Sidebar ────────────────────────────────────────────────────── */
.docs-sidebar {
  width: var(--docs-sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: var(--docs-topbar-h);
  height: calc(100vh - var(--docs-topbar-h));
  overflow: hidden;
  border-right: 1px solid var(--docs-border);
  background: var(--docs-sidebar-bg);
}
.docs-sidebar-scroller {
  height: 100%;
  overflow-y: auto;
  padding: 1.25rem 0 3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(88,101,242,0.25) transparent;
}
.docs-sidebar-scroller::-webkit-scrollbar { width: 3px; }
.docs-sidebar-scroller::-webkit-scrollbar-thumb { background: rgba(88,101,242,0.25); border-radius: 3px; }

.docs-nav-group { margin-bottom: 0.25rem; }
.docs-nav-group-label {
  padding: 0.55rem 1.2rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--docs-text-faint);
}
.docs-nav-list { list-style: none; }
.docs-nav-link {
  display: block;
  padding: 0.38rem 1.2rem 0.38rem 1.5rem;
  font-size: 0.875rem;
  color: var(--docs-text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  line-height: 1.5;
  transition: color var(--docs-transition), border-color var(--docs-transition), background var(--docs-transition);
}
.docs-nav-link:hover { color: var(--docs-text); background: rgba(255,255,255,0.03); }
.docs-nav-link.is-active {
  color: var(--docs-brand);
  border-left-color: var(--docs-brand);
  background: var(--docs-brand-soft);
  font-weight: 600;
}

.docs-sidebar-footer {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem 0;
  border-top: 1px solid var(--docs-border);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.docs-sidebar-support {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--docs-text-muted);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color var(--docs-transition);
}
.docs-sidebar-support:hover { color: var(--docs-text); }

/* ── Main ───────────────────────────────────────────────────────── */
.docs-main {
  flex: 1; min-width: 0;
  display: flex;
}

.docs-content {
  flex: 1; min-width: 0;
  padding: 2.5rem 2.5rem 5rem;
  max-width: 860px;
}

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.docs-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--docs-text-muted);
  margin-bottom: 1.75rem;
}
.docs-breadcrumb a { color: inherit; text-decoration: none; }
.docs-breadcrumb a:hover { color: var(--docs-brand); }
.docs-breadcrumb span { opacity: 0.5; }
.docs-breadcrumb-current { opacity: 1; color: var(--docs-text); }

/* ── Article ────────────────────────────────────────────────────── */
.docs-article h1 {
  font-family: var(--docs-font);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--docs-border);
}
.docs-article h2 {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em;
  color: #fff;
  margin: 2.25rem 0 0.75rem;
  padding-top: 0.25rem;
  scroll-margin-top: calc(var(--docs-topbar-h) + 1rem);
}
.docs-article h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--docs-text);
  margin: 1.75rem 0 0.5rem;
  scroll-margin-top: calc(var(--docs-topbar-h) + 1rem);
}
.docs-article p { margin-bottom: 1rem; color: #b8bdd8; line-height: 1.78; }
.docs-article a { color: #818CF8; text-underline-offset: 2px; }
.docs-article a:hover { color: var(--docs-brand); }
.docs-article ul, .docs-article ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.docs-article li { color: #b8bdd8; margin-bottom: 0.3rem; line-height: 1.7; }
.docs-article strong { color: var(--docs-text); font-weight: 700; }
.docs-article hr { border: none; border-top: 1px solid var(--docs-border); margin: 2rem 0; }

/* inline code */
.docs-article :not(pre) > code {
  font-family: var(--docs-mono);
  font-size: 0.82em;
  background: rgba(88,101,242,0.1);
  color: #a5b4fc;
  border: 1px solid rgba(88,101,242,0.2);
  border-radius: 4px;
  padding: 0.1em 0.42em;
}

/* code blocks */
.docs-article pre {
  background: #0d0e18;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--docs-radius);
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: 0.75rem 0 1.5rem;
  position: relative;
}
.docs-article pre code {
  font-family: var(--docs-mono);
  font-size: 0.875rem;
  color: #c9d1d9;
  line-height: 1.65;
  background: none; border: none; padding: 0;
}
/* copy button injected by JS */
.docs-copy-btn {
  position: absolute; top: 0.6rem; right: 0.6rem;
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  cursor: pointer;
  color: var(--docs-text-muted);
  font-family: var(--docs-font); font-size: 0.7rem;
  transition: all var(--docs-transition);
}
.docs-copy-btn:hover { background: rgba(255,255,255,0.1); color: var(--docs-text); }

/* ── Tables ─────────────────────────────────────────────────────── */
.docs-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1.5rem;
  border-radius: var(--docs-radius);
  border: 1px solid var(--docs-border);
}
.docs-table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.docs-table-wrap th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--docs-text-muted);
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--docs-border);
}
.docs-table-wrap td {
  padding: 0.65rem 1rem;
  color: #b8bdd8;
  border-bottom: 1px solid var(--docs-border2);
  vertical-align: top;
}
.docs-table-wrap tr:last-child td { border-bottom: none; }
.docs-table-wrap tr:hover td { background: rgba(255,255,255,0.015); }

/* ── Callout blocks ─────────────────────────────────────────────── */
.docs-callout {
  display: flex; gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--docs-radius);
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem; line-height: 1.65;
}
.docs-callout-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.docs-callout-body { min-width: 0; }
.docs-callout-title { font-weight: 700; margin-bottom: 0.18rem; }
.docs-callout-text { opacity: 0.88; }
.docs-callout--tip    { background: rgba(35,209,139,0.08);  border: 1px solid rgba(35,209,139,0.22);  color: #23d18b; }
.docs-callout--note   { background: rgba(88,101,242,0.09);  border: 1px solid rgba(88,101,242,0.28);  color: #818CF8; }
.docs-callout--warn   { background: rgba(229,192,0,0.09);   border: 1px solid rgba(229,192,0,0.28);   color: var(--docs-yellow); }
.docs-callout--danger { background: rgba(241,76,76,0.09);   border: 1px solid rgba(241,76,76,0.25);   color: var(--docs-red); }

/* ── Command card ───────────────────────────────────────────────── */
.docs-cmd {
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin: 0.75rem 0 1.5rem;
  transition: border-color var(--docs-transition);
}
.docs-cmd:hover { border-color: rgba(88,101,242,0.35); }
.docs-cmd-header { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.6rem; }
.docs-cmd-name {
  font-family: var(--docs-mono);
  font-size: 1rem; font-weight: 700;
  color: #a5b4fc;
  background: rgba(88,101,242,0.1);
  border-radius: 6px;
  padding: 0.12rem 0.55rem;
}
.docs-cmd-desc { color: #b8bdd8; font-size: 0.9rem; line-height: 1.65; margin-bottom: 0.75rem; }
.docs-cmd-usage {
  font-family: var(--docs-mono); font-size: 0.85rem;
  background: #0d0e18;
  border: 1px solid var(--docs-border);
  border-radius: 7px;
  padding: 0.45rem 0.85rem;
  color: #c9d1d9;
  margin-bottom: 0.55rem;
}
.docs-cmd-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ── Badges ─────────────────────────────────────────────────────── */
.docs-badge {
  display: inline-flex; align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem; font-weight: 700;
  border: 1px solid; letter-spacing: 0.02em;
  white-space: nowrap;
}
.docs-badge--blue   { background: rgba(88,101,242,0.12);  color: #818CF8; border-color: rgba(88,101,242,0.28); }
.docs-badge--green  { background: rgba(35,209,139,0.1);   color: #23d18b; border-color: rgba(35,209,139,0.25); }
.docs-badge--yellow { background: rgba(229,192,0,0.1);    color: #e5c000; border-color: rgba(229,192,0,0.25); }
.docs-badge--red    { background: rgba(241,76,76,0.1);    color: #f14c4c; border-color: rgba(241,76,76,0.22); }
.docs-badge--purple { background: rgba(168,85,247,0.1);   color: #c084fc; border-color: rgba(168,85,247,0.25); }
.docs-badge--cyan   { background: rgba(41,184,219,0.1);   color: var(--docs-cyan); border-color: rgba(41,184,219,0.22); }

/* ── TOC ────────────────────────────────────────────────────────── */
.docs-toc {
  width: var(--docs-toc-w);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--docs-topbar-h) + 1.5rem);
  max-height: calc(100vh - var(--docs-topbar-h) - 3rem);
  overflow-y: auto;
  padding: 0 0.75rem;
  margin-top: 2.5rem;
  scrollbar-width: none;
}
.docs-toc::-webkit-scrollbar { display: none; }
.docs-toc-title {
  font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--docs-text-faint);
  margin-bottom: 0.6rem;
}
.docs-toc-list { list-style: none; }
.docs-toc-list li { border-left: 2px solid var(--docs-border2); }
.docs-toc-list a {
  display: block;
  padding: 0.28rem 0.6rem;
  font-size: 0.78rem;
  color: var(--docs-text-muted);
  text-decoration: none;
  line-height: 1.5;
  transition: color var(--docs-transition), border-color var(--docs-transition);
}
.docs-toc-list a:hover { color: var(--docs-text); }
.docs-toc-list a.is-active { color: var(--docs-brand); }
.docs-toc-list li.is-active { border-left-color: var(--docs-brand); }
.docs-toc-list .is-h3 a { padding-left: 1.1rem; font-size: 0.73rem; }

/* ── Pager ──────────────────────────────────────────────────────── */
.docs-pager {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--docs-border);
}
.docs-pager-card {
  display: flex; flex-direction: column; gap: 0.2rem;
  text-decoration: none;
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius);
  padding: 0.85rem 1.1rem;
  max-width: 48%;
  min-width: 0;
  transition: border-color var(--docs-transition), background var(--docs-transition);
}
.docs-pager-card:hover { border-color: var(--docs-brand); background: var(--docs-brand-soft); }
.docs-pager-card--next { align-items: flex-end; margin-left: auto; }
.docs-pager-dir {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; color: var(--docs-text-muted);
}
.docs-pager-label {
  font-size: 0.875rem; font-weight: 600;
  color: var(--docs-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Page footer ────────────────────────────────────────────────── */
.docs-page-footer {
  margin-top: 1.5rem;
  font-size: 0.8rem; color: var(--docs-text-faint);
  text-align: center;
}
.docs-page-footer a { color: var(--docs-text-muted); }
.docs-page-footer a:hover { color: var(--docs-brand); }

/* ── Home page ──────────────────────────────────────────────────── */
.docs-home-hero {
  text-align: center;
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--docs-border);
  margin-bottom: 2.5rem;
}
.docs-home-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid rgba(88,101,242,0.4);
  box-shadow: 0 0 32px rgba(88,101,242,0.2);
  margin-bottom: 1rem;
}
.docs-home-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.15;
  background: linear-gradient(135deg, #fff 25%, #818CF8 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.docs-home-sub {
  font-size: 1rem; color: var(--docs-text-muted);
  max-width: 500px; margin: 0 auto 1.75rem; line-height: 1.75;
}
.docs-home-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.docs-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.58rem 1.35rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: all var(--docs-transition);
}
.docs-btn--primary {
  background: var(--docs-brand); color: #fff;
  box-shadow: 0 4px 18px var(--docs-brand-glow);
}
.docs-btn--primary:hover { background: var(--docs-brand-hover); transform: translateY(-1px); }
.docs-btn--ghost {
  background: var(--docs-surface); color: var(--docs-text);
  border: 1px solid var(--docs-border);
}
.docs-btn--ghost:hover { border-color: var(--docs-brand); color: #818CF8; }

.docs-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.9rem; margin-bottom: 2.5rem;
}
.docs-home-card {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.05rem 1.15rem;
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: border-color var(--docs-transition), box-shadow var(--docs-transition), transform var(--docs-transition);
}
.docs-home-card:hover {
  border-color: rgba(88,101,242,0.45);
  box-shadow: 0 6px 24px rgba(88,101,242,0.12);
  transform: translateY(-2px);
}
.docs-home-card-ico {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.docs-home-card-title { font-size: 0.9rem; font-weight: 700; color: var(--docs-text); margin-bottom: 0.2rem; }
.docs-home-card-desc  { font-size: 0.8rem; color: var(--docs-text-muted); line-height: 1.55; }

.docs-home-links h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.docs-home-links-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.docs-link-pill {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--docs-surface); border: 1px solid var(--docs-border);
  border-radius: 8px;
  font-size: 0.83rem; font-weight: 500;
  color: var(--docs-text-muted); text-decoration: none;
  transition: border-color var(--docs-transition), color var(--docs-transition), background var(--docs-transition);
}
.docs-link-pill:hover { border-color: var(--docs-brand); color: #818CF8; background: var(--docs-brand-soft); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .docs-toc { display: none; }
}

@media (max-width: 900px) {
  /* Show hamburger button */
  .docs-hamburger { display: flex; }

  /* Slide sidebar off-screen — toggled by JS */
  .docs-sidebar {
    position: fixed;
    top: var(--docs-topbar-h);
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    z-index: 160;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 32px rgba(0,0,0,0.45);
  }
  .docs-sidebar.is-open { transform: translateX(0); }

  /* Topbar: hamburger + logo | search | CTA only */
  .docs-topbar-inner {
    gap: 0.5rem;
    padding: 0 0.85rem;
  }

  /* Logo text: hide on very narrow screens */
  .docs-brand-name { display: none; }

  /* Search takes remaining space but doesn't push nav off */
  .docs-search-wrap {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  /* Hide all nav links except the CTA */
  .docs-topnav-link { display: none !important; }
  .docs-topnav-discord { display: none !important; }
  .docs-topnav-cta {
    display: flex !important;
    margin-left: 0;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Looser content padding */
  .docs-content { padding: 1.5rem 1.1rem 4rem; }
}

@media (max-width: 600px) {
  /* Topbar: even tighter */
  .docs-topbar-inner { padding: 0 0.65rem; gap: 0.4rem; }

  /* Completely hide search kbd hint on small phones */
  .docs-search-box kbd { display: none; }

  /* Search box a bit more compact */
  .docs-search-box { padding: 0.32rem 0.6rem; }

  /* Hide the CTA on very small phones to save space — just hamburger + logo + search */
  .docs-topnav-cta { display: none !important; }

  /* Show the brand name again (we have space now without the CTA) */
  .docs-brand-name { display: inline; }

  /* Single-column home grid */
  .docs-home-grid { grid-template-columns: 1fr; }

  /* Pager stacks vertically */
  .docs-pager { flex-direction: column; }
  .docs-pager-card { max-width: 100%; }
  .docs-pager-card--next { align-items: flex-start; }

  /* Article typography tighter on phones */
  .docs-article h1 { font-size: 1.5rem; }
  .docs-article h2 { font-size: 1.15rem; }
  .docs-content { padding: 1.25rem 0.9rem 3rem; }
}
