/* Aad Tak skin. Loaded after style.css / trust.css and on the server-rendered
   pages (exam, UPSC, story, landing). Black masthead, one hard red, big sans
   headlines, rounded cards. Pages built on style.css tokens opt in with
   <html class="at-themed">; dark mode additionally needs "at-dark" (only the
   homepage has been checked in dark). The API pages hard-code their colours,
   so they only get the masthead and type. */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,500;0,600;0,700;0,800;0,900;1,800;1,900&family=Inter:wght@400;500;600;700&family=Mukta:wght@500;700;800&display=swap');

:root {
  --at-red: #e10600;
  --at-red-2: #b30500;
  --at-ink: #0e0e10;
  --at-bar: #0b0b0d;
  --at-head: 'Inter Tight', 'Mukta', 'Noto Sans Devanagari', system-ui, sans-serif;
  --at-body: 'Inter', 'Mukta', 'Noto Sans Devanagari', system-ui, sans-serif;
}

/* ------------------------------------------------------------------ wordmark */
.at-wm {
  display: inline-flex; align-items: center; gap: 0;
  font-family: var(--at-head); font-weight: 900; font-style: italic;
  font-size: 30px; line-height: 1; letter-spacing: -0.03em;
  color: #fff; white-space: nowrap; text-transform: uppercase;
}
.at-wm b { color: var(--at-red); font-weight: 900; margin-left: .14em; }
.at-wm .at-dot {
  width: .34em; height: .34em; border-radius: 50%; background: var(--at-red);
  margin-right: .3em; flex: 0 0 auto; box-shadow: 0 0 0 0 rgba(225,6,0,.6);
  animation: at-ping 1.6s ease-out infinite;
}
@keyframes at-ping { 0% { box-shadow: 0 0 0 0 rgba(225,6,0,.55); } 70% { box-shadow: 0 0 0 .4em rgba(225,6,0,0); } 100% { box-shadow: 0 0 0 0 rgba(225,6,0,0); } }
@media (prefers-reduced-motion: reduce) { .at-wm .at-dot { animation: none; } }

/* Every masthead that carries the wordmark becomes the black bar. */
header:has(.at-wm) {
  background: var(--at-bar) !important; color: #fff !important;
  border-bottom: 3px solid var(--at-red) !important;
}
header:has(.at-wm) .brand-mark { display: none !important; }
header:has(.at-wm) a { color: #fff; border: 0; }
header:has(.at-wm) nav a { color: rgba(255,255,255,.78); white-space: nowrap; }
header:has(.at-wm) nav a:hover { color: #fff; }
header.site:has(.at-wm) nav { overflow-x: auto; scrollbar-width: none; min-width: 0; }
header.site:has(.at-wm) nav::-webkit-scrollbar { display: none; }
header.site:has(.at-wm) { min-width: 0; }
@media (max-width: 720px) {
  header:has(.at-wm) .at-wm { font-size: 24px; }
  header.site:has(.at-wm) { flex-wrap: wrap; row-gap: 8px; }
  header.site:has(.at-wm) nav { margin-left: 0; flex: 1 0 100%; gap: 14px; }
}

/* Server-rendered pages: swap the serif newspaper type for the channel sans. */
body:has(header .at-wm) h1,
body:has(header .at-wm) h2 { font-family: var(--at-head) !important; letter-spacing: -0.02em; }
body:has(header .at-wm) h1 { font-weight: 800; }

/* ======================================================= homepage + desk etc */
.at-themed {
  --bg: #f4f4f5; --bg-alt: #ececee; --card: #ffffff; --card-alt: #fafafa;
  --text: #0e0e10; --muted: #63636b; --muted-strong: #3f3f46;
  --border: #e4e4e7; --border-soft: #ededf0;
  --brand: #e10600; --brand-strong: #b30500; --brand-soft: #fde8e7;
  --live: #e10600; --saffron: #e10600; --outrage: #e10600; --ugly: #e10600;
  --display: var(--at-head); --serif: var(--at-body); --sans: var(--at-body);
  --radius: 10px; --radius-lg: 14px;
  --shadow-1: 0 1px 2px rgba(16,16,20,.06), 0 4px 14px rgba(16,16,20,.05);
  --shadow-2: 0 8px 30px rgba(16,16,20,.14);
  --maxw: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  .at-themed.at-dark:not([data-theme="light"]) {
    --bg: #0b0b0d; --bg-alt: #1b1b1f; --card: #151518; --card-alt: #1a1a1e;
    --text: #f4f4f5; --muted: #a1a1aa; --muted-strong: #d4d4d8;
    --border: #2a2a30; --border-soft: #222227; --brand: #ff2b1f; --brand-soft: #2a0d0b;
    --saffron: #ff2b1f; --shadow-1: none; color-scheme: dark;
  }
}
.at-themed.at-dark[data-theme="dark"] {
  --bg: #0b0b0d; --bg-alt: #1b1b1f; --card: #151518; --card-alt: #1a1a1e;
  --text: #f4f4f5; --muted: #a1a1aa; --muted-strong: #d4d4d8;
  --border: #2a2a30; --border-soft: #222227; --brand: #ff2b1f; --brand-soft: #2a0d0b;
  --saffron: #ff2b1f; --shadow-1: none; color-scheme: dark;
}
.at-themed body { background: var(--bg); color: var(--text); font-family: var(--at-body); }

/* ---- masthead */
.at-themed .topbar {
  background: var(--at-bar); color: #fff; border-bottom: 3px solid var(--at-red);
  padding: 12px 24px; gap: 18px;
}
.at-themed .brand-title a { color: #fff; }
.at-live {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 12px;
  background: var(--at-red); color: #fff; border-radius: 4px; padding: 4px 8px 4px 7px;
  font: 800 11px/1 var(--at-head); letter-spacing: .12em; font-style: normal;
}
.at-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: at-blink 1.2s steps(2, start) infinite; }
@keyframes at-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .at-live::before { animation: none; } }
.at-themed .controls { gap: 4px; }
@media (min-width: 861px) {
  .at-themed .controls { flex-wrap: nowrap; }
  .at-themed .search input { width: 180px; }
  .at-themed .search input:focus { width: 220px; }
}
@media (min-width: 861px) and (max-width: 1360px) {
  .at-themed .iconbtn.ai-pulse, .at-themed .iconbtn.get-app, .at-themed .ctl-div { display: none; }
  .at-themed .iconbtn { padding: 0 9px; }
}
.at-themed .iconbtn {
  height: 34px; border: 0; border-radius: 999px; padding: 0 12px;
  background: transparent; color: rgba(255,255,255,.82);
  font: 700 12px/1 var(--at-head); letter-spacing: .02em; text-transform: none;
}
.at-themed .iconbtn:hover { background: rgba(255,255,255,.1); color: #fff; }
.at-themed .iconbtn.bebaak, .at-themed .iconbtn.lokpaal { font-family: 'Mukta', var(--at-head); font-size: 14px; font-weight: 700; }
.at-themed .iconbtn.contribute { background: var(--at-red); color: #fff; padding: 0 16px; }
.at-themed .iconbtn.contribute:hover { background: var(--at-red-2); }
.at-themed #theme-toggle { display: inline-flex !important; font-size: 15px; width: 34px; padding: 0; justify-content: center; }
.at-themed #theme-toggle[hidden] { display: inline-flex !important; }
.at-themed .ctl-div { width: 1px; height: 20px; background: rgba(255,255,255,.18); }
.at-themed .search input {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff;
  border-radius: 999px; padding: 8px 14px 8px 32px; font-family: var(--at-body);
}
.at-themed .search input::placeholder { color: rgba(255,255,255,.55); }
.at-themed .search input:focus { border-color: var(--at-red); background: rgba(255,255,255,.12); }
.at-themed .search-ico { color: rgba(255,255,255,.6); left: 12px; }
.at-themed .select { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 7px 12px; text-transform: none; letter-spacing: 0; }
.at-themed .select option { color: #000; }

/* ---- disclosure strip */
.at-themed .manifesto {
  background: var(--card); color: var(--muted); border-bottom: 1px solid var(--border);
  padding: 8px 24px; text-transform: none; letter-spacing: 0; font-size: 12.5px;
}
.at-themed .manifesto .m-stamp { font-family: var(--at-head); font-size: 10.5px; border-left-color: var(--brand); letter-spacing: .1em; }
.at-themed .manifesto .m-body { font-size: 12.5px; color: var(--muted-strong); }
.at-themed .manifesto .m-link { color: var(--brand); text-transform: none; letter-spacing: 0; font-size: 12px; }

/* ---- breaking band */
.at-themed .ticker { background: #000; border-bottom: 0; }
.at-themed .ticker-kicker { background: var(--at-red); font-family: var(--at-head); font-size: 12px; letter-spacing: .14em; padding-left: 18px; }
.at-themed .ticker-viewport { height: 42px; }
.at-themed .ticker-item { font-family: var(--at-head); font-weight: 600; font-size: 14.5px; }
.at-themed .ticker-item .ti-time { color: #ff6a5f; }

/* ---- status row, sections, chips */
.at-themed .metabar { border-bottom: 0; padding-top: 12px; padding-bottom: 4px; font-size: 12.5px; }
.at-themed .metabar .livepulse { background: var(--at-red); }
.at-themed .sections { gap: 6px; padding-top: 10px; }
.at-themed .sec { font: 700 14px/1 var(--at-head); color: var(--muted); padding: 10px 16px; border: 1px solid transparent; }
.at-themed .sec:hover { background: var(--card); color: var(--text); }
.at-themed .sec.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.at-themed .chip { background: var(--card); border-color: var(--border); color: var(--muted-strong); font-weight: 600; padding: 6px 12px; }
.at-themed .chip::before { content: '#'; color: var(--brand); margin-right: 2px; font-weight: 800; }
.at-themed .chip:hover { border-color: var(--brand); color: var(--text); }
.at-themed .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.at-themed .chip.active::before { color: #fff; }

/* ---- lead board */
.at-themed .pulseboard { gap: 20px; border-bottom: 0; padding-bottom: 8px; margin-bottom: 26px; }
.at-themed .pb-lead { border: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-1); background: var(--card); }
.at-themed .pb-lead:hover { box-shadow: var(--shadow-2); }
.at-themed .pb-lead-media { max-height: 420px; position: relative; }
.at-themed .pb-lead-media::after { content: 'TOP STORY'; position: absolute; left: 16px; top: 16px; background: var(--at-red); color: #fff; font: 800 11px/1 var(--at-head); letter-spacing: .12em; padding: 7px 10px; border-radius: 4px; }
.at-themed .pb-lead-body { padding: 22px 26px 26px; }
.at-themed .pb-lead-title { font-family: var(--at-head); font-weight: 800; letter-spacing: -0.028em; line-height: 1.04; font-size: clamp(28px, 3.6vw, 48px); }
.at-themed .pb-lead-sum { font-size: 16.5px; color: var(--muted-strong); }
.at-themed .pb-side-stack { counter-reset: atside; gap: 10px; }
.at-themed .pb-side-card {
  counter-increment: atside; position: relative; padding: 14px 16px 14px 58px;
  border: 0; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-1);
}
.at-themed .pb-side-card::before {
  content: counter(atside, decimal-leading-zero); position: absolute; left: 16px; top: 13px;
  font: 900 italic 26px/1 var(--at-head); color: var(--brand); letter-spacing: -0.04em;
}
.at-themed .pb-side-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.at-themed .pb-side-headline { font-family: var(--at-head); font-weight: 700; font-size: 17px; line-height: 1.22; letter-spacing: -0.01em; }
.at-themed .card.cat-crisis, .at-themed .card.cat-accountability,
.at-themed .pb-side-card.cat-crisis, .at-themed .pb-side-card.cat-accountability { border-top: 0; box-shadow: inset 3px 0 0 var(--brand), var(--shadow-1); }

/* ---- बेबाक mast */
.at-themed .bebaak-mast { background: var(--card); border: 0; border-left: 4px solid var(--brand); border-radius: 14px; box-shadow: var(--shadow-1); }
.at-themed .bebaak-mast .bm-name { font-family: 'Mukta', var(--at-head); font-weight: 800; border-color: var(--border); }
.at-themed .bebaak-mast .bm-body { font-family: var(--at-body); }
.at-themed .bebaak-mast .bm-cta { border-radius: 999px; }

/* ---- feed */
.at-themed .feed { gap: 18px; }
.at-themed .card { border: 0; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-1); transition: box-shadow .15s, transform .15s; }
.at-themed .card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.at-themed .card-title { font-family: var(--at-head); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; }
.at-themed .card-title:hover, .at-themed .card-title a:hover { color: var(--brand); }
.at-themed .card-top, .at-themed .pb-strip, .at-themed .pb-side-top { font-family: var(--at-head); }
.at-themed .status-pill { color: var(--brand); font-family: var(--at-head); font-weight: 800; }
.at-themed .status-pill[data-s="noise"] { color: var(--muted); }
.at-themed .card-foot { border-top: 1px solid var(--border-soft); }
.at-themed .bookmark { background: var(--card); }
.at-themed .votebar { border-radius: 10px; overflow: hidden; }
.at-themed .load-more { background: var(--text); color: var(--bg); border: 0; font-weight: 700; padding: 12px 26px; }
.at-themed .load-more:hover { background: var(--brand); color: #fff; }

/* ---- sections below the feed */
.at-themed .pageone, .at-themed .spotlight, .at-themed .use-week, .at-themed .bebaak-rail, .at-themed .factcheck, .at-themed .citizen { border-radius: 16px; }
.at-themed .pageone-title, .at-themed .use-week h2, .at-themed .bebaak-rail h2, .at-themed .citizen h2 { font-family: var(--at-head); font-weight: 800; letter-spacing: -0.02em; }

/* ---- charter + footer */
.at-themed .charter { border-top: 0; }
.at-themed .charter h3 { font-family: var(--at-head); font-weight: 800; }
.at-themed footer { border-top: 1px solid var(--border); }
.at-themed footer a { border-bottom: 0; text-decoration: underline; text-underline-offset: 2px; }

/* ---- bottom nav (phones) */
.at-themed .bottomnav { background: var(--at-bar); border-top: 0; }
.at-themed .bn-item { color: rgba(255,255,255,.62); font-family: var(--at-head); font-weight: 600; }
.at-themed .bn-item.active, .at-themed .bn-item:hover { color: #fff; }
.at-themed .bn-item.active .bn-label { color: #ff4a3d; }

.at-themed .modal { border-radius: 18px; }
.at-themed .totop { background: var(--at-red); color: #fff; }

/* ---- phones */
@media (max-width: 860px) {
  .at-themed .topbar { flex-wrap: wrap; row-gap: 10px; padding: 10px 14px; }
  .at-themed .brand { flex: 1 1 auto; }
  .at-themed .controls {
    flex: 1 0 100%; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; min-width: 0;
  }
  .at-themed .controls::-webkit-scrollbar { display: none; }
  .at-themed .controls > * { flex: 0 0 auto; }
  /* the bottom nav covers these four; keep the rest scrolling in the bar */
  .at-themed .iconbtn.bebaak, .at-themed .iconbtn.lokpaal, .at-themed .iconbtn.exams-link, .at-themed .iconbtn.contribute { display: none; }
  .at-themed .iconbtn.ai-pulse { display: inline-flex; }
}
@media (max-width: 700px) {
  .at-themed .brand-title .at-wm { font-size: 26px; }
  .at-themed .search input, .at-themed .search input:focus { width: 150px; }
  .at-themed .manifesto { padding: 8px 14px; font-size: 11.5px; }
  .at-themed .manifesto .m-body { font-size: 11.5px; line-height: 1.45; }
  .at-themed .manifesto > .m-link { display: none; }  /* keep the About link inside the disclosure */
  .at-themed .metabar { padding: 10px 14px 2px; }
  .at-themed .metabar .right { display: none; }
  .at-themed .subnav .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
  .at-themed .subnav .chips::-webkit-scrollbar { display: none; }
  .at-themed .chip { flex: 0 0 auto; }
  .at-themed .pb-lead { border-radius: 16px; }
  .at-themed .pb-lead-body { padding: 16px 18px 20px; }
  .at-themed .pb-lead-title { font-size: 28px; }
  .at-themed .card-title { font-size: 18px; }
}

/* ============================================ AADTAK Satire rail (homepage)
   Comedy, not news: comic yellow + black so it never reads as a headline.
   Every card carries the SATIRE · व्यंग्य badge. Page styles: satire.css. */
.at-themed .iconbtn.satire-link { color: #ffd60a; }
.at-themed .iconbtn.satire-link:hover { background: rgba(255,214,10,.14); color: #ffd60a; }
.sat-rail {
  margin: 22px 0; padding: 18px 0 16px; border-radius: 18px; overflow: hidden;
  background-color: #ffd60a; color: #111;
  background-image: radial-gradient(rgba(17,17,17,.09) 1.2px, transparent 1.3px); background-size: 14px 14px;
  border: 3px solid #111; box-shadow: 6px 6px 0 #ff3d7f;
}
.sat-rail[hidden] { display: none; }
.sat-rail-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 0 18px 12px; }
.sat-rail-stamp {
  background: #111; color: #ffd60a; font: 900 12px/1 var(--at-head); letter-spacing: .1em;
  padding: 7px 9px 6px; border-radius: 3px; transform: rotate(-3deg);
}
.sat-rail-title { margin: 0; font: 900 italic 28px/1 var(--at-head) !important; letter-spacing: -0.03em; text-transform: uppercase; color: #111; }
.sat-rail-title span { font-family: 'Mukta', var(--at-head); font-style: normal; text-transform: none; color: #ff3d7f; -webkit-text-stroke: 1.2px #111; }
.sat-rail-sub { font: 700 13px/1.2 var(--at-head); color: #3a3420; }
.sat-rail-all {
  margin-left: auto; background: #111; color: #ffd60a; text-decoration: none; border-radius: 999px;
  font: 800 13px/1 var(--at-head); padding: 9px 14px; white-space: nowrap;
}
.sat-rail-all:hover { background: #ff3d7f; color: #111; }
.sat-rail-list {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 2px 18px 8px; scroll-padding: 0 18px;
}
.sat-rail-list::-webkit-scrollbar { display: none; }
.sat-rail-card {
  flex: 0 0 280px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px;
  background: #fff; color: #111; text-decoration: none; border: 2.5px solid #111; border-radius: 14px;
  padding: 12px 14px 14px; box-shadow: 4px 4px 0 #111; transition: transform .12s ease, box-shadow .12s ease;
}
.sat-rail-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #111; }
.sat-rail-meta { display: flex; align-items: center; gap: 8px; }
.sat-rail-badge { background: #111; color: #ffd60a; font: 900 10px/1 var(--at-head); letter-spacing: .09em; padding: 5px 7px 4px; border-radius: 3px; transform: rotate(-2deg); white-space: nowrap; }
.sat-rail-tag { font: 700 11.5px/1 var(--at-head); color: #3a3420; background: #fff3b0; border-radius: 999px; padding: 4px 8px; }
.sat-rail-head-text { font: 800 17px/1.25 var(--at-head); letter-spacing: -0.01em; }
.sat-rail-hi { font: 700 14px/1.35 'Mukta', 'Noto Sans Devanagari', sans-serif; color: #4a4535; }
@media (max-width: 700px) {
  .sat-rail { margin: 18px 0; border-radius: 16px; box-shadow: 4px 4px 0 #ff3d7f; }
  .sat-rail-head { padding: 0 14px 10px; }
  .sat-rail-title { font-size: 24px !important; }
  .sat-rail-list { padding: 2px 14px 8px; scroll-padding: 0 14px; }
  .sat-rail-card { flex-basis: 78%; }
}
