/* ============================================
   ArmoredGate Volt — Documentation Stylesheet
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

:root {
  /* Palette */
  --primary: #ff4d00;
  --primary-hover: #ff6b2b;
  --highlight: #ff8f5a;
  --accent: #00d4ff;
  --volt-green: #39ff14;

  --bg-deepest: #0a0a0f;
  --bg-deep: #12121a;
  --bg-surface: #1a1a26;
  --bg-raised: #222233;
  --bg-hover: #252538;

  --text-primary: #e8e6e3;
  --text-secondary: #b0aead;
  --text-muted: #8a8a9a;
  --text-faint: #5a5a6a;

  --border: #2a2a3a;
  --border-light: #353548;

  /* Callout colours */
  --info: #00d4ff;
  --info-bg: rgba(0,212,255,.08);
  --info-border: rgba(0,212,255,.25);

  --tip: #39ff14;
  --tip-bg: rgba(57,255,20,.06);
  --tip-border: rgba(57,255,20,.22);

  --warning: #ffb020;
  --warning-bg: rgba(255,176,32,.08);
  --warning-border: rgba(255,176,32,.25);

  --danger: #ff4d4d;
  --danger-bg: rgba(255,77,77,.08);
  --danger-border: rgba(255,77,77,.25);

  /* Layout */
  --sidebar-w: 280px;
  --toc-w: 220px;
  --header-h: 60px;
  --content-max: 820px;

  /* Typography */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --leading: 1.75;
  --leading-tight: 1.4;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deepest);
  color: var(--text-primary);
  line-height: var(--leading);
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .15s;
}
a:hover { color: var(--primary-hover); }

::selection {
  background: rgba(255,77,0,.25);
  color: #fff;
}

/* ============================================
   Header / Top Bar
   ============================================ */
.docs-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(10,10,15,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
  gap: 16px;
}

.docs-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.docs-header__brand svg {
  width: 28px;
  height: 28px;
}

.docs-header__brand span.brand-volt {
  color: var(--primary);
  font-family: var(--font-mono);
}

.docs-header__brand span.brand-docs {
  color: var(--text-muted);
  font-weight: 400;
  font-size: .85rem;
  margin-left: 2px;
}

/* Version selector */
.version-select {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: .78rem;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}
.version-select:hover { border-color: var(--border-light); }
.version-select:focus { border-color: var(--primary); }

/* Search */
.docs-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.docs-search__input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px 8px 38px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.docs-search__input::placeholder { color: var(--text-faint); }
.docs-search__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,77,0,.12);
}
.docs-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}
.docs-search__kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-raised);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  pointer-events: none;
}

/* Header nav links */
.docs-header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  flex-shrink: 0;
}
.docs-header__nav a {
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  transition: color .15s;
}
.docs-header__nav a:hover { color: var(--text-primary); }
.docs-header__nav a.active { color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger svg { display: block; }

/* ============================================
   Layout — Three-column
   ============================================ */
.docs-layout {
  display: flex;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

/* --- Left Sidebar (Navigation) --- */
.docs-sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-deep);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 0;
  z-index: 900;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  transition: transform .25s ease;
}
.docs-sidebar::-webkit-scrollbar { width: 5px; }
.docs-sidebar::-webkit-scrollbar-track { background: transparent; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.sidebar-section {
  margin-bottom: 6px;
}

.sidebar-section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  cursor: pointer;
  user-select: none;
  transition: color .15s;
}
.sidebar-section__title:hover { color: var(--text-muted); }

.sidebar-section__title .chevron {
  transition: transform .2s;
  flex-shrink: 0;
}
.sidebar-section.collapsed .chevron {
  transform: rotate(-90deg);
}
.sidebar-section.collapsed .sidebar-section__items {
  display: none;
}

.sidebar-section__items {
  list-style: none;
}

.sidebar-section__items a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px 6px 28px;
  font-size: .87rem;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  transition: all .12s;
  line-height: 1.5;
}
.sidebar-section__items a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.sidebar-section__items a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(255,77,0,.05);
  font-weight: 500;
}

.sidebar-section__items a .sidebar-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .55;
}
.sidebar-section__items a.active .sidebar-icon { opacity: 1; }

/* Sub-items */
.sidebar-section__items .sub-items a {
  padding-left: 44px;
  font-size: .83rem;
}

/* Sidebar badge (NEW, BETA, etc.) */
.sidebar-badge {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255,77,0,.15);
  color: var(--primary);
  margin-left: auto;
  letter-spacing: .04em;
}

/* --- Main Content --- */
.docs-content {
  margin-left: var(--sidebar-w);
  margin-right: var(--toc-w);
  flex: 1;
  min-width: 0;
  padding: 40px 48px 80px;
}

.docs-content__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* --- Right Sidebar (TOC) --- */
.docs-toc {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: var(--toc-w);
  padding: 28px 20px;
  overflow-y: auto;
  scrollbar-width: none;
  border-left: 1px solid var(--border);
  background: var(--bg-deepest);
}
.docs-toc::-webkit-scrollbar { display: none; }

.docs-toc__heading {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.docs-toc__list {
  list-style: none;
}
.docs-toc__list li {
  margin-bottom: 2px;
}
.docs-toc__list a {
  display: block;
  padding: 4px 0 4px 12px;
  font-size: .82rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: all .12s;
  line-height: 1.5;
}
.docs-toc__list a:hover {
  color: var(--text-primary);
}
.docs-toc__list a.active {
  color: var(--primary);
  border-left-color: var(--primary);
}
.docs-toc__list .toc-h3 a {
  padding-left: 24px;
  font-size: .79rem;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text-primary); }
.breadcrumbs .sep { color: var(--text-faint); font-size: .7rem; }
.breadcrumbs .current { color: var(--text-secondary); }

/* ============================================
   Typography — Documentation Content
   ============================================ */
.docs-content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: var(--leading-tight);
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

.docs-content .page-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: var(--leading);
  margin-bottom: 36px;
  max-width: 640px;
}

.docs-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: var(--leading-tight);
  color: #fff;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.01em;
}

.docs-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 36px 0 12px;
  line-height: var(--leading-tight);
}

.docs-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 28px 0 8px;
}

.docs-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: var(--leading);
}

.docs-content ul, .docs-content ol {
  margin: 0 0 16px 24px;
  color: var(--text-secondary);
  line-height: var(--leading);
}
.docs-content li { margin-bottom: 6px; }
.docs-content li::marker { color: var(--text-faint); }

.docs-content strong { color: var(--text-primary); font-weight: 600; }
.docs-content em { font-style: italic; }

/* Anchor links on headings */
.docs-content h2 .anchor,
.docs-content h3 .anchor {
  color: var(--text-faint);
  text-decoration: none;
  margin-left: 8px;
  opacity: 0;
  transition: opacity .15s;
  font-weight: 400;
}
.docs-content h2:hover .anchor,
.docs-content h3:hover .anchor { opacity: 1; }
.docs-content h2 .anchor:hover,
.docs-content h3 .anchor:hover { color: var(--primary); }

/* ============================================
   Inline Code & Code Blocks
   ============================================ */
.docs-content code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--bg-surface);
  color: var(--highlight);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.code-block {
  position: relative;
  margin: 20px 0 24px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-deep);
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-faint);
}

.code-block__lang {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

.code-block__copy {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: .75rem;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all .15s;
}
.code-block__copy:hover {
  color: var(--text-secondary);
  background: var(--bg-hover);
}
.code-block__copy.copied {
  color: var(--volt-green);
}

.code-block pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.code-block pre::-webkit-scrollbar { height: 5px; }
.code-block pre::-webkit-scrollbar-track { background: transparent; }
.code-block pre::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.code-block code {
  background: none;
  border: none;
  padding: 0;
  font-size: .87rem;
  color: var(--text-primary);
  white-space: pre;
  line-height: 1.65;
}

/* One-liner code blocks (shell commands) */
.code-block.one-liner pre {
  padding: 14px 20px;
}
.code-block.one-liner .code-block__header { display: none; }

/* Syntax highlighting tokens */
.token-keyword { color: #c792ea; }
.token-string { color: #c3e88d; }
.token-comment { color: #546e7a; font-style: italic; }
.token-function { color: #82aaff; }
.token-number { color: #f78c6c; }
.token-operator { color: #89ddff; }
.token-flag { color: var(--accent); }
.token-variable { color: var(--highlight); }
.token-prompt { color: var(--text-faint); user-select: none; }
.token-output { color: var(--text-muted); }
.token-value { color: #c3e88d; }
.token-command { color: #fff; font-weight: 500; }
.token-param { color: var(--text-secondary); }

/* ============================================
   Callout Boxes
   ============================================ */
.callout {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 3px solid;
  display: flex;
  gap: 14px;
}

.callout__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.callout__body {
  flex: 1;
  min-width: 0;
}

.callout__title {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 4px;
}

.callout__text {
  font-size: .9rem;
  line-height: var(--leading);
  color: var(--text-secondary);
}
.callout__text code {
  font-size: .84em;
}

/* Info */
.callout.info {
  background: var(--info-bg);
  border-color: var(--info-border);
}
.callout.info .callout__icon { color: var(--info); }
.callout.info .callout__title { color: var(--info); }

/* Tip */
.callout.tip {
  background: var(--tip-bg);
  border-color: var(--tip-border);
}
.callout.tip .callout__icon { color: var(--tip); }
.callout.tip .callout__title { color: var(--tip); }

/* Warning */
.callout.warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
}
.callout.warning .callout__icon { color: var(--warning); }
.callout.warning .callout__title { color: var(--warning); }

/* Danger */
.callout.danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
}
.callout.danger .callout__icon { color: var(--danger); }
.callout.danger .callout__title { color: var(--danger); }

/* ============================================
   Tables
   ============================================ */
.docs-table-wrapper {
  overflow-x: auto;
  margin: 20px 0 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.docs-table thead {
  background: var(--bg-surface);
}

.docs-table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.docs-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.docs-table tbody tr:last-child td { border-bottom: none; }

.docs-table tbody tr:hover {
  background: var(--bg-hover);
}

.docs-table td code {
  font-size: .84em;
}

/* ============================================
   Cards (Landing page)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.doc-card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: all .2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-card:hover {
  border-color: var(--primary);
  background: var(--bg-surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,77,0,.08);
}

.doc-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,77,0,.1);
  color: var(--primary);
  margin-bottom: 4px;
}

.doc-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.doc-card__desc {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.doc-card__count {
  font-size: .78rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-top: auto;
  padding-top: 8px;
}

/* Quick links row */
.quick-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 40px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(255,77,0,.08);
  border: 1px solid rgba(255,77,0,.2);
  color: var(--primary);
  font-size: .9rem;
  font-weight: 500;
  transition: all .15s;
}
.quick-link:hover {
  background: rgba(255,77,0,.15);
  border-color: rgba(255,77,0,.4);
  color: var(--primary-hover);
}
.quick-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================
   Steps / Numbered Instructions
   ============================================ */
.steps {
  counter-reset: step-counter;
  margin: 24px 0;
}

.step {
  counter-increment: step-counter;
  position: relative;
  padding-left: 48px;
  padding-bottom: 32px;
  border-left: 2px solid var(--border);
  margin-left: 15px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }

.step::before {
  content: counter(step-counter);
  position: absolute;
  left: -16px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.step__title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step__content {
  color: var(--text-secondary);
  line-height: var(--leading);
}

/* ============================================
   Page Navigation (prev/next)
   ============================================ */
.page-nav {
  display: flex;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.page-nav__link {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all .15s;
  text-decoration: none;
}
.page-nav__link:hover {
  border-color: var(--primary);
  background: var(--bg-surface);
}

.page-nav__label {
  font-size: .78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.page-nav__title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: .95rem;
}

.page-nav__link--next { text-align: right; }

/* ============================================
   Landing page specific
   ============================================ */
.landing-hero {
  text-align: center;
  padding: 60px 0 40px;
}

.landing-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -.03em;
}

.landing-hero h1 .volt-text {
  background: linear-gradient(135deg, var(--primary), var(--highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.landing-search {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.landing-search input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px 14px 48px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.landing-search input::placeholder { color: var(--text-faint); }
.landing-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,77,0,.1);
}
.landing-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}

/* Landing - no sidebar layout */
.docs-layout.landing {
  justify-content: center;
}
.docs-layout.landing .docs-content {
  margin-left: 0;
  margin-right: 0;
  max-width: 1100px;
  padding: 0 32px 80px;
}

/* Section headings on landing */
.section-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 48px 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================
   Sidebar Overlay (mobile)
   ============================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 899;
}
.sidebar-overlay.active { display: block; }

/* ============================================
   Responsive
   ============================================ */

/* Hide TOC on medium screens */
@media (max-width: 1200px) {
  .docs-toc { display: none; }
  .docs-content { margin-right: 0; }
}

/* Collapse sidebar on smaller */
@media (max-width: 900px) {
  .hamburger { display: block; }

  .docs-sidebar {
    transform: translateX(-100%);
    z-index: 950;
    width: 280px;
    background: var(--bg-deep);
  }
  .docs-sidebar.open {
    transform: translateX(0);
  }

  .docs-content {
    margin-left: 0;
    padding: 28px 20px 60px;
  }

  .docs-layout.landing .docs-content {
    padding: 0 16px 60px;
  }

  .landing-hero h1 { font-size: 1.8rem; }
  .landing-hero p { font-size: 1rem; }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .page-nav { flex-direction: column; }

  .docs-search { display: none; }
  .docs-header__nav { gap: 12px; }
}

@media (max-width: 600px) {
  .docs-header { padding: 0 14px; }
  .docs-header__nav a span { display: none; }
  .version-select { display: none; }
  .quick-links { flex-direction: column; }
}

/* ============================================
   Utility
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-muted { color: var(--text-muted); }
.text-primary-color { color: var(--primary); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Separator */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Tab groups (for code examples) */
.tab-group {
  margin: 20px 0 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.tab-group__tabs {
  display: flex;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.tab-group__tab {
  padding: 8px 18px;
  font-size: .83rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.tab-group__tab:hover { color: var(--text-primary); }
.tab-group__tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-group__panel {
  display: none;
}
.tab-group__panel.active { display: block; }

.tab-group__panel pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
}
.tab-group__panel code {
  background: none;
  border: none;
  padding: 0;
  font-size: .87rem;
  color: var(--text-primary);
  white-space: pre;
  line-height: 1.65;
}

/* ============================================
   Print
   ============================================ */
@media print {
  .docs-header, .docs-sidebar, .docs-toc, .hamburger { display: none !important; }
  .docs-content { margin: 0 !important; padding: 20px !important; }
  body { background: #fff; color: #000; }
  .code-block { border: 1px solid #ccc; }
}
