/* ==========================================================================
   Crane Website — Shared Styles
   Used by all content pages (audience, profiles, blog).
   index.html keeps its own inline styles; these are for new pages only.
   ========================================================================== */

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

/* ---- Prevent flash of untranslated text ---- */
body { opacity: 0; transition: opacity .25s ease; }
body.i18n-ready { opacity: 1; }

/* ---- CSS Variables (Light) ---- */
:root {
  --blue-500: #3B82F6;
  --blue-400: #2563EB;
  --blue-300: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-900: #1E3A8A;
  --bg: #e0edff;
  --bg-soft: #eaf2ff;
  --surface: #ffffff;
  --surface-dim: rgba(255,255,255,0.6);
  --navy: #0f172a;
  --navy-light: #f0f5ff;
  --navy-lighter: #dbeafe;
  --slate-300: #334155;
  --slate-400: #475569;
  --slate-500: #64748b;
  --amber-400: #d97706;
  --green-400: #16a34a;
  --red-400: #dc2626;
  --white: #FFFFFF;
  --text: #0f172a;
  --text-sec: #334155;
  --border: rgba(59,130,246,0.12);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- Utility ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.text-blue { color: var(--blue-400); }
.text-slate { color: var(--slate-400); }
.text-sm { font-size: 0.875rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* ---- Nav ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(224, 237, 255, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
nav .inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
nav .brand { display: flex; align-items: center; text-decoration: none; }
nav .brand img { height: 56px; width: auto; }
nav .links { display: flex; gap: 20px; align-items: center; margin: 0 auto; }
nav .links a {
  color: var(--slate-300); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; transition: color 0.2s; white-space: nowrap;
}
nav .links a:hover { color: var(--blue-400); }
nav.scrolled {
  background: rgba(224, 237, 255, 0.92);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* ---- Nav actions ---- */
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .menu-toggle { display: none; }
/* Mobile menu controls — hidden on desktop */
.mobile-menu-controls { display: none; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-600); color: #fff;
  padding: 10px 22px; border-radius: 10px; font-weight: 600;
  font-size: 0.9rem; text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: var(--blue-500); transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--blue-600);
  padding: 10px 22px; border-radius: 10px; font-weight: 600;
  font-size: 0.9rem; text-decoration: none; cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(59, 130, 246, 0.06); border-color: var(--blue-500); }

/* ---- Footer ---- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
footer .inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
footer .copy { font-size: 0.85rem; color: var(--text-sec); font-weight: 500; white-space: nowrap; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer .links a { font-size: 0.85rem; color: var(--text-sec); text-decoration: none; font-weight: 500; }
footer .links a:hover { color: var(--blue-400); }

/* ---- Theme toggle ---- */
.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 8px; cursor: pointer; color: var(--slate-400);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--blue-400); border-color: var(--blue-400); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---- Theme switcher pills (Day / Dusk / Night, shared with homepage) ---- */
.theme-pills {
  display: inline-flex; gap: 2px;
  background: rgba(0,0,0,0.08);
  border-radius: 8px; padding: 2px;
}
[data-theme="dark"] .theme-pills { background: rgba(255,255,255,0.08); }
[data-theme="dusk"] .theme-pills { background: rgba(253,235,212,0.1); }
.theme-pill {
  background: none; border: none; cursor: pointer;
  padding: 4px 12px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600; font-family: inherit;
  color: var(--slate-400);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.theme-pill:hover { color: var(--text); }
.theme-pill.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* ---- Language switcher ---- */
.lang-switcher { position: relative; }
.lang-toggle {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 10px; cursor: pointer; color: var(--slate-400);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 500; font-family: inherit;
  transition: color 0.2s, border-color 0.2s; white-space: nowrap;
}
.lang-toggle:hover { color: var(--blue-400); border-color: var(--blue-400); }
.lang-toggle .icon-globe { width: 16px; height: 16px; flex-shrink: 0; }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px 0; min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 200;
  max-height: 360px; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(100,116,139,0.25) transparent;
}
.lang-dropdown::-webkit-scrollbar { width: 6px; }
.lang-dropdown::-webkit-scrollbar-track { background: transparent; margin: 6px 0; }
.lang-dropdown::-webkit-scrollbar-thumb {
  background: rgba(100,116,139,0.2);
  border-radius: 99px;
}
.lang-dropdown::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,0.35); }
.lang-dropdown::-webkit-scrollbar-button { display: none; height: 0; }
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; padding: 7px 14px;
  background: none; border: none; cursor: pointer;
  font-size: 0.85rem; font-family: inherit; color: var(--text);
  transition: background 0.15s; white-space: nowrap;
  border-radius: 0;
}
.lang-option:hover { background: rgba(59,130,246,0.08); }
.lang-option.active { color: var(--blue-400); font-weight: 600; background: rgba(59,130,246,0.06); }
.lang-divider { height: 1px; background: var(--border); margin: 4px 12px; }

/* ---- Hamburger ---- */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Content Page Styles (audience, profiles, blog)
   ========================================================================== */

/* ---- Page hero (smaller than homepage) ---- */
.page-hero {
  padding: 100px 0 48px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.page-hero h1 {
  font-size: 2.6rem; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em;
}
.page-hero h1 .highlight {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero .subtitle {
  margin-top: 16px; font-size: 1.1rem; color: var(--slate-300);
  line-height: 1.7; max-width: 780px;
}
.page-hero .cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Hero quiz CTA (dominant, full-width) ---- */
.btn-quiz-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,99,235,0.35), 0 0 0 0 rgba(124,58,237,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: quiz-pulse 2.5s ease-in-out infinite;
}
.btn-quiz-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(37,99,235,0.45), 0 0 0 0 rgba(124,58,237,0.4);
}
@keyframes quiz-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,99,235,0.35), 0 0 0 0 rgba(124,58,237,0.3); }
  50% { box-shadow: 0 4px 24px rgba(37,99,235,0.35), 0 0 0 8px rgba(124,58,237,0); }
}
.hero-quiz-sub {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--slate-400);
  letter-spacing: 0.01em;
}
@media (max-width: 600px) {
  .btn-quiz-hero { font-size: 1rem; padding: 14px 24px; width: 100%; }
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 80px 0 0;
  font-size: 0.85rem; color: var(--slate-500);
}
.breadcrumb a { color: var(--blue-400); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }

/* ---- Content sections ---- */
.content-section { padding: 60px 0; }
.content-section.alt { background: var(--bg-soft); }
.content-section h2 {
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.content-section h3 {
  font-size: 1.2rem; font-weight: 700; margin: 24px 0 12px;
}
.content-section p {
  font-size: 0.95rem; color: var(--slate-300); line-height: 1.8;
  margin-bottom: 16px;
}
.content-section ul, .content-section ol {
  margin: 0 0 16px 24px; color: var(--slate-300); font-size: 0.95rem; line-height: 1.8;
}
.content-section li { margin-bottom: 8px; }
.content-section blockquote {
  border-left: 3px solid var(--blue-500); padding: 12px 20px;
  margin: 20px 0; background: rgba(59,130,246,0.04); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--slate-300);
}
.content-section .citation {
  font-size: 0.8rem; color: var(--slate-500); margin-top: 4px;
}

/* ---- Stat cards (audience pages) ---- */
.stat-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin: 32px 0;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; text-align: center;
}
.stat-card .number {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-card .label { margin-top: 6px; font-size: 0.85rem; color: var(--slate-400); }
.stat-card .source { margin-top: 4px; font-size: 0.7rem; color: var(--slate-500); }

/* ---- Profile cards grid (hub page) ---- */
.profile-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; margin-top: 32px;
}
.profile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.profile-card:hover {
  border-color: rgba(59,130,246,0.3); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.1);
}
.profile-card .badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(59,130,246,0.1); color: var(--blue-400);
}
.profile-card .badge.pro {
  background: rgba(168,85,247,0.1); color: #a855f7;
}
.profile-card h3 { margin-top: 12px; font-size: 1.1rem; font-weight: 700; }
.profile-card .meta {
  margin-top: 4px; font-size: 0.85rem; color: var(--slate-400);
}
.profile-card p {
  margin-top: 10px; font-size: 0.88rem; color: var(--slate-400); line-height: 1.6;
}

/* ---- Activity sequence visualization ---- */
.activity-sequence {
  display: flex; gap: 0; margin: 24px 0;
  border-radius: 12px; overflow: hidden; height: 48px;
}
.activity-block {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600; color: #fff;
  white-space: nowrap; padding: 0 12px;
}
.activity-block.sit { background: #3b82f6; }
.activity-block.stand { background: #f59e0b; }
.activity-block.walk { background: #10b981; }
.activity-block.stretch { background: #8b5cf6; }
.activity-block.exercise { background: #ef4444; }

/* ---- Blog listing ---- */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px; margin-top: 32px;
}
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.blog-card:hover {
  border-color: rgba(59,130,246,0.3); transform: translateY(-2px);
}
.blog-card .date { font-size: 0.78rem; color: var(--slate-500); }
.blog-card h3 { margin-top: 8px; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.blog-card p { margin-top: 8px; font-size: 0.88rem; color: var(--slate-400); line-height: 1.6; }
.blog-card .read-more {
  margin-top: 12px; font-size: 0.85rem; color: var(--blue-400); font-weight: 600;
}

/* ---- Article (blog post) ---- */
.article-header { padding: 100px 0 32px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.article-header h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.article-meta { margin-top: 12px; font-size: 0.85rem; color: var(--slate-500); display: flex; gap: 16px; }
.article-body { padding: 40px 0 60px; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px; color: var(--text); }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 12px; color: var(--text); }
.article-body p { font-size: 1rem; color: var(--slate-300); line-height: 1.85; margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; color: var(--slate-300); line-height: 1.85; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 3px solid var(--blue-500); padding: 14px 22px;
  margin: 24px 0; background: rgba(59,130,246,0.04); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--slate-300); font-size: 1rem;
}
.article-body .citation { font-size: 0.82rem; color: var(--slate-500); }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  border-radius: 16px; padding: 40px; text-align: center; margin: 40px 0;
  color: #fff;
}
.cta-banner h2 { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-banner p { font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.cta-banner .btn-primary {
  background: #fff; color: var(--blue-600);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.cta-banner .btn-primary:hover { background: #f0f5ff; }

/* ---- References section ---- */
.references { padding: 40px 0; border-top: 1px solid var(--border); }
.references h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.references ol { margin-left: 24px; }
.references li { font-size: 0.82rem; color: var(--slate-500); margin-bottom: 8px; line-height: 1.6; }

/* ---- Comparison tables ---- */
.compare-table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; font-size: 0.9rem;
}
.compare-table thead th {
  background: rgba(59,130,246,0.08); padding: 14px 16px;
  font-weight: 700; font-size: 0.85rem; text-align: left;
  color: var(--text); border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.compare-table thead th:first-child { text-align: left; }
.compare-table thead th.crane-col {
  background: rgba(59,130,246,0.15); color: var(--blue-600);
}
.compare-table tbody td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--slate-300); vertical-align: middle;
}
.compare-table tbody td:first-child {
  font-weight: 600; color: var(--text); white-space: nowrap;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(59,130,246,0.03); }
.compare-table .check { color: var(--green-400); font-weight: 700; }
.compare-table .cross { color: var(--red-400); font-weight: 700; }
.compare-table .muted { color: var(--slate-500); }

/* ---- Comparison hub grid ---- */
.compare-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; margin-top: 32px;
}
.compare-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.compare-card:hover {
  border-color: rgba(59,130,246,0.3); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.1);
}
.compare-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.compare-card p { font-size: 0.88rem; color: var(--slate-400); line-height: 1.6; margin: 0; }
.compare-card .arrow {
  display: inline-block; margin-top: 12px; font-size: 0.85rem;
  color: var(--blue-400); font-weight: 600;
}

/* ---- Verdict box ---- */
.verdict-box {
  background: rgba(59,130,246,0.05); border: 1px solid rgba(59,130,246,0.15);
  border-radius: 12px; padding: 24px; margin: 32px 0;
}
.verdict-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.verdict-box p { font-size: 0.9rem; color: var(--slate-300); line-height: 1.7; margin-bottom: 8px; }
.verdict-box p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Dark Mode
   ========================================================================== */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --surface: #1e293b;
  --surface-dim: rgba(30,41,59,0.6);
  --navy: #e2e8f0;
  --navy-light: #1e293b;
  --navy-lighter: #334155;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --text: #f1f5f9;
  --text-sec: #cbd5e1;
  --border: rgba(148,163,184,0.15);
  --green-400: #34d399;
  --red-400: #f87171;
}
[data-theme="dark"] nav { background: rgba(15, 23, 42, 0.85); }
[data-theme="dark"] nav.scrolled { background: rgba(15, 23, 42, 0.92); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
[data-theme="dark"] nav .links { background: rgba(15, 23, 42, 0.97); }
[data-theme="dark"] .lang-dropdown {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  scrollbar-color: rgba(148,163,184,0.2) transparent;
}
[data-theme="dark"] .lang-dropdown::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.15); }
[data-theme="dark"] .lang-dropdown::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.3); }
[data-theme="dark"] .menu-toggle span { background: var(--text); }
[data-theme="dark"] .stat-card { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
[data-theme="dark"] .profile-card:hover { box-shadow: 0 4px 16px rgba(59,130,246,0.2); }
[data-theme="dark"] .blog-card { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
[data-theme="dark"] .compare-card:hover { box-shadow: 0 4px 16px rgba(59,130,246,0.2); }
[data-theme="dark"] .compare-table { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
[data-theme="dark"] .compare-table thead th.crane-col { color: var(--blue-400); }

/* ==========================================================================
   Dusk Mode — warm amber/sunset palette, shared with homepage
   ========================================================================== */
[data-theme="dusk"] {
  --bg: #3a2820;
  --bg-soft: #46312a;
  --surface: #573e35;
  --surface-dim: rgba(87,62,53,0.6);
  --navy: #f2e0cc;
  --navy-light: #46312a;
  --navy-lighter: #6b4a3d;
  --slate-300: #e2c5a4;
  --slate-400: #c2a17e;
  --slate-500: #96775c;
  --text: #fdebd4;
  --text-sec: #e2c5a4;
  --border: rgba(232,180,130,0.2);
  --green-400: #34d399;
  --red-400: #f87171;
}
[data-theme="dusk"] .theme-toggle .icon-sun { display: block; }
[data-theme="dusk"] .theme-toggle .icon-moon { display: none; }
[data-theme="dusk"] nav { background: rgba(58, 40, 32, 0.85); }
[data-theme="dusk"] nav.scrolled { background: rgba(58, 40, 32, 0.92); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
[data-theme="dusk"] nav .links { background: rgba(58, 40, 32, 0.97); }
[data-theme="dusk"] .lang-dropdown {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  scrollbar-color: rgba(232,180,130,0.2) transparent;
}
[data-theme="dusk"] .lang-dropdown::-webkit-scrollbar-thumb { background: rgba(232,180,130,0.15); }
[data-theme="dusk"] .lang-dropdown::-webkit-scrollbar-thumb:hover { background: rgba(232,180,130,0.3); }
[data-theme="dusk"] .menu-toggle span { background: var(--text); }
[data-theme="dusk"] .stat-card { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
[data-theme="dusk"] .profile-card:hover { box-shadow: 0 4px 16px rgba(230,172,64,0.2); }
[data-theme="dusk"] .blog-card { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
[data-theme="dusk"] .compare-card:hover { box-shadow: 0 4px 16px rgba(230,172,64,0.2); }
[data-theme="dusk"] .compare-table { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
[data-theme="dusk"] .compare-table thead th.crane-col { color: var(--blue-400); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-actions .menu-toggle { display: flex; }
  .nav-actions .theme-toggle { display: none; }
  .nav-actions .theme-pills { display: none; }
  .nav-actions .lang-switcher { display: none; }
  nav .links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(224, 237, 255, 0.97);
    backdrop-filter: blur(16px) saturate(140%);
    flex-direction: column; align-items: stretch;
    padding: 12px 24px 20px; border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08); gap: 0;
  }
  nav .links.open { display: flex; }
  nav .links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  nav .links a:first-of-type { border-top: 1px solid var(--border); }
  nav .links a:last-of-type { border-bottom: none; }
  /* Theme + lang controls top-right inside hamburger menu */
  .mobile-menu-controls {
    display: flex; align-items: center; gap: 8px;
    justify-content: flex-end;
    padding: 0 0 8px;
  }
  .mobile-menu-controls .theme-toggle { display: flex; }
  .mobile-menu-controls .theme-pills { display: inline-flex; }
  .mobile-menu-controls .lang-switcher { display: block; position: relative; }
  .mobile-menu-controls .lang-dropdown {
    position: fixed;
    left: 16px; right: 16px;
    top: auto;
    width: auto; min-width: 0;
    max-height: 60vh;
    z-index: 300;
  }
  .page-hero h1 { font-size: 2rem; }
  .page-hero { padding: 84px 0 32px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.8rem; }
  .compare-table thead th, .compare-table tbody td { padding: 10px 10px; }
  .activity-sequence { height: 40px; }
  .activity-block { font-size: 0.65rem; padding: 0 8px; }
  footer .inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 640px) {
  .page-hero h1 { font-size: 1.7rem; }
  .stat-cards { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.7rem; }
  .content-section h2 { font-size: 1.4rem; }
  .profile-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 16px; }
  nav .inner { padding: 0 16px; }
  nav .links { padding: 12px 16px 20px; }
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero { padding: 76px 0 24px; }
  .cta-banner { padding: 28px 20px; }
  .cta-banner h2 { font-size: 1.3rem; }
  footer .links { flex-wrap: wrap; justify-content: center; gap: 12px; }
}
