/* संत कबीर दोहे — design tokens lifted from the original comp */
:root {
  --bg: #2b251e;
  --surface: #332c24;
  --surface-alt: #2f2820;
  --hero: #231e18;
  --hero-img: #1b1712;
  --line: #3b332a;
  --line-strong: #443b30;
  --line-soft: #453c31;
  --text: #f2ece1;
  --text-bright: #fdf9f1;
  --text-mute: #c2b8a8;
  --text-dim: #9a9082;
  --text-faint: #8d8477;
  --gold: #c79a4e;
  --gold-lt: #d8ab5e;
  --gold-on: #241e17;
  --serif: 'Martel', Georgia, serif;
  --sans: 'Mukta', system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

/* Any class setting `display` outranks the UA's [hidden] rule, which silently
   breaks every JS toggle on the page. Make [hidden] always win. */
[hidden] { display: none !important; }

html {
  /* stops iOS inflating body text in landscape */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: var(--gold-lt); text-decoration: none; }
a:hover { color: #eec98e; }

img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--gold-on);
  padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 600; z-index: 999;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line);
  /* Sticky so search and the PDF button stay reachable down an 800-doha page.
     Opaque background is required — content scrolls underneath. Sits below the
     fullscreen hero (z-100) so display mode still covers it. */
  position: sticky; top: 0; z-index: 80;
  background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 14px; color: inherit; }
.brand:hover { color: inherit; }
.brand-name {
  font-family: var(--serif); font-weight: 600; font-size: 24px;
  line-height: 1; letter-spacing: .005em; color: #f6efe3;
}
.brand-rule { width: 1px; height: 22px; background: #4a4136; }
.brand-sub { font-family: var(--serif); font-size: 21px; line-height: 1; color: var(--gold-lt); }

.site-nav { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }

.btn-pill,
.nav-link {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: #efe7db; padding: 11px 18px; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-pill:hover,
.nav-link:hover { border-color: var(--gold); color: #efe7db; }

.nav-cta {
  /* inline-flex so the icon can centre when the label is hidden on mobile */
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--gold); color: var(--gold-on);
  padding: 12px 20px; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--gold-lt); color: var(--gold-on); }

.caret { color: var(--gold-lt); font-size: 11px; }

/* ---------- search ---------- */
/* icons are mobile-only; desktop shows the full labels */
.nav-icon { display: none; }

.search-wrap { position: relative; display: flex; align-items: center; }
.search-icon {
  position: absolute; left: 15px; font-size: 16px; color: var(--gold-lt);
  pointer-events: none; line-height: 1;
}
.search-input {
  width: 260px; height: 44px; padding: 0 16px 0 36px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--text);
  font-family: inherit; font-size: 14px; font-weight: 500;
  transition: border-color .16s ease, width .18s ease;
}
.search-input::placeholder { color: var(--text-faint); font-weight: 500; }
.search-input:hover { border-color: var(--gold); }
.search-input:focus { outline: none; border-color: var(--gold); width: 300px; }
/* kill the WebKit clear button — it fights the rounded pill */
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-panel { width: 340px; max-height: 420px; }
.search-results { display: grid; gap: 2px; }
.search-hit {
  display: block; padding: 10px 16px; border-radius: 9px; color: #e7ded0;
}
.search-hit:hover, .search-hit.is-active { background: #3a3128; color: #e7ded0; }
.search-hit-verse {
  display: block; font-family: var(--serif); font-size: 14px; line-height: 1.55;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-hit-theme {
  display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 3px;
}
.search-hit:hover .search-hit-theme, .search-hit.is-active .search-hit-theme { color: var(--gold); }
.search-empty {
  margin: 0; padding: 12px 16px; font-size: 13px; line-height: 1.6; color: var(--text-dim);
}

.menu-wrap { position: relative; }
.menu {
  position: absolute; top: 52px; left: 0; width: 250px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  z-index: 60; display: grid; gap: 2px; max-height: 340px; overflow: auto;
}
.menu-title {
  font-size: 13px; letter-spacing: .01em; font-weight: 600;
  color: #b3a897; padding: 8px 16px 6px;
}
.menu a {
  display: block; padding: 10px 16px; border-radius: 9px;
  font-size: 14.5px; font-weight: 500; color: #e7ded0;
}
.menu a:hover { background: #3a3128; color: #e7ded0; }
.menu a[aria-current="true"] { color: #f0d49a; background: #453a2c; }

/* ---------- hero ---------- */
.hero {
  position: relative; margin: 26px 0 0; border-radius: 22px; overflow: hidden;
  background: var(--hero); color: #f5efe4;
  display: grid; grid-template-columns: 33% 67%; min-height: 84vh;
}
.hero-media { position: relative; background: var(--hero-img); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(27, 23, 18, .35) 0%, rgba(27, 23, 18, .5) 45%, rgba(35, 30, 24, .97) 100%);
}
.hero-body {
  position: relative; padding: 70px 74px 54px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-countdown { font-size: 13.5px; color: var(--text-faint); margin-bottom: 46px; }
.hero-verse {
  font-family: var(--serif); font-weight: 600;
  font-size: min(2.45vw, 38px); line-height: 1.6; color: var(--text-bright);
  white-space: nowrap; margin: 0;
}
.hero-meaning { margin-top: 52px; max-width: 58ch; }
.label {
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--gold); margin-bottom: 10px;
}
.hero-meaning p {
  font-size: 18px; font-weight: 500; line-height: 1.8;
  margin: 0; color: #d5cbba; text-wrap: pretty;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: auto; padding-top: 52px;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--line-soft);
  color: #f0e8da; padding: 14px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; font-family: inherit; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--gold); color: #f0e8da; }

/* fullscreen / display mode */
.hero:fullscreen,
.hero[data-display="on"] {
  position: fixed !important; inset: 0 !important; z-index: 100;
  margin: 0 !important; border-radius: 0 !important;
  min-height: 100vh !important; height: 100vh !important;
}
.hero:fullscreen .hero-body,
.hero[data-display="on"] .hero-body { padding: 4vh 4vw !important; justify-content: center !important; }
.hero:fullscreen .hero-countdown,
.hero[data-display="on"] .hero-countdown {
  position: absolute !important; top: 3vh; left: 4vw; margin: 0 !important;
}
.hero:fullscreen .hero-actions,
.hero[data-display="on"] .hero-actions {
  position: absolute !important; bottom: 3vh; left: 4vw;
  margin: 0 !important; padding-top: 0 !important;
}
.hero:fullscreen [data-chrome],
.hero[data-display="on"] [data-chrome] { opacity: 0 !important; transition: opacity .35s ease; }
.hero:fullscreen:hover [data-chrome],
.hero[data-display="on"]:hover [data-chrome] { opacity: 1 !important; }
.hero:fullscreen .hero-verse,
.hero[data-display="on"] .hero-verse { font-size: min(3.35vw, 74px) !important; line-height: 1.5 !important; }
.hero:fullscreen .hero-meaning,
.hero[data-display="on"] .hero-meaning { margin-top: 4vh !important; }
.hero:fullscreen .hero-meaning p,
.hero[data-display="on"] .hero-meaning p { font-size: min(1.5vw, 30px) !important; }

/* Display mode is for reading the verse — the floating player has no business
   sitting on top of it. `body:has()` covers the CSS fallback; :fullscreen
   already promotes the hero to the top layer where fixed elements don't paint. */
body:has(.hero[data-display="on"]) .fab { display: none !important; }

/* ---------- ads ---------- */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed #4a4136; border-radius: 14px; background: var(--surface-alt);
  color: var(--text-faint); font-family: ui-monospace, monospace;
  font-size: 12px; letter-spacing: .08em; overflow: hidden;
}
.ad-leaderboard { height: 104px; margin-top: 26px; }
.ad-rect { height: 250px; border-radius: 16px; }
/* once real AdSense units are live the dashed placeholder chrome comes off */
.ad-slot.is-live { border: 0; background: transparent; }

/* ---------- sections ---------- */
.section { padding: 88px 0 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 22px; flex-wrap: wrap;
}
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; }
.section-head h2 { font-size: 38px; margin-bottom: 8px; }
.section-head p { margin: 0; color: var(--text-dim); font-size: 14px; }
.section-note {
  margin: 22px 0 0; font-family: ui-monospace, monospace;
  font-size: 12px; color: var(--text-faint);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--line-strong); background: var(--surface); color: #d9cfbf;
  padding: 10px 18px; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: var(--gold-on); }

.doha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doha-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px; display: grid; grid-template-columns: auto 1fr;
  gap: 20px; align-items: start;
}
.doha-num {
  font-family: ui-monospace, monospace; font-size: 12px;
  color: #7d7466; padding-top: 6px;
}
.doha-verse {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(14px, 1.32vw, 19px); line-height: 1.7;
  margin: 0 0 12px; white-space: nowrap; color: var(--text);
}
.doha-verse a { color: inherit; }
.doha-verse a:hover { color: #eec98e; }
.doha-meaning {
  font-size: 14px; line-height: 1.75; color: #b3a897;
  margin: 0 0 14px; text-wrap: pretty;
}
.tag {
  display: inline-block; font-size: 13px; letter-spacing: .01em; font-weight: 600;
  color: #e0b56b; background: #3a3128; border-radius: 999px; padding: 5px 12px;
}

.more-link { margin: 26px 0 0; display: flex; justify-content: center; }

/* ---------- all-dohe archive ---------- */
.archive { padding: 56px 0 0; }
.archive h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.archive-intro { color: var(--text-mute); font-size: 16px; margin: 0 0 12px; }
.archive-group { margin-top: 52px; }
.archive-group h2 {
  font-size: 24px; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.archive-group h2 a { color: var(--text-bright); }
.archive-group h2 a:hover { color: var(--gold-lt); }
.archive-count {
  font-family: ui-monospace, monospace; font-size: 12px;
  color: var(--text-faint); font-weight: 400;
}
/* Discrete rows, not a wall of verse — 800 serif first-lines stacked with no
   separation read as one continuous poem. */
.archive-list {
  margin: 0; padding: 0; list-style: none;
  columns: 2; column-gap: 44px;
}
.archive-list li { break-inside: avoid; }
.archive-list a {
  display: grid; grid-template-columns: 40px 1fr; align-items: baseline; gap: 12px;
  padding: 9px 10px 9px 4px; border-radius: 8px;
  border-bottom: 1px solid rgba(59, 51, 42, .7);
  color: var(--text-mute);
}
.archive-list a:hover { background: var(--surface); color: var(--gold-lt); }
.archive-num {
  font-family: ui-monospace, monospace; font-size: 11px;
  color: var(--text-faint); letter-spacing: .02em;
}
.archive-list a:hover .archive-num { color: var(--gold); }
.archive-line { font-family: var(--serif); font-size: 15px; line-height: 1.55; }
@media (max-width: 860px) {
  .archive-list { columns: 1; }
  .archive { padding-top: 36px; }
}

/* ---------- download ---------- */
.download {
  margin: 80px 0 0; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 22px; padding: 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.download h2 { font-size: 36px; margin-bottom: 14px; }
.download p.lede {
  font-size: 16px; line-height: 1.75; color: var(--text-mute);
  margin: 0 0 24px; max-width: 56ch; text-wrap: pretty;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-solid {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--gold-on); padding: 16px 26px;
  border-radius: 12px; font-weight: 600; font-size: 15px;
}
.btn-solid:hover { background: var(--gold-lt); color: var(--gold-on); }
.btn-outline {
  display: inline-flex; align-items: center;
  background: transparent; border: 1px solid var(--line-strong); color: #efe7db;
  padding: 15px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
}
.btn-outline:hover { border-color: var(--gold); color: #efe7db; }
.fineprint {
  font-size: 12.5px; color: var(--text-dim); margin: 18px 0 0;
  font-family: ui-monospace, monospace;
}

.book {
  position: relative; width: 236px; height: 320px; border-radius: 6px;
  overflow: hidden; background: #191410;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .5), 0 0 0 1px var(--line-strong);
}
.book img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(25, 20, 16, .25) 0%, rgba(25, 20, 16, .72) 46%, rgba(25, 20, 16, .96) 100%);
}
.book-frame {
  position: absolute; inset: 14px; border: 1px solid rgba(215, 180, 110, .32);
  border-radius: 3px; pointer-events: none; z-index: 2;
}
.book-text { position: absolute; inset: auto 26px 30px 26px; text-align: center; z-index: 2; }
.book-kicker { font-size: 13px; letter-spacing: .02em; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.book-title { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.45; color: #fbf6ec; }
.book-rule { width: 34px; height: 1px; background: var(--gold); margin: 12px auto; }
.book-sub { font-size: 12.5px; color: #c8bfb0; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 88px 0 0; align-items: start; }
.about h2 { font-size: 38px; margin-bottom: 20px; }
.about p { font-size: 16.5px; line-height: 1.8; color: var(--text-mute); margin: 0 0 16px; text-wrap: pretty; }
.about p:last-child { margin-bottom: 0; }
.aside-stack { display: grid; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px 26px;
}
.card-kicker { font-size: 13.5px; letter-spacing: .02em; font-weight: 600; color: var(--gold-lt); margin-bottom: 10px; }
.card p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--text-mute); }
.book-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.book-pick { display: block; color: inherit; }
.book-pick:hover { color: inherit; }
.book-pick-cover {
  display: block; margin-bottom: 9px;
  border-radius: 4px; overflow: hidden;
  background: #241f19;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 1px var(--line-strong);
  transition: box-shadow .18s ease, transform .18s ease;
}
.book-pick-cover img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block;
}
.book-pick:hover .book-pick-cover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .5), 0 0 0 1px var(--gold);
}
.book-pick-title {
  display: block; font-size: 12.5px; line-height: 1.35; font-weight: 600;
  color: var(--text-mute);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.book-pick:hover .book-pick-title { color: var(--gold-lt); }
.book-pick-author {
  display: block; font-size: 11.5px; line-height: 1.35;
  color: var(--text-faint); margin-top: 2px;
}
.card .fineprint { margin: 12px 0 0; font-size: 11px; }

/* ---------- support ---------- */
.support {
  margin: 88px 0 0; border-top: 1px solid var(--line); padding-top: 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.support h2 { font-size: 32px; margin-bottom: 12px; }
.support p { font-size: 16px; line-height: 1.75; color: var(--text-mute); margin: 0; max-width: 54ch; }
.upi {
  display: flex; align-items: center; gap: 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px;
}
.upi-qr {
  width: 124px; height: 124px; border-radius: 10px; flex: none;
  /* white plate + padding gives scanners the quiet zone and contrast they need */
  background: #fff; padding: 7px; object-fit: contain;
}
.upi-detail { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.upi-label { font-size: 13px; color: var(--text-dim); }
.upi-id {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: ui-monospace, monospace; font-size: 15px;
  background: transparent; border: 0; padding: 0; margin: 0;
  color: var(--text); cursor: pointer; text-align: left;
}
.upi-id:hover .upi-copy { color: var(--gold-lt); border-color: var(--gold); }
.upi-copy {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  color: var(--text-faint); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.upi-app {
  font-size: 14px; font-weight: 600;
  /* a upi:// link does nothing on desktop, so only offer it on small screens */
  display: none;
}
@media (max-width: 860px) {
  .upi-app { display: inline-block; }
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 13px; color: var(--text-dim); flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- music fab ---------- */
/* A labelled pill, not a bare icon — an unlabelled circle in the corner reads
   as decoration and nobody presses it. */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  display: inline-flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 20px 0 17px;
  border-radius: 999px; border: 1px solid var(--gold);
  background: #211c15; color: #e8cd97;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  /* three gentle pulses on arrival, then it stops nagging */
  animation: fabAttention 2.6s ease-out 3;
}
.fab:hover { background: var(--gold); color: var(--gold-on); border-color: var(--gold); }
.fab:hover .fab-icon { color: var(--gold-on); }

.fab-icon { font-size: 16px; line-height: 1; color: var(--gold-lt); }
.fab-label { white-space: nowrap; }

/* while playing it steps back — the job is done, don't keep shouting */
.fab.is-playing {
  animation: none;
  border-color: var(--line-strong);
  color: var(--text-mute);
}
.fab.is-playing .fab-icon { color: var(--gold-lt); }

@keyframes fabAttention {
  0%, 100% { box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 0 0 0 rgba(199, 154, 78, 0); }
  35%      { box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 0 0 10px rgba(199, 154, 78, .22); }
  70%      { box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 0 0 18px rgba(199, 154, 78, 0); }
}

/* ---------- single doha page ---------- */
.doha-page { padding: 56px 0 0; max-width: 760px; }
.crumb { font-size: 13px; color: var(--text-dim); margin-bottom: 28px; }
.doha-page .verse {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(21px, 3vw, 34px); line-height: 1.65;
  color: var(--text-bright); margin: 0 0 40px;
}
.doha-page h1 { font-size: clamp(21px, 3vw, 34px); line-height: 1.65; font-weight: 600; }
.doha-page .body { font-size: 17px; line-height: 1.85; color: var(--text-mute); text-wrap: pretty; }
.doha-nav {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 600; flex-wrap: wrap;
}

/* ---------- prose (policy pages) ---------- */
.prose { max-width: 720px; padding: 56px 0 0; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 12px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; color: var(--text-bright); }
.prose p, .prose li { font-size: 16px; line-height: 1.85; color: var(--text-mute); text-wrap: pretty; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .updated { font-size: 13px; color: var(--text-faint); font-family: ui-monospace, monospace; }

/* ---------- responsive ----------
   The comp is desktop-only. Hindi devotional traffic is overwhelmingly
   mobile, so these breakpoints are load-bearing for ad revenue. */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 38% 62%; }
  .hero-body { padding: 56px 48px 44px 40px; }
  .hero-verse { font-size: min(3vw, 30px); }
}

@media (max-width: 860px) {
  .wrap { padding: 0 16px 64px; }

  .site-header { flex-wrap: wrap; gap: 12px; padding: 16px 0; }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 18px; }

  /* All three collapse to 44px icon buttons, so the whole header is one row
     sitting beside the wordmark. Search expands across the header when tapped.
     (No position override here — sticky from the base rule already anchors the
     expanded search, and relative would break the stickiness.) */
  .site-nav { width: auto; gap: 8px; flex-wrap: nowrap; }

  .nav-label { display: none; }
  .nav-icon { display: block; font-size: 17px; line-height: 1; }

  .search-wrap { flex: 0 0 44px; width: 44px; }
  .search-input {
    width: 44px; padding: 0; cursor: pointer;
    color: transparent;                 /* no room for text while collapsed */
  }
  .search-input::placeholder { color: transparent; }
  .search-icon { left: 50%; transform: translateX(-50%); font-size: 18px; }

  /* expanded — spans the header, over the wordmark and the other icons */
  .search-wrap.is-open {
    position: absolute; left: 0; right: 0; top: 16px;
    z-index: 70; flex: none; width: auto;
  }
  .search-wrap.is-open .search-input {
    width: 100%; padding: 0 16px 0 38px; color: var(--text); cursor: text;
  }
  .search-wrap.is-open .search-input::placeholder { color: var(--text-faint); }
  .search-wrap.is-open .search-icon { left: 15px; transform: none; font-size: 16px; }

  /* round icon buttons; the PDF one keeps its gold fill as the primary action */
  .nav-link, .nav-cta {
    flex: 0 0 44px; width: 44px; padding: 0; gap: 0;
    justify-content: center; border-radius: 50%; min-height: 44px;
  }
  .btn-pill { padding: 11px 12px; font-size: 12.5px; min-height: 44px; }
  .menu { width: min(300px, calc(100vw - 32px)); }

  /* search takes the full nav row on a phone */
  .search-wrap { width: 100%; }
  .search-input,
  .search-input:focus { width: 100%; height: 44px; font-size: 15px; }
  .search-panel {
    width: calc(100vw - 32px);
    left: 0; right: 0; top: 50px;
    max-height: min(60vh, 380px);
  }

  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 16px; border-radius: 18px; }
  /* Taller than a thin band, and framed so the whole face fits — 38% lands the
     crop between turban and beard instead of slicing through the chin. */
  .hero-media { height: 58vw; max-height: 280px; min-height: 220px; }
  .hero-media img { object-position: center 38%; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(27, 23, 18, .25) 0%, rgba(35, 30, 24, .97) 100%);
  }
  .hero-body { padding: 28px 20px 26px; }
  .hero-countdown { margin-bottom: 20px; font-size: 12.5px; }
  /* nowrap is a desktop typographic choice; on narrow screens it overflows.
     Sized so a half-line rarely spills onto a line of its own. */
  .hero-verse { white-space: normal; font-size: clamp(17.5px, 4.9vw, 23px); line-height: 1.75; }
  .hero-meaning { margin-top: 26px; }
  .hero-meaning p { font-size: 15.5px; line-height: 1.75; }
  .hero-actions { padding-top: 28px; gap: 10px; }
  .btn-ghost { padding: 12px 16px; font-size: 14px; }

  .section { padding: 60px 0 0; }
  .section-head h2, .about h2 { font-size: 28px; }
  .doha-grid { grid-template-columns: 1fr; }
  .doha-card { padding: 22px; gap: 14px; }
  .doha-verse { white-space: normal; font-size: 17px; }

  .download {
    margin-top: 60px; padding: 32px 24px;
    grid-template-columns: 1fr; gap: 32px; justify-items: start;
  }
  .download h2 { font-size: 27px; }
  .book { width: 200px; height: 272px; margin: 0 auto; }

  .about { grid-template-columns: 1fr; gap: 32px; padding-top: 60px; }
  /* minmax(0,…) + min-width:0 stop the grid track being widened by its content;
     without it the unbreakable UPI id pushed the whole section past the viewport */
  .support { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 60px; padding-top: 40px; }
  .support > * { min-width: 0; }
  .upi { width: 100%; min-width: 0; }
  .upi-id { overflow-wrap: anywhere; }

  .site-footer { flex-direction: column; gap: 14px; }
  .fab { right: 16px; bottom: 16px; }

  /* ---- fullscreen on a phone ----
     The desktop rules size type in vw, which is fine at 1400px and collapses to
     ~13px verse / ~6px meaning at 390px. Narrow screens need their own scale,
     and the portrait is dropped so the verse owns the screen. */
  .hero:fullscreen,
  .hero[data-display="on"] { grid-template-columns: 1fr; }

  .hero:fullscreen .hero-media,
  .hero[data-display="on"] .hero-media { display: none; }

  .hero:fullscreen .hero-body,
  .hero[data-display="on"] .hero-body {
    padding: 15vh 22px 16vh !important;
    justify-content: center !important;
  }

  .hero:fullscreen .hero-verse,
  .hero[data-display="on"] .hero-verse {
    font-size: clamp(21px, 6.4vw, 32px) !important;
    line-height: 1.8 !important;
    white-space: normal;
  }

  .hero:fullscreen .hero-meaning,
  .hero[data-display="on"] .hero-meaning { margin-top: 5vh !important; }

  .hero:fullscreen .hero-meaning p,
  .hero[data-display="on"] .hero-meaning p {
    font-size: 15.5px !important; line-height: 1.8 !important;
  }

  /* chrome stays put but never overlaps the verse */
  .hero:fullscreen .hero-countdown,
  .hero[data-display="on"] .hero-countdown { top: 2.5vh; left: 22px; }

  .hero:fullscreen .hero-actions,
  .hero[data-display="on"] .hero-actions { bottom: 2.5vh; left: 22px; right: 22px; }

  /* on touch there's no hover, so the controls must stay visible */
  .hero:fullscreen [data-chrome],
  .hero[data-display="on"] [data-chrome] { opacity: 1 !important; }
}

@media (max-width: 420px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-solid, .btn-outline { justify-content: center; }
  .upi { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
