/* NewsToday123 — palette tokens (light values from DESIGN.md "Vibrant Pulse Editorial"; dark variant is ours) */
:root {
  --c-on-primary: 255 255 255;
  --c-surface: 250 248 255;
  --c-tertiary-fixed: 255 224 131;
  --c-on-surface: 19 27 46;
  --c-outline: 116 118 134;
  --c-secondary-container: 253 118 26;
  --c-surface-container: 234 237 255;
  --c-primary: 0 55 176;
  --c-surface-variant: 218 226 253;
  --c-surface-bright: 250 248 255;
  --c-error: 186 26 26;
  --c-on-secondary-container: 92 36 0;
  --c-tertiary: 115 92 0;
  --c-surface-container-low: 242 243 255;
  --c-on-surface-variant: 67 70 85;
  --c-primary-fixed: 220 225 255;
  --c-secondary-fixed: 255 219 202;
  --c-surface-container-high: 226 231 255;
  --c-on-tertiary-fixed-variant: 87 69 0;
  --c-on-primary-fixed-variant: 0 57 181;
  --c-surface-tint: 33 81 218;
  --c-surface-dim: 210 217 244;
  --c-on-tertiary: 255 255 255;
  --c-tertiary-fixed-dim: 238 194 0;
  --c-secondary-fixed-dim: 255 182 144;
  --c-on-secondary-fixed-variant: 120 50 0;
  --c-on-tertiary-container: 78 62 0;
  --c-inverse-surface: 40 48 68;
  --c-on-primary-fixed: 0 21 81;
  --c-on-background: 19 27 46;
  --c-inverse-on-surface: 238 240 255;
  --c-outline-variant: 196 197 215;
  --c-secondary: 157 67 0;
  --c-on-secondary-fixed: 52 17 0;
  --c-surface-container-lowest: 255 255 255;
  --c-inverse-primary: 183 196 255;
  --c-on-error: 255 255 255;
  --c-tertiary-container: 206 167 0;
  --c-surface-container-highest: 218 226 253;
  --c-error-container: 255 218 214;
  --c-background: 250 248 255;
  --c-primary-container: 29 78 216;
  --c-on-tertiary-fixed: 35 27 0;
  --c-on-primary-container: 202 211 255;
  --c-on-secondary: 255 255 255;
  --c-primary-fixed-dim: 183 196 255;
  --c-on-error-container: 147 0 10;
  --c-ink: 15 23 42;
  --c-white-fixed: 255 255 255;
}
html { color-scheme: light; }
html.dark {
  --c-surface: 12 17 32;
  --c-background: 12 17 32;
  --c-surface-bright: 12 17 32;
  --c-surface-dim: 8 12 24;
  --c-surface-container-lowest: 20 27 46;
  --c-surface-container-low: 24 33 56;
  --c-surface-container: 31 42 70;
  --c-surface-container-high: 40 53 85;
  --c-surface-container-highest: 48 63 100;
  --c-surface-variant: 48 63 100;
  --c-on-surface: 232 237 250;
  --c-on-background: 232 237 250;
  --c-on-surface-variant: 184 193 217;
  --c-outline: 138 147 176;
  --c-outline-variant: 58 70 104;
  --c-primary: 143 168 255;
  --c-on-primary: 8 22 70;
  --c-primary-container: 29 78 216;
  --c-on-primary-container: 202 211 255;
  --c-primary-fixed: 35 52 110;
  --c-primary-fixed-dim: 183 196 255;
  --c-on-primary-fixed: 220 225 255;
  --c-on-primary-fixed-variant: 183 196 255;
  --c-secondary: 255 166 110;
  --c-on-secondary: 52 17 0;
  --c-secondary-container: 253 118 26;
  --c-on-secondary-container: 255 255 255;
  --c-secondary-fixed: 94 45 12;
  --c-secondary-fixed-dim: 255 182 144;
  --c-on-secondary-fixed: 255 219 202;
  --c-on-secondary-fixed-variant: 255 182 144;
  --c-tertiary: 238 194 0;
  --c-on-tertiary: 35 27 0;
  --c-tertiary-container: 206 167 0;
  --c-on-tertiary-container: 35 27 0;
  --c-tertiary-fixed: 255 224 131;
  --c-tertiary-fixed-dim: 238 194 0;
  --c-on-tertiary-fixed: 35 27 0;
  --c-on-tertiary-fixed-variant: 87 69 0;
  --c-inverse-surface: 226 231 255;
  --c-inverse-on-surface: 40 48 68;
  --c-inverse-primary: 0 55 176;
  --c-surface-tint: 143 168 255;
  --c-error: 255 150 140;
  --c-on-error: 105 0 5;
  --c-error-container: 120 20 20;
  --c-on-error-container: 255 218 214;
}
html.dark { color-scheme: dark; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
.no-scrollbar { scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; line-height: 1; user-select: none; }
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }
/* Stretched link: whole card clickable while inner buttons stay usable */
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.above-stretch { position: relative; z-index: 2; }
/* Editorial cards: 1.5px hairline, tinted lift on hover (DESIGN.md "tactile pop elevation") */
.lift { border: 1.5px solid rgb(var(--c-outline-variant) / .45); transition: transform .2s, box-shadow .2s, border-color .2s; }
.lift:hover { transform: translateY(-2px); box-shadow: 0 4px 12px -2px rgb(29 78 216 / .12); border-color: rgb(var(--c-outline-variant)); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { display: inline-flex; animation: marquee 60s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes bars { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.wave span { transform-origin: center; }
.wave.playing span { animation: bars .9s ease-in-out infinite; }
.wave.playing span:nth-child(2n) { animation-delay: .15s; } .wave.playing span:nth-child(3n) { animation-delay: .3s; } .wave.playing span:nth-child(5n) { animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .marquee, .wave.playing span { animation: none; } * { scroll-behavior: auto !important; } .marquee { flex-wrap: wrap; } }
.fade-edge { -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
:focus-visible { outline: 2px solid rgb(var(--c-primary-container)); outline-offset: 2px; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
::selection { background: rgb(var(--c-tertiary-fixed)); color: rgb(var(--c-on-tertiary-fixed)); }

/* Article body typography (replaces @tailwindcss/typography) */
.prose-article { font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; line-height: 30px; font-weight: 450; color: rgb(var(--c-on-surface)); }
.prose-article > * + * { margin-top: 1.1em; }
.prose-article h2 { font-size: 26px; line-height: 32px; font-weight: 800; margin-top: 1.9em; letter-spacing: -0.02em; scroll-margin-top: 150px; }
.prose-article h3 { font-size: 20px; line-height: 26px; font-weight: 700; margin-top: 1.5em; letter-spacing: -0.015em; scroll-margin-top: 150px; }
.prose-article ul, .prose-article ol { padding-left: 1.4em; }
.prose-article ul { list-style: disc; } .prose-article ol { list-style: decimal; }
.prose-article li { margin-top: .45em; padding-left: .2em; } .prose-article li::marker { color: rgb(var(--c-secondary-container)); font-weight: 800; }
.prose-article strong { font-weight: 700; }
.prose-article > p:first-child::first-letter { font-size: 3.1em; line-height: .9; font-weight: 800; float: left; margin: .06em .12em 0 0; color: rgb(var(--c-primary)); }
.prose-article blockquote { border-left: 4px solid rgb(var(--c-secondary-container)); background: rgb(var(--c-tertiary-fixed) / .25); padding: 16px 20px; border-radius: 0 1rem 1rem 0; font-size: 19px; line-height: 30px; font-weight: 600; }
.prose-article a { color: rgb(var(--c-primary)); text-decoration: underline; }
@media (max-width: 767px) { .prose-article { font-size: 16.5px; line-height: 28px; } .prose-article h2 { font-size: 22px; line-height: 28px; } }
