/* दैनिक माण्डु — editorial theme */

:root {
  --t:      #008088;
  --t-dark: #00494E;
  --t-tint: #EDF5F5;
  --gold:   #C08A00;
  --ink:    #111617;
  --ink-2:  #57625F;
  --ink-3:  #93A09E;
  --hair:   #D7E0DF;
  --line:   #E7EDEC;
  --paper:  #FFFFFF;
  --page:   #FBFCFC;
  --wrap:   1140px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Ek Mukta', 'Mukta', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.78;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: var(--t); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--t); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.shell {
  max-width: var(--wrap);
  margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* ---------- utility strip ---------- */

.utility { border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--ink-3); letter-spacing: .06em; }
.utility-inner { display: flex; align-items: center; gap: 10px; padding: 8px 22px; }
.utility .sep { color: var(--hair); }
.utility .right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.utility a { color: var(--ink-3); }
.utility a:hover { color: var(--t); text-decoration: none; }

/* ---------- masthead ---------- */

.masthead { text-align: center; padding: 28px 22px 16px; }
.brand { display: inline-flex; align-items: center; gap: 16px; }
.brand:hover { text-decoration: none; }
.brand-emblem { width: 62px; height: 62px; flex: none; }
.brand-word { width: 100%; max-width: 430px; height: auto; }
.brand-tag { font-size: 12px; color: var(--ink-3); letter-spacing: .3em; margin-top: 12px; }

/* ---------- nav ---------- */

.mainnav {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
  position: sticky; top: 0; z-index: 30;
}
.mainnav-inner { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 10px 22px; position: relative; }
.mainnav .links { display: flex; gap: 28px; }
.mainnav a { font-size: 16px; color: var(--ink-2); letter-spacing: .03em; position: relative; padding: 2px 0; }
.mainnav a:hover { color: var(--t); text-decoration: none; }
.mainnav a.on { color: var(--t); }
.mainnav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 2px; background: var(--t); }

.navtoggle, .navsearch-btn { display: none; background: none; border: 0; cursor: pointer; color: var(--ink-2); font-size: 20px; padding: 4px; }

.searchbar { display: none; border-bottom: 1px solid var(--hair); padding: 12px 22px; }
.searchbar.show { display: block; }
.searchbar form { display: flex; max-width: 520px; margin: 0 auto; }
.searchbar input { flex: 1; border: 1px solid var(--hair); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); padding: 9px 13px; font: inherit; font-size: 15px; }
.searchbar button { border: 0; background: var(--t); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; padding: 9px 18px; font: inherit; font-size: 15px; cursor: pointer; }

/* ---------- breaking strip ---------- */

.breaking { display: flex; align-items: center; gap: 12px; padding: 8px 22px; border-bottom: 1px solid var(--hair); background: #FFFBF0; font-size: 13.5px; color: #6B4A05; overflow: hidden; }
.breaking .tagword { flex: none; background: var(--gold); color: #fff; font-size: 11px; letter-spacing: .1em; padding: 2px 10px; border-radius: 3px; }
.breaking ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; white-space: nowrap; overflow: hidden; }
.breaking a { color: #6B4A05; }

/* ---------- shared type ---------- */

.kick { font-size: 11.5px; color: var(--t); letter-spacing: .16em; font-weight: 500; display: inline-block; margin-bottom: 8px; }
a.kick:hover { text-decoration: none; color: var(--t-dark); }

.hl { color: var(--ink); line-height: 1.32; letter-spacing: -.004em; }
.hl a { color: inherit; }
.hl a:hover { color: var(--t); text-decoration: none; }

.dek { font-size: 15.5px; color: var(--ink-2); line-height: 1.82; }
.byline { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }

.seclab { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.seclab span { font-size: 12px; color: var(--t); letter-spacing: .18em; white-space: nowrap; }
.seclab i { flex: 1; height: 1px; background: var(--hair); display: block; }

.ph { background: var(--t-tint); display: flex; align-items: center; justify-content: center; color: #9EC3C4; font-size: 24px; }

/* ---------- lead ---------- */

.lead { display: grid; grid-template-columns: 1.42fr 1fr; border-bottom: 1px solid var(--hair); }
.lead-text { padding: 30px 26px 28px; }
.lead-title { font-size: 40px; font-weight: 600; margin: 0 0 14px; }
.lead-media { border-left: 1px solid var(--hair); min-height: 250px; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.lead .byline { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--t-tint); color: var(--t); display: flex; align-items: center; justify-content: center; font-size: 10px; flex: none; }

/* ---------- three-column row ---------- */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); }
.trio > article { padding: 24px 22px 26px; }
.trio > article + article { border-left: 1px solid var(--hair); }
.trio .hl { font-size: 19.5px; font-weight: 500; margin: 0 0 8px; }
.trio .dek { font-size: 14.5px; margin-bottom: 9px; }

/* ---------- picks band ---------- */

.picks { border-top: 1px solid var(--ink); background: #FAFCFC; padding: 26px 22px; }
.picks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pick { display: flex; gap: 14px; }
.pick-media { width: 96px; height: 68px; border-radius: 4px; flex: none; overflow: hidden; }
.pick-media img { width: 100%; height: 100%; object-fit: cover; }
.pick .hl { font-size: 17px; font-weight: 500; margin: 0 0 6px; }

/* ---------- latest index ---------- */

.latest { padding: 26px 22px; border-top: 1px solid var(--hair); }
.latest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }
.latest-item { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.latest-item .num { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; font-variant-numeric: tabular-nums; padding-top: 3px; flex: none; min-width: 20px; }
.latest-item .hl { font-size: 16.5px; }

/* ---------- category / archive grid ---------- */

.page-head { font-size: 34px; font-weight: 600; margin: 0 0 6px; padding: 26px 22px 0; }
.page-sub { padding: 0 22px 18px; color: var(--ink-2); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid > article { padding: 22px; border-top: 1px solid var(--hair); border-right: 1px solid var(--hair); }
.grid .card-media { aspect-ratio: 16/10; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.grid .card-media img { width: 100%; height: 100%; object-fit: cover; }
.grid .hl { font-size: 19px; font-weight: 500; margin: 0 0 8px; }

/* ---------- single article ---------- */

.single { padding: 30px 22px 34px; }
.single-inner { max-width: 660px; margin: 0 auto; }
.single-title { font-size: 38px; font-weight: 600; margin: 0 0 14px; line-height: 1.3; }
.single-sum { font-size: 18.5px; color: var(--ink-2); line-height: 1.85; border-left: 2px solid var(--t); padding-left: 16px; margin: 0 0 20px; }
.single-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--hair); margin-bottom: 22px; }
.single-media { margin: 0 0 8px; }
.single-media img { width: 100%; border-radius: var(--radius); }
.single-caption { font-size: 12.5px; color: var(--ink-3); margin: 0 0 22px; }

.single-body { font-size: 19px; line-height: 2.05; }
.single-body p { margin: 0 0 20px; }
.single-body h2 { font-size: 24px; font-weight: 600; margin: 30px 0 12px; }
.single-body ul { margin: 0 0 20px; padding-left: 22px; }
.single-body li { margin-bottom: 8px; }
.single-body blockquote { margin: 24px 0; padding-left: 18px; border-left: 2px solid var(--t); font-size: 21px; color: var(--ink-2); line-height: 1.85; }
.single-body a { text-decoration: underline; }

.taglist { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.taglist a { font-size: 13px; color: var(--ink-2); border: 1px solid var(--hair); border-radius: 20px; padding: 3px 13px; }
.taglist a:hover { border-color: var(--t); color: var(--t); text-decoration: none; }

.share { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hair); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.share a { border: 1px solid var(--hair); border-radius: var(--radius); padding: 5px 14px; font-size: 13.5px; }
.share a:hover { background: var(--t); color: #fff; border-color: var(--t); text-decoration: none; }

/* ---------- pager ---------- */

.pager { display: flex; justify-content: center; gap: 6px; padding: 26px 22px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; text-align: center; padding: 7px 12px; font-size: 15px; border: 1px solid var(--hair); border-radius: var(--radius); color: var(--ink); }
.pager a:hover { border-color: var(--t); color: var(--t); text-decoration: none; }
.pager .on { background: var(--t); border-color: var(--t); color: #fff; }

.empty { padding: 60px 22px; text-align: center; color: var(--ink-2); }

/* ---------- footer ---------- */

.sitefoot { background: var(--t-dark); color: #C3DEDF; padding: 28px 0 22px; }
.foot-top { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.foot-emblem { width: 42px; height: 42px; background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.foot-word { width: 100%; max-width: 190px; height: auto; margin-bottom: 3px; }
.foot-company { font-size: 12px; color: #7FAFB1; }
.foot-social { margin-left: auto; display: flex; gap: 10px; }
.foot-social a { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.foot-social a:hover { background: rgba(255,255,255,.12); text-decoration: none; }

.foot-cols { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 24px; padding-top: 18px; font-size: 13.5px; line-height: 1.95; }
.foot-lab { font-size: 11px; color: #6FA0A2; letter-spacing: .15em; margin-bottom: 7px; }
.foot-cols strong { color: #fff; font-weight: 400; }
.foot-cols a { color: #C3DEDF; }

.foot-bottom { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; color: #7FAFB1; letter-spacing: .05em; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; }
  .lead-media { border-left: 0; border-bottom: 1px solid var(--hair); min-height: 0; aspect-ratio: 16/9; order: -1; }
  .lead-title { font-size: 28px; }
  .trio { grid-template-columns: 1fr; }
  .trio > article + article { border-left: 0; border-top: 1px solid var(--hair); }
  .picks-grid, .latest-grid, .foot-cols { grid-template-columns: 1fr; }
  .brand-word { max-width: 300px; }
  .brand-emblem { width: 48px; height: 48px; }
  .single-title { font-size: 28px; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .shell { border-left: 0; border-right: 0; }
  .brand { gap: 10px; }
  .brand-word { max-width: 210px; }
  .brand-emblem { width: 38px; height: 38px; }
  .brand-tag { font-size: 10.5px; letter-spacing: .22em; margin-top: 8px; }
  .utility .right .hide-sm { display: none; }
  .mainnav-inner { justify-content: space-between; gap: 8px; }
  .navtoggle, .navsearch-btn { display: block; }
  .mainnav .links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--hair); flex-direction: column; gap: 0; padding: 6px 22px 12px; }
  .mainnav .links.show { display: flex; }
  .mainnav .links a { padding: 9px 0; border-bottom: 1px solid var(--line); }
  .mainnav a.on::after { display: none; }
  .breaking ul { gap: 18px; }
  .grid { grid-template-columns: 1fr; }
  .grid > article { border-right: 0; }
  .single-body { font-size: 17px; line-height: 1.95; }
  .single { padding: 22px 18px 28px; }
}


/* ================================================================
   Motion
   Everything is transform/opacity only, so it stays smooth on
   low-end phones. All of it is disabled under prefers-reduced-motion.
   ================================================================ */

@keyframes dm-rise   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dm-fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes dm-word   { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dm-spin   { from { opacity: 0; transform: rotate(-25deg) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes dm-rule   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dm-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dm-pulse  { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---- masthead entrance ---- */

.brand-emblem { animation: dm-spin .7s cubic-bezier(.2,.7,.3,1) both; }
.brand-word   { animation: dm-word .7s cubic-bezier(.2,.7,.3,1) .08s both; }
.brand-tag    { animation: dm-fade .8s ease .34s both; }

.mainnav { animation: dm-fade .5s ease .2s both; }
.mainnav::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--ink); transform-origin: left;
  animation: dm-rule .8s cubic-bezier(.2,.7,.3,1) .1s both;
}

/* ---- brand hover ---- */

.brand-emblem, .brand-word { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.brand:hover .brand-emblem { transform: rotate(-8deg) scale(1.06); }
.brand:hover .brand-word   { transform: translateY(-2px); }

/* ---- nav underline sweep ---- */

.mainnav a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 2px;
  background: var(--t); transform: scaleX(0); transform-origin: right;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.mainnav a:hover::before { transform: scaleX(1); transform-origin: left; }
.mainnav a.on::after { animation: dm-rule .45s cubic-bezier(.2,.7,.3,1) both; transform-origin: left; }

/* ---- breaking ticker ---- */

.breaking .tagword { animation: dm-pulse 2.4s ease-in-out infinite; }
.breaking .track { display: flex; overflow: hidden; flex: 1; }
.breaking ul { animation: dm-ticker 34s linear infinite; padding-right: 26px; }
.breaking:hover ul { animation-play-state: paused; }
.breaking a { transition: color .2s ease; }
.breaking a:hover { color: #A8790C; }

/* ---- scroll reveal ---- */

.reveal { opacity: 0; }
.reveal.in { animation: dm-rise .62s cubic-bezier(.2,.7,.3,1) both; }
.reveal.in:nth-child(2) { animation-delay: .07s; }
.reveal.in:nth-child(3) { animation-delay: .14s; }
.reveal.in:nth-child(4) { animation-delay: .21s; }

/* ---- images ---- */

.lead-media, .card-media, .pick-media, .mediathumb { overflow: hidden; }
.lead-media img, .card-media img, .pick-media img {
  transition: transform .55s cubic-bezier(.2,.7,.3,1);
}
.lead-media:hover img, .grid article:hover .card-media img, .pick:hover .pick-media img {
  transform: scale(1.045);
}
.lead-media img, .card-media img { will-change: transform; }

/* ---- headline + card hover ---- */

.hl a { transition: color .22s ease; }

.trio > article, .grid > article { transition: background .28s ease; }
.trio > article:hover, .grid > article:hover { background: #FAFDFD; }

.latest-item { transition: padding-left .28s cubic-bezier(.2,.7,.3,1), background .28s ease; }
.latest-item:hover { padding-left: 8px; background: #FAFDFD; }
.latest-item .num { transition: color .28s ease; }
.latest-item:hover .num { color: var(--t); }

/* ---- section labels draw their rule ---- */

.seclab i { transform-origin: left; }
.reveal.in .seclab i { animation: dm-rule .7s cubic-bezier(.2,.7,.3,1) .12s both; }

/* ---- tags, share, pager ---- */

.taglist a, .share a, .pager a {
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.taglist a:hover, .share a:hover, .pager a:hover { transform: translateY(-2px); }

.foot-social a { transition: background .25s ease, transform .25s ease; }
.foot-social a:hover { transform: translateY(-2px); }

/* ---- sticky nav condenses once you scroll ---- */

.mainnav { transition: padding .3s ease, box-shadow .3s ease; }
.mainnav.stuck { box-shadow: 0 1px 12px rgba(0,0,0,.07); }
.mainnav.stuck .mainnav-inner { padding-top: 6px; padding-bottom: 6px; }

/* ---- search bar slide ---- */

.searchbar { display: block; max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0;
             border-bottom: 0; transition: max-height .32s cubic-bezier(.2,.7,.3,1), padding .32s ease; }
.searchbar.show { max-height: 90px; padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }

/* ---- reading progress bar on articles ---- */

.progressbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--t); z-index: 60; }

/* ---- back to top ---- */

.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--hair); background: var(--paper); color: var(--t);
  font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  transform: translateY(8px);
}
.totop.show { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--t); color: #fff; border-color: var(--t); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .brand-emblem, .brand-word, .brand-tag { opacity: 1 !important; transform: none !important; }
  .breaking ul { animation: none !important; }
  .searchbar { transition: none; }
}
