

    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
    @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/**
 * EnableX Developer Documentation Portal
 * Design Foundation CSS
 * 
 * Fusion of Stripe & Twilio design excellence
 * Modern, accessible, high-contrast, intentional
 */

/* ===================================================================
   FONT IMPORTS
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===================================================================
   CSS VARIABLES (:ROOT)
   =================================================================== */
:root {
  /* -------  COLOR PALETTE  ------- */
  
  /* Primary & Accent */
  --primary: #0066CC;
  --primary-light: #E6F0FF;
  --primary-dark: #004C99;
  --primary-hover: #0052A3;
  
  /* Semantic Colors */
  --success: #0CAF60;
  --success-light: #E6F9F0;
  --warning: #E6A500;
  --warning-light: #FFF8E6;
  --danger: #CD3D64;
  --danger-light: #FFE6F0;
  --info: #0066CC;
  --info-light: #E6F0FF;
  
  /* Grays — Stripe-inspired neutral scale */
  --gray-50: #FAFBFC;
  --gray-100: #F1F3F5;
  --gray-200: #E3E8EF;
  --gray-300: #C1C8D4;
  --gray-400: #8792A2;
  --gray-500: #697386;
  --gray-600: #4F566B;
  --gray-700: #3C4257;
  --gray-800: #2A2F45;
  --gray-900: #1A1F36;
  
  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFBFC;
  --bg-tertiary: #F1F3F5;
  --sidebar-bg: #F7F8FA;
  --surface: #FFFFFF;
  --overlay-dark: rgba(26, 31, 54, 0.5);
  
  /* Text & Foreground */
  --text-primary: #1A1F36;
  --text-secondary: #4F566B;
  --text-tertiary: #697386;
  --text-inverse: #FFFFFF;
  --text-muted: #8792A2;
  --text-disabled: #C1C8D4;
  
  /* Borders & Dividers */
  --border-light: #E3E8EF;
  --border-medium: #C1C8D4;
  --border-dark: #697386;
  
  /* -------  TYPOGRAPHY  ------- */
  
  /* Font Families */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  
  /* Font Sizes (in rem) */
  --font-xs: 0.6875rem;     /* 11px */
  --font-sm: 0.8125rem;     /* 13px */
  --font-base: 0.875rem;    /* 14px */
  --font-md: 1rem;          /* 16px */
  --font-lg: 1.25rem;       /* 20px */
  --font-xl: 1.5rem;        /* 24px */
  --font-2xl: 2rem;         /* 32px */
  --font-3xl: 2.5rem;       /* 40px */
  
  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;
  --line-height-loose: 1.9;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide: 0.02em;
  
  /* -------  LAYOUT  ------- */
  
  --sidebar-width: 272px;
  --topbar-height: 60px;
  --content-max-width: 780px;
  --toc-width: 220px;
  --gutter: 24px;
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 12px;
  --gap-lg: 16px;
  --gap-xl: 24px;
  --gap-2xl: 32px;
  --gap-3xl: 48px;
  
  /* -------  BORDER RADIUS  ------- */
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* -------  SHADOWS  ------- */
  
  --shadow-sm: 0 1px 2px rgba(26, 31, 54, 0.04);
  --shadow-md: 0 2px 4px rgba(26, 31, 54, 0.06),
               0 4px 8px rgba(26, 31, 54, 0.04);
  --shadow-lg: 0 4px 6px rgba(26, 31, 54, 0.07),
               0 8px 16px rgba(26, 31, 54, 0.05);
  --shadow-xl: 0 10px 20px rgba(26, 31, 54, 0.1),
               0 20px 40px rgba(26, 31, 54, 0.06);
  
  /* -------  TRANSITIONS  ------- */
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;
  
  /* -------  Z-INDEX SCALE  ------- */
  
  --z-dropdown: 100;
  --z-modal: 200;
  --z-popover: 150;
  --z-sticky: 50;

  /* ── Agent Compatibility Variables ──────────────────────── */
  
  /* Layout aliases */
  --sidebar-w: 272px;
  --topbar-h: 60px;
  --content-max-w: 780px;
  --font: var(--font-family);
  --font-sans: var(--font-family);
  --font-mono: var(--mono);
  
  /* Agent 3 Spacing Scale */
  --spacing-2: 2px;
  --spacing-4: 4px;
  --spacing-6: 6px;
  --spacing-8: 8px;
  --spacing-10: 10px;
  --spacing-12: 12px;
  --spacing-14: 14px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-28: 28px;
  --spacing-32: 32px;
  --spacing-48: 48px;
  --spacing-56: 56px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-2xl: 24px;
  
  /* Agent 3 Radius aliases */
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-20: 20px;
  
  /* Agent 3 Font sizes */
  --font-size-10: 10px;
  --font-size-11: 11px;
  --font-size-12: 12px;
  --font-size-13: 13px;
  --font-size-14: 14px;
  --font-size-15: 15px;
  --font-size-16: 16px;
  --font-size-18: 18px;
  --font-size-24: 24px;
  --font-size-40: 40px;
  
  /* Agent 3 Shadow aliases */
  --shadow-card: 0 4px 20px rgba(0, 102, 204, 0.1);
  
  /* Agent 3 Color aliases */
  --bg-white: #FFFFFF;
  --bg-light: #FAFBFC;
  --bg-subtle: #F1F3F5;
  --bg-badge: #E8F0FE;
  --border-color: #E3E8EF;
  --text-subtle: #8792A2;
  --transition-base: all 0.2s ease;
  
  /* Agent 4 Color variables */
  --color-navy-dark: #0A2540;
  --color-navy-medium: #1A1F36;
  --color-navy-light: #2A2F45;
  --color-slate-light: #F7F8FA;
  --color-slate-lighter: #FAFBFC;
  --color-slate-border: #E3E8EF;
  --color-slate-subtle: #F1F3F5;
  --color-text-primary: #1A1F36;
  --color-text-secondary: #3C4257;
  --color-text-muted: #697386;
  --color-text-subtle: #7A8BAE;
  --color-text-tertiary: #8792A2;
  --color-blue: #0066CC;
  --color-blue-light: #EFF6FF;
  --color-orange: #FF6C37;
  --color-yellow: #E6A500;
  --color-yellow-light: #FFFBEB;
  --color-amber-dark: #B45309;
  --color-red: #CD3D64;
  --color-red-light: #FFF1F3;
  --color-red-border: #FECDD6;
  --color-green: #059669;
  --color-green-light: #F0FDF4;
  --color-purple-light: #F5F3FF;
  
  /* Agent 5 Color variables */
  --color-primary: #0066CC;
  --color-primary-light: #E8F0FE;
  --color-primary-focus: rgba(0, 102, 204, 0.1);
  --color-border: #E3E8EF;
  --color-bg-light: #F7F8FA;
  --color-bg-lighter: #F0F6FF;
  --color-bg-subtle: #F1F3F5;
  --color-tag-new-bg: #D1FAE5;
  --color-tag-new-text: #065F46;
  --color-tag-coming-bg: #FFFBEB;
  --color-tag-coming-text: #B45309;
  --color-selection-bg: #C2D9FF;
  --color-selection-text: #1A1F36;
  --color-scrollbar-thumb: #C1C8D4;
  --color-scrollbar-thumb-hover: #8792A2;

}

/* ===================================================================
   CSS RESET + MODERN FOUNDATIONS
   =================================================================== */

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

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

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

body {
  font-family: var(--font-family);
  font-size: var(--font-base);
  font-weight: var(--weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  letter-spacing: var(--letter-spacing-normal);
}

/* Remove default margins on common elements */
h1, h2, h3, h4, h5, h6,
p, blockquote, ul, ol, dl,
pre, figure, table {
  margin: 0;
  padding: 0;
}

/* Prevent images from exceeding container */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Remove list styling by default */
ul, ol {
  list-style: none;
}

/* Base input and button reset */
button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

button:disabled, input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Accessible focus states */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: inherit;
}

/* ===================================================================
   CONTENT TYPOGRAPHY SYSTEM
   =================================================================== */

/* HEADINGS — General */
.content h1,
.content h2,
.content h3,
.content h4 {
  font-weight: var(--weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text-primary);
  margin-top: var(--gap-3xl);
  margin-bottom: var(--gap-xl);
  scroll-margin-top: calc(var(--topbar-height) + var(--gap-lg));
}

/* H1 — Page Title */
.content h1 {
  font-size: var(--font-2xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--gap-2xl);
  padding-bottom: var(--gap-md);
  border-bottom: 2px solid var(--primary);
}

/* H2 — Section Heading */
.content h2 {
  font-size: var(--font-xl);
  font-weight: var(--weight-bold);
  margin-top: var(--gap-3xl);
  margin-bottom: var(--gap-lg);
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.content h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

/* H3 — Subsection */
.content h3 {
  font-size: var(--font-lg);
  font-weight: var(--weight-bold);
  margin-top: var(--gap-2xl);
  margin-bottom: var(--gap-lg);
  color: var(--text-primary);
}

/* H4 — Minor Heading */
.content h4 {
  font-size: var(--font-md);
  font-weight: var(--weight-semibold);
  margin-top: var(--gap-xl);
  margin-bottom: var(--gap-md);
  text-transform: none;
  color: var(--text-secondary);
}

/* PARAGRAPHS */
.content p {
  font-size: var(--font-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--gap-lg);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.content p:last-child {
  margin-bottom: 0;
}

/* LINKS */
.content a {
  color: var(--primary);
  font-weight: var(--weight-medium);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
  position: relative;
  cursor: pointer;
}

.content a:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

.content a:active {
  color: var(--primary-dark);
}

.content a:visited {
  color: #6b4ba3;
}

/* LISTS */
.content ul,
.content ol {
  margin-bottom: var(--gap-lg);
  padding-left: var(--gap-xl);
}

.content li {
  font-size: var(--font-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--gap-md);
}

.content li:last-child {
  margin-bottom: 0;
}

.content ul li {
  list-style: disc;
  list-style-position: outside;
}

.content ol li {
  list-style: decimal;
  list-style-position: outside;
}

.content li > ul,
.content li > ol {
  margin-top: var(--gap-md);
  margin-bottom: 0;
}

/* DEFINITION LISTS */
.content dl {
  margin-bottom: var(--gap-lg);
}

.content dt {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-top: var(--gap-lg);
  margin-bottom: var(--gap-sm);
}

.content dt:first-child {
  margin-top: 0;
}

.content dd {
  color: var(--text-secondary);
  margin-bottom: var(--gap-md);
  padding-left: var(--gap-lg);
}

/* EMPHASIS */
.content strong,
.content b {
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.content em,
.content i {
  font-style: italic;
}

/* INLINE CODE */
.content code {
  font-family: var(--mono);
  font-size: var(--font-sm);
  font-weight: var(--weight-regular);
  color: var(--danger);
  background-color: var(--primary-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 102, 204, 0.2);
  display: inline;
  white-space: pre;
  word-break: normal !important;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast);
}

.content a code {
  color: var(--primary);
}

/* BLOCKQUOTES */
.content blockquote {
  font-size: var(--font-md);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  border-left: 4px solid var(--primary);
  padding-left: var(--gap-lg);
  margin-bottom: var(--gap-lg);
  margin-left: 0;
  margin-right: 0;
  padding-top: var(--gap-sm);
  padding-bottom: var(--gap-sm);
  background-color: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

/* HORIZONTAL RULE */
.content hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-light),
    transparent
  );
  margin: var(--gap-3xl) 0;
}

/* TABLES */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--gap-lg);
  font-size: var(--font-base);
}

.content th {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  text-align: left;
  padding: var(--gap-md);
  border-bottom: 2px solid var(--border-medium);
}

.content td {
  padding: var(--gap-md);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.content tr:hover {
  background-color: var(--bg-secondary);
}

.content tr:last-child td {
  border-bottom: none;
}

/* CODE BLOCKS */
.content pre {
  background-color: var(--gray-900);
  color: #E8E8E8;
  padding: var(--gap-lg);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: var(--font-sm);
  line-height: 1.6;
  margin-bottom: var(--gap-lg);
  border: 1px solid var(--gray-800);
  box-shadow: var(--shadow-md);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #E8E8E8;
  font-size: inherit;
}

/* SMALL TEXT */
.content small {
  font-size: var(--font-sm);
  color: var(--text-tertiary);
}

/* SUB/SUPER SCRIPT */
.content sub,
.content sup {
  font-size: var(--font-xs);
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.content sup {
  top: -0.5em;
}

.content sub {
  bottom: -0.25em;
}

/* ===================================================================
   UTILITY HELPERS
   =================================================================== */

/* Text utilities */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* Background utilities */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }

/* Margin utilities */
.mt-xs { margin-top: var(--gap-xs); }
.mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mt-xl { margin-top: var(--gap-xl); }
.mt-2xl { margin-top: var(--gap-2xl); }
.mt-3xl { margin-top: var(--gap-3xl); }

.mb-xs { margin-bottom: var(--gap-xs); }
.mb-sm { margin-bottom: var(--gap-sm); }
.mb-md { margin-bottom: var(--gap-md); }
.mb-lg { margin-bottom: var(--gap-lg); }
.mb-xl { margin-bottom: var(--gap-xl); }
.mb-2xl { margin-bottom: var(--gap-2xl); }
.mb-3xl { margin-bottom: var(--gap-3xl); }

/* Padding utilities */
.p-xs { padding: var(--gap-xs); }
.p-sm { padding: var(--gap-sm); }
.p-md { padding: var(--gap-md); }
.p-lg { padding: var(--gap-lg); }
.p-xl { padding: var(--gap-xl); }

/* ===================================================================
   RESPONSIVE ADJUSTMENTS
   =================================================================== */


/* Dark mode support (optional) */


    /* ── TOPBAR & SIDEBAR ──────────────────────────────────────── */
/* ============================================================================
   TOPBAR & SIDEBAR STYLES
   EnableX Developer Documentation Portal
   Design: Stripe/Twilio Quality Standards
   ============================================================================ */

/* ============================================================================
   TOPBAR
   ============================================================================ */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E3E8EF;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  z-index: 200;
  box-sizing: border-box;
  -webkit-app-region: drag;
}

/* Topbar Logo image */
.topbar-logo-img {
  height: 26px;
  width: auto;
  max-width: none;
  display: block;
  flex-shrink: 0;
}

/* Topbar Logo (link wrapper) */
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  -webkit-app-region: no-drag;
  transition: opacity 0.2s ease;
}

.topbar-logo:hover {
  opacity: 0.8;
}

/* Logo Mark (E icon) */
.topbar-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0066CC, #0052A3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Logo Text */
.topbar-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #1A1F36;
  letter-spacing: -0.4px;
}

.topbar-logo-text span {
  color: #0066CC;
}

/* Topbar Divider (vertical separator) */
.topbar-divider {
  width: 1px;
  height: 24px;
  background-color: #E3E8EF;
  margin: 0 12px;
  flex-shrink: 0;
}

/* Topbar Section (contextual label like "Developers") */
.topbar-section {
  font-size: 13px;
  font-weight: 500;
  color: #697386;
  margin-right: 16px;
  white-space: nowrap;
  user-select: none;
}

/* Search Wrapper (occupies flex space) */
.search-wrapper {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  margin: 0 12px;
  position: relative;
  -webkit-app-region: no-drag;
}

.search-input {
  width: 100%;
  height: 32px;
  padding: 6px 12px;
  border: 1px solid #E3E8EF;
  border-radius: 6px;
  background-color: #FAFBFC;
  font-size: 13px;
  font-family: inherit;
  color: #4F566B;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.search-input:hover {
  border-color: #D2D8DF;
}

.search-input:focus {
  outline: none;
  border-color: #0066CC;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-input::placeholder {
  color: #8792A2;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #E3E8EF;
  border-top: none;
  border-radius: 0 0 6px 6px;
  margin-top: -1px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 300;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Topbar Right Section (badges, links) */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  -webkit-app-region: no-drag;
}

/* Badge Styling */
.topbar-badge {
  display: inline-block;
  padding: 4px 10px;
  background-color: #E8F0FE;
  color: #0066CC;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 12px;
  white-space: nowrap;
  user-select: none;
}

/* Topbar Link (e.g., Portal →) */
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: transparent;
  color: #0066CC;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #0066CC;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  -webkit-app-region: no-drag;
}

.topbar-link:hover {
  background-color: #0066CC;
  color: white;
}

.topbar-link:active {
  opacity: 0.85;
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */

.sidebar {
  position: fixed;
  left: 0;
  top: 60px;
  bottom: 0;
  width: var(--sidebar-w, 272px);
  background-color: #F7F8FA;
  border-right: 1px solid #E3E8EF;
  padding: 20px 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  box-sizing: border-box;
  z-index: 100;
}

/* Hide scrollbar for webkit browsers */
.sidebar::-webkit-scrollbar {
  display: none;
}

/* Sidebar Section Label (GET STARTED, VIDEO, etc.) */
.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8792A2;
  padding: 24px 20px 8px 20px;
  margin: 0;
  display: block;
  user-select: none;
}

/* First section label has no top border and less top padding */
.sidebar-section-label:first-of-type {
  padding-top: 0;
}

/* Add top border to section labels (except first) */
.sidebar-section-label:not(:first-of-type) {
  border-top: 1px solid #E3E8EF;
}

/* Collapsible section labels */
.sidebar-section-label.collapsible {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s ease;
}
.sidebar-section-label.collapsible:hover {
  color: #4F566B;
}

/* Toggle arrow inside collapsible labels */
.sidebar-section-toggle {
  font-size: 11px;
  line-height: 1;
  transition: transform 0.2s ease;
  color: #8792A2;
  flex-shrink: 0;
}
.sidebar-section-label.collapsed .sidebar-section-toggle {
  transform: rotate(-90deg);
}

/* Wrapper div for collapsible section items */
.sidebar-section-items {
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.sidebar-section-items.collapsed {
  max-height: 0 !important;
}

/* Hide sidebar HR dividers between collapsed sections for clean look */
.sidebar-section-label.collapsed + .sidebar-section-items.collapsed + .sidebar-divider {
  margin: 0;
  opacity: 0.4;
}

/* Sidebar Sub-Label (Voice, Campaign Managers, etc.) */
.sidebar-sub-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8792A2;
  padding: 12px 20px 4px 32px;
  margin: 0;
  display: block;
  user-select: none;
}

/* Sidebar Item (button) */
.sidebar-item {
  display: block;
  width: calc(100% - 20px);
  margin: 1px 10px;
  padding: 7px 12px 7px 18px;
  background-color: transparent;
  border: none;
  border-radius: 6px;
  color: #4F566B;
  font-size: 13px;
  font-weight: 450;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
  user-select: none;
  box-sizing: border-box;
  -webkit-app-region: no-drag;
}

.sidebar-item:hover {
  background-color: #EDF0F3;
  color: #1A1F36;
}

.sidebar-item:active {
  opacity: 0.85;
}

/* Sidebar Item - Sub-item (nested) */
.sidebar-item.sub {
  padding-left: 24px;
  font-size: 13px;
  font-weight: 400;
}

/* Sidebar Item - Active State */
.sidebar-item.active {
  background-color: #E8F0FE;
  color: #0066CC;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #0066CC;
}

/* Sidebar Item - Active Sub-item */
.sidebar-item.sub.active {
  background-color: #E8F0FE;
  color: #0066CC;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #0066CC;
}

/* Sidebar Divider */
.sidebar-divider {
  border: none;
  height: 0;
  margin: 4px 0;
  background-color: transparent;
}

/* ── Sub-group label (e.g. "Unified Messaging", "SMS" inside MESSAGING) ──── */
.sidebar-subgroup-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1px 10px;
  padding: 6px 10px 6px 18px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 550;
  color: #4F566B;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.sidebar-subgroup-label:hover {
  background-color: #EDF0F3;
  color: #1A1F36;
}
/* Toggle arrow */
.sidebar-subgroup-toggle {
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.18s ease;
  color: #8792A2;
}
.sidebar-subgroup-label.collapsed .sidebar-subgroup-toggle {
  transform: rotate(-90deg);
}
/* Items inside a sub-group */
.sidebar-subgroup-items {
  overflow: hidden;
  transition: max-height 0.2s ease;
}
.sidebar-subgroup-items.collapsed {
  max-height: 0 !important;
}
/* Sub-group link items — deeper indent than .sub */
.sidebar-item.sub2 {
  padding-left: 32px;
  font-size: 12.5px;
  font-weight: 400;
}

/* ── Platform group within SDK subgroup ─────────────────────────────────── */
.sidebar-platform-group {}

.sidebar-platform-header {
  display: flex;
  align-items: center;
  margin: 1px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.sidebar-platform-header:hover { background-color: #EDF0F3; }

.sidebar-platform-link {
  flex: 1;
  padding: 7px 4px 7px 32px;
  font-size: 13px;
  font-weight: 450;
  color: #4F566B;
  text-decoration: none;
}
.sidebar-platform-link:hover { color: #1A1F36; }
.sidebar-platform-link.active { color: #0066CC; font-weight: 600; }

.sidebar-platform-caret {
  flex-shrink: 0;
  padding: 7px 10px;
  font-size: 10px;
  color: #8792A2;
  transition: transform 0.18s ease;
}
.sidebar-platform-header.collapsed .sidebar-platform-caret { transform: rotate(-90deg); }

.sidebar-platform-items {
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.sidebar-platform-items.collapsed { max-height: 0 !important; }

.sidebar-item.sub3 {
  padding-left: 44px;
  font-size: 12.5px;
  font-weight: 400;
  color: #6B7385;
}
.sidebar-item.sub3:hover { color: #1A1F36; background-color: #EDF0F3; }
.sidebar-item.sub3.active {
  background-color: #E8F0FE;
  color: #0066CC;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #0066CC;
}

/* Sidebar Coming Soon Badge */
.sidebar-coming-soon {
  display: inline-block;
  padding: 2px 6px;
  background-color: #FEF3C7;
  color: #92400E;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 3px;
  margin-left: 8px;
  white-space: nowrap;
  user-select: none;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

/* Compact mode for smaller screens */


/* ============================================================================
   ACCESSIBILITY & FOCUS STATES
   ============================================================================ */

/* High contrast focus state for keyboard navigation */
.topbar-link:focus,
.topbar-link:focus-visible,
.sidebar-item:focus,
.sidebar-item:focus-visible {
  outline: 2px solid #0066CC;
  outline-offset: 2px;
}

/* Reduced motion support */


/* Dark mode support (if implemented) */


/* ============================================================================
   PRINT STYLES (optional but professional)
   ============================================================================ */

@media print {
  .topbar,
  .sidebar {
    display: none;
  }
}


    /* ── CONTENT AREA & HOMEPAGE COMPONENTS ────────────────────── */
/* ============================================================================
   EnableX Developer Documentation Portal - Content & Homepage CSS
   Twilio/Stripe-grade UX with premium polish and accessibility
   ========================================================================== */

/* CSS Variables - Color System */


/* ============================================================================
   Scroll Behavior
   ========================================================================== */


/* ============================================================================
   Content Area Container
   ========================================================================== */

.content {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  padding: var(--spacing-48) var(--spacing-56) 100px;
  background-color: var(--bg-white);
  font-family: var(--font);
  color: var(--text-primary);
  line-height: var(--line-height-normal);
  min-height: calc(100vh - var(--topbar-h));
}

/* Constrain content width for optimal readability */
.content > * {
  max-width: var(--content-max-w);
}

/* ============================================================================
   Page Container & State Management
   ========================================================================== */



.page { display: block; }

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-6);
  font-size: var(--font-size-12);
  margin-bottom: var(--spacing-24);
  padding-bottom: var(--spacing-16);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: var(--transition-fast);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--border-light);
  font-weight: 300;
}

.breadcrumb > :last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================================================
   Page Navigation (Prev / Next)
   ========================================================================== */

/* FAQ Section — accordion */
.faq-list {
  margin: 0 0 var(--spacing-48);
}

.faq-item {
  border: 1px solid #DDE1E7;
  border-radius: 8px;
  margin-bottom: 6px;
  overflow: hidden;
}

/* Question row — light gray bg, no top gap */
.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: #1A1F36;
  margin: 0;
  padding: 11px 40px 11px 16px;
  line-height: 1.45;
  background: #F4F5F7;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: background 0.15s;
}

.faq-item:hover .faq-question {
  background: #ECEEF1;
}

.faq-item.open .faq-question {
  color: #0066CC;
  background: #EBF3FF;
}

/* Chevron — simple ∨ character, rotates on open */
.faq-question::after {
  content: "∨";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 400;
  color: #8792A2;
  line-height: 1;
  transition: transform 0.2s ease, color 0.15s;
}

.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(180deg);
  color: #0066CC;
}

/* Answer — white bg, hidden until open */
.faq-answer {
  font-size: 14px;
  color: #4F566B;
  margin: 0;
  line-height: 1.65;
  background: #fff;
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.2s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 12px 16px 14px;
}

.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--spacing-48);
  padding-top: var(--spacing-24);
  border-top: 1px solid var(--border-color);
  gap: var(--spacing-16);
}

.page-nav a,
.page-nav-prev,
.page-nav-next {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-6);
  font-size: var(--font-size-14);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: var(--spacing-8) var(--spacing-12);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.page-nav a:hover,
.page-nav-prev:hover,
.page-nav-next:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
}

/* Push the next link to the far right when both links are present */
.page-nav a:last-child,
.page-nav-next {
  margin-left: auto;
}

/* ============================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: var(--spacing-32) 0 var(--spacing-48) 0;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-eyebrow {
  font-size: var(--font-size-11);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--spacing-12);
  display: block;
}

.hero h1 {
  font-size: var(--font-size-40);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-16);
  max-width: 660px;
}

.hero p {
  font-size: var(--font-size-18);
  color: var(--text-secondary);
  line-height: var(--line-height-loose);
  margin-bottom: 0;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-14);
  margin-top: var(--spacing-28);
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================================
   Buttons
   ========================================================================== */

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-white);
  padding: var(--spacing-12) var(--spacing-24);
  border-radius: var(--radius-8);
  font-size: var(--font-size-15);
  font-weight: 600;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Override .content a color for button links */
.content a.btn-primary,
.content a.btn-primary:hover,
.content a.btn-primary:visited,
.content a.btn-primary:active {
  color: #ffffff;
  border-bottom: none;
}

.content a.btn-secondary,
.content a.btn-secondary:hover,
.content a.btn-secondary:visited,
.content a.btn-secondary:active {
  color: var(--text-primary);
  border-bottom: none;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: var(--spacing-12) var(--spacing-24);
  border-radius: var(--radius-8);
  font-size: var(--font-size-15);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--border-light);
  background: var(--bg-light);
}

.btn-secondary:active {
  background: #f0f1f3;
}

.btn-postman {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FF6C37;
  color: #ffffff;
  border: none;
  padding: var(--spacing-12) var(--spacing-24);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.btn-postman:hover {
  background: #e85d2a;
}

.btn-postman:active {
  background: #d45224;
}

.content a.btn-postman,
.content a.btn-postman:hover,
.content a.btn-postman:visited,
.content a.btn-postman:active {
  color: #ffffff;
  border-bottom: none;
}

/* ============================================================================
   Section Label
   ========================================================================== */

.section-label {
  font-size: var(--font-size-11);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--spacing-16);
  margin-top: var(--spacing-48);
  display: block;
}

.section-label:first-of-type {
  margin-top: 0;
}

/* ============================================================================
   Card Grid & Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--spacing-20);
  margin-bottom: var(--spacing-48);
}

.card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-12);
  padding: var(--spacing-24);
  background: var(--bg-white);
  transition: var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: var(--spacing-12);
}

.card-title {
  font-size: var(--font-size-16);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-8);
}

.card-body {
  font-size: var(--font-size-14);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-14);
  flex-grow: 1;
}

.card-link {
  font-size: var(--font-size-13);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--spacing-8);
  transition: var(--transition-fast);
  display: block;
}

.card:hover .card-link {
  transform: translateX(2px);
}

.card-time {
  font-size: var(--font-size-12);
  color: var(--text-subtle);
  margin-top: auto;
}

/* ============================================================================
   Steps/Stepper Component
   ========================================================================== */

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
  margin: var(--spacing-48) 0;
  padding-left: var(--spacing-56);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -24px;
  width: 1px;
  background: var(--border-color);
}

.step {
  display: flex;
  gap: var(--spacing-20);
  position: relative;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-13);
  font-weight: 700;
  flex-shrink: 0;
  position: absolute;
  left: -47px;
  top: 0;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-white), 0 0 0 5px var(--bg-light);
}

.step-body {
  padding: var(--spacing-4) 0;
}

.step-title {
  font-size: var(--font-size-15);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-6);
  display: block;
}

.step-desc {
  font-size: var(--font-size-14);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* ============================================================================
   Quick Links Section
   ========================================================================== */

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-10);
  margin: var(--spacing-48) 0;
}

.quick-link {
  padding: var(--spacing-8) var(--spacing-16);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-8);
  font-size: var(--font-size-13);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.quick-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.quick-link:active {
  transform: scale(0.98);
}

/* ============================================================================
   Page Header Components (Breadcrumb Variants)
   ========================================================================== */

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-6);
  font-size: var(--font-size-12);
  margin-bottom: var(--spacing-16);
}

.page-breadcrumb a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: var(--transition-fast);
  font-weight: 500;
}

.page-breadcrumb a:hover {
  color: var(--primary);
}

.page-header-row {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-14);
  margin-bottom: var(--spacing-24);
  flex-wrap: wrap;
}

.time-badge {
  font-size: var(--font-size-12);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-tertiary);
  padding: var(--spacing-4) var(--spacing-12);
  border-radius: var(--radius-20);
  white-space: nowrap;
}

.prereq-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-6);
  background: var(--bg-badge);
  border: 1px solid #BFDBFE;
  color: var(--primary);
  font-size: var(--font-size-11);
  font-weight: 600;
  padding: var(--spacing-4) var(--spacing-10);
  border-radius: var(--radius-20);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.prereq-pill:hover {
  border-color: var(--primary);
  background: linear-gradient(
    135deg,
    rgba(0, 102, 204, 0.05),
    rgba(0, 82, 163, 0.05)
  );
}

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


/* ============================================================================
   Accessibility & Focus States
   ========================================================================== */

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.card:focus-visible,
.quick-link:focus-visible,
.breadcrumb a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion preference */


/* High contrast mode */


/* Dark mode (future support) */


/* ============================================================================
   Print Styles
   ========================================================================== */

@media print {
  .content {
    margin-left: 0;
    margin-top: 0;
    padding: 0;
  }

  .breadcrumb,
  .hero-cta,
  .quick-links {
    display: none;
  }

  .card,
  .step {
    page-break-inside: avoid;
    box-shadow: none;
  }
}


    /* ── CODE BLOCKS, TABLES, CALLOUTS ─────────────────────────── */
/* ============================================================================
   EnableX Developer Documentation Styles
   Code Blocks | Tables | Callouts | Tabs | Badges
   ============================================================================ */


/* ============================================================================
   CODE BLOCKS
   ============================================================================ */

.code-block-wrapper,
.code-block-wrap {
  border: 1px solid var(--color-navy-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0;
  background: var(--color-navy-dark);
}

.code-block-header,
.code-block-wrap .code-block-header {
  background: var(--color-navy-medium);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-bottom: 1px solid var(--color-navy-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.code-lang,
.lang-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-subtle);
}

.code-lang strong,
.lang-label strong {
  color: var(--color-blue);
  margin-left: var(--spacing-xs);
}

.copy-btn {
  background: transparent;
  color: var(--color-text-subtle);
  border: 1px solid var(--color-navy-light);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.copy-btn:hover {
  color: var(--color-blue);
  border-color: var(--color-blue);
  background: rgba(0, 102, 204, 0.05);
}

.copy-btn:active {
  transform: scale(0.98);
}

pre,
pre code.hljs {
  background: var(--color-navy-dark);
  padding: var(--spacing-xl);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow-x: auto;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #e0e6ed;
  margin: 0;
  border: none;
  word-wrap: break-word;
  white-space: pre-wrap;
}

pre code.hljs {
  display: block;
}

/* Scrollbar styling for code blocks */
pre::-webkit-scrollbar {
  height: 8px;
}

pre::-webkit-scrollbar-track {
  background: var(--color-navy-medium);
}

pre::-webkit-scrollbar-thumb {
  background: var(--color-navy-light);
  border-radius: 4px;
}

pre::-webkit-scrollbar-thumb:hover {
  background: #3c4257;
}

/* Syntax highlighting defaults */
.hljs-string { color: #a3e635; }
.hljs-number { color: #93c5fd; }
.hljs-literal { color: #f87171; }
.hljs-attr { color: #60a5fa; }
.hljs-built_in { color: #a78bfa; }
.hljs-tag { color: #60a5fa; }
.hljs-name { color: #60a5fa; }
.hljs-title { color: #93c5fd; }

/* ============================================================================
   TABS
   ============================================================================ */

.tabs {
  border: 1px solid var(--color-slate-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0;
  background: #fff;
}

.tab-list {
  background: var(--color-slate-light);
  border-bottom: 1px solid var(--color-slate-border);
  padding: var(--spacing-xs);
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.tab-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.tab-btn:hover {
  color: var(--color-text-primary);
  background: rgba(0, 102, 204, 0.04);
}

.tab-btn.active {
  color: var(--color-blue);
  font-weight: 600;
  border-bottom-color: var(--color-blue);
  background: #fff;
}

.tab-panel {
  padding: var(--spacing-xl);
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ============================================================================
   CALLOUTS
   ============================================================================ */

.callout {
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg) var(--spacing-xl);
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.65;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.4;
  margin-top: 2px;
}

.callout-body {
  flex: 1;
  color: var(--color-text-primary);
}

.callout-body strong,
.callout-body .callout-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--spacing-xs);
}

.callout-body p {
  margin: 0;
}

.callout-body p:not(:last-child) {
  margin-bottom: var(--spacing-sm);
}

.callout-body ul,
.callout-body ol {
  margin: 4px 0 0 0;
  padding-left: 20px;
}

.callout-body ul li,
.callout-body ol li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.callout-body ul li:last-child,
.callout-body ol li:last-child {
  margin-bottom: 0;
}

/* Info / Tip */
.callout.info,
.callout.tip {
  background: var(--color-blue-light);
  border-left: 3px solid var(--color-blue);
  color: var(--color-text-primary);
}

.callout.info .callout-icon,
.callout.tip .callout-icon {
  content: '💡';
}

.callout.info .callout-body strong,
.callout.tip .callout-body strong,
.callout.info .callout-label,
.callout.tip .callout-label {
  color: var(--color-blue);
}

/* Warning / Caution */
.callout.warning,
.callout.caution {
  background: var(--color-yellow-light);
  border-left: 3px solid var(--color-yellow);
  color: var(--color-text-primary);
}

.callout.warning .callout-icon,
.callout.caution .callout-icon {
  content: '⚠️';
}

.callout.warning .callout-body strong,
.callout.caution .callout-body strong,
.callout.warning .callout-label,
.callout.caution .callout-label {
  color: var(--color-amber-dark);
}

/* Restriction / Danger */
.callout.restriction,
.callout.danger {
  background: var(--color-red-light);
  border-left: 3px solid var(--color-red);
  color: var(--color-text-primary);
}

.callout.restriction .callout-icon,
.callout.danger .callout-icon {
  content: '🚫';
}

.callout.restriction .callout-body strong,
.callout.danger .callout-body strong,
.callout.restriction .callout-label,
.callout.danger .callout-label {
  color: var(--color-red);
}

/* Note */
.callout.note {
  background: var(--color-slate-light);
  border-left: 3px solid var(--color-text-muted);
  color: var(--color-text-primary);
}

.callout.note .callout-icon {
  content: '📝';
}

.callout.note .callout-body strong,
.callout.note .callout-label {
  color: var(--color-text-muted);
}

/* Success / Verify */
.callout.success,
.callout.verify {
  background: var(--color-green-light);
  border-left: 3px solid var(--color-green);
  color: var(--color-text-primary);
}

.callout.success .callout-icon,
.callout.verify .callout-icon {
  content: '✓';
}

.callout.success .callout-body strong,
.callout.verify .callout-body strong,
.callout.success .callout-label,
.callout.verify .callout-label {
  color: var(--color-green);
}

/* ============================================================================
   GENERIC TABLES
   ============================================================================ */

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border: 1px solid var(--color-slate-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.content th {
  background: var(--color-slate-light);
  padding: 10px var(--spacing-lg);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-slate-border);
  text-align: left;
}

.content td {
  padding: 12px var(--spacing-lg);
  border-bottom: 1px solid var(--color-slate-subtle);
  color: var(--color-text-secondary);
  vertical-align: top;
}

.content tr:last-child td {
  border-bottom: none;
}

.content tr:hover {
  background: var(--color-slate-lighter);
}

/* ============================================================================
   PARAMETER TABLES
   ============================================================================ */

.param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border: 1px solid var(--color-slate-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.param-table th {
  background: var(--color-navy-medium);
  color: #fff;
  padding: 12px var(--spacing-lg);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  border: none;
}

.param-table td {
  padding: 13px var(--spacing-lg);
  border-bottom: 1px solid var(--color-slate-border);
  color: var(--color-text-secondary);
  vertical-align: top;
}

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

/* Zebra striping */
.param-table tbody tr:nth-child(even) {
  background: var(--color-slate-lighter);
}

.param-table tbody tr:hover {
  background: var(--color-blue-light);
}

/* Parameter name (first column) */
.param-table td:first-child {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Deprecated row styling */
.param-table tr.param-deprecated-row {
  opacity: 0.55;
}

.param-table tr.param-deprecated-row td:first-child {
  text-decoration: line-through;
}

/* ============================================================================
   BADGES
   ============================================================================ */

.badge-required {
  display: inline-flex;
  align-items: center;
  background: var(--color-red-light);
  color: var(--color-red);
  border: 1px solid var(--color-red-border);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-optional {
  display: inline-flex;
  align-items: center;
  background: var(--color-slate-light);
  color: var(--color-text-muted);
  border: 1px solid var(--color-slate-border);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-deprecated {
  display: inline-flex;
  align-items: center;
  background: var(--color-yellow-light);
  color: var(--color-amber-dark);
  border: 1px solid #FDE68A;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================================
   TYPE CHIPS
   ============================================================================ */

.type-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.type-string {
  background: #DCFCE7;
  color: #166534;
}

.type-integer {
  background: var(--color-purple-light);
  color: #6B21A8;
}

.type-boolean {
  background: #FEF3C7;
  color: #92400E;
}

.type-object {
  background: var(--color-blue-light);
  color: #1e40af;
}

.type-array {
  background: #FCE7F3;
  color: #831843;
}

.type-enum {
  background: #EDE9FE;
  color: #5B21B6;
}

/* ============================================================================
   POSTMAN BANNERS
   ============================================================================ */

.postman-banner {
  background: linear-gradient(135deg, #4A6B7A 0%, #5A7B8A 100%);
  border-radius: var(--radius-xl);
  padding: 18px 24px;
  margin: 20px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: #fff;
}

.postman-banner-icon {
  font-size: 32px;
  flex-shrink: 0;
  line-height: 1;
}

.postman-banner-body {
  flex: 1;
}

.postman-banner-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.postman-banner-body p {
  font-size: 13px;
  opacity: 0.92;
  margin: 0;
  line-height: 1.5;
}

.postman-btn {
  background: #fff;
  color: #4A6B7A;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.postman-btn:hover {
  background: #f5f5f5;
  color: #3A5A6A;
  transform: translateY(-1px);
}

.postman-inline {
  display: inline-flex;
  align-items: center;
  background: rgba(74, 107, 122, 0.1);
  color: #4A6B7A;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(74, 107, 122, 0.2);
}

/* ============================================================================
   INLINE CODE & PATHS
   ============================================================================ */

.path,
code.path {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--color-slate-subtle);
  color: var(--color-text-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-slate-border);
  display: inline-block;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */


/* ============================================================================
   ACCESSIBILITY & PRINT
   ============================================================================ */

@media print {
  .copy-btn,
  .postman-btn {
    display: none;
  }

  .code-block-wrapper,
  .tabs,
  .callout,
  .content table,
  .param-table,
  .postman-banner {
    page-break-inside: avoid;
  }
}

/* High contrast mode support */


/* Dark mode preference support */


/* Reduced motion support */


    /* ── SEARCH, TOC, TAGS, POLISH ─────────────────────────────── */
/* ================================================================
   ENABLEX DEVELOPER DOCUMENTATION - Search, TOC, Responsive & Polish
   Reference: Twilio, Stripe quality
   ================================================================ */

/* ================================================================
   CUSTOM PROPERTIES (Design Tokens)
   ================================================================ */


/* ================================================================
   GLOBAL POLISH & BASELINE
   ================================================================ */

/* Selection styling */
::selection {
  background-color: var(--color-selection-bg);
  color: var(--color-selection-text);
}

::-moz-selection {
  background-color: var(--color-selection-bg);
  color: var(--color-selection-text);
}

/* Custom scrollbar (webkit browsers) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-scrollbar-thumb);
  border-radius: 3px;
  transition: background-color var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-scrollbar-thumb-hover);
}

/* Firefox scrollbar */


/* Smooth scroll behavior */


/* Focus visible outline (accessible) */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Image responsive defaults */
.content img,
.content figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* ================================================================
   SEARCH COMPONENT
   ================================================================ */

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-input {
  width: 240px;
  padding: 8px 14px 8px 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  
  font-size: 13.5px;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text-primary);
  
  background-color: var(--color-bg-light);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='6.5' cy='6.5' r='4.5' stroke='%238792A2' stroke-width='1.5'/%3E%3Cpath d='M10.5 10.5l3.5 3.5' stroke='%238792A2' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px 16px;
  
  transition: all var(--transition-base);
  
  caret-color: var(--color-primary);
}

.search-input::placeholder {
  color: var(--color-text-tertiary);
}

.search-input:hover {
  border-color: var(--color-border);
  background-color: #fff;
}

.search-input:focus,
.search-input:focus-within {
  width: 300px;
  border-color: var(--color-primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px var(--color-primary-focus);
  outline: none;
}

/* Dropdown container */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 420px;
  
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  
  z-index: 1000;
  display: none;
}

.search-dropdown.open {
  display: block;
}

/* Hide scrollbar in dropdown but keep functionality */
.search-dropdown::-webkit-scrollbar {
  width: 5px;
}

.search-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.search-dropdown::-webkit-scrollbar-thumb {
  background-color: #E3E8EF;
  border-radius: 2px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
  background-color: #C1C8D4;
}

/* Individual result item */
.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-bg-subtle);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--color-bg-lighter);
}

.search-result-item:active {
  background-color: var(--color-primary-light);
}

/* Result title */
.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin: 0;
}

/* Result description */
.search-result-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Result tag (category/section) */
.search-result-tag {
  display: inline-flex;
  align-items: center;
  
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  
  width: fit-content;
  margin-top: 4px;
}

/* No results state */
.search-no-results {
  padding: 32px 16px;
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 14px;
}

/* Keyboard shortcut hint */
.search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  
  padding: 1px 6px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-text-secondary);
  
  margin-left: auto;
  white-space: nowrap;
}

/* ================================================================
   FLOATING TABLE OF CONTENTS (Right Rail)
   ================================================================ */

#toc-floating {
  position: fixed;
  top: 80px;
  right: 24px;
  width: 220px;
  
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  
  background: transparent;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--color-border);
  
  font-size: 12.5px;
  z-index: 90;
}

    #toc-floating.visible { display: block; }


/* Hide scrollbar in TOC */
#toc-floating::-webkit-scrollbar {
  width: 4px;
}

#toc-floating::-webkit-scrollbar-track {
  background: transparent;
}

#toc-floating::-webkit-scrollbar-thumb {
  background-color: transparent;
}

#toc-floating::-webkit-scrollbar-thumb:hover {
  background-color: #E3E8EF;
}

/* TOC section title */
.toc-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
  margin-top: 16px;
  display: block;
  padding: 0 16px 0 0;
}

.toc-title:first-child {
  margin-top: 0;
}

/* TOC link (H2) */
.toc-link {
  display: block;
  
  color: var(--color-text-secondary);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  
  padding: 4px 0 4px 0;
  margin-left: -17px;
  padding-left: 16px;
  border-left: 2px solid transparent;
  
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.toc-link:hover {
  color: var(--color-primary);
  border-left-color: transparent;
}

.toc-link.active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

/* TOC subheading (H3) */
.toc-link.toc-h3 {
  padding-left: 28px;
  margin-left: -28px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  font-weight: 400;
}

.toc-link.toc-h3:hover {
  color: var(--color-primary);
}

.toc-link.toc-h3.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* ================================================================
   PREVIEW / BETA BANNER
   ================================================================ */

.preview-banner {
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 10px 24px;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-badge {
  background-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ================================================================
   TAGS (New, Coming Soon, etc.)
   ================================================================ */

.new-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  background-color: var(--color-tag-new-bg);
  color: var(--color-tag-new-text);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
  
  white-space: nowrap;
}

.coming-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  background-color: var(--color-tag-coming-bg);
  color: var(--color-tag-coming-text);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
  
  white-space: nowrap;
}

/* ================================================================
   ON THIS PAGE (Legacy / Fallback)
   ================================================================ */

.on-this-page {
  position: fixed;
  right: 24px;
  top: 80px;
  width: 200px;
  
  font-size: 12.5px;
  z-index: 89;
  
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.on-this-page-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
  display: block;
}

.on-this-page a {
  display: block;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 4px 0;
  line-height: 1.5;
  transition: color var(--transition-fast);
  font-size: 12.5px;
}

.on-this-page a:hover {
  color: var(--color-primary);
}

.on-this-page a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */

/* Large Desktop: Hide floating TOC if needed */


/* Desktop: Hide TOC and On This Page */


/* Tablet: Adjust content and search */


/* Small Tablet / Large Mobile: Full responsive */


/* Mobile: Optimize for small screens */


/* Extra small mobile */


/* ================================================================
   PRINT STYLES
   ================================================================ */

@media print {
  .search-wrapper,
  #toc-floating,
  .on-this-page,
  .preview-banner {
    display: none !important;
  }
  
  .content {
    margin-left: 0;
    padding: 0;
  }
}

/* ================================================================
   DARK MODE SUPPORT (Optional Future)
   ================================================================ */


/* ================================================================
   REDUCED MOTION (Accessibility)
   ================================================================ */


/* ================================================================
   HIGH CONTRAST MODE (Accessibility)
   ================================================================ */


/* ===================================================================
   RESPONSIVE BREAKPOINTS (Consolidated)
   =================================================================== */

@media (max-width: 1440px) {
  #toc-floating { right: 16px; }
}

@media (max-width: 1280px) {
  #toc-floating { display: none !important; }
  .on-this-page { display: none !important; }
  .search-input:focus { width: 280px; }
}

@media (max-width: 1200px) {
  .topbar { padding: 0 16px; }
  .topbar-section { display: none; }
  .search-wrapper { max-width: 280px; }
}

@media (max-width: 1024px) {
  .content { padding: 32px 36px 80px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .search-input { width: 220px; }
  .search-input:focus { width: 260px; }
  .search-dropdown { width: 380px; }
}

/* ── Hamburger button (hidden on desktop) ─────────────────────────────── */
/* -- Responsive 2-column grid utility ---------------------------------------- */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0;
  margin-right: 6px;
}
.hamburger-btn:hover { background: var(--gray-100); }
.hamburger-btn svg { display: block; pointer-events: none; }

/* ── Mobile sidebar overlay ───────────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 54, 0.5);
  z-index: 149;
}
.sidebar-overlay.open { display: block; }

@media (max-width: 768px) {
  :root { --font-2xl: 1.5rem; --font-3xl: 2rem; }
  .hamburger-btn { display: flex; }
  .sidebar {
    display: flex !important;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 150;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .content { margin-left: 0; padding: 24px 20px 60px; }
  .content h1 { font-size: var(--font-2xl); margin-bottom: 16px; }
  .content h2 { font-size: var(--font-lg); margin-top: 32px; }
  .content h3 { font-size: var(--font-md); }
  .content ul, .content ol { padding-left: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .grid-2col  { grid-template-columns: 1fr; }
  .site-footer { margin-left: 0; padding: 24px 20px; text-align: center; }
  .footer-content { flex-direction: column; gap: 12px; align-items: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .hero { padding: 24px 0 32px; }
  .hero h1 { font-size: 28px; letter-spacing: 0; }
  .hero p { font-size: 16px; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-secondary { width: 100%; }
  .breadcrumb { flex-wrap: wrap; gap: 8px; }
  .page-header-row { flex-direction: column; gap: 8px; }
  .steps { padding-left: 32px; }
  .steps::before { left: 0; }
  .step-num { width: 28px; height: 28px; font-size: 12px; left: -26px; }
  .quick-links { gap: 8px; }
  .quick-link { padding: 6px 12px; font-size: 12px; }
  .on-this-page { display: none !important; }
  #toc-floating { display: none !important; }
  .topbar { padding: 0 12px; }
  .topbar-logo-text { font-size: 15px; }
  .search-wrapper { width: 100%; max-width: 160px; }
  .search-input { width: 100%; }
  .search-input:focus { width: 100%; }
  .search-dropdown { position: fixed; top: auto; left: 12px; right: 12px; width: auto; z-index: 1001; }
  .topbar-badge { font-size: 10px; padding: 3px 8px; }
  .topbar-link { font-size: 12px; padding: 5px 10px; }
  .code-block-header { flex-direction: column; align-items: flex-start; }
  .copy-btn { align-self: flex-end; }
  .tab-btn { padding: 8px 14px; font-size: 12px; }
  .callout { padding: 12px 16px; }
  .callout-icon { font-size: 16px; }
  .postman-banner { flex-direction: column; align-items: flex-start; }
  .postman-btn { align-self: flex-start; }
  .content table, .param-table { font-size: 12px; }
  .content th, .param-table th { padding: 8px 12px; font-size: 10px; }
  .content td, .param-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .content { padding: 12px 12px 32px; }
  .hero h1 { font-size: 24px; margin-bottom: 12px; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 8px; }
  .hero p { font-size: 15px; }
  .card { padding: 16px; }
  .card-title { font-size: 15px; }
  .card-body { font-size: 13px; }
  .section-label { font-size: 10px; }
  .breadcrumb { font-size: 11px; gap: 4px; }
  .preview-badge { display: none; }
}

/* ===================================================================
   ACCESSIBILITY
   =================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

@media (prefers-contrast: more) {
  .search-input, .search-dropdown, .toc-link { border-width: 2px; }
  .breadcrumb a { color: var(--text-primary); text-decoration: underline; }
  .card, .btn-primary, .btn-secondary { border-width: 2px; }
  .code-block-wrapper, .tabs, .callout, .content table, .param-table { border-width: 2px; }
  .callout { border-left-width: 4px; }
  .badge-required, .badge-optional, .badge-deprecated { font-weight: 800; }
}

/* ===================================================================
   PRINT
   =================================================================== */

@media print {
  .topbar, .sidebar, .search-wrapper, #toc-floating, .on-this-page, .preview-banner { display: none !important; }
  .content { margin-left: 0; margin-top: 0; padding: 0; }
  .breadcrumb, .hero-cta, .quick-links { display: none; }
  .card, .step, .code-block-wrapper, .tabs, .callout, .content table, .param-table, .postman-banner { page-break-inside: avoid; box-shadow: none; }
  .copy-btn, .postman-btn { display: none; }
}

/* ===================================================================
   GITHUB SAMPLES BANNER
   =================================================================== */
.github-samples-banner {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f6f8fa 0%, #eef2f7 100%);
  border: 1px solid var(--border-light, #d0d7de);
  border-radius: 10px;
  border-left: 4px solid #24292f;
}
.github-banner-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 15px;
  color: #24292f;
}
.github-icon { font-size: 18px; }
.github-banner-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.github-link {
  display: block;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  color: #24292f;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.github-link:hover {
  border-color: #0969da;
  box-shadow: 0 1px 3px rgba(9,105,218,0.12);
  text-decoration: none;
}
.github-link strong { color: #0969da; font-weight: 600; }
.github-banner-org {
  display: inline-block;
  font-size: 13px;
  color: #0969da;
  text-decoration: none;
  font-weight: 500;
}
.github-banner-org:hover { text-decoration: underline; }

/* ===================================================================
   SEARCH RESULTS PAGE
   =================================================================== */
.search-results-page { max-width: 720px; }
.search-results-input-wrapper { margin-bottom: 1.5rem; }
.search-results-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-family: var(--font-body, 'Inter', sans-serif);
  border: 2px solid var(--border-medium, #d1d5db);
  border-radius: 10px;
  background: var(--bg-primary, #fff);
  color: var(--text-primary, #1a1a2e);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.search-results-input:focus {
  border-color: var(--blue, #0066CC);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}
.search-page-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary, #6b7280);
}
.search-empty-icon { font-size: 48px; margin-bottom: 1rem; }
.search-empty-hint { margin-top: 1rem; }
.search-suggestion {
  background: var(--bg-secondary, #f1f5f9);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--blue, #0066CC);
  cursor: pointer;
  font-family: var(--font-body, 'Inter', sans-serif);
  margin: 2px;
  transition: background 0.15s;
}
.search-suggestion:hover { background: var(--bg-tertiary, #e2e8f0); }
.search-results-count {
  font-size: 14px;
  color: var(--text-secondary, #6b7280);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
}
.search-result-card {
  display: block;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--bg-primary, #fff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary, #1a1a2e);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-result-card:hover {
  border-color: var(--blue, #0066CC);
  box-shadow: 0 2px 8px rgba(0,102,204,0.08);
}
.search-result-card-section {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue, #0066CC);
  margin-bottom: 4px;
}
.search-result-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #1a1a2e);
  margin-bottom: 4px;
}
.search-result-card-desc {
  font-size: 13px;
  color: var(--text-secondary, #6b7280);
  line-height: 1.5;
}
.search-result-card mark {
  background: #fef3cd;
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
}
.search-no-results-page {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-secondary, #6b7280);
}
.algolia-attribution {
  margin-top: 2rem;
  text-align: right;
  font-size: 12px;
  color: var(--text-tertiary, #9ca3af);
}
.algolia-attribution a { color: var(--blue, #0066CC); }

/* ===================================================================
   FAQ ACCORDION
   =================================================================== */

.faq-section {
  margin-top: var(--spacing-48, 48px);
  padding-top: var(--spacing-32, 32px);
  border-top: 1px solid var(--border-light, #E3E8EF);
}

.faq-section h2 {
  font-size: var(--font-xl, 1.5rem);
  font-weight: var(--weight-bold, 700);
  color: var(--text-primary, #1A1F36);
  margin-bottom: var(--spacing-24, 24px);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border: 1px solid var(--border-light, #E3E8EF);
  border-bottom: none;
  background: var(--bg-primary, #FFFFFF);
  transition: background-color 0.15s ease;
}

.faq-item:first-child {
  border-radius: var(--radius-lg, 8px) var(--radius-lg, 8px) 0 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border-light, #E3E8EF);
  border-radius: 0 0 var(--radius-lg, 8px) var(--radius-lg, 8px);
}

.faq-item:only-child {
  border-bottom: 1px solid var(--border-light, #E3E8EF);
  border-radius: var(--radius-lg, 8px);
}

.faq-item[open] {
  background: var(--bg-secondary, #FAFBFC);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-16, 16px) var(--spacing-20, 20px);
  font-family: var(--font-family);
  font-size: var(--font-md, 1rem);
  font-weight: var(--weight-semibold, 600);
  color: var(--text-primary, #1A1F36);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s ease;
  line-height: var(--line-height-normal, 1.5);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-left: var(--spacing-16, 16px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234F566B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  transition: transform 0.2s ease;
}

.faq-item[open] > .faq-question::after {
  transform: rotate(180deg);
}

.faq-question:hover {
  color: var(--primary, #0066CC);
}

.faq-answer {
  padding: 0 var(--spacing-20, 20px) var(--spacing-20, 20px) var(--spacing-20, 20px);
  font-size: var(--font-base, 0.875rem);
  color: var(--text-secondary, #4F566B);
  line-height: var(--line-height-relaxed, 1.7);
  animation: faqFadeIn 0.2s ease;
}

.faq-answer p {
  margin: 0 0 var(--spacing-12, 12px) 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer code {
  font-family: var(--mono);
  font-size: var(--font-sm, 0.8125rem);
  background: var(--gray-100, #F1F3F5);
  padding: 2px 6px;
  border-radius: var(--radius-sm, 4px);
  color: var(--text-primary, #1A1F36);
}

.faq-answer a {
  color: var(--primary, #0066CC);
  text-decoration: none;
  font-weight: var(--weight-medium, 500);
}

.faq-answer a:hover {
  text-decoration: underline;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   FOOTER
   =================================================================== */

.site-footer {
  background-color: var(--bg-secondary, #FAFBFC);
  border-top: 1px solid var(--border-light, #E3E8EF);
  margin-left: var(--sidebar-w, 272px);
  margin-top: var(--spacing-48, 48px);
  padding: var(--spacing-32, 32px) var(--spacing-56, 56px);
  font-family: var(--font-family);
  font-size: var(--font-base, 14px);
  color: var(--text-secondary, #4F566B);
  line-height: var(--line-height-normal, 1.5);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-16, 16px);
  max-width: var(--content-max-w, 780px);
  text-align: center;
}

.footer-content p {
  margin: 0;
  font-size: var(--font-sm, 13px);
  color: var(--text-tertiary, #697386);
}

.footer-links {
  display: flex;
  gap: var(--spacing-16, 16px);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--primary, #0066CC);
  text-decoration: none;
  font-size: var(--font-sm, 13px);
  font-weight: var(--weight-medium, 500);
  transition: color var(--transition-fast, 0.15s ease);
}

.footer-links a:hover {
  color: var(--primary-hover, #0052A3);
  text-decoration: underline;
}

.footer-links a:visited {
  color: var(--primary-dark, #004C99);
}

/* ============================================================================
   INLINE TABLE OF CONTENTS
   ============================================================================ */

.toc-inline {
  background: var(--color-slate-lighter, #f8f9fb);
  border: 1px solid var(--color-border, #e2e6ea);
  border-radius: var(--radius-lg, 8px);
  padding: 16px 20px 14px;
  margin: 24px 0 28px;
  font-size: 13.5px;
}

.toc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-secondary, #6b7685);
  margin-bottom: 10px;
}

.toc-inline ul {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
}

.toc-inline > ul {
  padding-left: 0;
  list-style: none;
}

.toc-inline ul li {
  margin-bottom: 5px;
  line-height: 1.5;
}


.toc-inline a {
  color: var(--color-link, #0066cc);
  text-decoration: none;
  transition: color 0.15s ease;
}

.toc-inline a:hover {
  color: var(--primary-hover, #0052a3);
  text-decoration: underline;
}

/* ============================================================================
   GROUPED TOC (api-reference pages with .api-group-label sections)
   ============================================================================ */

.toc-grouped .toc-group {
  margin-top: 12px;
}

.toc-grouped .toc-group:first-of-type {
  margin-top: 6px;
}

.toc-group-name {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-secondary, #6b7685);
  margin-bottom: 4px;
}

.toc-group-name a {
  color: inherit;
  text-decoration: none;
}

.toc-group-name a:hover {
  color: var(--color-link, #0066cc);
}

.toc-grouped ul {
  margin: 0;
  padding-left: 12px;
  list-style: none;
  border-left: 2px solid var(--color-border, #e2e6ea);
}

.toc-grouped ul li {
  margin-bottom: 4px;
}

/* H3 sub-items in grouped TOC (e.g. individual method sections) */
.toc-grouped ul li.toc-h3 {
  margin-bottom: 2px;
}

.toc-grouped ul li.toc-h3 > a {
  font-size: 11.5px;
  color: var(--color-text-secondary, #6b7685);
  padding-left: 10px;
  display: block;
  border-left: none;
}

.toc-grouped ul li.toc-h3 > a:hover {
  color: var(--color-link, #0066cc);
  text-decoration: underline;
}

/* ============================================================================
   API GROUP TAB STRIP (kept for reference, currently unused)
   ============================================================================ */

.api-tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 0 14px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--color-border, #e2e6ea);
}

.api-tab {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-secondary, #6b7685);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.api-tab:hover {
  color: var(--color-link, #0066cc);
  background: var(--color-blue-light, #eef4ff);
  border-color: var(--color-blue-light, #eef4ff);
}

.api-tab.active {
  color: var(--color-link, #0066cc);
  background: var(--color-blue-light, #eef4ff);
  border-color: var(--color-blue, #c5d8f8);
  font-weight: 600;
}

/* Group label dividers between sections */
.api-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  padding: 36px 0 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

/* ── HTTP Method Badges (endpoint index tables) ──────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-get    { background: #d1fae5; color: #065f46; }
.badge-post   { background: #dbeafe; color: #1e40af; }
.badge-patch  { background: #fef3c7; color: #92400e; }
.badge-delete { background: #fee2e2; color: #991b1b; }
.badge-put    { background: #ede9fe; color: #5b21b6; }
