/* Community Questions Documentation Styles - Modernized */

/* ========================================
   CSS VARIABLES & DESIGN TOKENS
   ======================================== */

:root {
  /* Brand Colors */
  --brand-green: #6ba02e;
  --brand-green-hover: #5a8926;
  --brand-green-light: #e8f3df;
  --brand-green-lighter: #f5faf0;
  --brand-blue: #1e8ec8;
  --brand-blue-hover: #1670a8;
  --brand-blue-light: #e6f4fb;

  /* Neutral Palette */
  --white: #ffffff;
  --gray-50: #fafbfc;
  --gray-100: #f4f5f7;
  --gray-200: #ebecf0;
  --gray-300: #dfe1e6;
  --gray-400: #c1c7d0;
  --gray-500: #8993a4;
  --gray-600: #5e6c84;
  --gray-700: #42526e;
  --gray-800: #172b4d;
  --gray-900: #091e42;

  /* Semantic Colors */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--gray-100);
  --bg-code: var(--gray-100);
  --bg-sidebar: var(--gray-50);

  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-600);
  --text-inverse: var(--white);

  --border-light: var(--gray-200);
  --border-medium: var(--gray-300);
  --border-strong: var(--gray-400);

  /* Status Colors */
  --success: #36b37e;
  --warning: #ff991f;
  --error: #de350b;
  --info: #0065ff;

  /* Typography Scale */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing Scale */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout Constraints */
  --container-max: 1200px;
  --content-max: 900px;
  --sidebar-width: 280px;
  --header-height: 64px;
}

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background: var(--bg-secondary);
  font-weight: var(--font-weight-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-blue-hover);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

ul, ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-8);
}

li {
  margin-bottom: var(--space-2);
  line-height: var(--line-height-relaxed);
}

/* Code Typography */
code {
  font-family: var(--font-family-mono);
  font-size: 0.9em;
  font-weight: var(--font-weight-medium);
  background: var(--bg-code);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  color: var(--error);
  border: 1px solid var(--border-light);
}

pre {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  overflow-x: auto;
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-md);
}

pre code {
  background: none;
  padding: 0;
  color: var(--gray-100);
  border: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

figure {
  max-width: min(100%, 450px);
  margin: var(--space-6) auto;
  display: block;
}

figure img {
  margin: 0 auto;
  display: block;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

figcaption {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-top: var(--space-3);
  line-height: 1.5;
}

/* Smaller image size for specific screenshots */
figure.image-smaller {
  max-width: min(100%, 400px);
}

figure.image-smaller img {
  max-width: 400px;
  width: 100%;
}

/* ========================================
   HEADER
   ======================================== */

.docs-header {
  height: var(--header-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.docs-header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.docs-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.docs-logo:hover {
  opacity: 0.8;
  text-decoration: none;
}

.docs-logo-img {
  width: 44px;
  height: 44px;
  display: block;
}

.docs-logo > div {
  display: flex;
  flex-direction: column;
}

.docs-logo-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--brand-green);
  line-height: 1;
}

.docs-logo-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1;
  margin-top: var(--space-1);
}

.docs-header-nav {
  display: flex;
  gap: var(--space-6);
}

.docs-header-link {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.docs-header-link:hover {
  color: var(--brand-green);
  text-decoration: none;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-slow);
}

/* ========================================
   LAYOUT
   ======================================== */

.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: calc(100vh - var(--header-height) - 200px);
  gap: 0;
}

.docs-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-12) var(--space-8);
  width: 100%;
  background: var(--bg-primary);
}

/* Homepage specific overrides */
.docs-home .docs-content {
  max-width: var(--container-max);
  padding: var(--space-8) var(--space-12);
}

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

.docs-sidebar {
  background: var(--bg-sidebar);
  padding: var(--space-6);
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  border-right: 1px solid var(--border-light);

  /* Custom Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

.docs-sidebar::-webkit-scrollbar {
  width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

.docs-nav {
  display: flex;
  flex-direction: column;
}

/* Home and Getting Started links */
.docs-nav > a {
  display: block;
  padding: 0.4rem 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all 150ms ease;
  margin-bottom: 0.25rem;
}

/* Shared hover styling for all navigation links */
.docs-nav > a:hover,
.sidebar-section a:hover,
.sidebar-section.trust-center-link a.trust-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
  text-decoration: none;
}

/* Shared active link styling */
.docs-nav > a.active,
.sidebar-section a.active,
.sidebar-section.trust-center-link a.trust-link.active {
  font-weight: 600;
}

/* Shared focus-visible styling */
.docs-nav > a:focus-visible,
.sidebar-section a:focus-visible,
.sidebar-section.trust-center-link a.trust-link:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}

/* Navigation Sections */
.sidebar-section {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  margin-left: 14px;
  border-top: 1px solid var(--border-light);
}

.sidebar-section + .sidebar-section {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-light);
}

.sidebar-section h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 var(--space-1) 0;
  font-weight: var(--font-weight-bold);
  padding: 0;
}

/* Section header links - explicit class styling */
.sidebar-section h3 .section-header-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.sidebar-section h3 .section-header-link:hover {
  color: var(--text-primary);
}

.sidebar-section h3 .section-header-link.active {
  color: var(--brand-green);
  font-weight: var(--font-weight-bold);
}

.sidebar-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0 var(--space-3);
}

.sidebar-section li {
  margin-bottom: 0;
}

.sidebar-section a {
  display: block;
  padding: 0.4rem 0.5rem;
  margin-left: -0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  transition: all 150ms ease;
  line-height: var(--line-height-normal);
}

/* Trust Center & Help Center Links */
.sidebar-section.trust-center-link {
  margin-top: var(--space-2);
  margin-bottom: 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-light);
}

.sidebar-section.trust-center-link + .sidebar-section.trust-center-link {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.sidebar-section.trust-center-link a.trust-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-md);
  transition: all 150ms ease;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */

.mobile-docs-nav {
  display: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  overflow: hidden;
}

.mobile-docs-nav summary {
  padding: var(--space-4);
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.mobile-docs-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-docs-nav summary::after {
  content: '▼';
  font-size: 0.75rem;
  transition: transform var(--transition-base);
}

.mobile-docs-nav[open] summary::after {
  transform: rotate(-180deg);
}

.mobile-docs-nav .docs-nav {
  padding: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.mobile-docs-nav .sidebar-section {
  margin-top: var(--space-4);
}

.mobile-docs-nav .sidebar-section:first-child {
  margin-top: 0;
}

/* ========================================
   HERO SECTION
   ======================================== */

.docs-hero {
  text-align: center;
  padding: var(--space-16) 0 var(--space-12);
  max-width: 800px;
  margin: 0 auto var(--space-16);
  position: relative;
}

/* Subtle gradient background */
.docs-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-green-lighter) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

.docs-hero h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
  color: var(--brand-green);
}

.docs-hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  margin: 0 auto;
  font-weight: var(--font-weight-normal);
}

/* ========================================
   SECTIONS & CARDS
   ======================================== */

.docs-section {
  margin-bottom: var(--space-16);
  position: relative;
}

.docs-section h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-8);
  text-align: center;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Subtle underline decoration */
.docs-section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-blue));
  border-radius: var(--radius-full);
}

/* Homepage section overrides */
.docs-home .docs-section {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-16);
}

/* Compact homepage styling when using sidebar layout */
.docs-layout .docs-hero {
  padding: var(--space-8) 0 var(--space-6);
  margin-bottom: var(--space-10);
}

.docs-layout .docs-hero h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
}

.docs-layout .docs-hero-subtitle {
  font-size: var(--font-size-lg);
}

.docs-layout .docs-section {
  margin-bottom: var(--space-10);
}

.docs-layout .docs-section h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-6);
}

/* Card Grids */
.docs-cards {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.docs-cards.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.docs-cards.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.docs-cards.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Modern Cards */
.docs-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay on hover */
.docs-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-blue));
  transform: translateY(-4px);
  transition: transform var(--transition-base);
}

.docs-card:hover {
  border-color: var(--brand-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  text-decoration: none;
}

.docs-card:hover::before {
  transform: translateY(0);
}

.docs-card-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
  line-height: 1;
}

.docs-card-logo {
  margin-bottom: var(--space-4);
}

.docs-card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-tight);
}

.docs-card-description {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.docs-card-link {
  color: var(--brand-blue);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.docs-card:hover .docs-card-link {
  gap: var(--space-2);
  transition: gap var(--transition-base);
}

/* ========================================
   NOTE BOXES / CALLOUTS
   ======================================== */

.docs-note {
  background: var(--bg-primary);
  border-left: 4px solid var(--brand-green);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.docs-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(107, 160, 46, 0.04) 0%,
    transparent 100%);
  pointer-events: none;
}

.docs-note-title {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  position: relative;
}

.docs-note-content {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  position: relative;
}

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

/* Variants */
.docs-note-warning {
  border-left-color: var(--warning);
}

.docs-note-warning::before {
  background: linear-gradient(135deg,
    rgba(255, 153, 31, 0.04) 0%,
    transparent 100%);
}

.docs-note-error {
  border-left-color: var(--error);
}

.docs-note-error::before {
  background: linear-gradient(135deg,
    rgba(222, 53, 11, 0.04) 0%,
    transparent 100%);
}

.docs-note-info {
  border-left-color: var(--info);
}

.docs-note-info::before {
  background: linear-gradient(135deg,
    rgba(0, 101, 255, 0.04) 0%,
    transparent 100%);
}

/* Info and Warning Boxes */
.info-box,
.warning-box {
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0;
  position: relative;
  overflow: hidden;
}

.info-box {
  background: linear-gradient(135deg,
    rgba(0, 101, 255, 0.06) 0%,
    rgba(0, 101, 255, 0.02) 100%);
  border-left: 4px solid var(--info);
}

.warning-box {
  background: linear-gradient(135deg,
    rgba(255, 153, 31, 0.08) 0%,
    rgba(255, 153, 31, 0.02) 100%);
  border-left: 4px solid var(--warning);
}

.info-box p,
.warning-box p {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.info-box p strong:first-child,
.warning-box p strong:first-child {
  display: block;
  margin-bottom: var(--space-1);
}

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

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-6) 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: var(--gray-50);
}

th {
  padding: var(--space-4);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  border-bottom: 2px solid var(--border-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

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

tbody tr {
  transition: background var(--transition-fast);
}

tbody tr:hover {
  background: var(--gray-50);
}

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

.docs-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--border-light);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}

.docs-footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
}

.docs-footer-section h3 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.docs-footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-footer-section li {
  margin-bottom: var(--space-2);
}

.docs-footer-section a {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.docs-footer-section a:hover {
  color: var(--brand-green);
}

.docs-footer-bottom {
  max-width: var(--container-max);
  margin: var(--space-12) auto 0;
  padding: var(--space-6) var(--space-8) 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    display: none;
  }

  .mobile-docs-nav {
    display: block;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .docs-header-nav {
    display: none;
  }

  .docs-header-nav.mobile-open {
    display: flex;
  }

  .docs-content {
    padding: var(--space-6);
  }

  .docs-home .docs-content {
    padding: var(--space-6);
  }

  .docs-hero {
    padding: var(--space-12) 0 var(--space-8);
  }

  .docs-hero h1 {
    font-size: var(--font-size-3xl);
  }

  .docs-hero-subtitle {
    font-size: var(--font-size-base);
  }

  .docs-cards.grid-2,
  .docs-cards.grid-3,
  .docs-cards.grid-4 {
    grid-template-columns: 1fr;
  }

  .docs-footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }

  h3 {
    font-size: var(--font-size-xl);
  }
}

/* ========================================
   CHANGELOG / WHAT'S NEW
   ======================================== */

.page-intro {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin: 0 0 var(--space-12);
  line-height: 1.6;
}

.changelog h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: var(--space-12) 0 var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--border-light);
}

.changelog h2:first-of-type {
  margin-top: 0;
}

.changelog h2 + p {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

.changelog strong {
  display: inline-block;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-3);
}

.changelog ul {
  margin: 0 0 var(--space-8);
  padding-left: var(--space-6);
  list-style-type: disc;
}

.changelog li {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.changelog a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.changelog a:hover {
  color: var(--brand-blue-hover);
  text-decoration: underline;
}

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

@media print {
  .docs-header,
  .docs-sidebar,
  .mobile-docs-nav,
  .docs-footer {
    display: none;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-content {
    padding: 0;
    max-width: 100%;
  }
}
