/*
Theme Name: AI Vanguard
Description: Dark mode, tech-forward aesthetic with structured data grids.
Version: 3.2.0
Requires at least: 6.4
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;700&display=swap');

/* ─── Dark Mode (Default) ─────────────────────────────────────── */
:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --bg-3: #171717;
  --surface: rgba(10, 10, 10, 0.4);
  
  --border: #262626;
  --border-strong: #404040;
  --border-neon: rgba(16, 185, 129, 0.5);

  --accent: #10b981;
  --accent-hover: #059669;
  --accent-glow: 0 0 15px rgba(16, 185, 129, 0.3);
  --data-color: #10b981;

  --text: #ffffff;
  --text-2: #d4d4d8;
  --text-3: #a1a1aa;
  --text-inverse: #000000;

  --header-bg: rgba(0, 0, 0, 0.85);
  --topbar-bg: #0a0a0a;
  --footer-bg: #0a0a0a;
  --card-hover-bg: #0a0a0a;
  --subscribe-shadow: 0 10px 30px rgba(0,0,0,0.2);
  --body-gradient-1: rgba(255, 255, 255, 0.03);
  --body-gradient-2: rgba(16, 185, 129, 0.04);

  --toggle-bg: #1a1a1a;
  --toggle-border: #333;
  --toggle-knob: #fff;
  --toggle-icon: '☀️';

  --container: 1240px;
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  color-scheme: dark;
}

/* ─── Light Mode ──────────────────────────────────────────────── */
[data-theme="light"] {
  --bg: #fafaf8;
  --bg-2: #f1f0eb;
  --bg-3: #e8e6df;
  --surface: rgba(241, 240, 235, 0.7);

  --border: #dddbd3;
  --border-strong: #b8b5ac;
  --border-neon: rgba(5, 150, 105, 0.4);

  --accent: #059669;
  --accent-hover: #047857;
  --accent-glow: 0 0 15px rgba(5, 150, 105, 0.2);
  --data-color: #059669;

  --text: #111110;
  --text-2: #3a3935;
  --text-3: #78766e;
  --text-inverse: #ffffff;

  --header-bg: rgba(250, 250, 248, 0.92);
  --topbar-bg: #f1f0eb;
  --footer-bg: #f1f0eb;
  --card-hover-bg: #eeecea;
  --subscribe-shadow: 0 10px 30px rgba(0,0,0,0.06);
  --body-gradient-1: rgba(0, 0, 0, 0.015);
  --body-gradient-2: rgba(5, 150, 105, 0.03);

  --toggle-bg: #e8e6df;
  --toggle-border: #c8c5bc;
  --toggle-knob: #111110;
  --toggle-icon: '🌙';

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

*, *::before, *::after { transition: background-color 0.25s ease, border-color 0.25s ease, color 0.15s ease; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, var(--body-gradient-1), transparent 25%),
    radial-gradient(circle at 85% 30%, var(--body-gradient-2), transparent 25%);
}

a { text-decoration: none; color: inherit; transition: all 0.2s; }
img, svg { display: block; max-width: 100%; height: auto; border-radius: 4px; }
ul { list-style: none; }

.container {
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 2rem);
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.meta-muted {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ─── UI ─────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 4px 15px rgba(248, 250, 252, 0.1);
}
.button-primary:hover { background: var(--text-2); box-shadow: 0 4px 20px rgba(248, 250, 252, 0.2); transform: translateY(-1px); }

.button-ghost {
  border-bottom: 1px solid var(--accent);
  padding: 0.25rem 0;
  color: var(--text);
  border-radius: 0;
}
.button-ghost:hover {
  text-shadow: var(--accent-glow);
  border-color: var(--text);
}

/* ─── Topbar ─────────────────────────────────────────────────── */
.site-topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  padding-block: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ─── Theme Toggle ────────────────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle-knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
[data-theme="light"] .theme-toggle-knob {
  transform: translateX(2px);
}
.theme-toggle-label {
  display: none;
}
@media (min-width: 640px) {
  .theme-toggle-label { display: inline; }
}

.topbar-row { display: flex; justify-content: space-between; align-items: center; }

.topbar-ticker {
  display: flex; gap: 1rem; color: var(--text-2); text-transform: uppercase;
}
.topbar-ticker span:nth-child(even) { color: var(--accent); }

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

.primary-nav-wrapper {
  border-bottom: none;
}

.topbar-muted {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text);
  font-family: var(--font-display);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-name::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: var(--accent-glow);
}

.primary-nav ul { display: flex; gap: 2rem; align-items: center; }
.primary-nav a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
}
.primary-nav a:hover { color: var(--accent); }

/* ─── Layout ─────────────────────────────────────────────────── */
.news-hero {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 4rem;
  align-items: stretch;
}

.spotlight-card h1 { margin-bottom: 1rem; }
.spotlight-card h1 a:hover { color: var(--accent); }

.spotlight-excerpt { font-size: 1.2rem; color: var(--text-3); }

.spotlight-meta {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  display: flex; gap: 0.75rem; align-items: center;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  padding-left: 4rem;
}

.hero-aside-card {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.hero-aside-card:first-child { padding-top: 0; }
.hero-aside-card:last-child { border-bottom: none; }

.hero-aside-card h3 a:hover { color: var(--accent); }

/* ─── Market Bar ────────────────────────────────────────────── */
.market-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.market-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.market-item {
  display: flex; flex-direction: column; gap: 0.25rem;
}

.market-label {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); text-transform: uppercase;
}

.market-number {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--data-color); text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* ─── Grid ──────────────────────────────────────────────────── */
.section-block { padding: 5rem 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s;
  display: flex; flex-direction: column;
}

.post-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: var(--card-hover-bg);
}

.post-card-media { background: var(--bg-3); border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.post-card-media-label { color: var(--accent); font-weight: 700; }
.post-card-footer { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: auto; }
.badge { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.6rem; border-radius: 4px; background: rgba(16, 185, 129, 0.15); color: var(--accent); border: 1px solid rgba(16, 185, 129, 0.3); margin-bottom: 0.75rem; }
.badge-muted { background: var(--bg-3); color: var(--text-3); border-color: var(--border); }
.post-card-title { margin-bottom: 1rem; font-size: 1.3rem; }
.post-card-excerpt { font-size: 0.95rem; line-height: 1.6; color: var(--text-3); flex: 1; margin-bottom: 1.5rem;}

/* ─── Single ─────────────────────────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 4rem;
  padding-top: 3rem;
}

.single-header { margin-bottom: 3rem; }
.single-header h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1.5rem; color: var(--text);}
.single-meta { font-family: var(--font-mono); color: var(--text-3); font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.25rem;}

.entry-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-2);
  min-width: 0;
  overflow-wrap: anywhere;
}
.entry-content h2 { margin: 3.5rem 0 1.5rem; color: var(--text); }
.entry-content h3 { margin: 2rem 0 1rem; color: var(--text);}

.entry-content > * { max-width: 100%; }

.entry-content img,
.entry-content svg,
.entry-content iframe,
.entry-content canvas,
.entry-content video {
  max-width: 100%;
  height: auto;
}

.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 3rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
}

.entry-content th {
  background: var(--bg-3);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.entry-content td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.entry-content tr:last-child td { border-bottom: none; }
.entry-content strong { color: var(--text); }

.entry-content ul, .entry-content ol {
  margin: 1.5rem 0 1.5rem 2rem;
}

.entry-content li { margin-bottom: 0.5rem; padding-left: 0.5rem; }

.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--text); }

.entry-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text);
}
.entry-content blockquote p { margin-bottom: 0; color: var(--text); }
.entry-content blockquote cite { display: block; margin-top: 0.5rem; font-size: 0.82rem; font-style: normal; color: var(--text-3); font-family: var(--font-mono); }

.entry-content pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.75rem 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text);
}

.entry-content code {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.15em 0.45em;
  font-family: var(--font-mono);
  font-size: 0.87em;
  color: var(--accent);
}

.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.post-card-body { display: flex; flex-direction: column; flex: 1; }

.sidebar-stack { display: flex; flex-direction: column; gap: 3rem; }
.sidebar-widget { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.widget-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem; color: var(--text); }

/* Key Takeaways box used in article content */
.key-takeaways-box {
  background: var(--bg-2);
  border: 1px solid var(--border-neon);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.key-takeaways-box h2,
.key-takeaways-box h3 { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-family: var(--font-mono); margin-bottom: 1rem; }
.key-takeaways-box ul { list-style: none; padding: 0; margin: 0; }
.key-takeaways-box li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--text-2); padding-left: 1.25rem; position: relative; }
.key-takeaways-box li:last-child { border-bottom: none; }
.key-takeaways-box li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.sidebar-post { display: flex; gap: 1rem; margin-bottom: 1.5rem;}
.sidebar-post-number { font-family: var(--font-mono); color: var(--accent); font-size: 1.2rem; font-weight: 700; opacity: 0.8;}
.sidebar-post-title { font-size: 1.05rem; }

.subscribe-widget {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--subscribe-shadow);
}

.subscribe-widget input {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.8rem;
  color: var(--text);
  border-radius: 4px;
  width: 100%;
  margin-bottom: 1rem;
}
.subscribe-widget input:focus { border-color: var(--accent); outline: none; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
  background: var(--footer-bg);
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-desc { font-size: 0.9rem; color: var(--text-3); line-height: 1.6; max-width: 28ch; }
.footer-col h4 { font-size: 0.9rem; text-transform: uppercase; color: var(--text); margin-bottom: 1.5rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-3); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }

.footer-copy-row { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-First Overhaul
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hamburger Button (hidden on desktop) ──────────────────── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── ≤ 1024 px — Tablet ────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 2rem; }
  .content-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .content-grid .sidebar-stack { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ─── ≤ 768 px — Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hamburger visible */
  .mobile-menu-btn { display: flex; }

  /* Nav hidden by default, shown when .open */
  .primary-nav-wrapper {
    border-top: 1px solid var(--border);
  }
  .primary-nav { display: none; }
  .primary-nav.open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.35rem 0 0.75rem;
  }
  .primary-nav li {
    border-bottom: 1px solid var(--border);
  }
  .primary-nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }

  /* Header layout */
  .site-header {
    width: 100%;
  }
  .header-row {
    padding-block: 0;
    gap: 0;
  }
  .header-row > .primary-nav {
    flex-basis: 100%;
  }
  .header-masthead {
    padding-block: 0.55rem;
    min-height: 56px;
  }
  .brand-name { font-size: 1.5rem; }
  .brand-name::before { width: 12px; height: 12px; }
  .mobile-menu-btn {
    padding: 7px 9px;
    min-width: 42px;
    min-height: 42px;
  }

  /* Topbar */
  .site-topbar { padding-block: 0.35rem; }
  .topbar-ticker { display: none; }
  .topbar-row { justify-content: flex-end; }
  .single .site-topbar { display: none; }
  .single .site-header { top: 0; }
  .single .header-masthead { min-height: 52px; padding-block: 0.45rem; }
  .single .brand-name { font-size: 1.35rem; }

  /* Market bar */
  .market-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .market-number { font-size: 1.4rem; }
  .market-bar { padding: 1rem 0; }

  /* Post grid & cards */
  .post-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .post-card { padding: 1.25rem; }
  .post-card-title { font-size: 1.15rem; }

  /* Hero */
  .news-hero { padding: 2rem 0; }
  .spotlight-excerpt { font-size: 1rem; }
  .spotlight-meta { flex-wrap: wrap; font-size: 0.75rem; }

  /* Sections */
  .section-block { padding: 3rem 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-bottom: 2rem; }

  /* Single article */
  .single-header h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: 1rem; }
  .single-meta { font-size: 0.75rem; }
  .entry-content { font-size: 1.02rem; line-height: 1.75; }
  .entry-content h2 { font-size: 1.35rem; margin: 2.5rem 0 1rem; }
  .entry-content h3 { font-size: 1.1rem; }
  .entry-content ul, .entry-content ol { margin-left: 1.25rem; }
  .entry-content > div,
  .entry-content > section,
  .entry-content > article {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Tables → horizontal scroll */
  .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    margin: 2rem -1rem;
    width: calc(100% + 2rem);
    border-radius: 0;
  }
  .entry-content thead { display: table-header-group; }
  .entry-content tbody { display: table-row-group; }
  .entry-content tr { display: table-row; }
  .entry-content th, .entry-content td {
    display: table-cell;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    white-space: normal;
    min-width: 100px;
  }
  .vcfo-compare-table th:first-child { width: auto; min-width: 120px; }

  /* Sidebar */
  .sidebar-stack { gap: 2rem; }
  .sidebar-widget { padding: 1.25rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer { padding: 3rem 0 1.5rem; margin-top: 3rem; }
  .footer-copy-row { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* VCFO article components */
  .vcfo-toc > ul { flex-direction: column; gap: 6px; }
  .vcfo-grid { grid-template-columns: 1fr; gap: 14px; }
  .vcfo-card { padding: 18px; }
  .vcfo-tldr { padding: 18px 16px; margin: 20px 0; }
  .vcfo-tldr-grid { grid-template-columns: 1fr; }
  .vcfo-author-box { flex-direction: column; align-items: flex-start; }
  .roi-result-grid { grid-template-columns: 1fr 1fr; }
  .vcfo-pros-cons { grid-template-columns: 1fr; }
  .vcfo-pull-quote { padding: 12px 16px; margin: 20px 0; }
  .vcfo-pull-quote p { font-size: 1rem; }
  .key-takeaways-box { padding: 1.25rem 1.25rem; }

  /* ── Override INLINE styles in article content for mobile ── */
  /* Force inline flex/grid containers to stack */
  .entry-content [style*="display:flex"],
  .entry-content [style*="display: flex"] {
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .entry-content [style*="grid-template-columns:1fr 1fr"],
  .entry-content [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .entry-content [style*="grid-template-columns:repeat(4"],
  .entry-content [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
  .entry-content [style*="grid-template-columns:repeat(3"],
  .entry-content [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  /* Force min-width items to shrink */
  .entry-content [style*="min-width:110px"],
  .entry-content [style*="min-width: 110px"] {
    min-width: 80px !important;
  }
  /* Fix stat numbers on mobile */
  .entry-content [style*="font-size:1.6rem"],
  .entry-content [style*="font-size: 1.6rem"] {
    font-size: 1.25rem !important;
  }
  /* Fix inline padding on mobile */
  .entry-content [style*="padding:20px 25px"],
  .entry-content [style*="padding: 20px 25px"] {
    padding: 14px 16px !important;
  }
  .entry-content [style*="padding:25px"],
  .entry-content [style*="padding: 25px"] {
    padding: 16px !important;
  }
  .entry-content [style*="padding:30px"],
  .entry-content [style*="padding: 30px"] {
    padding: 18px !important;
  }
  .entry-content [style*="margin-left"],
  .entry-content [style*="margin-right"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .entry-content [style*="width:100%"],
  .entry-content [style*="width: 100%"],
  .entry-content [style*="width:calc("],
  .entry-content [style*="width: calc("] {
    max-width: 100% !important;
  }
  .entry-content [style*="position:sticky"],
  .entry-content [style*="position: sticky"],
  .entry-content [style*="position:fixed"],
  .entry-content [style*="position: fixed"] {
    position: static !important;
    top: auto !important;
  }
  /* Touch-friendly inputs and buttons */
  .entry-content input,
  .entry-content select {
    font-size: 16px !important; /* prevents iOS zoom */
    min-height: 44px;
  }
  .entry-content button {
    min-height: 48px;
    font-size: 14px !important;
  }
  /* 5-layer architecture grid */
  .entry-content [style*="grid-template-columns:50px 1fr"],
  .entry-content [style*="grid-template-columns: 50px 1fr"] {
    grid-template-columns: 40px 1fr !important;
    gap: 10px !important;
  }
}

/* ─── ≤ 480 px — Small phones ───────────────────────────────── */
@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
  .market-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .market-number { font-size: 1.2rem; }
  h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .single-header h1 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .entry-content { font-size: 0.95rem; }
  .entry-content h2 { font-size: 1.2rem; }
  .header-masthead {
    min-height: 52px;
    padding-block: 0.45rem;
  }
  .site-topbar {
    padding-block: 0.25rem;
  }
  .single .header-masthead {
    min-height: 48px;
    padding-block: 0.35rem;
  }
  .single .brand-name {
    font-size: 1.2rem;
  }

  /* Stack all inline grids to single column */
  .entry-content [style*="grid-template-columns:repeat(4"],
  .entry-content [style*="grid-template-columns: repeat(4"],
  .entry-content [style*="grid-template-columns:1fr 1fr"],
  .entry-content [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Stat boxes flex wrap */
  .entry-content [style*="min-width:110px"],
  .entry-content [style*="min-width: 110px"] {
    min-width: 45% !important;
    flex: 1 1 45% !important;
  }
  .roi-result-grid { grid-template-columns: 1fr; }
  .vcfo-tldr-card { padding: 14px 14px; }
  .vcfo-tldr-card p { font-size: 0.85rem; }
  .post-card-media { padding: 1rem; }
}

/* ─── Safe Area Insets (notched phones) ─────────────────────── */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
  .container { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
}

/* ─── Article Component Library (VCFO + Future Articles) ─────── */
.ai-virtual-cfo-wrapper { color: var(--text-2); max-width: 100%; margin: 0 auto; background: transparent; }
.ai-virtual-cfo-wrapper * { box-sizing: border-box; }
.ai-virtual-cfo-wrapper h1,.ai-virtual-cfo-wrapper h2,.ai-virtual-cfo-wrapper h3,.ai-virtual-cfo-wrapper h4 { color: var(--text); font-weight: 700; margin-top: 1.5em; margin-bottom: 0.5em; letter-spacing: -0.01em; }
.ai-virtual-cfo-wrapper h2 { border-bottom: 1px solid var(--border-neon); padding-bottom: 10px; }
.ai-virtual-cfo-wrapper p { margin-bottom: 1.2em; color: var(--text-2); }
.ai-virtual-cfo-wrapper ul,.ai-virtual-cfo-wrapper ol { margin-bottom: 1.5em; padding-left: 20px; list-style: disc; }
.ai-virtual-cfo-wrapper li { margin-bottom: 0.5em; color: var(--text-2); }
.ai-virtual-cfo-wrapper code { background: var(--bg-3); padding: 2px 6px; border-radius: 3px; font-family: var(--font-mono); font-size: 0.9em; }

/* TOC */
.vcfo-toc { background: var(--bg-2); border: 1px solid var(--border); padding: 20px; border-radius: 8px; margin: 25px 0 40px 0; }
.vcfo-toc h4 { margin-top: 0; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; color: var(--text-3); font-family: var(--font-mono); }
.vcfo-toc > ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.vcfo-toc > ul > li { margin: 0; }
.vcfo-toc li a { text-decoration: none; color: var(--text-2); font-size: 0.9rem; font-weight: 600; padding: 5px 10px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 4px; transition: all 0.2s; display: inline-block; }
.vcfo-toc li a:hover { color: var(--accent); border-color: var(--accent); }

/* Cards & Grid */
.vcfo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 30px 0; }
.vcfo-card { border: 1px solid var(--border); border-radius: 10px; padding: 25px; background: var(--bg-2); transition: transform 0.2s, border-color 0.2s; }
.vcfo-card:hover { transform: translateY(-2px); border-color: var(--border-neon); }
.vcfo-card p { color: var(--text-2); }
.vcfo-card ul { list-style: disc; }
.vcfo-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px; gap: 10px; }
.vcfo-card-header h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }

/* Tags */
.vcfo-tag { background: rgba(16, 185, 129, 0.1); color: var(--accent); padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; font-family: var(--font-mono); }
.vcfo-tag-warning { background: rgba(245, 158, 11, 0.1); color: #fcd34d; }
.vcfo-tag-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }

/* Tables */
.vcfo-table-wrapper { overflow-x: auto; margin: 30px 0; }
.vcfo-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.vcfo-table th,.vcfo-table td { padding: 12px 15px; border: 1px solid var(--border); text-align: left; }
.vcfo-table th { background-color: var(--bg-3); color: var(--text); font-weight: 700; }
.vcfo-table tr:nth-child(even) { background-color: var(--surface); }

/* Code & Callouts */
.vcfo-code { background: var(--bg-3); color: var(--text); padding: 20px; border-radius: 8px; font-family: var(--font-mono); font-size: 0.9rem; overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); line-height: 1.7; }
.vcfo-prompt { background: var(--surface); border-left: 4px solid var(--accent); padding: 15px 20px; margin: 20px 0; color: var(--text); border-radius: 0 6px 6px 0; }
.vcfo-highlight-box { background: var(--surface); border-left: 4px solid var(--accent); padding: 18px 20px; border-radius: 0 6px 6px 0; margin: 20px 0; color: var(--text); }
.vcfo-reality-check { background: rgba(239, 68, 68, 0.05); border-left: 4px solid #ef4444; padding: 18px 20px; border-radius: 0 6px 6px 0; margin: 20px 0; color: #fca5a5; }
.vcfo-reality-check ul { list-style: disc; }
.vcfo-reality-check strong { color: #fca5a5; }

/* Prompt Pack */
.vcfo-prompt-pack { background: var(--bg-2); border-radius: 10px; border: 1px solid var(--border); padding: 20px 25px; margin: 30px 0; }
.vcfo-prompt-item { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--border); }
.vcfo-prompt-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* CTA Form */
.vcfo-cta-form { margin-top: 35px; padding: 25px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-neon); }

/* Author Box */
.vcfo-author-box { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 18px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); margin: 25px 0; }
.vcfo-author-avatar { width: 56px; height: 56px; min-width: 56px; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; color: var(--text); font-weight: 800; font-size: 1.4rem; border: 1px solid var(--border-neon); }

/* FAQ Accordion */
.vcfo-faq { margin-top: 30px; }
.vcfo-faq-item { border-bottom: 1px solid var(--border); }
.vcfo-faq-question { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 16px 0; cursor: pointer; color: var(--text); font-size: 1rem; font-weight: 600; font-family: var(--font-display); user-select: none; }
.vcfo-faq-question:hover { color: var(--accent); }
.vcfo-faq-chevron { flex-shrink: 0; width: 18px; height: 18px; border: 1px solid var(--border-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: var(--text-3); transition: transform 0.25s ease, border-color 0.2s; }
.vcfo-faq-item.open .vcfo-faq-chevron { transform: rotate(180deg); border-color: var(--accent); color: var(--accent); }
.vcfo-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.25s ease; }
.vcfo-faq-item.open .vcfo-faq-answer { max-height: 800px; }
.vcfo-faq-answer-inner { padding-bottom: 16px; color: var(--text-2); font-size: 0.95rem; line-height: 1.7; }
.vcfo-faq-answer-inner p { margin-bottom: 0.75rem; }
.vcfo-faq-answer-inner p:last-child { margin-bottom: 0; }
/* Legacy static FAQ support */
.vcfo-faq-item h4 { margin: 0 0 8px 0; color: var(--text); font-size: 1rem; }
.vcfo-faq-item > p { margin-bottom: 12px; }

/* Decision Tree */
.decision-tree { border-left: 2px solid var(--border-strong); padding-left: 20px; margin: 20px 0; }
.decision-tree > ul { list-style: none; padding-left: 0; }
.decision-tree > ul > li { margin-bottom: 8px; padding-left: 0; }
.decision-tree > ul > li::before { content: "☐ "; color: var(--accent); }

/* ROI Calculator */
.roi-calculator { background: var(--bg-2); border: 1px solid var(--border-neon); padding: 30px; border-radius: 12px; box-shadow: var(--accent-glow); }
.roi-calculator h3 { margin-top: 0; }
.roi-input-group { margin-bottom: 15px; }
.roi-input-group label { display: block; font-weight: 600; margin-bottom: 5px; color: var(--text-2); font-size: 0.95rem; }
.roi-input-group input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; background: var(--bg-3); color: var(--text); font-family: var(--font-sans); }
.roi-input-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }
.roi-btn { background: var(--accent); color: #000; border: none; padding: 14px 24px; border-radius: 6px; font-size: 1rem; cursor: pointer; width: 100%; font-weight: 700; margin-top: 10px; transition: all 0.2s; font-family: var(--font-display); letter-spacing: 0.02em; }
.roi-btn:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.roi-results { margin-top: 20px; background: var(--bg-3); padding: 20px; border-radius: 6px; display: none; border: 1px solid var(--border); }
.roi-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-bottom: 20px; }
.roi-result-box { text-align: center; padding: 15px; background: var(--bg-2); border-radius: 6px; border: 1px solid var(--border); }
.roi-result-box small { display: block; color: var(--text-3); margin-bottom: 5px; font-size: 0.75rem; text-transform: uppercase; font-family: var(--font-mono); letter-spacing: 0.05em; }
.roi-big-number { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; font-family: var(--font-display); }
.roi-big-number.negative { color: #ef4444; }
.roi-assumptions { background: var(--surface); padding: 15px 20px; border-radius: 6px; border: 1px solid var(--border); font-size: 0.9rem; }
.roi-assumptions h4 { margin-top: 0; font-size: 0.95rem; }
.roi-assumptions ul { list-style: disc; }

/* vcfo mobile handled in main responsive block */

/* ─── TL;DR At-a-Glance Picks Grid ──────────────────────────── */
.vcfo-tldr { background: var(--bg-2); border: 1px solid var(--border-neon); border-radius: 12px; padding: 28px 30px; margin: 35px 0; }
.vcfo-tldr h3 { margin-top: 0; color: var(--text); font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.vcfo-tldr h3::before { content: '⚡'; font-size: 1rem; }
.vcfo-tldr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; }
.vcfo-tldr-cell { background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.vcfo-tldr-cell-stage { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 6px; }
.vcfo-tldr-cell-tool { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.05rem; margin-bottom: 4px; }
.vcfo-tldr-cell-why { font-size: 0.82rem; color: var(--text-3); line-height: 1.4; }
/* .vcfo-tldr-card — alternate variant used in state-of-industry articles */
.vcfo-tldr-card { background: var(--bg-3); border: 1px solid var(--border-neon); border-radius: 8px; padding: 18px 20px; }
.vcfo-tldr-card h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); margin: 0 0 10px; }
.vcfo-tldr-card p { font-size: 0.9rem; color: var(--text-2); margin: 0; line-height: 1.5; }

/* ─── Pros / Cons Component ─────────────────────────────────── */
.vcfo-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.vcfo-pros, .vcfo-cons { border-radius: 8px; padding: 18px 20px; }
.vcfo-pros { background: rgba(16, 185, 129, 0.05); border: 1px solid rgba(16, 185, 129, 0.3); }
.vcfo-cons { background: rgba(239, 68, 68, 0.05); border: 1px solid rgba(239, 68, 68, 0.3); }
.vcfo-pros h5, .vcfo-cons h5 { margin: 0 0 12px 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); }
.vcfo-pros h5 { color: #34d399; }
.vcfo-cons h5 { color: #f87171; }
.vcfo-pros ul, .vcfo-cons ul { list-style: none; padding: 0; margin: 0; }
.vcfo-pros li, .vcfo-cons li { font-size: 0.92rem; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.vcfo-pros li:last-child, .vcfo-cons li:last-child { border-bottom: none; }
.vcfo-pros li::before { content: '✓'; color: #34d399; font-weight: 700; flex-shrink: 0; }
.vcfo-cons li::before { content: '✕'; color: #f87171; font-weight: 700; flex-shrink: 0; }
@media (max-width: 640px) { .vcfo-pros-cons { grid-template-columns: 1fr; } }

/* ─── Agentic AI Badge ───────────────────────────────────────── */
.vcfo-badge-agentic { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05)); border: 1px solid rgba(16,185,129,0.4); border-radius: 20px; padding: 4px 12px; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.vcfo-badge-agentic::before { content: '◉'; font-size: 0.6rem; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ─── Verdcit Banner ─────────────────────────────────────────── */
.vcfo-verdict { border-radius: 8px; padding: 16px 20px; margin: 20px 0; display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--border); background: var(--bg-2); }
.vcfo-verdict-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.vcfo-verdict-body strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 0.95rem; }
.vcfo-verdict-body span { color: var(--text-3); font-size: 0.88rem; line-height: 1.5; }

/* ─── Benchmark / Score Bar ──────────────────────────────────── */
.vcfo-score-bar-wrap { margin: 6px 0 14px; }
.vcfo-score-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-3); margin-bottom: 4px; font-family: var(--font-mono); }
.vcfo-score-track { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; border: 1px solid var(--border); }
.vcfo-score-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #059669, #10b981); transition: width 0.8s ease; }

/* ─── Comparison Benchmark Table ─────────────────────────────── */
.vcfo-compare-table th:first-child { width: 180px; }
.vcfo-compare-table td.win { color: #34d399; font-weight: 700; }
.vcfo-compare-table td.mid { color: #fcd34d; }
.vcfo-compare-table td.lose { color: #f87171; }

/* ─── Pull Quote ─────────────────────────────────────────────── */
.vcfo-pull-quote { border-left: 3px solid var(--accent); padding: 16px 24px; margin: 30px 0; background: var(--surface); border-radius: 0 8px 8px 0; }
.vcfo-pull-quote p { font-size: 1.15rem; font-style: italic; color: var(--text); margin: 0; line-height: 1.6; }
.vcfo-pull-quote cite { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--text-3); font-family: var(--font-mono); font-style: normal; }

/* ─── Year Badge ─────────────────────────────────────────────── */
.vcfo-updated { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); background: var(--bg-3); border: 1px solid var(--border); border-radius: 4px; padding: 3px 10px; margin-bottom: 20px; }
.vcfo-updated::before { content: '↻'; color: var(--accent); }

/* ─── Accordion (generic) ────────────────────────────────────────── */
.vcfo-accordion-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; background: var(--bg-2); }
.vcfo-accordion-trigger { width: 100%; background: none; border: none; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 0.97rem; text-align: left; transition: background 0.2s; }
.vcfo-accordion-trigger:hover { background: var(--bg-3); }
.vcfo-accordion-icon { flex-shrink: 0; font-size: 0.75rem; color: var(--accent); transition: transform 0.25s ease; }
.vcfo-accordion-item.open .vcfo-accordion-icon { transform: rotate(180deg); }
.vcfo-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.vcfo-accordion-item.open .vcfo-accordion-body { max-height: 1200px; }
.vcfo-accordion-content { padding: 0 20px 20px; color: var(--text-2); font-size: 0.95rem; line-height: 1.7; }
.vcfo-accordion-content ul { list-style: disc; padding-left: 1.25rem; }
.vcfo-accordion-content li { margin-bottom: 0.4rem; }

/* ─── Light Mode: Override hardcoded dark inline styles in article content ─── */
[data-theme="light"] .entry-content [style*="background: #0a0a0a"],
[data-theme="light"] .entry-content [style*="background:#0a0a0a"],
[data-theme="light"] .entry-content [style*="background: #000"],
[data-theme="light"] .entry-content [style*="background:#000"],
[data-theme="light"] .entry-content [style*="background: #111"],
[data-theme="light"] .entry-content [style*="background:#111"],
[data-theme="light"] .entry-content [style*="background: #171717"],
[data-theme="light"] .entry-content [style*="background:#171717"],
[data-theme="light"] .entry-content [style*="background: #1a1a1a"],
[data-theme="light"] .entry-content [style*="background:#1a1a1a"],
[data-theme="light"] .entry-content [style*="background-color: #0a0a0a"],
[data-theme="light"] .entry-content [style*="background-color:#0a0a0a"],
[data-theme="light"] .entry-content [style*="background-color: #000"],
[data-theme="light"] .entry-content [style*="background-color:#000"],
[data-theme="light"] .entry-content [style*="background: rgb(10"],
[data-theme="light"] .entry-content [style*="background: rgb(0,"],
[data-theme="light"] .entry-content [style*="background: rgb(17"] {
  background: var(--bg-2) !important;
  border-color: var(--border) !important;
}

[data-theme="light"] .entry-content [style*="color:#fff"],
[data-theme="light"] .entry-content [style*="color: #fff"],
[data-theme="light"] .entry-content [style*="color: white"],
[data-theme="light"] .entry-content [style*="color:#e5e"],
[data-theme="light"] .entry-content [style*="color: #e5e"],
[data-theme="light"] .entry-content [style*="color:#f5f5"],
[data-theme="light"] .entry-content [style*="color: #f5f5"],
[data-theme="light"] .entry-content [style*="color:#fafafa"],
[data-theme="light"] .entry-content [style*="color: #fafafa"] {
  color: var(--text) !important;
}

[data-theme="light"] .entry-content [style*="color:#a1a1aa"],
[data-theme="light"] .entry-content [style*="color: #a1a1aa"],
[data-theme="light"] .entry-content [style*="color:#d4d4d8"],
[data-theme="light"] .entry-content [style*="color: #d4d4d8"],
[data-theme="light"] .entry-content [style*="color: #888"],
[data-theme="light"] .entry-content [style*="color:#888"],
[data-theme="light"] .entry-content [style*="color:#71717a"],
[data-theme="light"] .entry-content [style*="color: #71717a"] {
  color: var(--text-3) !important;
}

[data-theme="light"] .entry-content [style*="border-color: #333"],
[data-theme="light"] .entry-content [style*="border-color:#333"],
[data-theme="light"] .entry-content [style*="border-color: #444"],
[data-theme="light"] .entry-content [style*="border-color:#444"],
[data-theme="light"] .entry-content [style*="border: 1px solid #333"],
[data-theme="light"] .entry-content [style*="border: 1px solid #444"],
[data-theme="light"] .entry-content [style*="border: 1px solid #222"],
[data-theme="light"] .entry-content [style*="border:1px solid #333"],
[data-theme="light"] .entry-content [style*="border:1px solid #444"],
[data-theme="light"] .entry-content [style*="border:1px solid #222"],
[data-theme="light"] .entry-content [style*="border-top:1px solid #222"],
[data-theme="light"] .entry-content [style*="border-top: 1px solid #222"],
[data-theme="light"] .entry-content [style*="border-bottom:1px solid #222"],
[data-theme="light"] .entry-content [style*="border-bottom: 1px solid #222"] {
  border-color: var(--border) !important;
}

[data-theme="light"] .entry-content [style*="background: #111"],
[data-theme="light"] .entry-content [style*="background:#111"],
[data-theme="light"] .entry-content [style*="background: #1a1a"],
[data-theme="light"] .entry-content [style*="background:#1a1a"],
[data-theme="light"] .entry-content [style*="background: #222"],
[data-theme="light"] .entry-content [style*="background:#222"],
[data-theme="light"] .entry-content [style*="background-color: #111"],
[data-theme="light"] .entry-content [style*="background-color:#111"],
[data-theme="light"] .entry-content [style*="background-color: #1a1a"],
[data-theme="light"] .entry-content [style*="background-color:#1a1a"] {
  background: var(--bg-3) !important;
}

/* Light mode: article inline inputs and buttons */
[data-theme="light"] .entry-content input[style*="background"],
[data-theme="light"] .entry-content input[style*="color:#fff"],
[data-theme="light"] .entry-content input[style*="color: #fff"] {
  background: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

[data-theme="light"] .entry-content select[style*="background"],
[data-theme="light"] .entry-content select[style*="color:#fff"],
[data-theme="light"] .entry-content select[style*="color: #fff"] {
  background: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* Light mode: ROI calculator overrides */
[data-theme="light"] .roi-calculator { background: var(--bg-2) !important; }
[data-theme="light"] .roi-results { background: var(--bg-3) !important; }
[data-theme="light"] .roi-result-box { background: var(--bg-2) !important; }
[data-theme="light"] .roi-big-number { color: var(--accent) !important; }
[data-theme="light"] .roi-big-number.negative { color: #dc2626 !important; }
[data-theme="light"] .roi-assumptions { background: var(--surface) !important; }
[data-theme="light"] .roi-input-group input { background: var(--bg) !important; color: var(--text) !important; }

/* Light mode: vcfo-reality-check */
[data-theme="light"] .vcfo-reality-check { background: rgba(239, 68, 68, 0.06) !important; color: #991b1b !important; }
[data-theme="light"] .vcfo-reality-check strong { color: #991b1b !important; }

/* Light mode: tag colors */
[data-theme="light"] .vcfo-tag-warning { color: #92400e !important; background: rgba(245, 158, 11, 0.12) !important; }

/* Light mode: pros/cons list items border */
[data-theme="light"] .vcfo-pros li, [data-theme="light"] .vcfo-cons li { border-bottom-color: rgba(0,0,0,0.06) !important; }
