/* =====================================================================
   THEME-FLIP TRANSITION KILL — paired with applyTheme() in main.js.
   When the user toggles light/dark, JS adds .igc-theme-flipping for one
   frame, switches the class, forces reflow, then removes the marker.
   This prevents `background` shorthand transitions (white -> gradient)
   from leaving cards stuck on the previous colour until a refresh.
   ===================================================================== */
html.igc-theme-flipping,
html.igc-theme-flipping *,
html.igc-theme-flipping *::before,
html.igc-theme-flipping *::after {
  transition: none !important;
  animation: none !important;
}

/* =====================================================================
   VARIANT B LIGHT MODE — "Defined Surfaces / Cards Pop" (SITE-WIDE)
   2026-05-29 audit rollout. Replaces variant-b-preview.css (which was
   scoped to UKGC profile + RG hub + front-page only). All rules scoped
   to .igc-light / html.igc-light / .iges-light — dark mode UNTOUCHED.

   Contains:
   - Token overrides (page surface, borders, shadow stack, navy accent,
     regulator-profile palette remap)
   - Audit fix #1 (additional splash kills not in the per-file blocks)
   - Audit fix #2 (universal card lift across every component family)
   - Audit fix #3 (pastel glow tokens + hardcoded #fff <strong> remap)
   - Audit fix #4 (per-card tint washes → solid brand top rails)
   - Audit fix #5 (off-brand amber/gold pops → navy accent)
   - Audit fix #6 (dark-mode-tuned shadows retoned for white)
   - Audit fix #8 (newsletter modal light palette)

   To revert: delete this file + remove the priority-99 enqueue in
   functions.php.
   ===================================================================== */

/* ─────────────────────────────────────────────────────────────────────
   LIGHT-MODE TOKEN OVERRIDES (site-wide)
   ───────────────────────────────────────────────────────────────────── */
:root.igc-light,
html.igc-light,
html.iges-light {
  /* Page + surface */
  --igc-bg: #F4F6F9;
  --igc-bg-elev: #FFFFFF;
  --igc-bg-elev-2: #FFFFFF;
  --igc-bg-glass: #F8FAFC;

  /* Borders — tinted, not pure grey */
  --igc-border: rgba(15, 30, 60, 0.12);
  --igc-border-mid: rgba(15, 30, 60, 0.18);
  --igc-border-strong: rgba(15, 30, 60, 0.28);

  /* Text */
  --igc-text: #0F172A;
  --igc-text-muted: #334155;
  --igc-text-faint: #64748B;

  /* Brand accent — navy-blue */
  --igc-accent: #1D4ED8;
  --igc-accent-deep: #1E40AF;
  --igc-accent-soft: rgba(29, 78, 216, 0.08);
  --igc-accent-ring: rgba(29, 78, 216, 0.30);
  --igc-accent-glow: #1D4ED8;

  /* Two-layer ambient shadow stack */
  --igc-shadow-card: 0 1px 2px rgba(10, 20, 38, 0.04), 0 2px 8px rgba(10, 20, 38, 0.05);
  --igc-shadow-card-hover: 0 2px 4px rgba(10, 20, 38, 0.05), 0 8px 22px rgba(10, 20, 38, 0.08);
  --igc-shadow-modal: 0 30px 80px rgba(15, 30, 60, 0.20);

  /* Regulator-profile palette remap (was pastel glow on dark) */
  --rp-deep: #1E40AF;
  --rp-soft: rgba(29, 78, 216, 0.06);
  --rp-gold-soft: rgba(180, 83, 9, 0.06);
  --rp-primary: #1D4ED8;
  --rp-glow: #1E40AF;

  color-scheme: light;
}
html.igc-light body { background: var(--igc-bg); color: var(--igc-text); }
html.igc-light a { color: var(--igc-accent); }
html.igc-light a:hover { color: var(--igc-accent-deep); }

/* ─────────────────────────────────────────────────────────────────────
   FRONT PAGE — hero / about / footer / jurisdictions / atlas / feed
   ───────────────────────────────────────────────────────────────────── */
.igc-light .igc-hero { background: #FFFFFF; border-top: 3px solid var(--igc-accent); border-bottom: 1px solid rgba(15,30,60,0.10); }
.igc-light .igc-about { background: #F4F6F9; }
.igc-light .igc-footer { background: #FFFFFF; border-top: 1px solid rgba(15,30,60,0.10); }

/* 17 jurisdiction cards: 4px brand top rail, white card, real shadow */
.igc-light .igc-juris { background: #F4F6F9; }
.igc-light .igc-jcard {
  background: #FFFFFF;
  border: 1px solid rgba(15,30,60,0.12);
  border-top: 4px solid var(--igc-jc-accent, var(--igc-accent));
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.igc-light .igc-jcard:hover {
  box-shadow: 0 2px 4px rgba(10,20,38,0.05), 0 8px 22px rgba(10,20,38,0.08);
  transform: translateY(-1px);
}

/* Atlas / source-page / articles hero / showcase: flat tinted bands */
.igc-light .igc-atlas,
.igc-light .igc-art-hero,
.igc-light .igc-srcpg { background: #FFFFFF; border-top: 3px solid var(--igc-accent); border-bottom: 1px solid rgba(15,30,60,0.10); }
.igc-light .igc-showcase__card { background: #FFFFFF; border: 1px solid rgba(15,30,60,0.12); box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05); }

/* Feed cards: flat slate fallback, soft hover lift */
.igc-light .igc-feed-card { background: #FFFFFF; border: 1px solid rgba(15,30,60,0.12); box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05); }
.igc-light .igc-feed-card__img { background: #E2E8F0 !important; background-image: none !important; }
.igc-light .igc-feed-card:hover { box-shadow: 0 2px 4px rgba(10,20,38,0.05), 0 8px 22px rgba(10,20,38,0.08); border-color: rgba(15,30,60,0.18); }

/* Realign off-brand amber pops to navy-blue brand */
.igc-light .igc-juris__seeall-link { color: var(--igc-accent); border: 1px solid rgba(29,78,216,0.30); background: rgba(29,78,216,0.06); }
.igc-light .igc-juris__seeall-link:hover { background: rgba(29,78,216,0.10); border-color: rgba(29,78,216,0.45); }
.igc-light .igc-footer__signup-btn { background: linear-gradient(135deg, var(--igc-accent), var(--igc-accent-deep)); color: #FFFFFF; box-shadow: 0 1px 2px rgba(29,78,216,0.20), 0 4px 12px rgba(29,78,216,0.18); }

/* ─────────────────────────────────────────────────────────────────────
   HOMEPAGE COCKPIT — card lift with brand-top accent
   ───────────────────────────────────────────────────────────────────── */
.igc-light .igc-ck-card,
.igc-light .igc-ck-tile,
.igc-light .igc-ck-actions,
.igc-light .igc-ck-action {
  background: #FFFFFF !important;
  border: 1px solid rgba(15,30,60,0.12) !important;
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
}
.igc-light .igc-ck-card { border-top: 3px solid var(--igc-accent) !important; }
.igc-light .igc-ck-flag { background: #F8FAFC; border: 1px solid rgba(15,30,60,0.08); }
.igc-light .igc-ck-tile:hover { box-shadow: 0 2px 4px rgba(10,20,38,0.05), 0 8px 22px rgba(10,20,38,0.08); }

/* ─────────────────────────────────────────────────────────────────────
   REGULATOR PROFILES + COMPARISONS — shared .rp-* system
   (UKGC, MGA, AGCO, ANJ, DGOJ, MINCETUR, Curaçao + 4 comparisons)
   ───────────────────────────────────────────────────────────────────── */
html.igc-light .rp-hero { background: #FFFFFF; border-top: 3px solid var(--rp-primary, var(--igc-accent)); border-bottom: 1px solid rgba(15,30,60,0.10); }
html.igc-light .rp-cta {
  background: #FFFFFF;
  border: 1px solid rgba(15,30,60,0.12);
  border-top: 3px solid var(--rp-primary, var(--igc-accent));
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
  background-image: none !important;
}
html.igc-light .rp-takeaways,
html.igc-light .rp-pillar,
html.igc-light .rp-dual-card,
html.igc-light .rp-aside__card,
html.igc-light .rp-aside__cta {
  background: #FFFFFF !important;
  border: 1px solid rgba(15,30,60,0.12);
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
  background-image: none !important;
}
html.igc-light .rp-pillar,
html.igc-light .rp-dual-card { border-top: 3px solid var(--rp-primary, var(--igc-accent)); }
html.igc-light .rp-pillar::before,
html.igc-light .rp-dual-card::before { display: none !important; }

/* Fix #3 — pastel glow tokens + hardcoded #fff <strong> → readable dark */
html.igc-light .rp-eyebrow,
html.igc-light .rp-section__no,
html.igc-light .rp-aside__label,
html.igc-light .rp-toc__list a.is-active,
html.igc-light .rp-pillar__no,
html.igc-light .rp-tl__year,
html.igc-light .rp-cost-card h4,
html.igc-light .rp-cta__eye,
html.igc-light .rp-h1__sub,
html.igc-light .rp-stat__k .accent,
html.igc-light .rp-stat__k .unit,
html.igc-light .rp-prose a,
html.igc-light .rp-faq__q::after,
html.igc-light .rp-resource__kind,
html.igc-light .rp-tl__tag { color: var(--rp-deep, var(--igc-accent)); }
html.igc-light .rp-dropcap::first-letter { color: var(--rp-deep, var(--igc-accent)); }
html.igc-light .rp-takeaways strong,
html.igc-light .rp-pillar strong,
html.igc-light .rp-dual-card strong,
html.igc-light .rp-prose strong { color: var(--igc-text) !important; }

/* Flow nodes / timeline / callouts / comparison eyebrow stripes */
html.igc-light .rp-flow__circle { box-shadow: 0 0 0 4px rgba(29,78,216,0.10); }
html.igc-light .rp-tl::before { box-shadow: none; background: var(--rp-primary, var(--igc-accent)); }
html.igc-light .rp-comparison .rp-eyebrow,
html.igc-light .rp-cm-br-co-pe .rp-eyebrow { background: #FFFFFF; border: 1px solid rgba(15,30,60,0.12); color: var(--igc-text); }
html.igc-light .rp-callout,
html.igc-light .rp-fines,
html.igc-light .rp-cost-card,
html.igc-light .rp-faq__item,
html.igc-light .rp-resource {
  background: #FFFFFF;
  border: 1px solid rgba(15,30,60,0.12);
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
}
html.igc-light .rp-compare td.is-self { background: rgba(29,78,216,0.05); }

/* ─────────────────────────────────────────────────────────────────────
   COMPARE MATRIX — /compare/?view=matrix
   ───────────────────────────────────────────────────────────────────── */
.igc-light .igc-cmpx-hero { background: #FFFFFF; border-top: 3px solid var(--igc-accent); border-bottom: 1px solid rgba(15,30,60,0.10); }
.igc-light .igc-mrc-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(15,30,60,0.12);
  border-top: 3px solid var(--igc-accent);
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
  background-image: none !important;
}
/* Retone amber active state to navy-on-cream */
.igc-light .igc-cmpx-badge,
.igc-light .igc-cmpx-viewtoggle a.is-active { color: var(--igc-accent); background: rgba(29,78,216,0.10); border-color: rgba(29,78,216,0.30); }

/* ─────────────────────────────────────────────────────────────────────
   AML HUB
   ───────────────────────────────────────────────────────────────────── */
.igc-light .aml-hero { background: #FFFFFF; border-top: 3px solid #B45309; border-bottom: 1px solid rgba(15,30,60,0.10); }
.igc-light .aml-hub { --aml-amber: #B45309; --aml-amber-glow: #92400E; --aml-amber-soft: rgba(180,83,9,0.08); --aml-amber-ring: rgba(180,83,9,0.30); }
.igc-light .aml-track--ca {
  background: #FFFFFF !important;
  border: 1px solid rgba(15,30,60,0.12);
  border-top: 4px solid #047857;
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
  background-image: none !important;
}
.igc-light .aml-track--us {
  background: #FFFFFF !important;
  border: 1px solid rgba(15,30,60,0.12);
  border-top: 4px solid #2563EB;
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
  background-image: none !important;
}
.igc-light .aml-art-card { background: #FFFFFF; border: 1px solid rgba(15,30,60,0.12); box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05); }
.igc-light .aml-art-card:hover { box-shadow: 0 2px 4px rgba(10,20,38,0.05), 0 8px 22px rgba(10,20,38,0.08); border-color: rgba(15,30,60,0.18); }
.igc-light .aml-btn-primary { background: linear-gradient(135deg, #B45309, #92400E); color: #FFFFFF; border: 0; box-shadow: 0 1px 2px rgba(180,83,9,0.20), 0 4px 12px rgba(180,83,9,0.18); }
.igc-light .aml-btn-primary:hover { box-shadow: 0 2px 4px rgba(180,83,9,0.25), 0 8px 22px rgba(180,83,9,0.24); }
.igc-light .aml-topic-section:target { box-shadow: 0 0 0 2px rgba(180,83,9,0.30); }
/* Coming soon links — muted italic instead of vanishing at opacity:0.4 */
.igc-light .aml-art-link--coming { opacity: 1; color: #64748B; font-style: italic; font-weight: 500; }

/* ─────────────────────────────────────────────────────────────────────
   RG HUB
   ───────────────────────────────────────────────────────────────────── */
.igc-light .rg-hero { background: #FFFFFF; border-top: 3px solid #0F766E; border-bottom: 1px solid rgba(15,30,60,0.10); }
.igc-light .rg-hub { --rg-amber: #B45309; --rg-amber-glow: #92400E; --rg-amber-soft: rgba(180,83,9,0.08); --rg-amber-ring: rgba(180,83,9,0.30); }
.igc-light .rg-track--ca {
  background: #FFFFFF !important;
  border: 1px solid rgba(15,30,60,0.12);
  border-top: 4px solid #0F766E;
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
  background-image: none !important;
}
.igc-light .rg-track--us {
  background: #FFFFFF !important;
  border: 1px solid rgba(15,30,60,0.12);
  border-top: 4px solid #B45309;
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
  background-image: none !important;
}
.igc-light .rg-art-card { background: #FFFFFF; border: 1px solid rgba(15,30,60,0.12); box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05); }
.igc-light .rg-art-card:hover { box-shadow: 0 2px 4px rgba(10,20,38,0.05), 0 8px 22px rgba(10,20,38,0.08); border-color: rgba(15,30,60,0.18); }
.igc-light .rg-btn-primary { background: linear-gradient(135deg, #0F766E, #115E59); color: #FFFFFF; border: 0; box-shadow: 0 1px 2px rgba(15,118,110,0.20), 0 4px 12px rgba(15,118,110,0.18); }
.igc-light .rg-btn-primary:hover { box-shadow: 0 2px 4px rgba(15,118,110,0.25), 0 8px 22px rgba(15,118,110,0.24); }
.igc-light .rg-topic-section:target { box-shadow: 0 0 0 2px rgba(15,118,110,0.30); }
.igc-light .rg-art-link--coming { opacity: 1; color: #64748B; font-style: italic; font-weight: 500; }

/* ─────────────────────────────────────────────────────────────────────
   GLI HUB
   ───────────────────────────────────────────────────────────────────── */
.igc-light .gli-hero { background: #FFFFFF; border-top: 3px solid #1D4ED8; border-bottom: 1px solid rgba(15,30,60,0.10); }
.igc-light .gli-card--flagship {
  background: #FFFFFF !important;
  border: 1px solid rgba(15,30,60,0.12);
  border-top: 4px solid #1D4ED8;
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
  background-image: none !important;
}
.igc-light .gli-gsf-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(15,30,60,0.12);
  border-top: 3px solid #0E7490;
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
  background-image: none !important;
}
/* Kill blue glow ring on numbered step circles */
.igc-light .gli-step__num { box-shadow: 0 0 0 4px rgba(29,78,216,0.10); background: var(--igc-accent); color: #FFFFFF; }
.igc-light .gli-art-card { background: #FFFFFF; border: 1px solid rgba(15,30,60,0.12); box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05); }
.igc-light .gli-art-card:hover { box-shadow: 0 2px 4px rgba(10,20,38,0.05), 0 8px 22px rgba(10,20,38,0.08); border-color: rgba(15,30,60,0.18); }
.igc-light .gli-btn-primary { background: linear-gradient(135deg, #1D4ED8, #1E40AF); color: #FFFFFF; border: 0; box-shadow: 0 1px 2px rgba(29,78,216,0.20), 0 4px 12px rgba(29,78,216,0.18); }
.igc-light .gli-btn-primary:hover { box-shadow: 0 2px 4px rgba(29,78,216,0.25), 0 8px 22px rgba(29,78,216,0.24); }
/* Fix the inline #67E8F9 cyan-on-white link in template-gli-hub.php */
.igc-light .gli-card__link,
.igc-light .gli-card__link--gsf { color: #0E7490 !important; }

/* ─────────────────────────────────────────────────────────────────────
   JURISDICTION EXPLORER — page-jurisdiction.php
   ───────────────────────────────────────────────────────────────────── */
.iges-light .iges-hero { background: #FFFFFF; border-top: 3px solid var(--iges-accent, #1D4ED8); border-bottom: 1px solid rgba(15,30,60,0.10); }
.iges-light .iges-card--flagged {
  background: #F8FAFC;
  border-left: 3px solid var(--iges-gold, #B45309);
  padding-left: calc(1.375rem - 3px);
  background-image: none !important;
}
.iges-light .iges-card__guidance {
  background: #F8FAFC;
  border-left: 3px solid var(--iges-accent, #1D4ED8);
  padding-left: calc(1.375rem - 3px);
  background-image: none !important;
}
.iges-light .iges-theme__head {
  background: #FFFFFF !important;
  border-bottom: 1px solid rgba(15,30,60,0.10);
  background-image: none !important;
}

/* ─────────────────────────────────────────────────────────────────────
   TOPICS — /topics/ + /topics/<slug>/
   ───────────────────────────────────────────────────────────────────── */
.igc-light .igc-tpx-hero { background: #FFFFFF; border-top: 3px solid var(--igc-accent); border-bottom: 1px solid rgba(15,30,60,0.10); }
.igc-light .igc-tpx-trend__card,
.igc-light .igc-tpx-hub__card,
.igc-light .igc-tpx-related__card,
.igc-light .igc-tpx-faq__item,
.igc-light .igc-tpx-watch__list li,
.igc-light .igc-tpx-chip,
.igc-light .igc-tpx-pillnav {
  background: #FFFFFF;
  border: 1px solid rgba(15,30,60,0.12);
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
}
/* Realign yellow rank sticker to brand */
.igc-light .igc-tpx-trend__rank { background: var(--igc-accent); color: #FFFFFF; }
.igc-light .igc-tpx-div__inner { color: var(--igc-text-muted); }

/* ─────────────────────────────────────────────────────────────────────
   SEARCH PALETTE (cmd-K) — site-wide overlay
   ───────────────────────────────────────────────────────────────────── */
.igc-light .igc-pal__topic {
  background: #FFFFFF;
  border: 1px solid rgba(15,30,60,0.12);
  box-shadow: 0 1px 2px rgba(10,20,38,0.04), 0 2px 8px rgba(10,20,38,0.05);
  background-image: none !important;
}
.igc-light .igc-pal__topic::before { display: none !important; }
.igc-light .igc-pal__chip[aria-pressed="true"],
.igc-light .igc-pal__topic__juris__n,
.igc-light .igc-pal__topic__badge {
  color: var(--igc-accent);
  background: rgba(29,78,216,0.10);
  border: 1px solid rgba(29,78,216,0.30);
}

/* ─────────────────────────────────────────────────────────────────────
   SEARCH LANDING — search.php inline orbs already killed by splash-kill;
   here we band the hero properly
   ───────────────────────────────────────────────────────────────────── */
.igc-light .igc-searchlanding { background: #FFFFFF; border-top: 3px solid var(--igc-accent); border-bottom: 1px solid rgba(15,30,60,0.10); }
.igc-light .igc-searchlanding__eyebrow { color: var(--igc-accent); }
.igc-light .igc-searchlanding__title em { color: var(--igc-accent-deep); font-style: italic; }
.igc-light .igc-searchlanding__btn { background: var(--igc-accent); color: #FFFFFF; box-shadow: 0 1px 2px rgba(29,78,216,0.20), 0 4px 12px rgba(29,78,216,0.18); }
.igc-light .igc-searchlanding__jump { border: 1px solid rgba(15,30,60,0.12); background: #FFFFFF; color: var(--igc-text); }
.igc-light .igc-searchlanding__jump:hover { border-color: rgba(29,78,216,0.45); background: rgba(29,78,216,0.04); }

/* ─────────────────────────────────────────────────────────────────────
   NEWSLETTER MODAL — was hardcoded dark navy, punched into white pages
   ───────────────────────────────────────────────────────────────────── */
.igc-light .igc-nl-modal__backdrop { background: rgba(15,30,60,0.45); background-image: none !important; }
.igc-light .igc-nl-modal__panel {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid rgba(15,30,60,0.10);
  box-shadow: 0 30px 80px rgba(15,30,60,0.20), 0 0 0 1px rgba(29,78,216,0.20);
}
.igc-light .igc-nl-modal__title { color: #0F172A; }
.igc-light .igc-nl-modal__lede,
.igc-light .igc-nl-modal__success p { color: #475569; }
.igc-light .igc-nl-modal__benefits { background: #F8FAFC; border: 1px solid rgba(15,30,60,0.08); color: var(--igc-text); }
.igc-light .igc-nl-modal__input {
  background: #FFFFFF;
  color: var(--igc-text);
  border: 1px solid rgba(15,30,60,0.20);
}
.igc-light .igc-nl-modal__input:focus { border-color: var(--igc-accent); box-shadow: 0 0 0 3px rgba(29,78,216,0.20); }

/* ─────────────────────────────────────────────────────────────────────
   COMPARISON CORNERSTONES — UKGC-vs-MGA / AGCO-vs-AGLC / France-vs-Spain
   (LATAM 3-way already uses the rp-cm-br-co-pe palette covered above)
   ───────────────────────────────────────────────────────────────────── */
/* Side-A / Side-B inline glow tokens (used on 3 comparison hero stat tiles) */
.igc-light .rp-comparison .rp-stat__k,
.igc-light .rp-comparison .rp-stat__l { color: var(--rp-deep, var(--igc-accent)); }
.igc-light .rp-comparison .rp-stat__k .side-a-glow,
.igc-light .rp-comparison .rp-stat__k .side-b-glow { color: var(--rp-deep, var(--igc-accent)); }

/* =====================================================================
   CONTRAST VERIFICATION SWEEP — 2026-05-29 post-rollout
   6-agent parallel sweep returned 93 findings against the freshly
   shipped Variant B; synthesised into the 10 patches below. Catches
   yellow/green/cyan/pastel-on-white residues that the original audit
   didn't cover. Light mode only — dark mode untouched.
   ===================================================================== */

/* ── Patch #1: Topics — token-level --tpx-gold remap (14+ yellow-on-white) */
html.igc-light .igc-tpx-hero,
html.igc-light .igc-tpx-pillnav,
html.igc-light .igc-tpx-snapshot,
html.igc-light .igc-tpx-side,
html.igc-light .igc-tpx-trend,
html.igc-light .igc-tpx-div,
html.igc-light .igc-tpx-watch,
html.igc-light .igc-tpx-faq,
html.igc-light .igc-tpx-related,
html.igc-light .igc-tpx-sources,
html.igc-light .igc-tpx-hub,
html.igc-light .igc-tpx-foot,
html.igc-light .igc-tpx-missing {
  --tpx-gold: #1D4ED8;
  --tpx-gold-soft: rgba(29,78,216,0.10);
  --tpx-gold-ring: rgba(29,78,216,0.30);
}
html.igc-light .igc-tpx-cell.is-yes { color: #047857; }
html.igc-light .igc-tpx-cell.is-null { color: #64748B; }

/* ── Patch #2: Global --igc-success retone + cockpit ticker dot */
html.igc-light { --igc-success: #047857; }
html.igc-light .igc-ck-wire__lbl span::before { background: #047857; box-shadow: 0 0 8px rgba(4,120,87,0.45); }
html.igc-light .igc-ck-card:hover .igc-ck-card__arrow { color: var(--igc-accent); }

/* ── Patch #3: Explorer muted-text + coverage chips + new-reg pill */
:root.iges-light, html.iges-light { --iges-text-muted: #64748B; --iges-text-faint: #94A3B8; }
html.iges-light .iges-coverage--comprehensive .iges-coverage__chip { color: #047857; background: rgba(4,120,87,0.12); border-color: rgba(4,120,87,0.40); }
html.iges-light .iges-card__copy--done { color: #047857 !important; border-color: rgba(4,120,87,0.40) !important; background: rgba(4,120,87,0.10) !important; }
html.iges-light .iges-sidebar__crosslink-icon { color: #B45309; background: rgba(180,83,9,0.08); border-color: rgba(180,83,9,0.28); }
.igc-light .igc-srcpg__row-url { color: #64748B; }
.iges-light .iges-new-reg-pill, .igc-light .iges-new-reg-pill { color: #92400E; background: linear-gradient(135deg, rgba(180,83,9,0.10), rgba(180,83,9,0.04)); border-color: rgba(180,83,9,0.40); }
.iges-light .iges-new-reg-pill:hover, .igc-light .iges-new-reg-pill:hover { color: #78350F; background: linear-gradient(135deg, rgba(180,83,9,0.18), rgba(180,83,9,0.08)); border-color: rgba(180,83,9,0.55); }
.iges-light .iges-new-reg-pill__dot, .igc-light .iges-new-reg-pill__dot { background: #B45309; box-shadow: 0 0 0 0 rgba(180,83,9,0.55); }
.iges-light .igc-cmp-badge, .igc-light .igc-cmp-badge { color: #92400E; background: rgba(180,83,9,0.10); border-color: rgba(180,83,9,0.35); }
.iges-light .igc-cmp-crumbs a:hover, .igc-light .igc-cmp-crumbs a:hover { color: var(--igc-accent-deep, #1E40AF); }

/* ── Patch #4: Regulator-profile residual amber/green/coral + comparison sides */
html.igc-light .rp-aside__row dd strong,
html.igc-light .rp-deflist dd strong { color: var(--igc-text) !important; }
html.igc-light .rp-deflist dt { color: var(--rp-deep, var(--igc-accent)); border-color: rgba(15,30,60,0.18); background: #FFFFFF; }
html.igc-light .rp-takeaways li::before,
html.igc-light .rp-flow__t,
html.igc-light .rp-crumbs a:hover,
html.igc-light .rp-aside__cta a.go,
html.igc-light .rp-aside__cta ul a::before,
html.igc-light .rp-aside__cta ul a:hover,
html.igc-light .rp-callout__icon,
html.igc-light .rp-resource:hover .rp-resource__arrow,
html.igc-light .rp-compare thead th.is-self { color: var(--rp-deep, var(--igc-accent)); }
html.igc-light .rp-flow__circle { color: var(--rp-deep, var(--igc-accent)); background: #FFFFFF; border-color: var(--rp-deep, var(--igc-accent)); }
html.igc-light .rp-btn-ghost:hover { color: var(--rp-deep, var(--igc-accent)); border-color: var(--rp-deep, var(--igc-accent)); }
html.igc-light .rp-aside__label::before { background: var(--rp-deep, var(--igc-accent)); }
html.igc-light .rp-eyebrow__dot { background: var(--rp-deep, var(--igc-accent)); box-shadow: 0 0 6px rgba(29,78,216,0.30); }
html.igc-light .rp-donut-wrap h4,
html.igc-light .rp-aside__cta--gold a.go { color: #B45309; }
html.igc-light .rp-fines h4,
html.igc-light .rp-fine__amt { color: #B91C1C; }
html.igc-light .rp-dateline__dot { background: #047857; box-shadow: 0 0 4px rgba(4,120,87,0.40); }
html.igc-light .rp-tl[data-major]::before { background: var(--rp-deep, var(--igc-accent)); box-shadow: 0 0 0 5px rgba(29,78,216,0.18); }
html.igc-light .rp-comparison .rp-stat__k .accent--a { color: var(--rp-side-a, var(--rp-deep)); }
html.igc-light .rp-comparison .rp-stat__k .accent--b { color: var(--rp-side-b, var(--rp-deep)); }
html.igc-light .rp-comparison .rp-stat__k .accent--c { color: var(--rp-side-c, var(--rp-deep)); }
html.igc-light .rp-comparison .rp-compare thead th.is-side-a { color: var(--rp-side-a); }
html.igc-light .rp-comparison .rp-compare thead th.is-side-b { color: var(--rp-side-b); }
html.igc-light .rp-comparison .rp-compare thead th.is-side-c { color: var(--rp-side-c); }
html.igc-light .rp-cm-uk-mt .rp-stat__k .accent--b,
html.igc-light .rp-cm-uk-mt .rp-compare thead th.is-side-b { color: #8E6B1F; }
html.igc-light .rp-cm-fr-es .rp-stat__k .accent--b,
html.igc-light .rp-cm-fr-es .rp-compare thead th.is-side-b { color: #8E4A1F; }
html.igc-light .rp-comparison .rp-stat__k .accent--c { color: #A60D1B; }
html.igc-light .rp-dual-card__chip,
html.igc-light .rp-dual-card__d a { color: var(--side, var(--rp-deep, var(--igc-accent))); }
html.igc-light .rp-dual-card__d a { text-decoration-color: currentColor; }
html.igc-light .rp-comparison .rp-dual-card__cta { color: var(--side, var(--rp-deep, var(--igc-accent))); background: transparent; border-color: var(--side, var(--rp-ring)); }
html.igc-light .rp-comparison .rp-dual-card--b .rp-dual-card__chip,
html.igc-light .rp-comparison .rp-dual-card--b .rp-dual-card__cta { color: #8E6B1F; border-color: #8E6B1F; }
html.igc-light .rp-cm-br-co-pe .rp-countrycard--a { --side: #006b29; }
html.igc-light .rp-cm-br-co-pe .rp-countrycard--b { --side: #003893; }
html.igc-light .rp-cm-br-co-pe .rp-countrycard--c { --side: #A60D1B; }
html.igc-light .rp-cm-br-co-pe .rp-countrycard__chip,
html.igc-light .rp-cm-br-co-pe .rp-countrycard__rows li em,
html.igc-light .rp-cm-br-co-pe .rp-dual-card__cta { color: var(--side, var(--rp-deep)); }

/* ── Patch #5: AML hub pastel CA-green + US-blue retone */
.igc-light .aml-track__regulator--ca { color: #047857; background: rgba(16,185,129,0.10); border-color: rgba(4,120,87,0.30); }
.igc-light .aml-track__regulator--us { color: #1D4ED8; background: rgba(29,78,216,0.10); border-color: rgba(29,78,216,0.30); }
.igc-light .aml-obligation__check--ca { background: rgba(4,120,87,0.15); color: #047857; }
.igc-light .aml-obligation__check--us { background: rgba(29,78,216,0.15); color: #1D4ED8; }
.igc-light .aml-track__cta--ca { color: #047857; background: rgba(16,185,129,0.10); border-color: rgba(4,120,87,0.30); }
.igc-light .aml-track__cta--ca:hover { background: rgba(16,185,129,0.18); color: #065F46; }
.igc-light .aml-track__cta--us { color: #1D4ED8; background: rgba(29,78,216,0.10); border-color: rgba(29,78,216,0.30); }
.igc-light .aml-track__cta--us:hover { background: rgba(29,78,216,0.18); color: #1E40AF; }
.igc-light .aml-table th:nth-child(2),
.igc-light .aml-table .col-ca { color: #047857; }
.igc-light .aml-table th:nth-child(3),
.igc-light .aml-table .col-us { color: #1D4ED8; }

/* ── Patch #6: RG hub pastel teal + yellow retone */
.igc-light .rg-track__regulator--ca { color: #0F766E; background: rgba(13,148,136,0.10); border-color: rgba(15,118,110,0.30); }
.igc-light .rg-track__regulator--us { color: #B45309; background: rgba(245,158,11,0.10); border-color: rgba(180,83,9,0.30); }
.igc-light .rg-obligation__check--ca { background: rgba(15,118,110,0.15); color: #0F766E; }
.igc-light .rg-obligation__check--us { background: rgba(180,83,9,0.15); color: #B45309; }
.igc-light .rg-track__cta--ca { color: #0F766E; background: rgba(13,148,136,0.10); border-color: rgba(15,118,110,0.30); }
.igc-light .rg-track__cta--ca:hover { background: rgba(13,148,136,0.18); color: #115E59; }
.igc-light .rg-track__cta--us { color: #B45309; background: rgba(245,158,11,0.10); border-color: rgba(180,83,9,0.30); }
.igc-light .rg-track__cta--us:hover { background: rgba(245,158,11,0.18); color: #92400E; }
.igc-light .rg-table th:nth-child(2),
.igc-light .rg-table .col-ca { color: #0F766E; }
.igc-light .rg-table th:nth-child(3),
.igc-light .rg-table .col-us { color: #B45309; }

/* ── Patch #7: GLI hub badges + GSF link */
.igc-light .gli-badge-std--flagship { background: rgba(29,78,216,0.12); color: #1D4ED8; }
.igc-light .gli-badge-std--gsf { background: rgba(14,116,144,0.10); color: #0E7490; }
.igc-light .gli-gsf-card .gli-card__link { color: #0E7490 !important; }

/* ── Patch #8: Compare matrix amber-on-white retone */
.igc-light .igc-cmpx-chip__ref { color: #92691a; background: rgba(146,105,26,0.12); }
.igc-light .igc-cmpx-drawer__ref { color: #92691a; background: rgba(146,105,26,0.12); }
.igc-light .igc-cmpx-drawer__btn--primary { background: linear-gradient(135deg, var(--igc-accent,#1D4ED8), var(--igc-accent-deep,#1E40AF)); border-color: rgba(29,78,216,0.30); color: #FFFFFF; }
.igc-light .igc-cmpx-drawer__btn--primary:hover { color: #FFFFFF; box-shadow: 0 4px 12px rgba(29,78,216,0.20); }
.igc-light .igc-cmpx-cell--hit .igc-cmpx-cell__btn::before { background: var(--igc-accent, #1D4ED8); opacity: 0.85; }
.igc-light .igc-cmpx-cell--hit .igc-cmpx-cell__btn:hover { background: rgba(29,78,216,0.06); }
.igc-light .igc-cmpx-chip { border-left-color: color-mix(in srgb, var(--igc-accent, #1D4ED8) 45%, transparent); }
.igc-light .igc-cmpx-table thead th { border-bottom: 2px solid rgba(29,78,216,0.45); }
.igc-light .igc-cmpx-table tbody tr.igc-cmpx-toprow:hover .igc-cmpx-rowhead { box-shadow: inset 3px 0 0 var(--igc-accent, #1D4ED8); }
.igc-light .igc-cmpx-cell--miss .igc-cmpx-cell__btn { color: #94a3b8; }

/* ── Patch #9: Newsletter modal — eyebrow/title/benefits/consent/legal/error/close/success/input */
html.igc-light .igc-nl-modal__eyebrow { color: var(--igc-accent-deep); background: rgba(29,78,216,0.08); border-color: rgba(29,78,216,0.28); }
html.igc-light .igc-nl-modal__title em { background: linear-gradient(120deg, var(--igc-accent) 0%, var(--igc-accent-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.igc-light .igc-nl-modal__benefits span { color: var(--igc-accent-deep); }
html.igc-light .igc-nl-modal__consent { color: #475569; }
html.igc-light .igc-nl-modal__consent a { color: var(--igc-accent); text-decoration-color: rgba(29,78,216,0.5); }
html.igc-light .igc-nl-modal__consent a:hover { text-decoration-color: var(--igc-accent-deep); }
html.igc-light .igc-nl-modal__consent input { accent-color: var(--igc-accent); }
html.igc-light .igc-nl-modal__consent strong { color: var(--igc-text); }
html.igc-light .igc-nl-modal__legal { color: #64748B; }
html.igc-light .igc-nl-modal__error { color: #B91C1C; background: rgba(239,68,68,0.08); border-color: rgba(185,28,28,0.40); }
html.igc-light .igc-nl-modal__close { color: #475569; }
html.igc-light .igc-nl-modal__close:hover { background: rgba(15,30,60,0.06); color: var(--igc-text); }
html.igc-light .igc-nl-modal__success-dot { background: var(--igc-accent); color: #FFFFFF; box-shadow: 0 0 0 6px rgba(29,78,216,0.15), 0 8px 24px rgba(29,78,216,0.28); }
html.igc-light .igc-nl-modal__input:focus { border-color: var(--igc-accent); box-shadow: 0 0 0 3px rgba(29,78,216,0.20); }

/* ── Patch #10: PHP-inline-style escape hatch (atlas stats + fine amt + GLI overflow chip) */
html.igc-light .igc-atlas__stat-num[style*="#F5C842"], html.igc-light .igc-atlas__stat-num[style*="#f5c842"] { color: #B45309 !important; }
html.igc-light .igc-atlas__stat-num[style*="#10b981"] { color: #047857 !important; }
html.igc-light .igc-atlas__stat-num[style*="#3b82f6"] { color: #1D4ED8 !important; }
html.igc-light .igc-atlas__stat-num[style*="#ef4444"] { color: #B91C1C !important; }
html.igc-light .igc-atlas__stat-num[style*="#8b5cf6"] { color: #6D28D9 !important; }
html.igc-light .rp-fine__amt[style*="side-b-glow"] { color: #B45309 !important; font-weight: 600; }
html.igc-light .gli-jur-chip[style*="opacity:0.5"],
html.igc-light .gli-jur-chip[style*="opacity: 0.5"] { opacity: 1 !important; color: #64748B !important; font-style: italic; font-weight: 500; }

/* =====================================================================
   Home cockpit — Frameworks tile (LIGHT MODE ONLY)
   Default amber/yellow palette fails contrast on the white cockpit tile.
   Switch to emerald-700 in light mode only. Dark mode unaffected because
   .igc-light scoping. All inherited downstream uses (tile lens chip,
   title accent, list refs, stat values, arrow button) flip with the
   four parent tokens.
   ===================================================================== */
.igc-light .igc-ck-tile--frm {
  --ck-frm:        #047857;
  --ck-frm-glow:   #065F46;
  --ck-frm-soft:   rgba(4,120,87,0.10);
  --ck-frm-ring:   rgba(4,120,87,0.32);
}
