/* Pramāṇa · the picked direction. A · Āloka is the base (cool grey ground, white cards, one cobalt accent, Anek for the UI,
   Tiro for sacred text). C · Uṣas is night and the hero mood (night-navy, dawn gold). B · Pothī gives two touches only:
   the Paper reading mode and gold verse numbers. 8-pt spacing; type scale 14 · 17 · 21 · 28 · 40 (verse separate). */
:root {
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px;
  --t-xs: 14px; --t-s: 16px; --t-m: 17px; --t-l: 21px; --t-xl: 28px; --t-xxl: 40px;
  --verse: 26px; --lh: 1.75;
  --ui: "Anek Latin", "Anek Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sacred: "Tiro Devanagari Sanskrit", "Tiro Devanagari Hindi", "Anek Devanagari", serif;
  --verse-font: var(--sacred);
  --r: 20px; --r-s: 12px; --r-pill: 999px; --tab-h: 64px; --top-h: 64px;
  /* A · Āloka (day) */
  --bg: #F3F5F9; --surface: #FFFFFF; --surface-2: #E8ECF4; --ink: #0E1F5C; --ink-2: #4A5784; --line: #DCE2EE;
  --accent: #1440BF; --on-accent: #fff; --wash: #E6ECFA; --gold: #A86A08; --lamp: #8C5A00; --ok: #0F7A5D; --ok-bg: #E2F4EE; --warn: #A8431B; --warn-bg: #FDEDE6;
  --shadow: 0 1px 2px rgb(14 31 92 / .05), 0 12px 40px rgb(14 31 92 / .07); --lift: 0 2px 4px rgb(14 31 92 / .06), 0 24px 56px rgb(14 31 92 / .16);
  --map-land: #FFFFFF; --map-sea: #E2E9F6; --scrim: rgb(14 31 92 / .36);
  color-scheme: light;
}
html[data-lang="mr"] { --verse-font: "Tiro Devanagari Marathi", var(--sacred); }
html[data-lang="hi"], html[data-lang="awa"], html[data-lang="bra"] { --verse-font: "Tiro Devanagari Hindi", var(--sacred); }
/* B touch · Paper: warm folio ground for reading, same blue ink and accent */
html[data-theme="paper"] { --bg: #F3ECDD; --surface: #FBF7EE; --surface-2: #EDE4D2; --ink: #23201C; --ink-2: #5E554A; --line: #E2D7C2; --wash: #F1E6CC; --gold: #9C6206;
  --map-land: #FBF7EE; --map-sea: #EAE0CC; --shadow: 0 1px 2px rgb(60 40 10 / .05), 0 12px 40px rgb(60 40 10 / .07); }
html[data-theme="paper"] body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* C · Uṣas (night): night navy, warm white text, one dawn-gold accent */
html[data-theme="dark"] { --bg: #0B1230; --surface: #131C42; --surface-2: #1D2A5C; --ink: #F4F1EA; --ink-2: #B4BBD6; --line: #27346A;
  --accent: #9DB2FF; --on-accent: #0B1230; --wash: #23305F; --gold: #F2B84B; --lamp: #F2B84B; --ok: #5FD9B5; --ok-bg: #133B3A; --warn: #FFB08A; --warn-bg: #3A2218;
  --shadow: 0 16px 48px rgb(0 0 0 / .3); --lift: 0 24px 64px rgb(0 0 0 / .5); --map-land: #22306A; --map-sea: #0F183C; --scrim: rgb(0 0 0 / .55); color-scheme: dark; }
@media (min-width: 900px) { :root { --t-xl: 32px; --t-xxl: 48px; --verse: 32px; --top-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
html[data-motion="0"] *, html[data-motion="0"] *::before { transition: none !important; animation: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-m)/1.55 var(--ui); padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body { padding-bottom: 0; } }
html.ui-swap main, html.ui-swap .top, html.ui-swap .tabs, html.ui-swap .foot { opacity: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[lang="sa"], .dv { font-family: var(--sacred); }
small { font-size: var(--t-xs); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 8px; }
.i { flex: none; }
.note { font-size: var(--t-xs); line-height: 1.5; color: var(--ink-2); }
.center { text-align: center; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow, .narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
@media (min-width: 600px) { .wrap { width: min(1120px, 100% - 64px); } .wrap.narrow, .narrow { width: min(760px, 100% - 64px); } }
.li-d, .lg-d { display: none !important; }
html[data-theme="dark"] .li-l, html[data-theme="dark"] .lg-l { display: none !important; }
html[data-theme="dark"] .li-d, html[data-theme="dark"] .lg-d { display: block !important; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top-in { display: flex; align-items: center; gap: var(--s2); height: var(--top-h); width: min(1120px, 100% - 24px); margin-inline: auto; }
@media (min-width: 600px) { .top-in { width: min(1120px, 100% - 64px); } }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 34px; width: auto; }
@media (min-width: 900px) { .logo img { height: 40px; } }
.topnav { display: none; gap: var(--s5); margin-left: var(--s5); }
.topnav a { text-decoration: none; font-weight: 500; color: var(--ink-2); padding: var(--s2) 0; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.nightb .n-on, html[data-theme="dark"] .nightb .n-off { display: none; }
html[data-theme="dark"] .nightb .n-on { display: contents; }
.lang { display: inline-flex; border-radius: var(--r-pill); background: var(--surface-2); padding: 3px; gap: 2px; margin-left: var(--s1); flex: none; }
.lang button { border: 0; background: transparent; min-width: 34px; height: 34px; padding: 0 8px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .14); }
html[data-theme="dark"] .lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.back, .top-crumb { display: none; }
@media (max-width: 899px) {
  .top .back { display: inline-grid; margin-left: -8px; }
  .top .back + .logo { display: none; }
  .top-crumb { display: block; min-width: 0; flex: 1; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-crumb a { text-decoration: none; }
  .is-read .nightb { display: none; }
}
@media (min-width: 900px) { .topnav { display: flex; } }
@media (max-width: 380px) { .lang button { min-width: 30px; padding: 0 6px; } .icon-btn { width: 40px; } }

/* ---------- phone tab bar ---------- */
.tabs { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transition: transform .25s; }
.tabs a { display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.tabs a[aria-current="page"] { color: var(--accent); }
.tabs a[aria-current="page"] .i { stroke-width: 2.3; }
html.tabs-hide .tabs { transform: translateY(110%); }
@media (min-width: 900px) { .tabs { display: none; } }

/* ---------- footer ---------- */
.foot { margin-top: var(--s7); border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { width: min(1120px, 100% - 32px); margin-inline: auto; padding: var(--s5) 0 var(--s6); display: grid; gap: var(--s3); font-size: var(--t-xs); color: var(--ink-2); }
@media (min-width: 600px) { .foot-in { width: min(1120px, 100% - 64px); } }
.foot-brand { display: flex; align-items: center; gap: var(--s2); color: var(--ink); font-size: var(--t-m); }
.foot-brand img { width: 40px; height: 40px; border-radius: 10px; }
.foot-brand [lang="sa"] { color: var(--ink-2); }
.handle { margin-left: auto; font-size: var(--t-xs); font-weight: 600; color: var(--accent); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px var(--s4); }
.foot-links a { text-decoration: none; font-weight: 600; color: var(--ink); min-height: 32px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--accent); }
.beta .bt { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); margin-right: 4px; }
.credit { font-size: 12px; opacity: .85; }

/* ---------- cards, rows, sections (one component everywhere) ---------- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.card.pad, .pad { padding: var(--s4); }
.card-h { font-size: var(--t-l); padding: var(--s4) var(--s4) var(--s2); }
.card.pad > .card-h { padding: 0 0 var(--s3); }
.sec { margin-top: var(--s6); }
.sec-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.sec-h { font-size: var(--t-l); margin-bottom: var(--s3); }
.sec-h small { font-size: var(--t-s); font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.sec-more { font-size: var(--t-xs); font-weight: 600; color: var(--accent); text-decoration: none; padding: var(--s2) 0; }
.eyebrow { font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.rows { list-style: none; margin: 0; padding: 0 var(--s4); }
.rows li + li > a, .rows li + li > div { border-top: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s3); align-items: center; padding: 14px 0; min-height: 64px; text-decoration: none; }
.rows a > .i:last-child { grid-column: 2; grid-row: 1 / span 4; color: var(--ink-2); width: 20px; height: 20px; }
.rows a:hover .rt { color: var(--accent); }
.rt { font: 400 21px/1.35 var(--sacred); color: var(--ink); }
.rt .iast, .iast { font-family: var(--ui); font-size: var(--t-xs); font-weight: 500; color: var(--ink-2); margin-left: 6px; letter-spacing: 0; }
.rl { grid-column: 1; font: 400 var(--t-s)/1.45 var(--sacred); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm, .rn { grid-column: 1; font-size: var(--t-xs); color: var(--ink-2); }
.rn { color: var(--warn); }
.rows .row-sym, .rows .row-ic { grid-row: 1 / span 2; color: var(--accent); }
.rows.idx a { grid-template-columns: 40px 1fr auto; }
.rows.idx a > .rt, .rows.idx a > .rm { grid-column: 2; }
.rows.idx a > .i:last-child { grid-column: 3; }
.rows.idx .row-sym { width: 28px; height: 28px; }
@media (min-width: 900px) { .rows.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s6); } .rows.two li:nth-child(2) > a { border-top: 0; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s4); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: var(--t-s); text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.wide { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; background: var(--surface); }
.chip-scholarly { color: #2F58C4; border-color: #C9D7FA; } .chip-government { color: #0F7A5D; border-color: #BFE5D9; } .chip-traditional { color: #7A3E7A; border-color: #E7CFE7; } .chip-press { color: #6B6B6B; } .chip-own { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
html[data-theme="dark"] .chip { background: transparent; } html[data-theme="dark"] .chip-scholarly { color: #9DB7FF; border-color: #34508F; } html[data-theme="dark"] .chip-government { color: #6FD9B8; border-color: #23604F; } html[data-theme="dark"] .chip-traditional { color: #E3B8E3; border-color: #5A3A5A; }
.chips-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.link-card { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); margin-top: var(--s3); text-decoration: none; min-height: 72px; }
.link-card b { display: block; font-weight: 600; }
.link-card span span { font-size: var(--t-xs); color: var(--ink-2); }
.lc-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--wash); color: var(--accent); }
.link-card > .i:last-child { color: var(--ink-2); }
.link-card:hover { box-shadow: var(--lift); }

/* ---------- page head (hubs) ---------- */
.ph { padding: var(--s4) 0 var(--s4); }
@media (min-width: 900px) { .ph { padding-top: var(--s6); } }
.ph-back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 var(--s2) -6px; font-size: var(--t-xs); font-weight: 600; color: var(--accent); text-decoration: none; min-height: 32px; }
.ph-back .i { width: 18px; height: 18px; }
@media (max-width: 899px) { .ph-back { display: none; } }
.ph h1 { font-size: var(--t-xl); line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.ph h1 [lang="sa"], .ph h1.dv { font-weight: 400; font-family: var(--sacred); }
.ph h1 .iast { font-size: var(--t-m); }
.ph-sym { width: 36px; height: 36px; color: var(--accent); }
.ph-sub { margin-top: var(--s2); color: var(--ink-2); font-size: var(--t-s); }
.ph-eyebrow { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); margin: var(--s2) 0 var(--s3); }
.ph .search { margin-top: var(--s4); }
.ph-note { max-width: 62ch; margin-top: var(--s3); color: var(--ink-2); }

/* ---------- search ---------- */
.search { position: relative; }
.field { display: flex; align-items: center; gap: var(--s2); background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 0 var(--s2) 0 var(--s3); height: 56px; box-shadow: var(--shadow); }
.field:focus-within { border-color: var(--accent); }
.field > .i { color: var(--ink-2); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 var(--t-m) var(--ui); color: var(--ink); height: 100%; }
.field input::-webkit-search-cancel-button { display: none; }
.field input::placeholder { color: var(--ink-2); opacity: .9; }
.field .x { border: 0; background: transparent; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); display: grid; place-items: center; }
.field input:placeholder-shown + .x { visibility: hidden; }
.search.big .field { height: 64px; border-radius: 18px; }
@media (min-width: 900px) { .search.big .field { height: 72px; } .search.big .field input { font-size: 20px; } }
.res { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; background: var(--surface); border-radius: 16px; box-shadow: var(--lift); max-height: min(60vh, 520px); overflow: auto; text-align: left; color: var(--ink); }
.res:empty { display: none; }
.res li > a { display: grid; gap: 2px; padding: 12px var(--s3); text-decoration: none; border-top: 1px solid var(--line); }
.res li:first-child > a, .res li.sr + li > a { border-top: 0; }
.res li > a:hover, .res li > a:focus { background: var(--wash); }
.res .rt { font-size: 19px; }
.res mark { background: var(--wash); color: inherit; border-radius: 3px; padding: 0 2px; }
.res .empty { padding: var(--s3); font-size: var(--t-s); color: var(--ink-2); }
.res .empty a { color: var(--accent); font-weight: 600; }
.busy { height: 3px; margin: var(--s3); border-radius: 2px; background: linear-gradient(90deg, var(--line), var(--accent), var(--line)); background-size: 200% 100%; animation: busy 1s linear infinite; }
@keyframes busy { to { background-position: -200% 0; } }
.tries { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s3); font-size: var(--t-xs); color: var(--ink-2); }
.tries a { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: 6px 14px; min-height: 36px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.tries a[lang="sa"] { font-size: var(--t-s); }

/* ---------- home: C's dawn hero, A's calm cards ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: 460px; color: #fff; margin-top: calc(-1 * var(--top-h)); padding-top: var(--top-h); }
@media (min-width: 900px) { .hero { min-height: min(78vh, 640px); } }
.hero-ph { position: absolute; inset: 0; margin: 0; }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; }
.hero-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 18 48 / .55) 0%, rgb(11 18 48 / .2) 34%, rgb(11 18 48 / .78) 78%, rgb(11 18 48 / .92) 100%); }
.hero-in { position: relative; z-index: 1; padding: var(--s6) 0 var(--s5); display: grid; justify-items: center; text-align: center; }
.hero h1 { font-size: var(--t-xl); line-height: 1.2; font-weight: 600; max-width: 20ch; margin-bottom: var(--s4); text-wrap: balance; text-shadow: 0 2px 24px rgb(0 0 0 / .35); }
@media (min-width: 900px) { .hero h1 { font-size: 48px; } .hero-in { padding-bottom: var(--s6); } }
.hero .search { width: 100%; max-width: 720px; }
.hero .field { background: #fff; border-color: transparent; box-shadow: 0 16px 48px rgb(0 0 0 / .28); }
.hero .field input { color: #0E1F5C; } .hero .field > .i, .hero .field .x, .hero .field input::placeholder { color: #4A5784; }
.hero .res { color: #0E1F5C; background: #fff; --ink: #0E1F5C; --ink-2: #4A5784; --line: #DCE2EE; --wash: #E6ECFA; }
.hero .tries { justify-content: center; color: #E2E6F5; }
.hero .tries a { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .28); color: #fff; backdrop-filter: blur(6px); }
.is-home .top { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home .top .topnav a, .is-home .top .icon-btn { color: #fff; }
.is-home .top .topnav a[aria-current="page"] { border-bottom-color: #9DB2FF; }
.is-home .top .icon-btn:hover { background: rgb(255 255 255 / .14); }
.is-home .top .lg-l { display: none !important; } .is-home .top .lg-d { display: block !important; }
.is-home .top .lang { background: rgb(255 255 255 / .16); } .is-home .top .lang button { color: #E2E6F5; }
.is-home .top .lang button[aria-pressed="true"] { background: #fff; color: #0E1F5C; }
html[data-theme="dark"].is-home .top .lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
html.is-home.scrolled .top { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); }
.standin { position: absolute; z-index: 2; right: var(--s2); bottom: var(--s2); font: 600 10px/1 var(--ui); letter-spacing: .05em; text-transform: uppercase; color: #fff; background: rgb(0 0 0 / .55); padding: 4px 7px; border-radius: 6px; }
.hero-ph .standin { top: calc(var(--top-h) + 8px); bottom: auto; }
.resume { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: var(--s3) var(--s4); margin-top: var(--s4); text-decoration: none; }
.resume small { grid-column: 1; color: var(--ink-2); font-weight: 600; }
.resume b { grid-column: 1; font: 400 21px/1.3 var(--sacred); }
.resume > .i { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); }
.doors { display: grid; gap: var(--s3); margin-top: var(--s4); }
.door { display: grid; grid-template-columns: 88px 1fr 24px; align-items: center; gap: var(--s3); padding: var(--s2); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.door:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.door-ph { position: relative; width: 88px; height: 88px; border-radius: 14px; overflow: hidden; margin: 0; }
.door-ph img { width: 100%; height: 100%; object-fit: cover; }
.door-ph .standin { font-size: 8px; padding: 3px 4px; right: 4px; bottom: 4px; }
.door-tx { display: grid; gap: 2px; }
.door-ic { display: none; }
.door-t { font-size: var(--t-l); font-weight: 600; line-height: 1.25; }
.door-s { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.45; }
.door-go { color: var(--accent); }
@media (min-width: 900px) {
  .doors { grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: calc(-1 * var(--s5)); position: relative; z-index: 2; }
  .door { grid-template-columns: 1fr; padding: 0; overflow: hidden; align-items: stretch; position: relative; gap: 0; }
  .door-ph { width: 100%; height: 180px; border-radius: 0; }
  .door-tx { padding: var(--s4) var(--s4) var(--s5); }
  .door-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--wash); color: var(--accent); margin: -46px 0 var(--s2); position: relative; box-shadow: 0 0 0 4px var(--surface); }
  .door-t { font-size: 24px; } .door-s { font-size: var(--t-s); }
  .door-go { position: absolute; right: var(--s4); bottom: var(--s4); }
}
.proofln { display: flex; align-items: center; gap: var(--s2); justify-content: center; margin: var(--s5) auto 0; color: var(--ok); font-weight: 600; font-size: var(--t-s); text-decoration: none; min-height: 48px; }
.proofln .i:last-child { width: 18px; color: var(--ink-2); }

/* ---------- chants hub ---------- */
.now { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .now { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
.now-c { padding: var(--s4) 0 var(--s2); }
.now-c > .eyebrow, .now-c > .now-h, .now-c > .note, .now-c > .more-l { padding: 0 var(--s4); }
.now-h a { display: flex; align-items: center; gap: var(--s2); text-decoration: none; font: 400 var(--t-xl)/1.3 var(--sacred); margin: var(--s1) 0 var(--s1); }
.now-sym, .now-ic { color: var(--accent); width: 28px; height: 28px; }
.now-c .rows { margin-top: var(--s2); }
.now-c .note { margin: var(--s2) 0 var(--s2); }
.more-l a { font-size: var(--t-xs); font-weight: 600; color: var(--accent); text-decoration: none; display: inline-block; padding: var(--s2) 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s3); }
.tile { display: grid; gap: var(--s1); padding: var(--s3); text-decoration: none; min-height: 112px; align-content: start; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.tile-sym { width: 28px; height: 28px; color: var(--accent); margin-bottom: var(--s1); }
.tile-t { font: 400 var(--t-l)/1.3 var(--sacred); }
.tile-s { font-size: var(--t-xs); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip-l { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; font-size: var(--t-m); }
.chip-l small { font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; padding: 1px 7px; }
.chip-l:hover { color: var(--accent); }

/* ---------- reading page ---------- */
.read-main { width: min(760px, 100% - 32px); margin-inline: auto; padding-bottom: var(--s4); }
@media (min-width: 600px) { .read-main { width: min(760px, 100% - 64px); } }
.t-head { text-align: center; padding: var(--s4) 0 var(--s2); }
@media (min-width: 900px) { .t-head { padding-top: var(--s6); } }
.t-head .t { font: 400 34px/1.3 var(--verse-font); color: var(--ink); text-wrap: balance; }
@media (min-width: 900px) { .t-head .t { font-size: 46px; } }
.t-sub { margin-top: var(--s1); color: var(--ink-2); font-size: var(--t-s); }
.t-sch { font-style: italic; }
.t-meta { font-size: var(--t-xs); color: var(--ink-2); margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s3); border: 0; background: var(--ok-bg); color: var(--ok); border-radius: var(--r-pill); padding: 6px 10px 6px 12px; min-height: 40px; font-size: var(--t-xs); font-weight: 600; text-align: left; }
.status .i { width: 18px; height: 18px; } .status .i:last-child { width: 16px; height: 16px; opacity: .7; }
.status.warn { background: var(--warn-bg); color: var(--warn); }
.tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s2) var(--s3); margin: var(--s3) 0 var(--s2); }
.segx { display: inline-flex; background: var(--surface-2); border-radius: var(--r-pill); padding: 4px; gap: 2px; }
.segx button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 0 var(--s3); min-height: 40px; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.segx button small { font-size: 11px; font-weight: 500; opacity: .85; }
.segx button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .14); }
.tgls { display: inline-flex; gap: var(--s1); }
.tgl { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s2); border: 0; background: transparent; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); border-radius: var(--r-pill); }
.knob { width: 34px; height: 20px; border-radius: 10px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); transition: transform .2s; }
.tgl[aria-pressed="true"] { color: var(--ink); } .tgl[aria-pressed="true"] .knob { background: var(--accent); } .tgl[aria-pressed="true"] .knob::after { transform: translateX(14px); }
.tgl.nudge .knob { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
/* pager for long texts: slides in under the top bar once the controls scroll away */
.pager { position: sticky; top: var(--top-h); z-index: 15; height: 0; overflow: visible; }
.pager-in { display: flex; align-items: center; justify-content: center; gap: var(--s1); margin: 0 auto; width: max-content; max-width: 100%; padding: 4px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--lift); transform: translateY(-140%); opacity: 0; transition: transform .2s, opacity .2s; pointer-events: none; }
.pager.show .pager-in { transform: translateY(8px); opacity: 1; pointer-events: auto; }
.pj { border: 0; background: transparent; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; color: var(--ink-2); }
.pj:hover { background: var(--surface-2); }
.jump { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s3); font-size: var(--t-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.jump select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cont { text-align: center; margin: var(--s2) 0; } .cont a { color: var(--accent); font-weight: 600; }
/* the verses: on a quiet card, no chrome between them */
.text { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s3) var(--s3) var(--s3); margin-top: var(--s3); position: relative; }
@media (min-width: 600px) { .text { padding: var(--s4) var(--s6); } }
html[data-theme="paper"] .text { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.seg { position: relative; padding: var(--s3) 0; scroll-margin-top: calc(var(--top-h) + 56px); transition: background-color .2s; }
.seg + .seg { border-top: 1px solid var(--line); }
html[data-lit="1"] .seg.cur { background: var(--wash); box-shadow: 0 0 0 12px var(--wash); }
.seg.refrain .ln { font-style: normal; color: var(--ink); }
.seg.refrain { padding-left: var(--s3); border-left: 3px solid var(--gold); }
.seg-lab { font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); margin-bottom: var(--s1); letter-spacing: .02em; }
.seg-lab.after { margin-top: var(--s2); }
.addn, .flag { font-size: var(--t-xs); color: var(--warn); margin-bottom: var(--s1); }
.ln { display: block; font-family: var(--verse-font); font-size: calc(var(--verse) * var(--fs, 1)); line-height: var(--lh); word-break: keep-all; overflow-wrap: anywhere; padding-left: 1.2em; text-indent: -1.2em; color: var(--ink); }
.ln.y2 { padding-left: 2em; }
:root[data-script="iast"] .ln, :root[data-script="simple"] .ln { font-family: var(--ui); font-size: calc(var(--verse) * .82 * var(--fs, 1)); line-height: 1.6; }
.vedic .ln { line-height: 2.05; }
.da { color: var(--gold); white-space: nowrap; font-size: .82em; }
.w.key { color: var(--accent); }
.w.var { text-decoration: underline dotted var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: .32em; }
.w.alt { background: var(--wash); border-radius: 4px; }
:root[data-wbw="1"] .w { cursor: pointer; border-radius: 6px; }
:root[data-wbw="1"] .w:hover { background: var(--wash); }
.w.sel { background: var(--gold); color: #fff; border-radius: 6px; }
html[data-theme="dark"] .w.sel { color: #1A1206; }
.acx { color: var(--gold); font-weight: inherit; }
.acr { display: none; }
@media (min-width: 1100px) { .acro .acr { display: block; position: absolute; left: -104px; top: var(--s3); width: 56px; text-align: right; font: 400 34px/1 var(--verse-font); color: var(--gold); } }
.w .gl { display: none; }
:root[data-wbw="1"] .ln { text-indent: 0; padding-left: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: flex-start; margin-bottom: 10px; }
:root[data-wbw="1"] .w { display: inline-flex; flex-direction: column; }
:root[data-wbw="1"] .w .gl { display: block; font: 15px/1.35 var(--ui); color: var(--ink-2); max-width: 12em; margin-top: 2px; }
:root[data-wbw="1"] .rk { display: none; }
.rk { display: block; height: 12px; margin: 2px 0 4px 1.2em; overflow: visible; }
.vedic .rk { height: 18px; }
.rk rect { fill: var(--ink-2); opacity: .55; }
.rk rect.irr { fill: var(--warn); opacity: 1; }
:root:not([data-rekha="1"]) :is(.text, .patha) .rk { display: none; }
.rk.draw rect { transform-box: fill-box; transform-origin: left center; animation: rk 200ms ease-out both; animation-delay: calc(120ms + var(--d, 0ms)); }
@keyframes rk { from { transform: scaleX(0); } }
.mn { display: none; margin: var(--s2) 0 0; max-width: 62ch; font-size: var(--t-m); line-height: 1.6; color: var(--ink-2); }
:root[data-mean="1"] .mn.on { display: block; animation: fade .2s ease-out both; }
:root[data-mean="1"] .mn.note { display: block; font-size: var(--t-s); border-left: 2px solid var(--line); padding-left: 12px; }
@keyframes fade { from { opacity: 0; transform: translateY(-2px); } }
.spell { font-size: var(--t-xs); color: var(--ink-2); margin-top: var(--s2); }
.pg { display: inline-flex; align-items: center; gap: 4px; margin: var(--s2) 0 0; border: 1px solid var(--line); background: transparent; border-radius: var(--r-pill); padding: 4px 12px; min-height: 32px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.pg::before { content: "📖"; font-size: 12px; filter: grayscale(1); }
.pg[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
details.scan > summary { display: none; }
.proofcard { margin: var(--s3) 0 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.proofcard img { width: 100%; height: auto; }
.pc-h, .pc-f { display: block; font-size: 13px; color: #4A5784; padding: 8px 12px; background: #F3F5F9; }
.rf-back { display: block; margin-top: var(--s1); font-family: var(--verse-font); font-size: calc(var(--verse) * .72 * var(--fs, 1)); color: var(--ink-2); text-decoration: none; }
/* Vedic: the pāṭha switch and the legend */
.vleg { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; align-items: center; font-size: var(--t-xs); color: var(--ink-2); margin-top: var(--s2); }
.vk { font-size: 22px; color: var(--ink); } .vsep { opacity: .5; }
#learn { margin-top: var(--s3); }
.vbar { overflow-x: auto; display: flex; justify-content: center; }
.pathas { display: inline-flex; gap: 2px; background: var(--surface-2); border-radius: var(--r-pill); padding: 4px; }
.pathas button { border: 0; background: transparent; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); font: 400 18px var(--sacred); color: var(--ink-2); }
.pathas button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.pgloss { text-align: center; font-size: var(--t-xs); color: var(--ink-2); margin-top: var(--s2); }
#vview { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s4); margin-top: var(--s3); }
.vu + .vu { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.vu-pat { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-bottom: var(--s2); }
.pills { display: flex; flex-wrap: wrap; gap: var(--s2); }
#vview .pill { display: inline-grid; justify-items: center; gap: 2px; padding: 8px 12px 6px; border-radius: 14px; background: var(--wash); }
#vview .pill svg { fill: var(--accent); } #vview .pill [lang="sa"] { font-size: 22px; } #vview .pill small { font-size: 11px; color: var(--ink-2); }
#vview .pill.enter { animation: fade .2s ease-out both; animation-delay: calc(var(--i) * 30ms); }
.vact { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin-top: var(--s3); }
.vact .btn .two { display: grid; text-align: left; line-height: 1.15; } .vact .btn small { font-size: 11px; font-weight: 500; color: var(--ink-2); }
#vplay.on { border-color: var(--accent); color: var(--accent); }
/* after the text */
.acts { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin: var(--s4) 0; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s3); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: var(--t-xs); font-weight: 600; text-decoration: none; }
.chip-btn .i { width: 18px; height: 18px; color: var(--ink-2); }
.chip-btn:hover { border-color: var(--accent); }
.film { display: grid; grid-template-columns: 120px 1fr; gap: var(--s3); align-items: center; padding: var(--s2); margin-bottom: var(--s4); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; }
.film .po { position: relative; display: block; border-radius: 12px; overflow: hidden; height: 120px; } .film .po img { width: 100%; height: 100%; object-fit: cover; } .film .pl { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgb(0 0 0 / .25); }
.film b { display: block; font-weight: 600; } .film .m { font-size: var(--t-xs); color: var(--ink-2); }
/* "How we know": progressive disclosure for the proof */
.how { margin-top: var(--s3); overflow: hidden; }
.row { display: block; border-top: 1px solid var(--line); }
.how > .card-h + .row { border-top: 0; }
.row > summary, .row-link { list-style: none; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--s3); padding: 12px var(--s4); min-height: 60px; cursor: pointer; text-decoration: none; }
.row > summary::-webkit-details-marker, .more > summary::-webkit-details-marker, .more-opt > summary::-webkit-details-marker { display: none; }
.row > summary:hover, .row-link:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.row-t { font-weight: 600; }
.row-s { grid-column: 1; grid-row: 2; font-size: var(--t-xs); color: var(--ink-2); }
.row > summary > .i, .row-link > .i { grid-column: 2; grid-row: 1 / span 2; color: var(--ink-2); transition: transform .2s; width: 20px; }
details[open] > summary > .i { transform: rotate(90deg); }
.row-body { padding: 0 var(--s4) var(--s4); font-size: var(--t-s); line-height: 1.6; display: grid; gap: var(--s2); min-width: 0; }
.row-body ul, .row-body ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s2); }
.row-body a { color: var(--accent); }
.row-body h3 { font-size: var(--t-s); margin-top: var(--s2); }
.row-body q { color: var(--ink-2); font-style: italic; }
.log { list-style: none; padding: 0 !important; }
.log time { display: inline-block; min-width: 96px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); margin-right: var(--s2); }
.tbl { overflow-x: auto; }
table.v { border-collapse: collapse; width: 100%; font-size: var(--t-xs); }
table.v th, table.v td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
table.v th { color: var(--ink-2); font-weight: 600; }
table.v .dv { font-family: var(--verse-font); font-size: 18px; }
.wa h3 { font-size: var(--t-s); margin: var(--s3) 0 var(--s1); color: var(--ink-2); }
.wa dl { display: grid; grid-template-columns: minmax(96px, max-content) 1fr; gap: 4px var(--s3); margin: 0; }
.wa dt { font-family: var(--verse-font); font-size: 19px; }
.wa dd { margin: 0; font-size: var(--t-xs); color: var(--ink-2); align-self: center; }
.wa dd i { display: block; font-style: normal; color: var(--ink); }
.install { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; padding: var(--s3) var(--s4); margin-top: var(--s4); }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; transition: opacity .2s; pointer-events: none; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 88vh; overflow: auto; background: var(--surface); color: var(--ink); border-radius: 24px 24px 0 0; box-shadow: var(--lift); padding: 10px var(--s4) calc(var(--s4) + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .18s ease-in; visibility: hidden; }
.sheet.on { transform: none; transition: transform .24s cubic-bezier(.2, .8, .2, 1); visibility: visible; }
@media (min-width: 768px) { .sheet { left: auto; right: var(--s4); bottom: var(--s4); width: 420px; border-radius: 24px; max-height: 82vh; } }
.grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto var(--s3); }
.sheet-h { font-size: var(--t-l); margin-bottom: var(--s3); }
.srow { display: grid; gap: var(--s2); padding: var(--s2) 0; }
.s-lab { font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
.seg-c { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 2px; }
.seg-c button { flex: 1; border: 0; background: transparent; border-radius: 10px; min-height: 44px; padding: 0 var(--s2); font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg-c button .i { width: 18px; height: 18px; }
.seg-c button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .14); }
.seg-c button.soon, .seg-c button:disabled { opacity: .5; cursor: default; } .seg-c small { font-size: 11px; font-weight: 500; }
.szrow .szb { gap: var(--s2); }
.szgl .sz-l { display: none; } :root[data-ui="en"] .szgl .sz-d { display: none; } :root[data-ui="en"] .szgl .sz-l { display: inline; }
.szgl.sm { font-size: 15px; } .szgl.lg { font-size: 22px; } .szgl { font-family: var(--sacred); }
.more-opt { margin: var(--s2) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more-opt > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-weight: 600; font-size: var(--t-s); cursor: pointer; }
.more-opt[open] > summary .i { transform: rotate(180deg); }
.sheet .btn.wide { margin-top: var(--s3); }
.sheet-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s4); margin-top: var(--s3); font-size: var(--t-xs); }
.sheet-links a { color: var(--accent); font-weight: 600; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.ver-o { display: grid; gap: 2px; width: 100%; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 12px var(--s3); margin-bottom: var(--s2); }
.ver-o b { font-weight: 600; } .ver-o span { font-size: var(--t-xs); color: var(--ink-2); }
.ver-o[aria-pressed="true"] { border-color: var(--accent); background: var(--wash); }
.ver-book { display: flex; gap: var(--s2); align-items: flex-start; margin: var(--s2) 0; font-size: var(--t-s); }
.ver-book span { display: grid; } .ver-book span span { font-size: var(--t-xs); color: var(--ink-2); } .ver-book svg { margin-top: 3px; color: var(--accent); flex: none; }
.ver-img { margin: var(--s2) 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.ver-img figcaption { font-size: 12px; color: #4A5784; padding: 6px 10px; }
.ver-s { margin-top: var(--s2); font-size: var(--t-s); }
.ver-s .warn { color: var(--warn); }
.ws-w { font: 400 34px/1.3 var(--verse-font); } .ws-s { font-size: var(--t-s); color: var(--ink-2); font-style: italic; }
.ws-g { font-size: var(--t-m); margin-top: var(--s2); } .ws-g2 { font-size: var(--t-s); color: var(--ink-2); }
.ws-v { margin-top: var(--s2); padding: var(--s2) var(--s3); border-radius: 12px; background: var(--wash); font-size: var(--t-xs); }
.ws-nav { display: flex; justify-content: space-between; gap: var(--s2); margin-top: var(--s3); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 16px); z-index: 60; transform: translate(-50%, 12px); opacity: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: var(--t-s); max-width: calc(100vw - 32px); transition: transform .2s, opacity .2s; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
/* full-screen reading (पाठ mode) */
.patha { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: none; flex-direction: column; overscroll-behavior: contain; touch-action: pan-y; }
.patha.on { display: flex; }
.pa-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pa-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 var(--s4) 8vh; overflow: hidden; text-align: center; }
.pa-v { max-width: 880px; width: 100%; }
.pa-v .ln { font-size: var(--pa-size, 34px); line-height: 1.75; padding: 0; text-indent: 0; border-radius: 10px; }
.pa-v .ln.cur { background: var(--wash); }
.pa-v.out-l { animation: pvol .14s ease-in both; } .pa-v.in-r { animation: pvir .18s ease-out both; } .pa-v.out-r { animation: pvor .14s ease-in both; } .pa-v.in-l { animation: pvil .18s ease-out both; }
@keyframes pvol { to { opacity: 0; transform: translateX(-24px); } } @keyframes pvir { from { opacity: 0; transform: translateX(24px); } } @keyframes pvor { to { opacity: 0; transform: translateX(24px); } } @keyframes pvil { from { opacity: 0; transform: translateX(-24px); } }
.pa-bot { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); }
.pa-end { font: 400 32px var(--verse-font); color: var(--gold); text-align: center; }

/* ---------- prose pages (how we check, report, held, disambiguation) ---------- */
.prose { width: min(760px, 100% - 32px); margin-inline: auto; padding-top: var(--s4); }
@media (min-width: 600px) { .prose { width: min(760px, 100% - 64px); } }
@media (min-width: 900px) { .prose { padding-top: var(--s6); } }
.prose > h1 { font-size: var(--t-xl); line-height: 1.2; margin-bottom: var(--s3); }
.prose > p, .prose li > p { margin: var(--s3) 0 0; max-width: 66ch; line-height: 1.65; }
.prose a:not(.btn) { color: var(--accent); }
.prose .colo { color: var(--ink-2); font-size: var(--t-s); }
.steps { list-style: none; counter-reset: st; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); }
.steps > li { min-width: 0; counter-increment: st; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s4); position: relative; }
.steps > li > h2 { font-size: var(--t-l); display: flex; align-items: center; gap: var(--s2); }
.steps > li > h2::before { content: counter(st); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--wash); color: var(--accent); font-size: var(--t-s); flex: none; }
.steps .art { margin-top: var(--s3); overflow-x: auto; }
.steps .art img { width: 100%; max-width: 560px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
main, .card, .row-body, .text { min-width: 0; }
.steps table.v { display: block; overflow-x: auto; }
pre.diff { max-width: 100%; margin: var(--s3) 0 0; background: var(--surface-2); border-radius: 12px; padding: var(--s3); overflow-x: auto; font-size: 13px; line-height: 1.5; }
.beta-note { background: var(--warn-bg); color: var(--ink); border-radius: var(--r); padding: var(--s3) var(--s4); display: grid; gap: var(--s2); }
.beta-note .bt { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--surface); color: var(--warn); }
.prose label.f { display: block; font-weight: 600; font-size: var(--t-s); margin: var(--s3) 0 var(--s1); }
.prose input.t, .prose textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 400 var(--t-m) var(--ui); padding: 12px 14px; min-height: 48px; }
.prose input.t:focus, .prose textarea:focus { outline: 0; border-color: var(--accent); }
.held { margin-top: var(--s4); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s4); }
.held ul { margin: var(--s2) 0 0; }
.tb .t { font: 400 34px/1.3 var(--verse-font); } .tb .t-iast { color: var(--ink-2); }
.disamb ol { list-style: none; padding: 0; display: grid; gap: var(--s3); margin-top: var(--s4); }
.disamb li { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s3) var(--s4); display: grid; gap: 4px; }
.disamb .fl { font: 400 var(--t-l)/1.4 var(--sacred); } .disamb .who, .disamb .what { font-size: var(--t-xs); color: var(--ink-2); }
:root:not([data-ui="en"]) .en-only { display: none; }
.empty-state { text-align: center; padding-top: var(--s7); display: grid; gap: var(--s3); justify-items: center; }
.empty-state .search { width: 100%; text-align: left; } .empty-state .btns { justify-content: center; }
.big-mark { font: 400 72px/1 var(--sacred); color: var(--gold); }
#saved { margin-top: var(--s3); }

/* ---------- knowledge pages: śākhās and pāṭhas ---------- */
.band { position: relative; display: grid; align-items: end; min-height: 300px; color: #fff; margin-top: calc(-1 * var(--top-h)); padding-top: var(--top-h); }
@media (min-width: 900px) { .band { min-height: 380px; } }
.band-ph { position: absolute; inset: 0; margin: 0; }
.band-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.band-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 18 48 / .55) 0%, rgb(11 18 48 / .3) 40%, rgb(11 18 48 / .9) 100%); }
.band-ph .standin { top: calc(var(--top-h) + 8px); bottom: auto; }
.band-in { position: relative; z-index: 1; padding: var(--s5) 0 var(--s5); }
.band h1 { font-size: var(--t-xl); line-height: 1.15; } @media (min-width: 900px) { .band h1 { font-size: 44px; } }
.band p { margin-top: var(--s2); max-width: 62ch; color: #E6E8F4; font-size: var(--t-m); line-height: 1.55; }
.hubk .top, html:has(.band) .top { background: transparent; }
html:has(.band) .top { backdrop-filter: none; -webkit-backdrop-filter: none; }
html:has(.band) .top .topnav a, html:has(.band) .top .icon-btn { color: #fff; }
html:has(.band) .top .lg-l { display: none !important; } html:has(.band) .top .lg-d { display: block !important; }
html:has(.band) .top .lang { background: rgb(255 255 255 / .16); } html:has(.band) .top .lang button { color: #E2E6F5; }
html:has(.band) .top .lang button[aria-pressed="true"] { background: #fff; color: #0E1F5C; }
html:has(.band) .top .topnav a[aria-current="page"] { border-bottom-color: #9DB2FF; }
html[data-theme="dark"]:has(.band) .top .lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
html.scrolled:has(.band) .top, html.scrolled.is-home .top { background: rgb(11 18 48 / .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.st-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.st-ok { background: var(--ok-bg); color: var(--ok); } .st-rare { background: var(--warn-bg); color: var(--warn); } .st-draft { background: transparent; border: 1px dashed var(--line); font-weight: 500; }
.st-count { display: inline-flex; align-items: center; gap: 6px; } .st-count b { font-variant-numeric: tabular-nums; }
.shakha .ph h1 [lang="sa"] { font-size: 40px; }
.lede { font-size: 18px; line-height: 1.6; margin: 0 0 var(--s4); max-width: 62ch; }
@media (min-width: 900px) { .lede { font-size: var(--t-l); line-height: 1.5; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); margin-bottom: var(--s3); }
.stats.four { margin-bottom: var(--s3); }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); } }
.stat { padding: var(--s3); display: grid; gap: var(--s1); align-content: start; }
.stat b { font-size: 34px; line-height: 1.05; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat > span { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.stat .src-s { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; margin-top: var(--s1); }
@media (min-width: 600px) { .stat { padding: var(--s4); } .stat b { font-size: 40px; } }
.shakha > .card, .hubk .card.pad { margin-top: var(--s3); }
.kmap { width: 100%; height: auto; display: block; border-radius: 14px; max-height: 560px; }
.kmap .sea { fill: var(--map-sea); } .kmap .land { fill: var(--map-land); stroke: color-mix(in srgb, var(--ink-2) 25%, transparent); stroke-width: .8; }
.kmap .pt.live { fill: var(--accent); stroke: var(--surface); stroke-width: 3; fill-opacity: .9; }
.kmap .pt.past { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2.2; }
.kmap .lbl text { font: 600 22px var(--ui); fill: var(--ink-2); paint-order: stroke; stroke: var(--map-land); stroke-width: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: var(--t-xs); color: var(--ink-2); margin: var(--s3) 0 var(--s1); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; } .lg.live { background: var(--accent); } .lg.past { border: 2px solid var(--ink-2); }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.lines li + li { border-top: 1px solid var(--line); padding-top: var(--s3); }
.cite { margin-top: var(--s1); font-size: 12px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 84px 1fr; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.tl li:first-child { border-top: 0; padding-top: 0; }
.tl .yr { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold); font-size: var(--t-s); }
.tl p { font-size: var(--t-s); line-height: 1.55; }
.more > summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: var(--s3) 0 var(--s1); min-height: 48px; list-style: none; }
.more.card.pad > summary { padding: 0; min-height: 0; } .more.card[open] > summary { margin-bottom: var(--s3); }
.trows { list-style: none; margin: 0; padding: 0; }
.trows li + li { border-top: 1px solid var(--line); }
.trows a, .trows div { display: grid; grid-template-columns: 104px 1fr auto; column-gap: var(--s3); padding: 12px 0; align-items: baseline; text-decoration: none; }
.t-gen { font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); grid-row: 1 / span 2; }
.t-name { font-size: 20px; grid-column: 2; } .t-iast { grid-column: 2; font-size: var(--t-xs); color: var(--ink-2); }
.on-site { grid-column: 2; font-size: 12px; font-weight: 700; color: var(--accent); }
.trows a > .i { grid-column: 3; grid-row: 1 / span 3; align-self: center; color: var(--accent); width: 20px; }
.verse-q { font-size: 22px; line-height: 1.6; color: var(--ink); }
.kv { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; }
.kv li { display: flex; justify-content: space-between; gap: var(--s3); padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--t-xs); }
.kv li span:first-child { color: var(--ink-2); text-transform: capitalize; }
.srcs { font-size: var(--t-xs); }
.veda-ic { width: 44px; height: 44px; flex: none; } .veda-ic.sm { width: 24px; height: 24px; }
.vgrid { display: grid; gap: var(--s3); margin-top: var(--s3); }
@media (min-width: 900px) { .vgrid { grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: start; } }
.vcard { padding: var(--s4) 0 var(--s2); }
.vhd { display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s4); }
.vhd > span { display: grid; } .vhd [lang="sa"] { font: 400 var(--t-l)/1.3 var(--sacred); } .vhd .iast { margin: 0; }
.vs { padding: var(--s2) var(--s4) 0; font-size: var(--t-xs); color: var(--ink-2); line-height: 1.5; }
.vcard .rows a { min-height: 60px; }
.vcard .rm .st-chip { font-size: 12px; padding: 2px 8px; }
.tiles3 { display: flex; justify-content: center; gap: var(--s3); }
.tile3 { display: grid; justify-items: center; gap: 2px; min-width: 96px; padding: var(--s3); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); font-size: 26px; }
.tile3 small { font: 700 13px var(--ui); color: var(--gold); }
.pathas-l { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); }
@media (min-width: 900px) { .pathas-l { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
.patha-c { padding: var(--s4); display: grid; gap: var(--s3); align-content: start; scroll-margin-top: calc(var(--top-h) + 16px); }
.pc-top { display: flex; gap: var(--s3); align-items: center; }
.pc-ic { width: 48px; height: 48px; flex: none; }
.patha-c h3 { font: 400 var(--t-l)/1.3 var(--sacred); display: flex; align-items: baseline; gap: var(--s2); margin-bottom: var(--s1); }
.pc-n { font: 700 13px var(--ui); color: var(--gold); min-width: 18px; }
.pattern { font-size: var(--t-xs); color: var(--ink-2); } .pattern code { font: 600 13px ui-monospace, monospace; color: var(--ink); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; white-space: normal; }
.weave { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 19px; line-height: 1.5; }
.weave span { background: var(--wash); border-radius: 10px; padding: 2px 10px; } .weave i { color: var(--gold); font-style: normal; }
.excards { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
@media (min-width: 900px) { .excards { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
.excards h3 { font: 400 var(--t-l)/1.3 var(--sacred); margin-bottom: var(--s2); }
.excards li > p { font-size: var(--t-s); line-height: 1.6; }
.forms { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s2); }
.forms li { display: grid; gap: 2px; padding: var(--s2) var(--s3); border-radius: 12px; background: var(--wash); }
.forms b { font: 400 19px var(--sacred); } .forms span { font-size: var(--t-xs); } .forms small { font-size: 12px; color: var(--ink-2); }
.hubk .how { margin-top: var(--s5); }

/* map page container */
main.map { width: min(900px, 100% - 32px); }
main.map > h1 { font-size: var(--t-xl); } main.map > h2 { font-size: var(--t-l); margin: var(--s6) 0 var(--s3); } main.map > h2.first { margin-top: var(--s5); }
main.map .lead { color: var(--ink-2); font-size: var(--t-m); max-width: 62ch; }
.l4 { list-style: none; padding: 0; margin: 0 0 var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2); }
.l4 a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3) 0 6px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; font-size: 19px; }
.l4n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wash); color: var(--accent); font: 700 14px var(--ui); }
.cov { list-style: none; padding: var(--s3) var(--s4); margin: var(--s4) 0 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); display: grid; gap: var(--s1); font-size: var(--t-s); }
.cov .aim { font-weight: 600; }
main.map .legend { list-style: none; padding: 0; } .legend2 { display: grid; gap: var(--s2); margin-top: var(--s3); font-size: var(--t-xs); color: var(--ink-2); } .lgh { font-weight: 600; color: var(--ink); font-size: var(--t-xs); }
.mjump { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); } .mjump a { font-size: var(--t-xs); font-weight: 600; color: var(--accent); text-decoration: none; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); }
.aft, .muk, .lost { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s4); margin-top: var(--s3); }
.aft h3, .lost h3, .muk h3 { display: flex; align-items: center; gap: var(--s3); font-size: var(--t-l); } .aft .lico img { width: 40px; height: 40px; }
.aft ul, .lostl { margin: var(--s2) 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
main.map p.gl { margin-top: var(--s2); font-size: var(--t-s); } main.map p.gl a { color: var(--accent); }
.lp { font-size: var(--t-xs); color: var(--ink-2); font-weight: 500; }
.gn { color: var(--ink-2); }
/* ---------- "where every text sits" (map page from tools/mappage.mjs) ---------- */
.mapp, main.mapp { padding-top: var(--s4); }
.ladder { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s2); }
.ladder > li:not(.arr) { display: grid; grid-template-columns: 48px 1fr; gap: var(--s3); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s4); }
.ladder .arr { justify-self: center; color: var(--ink-2); opacity: .5; }
.lico2 { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--wash); color: var(--accent); }
.lh { font-size: var(--t-l); } .lh .nd { font-family: var(--sacred); } .lnum { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--wash); color: var(--accent); font: 700 13px var(--ui); margin-right: var(--s2); vertical-align: 3px; }
.lline, .lsay, .lmy, .frame, .cnt, .skn { font-size: var(--t-s); color: var(--ink-2); margin-top: var(--s1); line-height: 1.55; }
.lmore > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s3); font-size: var(--t-xs); font-weight: 600; padding: var(--s2) 0; margin-top: var(--s2); color: var(--ink-2); }
.lm-go { color: var(--accent); }
.lml { list-style: none; padding: 0; display: grid; gap: 4px; font-size: var(--t-s); }
.lml a { text-decoration: none; color: var(--accent); } .lmv { margin-top: var(--s2); font-weight: 600; } .lmw { font-size: 12px; color: var(--ink-2); }
.lkey { display: flex; flex-wrap: wrap; gap: var(--s3); font-size: 12px; color: var(--ink-2); }
.st { display: inline-grid; place-items: center; width: 20px; color: var(--accent); }
.st-lost { color: var(--ink-2); } .st-next { color: var(--ink-2); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skh { font-size: var(--t-l); margin: var(--s5) 0 var(--s3); }
.skst { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
@media (min-width: 900px) { .skst { grid-template-columns: repeat(4, 1fr); gap: var(--s3); } }
.skst a { display: grid; gap: 2px; padding: var(--s3); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); text-decoration: none; font-size: var(--t-xs); color: var(--ink-2); }
.skst b { font-size: 32px; color: var(--ink); font-weight: 650; }
@media (max-width: 899px) { .glance { display: none; } }
.glance { overflow-x: auto; margin-top: var(--s4); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s3); }
.glance table { border-collapse: collapse; width: 100%; font-size: var(--t-xs); }
.glance th, .glance td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.glance a { text-decoration: none; } .gi { display: block; } .gsn { display: block; font-size: 12px; color: var(--ink-2); font-weight: 600; margin-top: 4px; }
.veda { margin-top: var(--s5); } .veda > h3 { font-size: var(--t-l); } .veda .nd { font-family: var(--sacred); font-weight: 400; }
.srcl { font-size: 12px; color: var(--ink-2); }
.sk { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s3) var(--s4); margin-top: var(--s3); }
.sk.gone { opacity: .8; } .sk h4 { font-size: var(--t-m); } .sk .nd { font-family: var(--sacred); font-weight: 400; font-size: 20px; }
.liv { font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 2px 8px; border-radius: 10px; margin-left: 4px; }
.lyr { display: grid; grid-template-columns: max-content 1fr; gap: 4px var(--s3); margin: var(--s2) 0 0; font-size: var(--t-s); }
.lyr dt { color: var(--ink-2); font-size: var(--t-xs); font-weight: 600; } .lyr dd { margin: 0; }
.ci { display: flex; gap: var(--s2); padding: 6px 0; list-style: none; } .cb .nd { font-family: var(--sacred); font-size: 18px; }
.ne, .ni, .cb .sz { color: var(--ink-2); font-size: var(--t-xs); } .cb .on { display: block; font-size: var(--t-xs); } .cb .on a { color: var(--accent); }
.pend { font-size: 12px; color: var(--warn); }

@media print {
  .top, .tabs, .foot, .tools, .acts, .how, .sec, .pager, .sheet, .install, .status, .film { display: none !important; }
  body { background: #fff; padding: 0; } .text { box-shadow: none; padding: 0; } .t-head { padding-top: 0; }
}

/* ---------- PRAMANA-LYRICS (28 Nov 2026): listen and follow, printed / sung marks, rhythm syllables, pronunciation ---------- */
.follow { margin-top: var(--s3); padding: 12px var(--s3); }
.fl-top { display: flex; align-items: center; gap: var(--s3); }
.fl-go { flex: none; min-height: 48px; font-size: var(--t-s); padding: 0 20px 0 16px; }
.fl-who { flex: 1; min-width: 0; }
.fl-who { margin: 0; display: grid; font-size: var(--t-xs); color: var(--ink-2); line-height: 1.35; }
.fl-who b { color: var(--ink); font-weight: 600; font-size: var(--t-s); }
.fl-who a { color: var(--accent); font-weight: 600; }
.fl-hint { margin: var(--s2) 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.follow.on .fl-hint { display: none; }
.fl-video { margin-top: var(--s3); aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; background: #000; }
.fl-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.fl-msg { margin: var(--s2) 0 0; font-size: var(--t-xs); color: var(--warn); }
.fl-bar { display: flex; align-items: center; gap: 6px; margin-top: var(--s3); }
html.fl-on .fl-bar { position: fixed; z-index: 26; left: 8px; right: 8px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px); padding: 6px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--lift); border: 1px solid var(--line); margin: 0; }
@media (min-width: 900px) { html.fl-on .fl-bar { bottom: 16px; left: 50%; right: auto; transform: translateX(-50%); width: min(720px, 100% - 32px); } }
html.fl-on body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 72px); }
.fl-b { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--r-pill); border: 0; background: var(--surface-2); color: var(--ink); font: 600 var(--t-xs) var(--ui); }
.fl-play { background: var(--accent); color: var(--on-accent); width: 48px; height: 48px; }
.fl-play .pl-off, .fl-play[aria-pressed="true"] .pl-on { display: none; }
.fl-play[aria-pressed="true"] .pl-off { display: block; }
.fl-loop[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.fl-x { background: transparent; color: var(--ink-2); }
.fl-now { flex: 1; min-width: 0; font-size: var(--t-xs); font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.fl-rate { display: inline-flex; background: var(--surface-2); border-radius: var(--r-pill); padding: 2px; flex: none; }
.fl-rate button { border: 0; background: transparent; height: 40px; min-width: 44px; padding: 0 8px; border-radius: var(--r-pill); font: 600 13px var(--ui); color: var(--ink-2); }
.fl-rate button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .14); }
html[data-theme="dark"] .fl-rate button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.fl-more { position: relative; flex: none; }
.fl-more summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-2); cursor: pointer; }
.fl-more summary::-webkit-details-marker { display: none; }
.fl-pop { position: absolute; right: -52px; bottom: 56px; width: min(300px, 86vw); padding: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift); display: grid; gap: var(--s2); }
.fl-pl { margin: 0; font-weight: 600; font-size: var(--t-xs); }
.fl-nudge { display: flex; align-items: center; gap: var(--s2); }
.fl-nudge .btn { min-height: 40px; padding: 0 12px; }
.fl-nudge output { min-width: 4.5em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.fl-yt { margin: 0; font-size: 12px; color: var(--ink-2); }
@media (max-width: 420px) { .fl-loop span { display: none; } .fl-rate button { min-width: 40px; padding: 0 6px; } }
/* the line being sung */
.ln { transition: background-color .25s, box-shadow .25s, opacity .25s; border-radius: 8px; }
.ln.now { background: var(--wash); box-shadow: -10px 0 0 var(--wash), 10px 0 0 var(--wash), inset 3px 0 0 var(--accent); }
html.fl-on .ln.done { opacity: .6; }
html.fl-on .text .ln[data-sp] { cursor: pointer; }
/* printed / sung-only marks: a small blue dot = in the 1981 print; a hollow gold ring = sung, not in the print */
.text .ln[data-src] { position: relative; }
.text .ln[data-src]::after { content: ""; position: absolute; left: -12px; top: calc(.5em * var(--lh)); width: 6px; height: 6px; border-radius: 50%; }
.text .ln[data-src="print"]::after { background: var(--accent); opacity: .55; }
.text .ln[data-src="sung"]::after { border: 1.5px solid var(--gold); width: 7px; height: 7px; left: -13px; }
@media (min-width: 600px) { .text .ln[data-src]::after { left: -22px; } .text .ln[data-src="sung"]::after { left: -23px; } }
:root[data-expr="print"] .text .ln[data-src="sung"] { opacity: .4; }
:root[data-expr="print"] .text .ln[data-src="sung"].now { opacity: 1; }
.src-leg { display: flex; flex-wrap: wrap; gap: 4px var(--s3); margin: var(--s3) 0 0; font-size: 13px; color: var(--ink-2); }
.sl { display: inline-flex; align-items: center; gap: 6px; }
.sl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.sl-p::before { background: var(--accent); opacity: .55; }
.sl-s::before { border: 1.5px solid var(--gold); }
/* rhythm syllables (tāla bols): shown as beats, not as words to translate */
.bols-lab { margin: 0 0 var(--s2); font-size: var(--t-xs); font-weight: 600; color: var(--gold); }
.text .w.bol .wt { font-family: var(--ui); font-size: .78em; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); background: var(--surface-2); border-radius: 6px; padding: 0 .28em; }
.seg.bols .ln { line-height: 2.1; }
html[data-theme="dark"] .text .w.bol .wt { color: var(--gold); }
:root[data-script="iast"] .text .w.bol .wt, :root[data-script="simple"] .text .w.bol .wt { font-size: .9em; }
/* say it clearly */
.say { margin-top: var(--s4); padding: var(--s3) var(--s3) var(--s2); }
.say .card-h small { display: block; font-size: var(--t-xs); font-weight: 500; color: var(--ink-2); margin-top: 2px; }
.say-l { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; }
.say-l li { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--line); align-items: baseline; }
.say-w { grid-row: span 2; font: 400 24px/1.4 var(--sacred); color: var(--accent); text-decoration: none; }
.say-s { font-size: var(--t-xs); font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.say-t { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.45; }
.ws-say, .ws-bol { margin: var(--s2) 0 0; font-size: var(--t-xs); color: var(--ink-2); }
.ws-bol { color: var(--gold); font-weight: 600; }
.recs { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s2); }
table.sv td.dv { font-size: 18px; }
@media print { .follow, .say, .src-leg { display: none !important; } }
@media (max-width: 899px) { html.fl-on.tabs-hide .fl-bar { bottom: calc(env(safe-area-inset-bottom) + 8px); } }
table.sv .svn { display: none; }
@media (max-width: 599px) { table.sv th:last-child, table.sv td.svc { display: none; } table.sv .svn { display: block; margin-top: 4px; font: 400 13px/1.4 var(--ui); color: var(--ink-2); } table.sv td:first-child { white-space: nowrap; } }

/* PRAMANA-SITE 28 Nov (SPEC v0.9 rules 3, 5, 6): gold is the lamp only; the UI accent is blue by day and periwinkle at night (tokens above).
   Follow mode: the player docks and stays whole and visible; the reader's scroll wins ("Back to the singing"). */
html.fl-on .fl-video { position: fixed; z-index: 65; top: 0; left: 50%; transform: translateX(-50%); margin: 0; border-radius: 0;
  height: max(200px, min(56.25vw, 45vh)); width: min(100vw, calc(max(200px, min(56.25vw, 45vh)) * 16 / 9)); aspect-ratio: auto; box-shadow: 0 2px 12px rgb(0 0 0 / .25); }
@media (max-width: 899px) { html.fl-on body { padding-top: var(--fl-h, 220px); } html.fl-on .top { display: none; }
  html.fl-on .sheet { max-height: calc(100vh - var(--fl-h, 220px) - 12px); max-height: calc(100dvh - var(--fl-h, 220px) - 12px); } }
@media (min-width: 900px) { html.fl-on .fl-video { top: 80px; left: auto; right: 16px; transform: none; width: 400px; height: 225px; border-radius: var(--r-s); }
  html.fl-on body { padding-right: 432px; } html.fl-on .fl-bar { left: calc(50% - 216px); } }
.fl-back { position: fixed; z-index: 27; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 72px); min-height: 44px; padding: 0 18px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--accent); font: 600 var(--t-xs) var(--ui); box-shadow: var(--lift); animation: flback .16s cubic-bezier(0, 0, .2, 1); }
@media (min-width: 900px) { .fl-back { bottom: 88px; left: calc(50% - 216px); } }
@keyframes flback { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .fl-back { animation: none; } }
html.fl-on .text .w.var, html.fl-on .text .w[data-v] { text-decoration: none; } /* variant marks hide while listening: the lamp is the only decoration */
/* PRAMANA-SITE 28 Nov · Pramāṇa Learn, week-1 wireframes (plain on purpose: the look waits for the Mac's build brief).
   Gold appears only in the progress lamps (SPEC rule 3). */
.lr { padding-bottom: calc(var(--tab-h, 64px) + 32px); }
.lr h1 { margin: var(--s3) 0 var(--s2); }
.lr-wire { font-size: var(--t-xs); color: var(--ink-2); margin: var(--s2) 0; padding: var(--s2) var(--s3); border: 1px dashed var(--line); border-radius: var(--r-s); }
.lr-wire a { color: var(--accent); text-decoration: none; }
.lr-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.lr-chip.draft { background: transparent; border: 1px dashed var(--line); }
.lr-chip.ok { background: var(--ok-bg); color: var(--ok); }
.lr-top { display: none; gap: var(--s4); margin: var(--s2) 0; }
.lr-top a { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.lr-top a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (min-width: 900px) { .lr-top { display: flex; } }
.lr-card { padding: var(--s3) var(--s4); margin: var(--s3) 0; }
.lr-card h2 { font-size: var(--t-s); margin: 0 0 var(--s2); }
.lr-note, .lr-src, .lr-m { font-size: var(--t-xs); color: var(--ink-2); }
.lr-crumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: var(--t-xs); }
.lr-units, .lr-lessons { list-style: none; padding: 0; margin: 0; }
.lr-unit { padding: var(--s3) var(--s4); margin: var(--s3) 0; }
.lr-uh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.lr-uh h3 { margin: 0; font-size: var(--t-m); }
.lr-uh small { font: 500 var(--t-xs) var(--ui); color: var(--ink-2); }
.lr-needs { font-size: 12px; color: var(--ink-2); margin: 0 0 var(--s2); }
.lr-row { display: grid; grid-template-columns: auto 1fr auto; gap: 2px var(--s3); align-items: center; min-height: 48px; padding: var(--s2) 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.lr-row .lr-k { font-size: 12px; font-weight: 700; color: var(--ink-2); min-width: 4.5em; }
.lr-row .lr-ok { grid-column: 2 / 4; font-size: 12px; color: var(--ok); }
.lr-row.done .lr-t { color: var(--ink-2); }
.lr-lamps { display: inline-flex; gap: 6px; }
.lr-lamp i { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); }
.lr-lamp.needs i { border-style: dashed; }
.lr-lamp.on i { background: var(--gold); border-color: var(--gold); }
.lr-lamplist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.lr-lamplist li { display: flex; justify-content: space-between; gap: var(--s2); align-items: center; }
.lr-week { list-style: none; display: flex; gap: 8px; padding: 0; margin: var(--s2) 0; }
.lr-week i { display: block; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); }
.lr-week .on i { background: var(--accent); border-color: var(--accent); }
.lr-week .td i { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.lr-player { padding: var(--s3) var(--s4); margin: var(--s3) 0; }
.lr-player .lr-top { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s3); }
.lr-of { font-size: var(--t-xs); color: var(--ink-2); white-space: nowrap; }
.lr-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.lr-bar i { display: block; height: 100%; background: var(--accent); }
.lr-ask { font-weight: 600; margin: 0 0 var(--s3); }
.lr-lab { font-size: var(--t-xs); color: var(--ink-2); margin: 0; }
.lr-ln { font: 400 calc(var(--t-l, 21px) * 1.15)/1.7 var(--sacred, serif); margin: var(--s1) 0; text-align: start; }
.lr-iast { font-size: var(--t-xs); color: var(--ink-2); margin: 0 0 var(--s2); font-style: italic; }
.lr-mean, .lr-fact { margin: var(--s3) 0 var(--s2); }
.lr-fb { color: var(--ink-2); font-size: 12px; }
.lr-blank { display: inline-block; min-width: 4em; border-bottom: 2px solid var(--accent); }
.lr-blank.ok { border-bottom-color: var(--ok); }
.lr-hid > span { color: transparent; border-bottom: 2px dotted var(--ink-2); }
.lr-hid.shown > span { color: var(--ink-2); }
.lr-fl { color: var(--ink); }
.lr-opts, .lr-chips { display: grid; gap: var(--s2); margin: var(--s3) 0; }
.lr-chips { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.lr-match { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s2); }
.lr-match > div { display: grid; gap: var(--s2); align-content: start; }
.lr-opt { min-height: 48px; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: 500 var(--t-s) var(--ui); text-align: start; }
.lr-opt.dv { font: 400 var(--t-m) var(--sacred, serif); }
.lr-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.lr-opt.ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ink); }
.lr-opt.no { opacity: .45; }
.lr-opt:disabled { cursor: default; }
.lr-built { min-height: 2.2em; font: 400 var(--t-l, 21px)/1.6 var(--sacred, serif); border-bottom: 1px solid var(--line); }
.lr-msg { min-height: 1.4em; font-size: var(--t-xs); color: var(--ink-2); }
.lr-msg.ok { color: var(--ok); }
.lr-foot { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s3); }
.lr-q { width: 100%; margin: 0; font-weight: 600; }
.lr-rate { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); width: 100%; }
@media (min-width: 600px) { .lr-rate { grid-template-columns: repeat(4, 1fr); } }
.lr-done { padding: var(--s4); margin: var(--s3) 0; }
.lr-lit { display: flex; align-items: center; gap: var(--s2); font-weight: 600; }
.lr-btns { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.lr-goal { display: flex; gap: var(--s2); }
.lr-goal [aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lr-map h2 { font-size: var(--t-s); margin: var(--s4) 0 var(--s2); }
.lr-layers { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.lr-node { display: grid; gap: 2px; padding: var(--s3) var(--s4); color: var(--ink); text-decoration: none; }
.lr-node small { color: var(--ink-2); font-size: var(--t-xs); }
.lr-node .lr-ok { color: var(--ok); font-size: 12px; }
.lr-preview { padding: var(--s3) var(--s4) var(--s3) calc(var(--s4) + 1em); }
.lr-loc { font-size: var(--t-xs); }
.lr-btns .btn, .lr-card .btn { white-space: normal; text-align: start; height: auto; min-height: 44px; }
.lr-goal { flex-wrap: wrap; }
