/* =========================================================
   News Flash INDIA — public theme
   Editorial, premium, Hindi-first. Light + dark.
   ========================================================= */
:root {
  --paper: #faf8f4;
  --surface: #ffffff;
  --ink: #15130f;
  --ink-2: #3b362e;
  --muted: #7a7266;
  --rule: #e7e1d5;
  --rule-strong: #15130f;
  --accent: #b3121b;
  --accent-2: #8e0e15;
  --gold: #a8864f;
  --band: #14120f;
  --band-ink: #f4efe6;
  --band-muted: #a69d8f;
  --shadow: 0 1px 2px rgba(20, 16, 10, .05), 0 8px 24px -12px rgba(20, 16, 10, .18);
  --radius: 4px;
  --serif: "Noto Serif Devanagari", "Tiro Devanagari Hindi", Georgia, serif;
  --sans: "Mukta", "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --wrap: 1240px;
  --gutter: 16px;
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #0f0e0c;
  --surface: #181613;
  --ink: #f2ede4;
  --ink-2: #d2cabc;
  --muted: #988f81;
  --rule: #2c2925;
  --rule-strong: #f2ede4;
  --accent: #ea3b3f;
  --accent-2: #ff5a5e;
  --gold: #c9a66b;
  --band: #1a1815;
  --band-ink: #f2ede4;
  --band-muted: #9d9486;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.ic { flex: none; display: inline-block; vertical-align: -0.15em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-media { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top bar ---------- */
.topbar { background: var(--band); color: var(--band-muted); font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right a:hover { color: var(--band-ink); }
.today { letter-spacing: .02em; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.topbar .icon-btn { width: 28px; height: 28px; color: var(--band-ink); }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: inline; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- Masthead ---------- */
.masthead { background: var(--paper); padding: 22px 0 6px; }
.masthead-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { justify-self: center; display: inline-flex; }
.brand img { max-height: 64px; width: auto; }
.wordmark { display: inline-flex; align-items: baseline; gap: .18em; font-family: var(--display); line-height: 1; white-space: nowrap; }
.wm-news { font-weight: 900; font-size: clamp(34px, 5.2vw, 60px); letter-spacing: -.02em; color: var(--ink); }
.wm-flash { font-weight: 800; font-style: italic; font-size: clamp(34px, 5.2vw, 60px); letter-spacing: -.02em; color: var(--accent); }
.wm-india {
  align-self: center; font-family: var(--sans); font-weight: 700; font-size: clamp(11px, 1.1vw, 14px); letter-spacing: .32em;
  color: var(--ink); padding: 5px 0 5px .32em; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); margin-left: .25em;
}
.wordmark.small .wm-news, .wordmark.small .wm-flash { font-size: 28px; }
.wordmark.small .wm-india { font-size: 10px; }
.wordmark.light .wm-news, .wordmark.light .wm-india { color: var(--band-ink); }
.wordmark.light .wm-news, .wordmark.light .wm-flash { font-size: 40px; }
.tagline {
  text-align: center; margin: 10px 0 0; font-size: 13px; color: var(--muted); letter-spacing: .08em;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.tagline::before, .tagline::after { content: ""; height: 1px; width: 48px; background: var(--gold); opacity: .7; }
.menu-open { justify-self: start; }
.search-open { display: none; justify-self: end; }
.search {
  justify-self: end; display: flex; align-items: center; border: 1px solid var(--rule); background: var(--surface);
  border-radius: 999px; padding: 0 4px 0 16px; width: min(280px, 100%); transition: border-color .2s;
}
.search:focus-within { border-color: var(--ink); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; padding: 8px 0; width: 100%; color: var(--ink); }
.search button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); }
.search.big { width: 100%; max-width: 560px; margin-top: 20px; padding-left: 20px; justify-self: start; }
.search.big input { font-size: 18px; padding: 12px 0; }

@media (max-width: 860px) {
  .masthead { padding: 14px 0 4px; }
  .masthead .search { display: none; }
  .search-open { display: inline-grid; }
  .tagline { display: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); box-shadow: inset 0 3px 0 -2px var(--rule-strong);
}
.nav-in { display: flex; align-items: center; gap: 12px; }
.nav-mark {
  display: none; font: italic 900 20px/1 var(--display); color: var(--accent); padding-right: 12px; border-right: 1px solid var(--rule);
}
.nav.stuck .nav-mark { display: inline-block; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list > li { position: relative; flex: none; }
.nav-list > li > a {
  display: block; padding: 12px 12px; font-size: 16px; font-weight: 600; color: var(--ink-2); position: relative; white-space: nowrap;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-list > li > a:hover, .nav-list > li > a.on { color: var(--ink); }
.nav-list > li > a:hover::after, .nav-list > li > a.on::after { transform: scaleX(1); }
.sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 190px; list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); border-radius: var(--radius);
}
.sub a { display: block; padding: 8px 12px; font-size: 15px; border-radius: 3px; }
.sub a:hover { background: var(--paper); color: var(--accent); }
@media (hover: hover) and (min-width: 861px) {
  .nav-list { overflow: visible; flex-wrap: wrap; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
}

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--rule); background: var(--surface); }
.ticker-in { display: flex; align-items: center; height: 42px; gap: 14px; }
.ticker-label {
  flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 13px; letter-spacing: .06em; padding: 4px 12px 3px; border-radius: 2px;
}
.ticker-label .ic { animation: pulse 1.6s ease-in-out infinite; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { padding: 0 28px; font-size: 15px; font-weight: 500; white-space: nowrap; position: relative; }
.ticker-move a::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateY(-50%); }
.ticker-move a:hover { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; } .ticker-track { overflow-x: auto; } }

/* ---------- Cards ---------- */
.card { position: relative; }
.card-media { display: block; position: relative; overflow: hidden; background: color-mix(in srgb, var(--ink) 6%, var(--paper)); border-radius: var(--radius); aspect-ratio: 3 / 2; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.035); }
.play {
  position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .65); color: #fff; backdrop-filter: blur(4px); padding-left: 2px;
}
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--c, var(--accent)); margin-bottom: 4px;
}
[data-theme="dark"] .kicker { color: color-mix(in srgb, var(--c, var(--accent)) 55%, #fff); }
.kicker.big { font-size: 15px; padding-bottom: 2px; border-bottom: 2px solid currentColor; margin-bottom: 14px; }
.card-title { font-family: var(--serif); font-weight: 700; margin: 0; line-height: 1.42; color: var(--ink); font-size: 18px; }
.card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.card:hover .card-title a { background-size: 100% 1px; }
.card-grid .card-title, .card-stack .card-title, .card-mini .card-title, .card-text .card-title, .card-num .card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.card-grid .card-title, .card-stack .card-title, .card-text .card-title, .card-num .card-title { max-height: calc(1.42em * 4 + 2px); }
.card-mini .card-title { -webkit-line-clamp: 3; max-height: calc(1.45em * 3 + 2px); }
.timeline a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card-deck { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card-deck { color: var(--ink-2); font-size: 16px; margin: 8px 0 0; line-height: 1.6; }
.meta { font-size: 13px; color: var(--muted); margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

.card-lead .card-media { aspect-ratio: 16 / 10; }
.card-lead .card-body { padding-top: 16px; }
.card-lead .card-title { font-size: clamp(24px, 3vw, 34px); line-height: 1.32; font-weight: 800; letter-spacing: -.005em; }
.card-lead .card-deck { font-size: 17px; }

.card-grid .card-body { padding-top: 12px; }
.card-grid .card-title { font-size: 17px; }

.card-stack { display: grid; grid-template-columns: 1fr 112px; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.card-stack:first-child { padding-top: 0; }
.card-stack:last-child { border-bottom: 0; }
.card-stack .card-media { order: 2; aspect-ratio: 1; }
.card-stack .card-title { font-size: 16.5px; }
.card-stack .meta { margin-top: 6px; }

.card-row { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.card-row .card-media { order: 2; aspect-ratio: 3 / 2; }
.card-row .card-title { font-size: 21px; }
@media (max-width: 640px) {
  .card-row { grid-template-columns: minmax(0, 1fr) 112px; gap: 14px; padding: 16px 0; }
  .card-row .card-media { aspect-ratio: 1; }
  .card-row .card-title { font-size: 17px; }
  .card-row .card-deck { display: none; }
}

.card-mini { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.card-mini:last-child { border-bottom: 0; }
.card-mini .card-media { aspect-ratio: 1; }
.card-mini .card-title { font-size: 15.5px; line-height: 1.45; }
.card-mini .meta { margin-top: 4px; font-size: 12px; }
.card-mini .kicker { font-size: 12px; margin-bottom: 2px; }

.card-text { padding: 16px 0 0; border-top: 1px solid var(--rule); }
.card-text .card-title { font-size: 16.5px; }

.card-num .card-body { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.card-num .num { font: 900 34px/1 var(--display); color: var(--gold); font-style: italic; }
.card-num .card-title { font-size: 16px; }
.card-num:last-child .card-body { border-bottom: 0; }

.card-overlay { border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.card-overlay .card-media { aspect-ratio: 4 / 5; border-radius: 0; }
.card-overlay .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8, 6, 4, .92)); }
.card-overlay .card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; color: #fff; pointer-events: none; }
.card-overlay .card-body a { pointer-events: auto; }
.card-overlay .card-title { color: #fff; font-size: 21px; }
.card-overlay .meta { color: rgba(255, 255, 255, .7); }
.card-overlay .kicker { color: #fff !important; background: var(--accent); padding: 0 8px; border-radius: 2px; }
.card-overlay .play { left: auto; right: 14px; top: 14px; bottom: auto; width: 46px; height: 46px; z-index: 1; }

/* ---------- Home: top stories ---------- */
.top-stories { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, .85fr); gap: 32px; padding-top: 28px; padding-bottom: 36px; }
.top-stories > * { min-width: 0; }
.ts-stack { border-left: 1px solid var(--rule); padding-left: 32px; }
.ts-live { border-left: 1px solid var(--rule); padding-left: 32px; }
.live-title { display: flex; align-items: center; gap: 8px; font: 700 15px var(--sans); letter-spacing: .08em; margin: 0 0 14px; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.timeline li { position: relative; padding: 0 0 16px 20px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--accent); }
.timeline time { display: block; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.timeline a { font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.5; }
.timeline a:hover { color: var(--accent); }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--accent); margin-top: 4px; }
@media (max-width: 1080px) {
  .top-stories { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .ts-live { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-strong); padding-top: 18px; }
  .timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (max-width: 760px) {
  .top-stories { grid-template-columns: 1fr; gap: 22px; padding-top: 16px; }
  .ts-stack { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 16px; }
  .timeline { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; padding-top: 12px; border-top: 3px solid var(--ink); position: relative; }
.section-head::before { content: ""; position: absolute; top: -3px; left: 0; width: 72px; height: 3px; background: var(--c, var(--accent)); }
.section-head h2 { font: 800 clamp(24px, 2.6vw, 30px)/1.2 var(--serif); margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2 a:hover { color: var(--c, var(--accent)); }
.section-subs { display: flex; gap: 6px; flex-wrap: wrap; }
.section-subs a { font-size: 14px; font-weight: 600; padding: 2px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); }
.section-subs a:hover { border-color: var(--ink); color: var(--ink); }
.see-all { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.see-all:hover { color: var(--c, var(--accent)); }

.grid-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
.grid-2x2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.text-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.grid-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; }
.grid-split .card-row { grid-template-columns: 1fr; border: 0; padding: 0; }
.grid-split .card-row .card-media { order: 0; aspect-ratio: 16 / 9; }
.grid-split .card-row .card-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.list-col .card-mini:first-child { padding-top: 0; }
.grid-overlay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.section-band, .section-video { background: var(--band); color: var(--band-ink); border-top: 0 !important; }
.section-band .section-head, .section-video .section-head { border-top-color: var(--band-ink); }
.section-band .see-all, .section-video .see-all { color: var(--band-muted); }
.section-band .section-subs a { border-color: #3a362f; color: var(--band-muted); }
.section-band + .section, .section-video + .section { border-top: 0; }
.section-video .card-overlay .card-media { aspect-ratio: 16 / 10; }
.section-video .card-overlay .card-title { font-size: clamp(20px, 2.4vw, 28px); }
.video-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; }
.section-video .card-mini { border-color: #2f2b26; }
.section-video .card-mini .card-title { color: var(--band-ink); }
.section-video .card-mini .kicker { color: var(--gold) !important; }
.section-video .card-mini .card-media::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; background: rgba(0, 0, 0, .25); }
.section-video .play { display: none; }
.section-video .card-overlay .play { display: grid; }

.section-popular { background: color-mix(in srgb, var(--gold) 7%, var(--paper)); }
.popular-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
.popular-grid .card-num .card-body { border-bottom: 1px solid var(--rule) !important; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-feature, .grid-split, .video-grid { grid-template-columns: 1fr; gap: 24px; }
  .popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid-3, .text-row { grid-template-columns: 1fr; }
  .grid-overlay { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .grid-overlay > * { scroll-snap-align: start; }
  .popular-grid { grid-template-columns: 1fr; }
  .section { padding: 28px 0; }
}
@media (max-width: 520px) {
  .grid-2x2, .grid-4 { grid-template-columns: 1fr; }
  .grid-2x2 .card-grid, .grid-4 .card-grid { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
  .grid-2x2 .card-grid .card-media, .grid-4 .card-grid .card-media { order: 2; aspect-ratio: 1; }
  .grid-2x2 .card-grid .card-body, .grid-4 .card-grid .card-body { padding-top: 0; }
  .grid-3 .card-grid { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 14px; }
  .grid-3 .card-grid .card-media { order: 2; aspect-ratio: 1; }
  .grid-3 .card-grid .card-body { padding-top: 0; }
}

/* ---------- Ads ---------- */
.ad { max-width: var(--wrap); margin: 18px auto; padding: 0 var(--gutter); text-align: center; }
.ad-label { display: block; font-size: 11px; color: var(--muted); letter-spacing: .12em; margin-bottom: 4px; }
.sidebar .ad { padding: 0; margin: 0 0 28px; }

/* ---------- Page heads / lists ---------- */
.page-head { padding: 36px 0 28px; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--gold)) 6%, var(--paper)), var(--paper)); }
.page-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c, var(--accent)); }
[data-theme="dark"] .page-kicker { color: color-mix(in srgb, var(--c, var(--accent)) 55%, #fff); }
.page-head h1 { font: 800 clamp(32px, 5vw, 52px)/1.2 var(--serif); margin: 4px 0 0; letter-spacing: -.01em; }
.page-intro { color: var(--ink-2); font-size: 18px; margin: 10px 0 0; max-width: 680px; }
.tabs { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.tabs a { padding: 5px 16px; border-radius: 999px; border: 1px solid var(--rule); font-weight: 600; font-size: 15px; background: var(--surface); }
.tabs a.on, .tabs a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 32px; padding-bottom: 48px; }
.list-lead { padding-bottom: 24px; border-bottom: 1px solid var(--rule-strong); }
.list-rows .card-row:last-child { border-bottom: 0; }
.empty { color: var(--muted); font-size: 18px; padding: 40px 0; }
@media (max-width: 980px) { .list-layout { grid-template-columns: 1fr; gap: 24px; } }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0 0; border-top: 1px solid var(--rule-strong); margin-top: 8px; flex-wrap: wrap; }
.pager-nums { display: flex; gap: 4px; align-items: center; }
.pager-nums a, .pager-nums span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-weight: 600; }
.pager-nums a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.pager-nums .on { background: var(--ink); color: var(--paper); }
.pager-nums .gap { color: var(--muted); }
.pager-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; }
.pager-btn:hover { border-color: var(--ink); }

/* ---------- Sidebar ---------- */
.sidebar { min-width: 0; }
.widget { margin-bottom: 36px; }
.widget-title { font: 800 19px/1.3 var(--serif); margin: 0 0 6px; padding-top: 10px; border-top: 3px solid var(--ink); position: relative; }
.widget-title::before { content: ""; position: absolute; top: -3px; left: 0; width: 44px; height: 3px; background: var(--accent); }
/* Stick the whole column, not its first widget. A sticky first child keeps its
   place in flow, so once it is taller than the viewport it slides down over the
   widgets below it — on a fresh install "सबसे ज़्यादा पढ़ी गईं" is empty, so the
   tall latest-news widget came first and printed on top of the tag cloud. */
@media (min-width: 981px) {
  .article-layout .sidebar {
    position: sticky; top: 72px; align-self: start;
    max-height: calc(100vh - 88px); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .article-layout .sidebar > .widget:last-child { margin-bottom: 0; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.chip { font-size: 14px; padding: 3px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); background: var(--surface); }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--gold)); width: 0; z-index: 60; transition: width .1s linear; }
.article-head { padding-top: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }
.article-title { font: 700 clamp(28px, 4vw, 42px)/1.35 var(--serif); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.article-deck { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--ink-2); margin: 16px 0 0; padding-left: 16px; border-left: 3px solid var(--gold); }
.byline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.byline-who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-text { display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 18px; }
.byline-name { font-weight: 700; }
.byline-name:hover { color: var(--accent); }
.byline-meta { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.byline-meta span { display: inline-flex; align-items: center; gap: 4px; }
.share { display: flex; gap: 6px; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--ink-2); transition: all .2s; }
.share a:hover, .share button:hover { color: #fff; border-color: transparent; }
.sh-wa:hover { background: #25d366; } .sh-fb:hover { background: #1877f2; } .sh-x:hover { background: #000; } .sh-tg:hover { background: #229ed9; } .sh-copy:hover { background: var(--ink); color: var(--paper) !important; }
.share .copied { background: var(--ink); color: var(--paper); }

.article-media { margin: 28px auto 0; }
.article-media img { width: 100%; border-radius: var(--radius); }
.article-media figcaption { font-size: 14px; color: var(--muted); padding-top: 8px; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin: 1.4em 0; }
.article-media .embed { margin: 0; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 32px; padding-bottom: 32px; }
.article-main { max-width: 740px; min-width: 0; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; gap: 24px; } .article-main { max-width: none; } }

.prose { font-size: 19px; line-height: 1.9; color: var(--ink); overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose span { font: inherit !important; color: inherit !important; background: none !important; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); line-height: 1.4; margin: 1.6em 0 .6em; }
.prose h1, .prose h2 { font-size: 1.35em; } .prose h3 { font-size: 1.18em; } .prose h4 { font-size: 1.05em; }
.prose strong, .prose b { font-weight: 700; }
.prose img { border-radius: var(--radius); margin: 1.4em auto; height: auto !important; max-width: 100% !important; }
.prose figure { margin: 1.4em 0; }
.prose blockquote:not([class]) { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.1em; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.prose iframe { max-width: 100%; }
.prose .twitter-tweet, .prose .instagram-media { margin: 1.4em auto !important; }
.prose div[class*="md:"] { margin: 0 !important; font-size: inherit !important; }
@media (max-width: 640px) { .prose { font-size: 18px; line-height: 1.85; } }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 20px 0; border-top: 1px solid var(--rule); margin-top: 28px; }
.article-tags > span { font-weight: 700; font-size: 14px; margin-right: 4px; }
.share-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 22px; border-radius: 10px; background: color-mix(in srgb, #25d366 9%, var(--surface)); border: 1px solid color-mix(in srgb, #25d366 30%, var(--rule)); margin: 8px 0 28px; }
.share-cta p { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.btn-wa { display: inline-flex; align-items: center; gap: 8px; background: #1fa855; color: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.btn-wa:hover { background: #178a45; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--rule-strong); padding-top: 20px; }
.pn { display: block; padding: 4px 0; }
.pn span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.pn strong { display: block; font-family: var(--serif); font-size: 16px; line-height: 1.5; margin-top: 4px; }
.pn:hover strong { color: var(--accent); }
.pn-next { text-align: right; }
@media (max-width: 640px) { .prevnext { grid-template-columns: 1fr; } .pn-next { text-align: left; } }
.related { background: color-mix(in srgb, var(--ink) 3%, var(--paper)); }

/* ---------- Forms, buttons, notices ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; }
.btn:hover { background: var(--accent); color: #fff; }
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 16px; }
.form input, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.hp { position: absolute !important; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.notice.ok { background: color-mix(in srgb, #15803d 12%, var(--surface)); color: #15803d; }
.notice.bad { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; padding-top: 36px; padding-bottom: 56px; }
.contact-info > div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-info span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.contact-info a, .contact-info p { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 2px 0 0; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 24px; } }
.page-body { padding-top: 32px; padding-bottom: 56px; }

.error-page { text-align: center; padding-top: 60px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; }
.error-code { font: italic 900 clamp(90px, 16vw, 150px)/1 var(--display); color: var(--accent); }
.error-page h1 { font: 800 32px/1.3 var(--serif); margin: 10px 0 4px; }
.error-page p { color: var(--muted); }
.error-page .search.big { justify-self: center; margin: 16px 0 20px; }

.gallery-grid { columns: 3 260px; column-gap: 16px; padding: 32px 0 56px; }
.gallery-item { display: block; break-inside: avoid; margin-bottom: 16px; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 4, 3, .92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--band); color: var(--band-muted); margin-top: 0; padding-top: 56px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1.6fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid #2f2b26; }
.footer-brand p { margin: 16px 0 18px; max-width: 360px; line-height: 1.7; }
.footer h4 { color: var(--band-ink); font: 700 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 8px 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer-cats { columns: 2; column-gap: 24px; }
.footer-cats li, .footer-contact li { margin-bottom: 8px; }
.footer a:hover { color: var(--band-ink); }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3a352f; display: grid; place-items: center; }
.footer-social a:hover { background: var(--band-ink); color: var(--band); }
.contact-info .footer-social a { border-color: var(--rule); color: var(--ink-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 28px; font-size: 13px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(10, 8, 6, .5); }
.drawer[hidden] { display: none; }
.drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); background: var(--paper); overflow-y: auto; padding: 18px 20px 40px; animation: slidein .25s ease; }
@keyframes slidein { from { transform: translateX(-100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-search { display: flex; border: 1px solid var(--rule); border-radius: 999px; padding: 0 6px 0 16px; margin-bottom: 12px; background: var(--surface); }
.drawer-search input { border: 0; outline: 0; background: none; font: inherit; padding: 10px 0; flex: 1; color: var(--ink); min-width: 0; }
.drawer-search button { width: 36px; display: grid; place-items: center; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li > a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); font: 700 18px var(--serif); }
.drawer .drawer-sub { font: 500 16px var(--sans); padding-left: 16px; color: var(--ink-2); }
body.no-scroll { overflow: hidden; }

[data-theme="dark"] img[src*="placeholder.svg"] { filter: invert(.92) hue-rotate(180deg) brightness(.9); }

/* print */
@media print { .topbar, .nav, .ticker, .sidebar, .share, .share-cta, .footer, .related, .ad, .prevnext { display: none !important; } }

/* =========================================================
   Chosen design — approved by the client 2026-10-10.
   Modern digital news: sans-serif Hindi, card surfaces on a cool
   neutral page, colour carried by the category chip. Keeps the
   light and dark palettes, so the header toggle stays meaningful.
   Overrides the tokens and components defined above.
   ========================================================= */

:root {
  --paper: #f1f3f6;
  --surface: #ffffff;
  --ink: #10131a;
  --ink-2: #434a57;
  --muted: #727b8a;
  --rule: #dfe3ea;
  --rule-strong: #10131a;
  --accent: #d11a1f;
  --accent-2: #a81317;
  --gold: #d11a1f;
  --band: #10131a;
  --band-ink: #eef1f5;
  --band-muted: #949cab;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 19, 26, .06), 0 10px 24px -16px rgba(16, 19, 26, .35);
}
[data-theme="dark"] {
  --paper: #0b0d11;
  --surface: #161a21;
  --ink: #eef1f5;
  --ink-2: #c3cad6;
  --muted: #8b94a3;
  --rule: #262b34;
  --band: #161a21;
}

/* Type: sans everywhere, tighter and more compact than the newspaper look. */
body { font-size: 16px; line-height: 1.6; }
.card-title, .section-head h2, .timeline a, .widget-title,
.article-title, .live-title { font-family: var(--sans) !important; letter-spacing: -.01em; }
.card-title { font-weight: 700; line-height: 1.35; }
.card-lead .card-title { font-weight: 800; letter-spacing: -.02em; }
.wordmark { font-family: var(--sans); }
.wm-news, .wm-flash { font-weight: 800; letter-spacing: -.035em; font-style: normal; }
.wm-india { border: 0; background: var(--accent); color: #fff; padding: 4px 8px; border-radius: 5px; letter-spacing: .18em; }
.tagline { display: none; }

/* Masthead sits left, not centred: less ceremony, more product. */
.masthead { padding: 16px 0 10px; }
.masthead-in { grid-template-columns: auto 1fr auto; }
.brand { justify-self: start; }
.nav { border-bottom: 1px solid var(--rule); }
.nav-list > li > a { font-weight: 600; }
.nav-list > li > a::after { height: 3px; border-radius: 3px 3px 0 0; }

/* Cards become real surfaces with a lifted edge. */
.card-grid, .card-overlay, .card-lead {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.card-grid .card-body, .card-lead .card-body { padding: 14px 16px 18px; }
.card-media { border-radius: 0; }
.card-grid .card-media, .card-lead .card-media { aspect-ratio: 16 / 9; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: none; }
.kicker.big { border-bottom: 0; }

/* Lists read as app rows: thumbnail left, headline right. */
.card-mini { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
.card-mini .card-media { border-radius: 8px; aspect-ratio: 4 / 3; }
.card-stack { grid-template-columns: 1fr 96px; }
.card-stack .card-media { border-radius: 8px; }
.card-row .card-media { border-radius: var(--radius); }

/* Section headings: a coloured chip instead of a heavy top rule. */
.section { padding: 32px 0; }
.section + .section { border-top: 0; }
.section-head { border-top: 0; padding-top: 0; margin-bottom: 18px; }
.section-head::before { display: none; }
.section-head h2 {
  font-size: clamp(19px, 2vw, 23px); font-weight: 800;
  padding: 5px 14px; border-radius: 999px; background: var(--c, var(--accent)); color: #fff;
}
.section-head h2 a { color: #fff; }
.section-subs a { border-radius: 8px; background: var(--surface); border-color: transparent; }
.see-all { font-size: 13px; }

/* Top of page: lead card plus a clean list, no vertical hairlines. */
.top-stories { gap: 24px; padding-top: 20px; padding-bottom: 28px; }
.ts-stack, .ts-live { border-left: 0; padding-left: 0; }
.ts-live { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); align-self: start; }
.live-title { text-transform: none; letter-spacing: 0; font-weight: 800; font-size: 16px; }
.timeline a { font-weight: 600; font-size: 14.5px; }

.section-popular { background: transparent; }
.popular-grid .card-num .num { font-family: var(--sans); font-style: normal; font-weight: 800; color: var(--accent); }
.widget-title { border-top: 0; padding-top: 0; font-weight: 800; font-size: 17px; }
.widget-title::before { display: none; }
.chip { border-radius: 8px; }

/* ---------- Brand mark (logo, when one is uploaded) ---------- */
.brand-img { width: auto; display: block; }
.nav-mark .brand-img { height: 24px; }
.nav-mark:has(.brand-img) { line-height: 0; padding-right: 14px; }
.drawer-head .brand-img { height: 30px; }
.footer-brand .brand-img { height: 42px; }
@media (max-width: 860px) { .masthead .brand-img { height: 44px; } }
