/*
Theme Name: Bhagirath News
Description: News, Reviews, Guides and Resources section. Version A look (navy and amber). Colours in :root below.
Version: 1.0
*/
:root { --navy: #14213d; --navy-2: #1c2c4f; --gold: #fca311; --paper: #f6f6f6; --white: #fff; --line: rgba(20,33,61,.16); --font: "Schibsted Grotesk", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans SC", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace; --r: 14px; --shadow: 0 1px 2px rgba(20,33,61,.06), 0 12px 30px rgba(20,33,61,.09); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 1.0625rem/1.6 var(--font); }
a { color: inherit; } img { max-width: 100%; height: auto; display: block; } h1, h2, h3, p, ul { margin: 0; padding: 0; } ul { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(100% - 2 * clamp(18px, 3vw, 44px), 1120px); margin-inline: auto; }
.hdr { background: var(--navy); color: #fff; } .hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.logo { font-weight: 600; letter-spacing: -.02em; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; } .logo i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); display: block; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; } .nav a { padding: 8px 12px; text-decoration: none; font-size: .9375rem; } .nav a:hover, .nav a.on { color: var(--gold); }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; } .muted { opacity: .72; }
h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; } h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; } h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.phead { background: var(--navy); color: #fff; padding-block: clamp(40px, 6vw, 80px); } .phead p { max-width: 56ch; margin-top: 14px; opacity: .85; font-size: 1.1875rem; } .phead .mono { opacity: .7; display: block; margin-bottom: 14px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; padding-block: 22px; } .tabs a { padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 500; box-shadow: inset 0 0 0 1.5px rgba(20,33,61,.3); transition: background-color .2s, color .2s, transform .2s; } .tabs a:hover { transform: translateY(-2px); } .tabs a.on { background: var(--navy); color: #fff; box-shadow: none; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); padding-bottom: 50px; }
.card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; transition: transform .25s, box-shadow .25s; } .card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20,33,61,.08), 0 20px 44px rgba(20,33,61,.16); }
.card__img { aspect-ratio: 16/10; background: var(--navy-2); overflow: hidden; } .card__img img { width: 100%; height: 100%; object-fit: cover; } .card__b { padding: 20px; display: grid; gap: 8px; align-content: start; } .card p { opacity: .78; font-size: .9688rem; }
.tag { display: inline-block; width: fit-content; padding: 3px 11px; border-radius: 999px; background: var(--gold); color: var(--navy); font: 500 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.post { padding-block: clamp(30px, 5vw, 60px); } .post__head { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; } .post__meta { opacity: .7; font-size: .9375rem; }
.post__img { max-width: 980px; margin: 28px auto 0; } .post__img img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); } .post__img figcaption { font-size: .8125rem; opacity: .65; padding-top: 8px; }
.entry { max-width: 720px; margin: 30px auto 0; } .entry p, .entry ul, .entry ol { margin-bottom: 1.1em; } .entry h2, .entry h3 { margin: 1.6em 0 .5em; } .entry ul { list-style: disc; padding-left: 1.3em; } .entry a { text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.notice { max-width: 720px; margin: 26px auto 0; padding: 16px 20px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); font-size: .9375rem; } .sources { max-width: 720px; margin: 24px auto 0; font-size: .9375rem; } .sources li { padding: 6px 0; box-shadow: inset 0 -1px 0 var(--line); }
.foot { padding-block: 36px; font-size: .875rem; box-shadow: inset 0 1px 0 var(--line); } .foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pager { display: flex; gap: 10px; justify-content: center; padding-bottom: 40px; } .pager a, .pager span { padding: 10px 16px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); text-decoration: none; }
.draftbar { background: var(--gold); color: var(--navy); text-align: center; padding: 10px; font-weight: 600; }

.buy { max-width: 720px; margin: 28px auto 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 22px 24px; display: grid; gap: 12px; } .buy ul { display: grid; gap: 10px; } .buy li { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line); } .buy li:last-child { box-shadow: none; } .buy li div { display: grid; gap: 2px; } .buy .muted { font-size: .875rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 12px; background: var(--gold); color: var(--navy); font-weight: 600; text-decoration: none; box-shadow: 0 8px 20px rgba(252,163,17,.38); transition: transform .2s, box-shadow .2s; } .btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(252,163,17,.42); }

/* Mobile and small screens */
.entry, .entry * , .post__head h1, .card, .buy, .notice, .sources { overflow-wrap: anywhere; }
.entry img, .entry video, .entry iframe, .entry figure { max-width: 100%; height: auto; }
.entry table { display: block; max-width: 100%; overflow-x: auto; }
.entry pre { max-width: 100%; overflow-x: auto; }
html { -webkit-text-size-adjust: 100%; }
@media (max-width: 720px) {
  body { font-size: 1rem; line-height: 1.65; }
  .hdr__in { min-height: 0; gap: 4px 12px; padding-block: 10px 6px; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0; margin-inline: -12px; padding-inline: 12px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 12px; white-space: nowrap; }
  .grid { grid-template-columns: 1fr; gap: 16px; padding-bottom: 36px; }
  .card__b { padding: 16px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-block: 16px; scrollbar-width: none; margin-inline: calc(-1 * clamp(18px, 3vw, 44px)); padding-inline: clamp(18px, 3vw, 44px); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; padding: 10px 16px; }
  h1 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); letter-spacing: -.035em; line-height: 1.1; }
  .phead { padding-block: 32px; } .phead p { font-size: 1.0625rem; }
  .post { padding-block: 22px 36px; } .post__img { margin-top: 20px; } .post__img img { border-radius: 10px; }
  .entry { margin-top: 22px; } .entry h2 { font-size: 1.35rem; }
  .buy { padding: 18px 16px; } .buy li { flex-direction: column; align-items: stretch; gap: 10px; } .buy .btn { width: 100%; }
  .notice { padding: 14px 16px; }
  .foot .wrap { flex-direction: column; }
  .pager { flex-wrap: wrap; }
}
