/* =====================================================================
   base.css — shared styles for all templates
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/saira-condensed-400.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/saira-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/saira-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/saira-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/saira-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-italic.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --bg: #06111F;          /* page */
  --bg2: #0A1B30;         /* surface: cards, panels */
  --surface-2: #0E2440;   /* raised / hover surface */
  --line: #1C3550;        /* hairlines */
  --line-strong: #2B4B70; /* hover borders */
  --text: #F5F8FC;
  --text-2: #C6D4E3;      /* secondary copy */
  --muted: #9BAFC5;       /* meta, labels */
  --blue: #168BFF;        /* primary action */
  --blue-hover: #3A9DFF;
  --cyan: #55D7FF;        /* accent, links */
  --red: #FF453A;         /* live, badges */
  --saffron: #FF9933; --green: #138808;

  /* Type */
  --display: "Saira Condensed", "Arial Narrow", Arial, sans-serif;
   --basicf: Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --fs-sm: 14.5px; --fs-base: 17px;
  --fs-h2: clamp(36px, 4.4vw, 58px);

  /* Space, shape, motion */
  --gutter: 24px;
  --section: clamp(30px, 8vw, 70px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .2s;

  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #06111F; --bg2: #0A1B30; --text: #F5F8FC; --muted: #9BAFC5; --line: #1C3550; } }
:root[data-theme="dark"] { --bg: #06111F; --bg2: #0A1B30; --text: #F5F8FC; --muted: #9BAFC5; --line: #1C3550; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--basicf); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(6,17,31,.85); backdrop-filter: blur(14px); }
body:has(dialog[open]) { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgba(22,139,255,.45); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background .35s var(--ease), border-color .35s var(--ease); }
.hdr.solid { background: rgba(6,17,31,.8); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; object-fit: contain;}
.brand:hover .brand-mark { transform: translateY(-2px); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: .06em; }
.brand-name small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .32em; color: var(--cyan); margin-top: 4px; }

.nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.nav a { position: relative; font-family: var(--display); font-weight: 500; font-size: 15.5px; color: var(--muted); padding: 8px 10px; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--cyan); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a:hover::after { transform: scaleX(.5); }
.nav a[aria-current]::after { transform: scaleX(1); background: var(--blue); }

.hdr-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(10,27,48,.5); border-radius: 50%; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.icon-btn:hover { border-color: var(--cyan); background: var(--surface-2); }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .03em; border-radius: var(--radius); border: 1px solid transparent; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { border-color: rgba(85,215,255,.45); color: var(--text); background: rgba(6,17,31,.35); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(85,215,255,.08); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Header: responsive ---------- */
@media (max-width: 1440px) { .hdr .wrap { gap: 14px; } .nav a { font-size: 14.5px; padding: 8px 5px; } .nav a::after { left: 5px; right: 5px; } }
@media (max-width: 1180px) {
  .menu-btn { display: grid; }
  .hdr .wrap { justify-content: space-between; }
  .nav { position: fixed; top: calc(72px + env(safe-area-inset-top, 0px)); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); max-height: calc(100dvh - 72px); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .hdr:has(.nav.open) { background: var(--bg); border-color: var(--line); }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav a { font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a[aria-current] { color: var(--cyan); }
}
@media (max-width: 560px) { .hdr-actions .btn { display: none; } .brand-name { font-size: 19px; } }
@media (max-width: 380px) { :root { --gutter: 16px; } .hdr .wrap { gap: 8px; } .hdr-actions { gap: 6px; } .brand { gap: 8px; } .brand-mark { width: 28px; height: 28px; } .brand-name { font-size: 17px; } .brand-name small { letter-spacing: .2em; } }

/* ---------- Section scaffolding ---------- */
section.block { padding: var(--section) 0; position: relative; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(32px, 4vw, 48px); flex-wrap: wrap; }
.sec-head h2 { font-family: var(--display); font-weight: 700; font-size: var(--fs-h2); line-height: .98; letter-spacing: -.005em; margin: 12px 0 0; }
.sec-head p { color: var(--muted); max-width: 44ch; margin: 0; font-size: var(--fs-base); line-height: 1.6; }
.link-more { font-family: var(--display); font-weight: 600; color: var(--cyan); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; opacity: .9; transition: opacity var(--dur), background-size .3s var(--ease); }
.link-more:hover { opacity: 1; background-size: 100% 2px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .08em; color: var(--cyan); text-transform: capitalize;}
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* ---------- Story art & meta ---------- */
.art {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #081626;
}
.art .scene {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,17,31,.95) 0%, rgba(6,17,31,.25) 55%, rgba(6,17,31,0) 100%); }
.cat { font-family: var(--display); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .05em; color: var(--cyan); }
.meta { font-family: var(--display); font-size: 14px; color: var(--muted); display: flex; gap: 6px 14px; flex-wrap: wrap; }

/* ---------- Story card (featured grid, related reports) ---------- */
.story { position: relative; display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.story:hover { border-color: var(--line-strong); background: var(--surface-2); }
.story:hover .art svg.scene { transform: scale(1.04); }
.story h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 8px 0 10px; }
.story h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* Card-wide link */
.story:hover h3 { color: #fff; }
.story p { color: var(--muted); font-size: 16px; margin: 0 0 16px; line-height: 1.55; }
.story .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.story .body .meta { margin-top: auto; }
.story .meta .via { color: var(--cyan); }

/* ---------- Avatar ---------- */
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #0F4C8A; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 16px; border: 1px solid var(--line-strong); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: clamp(56px, 6vw, 80px) 0 32px; background: #040c17; }
.f-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.f-grid h4 { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .06em; color: var(--text); margin: 4px 0 16px; }
.f-grid ul { list-style: none; margin: 0; padding: 0; font-family: var(--display); font-size: 17px; line-height: 1.5; display: grid; gap: 10px; }
.f-grid ul a { color: var(--muted); }
.f-grid a:hover { color: var(--cyan); }
.f-about { color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 38ch; margin: 18px 0 22px;     text-align: justify;}
.f-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-family: var(--display); font-size: 14px; color: var(--muted); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.to-top svg { transition: transform var(--dur) var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }
@media (max-width: 860px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .f-grid { grid-template-columns: 1fr; } }

/* ---------- Search dialog ---------- */
.search { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; z-index: 80; color: var(--text); background: rgba(4,10,20,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: calc(env(safe-area-inset-top, 0px) + 96px) var(--gutter) var(--gutter); overflow-y: auto; }
.search[open] { animation: fade-in .25s var(--ease); }
.search::backdrop { background: transparent; }
.search-inner { max-width: 820px; margin: 0 auto; }
.search-field { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--blue); padding-bottom: 12px; }
.search-field input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font-family: var(--display); font-size: clamp(26px, 4vw, 44px); font-weight: 500; }
.search-field input:focus { outline: none; }
.search-field input::placeholder { color: #4d6580; }
.results { list-style: none; padding: 0; margin: 24px 0 0; }
.results li a { display: block; padding: 16px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); border-radius: var(--radius); transition: background var(--dur) var(--ease); }
.results li a:hover { background: var(--surface-2); }
.results li a:hover strong { color: var(--cyan); }
.results strong { display: block; font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.25; transition: color var(--dur); }
.results .empty { color: var(--muted); font-family: var(--display); font-size: 18px; padding: 16px 0; }
.close-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 20px); right: var(--gutter); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Hero Background Video */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #050d18;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 13, 24, 0.90),
    rgba(5, 13, 24, 0.45)
  );
}

.hero-grid {
  position: relative;
  z-index: 1;
}

#dnFeed, #dnFeed *{box-sizing:border-box}

#dnFeed{
  position:relative;
  width:100%;
  max-width:450px;
  height:470px;
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg,#141f30,#0f1826) !important;
  border:1px solid #22344c;
  box-shadow:0 20px 50px rgba(0,0,0,.35);
}

/* Top-left cyan corner */
#dnFeed .dn-corner{
  position:absolute; left:-1px; top:-1px;
  width:50px; height:50px;
  border-top:3px solid #4fc8f0;
  border-left:3px solid #4fc8f0;
  pointer-events:none; z-index:3;
}

/* Header */
#dnFeed .dn-head{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  margin:0; padding:24px 26px;
  border-bottom:1px solid #22344c;
  font-family:"Saira Semi Condensed","Arial Narrow",Arial,sans-serif !important;
  font-weight:600; font-size:16px; letter-spacing:.04em;
  color:#4fc8f0 !important;
}
#dnFeed .dn-head a{color:#4fc8f0 !important; text-decoration:none; font-family:inherit !important}
#dnFeed .dn-head a:hover{text-decoration:underline}

/* Scroll area + blue scrollbar */
#dnFeed .dn-list{
  flex:1; overflow-y:auto; padding:14px 16px;
  scrollbar-width:thin; scrollbar-color:#1e8fff transparent;
}
#dnFeed .dn-list::-webkit-scrollbar{width:7px}
#dnFeed .dn-list::-webkit-scrollbar-thumb{background:#1e8fff; border-radius:6px}

/* Embedded posts */
#dnFeed .twitter-tweet{
  margin:0 auto 16px !important;
  width:100% !important;
  max-width:100% !important;
}
#dnFeed .twitter-tweet:last-child{margin-bottom:0 !important}

/* Load hone se pehle blockquote ka look */
#dnFeed blockquote.twitter-tweet{
  padding:16px;
  border:1px solid #22344c;
  border-radius:12px;
  font-family:Arial,sans-serif; font-size:14px; line-height:1.5;
  color:#8494a8;
}
#dnFeed blockquote.twitter-tweet a{color:#4fc8f0}

@media (max-width:480px){
  #dnFeed{height:80vh}
  #dnFeed .dn-head{padding:18px}
  #dnFeed .dn-list{padding:10px}
}
/* Local Video Thumbnail */

.vid-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.vid-art video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vid-art1 {
  height: 167px;
}

/* Video Play Button */

.vid-play {
  z-index: 2;
}
