/* Form Widgets Documentation Styles */
:root {
  --accent: #e17009;
  --accent-light: rgba(225,112,9,0.1);
  --nav-bg: #1e293b;
  --nav-text: #94a3b8;
  --body-bg: #f1f5f9;
  --card-bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --table-header: #f8fafc;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Transparent overlays for dark components */
  --white-t-4: rgba(255,255,255,0.04);
  --white-t-5: rgba(255,255,255,0.05);
  --white-t-6: rgba(255,255,255,0.06);
  --white-t-8: rgba(255,255,255,0.08);
  --white-t-10: rgba(255,255,255,0.1);
  --white-t-15: rgba(255,255,255,0.15);
  --accent-t-8: rgba(225,112,9,0.08);
  --success-t-10: rgba(34, 197, 94, 0.1);
  
  --kbd-bg: #f1f5f9;
  --kbd-border: #cbd5e1;
  --kbd-border-bottom: #94a3b8;
  
  /* Callouts */
  --callout-info-bg: #eff6ff; --callout-info-border: #3b82f6; --callout-info-text: #1e40af;
  --callout-warn-bg: #fffbeb; --callout-warn-border: #f59e0b; --callout-warn-text: #92400e;
  --callout-success-bg: #f0fdf4; --callout-success-border: #22c55e; --callout-success-text: #166534;
  --callout-tip-bg: #faf5ff; --callout-tip-border: #a855f7; --callout-tip-text: #6b21a8;

  /* Widget Variable Defaults (Light) */
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --text-2: #334155;
  --slot: #f1f5f9;
  --border-2: #e2e8f0;
  --brand-500: var(--accent);
  --brand-600: #c96008;
  --brand-150: var(--accent-light);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

/* ---- Dark Mode ---- */
html[data-theme="dark"] {
  --nav-bg: #0f172a;
  --nav-text: #94a3b8;
  --body-bg: #020617;
  --card-bg: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --table-header: #1e293b;
  
  --kbd-bg: #1e293b;
  --kbd-border: #334155;
  --kbd-border-bottom: #475569;

  /* Callouts Dark */
  --callout-info-bg: rgba(59, 130, 246, 0.1); --callout-info-border: #3b82f6; --callout-info-text: #93c5fd;
  --callout-warn-bg: rgba(245, 158, 11, 0.1); --callout-warn-border: #f59e0b; --callout-warn-text: #fcd34d;
  --callout-success-bg: rgba(34, 197, 94, 0.1); --callout-success-border: #22c55e; --callout-success-text: #86efac;
  --callout-tip-bg: rgba(168, 85, 247, 0.1); --callout-tip-border: #a855f7; --callout-tip-text: #d8b4fe;

  /* Widget Overrides for Dark Mode */
  --panel: #1e293b;
  --panel-2: #334155;
  --text-2: #e2e8f0;
  --slot: #334155;
  --border-2: #475569;
  
  --brand-500: var(--accent);
  --brand-600: #c96008;
  --brand-150: rgba(225,112,9,0.15);
}

/* ---- Sidebar ---- */
.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--nav-bg);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover); }

.sidebar-logo {
  padding: 20px;
  border-bottom: 1px solid var(--white-t-8);
}
.sidebar-logo {
  padding: 20px;
  border-bottom: 1px solid var(--white-t-8);
}
.sidebar-logo a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  display: block;
}
.sidebar-logo span { color: var(--accent); }
.sidebar-logo .version { color: var(--nav-text); font-size: 12px; margin-top: 4px; opacity: 0.8; }
.nav-group { padding: 8px 0 2px; }
.nav-group-title {
  padding: 6px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nav-text);
  opacity: 0.6;
}
/* Collapsible Groups */
.nav-group-title {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.nav-group-title::after {
  content: '';
  border: 4px solid transparent;
  border-top-color: var(--nav-text);
  margin-top: 4px;
  transition: transform 0.2s;
}
.nav-group.collapsed .nav-group-title::after {
  transform: rotate(-90deg);
}
.nav-group.collapsed .nav-item {
  display: none;
}

.nav-item {
  display: block;
  padding: 5px 20px;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.nav-item:hover { color: var(--accent); background: var(--white-t-5); }
.nav-item.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-t-8); }
.nav-sub { padding-left: 32px; font-size: 13px; }
.nav-examples { opacity: 0.7; font-style: italic; }

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 24px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-500);
  transition: transform 0.25s ease, background 0.25s ease;
}

html[data-theme="light"] .theme-toggle__knob {
  transform: translateX(20px);
}

.theme-toggle__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.theme-toggle__icon--moon { right: 6px; opacity: 1; }
.theme-toggle__icon--sun { left: 6px; opacity: 0; }

html[data-theme="light"] .theme-toggle__icon--moon { opacity: 0; }
html[data-theme="light"] .theme-toggle__icon--sun { opacity: 1; }

/* ---- Main Content ---- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--panel);
  border-bottom: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  z-index: 110;
  padding: 10px 20px;
}

.top-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 5px;
  max-width: none;
  margin: 0 auto;
}

.top-nav .nav__logo {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.top-nav {
  width: 100%;
  background: var(--nav-bg);
}

.top-nav .nav__logo {
  padding-top: 8px;
}

.top-nav .nav__logo-img {
  width: 240px;
  height: 60px;
  max-width: none;
}

.logo-wordmark { fill: #ffffff; }
.logo-tagline { fill: #ffffff; }

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  display: none;
}

.sidebar { top: 72px; }
.main { margin-left: 260px; margin-top: 72px; flex: 1; padding: 48px 56px; max-width: calc(260px + 920px); }

/* ---- Page Header ---- */
.page-header { margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }
.page-header h1 { font-size: 38px; font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.page-header .lead { font-size: 18px; color: var(--muted); line-height: 1.6; max-width: 680px; }
.page-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.class-pill {
  display: inline-block;
  background: var(--accent-light);
  border: 1px solid rgba(225,112,9,0.3);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 20px;
  font-family: 'Cascadia Code', monospace;
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #c96008; }
.btn-secondary { background: var(--slot); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent-light); }

/* ---- Sections ---- */
.section { margin-bottom: 52px; }
.section > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section > h2 i { color: var(--accent); font-size: 18px; }
.section > h3 { font-size: 17px; font-weight: 600; margin: 24px 0 12px; color: var(--text); }
.section > p, .section p { color: var(--muted); margin-bottom: 16px; font-size: 15px; }

/* ---- Options Table ---- */
.options-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.options-table th {
  background: var(--table-header);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border);
}
.options-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.options-table tr:last-child td { border-bottom: none; }
.options-table tr:hover td { background: var(--panel-2); }
.options-table code {
  background: var(--slot);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Cascadia Code', 'Courier New', monospace;
  font-size: 13px;
  color: var(--text);
}
.options-table .opt-name { font-family: 'Cascadia Code', monospace; font-size: 13px; font-weight: 600; color: var(--accent); }
.options-table .opt-default { font-family: 'Cascadia Code', monospace; font-size: 13px; color: #6366f1; }
.type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  font-family: monospace;
}
.t-string { background: #dcfce7; color: #166534; }
.t-boolean { background: #dbeafe; color: #1e40af; }
.t-number { background: #fef9c3; color: #854d0e; }
.t-array { background: #fae8ff; color: #7e22ce; }
.t-object { background: #fee2e2; color: #991b1b; }
.t-function { background: #fff7ed; color: #9a3412; }

/* ---- Code Block ---- */
.code-block {
  background: var(--code-bg);
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0 24px;
  border: 1px solid var(--white-t-6);
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--white-t-4);
  border-bottom: 1px solid var(--white-t-6);
}
.code-lang { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.code-block pre { padding: 20px; overflow-x: auto; }
.code-block code {
  font-family: 'Cascadia Code', 'Courier New', monospace;
  font-size: 13px;
  color: var(--code-text);
  line-height: 1.65;
}

.code-inline {
  background: var(--slot);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Cascadia Code', 'Courier New', monospace;
  font-size: 13px;
  color: var(--text);
}

/* Copy Button */
.copy-btn {
  background: transparent;
  border: 1px solid var(--white-t-15);
  color: var(--muted);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.copy-btn:hover { background: var(--white-t-10); color: var(--text); border-color: var(--muted); }
.copy-btn.success { border-color: var(--success); color: var(--success); background: var(--success-t-10); }
.copy-btn i { font-size: 14px; }

/* ---- Notes / Callouts ---- */
.callout {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 16px 0 24px;
  border-left: 4px solid;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout i { margin-top: 2px; flex-shrink: 0; font-size: 16px; }
.callout-content h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.callout-content p { font-size: 14px; margin: 0; }
.callout-info { background: var(--callout-info-bg); border-color: var(--callout-info-border); color: var(--callout-info-text); }
.callout-warning { background: var(--callout-warn-bg); border-color: var(--callout-warn-border); color: var(--callout-warn-text); }
.callout-success { background: var(--callout-success-bg); border-color: var(--callout-success-border); color: var(--callout-success-text); }
.callout-tip { background: var(--callout-tip-bg); border-color: var(--callout-tip-border); color: var(--callout-tip-text); }

/* ---- Keyboard Shortcuts ---- */
.kbd-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.kbd-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
kbd {
  display: inline-block;
  padding: 3px 9px;
  background: var(--kbd-bg);
  border: 1px solid var(--kbd-border);
  border-bottom: 2px solid var(--kbd-border-bottom);
  border-radius: 5px;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.kbd-desc { color: var(--muted); font-size: 14px; }

/* ---- Feature Cards ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.feature-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.fc-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 10px; }
.feature-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.feature-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---- Methods ---- */
.method-block { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.method-sig { font-family: 'Cascadia Code', monospace; font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.method-desc { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.method-returns { font-size: 13px; color: var(--muted); }
.method-returns strong { color: var(--text); }

/* ---- Data Attributes Table ---- */
.attr-pill {
  display: inline-block;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  color: #7e22ce;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}

/* ---- Examples page specific ---- */
.example-section { margin-bottom: 48px; }
.example-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.example-section .example-desc { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.example-demo {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 16px;
}
.example-demo label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.form-group { margin-bottom: 8px; }
.result-box {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: monospace;
  font-size: 13px;
  color: var(--text);
  margin-top: 16px;
}

/* ---- Index Page Specifics ---- */
.main.index-page { padding: 0; max-width: none; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: white; padding: 80px 60px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(225,112,9,0.2); color: var(--accent); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 24px; border: 1px solid rgba(225,112,9,0.3); }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 20px; color: var(--nav-text); max-width: 600px; margin-bottom: 36px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.stat-item .stat-number { font-size: 32px; font-weight: 800; color: white; }
.stat-item .stat-label { font-size: 14px; color: var(--nav-text); }

/* Index Content */
.content { padding: 60px; max-width: 1100px; margin: 0 auto; }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.section-header h2 { font-size: 28px; font-weight: 700; margin: 0; border: none; padding: 0; }
.section-header .line { flex: 1; height: 2px; background: var(--border); }

/* Widget Cards */
.widgets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.widget-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: all 0.2s; position: relative; overflow: hidden; }
.widget-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform 0.2s; }
.widget-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.widget-card:hover::before { transform: scaleX(1); }
.widget-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 20px; margin-bottom: 16px; }
.widget-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.widget-card p { font-size: 14px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.widget-card .class-badge { display: inline-block; background: var(--slot); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; font-family: monospace; font-size: 12px; color: var(--accent); margin-bottom: 16px; }
.widget-links { display: flex; gap: 10px; }
.widget-link { flex: 1; text-align: center; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.widget-link-doc { background: var(--accent-light); color: var(--accent); }
.widget-link-doc:hover { background: var(--accent); color: white; }
.widget-link-ex { background: var(--slot); color: var(--muted); }
.widget-link-ex:hover { background: var(--text); color: var(--accent); }

/* Quick Start */
.quickstart { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.quickstart-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 24px; }
.step { display: flex; gap: 16px; }
.step-num { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.step-content h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-content p { font-size: 14px; color: var(--muted); }

/* Compatibility Table */
.compat-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.compat-table th { background: var(--table-header); padding: 12px 20px; text-align: left; font-weight: 600; font-size: 14px; border-bottom: 2px solid var(--border); }
.compat-table td { padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.compat-table tr:last-child td { border-bottom: none; }
.check { color: var(--success); }

/* Icon Examples */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; background: var(--panel-2); padding: 20px; border-radius: 12px; border: 1px solid var(--border-2); }
.icon-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: var(--panel); border-radius: 8px; border: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--muted); word-break: break-all; }
.icon-item .fw-icon { font-size: 32px; color: var(--text-2); }
.styled-icons { display: flex; align-items: center; gap: 24px; font-size: 24px; }

/* Utilities */
.page-header-icon { color: var(--accent); margin-right: 12px; }
.example-action-btn { margin-top: 12px; border: none; }
.validation-list { margin: 12px 0 16px 20px; color: var(--muted); }
.validation-list li { margin-bottom: 6px; }
.demo-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: var(--panel); color: var(--text); }
.mt-4 { margin-top: 16px; }
.mt-2 { margin-top: 8px; }

/* Index Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.feature-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.feature-item .fi-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.feature-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.feature-item p { font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 768px) { .hero { padding: 40px 20px; } .content { padding: 30px 20px; } .hero h1 { font-size: 32px; } .main { margin-top: 72px; } }

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  body { flex-direction: column; }
  .sidebar { 
    display: block; 
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu-btn { display: flex; }
  .main { margin-left: 0; padding: 20px; width: 100%; }
  
  /* Adjust example demo padding and grid */
  .example-demo { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  
  /* Ensure code blocks don't break layout */
  .code-block { margin-left: -20px; margin-right: -20px; border-radius: 0; border-left: none; border-right: none; }
}
