/* Golok Vani · warm ivory palette */
:root {
  --bg: #FAF6EE; --band: #F3ECDF; --card: #FFFDF8; --line: #E6DCCB;
  --ink: #232642; --text: #2E2A26; --muted: #6B6259;
  --maroon: #8B2C32; --accent: #B8692A; --accent-ink: #FFFDF8;
}
[data-theme="dark"] {
  --bg: #16171C; --band: #1D1F26; --card: #1F2128; --line: #2E3039;
  --ink: #F1EADB; --text: #E6DFD2; --muted: #A79F92;
  --maroon: #E59A8F; --accent: #E0A458; --accent-ink: #16171C;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Noto Sans Telugu", "Noto Sans Devanagari", system-ui, sans-serif; line-height: 1.6; }
a { color: var(--maroon); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Noto Serif", serif; font-size: 21px; letter-spacing: .02em; }
.brand .dot { width: 9px; height: 9px; border-radius: 99px; background: var(--accent); }
.menu { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.menu a { color: var(--text); text-decoration: none; }
.menu a:hover { color: var(--maroon); }
.tools { display: flex; gap: 8px; align-items: center; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.seg button { min-height: 36px; min-width: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.tefont { font-family: "Noto Sans Telugu", sans-serif !important; }
.hifont { font-family: "Noto Sans Devanagari", sans-serif !important; }
.icon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
[data-theme="dark"] .icon .moon { fill: currentColor; }

/* language visibility */
[data-lang="te"] .en, [data-lang="en"] .te { display: none; }
[data-lang="hi"] .en { display: none; }
.hi-note { display: none; }
[data-lang="hi"] .hi-note { display: block; padding: 12px 16px; border-radius: 10px; background: var(--band); font-family: "Noto Sans Devanagari", sans-serif; font-size: 15px; }

/* verse page */
main { padding-top: 28px; padding-bottom: 72px; }
.crumbs { margin: 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--maroon); }
.eyebrow.big { margin-top: 26px; font-size: 13px; }
.verse { margin-top: 14px; padding: 34px 26px; text-align: center; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 14px; }
.verse .intro { margin: 0 0 12px; font-family: "Noto Serif", serif; font-style: italic; color: var(--muted); font-size: 16px; }
.te-verse { margin: 0; font-family: "Noto Serif Telugu", serif; font-weight: 500; font-size: 25px; line-height: 1.85; color: var(--ink); }
.iast { margin: 16px 0 0; font-family: "Noto Serif", serif; font-style: italic; font-size: 17px; line-height: 1.7; color: var(--muted); }
[data-lang="en"] .te-verse { font-size: 21px; }
h2 { margin: 0 0 10px; font-family: "Noto Serif", serif; font-weight: 500; font-size: 21px; color: var(--ink); }
h2 small { font-family: Inter, sans-serif; font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.meaning { margin-top: 36px; }
.meaning p, .commentary p, .card p { margin: 0 0 12px; font-size: 17.5px; line-height: 1.85; }
.te p, p.te { font-family: "Noto Serif Telugu", serif; }
.en p { font-family: "Noto Serif", serif; }
.card { margin-top: 24px; padding: 20px 22px; border-radius: 12px; background: var(--band); }
.card h2 { font-size: 17px; }
.notes { margin-top: 18px; font-size: 15px; color: var(--muted); }
.commentary { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.commentary .eyebrow { margin-bottom: 6px; }
details { margin: 4px 0 18px; }
summary { cursor: pointer; color: var(--maroon); font-size: 15px; min-height: 44px; display: flex; align-items: center; }
.sanskrit p { font-family: "Noto Serif", serif; font-style: italic; font-size: 16px; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--line); }
.sanskrit p.quote { margin-left: 18px; }
.pager { margin-top: 48px; display: flex; justify-content: space-between; gap: 12px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.btn.solid { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); }
.foot { border-top: 1px solid var(--line); padding: 24px 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .te-verse { font-size: 21px; } .verse { padding: 26px 16px; } .meaning p, .commentary p, .card p { font-size: 16.5px; } }
@media print { .top, .pager, .tools, details, .foot { display: none; } body { background: #fff; } }

/* one script per language; default / advanced view */
[data-lang="en"] .te-verse, [data-lang="te"] .iast, [data-lang="hi"] .iast { display: none; }
[data-lang="en"] .iast { margin: 0; font-size: 20px; font-style: normal; color: var(--ink); line-height: 1.8; }
.viewbar { margin-top: 18px; display: flex; }
.viewbar .seg button { padding: 0 14px; }
.page-title { margin: 8px 0 0; font-family: "Noto Serif", "Noto Serif Telugu", serif; font-weight: 500; font-size: 32px; color: var(--ink); line-height: 1.3; }
.subtitle { margin: 6px 0 0; font-family: "Noto Serif", serif; color: var(--muted); font-size: 17px; }
.rows { margin-top: 26px; border-top: 1px solid var(--line); }
.row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.row .num { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--maroon); text-decoration: none; margin-bottom: 8px; }
.row .num:hover { text-decoration: underline; }
.row p { margin: 0 0 8px; font-size: 17px; line-height: 1.8; }
.row-verse { margin: 4px 0 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.row-verse .te-verse { font-size: 19px; }
.row-verse .iast { font-size: 16px; margin: 0; }
.lgrid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.lcard { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--text); }
.lcard .ltitle { font-family: "Noto Serif", "Noto Serif Telugu", serif; font-size: 20px; color: var(--ink); }
.lcard .small { font-size: 13px; color: var(--muted); }

/* Default view: verse page = verse, meaning, double meaning, commentary; laharī list = meanings only */
[data-view="default"] .sec-intro, [data-view="default"] .sec-sanskrit, [data-view="default"] .sec-notes { display: none; }
[data-view="default"] .rows .row-verse, [data-view="default"] .rows .sec-double, [data-view="default"] .rows .row-comm { display: none; }
[data-view="default"] .display { display: none; }
/* Advanced view: the four "Show" toggles */
[data-view="advanced"].hide-verse .sec-verse, [data-view="advanced"].hide-verse .sec-intro, [data-view="advanced"].hide-verse .row-verse, [data-view="advanced"].hide-verse .sec-versebox,
[data-view="advanced"].hide-mula .sec-sanskrit,
[data-view="advanced"].hide-meaning .sec-meaning, [data-view="advanced"].hide-meaning .sec-meaningwrap, [data-view="advanced"].hide-meaning .sec-double,
[data-view="advanced"].hide-comm .sec-comm, [data-view="advanced"].hide-comm .sec-notes,
[data-view="advanced"].hide-comm.hide-mula .row-comm, [data-view="advanced"].hide-comm.hide-mula .sec-commwrap { display: none; }
.viewbar { flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.viewbar { flex-direction: column; align-items: flex-start; }
.display { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.show-label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 13.5px; color: var(--muted); cursor: pointer; user-select: none; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.row .card h3, .card h3 { margin: 0 0 8px; font-family: "Noto Serif", serif; font-weight: 500; font-size: 16px; color: var(--ink); }
.row .card { margin-top: 10px; padding: 14px 16px; }
.row-comm { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--accent); }
.row-comm .mini { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--maroon); }
.row-comm p { font-size: 16px; }
.sec-intro .intro { margin: 0 0 10px; font-family: "Noto Serif", serif; font-style: italic; color: var(--muted); font-size: 15px; }

.part { margin: 14px 0 6px !important; font-family: Inter, "Noto Sans Telugu", sans-serif !important; font-style: normal !important; font-size: 12px !important; font-weight: 600; letter-spacing: .06em; color: var(--maroon) !important; border: 0 !important; padding: 0 !important; }
.work { margin: -4px 0 8px; font-family: "Noto Serif", serif; font-style: italic; font-size: 15px; color: var(--muted); }
.nocomm { font-style: italic; color: var(--muted); }

/* ---------- class notes ---------- */
.taught { display: block; margin-top: 12px; padding: 12px 16px; border-radius: 10px; background: var(--band); color: var(--ink); text-decoration: none; font-size: 14.5px; }
.taught:hover { color: var(--maroon); }
.days { margin-top: 24px; border-top: 1px solid var(--line); }
.dayrow { display: flex; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.dayrow:hover .dtitle { color: var(--maroon); }
.dnum { flex: none; width: 64px; font-size: 13px; font-weight: 600; color: var(--maroon); padding-top: 3px; }
.dmain { display: flex; flex-direction: column; gap: 2px; }
.dtitle { font-family: "Noto Serif", "Noto Serif Telugu", serif; font-size: 18px; color: var(--ink); line-height: 1.4; }
.dmeta { font-size: 13px; color: var(--muted); }
.daybar { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.toc { margin-top: 22px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.toc summary { font-weight: 600; color: var(--ink); }
.toc ol { margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; gap: 4px; font-size: 15px; }
.toc a { color: var(--text); text-decoration: none; } .toc a:hover { color: var(--maroon); }
.notes-body { margin-top: 28px; }
.notes-body h2 { margin: 36px 0 12px; font-size: 22px; scroll-margin-top: 16px; }
.notes-body h3 { margin: 24px 0 8px; font-family: "Noto Serif", "Noto Serif Telugu", serif; font-weight: 500; font-size: 18px; color: var(--ink); }
.notes-body p, .notes-body li { font-size: 17px; line-height: 1.85; }
.notes-body .te p, .notes-body .te li { font-family: "Noto Serif Telugu", serif; }
.notes-body .en p, .notes-body .en li { font-family: "Noto Serif", serif; }
.notes-body blockquote { margin: 16px 0; padding: 4px 18px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 10px 10px 0; }
.notes-body img { display: block; max-width: 100%; height: auto; margin: 18px auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.gloss { margin: 14px 0; padding: 12px 16px; border-radius: 10px; background: var(--band); }
.gloss p { margin: 0; font-size: 15.5px !important; }
.tablewrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; }
.tablewrap table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tablewrap th, .tablewrap td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tablewrap th { background: var(--band); color: var(--ink); font-weight: 600; }
.tablewrap td p, .tablewrap th p { margin: 0; font-size: 15px !important; line-height: 1.6 !important; }
a.vref { color: var(--maroon); text-decoration: underline dotted; text-underline-offset: 3px; font-weight: 500; white-space: nowrap; }
/* verse side panel: right column on wide screens, bottom sheet on phones */
.vpanel { position: fixed; z-index: 20; right: 16px; top: 16px; bottom: 16px; width: min(400px, 92vw); overflow-y: auto; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); }
.vpanel[hidden] { display: none; }
.vp-head { display: flex; justify-content: space-between; align-items: center; }
.vp-id { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--maroon); }
.vp-body .te-verse, .vp-body .iast { text-align: center; margin: 12px 0; font-size: 19px; }
.vp-body p { font-size: 16px; line-height: 1.75; }
.vp-open { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; text-decoration: none; }
@media (max-width: 760px) {
  .vpanel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 62vh; border-radius: 18px 18px 0 0; }
}

.materials { margin-top: 26px; display: grid; gap: 14px; }
.matrow { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.matlabel { margin: 0 0 10px; font-weight: 600; color: var(--ink); font-size: 15px; }
.matbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.downloads { margin-top: 32px; display: grid; gap: 12px; }
.downloads h2 { font-size: 20px; margin: 0; }
.daysum { margin: 12px 0 0; font-family: "Noto Serif", serif; color: var(--muted); font-size: 16px; line-height: 1.7; }

.welcome { margin-top: 22px; }
.welcome-intro { margin: 0; font-family: "Noto Serif", "Noto Serif Telugu", serif; font-size: 17.5px; line-height: 1.85; color: var(--text); }
.howto { margin-top: 18px; padding: 18px 20px; border-radius: 12px; background: var(--band); }
.howto h2 { font-size: 18px; margin: 0 0 8px; }
.howto ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.howto li { font-size: 15.5px; line-height: 1.7; }
.howto strong { color: var(--ink); }

/* Hindi blocks: shown only in the हि view (where they replace the Telugu ones) */
div.hi { display: none; }
[data-lang="hi"] div.hi { display: block; font-family: "Noto Sans Devanagari", sans-serif; }
[data-lang="hi"] .welcome div.te { display: none; }
[data-lang="hi"] .welcome-intro { font-family: "Noto Sans Devanagari", sans-serif; }
[data-lang="hi"] .welcome { display: none; }

/* Hindi view on pages without Hindi content: only the notice */
[data-lang="hi"] main:not(.has-hi) > *:not(.hi-note) { display: none !important; }
[data-lang="hi"] main.has-hi .hi-note { display: none; }
[data-lang="hi"] .hi-note { margin: 40px 0; padding: 28px 24px; text-align: center; border: 1px solid var(--line); background: var(--card); border-radius: 14px; }
.hi-note p { margin: 0 0 16px; font-size: 18px; color: var(--ink); }
.hi-note .matbtns { justify-content: center; }

.greeting { margin: 0 0 10px; font-family: "Noto Serif", "Noto Serif Telugu", serif; font-size: 22px; color: var(--maroon); }
.welcome-intro.closing { margin-top: 12px; font-style: italic; color: var(--muted); }
.te .welcome-intro.closing { font-style: normal; }

.notescard { margin-top: 24px; display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; }
.notescard .small { font-size: 12.5px; letter-spacing: .06em; opacity: .8; }
.notescard .ltitle { font-family: "Noto Serif", "Noto Serif Telugu", serif; font-size: 26px; }
.notescard:hover .ltitle { text-decoration: underline; text-underline-offset: 4px; }
h2.sect { margin: 34px 0 0; font-size: 20px; }
.lgrid { margin-top: 14px; }

/* book page layout */
.wide { max-width: 1120px; }
.bookhead { max-width: 820px; }
.booklayout { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.col-side { position: sticky; top: 16px; }
h2.sect small { font-family: Inter, sans-serif; font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.sect-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.booklayout h2.sect { margin: 0; }
.booklayout .days { margin-top: 14px; }
.lgrid.side { grid-template-columns: 1fr; gap: 10px; }
.lgrid.side .lcard { padding: 14px 16px; }
.lgrid.side .ltitle { font-size: 17px; }
.col-side .downloads { margin-top: 24px; }
.col-side .downloads h2 { font-size: 17px; }
.col-side .matrow { padding: 12px 14px; }
.col-side .matlabel { font-size: 14px; }
.col-side .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
@media (max-width: 1020px) {
  .booklayout { grid-template-columns: 1fr; gap: 30px; }
  .col-side { position: static; }
}

.jump { display: none; gap: 10px; margin-top: 18px; }
.jump a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); font-size: 14px; }
@media (max-width: 1020px) { .jump { display: flex; } }
.col-main .downloads { margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.col-main .downloads h3 { grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); font-family: Inter, sans-serif; }
.col-main .matrow { padding: 12px 14px; }
.col-main .matlabel { font-size: 14px; margin-bottom: 8px; }
.col-main .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
[id] { scroll-margin-top: 16px; }


/* "At a glance" summary of each day */
.dglance { display: block; margin-top: 6px; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.daysum { font-size: 1.02rem; line-height: 1.65; color: var(--text); }

/* pages that have Hindi text (About) */
.hi { display: none; }
[data-lang="hi"] .has-hi .hi { display: revert; }
[data-lang="hi"] .has-hi .te { display: none; }
[lang="hi"] { font-family: "Noto Sans Devanagari", sans-serif; }

/* About */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; margin-top: 18px; }
.about-photo { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--band); }
.about-text .page-title { margin-top: 0; }
.about-text p { font-size: 1.06rem; line-height: 1.8; color: var(--text); margin: 0; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 24px; } .about-photo { max-width: 260px; } }
.wide .about, .wide > .eyebrow { max-width: 1000px; margin-left: auto; margin-right: auto; }
.about-text .page-title { margin-bottom: 14px; }
/* round portrait */
.about { grid-template-columns: 220px 1fr; gap: 40px; }
.about-photo { width: 220px; height: 220px; aspect-ratio: 1; object-fit: cover; object-position: 50% 50%; border-radius: 50%;
  border: 0; box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--accent); margin-top: 8px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; justify-items: center; } .about-photo { width: 170px; height: 170px; } .about-text .page-title { text-align: center; } }

/* Courses and library */
.cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 14px; }
.ccard { padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.ccard .ctitle { margin: 4px 0 6px; font-family: "Noto Serif", "Noto Serif Telugu", serif; font-weight: 500; font-size: 22px; color: var(--ink); }
.cstatus { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ccard.upcoming .cstatus, .lcard.upcoming .cstatus { color: var(--muted); }
.cmeta { margin: 2px 0; font-size: 14px; color: var(--muted); }
.cabout { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.cbtns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lcard.book { gap: 4px; }
.lcard .bauthor { font-size: 14px; color: var(--text); margin-top: 4px; }
.lcard .blangs { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--maroon); }
.lcard.upcoming { border-top-color: var(--line); opacity: .8; }
main > .sect { margin-top: 40px; }
main.has-hi > .lgrid:last-child { margin-bottom: 56px; }
.cgrid, .lgrid { align-items: start; }
/* single course list */
.clist { display: flex; flex-direction: column; gap: 16px; margin: 28px 0 56px; }
.clist .ccard { border-left: 4px solid var(--accent); }
.clist .ccard.upcoming { border-left-color: var(--line); }
.chead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chead .blangs { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--maroon); }
.ccard .bauthor { margin: 0 0 4px; font-size: 14px; color: var(--text); }
.ccard.upcoming .ctitle { color: var(--muted); }

/* Home */
.hero { text-align: center; max-width: 760px; margin: 56px auto 24px; }
.mangala { margin: 0; font-family: "Noto Serif", serif; font-style: italic; font-size: 15px; color: var(--muted); }
.hero-title { margin: 10px 0 6px; font-family: "Noto Serif", serif; font-weight: 500; font-size: clamp(40px, 7vw, 60px); color: var(--ink); letter-spacing: .01em; }
.hero-tag { margin: 0; font-family: "Noto Serif", "Noto Serif Telugu", serif; font-size: 19px; color: var(--maroon); }
.hero-intro { margin: 22px auto 0; font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.wide > h2.sect, .wide > .clist, .wide > .morelink, .wide > .chans { max-width: 860px; margin-left: auto; margin-right: auto; }
.wide > h2.sect { margin-top: 44px; }
.clist.home { margin: 14px auto 0; }
.morelink { margin-top: 12px; text-align: right; }
.morelink a { color: var(--accent); text-decoration: none; font-weight: 500; }
/* Channels */
.chans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0 60px; }
.chan { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; color: var(--text); }
.chan:hover { border-color: var(--accent); }
.chan .cname { font-weight: 600; color: var(--ink); }
.chan .cdesc { font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.chan .cgo { font-size: 14px; font-weight: 600; color: var(--accent); }
.chan.yt .cname::before { content: "▶ "; color: #c4302b; }
.chan.wa .cname::before { content: "● "; color: #25a35a; }
/* Footer */
.footrow { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footrow nav { display: flex; gap: 16px; }
.footrow a { color: var(--muted); text-decoration: none; }
.footrow a:hover { color: var(--ink); }
.mangala { line-height: 1.7; }
/* darśana on the homepage */
.darshan { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.darshan figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.darshan img { width: 170px; height: 170px; object-fit: cover; border-radius: 18px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--accent); }
.darshan figcaption { font-family: "Noto Serif", serif; font-style: italic; font-size: 15px; color: var(--muted); }
@media (max-width: 480px) { .darshan { gap: 16px; } .darshan img { width: 140px; height: 140px; } .darshan figcaption { font-size: 13px; max-width: 150px; text-align: center; } }
.photocredit { margin: 10px 0 0; font-size: 11px; color: var(--muted); opacity: .8; }
/* dedication to Śrīla Prabhupāda */
.dedication { max-width: 860px; margin: 40px auto 0; display: flex; align-items: center; gap: 24px; padding: 22px 26px; background: var(--band); border-radius: 18px; }
.dedication img { flex: none; width: 110px; height: 110px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--band), 0 0 0 5px var(--accent); }
.ded-pre { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--maroon); }
.ded-name { margin: 4px 0 6px; font-family: "Noto Serif", serif; font-size: 20px; color: var(--ink); }
.ded-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
@media (max-width: 600px) { .dedication { flex-direction: column; text-align: center; } }

/* --- borrowed from the course certificate --- */
.band-strip { height: 10px; background-color: #232642;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10'%3E%3Cpolygon points='6,0 11,5 6,10 1,5' fill='%23B23A3A'/%3E%3Cpolygon points='18,1.5 21.5,5 18,8.5 14.5,5' fill='%23E0A458'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 24px 10px; }
.orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 38px auto 0; max-width: 260px; color: #C9973F; font-size: 12px; }
.orn span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #C9973F); }
.orn span:last-child { background: linear-gradient(90deg, #C9973F, transparent); }
.ccard .cstatus { display: inline-block; padding: 4px 11px; border-radius: 99px; background: #232642; color: #F3D7A4; font-size: 11px; }
.ccard.upcoming .cstatus { background: var(--band); color: var(--muted); }
.ccert { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--band); font-size: 14px; line-height: 1.55; color: var(--text); }
.ccert::before { content: "🏅 "; }
.coffered { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.blessing { max-width: 860px; margin: 0 auto 56px; text-align: center; font-family: "Noto Serif", "Noto Serif Telugu", serif; font-style: italic; font-size: 17px; color: var(--maroon); }
.chans { margin-bottom: 30px; }
.foot { padding-top: 28px; }
.footorg { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.footorg img { height: 64px; width: auto; }
.footorg p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink); }
.footorg p span { color: var(--muted); }
[data-theme="dark"] .footorg img { filter: brightness(0) invert(1); opacity: .8; }
@media (max-width: 600px) { .footorg { flex-wrap: wrap; } .footorg img { height: 52px; } }

/* Telugu & Hindi in small labels: no caps spacing, no heavy bold, no fake italics */
.eyebrow [lang="te"], .eyebrow [lang="hi"], .cstatus [lang="te"], .cstatus [lang="hi"],
.ded-pre[lang="te"], .ded-pre[lang="hi"], .dnum [lang="te"], .part[lang="te"], .blangs, .chan .cgo [lang="te"] {
  letter-spacing: 0; text-transform: none; font-weight: 500; }
.ded-pre[lang="te"], .ded-pre[lang="hi"] { font-family: "Noto Sans Telugu", "Noto Sans Devanagari", sans-serif; font-size: 15px; }
.eyebrow [lang="te"], .cstatus [lang="te"] { font-family: "Noto Sans Telugu", sans-serif; font-size: 1.08em; }
.blessing[lang="te"], .blessing[lang="hi"], .mangala[lang="te"] { font-style: normal; }
.ded-text[lang="te"], .hero-intro[lang="te"], .cabout[lang="te"], .ccert[lang="te"] { font-family: "Noto Sans Telugu", sans-serif; line-height: 1.8; }

/* Search */
.navsearch span { margin-left: 2px; }
.searchbox { margin: 22px 0 8px; }
.searchbox input { width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; font-size: 17px; }
.searchbox input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sstatus { margin: 8px 0; font-size: 13.5px; color: var(--muted); }
.results { display: flex; flex-direction: column; margin-bottom: 60px; }
.sres { display: flex; flex-direction: column; gap: 3px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.sres:hover .stitle { color: var(--maroon); }
.sres .stitle { font-family: "Noto Serif", "Noto Serif Telugu", serif; font-size: 17px; color: var(--ink); }
.sres.day .stitle::before { content: "📝 "; }
.sres .smeta { font-size: 12.5px; color: var(--muted); }
.sres .ssnip { font-size: 14.5px; line-height: 1.6; color: var(--text); }
.sres mark { background: #F3D7A4; color: inherit; border-radius: 3px; padding: 0 1px; }
[data-theme="dark"] .sres mark { background: #6b4e22; }
@media (max-width: 600px) { .navsearch span { display: none; } }

/* menu and footer in all three languages */
[data-lang="hi"] .top .hi, [data-lang="hi"] .foot .hi { display: revert; }
[data-lang="hi"] .top .te, [data-lang="hi"] .foot .te { display: none; }
.menu [lang="te"] { font-family: "Noto Sans Telugu", sans-serif; }
.menu [lang="hi"], .foot [lang="hi"] { font-family: "Noto Sans Devanagari", sans-serif; }
.nf { margin-top: 70px; margin-bottom: 80px; }

/* print: just the text */
@media print {
  .band-strip, .top, .foot, .viewbar, .display, .pager, .jump, .daybar, .cbtns, .hi-note, .searchbox, .materials, .downloads, .taught, .orn { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 11.5pt; }
  main.wrap { max-width: none !important; padding: 0 !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .row, .ccard, .lcard, article { break-inside: avoid; }
  .booklayout { display: block !important; }
  .col-side { position: static !important; }
}
.quiznote { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* All courses on YouTube */
.ytlist { margin: 14px 0 60px; border-top: 1px solid var(--line); }
.ytrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ytmain { display: flex; flex-direction: column; gap: 3px; min-width: 220px; flex: 1; }
.yttitle { font-family: "Noto Serif", "Noto Serif Telugu", serif; font-size: 17px; color: var(--ink); }
.ytmeta { font-size: 13px; color: var(--muted); }
.ytst.ongoing { color: #2f8a4c; font-weight: 600; }
.ytbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.clist { margin-bottom: 20px; }
.morelink.left { text-align: left; margin: 6px 0 50px; }
h2.sect.ytgroup { margin-top: 34px; font-size: 13px; font-family: Inter, "Noto Sans Telugu", sans-serif; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ytgroup.ongoing { color: #2f8a4c; }
.ytgroup [lang="te"], .ytgroup [lang="hi"] { letter-spacing: 0; text-transform: none; font-weight: 500; }
.ytlist { margin: 10px 0 0; }
.ytmat { margin-top: 8px; }
.ytmat summary { cursor: pointer; display: inline-block; font-size: 13.5px; font-weight: 500; color: var(--accent); list-style: none; }
.ytmat summary::-webkit-details-marker { display: none; }
.ytmat summary::before { content: "📄 "; }
.ytmat summary::after { content: " ▾"; } .ytmat[open] summary::after { content: " ▴"; }
.ytmat ul { margin: 8px 0 2px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ytmat a { color: var(--text); text-decoration: none; font-size: 14.5px; } .ytmat a:hover { color: var(--maroon); }
.ytmat .mlang { margin-left: 6px; font-size: 12px; color: var(--maroon); }
.ytbtns .btn.solid.small + .btn.solid.small { margin-left: 0; }
.ytrow { align-items: flex-start; }
.ytbtns { padding-top: 2px; }
.ytmat ul li::before { content: "📄 "; }
@media (max-width: 600px) { .ytrow { gap: 10px; } .ytmat { margin-top: 4px; } }

/* Study material */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; margin: 24px 0 60px; }
.mcard { display: flex; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.mcover { flex: none; width: 92px; height: 126px; border-radius: 4px 8px 8px 4px; background: #232642; color: #F3D7A4; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 12px 8px 8px; box-sizing: border-box; text-align: center; box-shadow: inset 5px 0 0 #B23A3A, 0 2px 6px rgba(0,0,0,.12); }
.mcover .mct { font-family: "Noto Serif", serif; font-size: 12.5px; line-height: 1.25; }
.mcover .mcorn { font-size: 9px; color: #E0A458; }
.mcover .mcgv { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.mbody { min-width: 0; }
.mbody .ctitle { margin-top: 0; font-size: 19px; }
.msub { margin: 0 0 4px; font-size: 14.5px; color: var(--maroon); }
.mbody .cbtns { margin-top: 12px; }
@media (max-width: 600px) { .mgrid { grid-template-columns: 1fr; } .mcover { width: 74px; height: 102px; } }
.mbody { flex: 1; }
.mfiles { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mfiles a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--bg); }
.mfiles a:hover { border-color: var(--accent); }
.mfn { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.mfm { font-size: 12.5px; color: var(--muted); }
/* material: show only the reader's language */
[data-lang="te"] .mcard:not(.has-te), [data-lang="en"] .mcard:not(.has-en), [data-lang="hi"] .mcard:not(.has-hi) { display: none; }
[data-lang="te"] .mfiles li:not(.fl-te), [data-lang="en"] .mfiles li:not(.fl-en), [data-lang="hi"] .mfiles li:not(.fl-hi) { display: none; }
.mempty { margin: 24px 0 60px; padding: 18px 20px; border-radius: 14px; background: var(--band); }
.mempty p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.7; }
.mempty.en { display: none; } [data-lang="en"] .mempty.en { display: block; }
[data-lang="te"] .mone:not(.fl-te), [data-lang="en"] .mone:not(.fl-en), [data-lang="hi"] .mone:not(.fl-hi) { display: none; }

/* Posts */
.postgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 14px 0 40px; }
.post { margin: 0; }
.post a { display: block; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.post img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.post.series img { object-fit: cover; object-position: center top; }
.post a:hover { border-color: var(--accent); }
.post figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.post.series figcaption { color: var(--ink); font-weight: 500; font-size: 15px; }
.sbadge { position: absolute; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: 99px; background: rgba(35,38,66,.88); color: #F3D7A4; font-size: 12px; }
.slides { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 60px; }
.slides img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.post.series img { object-fit: contain; background: #FFFBEF; }
.wide > .postgrid, .wide > h2.sect, .wide > .eyebrow, .wide > .page-title, .wide > .subtitle { max-width: 1040px; margin-left: auto; margin-right: auto; }
.wide > .postgrid { margin-bottom: 40px; }

/* phone header: name + ☰ + search + moon; ☰ opens the full menu (with the language switch) */
.menubtn, .mseg { display: none; }
.menubtn .mb-close { display: none; }
@media (max-width: 1000px) {
  .top { position: relative; }
  .top .bar { flex-wrap: nowrap; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .top .brand { font-size: 19px; }
  .top .tools { gap: 6px; }
  .menubtn { display: flex; }
  .top .icon { width: 38px; height: 38px; border-radius: 10px; }
  .top:has(.menubtn) .menu { display: none; }
  .top:has(.menubtn) .tools > .seg { display: none; }
  .menu-open .top .menu { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.12); padding: 8px 20px 16px; font-size: 17px; }
  .menu-open .top .menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .menu-open .top .menu a:last-child { border-bottom: 0; }
  .menu-open .mseg { display: flex; justify-content: flex-start; padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
  .menu-open .mseg .seg button { min-width: 56px; min-height: 40px; font-size: 15px; }
  .menu-open .menubtn .mb-open { display: none; }
  .menu-open .menubtn .mb-close { display: inline; }
}
.downloads .dlsub { margin: 14px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.downloads .dlsub [lang="te"] { letter-spacing: 0; text-transform: none; font-size: 14px; }
.downloads .dlsub { grid-column: 1 / -1; }
/* a file that exists only in the other language is hidden in this tab */
[data-lang="te"] .matrow.only-en, [data-lang="en"] .matrow.only-te { display: none; }
.quizrow { grid-column: 1 / -1; }
.quizhint { margin: 2px 0 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.quizans { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.quizans summary { cursor: pointer; font-size: 14px; color: var(--accent); list-style: none; }
.quizans summary::-webkit-details-marker { display: none; }
.quizans summary::before { content: "▸ "; } .quizans[open] summary::before { content: "▾ "; }
.quizans .quizhint { margin-top: 8px; }
.textpdf { margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; } .textpdf .quizhint { margin: 0 0 10px; }
.textpdf { margin: 4px 0 14px; padding: 0; border: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.textpdf .quizhint { margin: 0; flex: 1 1 200px; }
.textpdf .btn { min-height: 36px; padding: 0 14px; font-size: 14px; }
.earlier { margin: 12px 0 60px; padding: 20px 22px; border-radius: 14px; background: var(--band); }
.earlier-text { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.earlier .cbtns { margin-top: 14px; }
/* Videos: show only the reader's language */
[data-lang="te"] .ytrow:not(.has-te), [data-lang="en"] .ytrow:not(.has-en), [data-lang="hi"] .ytrow:not(.has-hi),
[data-lang="te"] .ytsec:not(.has-te), [data-lang="en"] .ytsec:not(.has-en), [data-lang="hi"] .ytsec:not(.has-hi) { display: none; }
[data-lang="te"] .ytmat li:not(.fl-te), [data-lang="en"] .ytmat li:not(.fl-en), [data-lang="hi"] .ytmat li:not(.fl-hi) { display: none; }
.chans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 10px; }
.chanwrap { display: contents; }
[data-lang="te"] .chanwrap:not(.te), [data-lang="en"] .chanwrap:not(.en), [data-lang="hi"] .chanwrap:not(.hi) { display: none; }
.chanalso { margin: 0 0 40px; font-size: 13.5px; color: var(--muted); }
.wide > .chanalso { max-width: 860px; margin-left: auto; margin-right: auto; }
.chanalso a { color: var(--accent); text-decoration: none; margin: 0 2px; }
.ytmat summary { min-height: 32px; display: inline-flex; align-items: center; } .ytmat { margin-top: 2px; } .ytmeta + .ytmat { margin-top: 0; }
.roman { display: none; font-size: 13px; color: var(--muted); font-style: italic; margin: 1px 0 3px; }
[data-lang="te"] .roman.te, [data-lang="hi"] .has-hi .roman.hi { display: block; }
.mbody .roman { margin-top: -4px; margin-bottom: 6px; }
/* Study material: groups, long file lists scroll inside the card */
[data-lang="te"] .mgroup:not(.has-te), [data-lang="en"] .mgroup:not(.has-en), [data-lang="hi"] .mgroup:not(.has-hi) { display: none; }
.wide > .mgroup, .wide > .mempty { max-width: 1100px; margin-left: auto; margin-right: auto; }
.mgroup .mgrid { margin: 12px 0 34px; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }
.mfiles { max-height: 330px; overflow-y: auto; padding-right: 4px; }
@media (max-width: 600px) { .mgroup .mgrid { grid-template-columns: 1fr; } }
/* Videos: scripture sections */
.wide > .ytsec, .wide > .mempty { max-width: 960px; margin-left: auto; margin-right: auto; }
.ytsec .ytlist { margin-bottom: 30px; }
.ongoing-tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 99px; background: #e3f2e7; color: #2f8a4c; font-family: Inter, sans-serif; font-size: 11.5px; font-weight: 600; vertical-align: middle; }
.mcard:target { outline: 2px solid var(--accent); outline-offset: 3px; }
/* one column edge for the wide listing pages (Videos, Study material, Posts) */
.wide > .eyebrow, .wide > .page-title, .wide > .subtitle, .wide > .cbtns,
.wide > .ytsec, .wide > .mgroup, .wide > .mempty, .wide > .postgrid, .wide > h2.sect { max-width: 1040px; margin-left: auto; margin-right: auto; }
.wide > .cbtns { margin-bottom: 10px; }
.wide > .hero ~ h2.sect, .wide > .hero ~ .chanalso, .wide > .hero ~ .morelink { max-width: 860px; margin-left: auto; margin-right: auto; }
/* PDF: Read + Download side by side */
.mfiles li { display: flex; gap: 6px; align-items: stretch; }
.mfiles li > a[data-view] { flex: 1; min-width: 0; }
.mfiles a.mdl { flex: 0 0 auto; flex-direction: row; align-items: center; justify-content: center; width: 44px; padding: 0; font-size: 18px; }
/* Prabhupāda with Rādhā-Kṛṣṇa (same picture as the YouTube and WhatsApp channels): a rounded square so Rādhā-Kṛṣṇa are not cut off */
.dedication img { width: 150px; height: 150px; border-radius: 16px; }
.about-text p + p { margin-top: 14px; }
.ytsecond { margin: 0 0 10px; font-size: 14px; color: var(--muted, #6b6670); } .wide > .ytsecond { max-width: 1040px; margin-left: auto; margin-right: auto; }
/* icon + word on buttons (📖 Read, ⬇ Download, ▶ Watch): keep a small gap */
.btn { gap: .4em; }
/* Study material covers on phones: long titles stay inside the cover */
.mcover { overflow: hidden; }
.mcover .mct { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.mcover .mcgv { white-space: nowrap; }
@media (max-width: 600px) {
  .mcover { padding: 10px 6px 7px; }
  .mcover .mct { font-size: 10.5px; line-height: 1.2; }
  .mcover .mcgv { font-size: 7px; letter-spacing: .08em; }
}
@media (max-width: 600px) {
  .mcover { width: 84px; height: 114px; padding: 10px 6px 7px 9px; }
  .mcover .mct { font-size: 10px; }
}
