/* Light-mode overrides for inner pages — forces dark text on light backgrounds
   WITHOUT touching colored banner sections (red/orange) or CTA buttons. */

[data-theme="light"] html,
[data-theme="light"] body { background: var(--bg-body) !important; color: var(--text-primary) !important; }

/* Section backgrounds that hardcode near-black */
[data-theme="light"] .org-section,
[data-theme="light"] .values-section,
[data-theme="light"] .value-card,
[data-theme="light"] .site-footer,
[data-theme="light"] .r-stat,
[data-theme="light"] .tl-section,
[data-theme="light"] .join-side-a,
[data-theme="light"] .join-side-b,
[data-theme="light"] .approach-section,
[data-theme="light"] .join-section { background: var(--bg-section) !important; border-color: var(--border) !important; }

/* Titles / headings on light backgrounds */
[data-theme="light"] .apply-title,
[data-theme="light"] .join-hero-title,
[data-theme="light"] .join-side-title,
[data-theme="light"] .join-headline,
[data-theme="light"] .s-title,
[data-theme="light"] .ent-panel-title,
[data-theme="light"] .ent-services-headline,
[data-theme="light"] .lead-title,
[data-theme="light"] .value-title,
[data-theme="light"] .org-card-name,
[data-theme="light"] .org-founder-name,
[data-theme="light"] .org-tagline-text,
[data-theme="light"] .r-hero-title,
[data-theme="light"] .r-setup-title,
[data-theme="light"] .nil-title,
[data-theme="light"] .tl-title,
[data-theme="light"] .tl-intro-title,
[data-theme="light"] .footer-brand,
[data-theme="light"] .approach-item-title { color: var(--text-primary) !important; }

/* Body / description text */
[data-theme="light"] .apply-sub,
[data-theme="light"] .join-hero-sub,
[data-theme="light"] .join-side-desc,
[data-theme="light"] .join-side-bullet,
[data-theme="light"] .approach-item-desc,
[data-theme="light"] .join-apply-desc { color: var(--text-secondary) !important; }

/* Catch-all for paragraph text on inner pages — but exclude red/orange banner zones and dark hero/statement/footer */
[data-theme="light"] p:not(.nil-banner p):not(.nil-cta p):not(.cf-hero p):not(.cf-statement p):not(.cf-footer p),
[data-theme="light"] li { color: var(--text-secondary) !important; }

/* Force pure white in dark sections */
[data-theme="light"] .cf-hero .cf-hero-sub,
[data-theme="light"] .cf-hero p,
[data-theme="light"] .cf-statement p,
[data-theme="light"] .cf-statement .cf-statement-text,
[data-theme="light"] .cf-footer p,
[data-theme="light"] .cf-footer a { color: #fff !important; }

/* ── HANDS-OFF ZONES ──
   Red/orange CTA banners keep their colored background and white text. */
[data-theme="light"] .nil-banner,
[data-theme="light"] .nil-cta { background: var(--red) !important; }
[data-theme="light"] .nil-banner.org,
[data-theme="light"] .nil-cta.org { background: var(--orange) !important; }
[data-theme="light"] .nil-banner *,
[data-theme="light"] .nil-cta * { color: inherit; }
[data-theme="light"] .nil-banner-title,
[data-theme="light"] .nil-banner-headline,
[data-theme="light"] .nil-stat-num,
[data-theme="light"] .nil-cta-title { color: #fff !important; }
[data-theme="light"] .nil-stat-label,
[data-theme="light"] .nil-cta-sub { color: rgba(255,255,255,0.7) !important; }
[data-theme="light"] .nil-stat { background: transparent !important; }

/* CTA buttons — preserve solid red/orange background with white text */
[data-theme="light"] .g-nav-cta,
[data-theme="light"] .join-side-cta,
[data-theme="light"] .join-side-cta.red,
[data-theme="light"] .join-apply-btn,
[data-theme="light"] .join-apply-btn.red,
[data-theme="light"] .nil-cta-btn,
[data-theme="light"] .apply-btn { color: #fff !important; }
[data-theme="light"] .join-apply-btn.red,
[data-theme="light"] .join-side-cta.red { background: var(--red) !important; border-color: var(--red) !important; }
[data-theme="light"] .join-apply-btn.org,
[data-theme="light"] .join-side-cta.org { background: var(--orange) !important; border-color: var(--orange) !important; }
[data-theme="light"] .nil-cta-btn { background: #fff !important; color: var(--red) !important; }
