/* ==========================================================================
   Public site — premium digital publication
   ========================================================================== */
:root {
  --brand: #b3261e;
  --brand-ink: #ffffff;
  --ink: #16181d;
  --ink-2: #3b3f47;
  --muted: #6b7079;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --line: #e7e3da;
  --shadow-sm: 0 1px 2px rgba(20,20,30,.05), 0 2px 8px rgba(20,20,30,.05);
  --shadow: 0 10px 30px -12px rgba(20,20,30,.25);
  --shadow-lg: 0 30px 60px -20px rgba(20,20,30,.35);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Playfair Display", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --read-size: 1.15rem;
  --highlight: rgba(250, 204, 21, .38);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eceae6; --ink-2: #c9c6bf; --muted: #9a978f; --paper: #0f1013; --surface: #17181c; --surface-2: #1f2025;
    --line: #2b2c32; --shadow: 0 10px 30px -12px rgba(0,0,0,.6); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
    --highlight: rgba(250, 204, 21, .28); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eceae6; --ink-2: #c9c6bf; --muted: #9a978f; --paper: #0f1013; --surface: #17181c; --surface-2: #1f2025;
  --line: #2b2c32; --shadow: 0 10px 30px -12px rgba(0,0,0,.6); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
  --highlight: rgba(250, 204, 21, .28); color-scheme: dark;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; }
a:hover { color: var(--brand); }
h1, h2, h3, .display-font { font-family: var(--font-display); letter-spacing: -.01em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 3000; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.container-xl { max-width: 1280px; }
.text-muted-2 { color: var(--muted) !important; }
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.3rem; }
.btn-brand { background: var(--brand); color: var(--brand-ink); border: 0; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-brand:hover, .btn-brand:focus { background: color-mix(in srgb, var(--brand) 85%, #000); color: #fff; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-icon { width: 42px; height: 42px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-icon:hover { border-color: var(--ink); color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; text-decoration: none; color: var(--ink-2); white-space: nowrap; transition: .15s; }
.chip:hover, .chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.eyebrow { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--brand); }
.form-control, .form-select { background-color: var(--surface); border-color: var(--line); color: var(--ink); border-radius: 12px; padding: .7rem 1rem; }
.form-control:focus, .form-select:focus { background-color: var(--surface); color: var(--ink); border-color: var(--brand); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 18%, transparent); }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.logo img { height: 38px; width: auto; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--ink-2); }
.main-nav a:hover, .main-nav a.active { background: var(--surface-2); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-trigger { display: flex; align-items: center; gap: 10px; min-width: 220px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 8px 16px; font-size: .9rem; }
.search-trigger kbd { margin-left: auto; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); font-size: .7rem; }
@media (max-width: 991.98px) { .main-nav, .search-trigger { display: none !important; } }
.offcanvas { background: var(--paper); color: var(--ink); }
.offcanvas .nav-link { color: var(--ink); font-size: 1.1rem; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(10,10,14,.55); backdrop-filter: blur(6px); display: none; padding: 8vh 16px 16px; }
.search-overlay.open { display: block; animation: fadeIn .15s ease; }
.search-panel { max-width: 720px; margin: 0 auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-panel .search-input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.2rem; padding: 20px 22px 20px 56px; }
.search-panel .search-input:focus { box-shadow: none; }
.search-panel .bi-search { position: absolute; left: 22px; top: 22px; font-size: 1.2rem; color: var(--muted); }
.search-results { max-height: 62vh; overflow: auto; padding: 8px; }
.sr-group { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px 6px; }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.sr-item:hover, .sr-item:focus { background: var(--surface-2); color: var(--ink); }
.sr-item img { width: 40px; height: 52px; object-fit: cover; border-radius: 6px; background: var(--surface-2); flex: none; }
.sr-item .sr-title { font-weight: 600; line-height: 1.3; }
.sr-item .sr-sub { font-size: .82rem; color: var(--muted); }
.sr-item mark { background: var(--highlight); color: inherit; padding: 0 2px; border-radius: 3px; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 18%, transparent), transparent 65%); pointer-events: none; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; margin: 12px 0 18px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.hero-cover-wrap { perspective: 1600px; display: flex; justify-content: center; }
.hero-cover { position: relative; width: min(360px, 78vw); aspect-ratio: 3/4; border-radius: 6px 14px 14px 6px; overflow: hidden;
  box-shadow: var(--shadow-lg), 18px 18px 0 -6px color-mix(in srgb, var(--brand) 25%, transparent);
  transform: rotateY(-14deg) rotateX(4deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hero-cover:hover { transform: rotateY(-4deg) rotateX(1deg) translateY(-6px); }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.12) 3%, transparent 8%, transparent 92%, rgba(0,0,0,.08)); }

/* Sections --------------------------------------------------------------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 4px 0 0; }
.section-head a.more { text-decoration: none; font-weight: 600; white-space: nowrap; }
.scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.scroll-row > * { scroll-snap-align: start; }
@media (min-width: 992px) { .scroll-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.band { background: var(--surface-2); }

/* Magazine card --------------------------------------------------------- */
.mag-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.mag-cover { position: relative; aspect-ratio: 3/4; border-radius: 4px 12px 12px 4px; overflow: hidden; background: var(--surface-2);
  box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.mag-cover img { width: 100%; height: 100%; object-fit: cover; }
.mag-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.1) 2.5%, transparent 7%); pointer-events: none; }
.mag-card:hover .mag-cover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.mag-card .badge-pages { position: absolute; right: 10px; bottom: 10px; z-index: 1; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(4px); }
.mag-body { padding: 14px 2px 0; }
.mag-title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; margin: 0 0 4px; }
.mag-edition { color: var(--brand); font-weight: 600; font-size: .85rem; }
.mag-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .8rem; margin: 6px 0 12px; }
.mag-card .btn { align-self: flex-start; padding: .45rem 1.1rem; font-size: .88rem; }

/* News card ------------------------------------------------------------- */
.news-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-img { position: relative; aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 90%, #000), #1f2937); }
.news-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.news-cat { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--brand); text-decoration: none; }
.news-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.3; margin: 8px 0; }
.news-title a { text-decoration: none; }
.news-sum { color: var(--ink-2); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .82rem; }
.listen-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 600; color: var(--ink); }
.listen-btn:hover, .listen-btn.playing { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.news-lead .news-img { aspect-ratio: 16/9; }
.news-lead .news-title { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.news-list-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.news-list-item .rank { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--line); line-height: 1; min-width: 34px; }
.news-list-item .t { font-weight: 600; line-height: 1.35; }

/* Magazine detail --------------------------------------------------------- */
.detail-cover { width: 100%; max-width: 380px; aspect-ratio: 3/4; object-fit: cover; border-radius: 6px 16px 16px 6px; box-shadow: var(--shadow-lg); }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 22px 0; }
.meta-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.meta-grid dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.meta-grid dd { margin: 2px 0 0; font-weight: 600; }
.thumb-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.thumb-strip a { display: block; text-decoration: none; color: var(--muted); font-size: .8rem; text-align: center; }
.thumb-strip img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow-sm); margin-bottom: 6px; background: var(--surface-2); }
.continue-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); }
.progress-thin { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-thin > span { display: block; height: 100%; background: var(--brand); }

/* Article reader --------------------------------------------------------- */
.article-page { padding: 34px 0 56px; }
.article-wrap { max-width: 740px; margin: 0 auto; }
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 1040; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #f59e0b)); box-shadow: 0 0 10px color-mix(in srgb, var(--brand) 60%, transparent); transition: width .1s linear; }
.article-crumbs { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 22px; }
.article-crumbs a { color: var(--muted); text-decoration: none; font-weight: 500; }
.article-crumbs a:hover { color: var(--brand); }
.article-crumbs .bi { font-size: .7rem; opacity: .6; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.article-kicker > * { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.kicker-cat { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand) !important; }
.kicker-premium { background: var(--brand); color: #fff; }
.kicker-epaper { border: 1px solid var(--line); color: var(--ink-2) !important; }
.article-title { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.3; margin: 0 0 14px; letter-spacing: -.01em; }
.article-dek { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--ink-2); line-height: 1.55; margin: 0 0 22px; font-weight: 400; }
.byline { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline-avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); }
.byline-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.byline-text strong { font-size: .95rem; }
.byline-text span { font-size: .84rem; color: var(--muted); }
.byline-views { margin-left: auto; font-size: .84rem; color: var(--muted); white-space: nowrap; }
.article-hero { border-radius: var(--radius); overflow: hidden; margin: 26px 0 0; box-shadow: var(--shadow); }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; }

/* Action bar: one slim row that sticks under the header */
.article-actions { position: sticky; top: calc(var(--header-h, 70px) + 6px); z-index: 20; display: flex; align-items: center; gap: 6px; margin: 22px 0 30px; padding: 7px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.aa-spacer { flex: 1; }
.aa-listen { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 12px; padding: 7px 14px 7px 8px; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand) 60%, color-mix(in srgb, var(--brand) 78%, #000)); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 80%, transparent); transition: filter .15s, transform .1s; }
.aa-listen:hover { filter: brightness(1.07); } .aa-listen:active { transform: scale(.98); }
.aa-listen .aa-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.2); }
.aa-listen .eq { display: none; gap: 2px; align-items: flex-end; height: 12px; }
.aa-listen .eq i { width: 3px; height: 100%; border-radius: 2px; background: #fff; animation: wave .9s infinite ease-in-out; transform-origin: bottom; }
.aa-listen .eq i:nth-child(2) { animation-delay: .18s; } .aa-listen .eq i:nth-child(3) { animation-delay: .36s; }
.aa-listen.playing .ico-speak { display: none; } .aa-listen.playing .eq { display: inline-flex; }
.aa-listen .aa-sub { font-size: .74rem; font-weight: 600; opacity: .8; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.35); }
.aa-chip { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.aa-chip:hover, .aa-chip[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.aa-icon { position: relative; width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--ink-2); font-size: 1.05rem; text-decoration: none; transition: background .15s, color .15s; }
.aa-icon:hover, .aa-icon.active, .aa-icon[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.aa-icon.active { color: var(--brand); }
.aa-icon .aa-lock { position: absolute; right: 5px; bottom: 5px; font-size: .58rem; color: var(--brand); }
.aa-textsize { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.aa-size { display: flex; gap: 4px; }
.aa-size button { min-width: 48px; height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; font-weight: 700; }
.aa-size button:hover { border-color: var(--brand); color: var(--brand); }
.article-actions .dropdown-menu { background: var(--surface); border-color: var(--line); border-radius: 14px; padding: 6px; }
.article-actions .dropdown-item { color: var(--ink); border-radius: 9px; padding: 8px 12px; font-size: .92rem; }
.article-actions .dropdown-item:hover { background: var(--surface-2); color: var(--ink); }

/* Body text: no icons; each paragraph is a quiet tap target */
.article-body { font-size: var(--read-size); line-height: 1.9; color: var(--ink); }
.article-body .para { position: relative; padding: 4px 14px; margin: 0 -14px 16px; border-radius: 10px; transition: background .2s, box-shadow .2s; }
.article-body .para p { margin: 0; }
.article-body .para[lang="hi"] { font-family: "Noto Serif Devanagari", "Noto Sans Devanagari", var(--font-body); line-height: 2; }
.article-body .para.lead-para { font-size: 1.08em; color: var(--ink); }
.article-body .para[data-tts] { cursor: pointer; }
@media (hover: hover) { .article-body .para[data-tts]:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } }
.article-body .para.sel { background: color-mix(in srgb, var(--brand) 7%, transparent); box-shadow: inset 3px 0 0 var(--brand); }
.article-body .para.reading { background: var(--highlight); box-shadow: inset 3px 0 0 #ca8a04; }
.article-body h2, .article-body h3 { margin-top: 1.6em; }
.article-hint { font-size: .8rem; color: var(--muted); margin: -4px 0 0; }
.article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.article-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
@media (max-width: 575.98px) {
  .article-page { padding-top: 20px; }
  .article-actions { margin-left: -6px; margin-right: -6px; border-radius: 14px; gap: 2px; }
  .aa-listen .aa-sub { display: none; }
  .aa-chip { padding: 0 8px; } .aa-chip .bi-chevron-down { display: none; }
  .aa-icon { width: 38px; height: 38px; }
  .byline-views { display: none; }
}
/* Speaker icon (custom, crisp at every size) + animated equalizer while that paragraph is read */
.ico-speak { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.2 4.6 6.6 8.3H3.9a.9.9 0 0 0-.9.9v5.6c0 .5.4.9.9.9h2.7l4.6 3.7c.3.2.8 0 .8-.4V5c0-.4-.5-.6-.8-.4Z' fill='%23000'/%3E%3Cpath d='M15.6 9a4.3 4.3 0 0 1 0 6'/%3E%3Cpath d='M18.5 6.2a8.2 8.2 0 0 1 0 11.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.2 4.6 6.6 8.3H3.9a.9.9 0 0 0-.9.9v5.6c0 .5.4.9.9.9h2.7l4.6 3.7c.3.2.8 0 .8-.4V5c0-.4-.5-.6-.8-.4Z' fill='%23000'/%3E%3Cpath d='M15.6 9a4.3 4.3 0 0 1 0 6'/%3E%3Cpath d='M18.5 6.2a8.2 8.2 0 0 1 0 11.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.speak { width: 36px; height: 36px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line)); background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  color: var(--brand); display: inline-grid; place-items: center; transition: background .18s, color .18s, transform .18s, box-shadow .18s; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.speak:hover, .speak:focus-visible { background: var(--brand); color: #fff; border-color: var(--brand); transform: scale(1.06); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }
.speak .eq, .para-marker .eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.speak .eq i, .para-marker .eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; animation: wave .9s infinite ease-in-out; transform-origin: bottom; }
.speak .eq i:nth-child(2), .para-marker .eq i:nth-child(2) { animation-delay: .18s; }
.speak .eq i:nth-child(3), .para-marker .eq i:nth-child(3) { animation-delay: .36s; }
.reading > .speak, .reading .speak, .para-marker.reading { background: var(--brand); color: #fff; border-color: var(--brand); }
.reading > .speak .ico-speak, .reading .speak .ico-speak, .para-marker.reading .ico-speak { display: none; }
.reading > .speak .eq, .reading .speak .eq, .para-marker.reading .eq { display: inline-flex; }
.tts-bar .tr-badge { margin-left: 8px; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(250,204,21,.9); color: #1b1b1b; vertical-align: middle; }
.listen-btn .ico-speak { margin-right: 2px; }

/* Download / Print that need login or a plan */
.btn-locked { opacity: .85; border-style: dashed !important; }
.btn-locked .bi-lock-fill { color: var(--brand); }
.r-btn.r-locked { position: relative; opacity: .8; }
.r-btn .r-lock { position: absolute; right: 3px; bottom: 3px; font-size: .6rem; color: var(--brand); }

/* Magazine contents (page index) */
.toc-block { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--surface); }
.toc-page-list { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow-y: auto; }
.toc-page-list a { display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line); transition: background .15s; }
.toc-page-list li:last-child a { border-bottom: 0; }
.toc-page-list a:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.toc-page-list .num { min-width: 34px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.toc-page-list .ttl { flex: 1; min-width: 0; font-weight: 600; }
.toc-page-list .go { color: var(--ink-2); opacity: .5; }
body.reading-mode .site-header, body.reading-mode .site-footer, body.reading-mode .related, body.reading-mode .article-hero { display: none; }
body.reading-mode { --paper: #f4ecd8; --surface: #fbf5e6; --line: #e2d6b8; --ink: #2d2618; --ink-2: #4a3f2a; }
:root[data-theme="dark"] body.reading-mode { --paper: #121212; --surface: #1a1a1a; --ink: #d8d3c8; }
body.reading-mode .article-body { font-family: "Noto Serif Devanagari", Georgia, serif; }

/* Floating TTS bar (article + reader) ------------------------------------ */
.tts-bar { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); z-index: 1060; display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 8px 10px 8px 18px; box-shadow: var(--shadow-lg); transition: transform .3s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 24px); }
.tts-bar.show { transform: translate(-50%, 0); }
.tts-bar .tts-status { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.tts-bar .tts-status .wave { display: inline-flex; gap: 2px; margin-right: 8px; vertical-align: middle; }
.tts-bar .wave i { width: 3px; height: 12px; background: currentColor; border-radius: 2px; animation: wave 1s infinite ease-in-out; }
.tts-bar .wave i:nth-child(2) { animation-delay: .15s; } .tts-bar .wave i:nth-child(3) { animation-delay: .3s; } .tts-bar .wave i:nth-child(4) { animation-delay: .45s; }
.tts-bar.paused .wave i { animation-play-state: paused; }
.tts-bar button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: inherit; display: grid; place-items: center; }
:root[data-theme="dark"] .tts-bar button { background: rgba(0,0,0,.12); }
.tts-bar select { background: transparent; color: inherit; border: 1px solid rgba(127,127,127,.4); border-radius: 999px; padding: 4px 8px; font-size: .8rem; }
.tts-bar select option { color: #111; }
@keyframes wave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #111216; color: #c9c6bf; padding: 56px 0 28px; margin-top: 40px; }
.site-footer a { color: #c9c6bf; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #3a3b42; border-radius: 12px; padding: 8px 14px; color: #fff !important; }
.store-badge i { font-size: 1.5rem; }
.store-badge small { display: block; font-size: .65rem; opacity: .7; line-height: 1; }

/* Auth ------------------------------------------------------------------ */
.auth-box { max-width: 440px; margin: 56px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }

/* Skeletons -------------------------------------------------------------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 60%, var(--surface)) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 10px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.toast-wrap { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 3000; display: grid; gap: 8px; }
.toast-msg { background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 500; font-size: .92rem; animation: fadeIn .2s; }

.pagination .page-link { border-radius: 999px !important; margin: 0 3px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.pagination .active .page-link { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { text-align: center; color: var(--muted); padding: 60px 16px; }
.empty i { font-size: 2.6rem; display: block; margin-bottom: 8px; opacity: .5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 575.98px) {
  .section { padding: 40px 0; }
  .hero { padding: 36px 0 48px; }
}

.news-card.news-lead { height: auto; }

.article-hero img { object-position: top; }


/* Paywall & premium badges */
.paywall { position: relative; margin-top: -40px; }
.paywall-fade { height: 90px; background: linear-gradient(to bottom, transparent, var(--paper)); margin-bottom: 8px; position: relative; }
.premium-badge { position: absolute; left: 10px; top: 10px; z-index: 2; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }

/* Top strip (date · Today's E-Paper · Subscribe) */
.topbar { background: #111216; color: #c9c6bf; font-size: .78rem; border-bottom: 3px solid var(--brand); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.topbar-date .sep { opacity: .5; margin: 0 4px; }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a { color: #e9e6df; text-decoration: none; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.topbar-links a:hover { color: #fff; }
.topbar-sub { color: #fcd34d !important; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
html, body { overflow-x: clip; }
.site-header { transition: box-shadow .2s, background .2s; }
.site-header .inner { height: 74px; gap: 28px; transition: height .2s; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.45); }
.site-header.scrolled .inner { height: 62px; }
.logo { flex: none; }
.logo img { height: 52px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); transition: height .2s; }
.site-header.scrolled .logo img { height: 44px; }
.logo-text { white-space: nowrap; }

/* Desktop links: calm text, brand underline for the current section */
.main-nav { gap: 2px; margin-left: 0; }
.main-nav a { position: relative; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; color: var(--ink-2); white-space: nowrap; transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a.active { color: var(--ink); background: transparent; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--brand); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a.active::after, .main-nav a:hover::after { transform: scaleX(1); }
.main-nav a:hover:not(.active)::after { opacity: .35; }

.header-actions { gap: 10px; }
.hdr-btn { width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.15rem; text-decoration: none; transition: border-color .15s, background .15s; }
.hdr-btn:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); color: var(--ink); background: var(--surface-2); }
.search-trigger { border-radius: 12px; height: 42px; transition: border-color .15s; }
.search-trigger:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.btn-subscribe { height: 42px; align-items: center; gap: 6px; border-radius: 12px; padding: 0 16px; font-weight: 700; color: var(--brand); border: 1.5px solid color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.btn-subscribe:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-subscribe .bi { color: #f59e0b; } .btn-subscribe:hover .bi { color: #fde68a; }
.btn-login { height: 42px; align-items: center; gap: 6px; border-radius: 12px; padding: 0 18px; }

/* Avatar + account menu */
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 800; font-size: .95rem; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 80%, #fff), var(--brand)); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--brand) 35%, transparent); }
.avatar-lg { width: 44px; height: 44px; font-size: 1.15rem; }
.avatar-sm { width: 24px; height: 24px; font-size: .72rem; box-shadow: none; }
.avatar-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px; color: var(--muted); border-radius: 999px; }
.avatar-btn .bi { font-size: .75rem; }
.account-menu { min-width: 270px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); }
.account-menu .am-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-menu .am-head small { color: var(--muted); }
.account-menu .am-plan { margin: 0 6px 6px; padding: 6px 10px; border-radius: 10px; font-size: .8rem; font-weight: 700; color: #15803d; background: color-mix(in srgb, #16a34a 10%, transparent); }
.account-menu .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 9px 10px; font-weight: 500; }
.account-menu .dropdown-item .bi { width: 18px; color: var(--muted); }
.account-menu .text-brand, .account-menu .text-brand .bi { color: var(--brand); }
.min-w-0 { min-width: 0; }

@media (max-width: 1399.98px) { .search-trigger { min-width: 0; width: 42px; padding: 0; justify-content: center; } .search-trigger .st-text, .search-trigger kbd { display: none; } .main-nav a { padding: 10px 11px; } }
@media (max-width: 991.98px) {
  /* Phone: menu · centred logo · search + account */
  .site-header .inner { display: grid; grid-template-columns: 1fr auto 1fr; height: 62px; gap: 8px; }
  .site-header.scrolled .inner { height: 56px; }
  .site-header .logo { margin: 0; justify-self: center; }
  .logo img { height: 42px; }
  .site-header.scrolled .logo img { height: 38px; }
  .header-actions { justify-self: end; gap: 6px; }
  .hdr-btn { width: 40px; height: 40px; border-color: transparent; background: transparent; font-size: 1.3rem; }
  .hdr-btn:hover { background: var(--surface-2); border-color: transparent; }
}

/* Phone menu (offcanvas) */
.mnav { --bs-offcanvas-width: min(340px, 86vw); background: var(--paper); border-right: 0; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mnav-head .logo img { height: 44px; }
.mnav .offcanvas-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.mnav-user { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mnav-user small { color: var(--muted); } .mnav-user small .bi { color: #16a34a; }
.mnav-guest { padding: 14px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface)); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.mnav-guest small { color: var(--muted); }
.mnav-links { display: flex; flex-direction: column; gap: 2px; }
.mnav-links a { display: flex; align-items: center; gap: 14px; padding: 12px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mnav-links a .bi { font-size: 1.15rem; width: 22px; color: var(--muted); }
.mnav-links a:hover { background: var(--surface-2); }
.mnav-links a.active { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.mnav-links a.active .bi { color: var(--brand); }
.mnav-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.mnav-card > .bi:first-child { font-size: 1.3rem; color: var(--brand); }
.mnav-card small { display: block; color: var(--muted); font-size: .78rem; }
.mnav-sub { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); color: #fff; border: 0; }
.mnav-sub small, .mnav-sub .bi { color: #fde68a !important; }
.mnav-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font-weight: 600; text-align: left; }
.mnav-row .ti { width: 22px; font-size: 1.1rem; color: var(--muted); }
.mnav-row .switch { margin-left: auto; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.mnav-row .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.mnav-row.on .switch { background: var(--brand); } .mnav-row.on .switch::after { transform: translateX(18px); }
.mnav-foot { margin-top: auto; display: flex; gap: 16px; font-size: .82rem; padding-top: 8px; }
.mnav-foot a { color: var(--muted); text-decoration: none; }

/* Phone bottom tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; display: flex; justify-content: space-around; align-items: stretch;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); transition: transform .25s ease; }
.tabbar.hide { transform: translateY(110%); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; padding: 4px 2px; border-radius: 12px;
  color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600; }
.tabbar a .bi { font-size: 1.3rem; line-height: 1; }
.tabbar a.active { color: var(--brand); }
.tabbar a.active .bi { transform: translateY(-1px); }
@media (max-width: 991.98px) {
  body.has-tabbar { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.has-tabbar .tts-bar { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Sign up / Login (mobile number → OTP → profile)
   ========================================================================== */
.auth-hero { position: relative; height: 300px; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at 75% 20%, rgba(255,190,120,.35), transparent 55%), linear-gradient(135deg, #B4262D 0%, #9E1B22 45%, #4A0A10 100%); }
.auth-hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); }
.auth-hero-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 96px; }
.auth-slides { position: relative; min-height: 96px; }
.auth-slide { position: absolute; inset: 0 auto auto 0; margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.15; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.auth-slide small { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: #F4DFA8; }
.auth-slide.on { opacity: 1; transform: none; }
.auth-dots { display: flex; gap: 6px; margin-top: 14px; }
.auth-dots i { width: 8px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.5); transition: width .3s, background .3s; }
.auth-dots i.on { width: 26px; background: #fff; }
.auth-card { position: relative; z-index: 2; max-width: 460px; margin: -80px auto 0; background: var(--surface); border-radius: 16px; padding: 28px 22px 24px;
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.35), 0 0 0 1px var(--line); }
.auth-step.enter { animation: authIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes authIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.auth-title { font-family: var(--font-body); font-size: 1.45rem; font-weight: 700; text-align: center; margin: 0 0 20px; }
.auth-sub { text-align: center; color: var(--muted); margin: -10px 0 18px; }
.auth-back { position: absolute; left: 14px; top: 20px; border: 0; background: none; font-size: 1.3rem; color: var(--ink); width: 40px; height: 40px; border-radius: 50%; }
.auth-back:hover { background: var(--surface-2); }
.phone-row { display: flex; gap: 12px; }
.phone-row .cc { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 1.1rem; }
.phone-row .flag { width: 26px; height: 18px; border-radius: 2px; background: linear-gradient(#FF9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%); box-shadow: 0 0 0 1px rgba(0,0,0,.12); position: relative; }
.phone-row .flag::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; border: 1px solid #000080; }
.phone-row .form-control { height: 56px; font-size: 1.2rem; letter-spacing: .04em; border-width: 1.5px; border-radius: 12px; }
.phone-row .form-control:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.auth-btn { width: 100%; height: 54px; margin-top: 22px; border-radius: 12px; font-weight: 800; letter-spacing: .06em; font-size: 1.05rem; }
.auth-btn:disabled { background: #CFCFCF; border-color: #CFCFCF; color: #fff; opacity: 1; box-shadow: none; }
.auth-btn.loading { position: relative; color: transparent !important; }
.auth-btn.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: var(--muted); font-weight: 600; font-size: .85rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border: 1.5px solid var(--line); border-radius: 50%; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.auth-alt:hover { border-color: var(--brand); color: var(--brand); }
.auth-error { margin-top: 12px; color: #C62828; font-size: .9rem; font-weight: 600; text-align: center; }
.auth-terms { max-width: 460px; margin: 16px auto 40px; text-align: center; font-size: .8rem; color: var(--muted); }
.otp-boxes { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; cursor: text; }
.otp-boxes input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; font-size: 16px; caret-color: transparent; }
.otp-boxes span { height: 58px; border: 1.5px solid var(--line); border-radius: 12px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; background: var(--surface); transition: border-color .15s, transform .15s; }
.otp-boxes span.filled { border-color: var(--ink); }
.otp-boxes span.cur { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.otp-boxes span.cur::after { content: ""; width: 2px; height: 26px; background: #2563EB; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.otp-boxes.shake { animation: shake .4s; }
.otp-boxes span.pop { animation: otpPop .22s cubic-bezier(.3,1.6,.5,1); }
@keyframes otpPop { from { transform: scale(.7); } to { transform: none; } }
.auth-step.enter.back { animation-name: authInBack; }
@keyframes authInBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-step.enter, .otp-boxes span.pop, .otp-boxes.shake { animation: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.auth-test { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: #FFF4D6; color: #7A5200; font-size: .9rem; text-align: center; }
.auth-resend { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.btn-link-sm { border: 0; background: none; padding: 0; color: #2563EB; font-weight: 700; }
.auth-card .opt { color: var(--muted); font-weight: 400; font-size: .85em; }
@media (max-width: 575.98px) { .auth-hero { height: 260px; } .auth-card { margin-top: -70px; padding: 24px 16px 20px; } .otp-boxes { gap: 7px; } .otp-boxes span { height: 52px; } }

.footer-logo { display: inline-flex; text-decoration: none; }
.footer-logo img { height: 60px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
a.store-badge { text-decoration: none; }

/* Bootstrap's widest gutters are wider than the page padding on phones → horizontal scroll */
@media (max-width: 575.98px) { .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; } }

/* Paragraph popup (magazine reader + e-news article): Listen · Listen in · Speed · Bookmark */

.para-pop { position: fixed; z-index: 1065; width: 340px; max-width: calc(100vw - 24px); background: #fff; color: #1b1c20; border-radius: 18px; padding: 14px 14px 12px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.06); opacity: 0; transform: translateY(6px) scale(.98); pointer-events: none;
  transition: opacity .16s ease, transform .18s cubic-bezier(.2,.9,.3,1.2); }
.para-pop.open { opacity: 1; transform: none; pointer-events: auto; }
.pp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pp-where { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.pp-x { border: 0; background: #f1efe9; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #555; font-size: .8rem; }
.pp-text { font-size: .86rem; line-height: 1.5; color: #4b4a46; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pp-main { display: flex; gap: 8px; margin-bottom: 12px; }
.pp-play { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #fff), var(--brand) 55%, color-mix(in srgb, var(--brand) 75%, #000)); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 80%, transparent); transition: transform .12s, filter .15s; }
.pp-play:hover { filter: brightness(1.06); } .pp-play:active { transform: scale(.98); }
.pp-play .pp-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: .95rem; }
.pp-play .eq { display: none; gap: 2px; align-items: flex-end; height: 12px; }
.pp-play .eq i { width: 3px; height: 100%; border-radius: 2px; background: #fff; animation: wave .9s infinite ease-in-out; transform-origin: bottom; }
.pp-play .eq i:nth-child(2) { animation-delay: .18s; } .pp-play .eq i:nth-child(3) { animation-delay: .36s; }
.pp-play.playing .ico-speak { display: none; } .pp-play.playing .eq { display: inline-flex; }
.pp-icon { width: 44px; border: 1px solid #e3dfd6; background: #faf9f6; border-radius: 14px; color: #3a3935; font-size: 1.05rem; display: grid; place-items: center; }
.pp-icon:hover { border-color: var(--brand); color: var(--brand); } .pp-icon.on { color: #ca8a04; }
.pp-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pp-label { flex: none; width: 62px; font-size: .72rem; font-weight: 700; color: #8a877f; text-transform: uppercase; letter-spacing: .05em; }
.pp-seg { flex: 1; display: flex; background: #f1efe9; border-radius: 999px; padding: 3px; gap: 2px; }
.pp-seg button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 6px 4px; font-size: .8rem; font-weight: 600; color: #5b5a55; white-space: nowrap; transition: background .15s, color .15s; }
.pp-seg button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.pp-speed button { font-size: .74rem; }
.pp-note { margin-top: 10px; padding: 8px 10px; border-left: 3px solid #eab308; background: #fdf8e6; border-radius: 6px; font-size: .84rem; white-space: pre-wrap; }
.para-pop.no-tts .pp-play, .para-pop.no-tts .pp-row { display: none; }
@media (max-width: 991.98px) {
  /* Phones: docked bottom sheet */
  .para-pop { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none; border-radius: 22px 22px 0 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(100%); }
  .para-pop.open { transform: none; }
  /* The sheet has its own play / language / speed controls — hide the floating player behind it */
  body.pop-open .tts-bar { transform: translate(-50%, 160%); }
  .para-pop::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: #d9d5cc; margin: 0 auto 10px; }
}
:root[data-bs-theme="dark"] .para-pop { background: #202126; color: #f2f0ea; box-shadow: 0 24px 60px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
:root[data-bs-theme="dark"] .pp-text { color: #c9c6be; }
:root[data-bs-theme="dark"] .pp-x, :root[data-bs-theme="dark"] .pp-seg { background: #2d2e34; color: #ccc; }
:root[data-bs-theme="dark"] .pp-seg button { color: #bdbab2; }
:root[data-bs-theme="dark"] .pp-seg button.on { background: #3a3b42; color: #fff; }
:root[data-bs-theme="dark"] .pp-icon { background: #2a2b31; border-color: #3a3b42; color: #e8e6e0; }
:root[data-bs-theme="dark"] .pp-note { background: #33301f; }


/* ==========================================================================
   Jain Focus platform (v10): Submit Your Content, Advertisement Space,
   Coming Up in the Next Issue, section tools, Universal Search, WhatsApp
   ========================================================================== */
.submit-choice { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 26px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.submit-choice:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); color: var(--ink); }
.submit-choice strong { font-family: var(--font-display); font-size: 1.35rem; }
.submit-choice small { color: var(--muted); }
.sc-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; margin-bottom: 6px;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); }
.sc-icon.sc-news { background: linear-gradient(135deg, #1f4e8c, #0f2a52); }
.sc-go { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--brand); }
.submit-form .dropzone { position: relative; border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 18px 12px; text-align: center; cursor: pointer; background: var(--surface-2); }
.submit-form .dropzone:hover { border-color: var(--brand); }
.submit-form .dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.submit-form .dz-icon { font-size: 1.6rem; color: var(--brand); }
.submit-form .dz-file { color: var(--ink-2); word-break: break-all; margin-top: 4px; }
.terms-box { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.terms-list { padding-left: 1.1rem; }
.terms-list li { margin-bottom: .55rem; }
.done-tick { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; color: #fff;
  background: linear-gradient(135deg, #22a06b, #13704a); box-shadow: 0 12px 30px -10px #13704a; animation: tickPop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes tickPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Advertisement Space */
.ad-space { position: relative; }
.ad-space .ad-label { position: absolute; top: 8px; left: 10px; z-index: 2; font-size: .62rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase;
  background: rgba(0,0,0,.55); color: #fff; padding: 2px 8px; border-radius: 6px; }
.ad-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ad-track::-webkit-scrollbar { display: none; }
/* 16:5 frame = the 1600×500 upload size. The whole banner is always shown (contain); an ad of another
   shape gets a blurred copy of itself behind it instead of empty bars. */
.ad-slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 5; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.ad-slide img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.ad-slide img.ad-bg { position: absolute; inset: 0; object-fit: cover; filter: blur(18px) brightness(.85); transform: scale(1.15); }

/* Coming Up in the Next Issue */
.upcoming-card { height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.upcoming-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.upcoming-card .uc-body { padding: 14px 16px 18px; }
.upcoming-card .uc-kind { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--brand); }
.upcoming-card h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.upcoming-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.upcoming-band { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--paper)), var(--paper)); }

/* Section tools: Search · Bookmarks · History · Listen · Archive */
.section-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.section-tools a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: .9rem; }
.section-tools a .bi { color: var(--brand); }
.section-tools a:hover, .section-tools a.active { border-color: var(--brand); color: var(--brand); }

/* Universal Search */
.scope-switch { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.scope-switch input { position: absolute; opacity: 0; pointer-events: none; }
.scope-switch label { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; text-align: center; white-space: nowrap; }
@media (max-width: 575.98px) {
  .scope-switch { display: grid; width: 100%; }
  .scope-switch label { padding: 8px 6px; font-size: .78rem; }
  .scope-switch label .bi { display: none; }
}
.scope-switch input:checked + label { background: var(--brand); color: #fff; }
.scope-switch input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); }

/* WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 22px; z-index: 1030; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; font-size: 1.7rem; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); text-decoration: none; }
.wa-float:hover { color: #fff; transform: scale(1.06); }
@media (max-width: 991.98px) { .wa-float { display: none; } }
.tabbar a.tab-wa .bi { color: #1faa55; }

/* Jain Focus Magazine: Current Issue (kept apart from the Magazine Archive) */
.current-issue { display: grid; grid-template-columns: minmax(150px, 260px) 1fr; gap: 28px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.current-issue .ci-cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px 12px 12px 4px; box-shadow: 0 16px 30px rgba(0,0,0,.25); display: block; }
.current-issue .ci-badge { display: inline-block; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
@media (max-width: 575.98px) { .current-issue { grid-template-columns: 1fr; padding: 16px; gap: 16px; } .current-issue .ci-cover { max-width: 200px; margin: 0 auto; } }
.archive-band { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 8%, transparent); color: var(--ink); text-decoration: none; }
.archive-band > .bi:first-child { font-size: 1.8rem; color: var(--brand); }
.archive-band:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--ink); }

/* Reader: "Start listening" (listen mode, ?listen=1) */
.listen-start { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 14px 24px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #8c2551, #6d1b3f); color: #fff; box-shadow: 0 14px 34px rgba(109,27,63,.45);
  animation: listenPulse 1.8s ease-in-out infinite; text-align: left; max-width: calc(100% - 32px); }
.listen-start .bi { font-size: 1.7rem; }
.listen-start strong { display: block; font-size: 1.05rem; }
.listen-start small { display: block; opacity: .85; font-size: .78rem; }
@keyframes listenPulse { 0%, 100% { box-shadow: 0 14px 34px rgba(109,27,63,.45); } 50% { box-shadow: 0 14px 44px rgba(140,37,81,.75); } }
@media (prefers-reduced-motion: reduce) { .listen-start { animation: none; } }

/* Home: compact Featured block */
.hero { padding: 36px 0 40px; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 8px 0 12px; }
.hero p.lead { font-size: 1.02rem; }
.hero-meta { margin-bottom: 18px; }
.hero-cover { width: min(250px, 58vw); }
@media (max-width: 991.98px) { .hero .row { --bs-gutter-y: 1.25rem; } }

/* Home: Submit Your Content strip (right under the Featured block) */
.submit-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, #8c2551, #6d1b3f 55%, #4a1029); color: #fff; box-shadow: 0 10px 26px rgba(109,27,63,.28); }
.submit-strip > .bi { font-size: 1.8rem; color: #ebd8a2; }
.submit-strip h2 { font-size: 1.15rem; font-weight: 800; margin: 0; color: #fff; }
.submit-strip p { font-size: .88rem; opacity: .85; }
