/* The Pulse — light mode. Dark is the house default; this file only applies under html.light.
   The magazine cover (.cover) and text laid over photos (badges, image captions) stay light-on-dark in both modes. */

html.light { color-scheme: light; --pg:#f6f4ef; --ink:#1b1e25; --ink2:#3b414d; --mute:#5f6573; --line:rgba(17,24,39,.12); --amber-ink:#a35a06; }
html.light body { background: var(--pg); color: var(--ink); }
html.light .grain { opacity: .035; }

/* Tailwind "white on dark" utilities → ink on paper */
html.light .text-white { color: var(--ink); }
html.light .text-white\/90, html.light .text-white\/80, html.light .text-white\/75 { color: rgba(27,30,37,.88); }
html.light .text-white\/70, html.light .text-white\/60 { color: rgba(27,30,37,.74); }
html.light .text-white\/50, html.light .text-white\/45 { color: rgba(27,30,37,.62); }
html.light .text-white\/40, html.light .text-white\/30 { color: rgba(27,30,37,.52); }
html.light .bg-white\/5 { background-color: rgba(17,24,39,.035); }
html.light .bg-white\/10 { background-color: rgba(17,24,39,.06); }
html.light .hover\:bg-white\/20:hover, html.light .bg-white\/20 { background-color: rgba(17,24,39,.1); }
html.light .border-white\/10, html.light .border-white\/15, html.light .border-white\/20 { border-color: var(--line); }
html.light .ring-white\/10 { --tw-ring-color: var(--line); }
html.light .bg-\[\#0b0d12\]\/85, html.light .bg-\[\#0b0d12\]\/90 { background-color: rgba(246,244,239,.9); }
html.light .from-\[\#0b0d12\] { --tw-gradient-from: var(--pg) var(--tw-gradient-from-position); --tw-gradient-to: rgba(246,244,239,0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
html.light .via-\[\#0b0d12\]\/40 { --tw-gradient-stops: var(--tw-gradient-from), rgba(246,244,239,.4) var(--tw-gradient-via-position), var(--tw-gradient-to); }
html.light .bg-black { background-color: #e7e3da; }
html.light .text-amber-400, html.light .text-amber-300 { color: var(--amber-ink); }
html.light .hover\:text-amber-400:hover { color: var(--amber-ink); }

/* Base components */
html.light .glass-card { background: rgba(255,255,255,.7); border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(17,24,39,.25); }
html.light .prose-pulse { color: var(--ink2); }
html.light .prose-pulse h3 { color: var(--ink); }
html.light .prose-pulse a { color: var(--amber-ink); }
html.light .prose-pulse blockquote { color: var(--mute); }
html.light .dropcap::first-letter { color: var(--amber-ink); }

/* Civic desk (recap pages) */
html.light .civic-kicker { color: var(--amber-ink); border-top-color: var(--ink); }
html.light .civic h2 { color: var(--ink); }
html.light .box { background: #fff8eb; border-color: rgba(163,90,6,.22); }
html.light .box h3 { color: var(--amber-ink); }
html.light .box p { color: var(--ink2); }
html.light .box dt { color: var(--ink); }
html.light .box dd { color: var(--ink2); }
html.light .nums b { color: var(--ink); }
html.light .nums small, html.light .byline, html.light .foot { color: var(--mute); }
html.light .byline, html.light .foot { border-color: var(--line); }
html.light .breakdown .box { background: #f1f2ff; border-color: rgba(79,70,229,.2); }
html.light .breakdown .box h3 { color: #4338ca; }
html.light .breakdown h2 { border-left-color: #6366f1; }
html.light .tabbtn { color: rgba(27,30,37,.65); border-color: var(--line); }
html.light .tabbtn.active { color: #000; }
html.light .breakdown-active .tabbtn.active { color: #fff; background: #6366f1; border-color: #6366f1; }

/* Politics Pulse */
html.light .pp-card { background: rgba(255,255,255,.75); border-color: var(--line); }
html.light .pp-kicker, html.light .cand-field dt { color: #0369a1; }
html.light .pp-h2 { color: var(--ink); }
html.light .rt p, html.light .rt ul, html.light .cand-field dd { color: var(--ink2); }
html.light .sample { color: #92400e; }

/* Keep these light-on-dark in both modes */
html.light .cover .text-white, html.light .cover [class*="text-white"] { color: #fff; }
html.light .badge.text-white\/80, html.light .badge.text-white { color: rgba(255,255,255,.9); }
html.light .badge.bg-black\/70 { border-color: rgba(255,255,255,.2); }
html.light figcaption.text-white { color: #fff; }

/* Toggle button */
.mode-toggle { width:2.25rem; height:2.25rem; display:inline-flex; align-items:center; justify-content:center; border-radius:999px;
  border:1px solid rgba(255,255,255,.15); color:rgba(255,255,255,.8); }
.mode-toggle:hover { color:#f59e0b; border-color:#f59e0b; }
html.light .mode-toggle { border-color: var(--line); color: var(--ink2); }
.mode-toggle .i-moon { display:none; } html.light .mode-toggle .i-moon { display:block; } html.light .mode-toggle .i-sun { display:none; }

/* Sky accents (Politics Pulse) */
html.light .text-sky-200, html.light .text-sky-200\/80, html.light .text-sky-300 { color: #0369a1; }
html.light .bg-sky-400\/15 { background-color: rgba(14,165,233,.12); }
html.light .border-sky-400\/30, html.light .border-sky-400\/40 { border-color: rgba(3,105,161,.35); }
html.light .text-amber-200 { color: #92400e; }
html.light .bg-amber-400\/10 { background-color: rgba(245,158,11,.14); }

/* Text laid over a photo/sketch (featured hero) stays white on a dark scrim in both modes */
html.light .on-image .from-\[\#0b0d12\] { --tw-gradient-from: rgba(11,13,18,.92) var(--tw-gradient-from-position); --tw-gradient-to: rgba(11,13,18,0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
html.light .on-image .via-\[\#0b0d12\]\/40 { --tw-gradient-stops: var(--tw-gradient-from), rgba(11,13,18,.45) var(--tw-gradient-via-position), var(--tw-gradient-to); }
html.light .on-image .text-white { color:#fff; }
html.light .on-image .text-white\/80 { color:rgba(255,255,255,.85); }
html.light .on-image .text-white\/60 { color:rgba(255,255,255,.7); }
html.light .on-image .text-amber-400 { color:#fbbf24; }
