/* =====================================================================
   Visaify shared shell — modern navbar, footer, theme tokens, toggle.
   Loaded by every tool + blog page so they all feel like one product.
   Scoped to .vfy-shell-nav and .vfy-shell-footer so it never collides
   with each page's existing content styles.
   ===================================================================== */

:root {
  --vfy-bg: #fbfdff;
  --vfy-bg2: #f1f5fa;
  --vfy-sur: #ffffff;
  --vfy-sur2: #f5f8fc;
  --vfy-brd: rgba(15,23,42,.08);
  --vfy-brd2: rgba(15,23,42,.14);
  --vfy-tx1: #0f172a;
  --vfy-tx2: #475569;
  --vfy-tx3: #94a3b8;
  --vfy-acc: #0ea5e9;
  --vfy-acc2: #38bdf8;
  --vfy-acc3: #6366f1;
  --vfy-glow: rgba(14,165,233,.18);
  --vfy-green: #10b981;
  --vfy-gold: #f59e0b;
  --vfy-ease: cubic-bezier(.34,1.56,.64,1);
}
[data-theme="dark"] {
  --vfy-bg: #050a14;
  --vfy-bg2: #0a1426;
  --vfy-sur: #0d172b;
  --vfy-sur2: #111e3a;
  --vfy-brd: rgba(255,255,255,.08);
  --vfy-brd2: rgba(255,255,255,.14);
  --vfy-tx1: #e8eef8;
  --vfy-tx2: #94a3b8;
  --vfy-tx3: #475569;
  --vfy-acc: #38bdf8;
  --vfy-acc2: #7dd3fc;
  --vfy-acc3: #a78bfa;
  --vfy-glow: rgba(56,189,248,.22);
}

/* ===== Dark-mode override for legacy per-page variables =====
   Every Visaify tool + blog page defines its own --bg / --tx1 etc.
   When the theme toggle flips to dark, these legacy vars also need
   to flip so the page body actually changes — not just the shell.
   We use html[data-theme="dark"] (specificity 0,1,1) to outrank
   the page-level :root rules. */
html[data-theme="dark"] {
  --bg: #050a14;
  --bg2: #0a1426;
  --sur: #0d172b;
  --sur2: #111e3a;
  --surface: #0d172b;
  --tx1: #e8eef8;
  --tx2: #94a3b8;
  --tx3: #64748b;
  --text: #e8eef8;
  --muted: #94a3b8;
  --subtle: #64748b;
  --brd:  rgba(255,255,255,.08);
  --brd2: rgba(255,255,255,.16);
  --border: rgba(255,255,255,.08);
  --primary: #60a5fa;
  --primary-hover: #93c5fd;
  --primary-light: rgba(96,165,250,.10);
  --accent: #38bdf8;
  --accent-2: #7dd3fc;
  --navy: #4c7fd2;
  --navy-dark: #1e3a8a;
  --secondary: #6366f1;
  --shadow:       0 4px 20px rgba(0,0,0,.50);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.60);
  --shadow-hover: 0 16px 40px rgba(0,0,0,.65);

  color-scheme: dark;
}

/* Base background + text on dark mode body (works even if the page's
   `body { background: var(--bg) }` rule lives below this stylesheet). */
html[data-theme="dark"] body { background: var(--vfy-bg); color: var(--vfy-tx1); }

/* Re-paint common visual surfaces that hard-code light colours. */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: var(--vfy-sur2);
  color: var(--vfy-tx1);
  border-color: var(--vfy-brd2);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: var(--vfy-tx3); }

/* TOC + content-card panels common in blog pages */
html[data-theme="dark"] .card,
html[data-theme="dark"] .info-box,
html[data-theme="dark"] .info-tile,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .tool-card,
html[data-theme="dark"] .fact-tile,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .toc,
html[data-theme="dark"] .toc-nav,
html[data-theme="dark"] .related-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .pull-quote {
  background: var(--vfy-sur);
  border-color: var(--vfy-brd);
  color: var(--vfy-tx1);
}

/* Footer "soft" container backgrounds */
html[data-theme="dark"] .article-footer,
html[data-theme="dark"] .related-posts,
html[data-theme="dark"] .author-card {
  background: var(--vfy-sur2);
  border-color: var(--vfy-brd);
}

/* ===== Navbar ===== */
.vfy-shell-nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: color-mix(in srgb, var(--vfy-bg) 78%, transparent);
  border-bottom: 1px solid var(--vfy-brd);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.vfy-shell-nav * { box-sizing: border-box; }
.vfy-shell-nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 16px;
}
.vfy-shell-brand {
  display: inline-flex; align-items: center;
  text-decoration: none;
  transition: opacity .25s;
}
.vfy-shell-brand:hover { opacity: .85; }
.vfy-shell-brand img { height: 30px; width: auto; display: block; }
.vfy-shell-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; padding: 0; margin: 0;
}
.vfy-shell-links a {
  padding: 8px 14px; border-radius: 99px;
  font-size: .88rem; font-weight: 600;
  color: var(--vfy-tx2); text-decoration: none;
  transition: background .2s, color .2s;
}
.vfy-shell-links a:hover { background: var(--vfy-sur2); color: var(--vfy-tx1); }
.vfy-shell-right { display: flex; align-items: center; gap: 10px; }

/* Animated theme toggle */
.vfy-shell-toggle {
  position: relative; width: 60px; height: 32px; border-radius: 999px;
  border: 1px solid var(--vfy-brd2); background: var(--vfy-sur2);
  cursor: pointer; padding: 0; flex-shrink: 0;
  transition: background .25s, border-color .25s;
}
.vfy-shell-toggle:hover { border-color: var(--vfy-acc); }
.vfy-shell-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 4px 12px rgba(251,191,36,.5);
  transition: transform .45s var(--vfy-ease), background .3s, box-shadow .3s;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
[data-theme="dark"] .vfy-shell-toggle-thumb {
  transform: translateX(28px);
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  box-shadow: 0 4px 14px rgba(99,102,241,.55);
}
.vfy-shell-toggle-thumb svg { width: 13px; height: 13px; }
.vfy-shell-tt-sun  { display: block; }
.vfy-shell-tt-moon { display: none; }
[data-theme="dark"] .vfy-shell-tt-sun  { display: none; }
[data-theme="dark"] .vfy-shell-tt-moon { display: block; }

.vfy-shell-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 999px;
  font-size: .85rem; font-weight: 700;
  background: linear-gradient(135deg, var(--vfy-acc), var(--vfy-acc3));
  color: #fff; text-decoration: none;
  box-shadow: 0 4px 14px var(--vfy-glow);
  transition: transform .25s var(--vfy-ease), box-shadow .25s;
}
.vfy-shell-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--vfy-glow); }

.vfy-shell-burger {
  display: none;
  flex-direction: column; gap: 4px;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: var(--vfy-sur2); border: 1px solid var(--vfy-brd);
  border-radius: 10px; cursor: pointer;
}
.vfy-shell-burger span { width: 18px; height: 2px; background: var(--vfy-tx1); border-radius: 1px; }

@media (max-width: 760px) {
  .vfy-shell-links, .vfy-shell-cta { display: none; }
  .vfy-shell-burger { display: flex; }
}
.vfy-shell-mobile {
  display: none; flex-direction: column; gap: 4px;
  background: var(--vfy-sur);
  border-bottom: 1px solid var(--vfy-brd);
  padding: 16px 24px;
  box-shadow: 0 16px 32px rgba(15,23,42,.10);
}
.vfy-shell-mobile.open { display: flex; }
.vfy-shell-mobile a {
  padding: 10px 14px; border-radius: 10px;
  color: var(--vfy-tx1); font-size: .92rem; font-weight: 600;
  text-decoration: none;
}
.vfy-shell-mobile a:hover { background: var(--vfy-sur2); }
.vfy-shell-mobile .vfy-shell-cta { display: inline-flex; }

/* ===== Footer ===== */
.vfy-shell-footer {
  position: relative;
  background: var(--vfy-sur2);
  color: var(--vfy-tx2);
  padding: 56px 24px 28px;
  margin-top: 72px;
  border-top: 1px solid var(--vfy-brd);
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: .88rem; line-height: 1.65;
}
.vfy-shell-footer * { box-sizing: border-box; }
.vfy-shell-footer::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 300px at 50% -10%, var(--vfy-glow) 0%, transparent 60%),
    radial-gradient(600px 300px at 90% 110%, color-mix(in srgb, var(--vfy-acc3) 14%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.vfy-shell-footer-inner { position: relative; max-width: 1180px; margin: 0 auto; }
.vfy-shell-footer-top {
  display: grid; gap: 36px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  margin-bottom: 32px;
}
@media (max-width: 880px) {
  .vfy-shell-footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .vfy-shell-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .vfy-shell-footer-top { grid-template-columns: 1fr; gap: 24px; }
}
.vfy-shell-footer-brand { max-width: 340px; }
.vfy-shell-footer-brand img { height: 32px; width: auto; display: block; margin-bottom: 14px; }
.vfy-shell-footer-tagline { font-size: .86rem; color: var(--vfy-tx2); line-height: 1.7; margin: 0 0 18px; }
.vfy-shell-footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; padding: 0; list-style: none; }
.vfy-shell-footer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--vfy-bg); border: 1px solid var(--vfy-brd);
  font-size: .72rem; font-weight: 700; color: var(--vfy-tx1);
}
.vfy-shell-footer-badge svg { color: var(--vfy-acc); flex-shrink: 0; }

.vfy-shell-footer-nav h4 {
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--vfy-tx1); margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.vfy-shell-footer-nav h4::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--vfy-brd2), transparent); }
.vfy-shell-footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.vfy-shell-footer-nav a {
  font-size: .86rem; color: var(--vfy-tx2); text-decoration: none;
  transition: color .2s, padding-left .2s;
}
.vfy-shell-footer-nav a:hover { color: var(--vfy-acc); padding-left: 4px; }
.vfy-shell-footer-nav .ext { opacity: .6; font-size: .8em; }

.vfy-shell-footer-cta {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 20px 22px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--vfy-acc3) 8%, var(--vfy-sur)), color-mix(in srgb, var(--vfy-acc) 6%, var(--vfy-sur)));
  border: 1px solid color-mix(in srgb, var(--vfy-acc3) 20%, transparent);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.vfy-shell-footer-cta h5 { font-size: 1rem; font-weight: 800; color: var(--vfy-tx1); margin: 0 0 4px; }
.vfy-shell-footer-cta p { font-size: .82rem; color: var(--vfy-tx2); margin: 0; }
.vfy-shell-footer-cta-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 999px;
  background: linear-gradient(135deg, var(--vfy-acc), var(--vfy-acc3));
  color: #fff; border: 0; font-size: .85rem; font-weight: 700;
  font-family: inherit; cursor: pointer;
  text-decoration: none;
  transition: transform .25s var(--vfy-ease), box-shadow .25s;
  box-shadow: 0 6px 18px var(--vfy-glow);
  white-space: nowrap;
}
.vfy-shell-footer-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--vfy-glow); }

.vfy-shell-footer-bottom {
  position: relative;
  border-top: 1px solid var(--vfy-brd);
  padding-top: 22px;
  display: flex; flex-direction: column; gap: 10px;
}

/* =====================================================================
   Blog index page (gallery of articles)
   ===================================================================== */
.vfy-blog-hero {
  position: relative; overflow: hidden;
  padding: 56px 24px 36px;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.vfy-blog-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 50% -10%, var(--vfy-glow) 0%, transparent 60%),
    radial-gradient(700px 400px at 85% 30%, color-mix(in srgb, var(--vfy-acc3) 18%, transparent) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.vfy-blog-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--vfy-brd) 1px, transparent 1px),
    linear-gradient(90deg, var(--vfy-brd) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 0%, transparent 75%);
  opacity: .5; pointer-events: none; z-index: 0;
}
.vfy-blog-hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.vfy-blog-crumbs {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--vfy-tx3); margin-bottom: 14px;
}
.vfy-blog-crumbs a { color: var(--vfy-tx2); text-decoration: none; transition: color .2s; }
.vfy-blog-crumbs a:hover { color: var(--vfy-acc); }
.vfy-blog-crumbs svg { opacity: .6; }
.vfy-blog-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--vfy-sur); border: 1px solid var(--vfy-brd2);
  color: var(--vfy-tx2);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.vfy-blog-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--vfy-green);
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
  animation: vfyBlogDot 2.4s ease-in-out infinite;
}
@keyframes vfyBlogDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.28); }
  50%     { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
}
.vfy-blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.1;
  color: var(--vfy-tx1); margin: 0 0 14px;
}
.vfy-blog-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--vfy-acc) 0%, var(--vfy-acc3) 60%, #8b5cf6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.vfy-blog-hero p { font-size: 1.02rem; color: var(--vfy-tx2); line-height: 1.7; margin: 0 auto; max-width: 600px; }

.vfy-blog-wrap {
  max-width: 1180px; margin: 0 auto;
  padding: 24px 24px 60px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.vfy-blog-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.vfy-blog-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px 22px; border-radius: 18px;
  background: var(--vfy-sur); border: 1px solid var(--vfy-brd);
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .35s var(--vfy-ease), box-shadow .25s, border-color .25s;
}
.vfy-blog-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 0% 0%, var(--tint, var(--vfy-glow)), transparent 70%);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.vfy-blog-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c1, var(--vfy-acc)), var(--c2, var(--vfy-acc3)));
  opacity: 0; transition: opacity .25s;
}
.vfy-blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--vfy-brd2);
  box-shadow: 0 16px 40px rgba(15,23,42,.10);
}
.vfy-blog-card:hover::before, .vfy-blog-card:hover::after { opacity: 1; }
.vfy-blog-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.vfy-blog-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--vfy-acc) 10%, transparent);
  color: var(--vfy-acc);
  border: 1px solid color-mix(in srgb, var(--vfy-acc) 22%, transparent);
}
.vfy-blog-pill.green  { background: rgba(16,185,129,.10);  color: #059669; border-color: rgba(16,185,129,.26); }
.vfy-blog-pill.blue   { background: rgba(37,99,235,.10);   color: #2563eb; border-color: rgba(37,99,235,.26); }
.vfy-blog-pill.purple { background: rgba(139,92,246,.10);  color: #7c3aed; border-color: rgba(139,92,246,.26); }
.vfy-blog-pill.amber  { background: rgba(245,158,11,.10);  color: #d97706; border-color: rgba(245,158,11,.26); }
html[data-theme="dark"] .vfy-blog-pill.green  { color: #34d399; }
html[data-theme="dark"] .vfy-blog-pill.blue   { color: #60a5fa; }
html[data-theme="dark"] .vfy-blog-pill.purple { color: #c4b5fd; }
html[data-theme="dark"] .vfy-blog-pill.amber  { color: #fbbf24; }

.vfy-blog-rt { font-size: .72rem; font-weight: 700; color: var(--vfy-tx3); }
.vfy-blog-card h2 {
  font-size: 1.08rem; font-weight: 800; letter-spacing: -.015em;
  color: var(--vfy-tx1); margin: 0; line-height: 1.3;
}
.vfy-blog-card p {
  font-size: .88rem; color: var(--vfy-tx2); line-height: 1.6;
  flex: 1; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.vfy-blog-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--vfy-brd);
  padding-top: 12px; margin-top: 4px;
}
.vfy-blog-date { font-size: .76rem; color: var(--vfy-tx3); font-weight: 600; }
.vfy-blog-read {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .82rem; font-weight: 700; color: var(--vfy-acc);
  transition: gap .2s;
}
.vfy-blog-card:hover .vfy-blog-read { gap: 9px; }

/* Old blog elements (legacy hero etc.) — keep them but allow override */
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .blog-section { background: transparent; color: var(--vfy-tx1); }

/* ── Legacy tool-page widgets, dark-mode patches ───────────────────────
   The state-nomination / 485 / partner-visa / etc. pages have their own
   "score card" + "locked pill" + "result box" styling with hard-coded
   colours that fail in dark mode. Patch them. */

html[data-theme="dark"] .score-card {
  /* Default success state was a flat indigo. Make it a richer gradient
     that still pops on a black background. */
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%) !important;
  box-shadow: 0 16px 40px rgba(99,102,241,.32) !important;
}
html[data-theme="dark"] .score-card.red {
  background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%) !important;
  box-shadow: 0 16px 40px rgba(239,68,68,.30) !important;
}
html[data-theme="dark"] .score-card.orange {
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%) !important;
  box-shadow: 0 16px 40px rgba(245,158,11,.30) !important;
}
html[data-theme="dark"] .score-card.green {
  background: linear-gradient(135deg, #047857 0%, #10b981 100%) !important;
  box-shadow: 0 16px 40px rgba(16,185,129,.30) !important;
}
html[data-theme="dark"] .score-card.deep-green {
  background: linear-gradient(135deg, #064e3b 0%, #059669 100%) !important;
  box-shadow: 0 16px 40px rgba(5,150,105,.30) !important;
}

/* The "locked" pill inside score-card — dark green text on faint green bg
   becomes illegible on a coloured card in dark mode. Switch to a glassy
   light-on-translucent style that works on every score-card colour. */
html[data-theme="dark"] .nom-locked,
html[data-theme="dark"] .score-card .pill,
html[data-theme="dark"] .score-card .badge {
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.30) !important;
  color: #ffffff !important;
}
/* Also fix the same pill in LIGHT mode when it sits on the red/orange/green
   colored card — the dark-green-on-translucent is also low-contrast against
   the red card you saw in the screenshot. */
.score-card .nom-locked,
.score-card.red   .nom-locked,
.score-card.orange .nom-locked,
.score-card.green .nom-locked,
.score-card.deep-green .nom-locked {
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.35) !important;
  color: #ffffff !important;
}

/* Result box (orange/green/red banner) — fix dark-mode contrast */
html[data-theme="dark"] .result-box.orange { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.32); color: #fde68a; }
html[data-theme="dark"] .result-box.green  { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.32); color: #6ee7b7; }
html[data-theme="dark"] .result-box.red    { background: rgba(239,68,68,.12);  border-color: rgba(239,68,68,.32);  color: #fca5a5; }

/* Info boxes used heavily in tool/blog content */
html[data-theme="dark"] .info-box.blue   { background: rgba(56,189,248,.08); border-color: rgba(56,189,248,.25); }
html[data-theme="dark"] .info-box.green  { background: rgba(16,185,129,.08);  border-color: rgba(16,185,129,.25); }
html[data-theme="dark"] .info-box.orange { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.25); }
html[data-theme="dark"] .info-box.red    { background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.25); }
html[data-theme="dark"] .info-box h3, html[data-theme="dark"] .info-box p, html[data-theme="dark"] .info-box li, html[data-theme="dark"] .info-box strong { color: var(--vfy-tx1); }

/* Generic pts-badge often used to show points totals */
html[data-theme="dark"] .pts-badge {
  background: rgba(56,189,248,.14);
  color: #7dd3fc;
  border: 1px solid rgba(56,189,248,.28);
}

/* Article body and TOC commonly used on blog posts */
html[data-theme="dark"] .article-body h1,
html[data-theme="dark"] .article-body h2,
html[data-theme="dark"] .article-body h3,
html[data-theme="dark"] .article-body h4,
html[data-theme="dark"] .article-body strong { color: var(--vfy-tx1); }
html[data-theme="dark"] .article-body { color: var(--vfy-tx2); }
html[data-theme="dark"] .article-body a { color: var(--vfy-acc2); }
html[data-theme="dark"] .article-body blockquote, html[data-theme="dark"] .pull-quote { color: var(--vfy-tx2); border-left-color: var(--vfy-acc); }
html[data-theme="dark"] .article-body code, html[data-theme="dark"] code { background: var(--vfy-sur2); color: var(--vfy-tx1); }
html[data-theme="dark"] .article-body pre { background: var(--vfy-sur2); color: var(--vfy-tx1); }
html[data-theme="dark"] .toc, html[data-theme="dark"] .toc-nav, html[data-theme="dark"] .table-of-contents { background: var(--vfy-sur); border-color: var(--vfy-brd); color: var(--vfy-tx2); }
html[data-theme="dark"] .toc a, html[data-theme="dark"] .toc-nav a, html[data-theme="dark"] .table-of-contents a { color: var(--vfy-tx2); }
html[data-theme="dark"] .toc a.active, html[data-theme="dark"] .toc-nav a.active, html[data-theme="dark"] .table-of-contents a.active { color: var(--vfy-acc); }

/* Disclaimer strip — common across all tool pages */
html[data-theme="dark"] .disclaimer-strip { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.25); color: #fde68a; }
html[data-theme="dark"] .disclaimer-strip strong { color: #fef3c7; }

/* Hero banners that hard-code blue gradient */
html[data-theme="dark"] .hero { background: var(--vfy-bg); }
html[data-theme="dark"] .hero-badge { background: var(--vfy-sur2); border-color: var(--vfy-brd2); color: var(--vfy-tx2); }
html[data-theme="dark"] .key-facts .fact-tile, html[data-theme="dark"] .fact-tile {
  background: var(--vfy-sur); border-color: var(--vfy-brd); color: var(--vfy-tx1);
}
html[data-theme="dark"] .fact-num { color: var(--vfy-acc2); }
html[data-theme="dark"] .fact-label { color: var(--vfy-tx2); }
html[data-theme="dark"] .section-title { color: var(--vfy-tx1); }
html[data-theme="dark"] .section-sub, html[data-theme="dark"] .section-label, html[data-theme="dark"] .page-wrap { color: var(--vfy-tx2); }

/* Tables in blog/tool body */
html[data-theme="dark"] .sec-table, html[data-theme="dark"] table {
  border-color: var(--vfy-brd);
}
html[data-theme="dark"] .sec-table th, html[data-theme="dark"] table th { color: var(--vfy-tx1); border-color: var(--vfy-brd); background: var(--vfy-sur2); }
html[data-theme="dark"] .sec-table td, html[data-theme="dark"] table td { color: var(--vfy-tx2); border-color: var(--vfy-brd); }
html[data-theme="dark"] table tr:hover { background: var(--vfy-sur2); }
.vfy-shell-footer-copy { font-size: .8rem; color: var(--vfy-tx3); margin: 0; }
.vfy-shell-footer-copy a { color: var(--vfy-tx2); text-decoration: underline; }
.vfy-shell-footer-disclaimer { font-size: .76rem; color: var(--vfy-tx3); line-height: 1.55; margin: 0; max-width: 880px; }
