/* ============================================================
   CRITICAL VECTOR — main.css
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg: #0a0e14;
  --surface: #111720;
  --surface2: #182030;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(0,212,170,0.3);
  --accent: #00d4aa;
  --accent2: #2563eb;
  --red: #e84c4c;
  --amber: #f59e0b;
  --text: #e8edf5;
  --text2: #8a9ab5;
  --text3: #4a5670;
  --tag-teal-bg: rgba(0,212,170,0.1);
  --tag-teal-text: #00d4aa;
  --tag-teal-border: rgba(0,212,170,0.2);
  --tag-blue-bg: rgba(37,99,235,0.12);
  --tag-blue-text: #60a5fa;
  --tag-blue-border: rgba(37,99,235,0.25);
  --font-sans: 'Syne', sans-serif;
  --font-serif: 'Source Serif 4', serif;
  --radius: 10px;
  --radius-sm: 6px;
}

[data-theme="light"] {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface2: #f0f2f5;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,174,136,0.35);
  --accent: #00a688;
  --accent2: #1d4ed8;
  --red: #c53030;
  --amber: #b45309;
  --text: #0f1923;
  --text2: #4a5670;
  --text3: #9aa3b5;
  --tag-teal-bg: rgba(0,166,136,0.08);
  --tag-teal-text: #007a63;
  --tag-teal-border: rgba(0,166,136,0.2);
  --tag-blue-bg: rgba(29,78,216,0.07);
  --tag-blue-text: #1d4ed8;
  --tag-blue-border: rgba(29,78,216,0.2);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.25s, color 0.25s;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.cv-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.cv-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cv-logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.cv-logo-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}
.cv-logo-name .accent { color: var(--accent); }

.cv-nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: 16px;
}
.cv-nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  transition: color 0.15s;
  white-space: nowrap;
}
.cv-nav-links a:hover,
.cv-nav-links a.active { color: var(--text); }

.cv-nav-right { margin-left: auto; }

.cv-mode-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: border-color 0.15s;
}
.cv-mode-toggle:hover { border-color: var(--border-hover); }
.mode-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.cv-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.cv-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: background 0.15s;
}
.cv-hamburger:hover span { background: var(--text); }

/* ── MOBILE MENU ── */
.cv-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.cv-mobile-menu.open { display: flex; }
.cv-mobile-menu a {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
}
.cv-mobile-menu a:last-child { border-bottom: none; }
.cv-mobile-menu a:hover { color: var(--text); background: var(--surface2); }

/* ── HERO ── */
.cv-hero {
  padding: 64px 28px 52px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cv-hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.06;
  pointer-events: none;
}
.cv-hero-inner { position: relative; z-index: 1; }

.cv-hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cv-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.cv-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 560px;
  margin-bottom: 20px;
}
.cv-hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.cv-hero-sub {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: var(--text2);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.cv-hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── TAGS ── */
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.tag-teal {
  background: var(--tag-teal-bg);
  color: var(--tag-teal-text);
  border: 1px solid var(--tag-teal-border);
}
.tag-blue {
  background: var(--tag-blue-bg);
  color: var(--tag-blue-text);
  border: 1px solid var(--tag-blue-border);
}
.tag-default {
  background: rgba(138,154,181,0.1);
  color: var(--text2);
  border: 1px solid rgba(138,154,181,0.15);
}

/* ── LAYOUT ── */
.cv-layout {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 48px;
  padding: 44px 28px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: start;
}

/* ── SECTION LABELS ── */
.cv-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cv-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── FEATURED CARD ── */
.cv-featured-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 0 24px;
  margin-bottom: 40px;
  transition: border-color 0.2s;
  overflow: hidden;
}
.cv-featured-card:hover { border-color: var(--border-hover); }

.cv-featured-header {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cv-featured-meta {
  font-size: 11px;
  color: var(--text3);
  margin-left: auto;
}

.cv-featured-card h2 {
  padding: 0 24px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
}
.cv-featured-card p {
  padding: 0 24px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text2);
  margin-bottom: 18px;
}

.cv-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.15s;
}
.cv-read-more::after { content: '→'; }
.cv-read-more:hover { gap: 10px; }

/* ── BADGES ── */
.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.badge-teal {
  background: rgba(0,212,170,0.12);
  color: var(--tag-teal-text);
  border: 1px solid rgba(0,212,170,0.25);
}
.badge-blue {
  background: rgba(37,99,235,0.1);
  color: var(--tag-blue-text);
  border: 1px solid rgba(37,99,235,0.2);
}

/* ── POST LIST ── */
.cv-post-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cv-post-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  color: inherit;
}
.cv-post-row:last-child { border-bottom: none; }
.cv-post-row:hover { background: var(--surface2); }

.cv-post-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cv-post-type.teal { color: var(--accent); }
.cv-post-type.blue { color: var(--tag-blue-text); }
.cv-post-type.red { color: #f87171; }
.cv-post-type.amber { color: #fbbf24; }
[data-theme="light"] .cv-post-type.red { color: var(--red); }
[data-theme="light"] .cv-post-type.amber { color: var(--amber); }

.cv-post-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
}
.cv-post-meta {
  font-size: 11px;
  color: var(--text3);
}
.cv-post-arrow {
  font-size: 18px;
  color: var(--text3);
  line-height: 1;
}

/* ── SIDEBAR ── */
.cv-sidebar { display: flex; flex-direction: column; gap: 20px; }

.cv-about-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.cv-about-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
}
.cv-about-body { padding: 18px 20px; }
.cv-about-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.cv-about-role {
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 10px;
}
.cv-about-bio {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text2);
  font-style: italic;
}

.cv-sidebar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
}
.cv-sidebar-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}

.cv-resource-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.15s;
  color: inherit;
}
.cv-resource-row:last-child { border-bottom: none; }
.cv-resource-row:hover { opacity: 0.75; }

.cv-resource-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.icon-app { background: rgba(37,99,235,0.12); }
.icon-html { background: rgba(0,212,170,0.1); }
.icon-pdf { background: rgba(232,76,76,0.1); }

.cv-resource-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.cv-resource-type {
  font-size: 11px;
  color: var(--text3);
  margin-top: 1px;
}
.cv-ext-icon {
  font-size: 12px;
  color: var(--text3);
  margin-left: auto;
  flex-shrink: 0;
}

/* ── FOOTER ── */
.cv-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface);
}
.cv-footer-left {
  font-size: 11px;
  color: var(--text3);
}
.cv-footer-right {
  display: flex;
  gap: 18px;
}
.cv-footer-right a {
  font-size: 11px;
  color: var(--text3);
  transition: color 0.15s;
}
.cv-footer-right a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .cv-nav-links { display: none; }
  .cv-nav-right { display: none; }
  .cv-hamburger { display: flex; }
  .cv-nav { gap: 0; }
  .cv-logo { flex: 1; }

  .cv-layout {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 32px;
  }

  .cv-hero { padding: 44px 20px 36px; }
  .cv-hero h1 { font-size: 36px; }
  .cv-sidebar { order: -1; }
}

@media (max-width: 480px) {
  .cv-hero h1 { font-size: 30px; }
  .cv-featured-card h2 { font-size: 17px; }
  .cv-nav { padding: 0 16px; }
  .cv-layout { padding: 24px 16px; }
  .cv-hero { padding: 36px 16px 28px; }
}
/* ============================================================
   ALIAS LAYER — maps unprefixed HTML classes to cv- styles
   Added to bridge HTML (unprefixed) and main.css (cv- prefix)
   ============================================================ */

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo svg { width: 30px; height: 30px; flex-shrink: 0; }
.nav-logo-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  font-family: var(--font-sans);
}
.nav-logo-name em { color: var(--accent); font-style: normal; }
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: 16px;
}
.nav-links a, .nav-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-link:hover { color: var(--text); }
.nav-link.continuum:hover { color: var(--blue, #60a5fa); }
.nav-link.workshop:hover  { color: var(--accent); }
.nav-link.locker:hover    { color: var(--amber); }
.nav-link.flightdeck:hover{ color: var(--red); }
.nav-link.stack:hover     { color: var(--purple, #a78bfa); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: background 0.15s;
}
.nav-hamburger:hover span { background: var(--text); }

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  z-index: 99;
}
.nav-links.open a, .nav-links.open .mode-toggle {
  padding: 10px 28px;
  border-bottom: 1px solid var(--border);
}

/* ── MODE TOGGLE ── */
.mode-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: border-color 0.15s;
  margin-left: auto;
}
.mode-toggle:hover { border-color: var(--border-hover); }
.mode-icon { font-size: 13px; }

/* ── FOOTER ── */
.footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-left { font-size: 11px; color: var(--text3); font-family: var(--font-sans); }
.footer-right { display: flex; gap: 18px; }
.footer-right a {
  font-size: 11px;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.15s;
  font-family: var(--font-sans);
}
.footer-right a:hover { color: var(--accent); }

/* ── HERO (index.html) ── */
.hero {
  padding: 64px 28px 52px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.06;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 560px;
  margin-bottom: 20px;
  color: var(--text);
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: var(--text2);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-role {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ── HTAGS ── */
.htag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.htag.prehospital { background: rgba(232,76,76,0.1);  color: #f87171; border: 1px solid rgba(232,76,76,0.2); }
.htag.em          { background: rgba(37,99,235,0.1);  color: #60a5fa; border: 1px solid rgba(37,99,235,0.2); }
.htag.cc          { background: rgba(167,139,250,0.1);color: #a78bfa; border: 1px solid rgba(167,139,250,0.2); }
.htag.anes        { background: rgba(0,212,170,0.1);  color: var(--accent); border: 1px solid rgba(0,212,170,0.2); }
[data-theme="light"] .htag.prehospital { color: #dc2626; background: rgba(220,38,38,0.08); }
[data-theme="light"] .htag.em          { color: #1d4ed8; background: rgba(29,78,216,0.08); }
[data-theme="light"] .htag.cc          { color: #7c3aed; background: rgba(124,58,237,0.08); }
[data-theme="light"] .htag.anes        { color: #00a688; background: rgba(0,166,136,0.08); }

/* ── MAIN GRID (index.html) ── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 48px;
  padding: 44px 28px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: start;
}
.content-col { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-label.continuum-label { color: #60a5fa; }
.section-label.workshop-label  { color: var(--accent); }
.section-label.locker-label    { color: var(--amber); }
.section-label.flightdeck-label{ color: var(--red); }
.section-label.stack-label     { color: #a78bfa; }
.section-label.about-label     { color: var(--teal); }

/* ── FEATURED CARD ── */
.featured-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 0 24px;
  margin-bottom: 40px;
  transition: border-color 0.2s;
  overflow: hidden;
}
.featured-card:hover { border-color: var(--border-hover); }
.feat-head {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.feat-meta { font-size: 11px; color: var(--text3); margin-left: auto; font-family: var(--font-sans); }
.feat-body h2 {
  padding: 0 24px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
}
.feat-body p {
  padding: 0 24px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text2);
  margin-bottom: 18px;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 24px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.15s;
}
.read-more:hover { gap: 10px; }

/* ── BADGE VARIANTS ── */
.badge.fresh { background: rgba(0,212,170,0.12); color: var(--accent); border: 1px solid rgba(0,212,170,0.25); }
.badge.cont  { background: rgba(37,99,235,0.1);  color: #60a5fa;       border: 1px solid rgba(37,99,235,0.2); }
.badge.pre   { background: rgba(232,76,76,0.1);  color: #f87171;       border: 1px solid rgba(232,76,76,0.2); }
.badge.cc-badge { background: rgba(167,139,250,0.1); color: #a78bfa;   border: 1px solid rgba(167,139,250,0.2); }
.badge.amb   { background: rgba(245,158,11,0.1); color: var(--amber);  border: 1px solid rgba(245,158,11,0.2); }
[data-theme="light"] .badge.fresh { color: #00a688; }
[data-theme="light"] .badge.pre   { color: #dc2626; }
[data-theme="light"] .badge.cont  { color: #1d4ed8; }
[data-theme="light"] .badge.cc-badge { color: #7c3aed; }

/* ── POST LIST & ROWS ── */
.post-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.post-row:last-child { border-bottom: none; }
.post-row:hover { background: var(--surface2); }
.post-info { min-width: 0; }
.post-type {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.post-type.prehospital-type { color: #f87171; }
.post-type.continuum-type   { color: #60a5fa; }
.post-type.cc-type          { color: #a78bfa; }
.post-type.locker-type      { color: var(--amber); }
.post-type.flightdeck-type  { color: #f87171; }
.post-type.workshop-type    { color: var(--accent); }
[data-theme="light"] .post-type.prehospital-type { color: #dc2626; }
[data-theme="light"] .post-type.continuum-type   { color: #1d4ed8; }
[data-theme="light"] .post-type.cc-type          { color: #7c3aed; }
[data-theme="light"] .post-type.flightdeck-type  { color: #dc2626; }
.post-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
}
.post-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text3);
}
.post-arrow { font-size: 18px; color: var(--text3); line-height: 1; }

/* ── SECTION HERO (continuum, locker, etc.) ── */
.section-hero {
  padding: 48px 28px 40px;
  border-bottom: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}
.section-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-hero p {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: var(--text2);
  line-height: 1.75;
  max-width: 600px;
}

/* ── SECTION GRID ── */
.section-grid {
  max-width: 800px;
  margin: 0 auto;
  padding: 36px 28px 64px;
}

/* ── SIDEBAR CARDS (index.html) ── */
.about-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.about-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
}
.about-body { padding: 18px 20px; }
.about-role {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.about-bio a { color: var(--teal); text-decoration: none; font-style: normal; }
.about-bio {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text2);
  font-style: italic;
}

.sections-card, .sidebar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.sidebar-title {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-title.workshop-label { color: var(--accent); }
.sidebar-title.stack-label    { color: #a78bfa; }

.sec-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.sec-row:last-child { border-bottom: none; }
.sec-row:hover { background: var(--surface2); }
.sec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sec-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.sec-name.continuum-name  { color: #60a5fa; }
.sec-name.workshop-name   { color: var(--accent); }
.sec-name.locker-name     { color: var(--amber); }
.sec-name.flightdeck-name { color: #f87171; }
.sec-name.stack-name      { color: #a78bfa; }
.sec-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text3);
  margin-top: 1px;
}

.rrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.rrow:last-child { border-bottom: none; }
.rrow:hover { background: var(--surface2); }
.rico {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.teal-ico   { background: rgba(0,212,170,0.1); }
.red-ico    { background: rgba(232,76,76,0.1); }
.blue-ico   { background: rgba(37,99,235,0.1); }
.amber-ico  { background: rgba(245,158,11,0.1); }
.purple-ico { background: rgba(167,139,250,0.1); }
.rname {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.rsub {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text3);
  margin-top: 1px;
}

/* ── ABOUT PAGE ── */
.about-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 36px 28px 80px;
}
.about-page h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 40px 0 14px;
}
.about-page h2:first-child { margin-top: 0; }
.about-colophon { color: var(--text3) !important; font-size: 13px !important; margin-top: 48px; }
.about-page h1 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.about-page p {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text2);
  margin-bottom: 20px;
}
.about-page blockquote {
  border-left: 3px solid var(--accent);
  margin: 28px 0;
  padding: 8px 0 8px 20px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--text2);
}

/* ── MISSING VARS ── */
:root {
  --blue:   #60a5fa;
  --purple: #a78bfa;
  --teal:   var(--accent);
  --red-tag: var(--red);
}
[data-theme="light"] {
  --blue:   #1d4ed8;
  --purple: #7c3aed;
  --teal:   var(--accent);
  --red-tag: var(--red);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }
  .mode-toggle { display: none; }
  .main-grid { grid-template-columns: 1fr; padding: 24px 16px; gap: 24px; }
  .sidebar { order: -1; }
  .hero { padding: 40px 16px 32px; }
  .section-hero { padding: 32px 16px 28px; }
  .section-grid { padding: 24px 16px 48px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .feat-body h2 { font-size: 17px; }
  .nav { padding: 0 16px; }
}
