/* ═══════════════════════════════════════════════════════════
   ORBTR — Help Center Styles
   Aligned with orbtr.io / app.orbtr.io design system
   Dark grey + green, muted & flat
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  --surface-0: #0d0d0d;
  --surface-1: #141414;
  --surface-2: #1a1a1a;
  --surface-3: #222222;
  --surface-4: #2a2a2a;
  --surface-5: #333333;

  --accent-primary: #3ddc84;
  --accent-muted: #2ca866;
  --accent-dim: #1e7a4a;
  --accent-subtle: rgba(61, 220, 132, 0.08);
  --accent-border: rgba(61, 220, 132, 0.15);
  --accent-glow: rgba(61, 220, 132, 0.12);

  --status-ok: #3ddc84;
  --status-warn: #e6a817;
  --status-error: #e05252;
  --status-info: #4a9ede;

  --text-primary: #e0e0e0;
  --text-secondary: #999999;
  --text-tertiary: #666666;
  --text-inverse: #0d0d0d;
  --text-accent: #3ddc84;

  --border-default: #2a2a2a;
  --border-subtle: #1f1f1f;
  --border-strong: #3a3a3a;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;

  --container-max: 1120px;
  --container-narrow: 780px;
  --section-pad: 80px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body { min-height: 100vh; overflow-x: hidden; }

a { color: var(--text-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-primary); }

img, svg { display: block; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; color: var(--text-primary); }

[x-cloak] { display: none !important; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Navigation ───────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header.nav-open {
  background: var(--surface-0) !important;
  backdrop-filter: none !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-accent);
  text-decoration: none;
}

.brand-logo {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  color: var(--text-primary);
}

.brand-divider {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  margin: 0 2px;
}

.brand-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  letter-spacing: 0.2px;
}
.nav-link:hover { color: var(--text-primary); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-secondary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: var(--accent-muted);
  color: var(--text-inverse);
}

.btn-secondary {
  background: var(--surface-3);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-4);
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--surface-3);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 14px;
  border-radius: var(--radius-lg);
}

/* ── Hero (Help variant) ──────────────────────────────── */
.help-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.help-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.help-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
}

.help-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
}

/* ── Search Bar ───────────────────────────────────────── */
.search-bar {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.search-bar input::placeholder {
  color: var(--text-tertiary);
}
.search-bar input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--text-tertiary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ── Search Dropdown ──────────────────────────────────── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  max-height: 420px;
  overflow-y: auto;
  z-index: 50;
}

.search-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover,
.search-result.selected {
  background: var(--surface-3);
  color: inherit;
}

.search-result-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-accent);
  font-family: var(--font-mono);
}

.search-result-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.search-result-snippet {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Section ───────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
  background: var(--surface-0);
}
.section-dark {
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-accent);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  font-size: 15px;
}

/* ── Category Cards (Home) ─────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition-base), background var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: block;
}
.category-card:hover {
  border-color: var(--accent-border);
  background: var(--surface-3);
  color: inherit;
}

.category-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.category-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.category-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.category-count {
  display: inline-block;
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-top: 12px;
}

/* ── Article List ──────────────────────────────────────── */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color var(--transition-base), background var(--transition-base);
}
.article-item:hover {
  border-color: var(--accent-border);
  background: var(--surface-3);
  color: var(--text-primary);
}

.article-item .article-icon {
  width: 18px;
  height: 18px;
  stroke: var(--text-tertiary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.article-item .article-title {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.article-item .article-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ── Breadcrumbs ───────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  padding-top: 100px;
  margin-bottom: 28px;
}
.breadcrumb a {
  color: var(--text-tertiary);
}
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb .sep {
  color: var(--border-strong);
  user-select: none;
}

/* ── KB Sidebar Layout ─────────────────────────────────── */
.kb-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 32px 0 var(--section-pad);
}
.kb-layout > :last-child {
  min-width: 0;
}

.kb-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.kb-sidebar h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.kb-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kb-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.kb-nav a:hover { color: var(--text-primary); background: var(--surface-2); }
.kb-nav a.active {
  color: var(--text-accent);
  background: var(--accent-subtle);
  font-weight: 600;
}

/* ── Article Content ───────────────────────────────────── */
.article-content {
  padding-bottom: var(--section-pad);
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
}
.article-content img {
  max-width: 100%;
  height: auto;
}
.article-content table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

.article-content h1 {
  font-size: 28px;
  margin-bottom: 8px;
}
.article-content .article-updated {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: 32px;
}
.article-content h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.article-content h3 {
  font-size: 16px;
  margin-top: 28px;
  margin-bottom: 10px;
}
.article-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.article-content ul, .article-content ol {
  margin: 0 0 16px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.article-content li { margin-bottom: 6px; }

.article-content code {
  background: var(--surface-3);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-primary);
}
.article-content pre {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.article-content pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.7;
}

.article-content .callout {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
}
.article-content .callout-info {
  background: rgba(74, 158, 222, 0.08);
  border: 1px solid rgba(74, 158, 222, 0.2);
  color: var(--status-info);
}
.article-content .callout-warn {
  background: rgba(230, 168, 23, 0.08);
  border: 1px solid rgba(230, 168, 23, 0.2);
  color: var(--status-warn);
}
.article-content .callout-ok {
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--text-accent);
}

/* ── Contact / Support Form ────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 20px;
}

.contact-info h3 {
  font-size: 18px;
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  /* margin-bottom: 28px; */
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}
.contact-channel .ch-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-channel .ch-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-channel h4 {
  font-size: 14px;
  margin-bottom: 2px;
}
.contact-channel p {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.contact-form h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.channel-card {
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition-base);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' fill='none' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-select option {
  background: var(--surface-2);
  color: var(--text-primary);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Popular Articles ──────────────────────────────────── */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.popular-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-base), background var(--transition-base);
}
.popular-card:hover {
  border-color: var(--accent-border);
  background: var(--surface-3);
  color: inherit;
}
.popular-card .pop-num {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--surface-4);
  line-height: 1;
  flex-shrink: 0;
  min-width: 32px;
}
.popular-card h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
.popular-card p {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ── Status Indicator ──────────────────────────────────── */
.status-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  margin: 0 auto 40px;
  font-size: 13px;
  color: var(--text-accent);
  font-weight: 500;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── FAQ ───────────────────────────────────────────────── */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition-fast);
}
.faq-trigger:hover { color: var(--text-accent); }
.faq-trigger svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-tertiary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform var(--transition-base);
}
.faq-body {
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── CTA Section ───────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: var(--section-pad) 0;
}
.cta-section h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 15px;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-default);
  padding: 60px 0 32px;
  background: var(--surface-1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 4px 0;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-tertiary);
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}
.footer-social a:hover { color: var(--text-primary); }
.footer-social svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-social svg.icon-filled {
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
}

/* ── SLA Stats Grid ───────────────────────────────────── */
.sla-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── KB Section Titles & Search ───────────────────────── */
.kb-section-title {
  font-size: clamp(18px, 3vw, 22px);
  margin-bottom: 8px;
}

.kb-search-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-base);
}

/* ── Security Page ───────────────────────────────────── */
.security-page-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.security-intro {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 15px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .kb-layout { grid-template-columns: 1fr; gap: 24px; }
  .kb-sidebar { position: static; }
  .kb-sidebar h4 { display: none; }
  .kb-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .kb-nav::-webkit-scrollbar { display: none; }
  .kb-nav a {
    white-space: nowrap;
    padding: 6px 14px;
    border: 1px solid var(--border-default);
    border-radius: 20px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Breadcrumbs: wrap on tablet/mobile */
  .breadcrumb { flex-wrap: wrap; }

  /* Article items: allow title to wrap, stack meta below on narrow */
  .article-item { flex-wrap: wrap; }
  .article-item .article-meta { margin-left: auto; }

  /* Article content: constrain pre blocks */
  .article-content pre { max-width: calc(100vw - 48px); }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 48px;
  }

  .header-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface-0);
    flex-direction: column;
    padding: 32px 24px;
    gap: 0;
    z-index: 99;
  }
  .header-nav.open { display: flex; }
  .nav-link {
    font-size: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
  }
  .nav-cta {
    margin: 24px 0 0;
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  .nav-cta .btn { width: 100%; }
  .mobile-toggle { display: block; }

  .container { padding: 0 16px; }

  .category-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .help-hero { padding: 120px 0 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .sla-grid { grid-template-columns: 1fr; }

  /* Breadcrumbs: reduce top padding on mobile */
  .breadcrumb { padding-top: 80px; margin-bottom: 20px; font-size: 11px; }

  /* KB layout: tighten spacing */
  .kb-layout { gap: 16px; padding: 16px 0 var(--section-pad); }

  /* Article items: stack vertically on small screens */
  .article-item {
    padding: 12px 14px;
    gap: 10px;
  }
  .article-item .article-title { font-size: 13px; }

  /* Article content: scale headings down */
  .article-content h1 { font-size: 22px; }
  .article-content h2 { font-size: 17px; margin-top: 28px; }
  .article-content h3 { font-size: 14px; margin-top: 20px; }
  .article-content pre {
    padding: 12px 14px;
    font-size: 12px;
    max-width: calc(100vw - 32px);
  }
  .article-content pre code { font-size: 12px; }

  /* FAQ: full width on mobile */
  .faq-list { max-width: none; }
  .faq-trigger { padding: 14px 16px; font-size: 13px; }
  .faq-body { padding: 0 16px 14px; font-size: 12px; }

  /* Section header: scale */
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: clamp(20px, 3vw, 28px); }

  /* KB search: full width above nav on mobile */
  .kb-search-wrap { margin-bottom: 8px; }

  /* Security page: tighter spacing on mobile */
  .security-intro {
    max-width: none;
    margin-bottom: 32px;
    font-size: 14px;
    padding: 0 4px;
  }
  .security-page-title {
    font-size: clamp(20px, 4vw, 28px);
  }
}
