/* Gita for Real Life: the design system. Guide: DESIGN.md. Templates: templates/index.html.
   Fonts (in each page head): Bricolage Grotesque 400-800, Spectral 400/italic, Tiro Devanagari Sanskrit,
   JetBrains Mono 500. */

/* @book: copied into book.css by tools/make_book_css.py */
:root {
  color-scheme: light;
  --paper: #f7f2e9; --card: #fffdf8;
  --line: #e6dccb; --line-2: #ece3d3; --line-3: #d9cdb9;
  --ink: #2a2420; --ink-body: #4a403a; --ink-muted: #6b5f55; --ink-faint: #7d7166;
  --saffron: #c9622f; --saffron-text: #a74c1f; --saffron-tint: #f8e9d9; --saffron-read: #f1d3bd;
  --teal: #2f6f69; --teal-tint: #e3efe9; --teal-pale: #e2f0eb; --teal-line: #6fa59b; --teal-rule: #4a8a80;
  --lotus: #f6dcd3; --lotus-text: #a2432b; --lotus-deep: #ecc4b6;
  --best-line: #8fbfb3; --best-bg: #eef6f2; --other-line: #e8c3a6; --other-bg: #fbefe4; --other-badge: #a8623a;
  --ui: "Bricolage Grotesque", system-ui, sans-serif;
  --read: Spectral, Georgia, serif;
  --sa: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1160px; --pad: 32px; --measure: 680px;
}
@media (max-width: 600px) { :root { --pad: 20px; } }
/* @end-book */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--ui); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; } /* height: auto so width/height attributes only reserve the shape */
picture { display: contents; } picture > source { display: none; } /* tools/finalize_site.py wraps paintings in <picture> (AVIF copies); the img keeps its layout */
[hidden] { display: none !important; }
a { color: var(--saffron-text); text-decoration: none; }
a:hover { color: var(--ink); }
.prose a, .link-u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; z-index: 10; }
.skip:focus { left: 8px; color: var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, .h1 { margin: 0 0 18px; font: 800 clamp(40px, 6vw, 68px)/.98 var(--ui); letter-spacing: -.04em; text-wrap: balance; }
h2, .h2 { margin: 0; font: 800 clamp(30px, 4.4vw, 48px)/1 var(--ui); letter-spacing: -.035em; text-wrap: balance; }
h3, .h3 { margin: 0; font: 800 24px/1.2 var(--ui); letter-spacing: -.02em; text-wrap: pretty; }
h1.is-md { font-size: clamp(36px, 4.8vw, 54px); }
.lede { margin: 0; font: 400 18px/1.55 var(--ui); color: var(--ink-muted); max-width: 34em; text-wrap: pretty; }
.eyebrow { display: block; margin-bottom: 14px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--saffron-text); }
.eyebrow.is-teal { color: var(--teal); } .eyebrow.is-lotus { color: var(--lotus-text); }
.label { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.muted { color: var(--ink-muted); }
.serif { font-family: var(--read); }
.prose { max-width: var(--measure); font: 400 18px/1.7 var(--read); color: var(--ink-body); }
.prose > * { margin: 0 0 1em; }
.prose h2 { margin: 1.8em 0 .5em; font: 800 30px/1.1 var(--ui); color: var(--ink); letter-spacing: -.025em; }
.prose h3 { margin: 1.5em 0 .4em; color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--saffron); font: 700 22px/1.35 var(--ui); color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 8px; font: 500 12px var(--mono); letter-spacing: .1em; color: var(--saffron-text); font-style: normal; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.sanskrit { font: 400 clamp(24px, 3vw, 32px)/1.75 var(--sa); color: var(--ink); margin: 0; }
.translit { font: italic 400 18px/1.6 var(--read); color: var(--ink-muted); margin: 0; }
.todo-mark { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #fff1c9; color: #6e4d00; font: 600 11px var(--mono); letter-spacing: .04em; vertical-align: middle; text-transform: uppercase; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding-block: 56px 72px; }
.section.is-tight { padding-block: 32px 48px; }
.band { background: var(--card); border-top: 1.5px solid var(--line-2); border-bottom: 1.5px solid var(--line-2); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: start; }
.split.is-center { align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.grid.is-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: 28px; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.page-head { padding-block: 40px 8px; }
.page-head .lede { margin-top: 4px; }
.reading { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 300px); gap: 56px; justify-content: space-between; align-items: start; }
@media (max-width: 960px) { .reading { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.aside-sticky { position: sticky; top: 24px; }

/* ---------- header, menus, footer ---------- */
.site-header { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--pad); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font: 800 23px/1 var(--ui); letter-spacing: -.025em; color: var(--ink); white-space: nowrap; }
.wordmark i { font: italic 400 21px/1 var(--read); letter-spacing: 0; color: var(--ink-muted); }
.wm-feather { flex: none; width: auto; height: 30px; }
.wordmark:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font: 500 15px var(--ui); }
.nav a { color: var(--ink-muted); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]:not(.nav-kids) { box-shadow: inset 0 -2px 0 var(--saffron); }
.nav .nav-kids { padding: 7px 15px; border-radius: 99px; background: var(--teal-tint); color: var(--teal); font-weight: 700; }
.nav .nav-kids:hover { color: var(--teal); background: #d5e8e0; }
.is-kids .nav .nav-kids { background: var(--teal); color: #fff; }
.submenu { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 10px 0; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); font: 600 14px var(--ui); align-items: center; }
.submenu a { color: var(--ink-muted); padding: 4px 0; }
.submenu a[aria-current="page"] { color: var(--teal); }
.submenu .buy { margin-left: auto; padding: 7px 14px; border-radius: 99px; background: var(--ink); color: var(--paper); }
@media (max-width: 600px) { .submenu .buy { margin-left: 0; } }
.crumbs { padding-top: 22px; font: 500 14px var(--ui); color: var(--ink-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line-3); }
.crumbs a { color: var(--ink-muted); }
.crumbs [aria-current] { color: var(--ink); }
.site-footer { border-top: 1.5px solid var(--line-2); margin-top: 24px; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 44px; display: grid; gap: 20px; font: 500 14px var(--ui); color: var(--ink-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- small parts ---------- */
.pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 99px; font: 700 13px var(--ui); background: var(--paper); color: var(--ink-muted); white-space: nowrap; }
.pill.is-saffron { background: var(--saffron-tint); color: var(--saffron-text); }
.pill.is-teal { background: var(--teal-tint); color: var(--teal); }
.pill.is-lotus { background: var(--lotus); color: var(--lotus-text); }
.pill.is-sm { padding: 4px 11px; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 15px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px var(--ui); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink-muted); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
a.chip { display: inline-flex; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font: 700 15px var(--ui); cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--paper); background: #000; }
.btn.is-outline { background: transparent; color: var(--ink); border-color: var(--line-3); }
.btn.is-outline:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.is-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.is-teal:hover { background: #255a55; }
.btn.is-light { background: #f3fbf9; border-color: #f3fbf9; color: var(--teal); font-weight: 800; }
.btn.is-ghost-light { background: transparent; border-color: var(--teal-line); color: #f3fbf9; }
.btn.is-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; font-weight: 800; }
.arrow-link { font: 700 15px var(--ui); }
.try { border-radius: 16px; background: var(--paper); padding: 14px 18px; font: 500 15px/1.5 var(--ui); color: var(--ink); }
.try b { font-weight: 800; color: var(--teal); }
.cheat { border-radius: 14px; background: var(--teal-tint); padding: 12px 16px; font: 700 15px/1.4 var(--ui); color: var(--teal); }
.talk { border-radius: 20px; border: 1.5px dashed var(--line-3); padding: 16px 20px; font: 400 15px/1.5 var(--ui); color: var(--ink-muted); }
.talk b { color: var(--ink); }
.note-box { border-radius: 20px; background: var(--card); box-shadow: 0 1px 0 var(--line); padding: 22px 24px; }
.science { border-radius: 20px; background: #eef0f6; padding: 18px 22px; }
.science .eyebrow { color: #4a4f8a; margin-bottom: 8px; }

/* ---------- pictures ---------- */
.painting { width: 100%; aspect-ratio: 3/2; object-fit: cover; mix-blend-mode: multiply; }
.painting.is-tall { aspect-ratio: 2/3; }
.painting.is-contain { object-fit: contain; }
/* verse pictures from tools/verse_export.py: the paper is already the page colour, so no blending */
.painting.on-paper { mix-blend-mode: normal; height: auto; aspect-ratio: auto; object-fit: contain; }
.ph { aspect-ratio: 3/2; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 20px 24px; background: repeating-linear-gradient(135deg, var(--s1, #f1e8d8) 0 10px, var(--s2, #f6efe3) 10px 20px); }
.ph.is-center { justify-content: center; }
.ph .label { color: var(--ink-c, var(--saffron-text)); }
.ph p { margin: 0; font: 500 12px/1.55 var(--mono); color: #5e5650; max-width: 46em; }
.ph.is-clamp p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spot { width: min(100%, 380px); aspect-ratio: 4/3; border: 1.5px dashed #d9c7ab; border-radius: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 24px; text-align: center; }
.spot p { margin: 0; font: 500 12px/1.55 var(--mono); color: var(--ink-muted); }
figure { margin: 0; }
figcaption { margin-top: 8px; font: 500 13px var(--ui); color: var(--ink-muted); }

/* ---------- cards ---------- */
.card { display: flex; flex-direction: column; border-radius: 24px; background: var(--card); overflow: hidden; color: var(--ink); box-shadow: 0 1px 0 var(--line); transition: transform .2s, box-shadow .2s; }
a.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(60, 40, 20, .25); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font: 700 20px/1.3 var(--ui); letter-spacing: -.01em; text-wrap: pretty; }
.card-text { font: 400 15px/1.55 var(--read); color: var(--ink-body); margin: 0; }
.card-go { margin-top: auto; font: 700 14px var(--ui); color: var(--saffron-text); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card.is-done .card-go::after { content: "  · tried"; color: var(--ink-faint); font-weight: 500; }
[data-theme="sport"] { --s1: #f8e9d9; --s2: #fbf1e6; --ink-c: #a74c1f; }
[data-theme="school"] { --s1: #e3efe9; --s2: #ecf4f0; --ink-c: #2f6f69; }
[data-theme="friends"] { --s1: #f6dcd3; --s2: #f9e7e0; --ink-c: #a2432b; }
[data-theme="home"] { --s1: #ebe8d6; --s2: #f2f0e3; --ink-c: #5f6a2f; }
[data-theme="big-choices"] { --s1: #e4e4ef; --s2: #ededf5; --ink-c: #4a4f8a; }
.pill.is-theme { background: var(--s1); color: var(--ink-c); }
.kids .card-go { color: var(--teal); }

/* verse card (home, topic pages) */
.verse-card { background: var(--card); border-radius: 28px; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.verse-card .body { padding: 26px 30px 30px; }
.verse-line { font: 700 24px/1.3 var(--ui); letter-spacing: -.01em; margin: 14px 0; text-wrap: pretty; }
.verse-meaning { font: 400 16px/1.6 var(--read); color: var(--ink-body); margin: 0 0 18px; text-wrap: pretty; }
@media (max-width: 600px) { .verse-card .body { padding: 22px 20px 24px; } .verse-line { font-size: 21px; } }

/* ---------- home ---------- */
.js [data-group]:not(.is-on) { display: none; }
.hero { padding-block: 40px 72px; }
.hero .spot { margin: 0 0 24px 60px; }
@media (max-width: 600px) { .hero .spot { margin-left: 0; } }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.dot { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); color: var(--saffron-text); font: 700 15px var(--ui); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dot.is-read { background: var(--saffron-read); }
.dot[aria-pressed="true"], .dot[aria-current="page"] { background: var(--saffron); color: #fff; }
.chapter-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); border-radius: 28px; overflow: hidden; background: var(--paper); }
.chapter-feature .painting, .chapter-feature .ph { height: 100%; min-height: 300px; }
.chapter-feature .body { padding: 36px 40px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
@media (max-width: 600px) { .chapter-feature .body { padding: 26px 22px; } }
.big-num { font: 800 64px/1 var(--ui); letter-spacing: -.04em; color: var(--saffron); }
.ch-title { font: 800 32px/1.08 var(--ui); letter-spacing: -.025em; }
.ch-sa { font: italic 400 17px var(--read); color: var(--ink-muted); }
.panel-teal { border-radius: 36px; background: var(--teal); color: #f3fbf9; padding: 52px clamp(24px, 4vw, 56px) 56px; overflow: hidden; }
.panel-teal .lede { color: var(--teal-pale); }
.panel-teal .foot { margin-top: 44px; padding-top: 24px; border-top: 1.5px solid var(--teal-rule); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font: 500 15px var(--ui); color: var(--teal-pale); }
.panel-teal .foot b { color: #f3fbf9; }
.badge-light { display: inline-flex; padding: 6px 14px; border-radius: 99px; background: #f3fbf9; color: var(--teal); font: 700 13px var(--ui); margin-bottom: 20px; }
.peeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; align-items: start; padding: 10px 0; }
.peek { border-radius: 22px; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45); transition: transform .25s; }
.peek .ph { aspect-ratio: 16/10; padding: 14px 16px; }
.peek .card-body { padding: 16px 18px 20px; }
.peek .card-title { font-size: 18px; }
.peek:nth-child(1) { transform: rotate(-3deg); }
.peek:nth-child(2) { transform: rotate(1.5deg); margin-top: 28px; }
.peek:nth-child(3) { transform: rotate(3deg); }
a.peek:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45); }
.book-hero { border-radius: 36px; background: var(--card); box-shadow: 0 1px 0 var(--line); overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: stretch; }
.book-hero .cover-side { background: var(--lotus); padding: 48px; display: flex; justify-content: center; align-items: center; }
.book-hero .text-side { padding: 48px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.cover { width: min(100%, 260px); aspect-ratio: 2/3; object-fit: cover; border-radius: 4px 10px 10px 4px; box-shadow: -5px 0 0 rgba(0, 0, 0, .08) inset, 0 24px 40px -20px rgba(80, 30, 20, .45); }
.book-strip { border-radius: 28px; background: var(--lotus); padding: 24px 28px; display: grid; grid-template-columns: 84px 1fr auto; gap: 24px; align-items: center; }
.book-strip .cover { width: 84px; box-shadow: 0 10px 20px -12px rgba(80, 30, 20, .5); }
.book-strip .h3 { margin-bottom: 4px; }
.book-strip p { margin: 0; color: #5e4a42; font-size: 15px; }
.aside-sticky .book-strip { grid-template-columns: 64px 1fr; padding: 20px; gap: 16px; }
.aside-sticky .book-strip .cover { width: 64px; }
.aside-sticky .book-strip .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 700px) { .book-strip { grid-template-columns: 64px 1fr; } .book-strip .cover { width: 64px; } .book-strip .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- lists ---------- */
.verse-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--line); }
.verse-list li { border-bottom: 1.5px solid var(--line); }
.verse-list a { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: baseline; padding: 14px 4px; color: var(--ink); }
.verse-list a:hover { background: var(--card); }
.verse-list .num { font: 700 15px var(--ui); color: var(--saffron-text); }
.verse-list .line { font: 400 16px/1.5 var(--read); color: var(--ink-body); }
.verse-list .who { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 600px) { .verse-list a { grid-template-columns: 48px 1fr; } .verse-list .who { display: none; } }
.ideas { counter-reset: idea; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ideas li { counter-increment: idea; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: var(--card); border-radius: 20px; padding: 16px 18px; box-shadow: 0 1px 0 var(--line); font: 400 16px/1.55 var(--read); color: var(--ink-body); }
.ideas li::before { content: counter(idea); width: 32px; height: 32px; border-radius: 50%; background: var(--saffron-tint); color: var(--saffron-text); display: flex; align-items: center; justify-content: center; font: 800 14px var(--ui); }
.ideas b { font-family: var(--ui); color: var(--ink); }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.ch-card { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 22px; border-radius: 22px; background: var(--card); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.ch-card:hover { color: var(--ink); box-shadow: 0 10px 24px -12px rgba(60, 40, 20, .25); }
.ch-card .n { font: 800 40px/1 var(--ui); letter-spacing: -.04em; color: var(--saffron); }
.ch-card .t { font: 800 20px/1.15 var(--ui); letter-spacing: -.015em; }
.ch-card .sa { font: italic 400 15px var(--read); color: var(--ink-muted); margin: 2px 0 8px; }
.ch-card p { margin: 0; font: 400 15px/1.5 var(--read); color: var(--ink-body); }
.ch-card .meta { margin-top: 10px; font: 500 13px var(--ui); color: var(--ink-faint); }
.az { display: flex; flex-wrap: wrap; gap: 4px; position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.az a, .az span { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font: 700 14px var(--ui); color: var(--ink); }
.az a:hover { background: var(--card); }
.az span { color: var(--line-3); }
.terms { margin: 0; }
.letter { font: 800 40px/1 var(--ui); color: var(--saffron); margin: 36px 0 8px; scroll-margin-top: 70px; }
.term { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 8px 32px; padding: 16px 0; border-bottom: 1.5px solid var(--line); }
.term dt { font: 800 19px/1.3 var(--ui); }
.term dt small { display: block; font: 400 16px var(--sa); color: var(--ink-muted); margin-top: 2px; }
.term dd { margin: 0; font: 400 16px/1.6 var(--read); color: var(--ink-body); }
@media (max-width: 700px) { .term { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 4px; font: 700 19px/1.35 var(--ui); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 0 var(--line); display: flex; align-items: center; justify-content: center; font: 600 20px/1 var(--ui); color: var(--saffron-text); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 4px 20px; max-width: var(--measure); font: 400 17px/1.65 var(--read); color: var(--ink-body); }
.faq .a p { margin: 0 0 .8em; }

/* ---------- verse page ---------- */
.verse-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.shloka { background: var(--card); border-radius: 28px; padding: 32px clamp(22px, 4vw, 44px); box-shadow: 0 1px 0 var(--line); display: grid; gap: 18px; }
.shloka .label { color: var(--saffron-text); }
.meaning-big { font: 700 clamp(22px, 2.6vw, 28px)/1.3 var(--ui); letter-spacing: -.015em; margin: 0; text-wrap: pretty; }
.besant { font: 400 16px/1.6 var(--read); color: var(--ink-muted); margin: 0; }
.verse-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.verse-nav a { font: 700 15px var(--ui); color: var(--ink); }
.verse-nav span { font-weight: 400; color: var(--ink-muted); }
.verse-nav .mid { color: var(--saffron-text); text-align: center; }
.verse-nav a:last-child { text-align: right; }
.mini-dots { display: flex; flex-wrap: wrap; gap: 3px; }
.mini-dots a { width: 10px; height: 10px; border-radius: 3px; background: var(--line); }
.mini-dots a[aria-current="page"] { background: var(--saffron); }

/* ---------- kids quiz ---------- */
.quiz { display: flex; flex-direction: column; gap: 10px; }
.quiz-q { font: 700 15px var(--ui); color: var(--ink-muted); margin: 4px 0; }
.opt { border-radius: 20px; border: 2px solid var(--line); background: var(--card); overflow: hidden; transition: background .3s, border-color .3s, opacity .3s; }
.opt button { width: 100%; text-align: left; display: flex; gap: 14px; align-items: center; padding: 16px 20px; border: 0; background: transparent; cursor: pointer; min-height: 64px; }
.opt button:disabled { cursor: default; color: var(--ink); }
.opt .mark { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; font: 800 14px var(--ui); }
.opt .text { font: 600 17px/1.4 var(--ui); }
.opt .why { padding: 0 22px 18px 66px; font: 400 16px/1.6 var(--read); color: var(--ink-body); }
.opt .why b { display: block; font: 800 13px var(--ui); letter-spacing: .02em; margin-bottom: 2px; }
.opt.is-best .why b { color: var(--teal); }
.opt.is-other .why b { color: var(--other-badge); }
.js .quiz:not(.is-answered) .why { display: none; }
.js .quiz.is-answered .opt:not(.is-best):not(.is-picked) .why { display: none; }
.quiz.is-answered .opt.is-best { border-color: var(--best-line); background: var(--best-bg); }
.quiz.is-answered .opt.is-best .mark { background: var(--teal); color: #fff; }
.quiz.is-answered .opt.is-picked:not(.is-best) { border-color: var(--other-line); background: var(--other-bg); }
.quiz.is-answered .opt.is-picked:not(.is-best) .mark { background: var(--other-badge); color: #fff; }
.quiz.is-answered .opt:not(.is-best):not(.is-picked) { opacity: .55; }
.js .gita-says[hidden] { display: none; }
.gita-says .eyebrow { margin-bottom: 10px; }
.gita-says .verse-line { font-size: 19px; margin: 0 0 10px; }
.nojs-note { font: 500 14px var(--ui); color: var(--ink-muted); }
.js .nojs-note { display: none; }
.card-hero { border-radius: 28px; overflow: hidden; background: var(--s1); }
.card-hero .body { padding: 26px 30px 30px; background: var(--card); }
.card-hero h1 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; letter-spacing: -.02em; margin: 12px 0 0; }
.prevnext { margin-top: 48px; padding-top: 20px; border-top: 1.5px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; font: 700 15px var(--ui); }
.prevnext a { color: var(--ink); }
.prevnext span { font-weight: 400; color: var(--ink-muted); }
.prevnext .mid { color: var(--teal); text-align: center; }
.prevnext a:last-child { text-align: right; }
.prevnext.is-gita .mid { color: var(--saffron-text); }
@media (max-width: 600px) { .prevnext span, .verse-nav span { display: none; } }

/* ---------- book ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--card); border-radius: 22px; padding: 18px 18px 20px; box-shadow: 0 1px 0 var(--line); }
.steps li::before { content: counter(step); display: block; font: 800 34px/1 var(--ui); color: var(--lotus-text); margin-bottom: 10px; }
.steps b { display: block; font: 800 17px/1.25 var(--ui); margin-bottom: 4px; }
.steps span { font: 400 15px/1.5 var(--read); color: var(--ink-body); }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.code-card { border-radius: 20px; background: var(--teal-tint); padding: 18px 20px; color: var(--teal); display: flex; flex-direction: column; gap: 6px; }
.code-card:hover { color: var(--teal); background: #d7e9e1; }
.code-card .label { color: var(--teal); }
.code-card b { font: 800 19px/1.25 var(--ui); color: #1f4f4a; }
.pages-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.pages-strip img { border-radius: 6px; box-shadow: 0 18px 30px -20px rgba(60, 40, 20, .5); aspect-ratio: 2/3; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0; border-top: 1.5px solid var(--line); margin: 0; }
.facts div { padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.facts dt { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.facts dd { margin: 2px 0 0; font: 700 17px var(--ui); }
.toc { list-style: none; margin: 0; padding: 0; columns: 2 280px; column-gap: 40px; }
.toc li { break-inside: avoid; display: grid; grid-template-columns: 36px 1fr; padding: 8px 0; border-bottom: 1.5px solid var(--line); font: 600 16px var(--ui); }
.toc li span { color: var(--lotus-text); font-weight: 800; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.person { background: var(--card); border-radius: 28px; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.person .body { padding: 24px 28px 28px; }
.person .painting { aspect-ratio: 3/2; object-fit: cover; }
.printable { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 20px; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.printable .ico { width: 64px; aspect-ratio: 3/4; border-radius: 6px; background: repeating-linear-gradient(0deg, var(--line-2) 0 2px, transparent 2px 10px), var(--paper); border: 1.5px solid var(--line); }
@media (max-width: 600px) { .printable { grid-template-columns: 48px 1fr; } .printable .ico { width: 48px; } .printable .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- 404 ---------- */
.lost { padding-block: 72px 96px; text-align: center; }
.lost .h1 { margin-inline: auto; max-width: 12em; }
.lost .lede { margin: 0 auto 28px; }
.lost .row { justify-content: center; }
.lost .painting { max-width: 520px; margin: 0 auto 28px; }

/* ---------- template-only banner (remove when real) ---------- */
.tpl-banner { background: #2a2420; color: #f7f2e9; font: 500 13px/1.45 var(--ui); }
.tpl-banner .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: space-between; }
.tpl-banner a { color: #f1d3bd; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .peek, .peek:nth-child(n) { transform: none !important; }
  a.card:hover { transform: none; }
}
@media (max-width: 600px) { .hero .spot { width: min(100%, 260px); } }

/* ---------------------------------------------------------------- verse page, the designer's layout ("Verse Page 2.47",
   2026-12-02): hero with the picture, the verse card, four numbered layers, and a right-hand column (sticky on desktop). */
body:has(.vp-hero) { --wrap: 1304px; }  /* the designer's 1240px content width */
.vp-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px 48px; align-items: center; padding-top: 28px; }
.vp-hero-text { display: flex; flex-direction: column; gap: 18px; }
.vp-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.vp-eyebrow { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-text); }
.vp-speaker { padding: 4px 11px; border-radius: 99px; background: var(--teal-tint); color: var(--teal); font: 700 13px var(--ui); }
.vp-title { margin: 0; font: 800 clamp(44px, 6vw, 72px)/.95 var(--ui); letter-spacing: -.04em; }
.vp-one { margin: 0; font: 400 clamp(24px, 2.6vw, 32px)/1.25 var(--read); color: var(--ink); text-wrap: pretty; max-width: 520px; }
.vp-mind { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 14px var(--ui); color: var(--ink-muted); }
.vp-chip { padding: 5px 13px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; }
.vp-chip:hover { border-color: var(--ink-muted); }
.vp-pic figure { margin: 0; }
.vp-pic img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; display: block; mix-blend-mode: multiply; border-radius: 0; }

.vp-body { display: flex; flex-wrap: wrap-reverse; gap: 40px; align-items: flex-end; padding-top: 32px; }
.vp-main { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.vp-rail { flex: 0 0 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1100px) { .vp-rail { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; scrollbar-width: thin; } }
/* phones and tablets: the verse card first, then the side column (where you are, my notes, on this page), then the rest
   (author, 2026-12-02: "Verse first on phones") */
@media (max-width: 1099px) {
  .vp-body { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 20px; }
  .vp-main { display: contents; }
  .vp-main > * { order: 3; }
  .vp-main > .vp-verse { order: 1; }
  .vp-rail { order: 2; flex: none; min-width: 0; }
}
[data-sec] { scroll-margin-top: 24px; }

.vp-label-row, .vp-sec-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.vp-label-row { margin-bottom: 12px; }
.vp-label { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-text); }
.vp-label.is-teal { color: var(--teal); }
.vp-label.is-muted { color: var(--ink-muted); font-size: 11px; }
.vp-pill { padding: 3px 9px; border-radius: 99px; background: #fdeec4; color: #5a4410; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.vp-card { background: var(--card); border-radius: 28px; box-shadow: 0 1px 0 var(--line); padding: 32px clamp(22px, 4vw, 40px); }
.vp-sec-head { margin-bottom: 18px; }
.vp-h { margin: 0; font: 800 26px var(--ui); letter-spacing: -.025em; }
.vp-h.is-sm { font-size: 22px; letter-spacing: -.02em; }
.vp-small { margin: 14px 0 0; font: 500 14px/1.5 var(--ui); color: var(--ink-muted); }
.vp-rule { margin-top: 18px; padding-top: 14px; border-top: 1.5px solid var(--line-2); }
.vp-layer { display: flex; align-items: baseline; gap: 14px; margin: 16px 0 -18px; padding-top: 18px; }
.vp-layer span { font: 800 15px var(--mono); color: var(--saffron); }
.vp-layer h2 { margin: 0; font: 800 clamp(28px, 3.4vw, 38px)/1 var(--ui); letter-spacing: -.03em; }
.vp-layer + .vp-card { margin-top: 18px; }

/* the verse */
.vp-verse { padding: 0; overflow: hidden; }
.vp-verse-top { padding: 36px clamp(22px, 4vw, 48px) 30px; }
.vp-verse-top .vp-label-row { margin-bottom: 22px; }
.vp-sa { margin: 0; font: 400 clamp(26px, 3.4vw, 40px)/1.55 var(--sa); color: var(--ink); }
.vp-sa-sm { font-size: 20px; margin: 14px 0 6px; }
.vp-iast { margin: 14px 0 0; font: italic 400 19px/1.6 var(--read); color: var(--ink-muted); }
.vp-audios { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.vp-audio { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; min-width: min(250px, 100%); text-align: left; }
.vp-audio:hover { border-color: var(--line-3); }
.vp-play { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font: 700 13px var(--ui); flex: none; }
.vp-play::before { content: "▶"; }
.vp-audio.is-playing .vp-play::before { content: "❚❚"; font-size: 11px; }
.vp-audio-mid { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.vp-audio-l { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--saffron-text); }
.vp-bar { display: block; height: 3px; border-radius: 2px; background: #e1d6c3; }
.vp-bar span { display: block; height: 3px; width: 0; border-radius: 2px; background: var(--saffron); }
.vp-time { font: 500 12px var(--mono); color: var(--ink-muted); white-space: nowrap; }
.vp-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5px; background: var(--line-2); border-top: 1.5px solid var(--line-2); }
.vp-besant-col { background: var(--card); }
.vp-split > div { padding: 26px clamp(22px, 4vw, 48px) 32px; }
.vp-plain { background: #fbf6ec; }
.vp-en { margin: 0; font: 400 19px/1.6 var(--read); color: var(--ink); text-wrap: pretty; }
.vp-besant { margin: 0; font: 400 16px/1.6 var(--read); color: var(--ink-muted); }

/* 01 read it closely */
.vp-words { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.vp-words li { background: #f5efe4; border-radius: 16px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.vp-w-sa { font: 400 24px/1.3 var(--sa); color: var(--ink); }
.vp-w-iast { font: italic 400 16px var(--read); color: var(--saffron-text); }
.vp-w-en { font: 500 14px/1.4 var(--ui); color: var(--ink-body); text-wrap: pretty; }
.vp-terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 28px; }
.vp-terms li { padding: 14px 0; border-top: 1.5px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.vp-terms div { display: flex; gap: 10px; align-items: baseline; }
.vp-terms b { font: 800 18px var(--ui); }
.vp-terms [lang="sa"] { font: 400 18px var(--sa); color: var(--ink-muted); }
.vp-terms p { margin: 0; font: 500 15px/1.45 var(--ui); color: var(--ink-body); }
.vp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.vp-tab { padding: 8px 15px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px var(--ui); cursor: pointer; }
.vp-tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.vp-tr { margin: 0; }
.vp-tr blockquote { margin: 0; font: 400 19px/1.65 var(--read); color: var(--ink); text-wrap: pretty; }
.vp-tr figcaption { margin-top: 14px; font: 500 14px/1.5 var(--ui); color: var(--ink-muted); }
.vp-tr figcaption b { font-weight: 700; }
.vp-tr + .vp-tr { margin-top: 24px; }
.js .vp-tr + .vp-tr { margin-top: 0; }

/* 02 understand it */
.vp-prose { display: flex; flex-direction: column; gap: 14px; font: 400 18px/1.65 var(--read); color: var(--ink-body); max-width: 720px; text-wrap: pretty; }
.vp-prose p { margin: 0; }
.vp-yours { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; margin-bottom: 22px; }
.vp-yours > div { border-radius: 18px; background: #f5efe4; padding: 16px 20px; }
.vp-yours > .is-yours { background: var(--teal-tint); }
.vp-yours span { display: block; margin-bottom: 6px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.vp-yours .is-yours span { color: var(--teal); }
.vp-yours p { margin: 0; font: 600 16px/1.45 var(--ui); color: var(--ink); }
.vp-myths, .vp-rel, .vp-life, .vp-qs, .vp-steps { list-style: none; margin: 0; padding: 0; }
.vp-myths li { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 6px 28px; padding: 16px 0; border-top: 1.5px solid var(--line-2); }
.vp-myths s { font: italic 500 18px/1.45 var(--read); color: #a2432b; text-decoration-color: #e2b5a6; text-decoration-thickness: 1.5px; }
.vp-myths p { margin: 0; font: 400 17px/1.6 var(--read); color: var(--ink-body); text-wrap: pretty; }
.vp-rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 32px; }
.vp-rel a { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1.5px solid var(--line-2); color: var(--ink); }
.vp-rel a:hover { color: var(--saffron-text); }
.vp-rel-h { display: flex; gap: 10px; align-items: baseline; font: 700 17px/1.3 var(--ui); }
.vp-rel-h b { font: 800 16px var(--ui); color: var(--saffron-text); }
.vp-rel-t { font: 400 16px/1.55 var(--read); color: var(--ink-body); text-wrap: pretty; }

/* 03 live it */
.vp-life { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.vp-life li { border-radius: 18px; background: #f5efe4; padding: 18px 20px 20px; }
.vp-life .vp-label { display: block; margin-bottom: 8px; }
.vp-life p { margin: 0; font: 400 17px/1.55 var(--read); color: var(--ink); text-wrap: pretty; }
.vp-card.is-try { background: var(--saffron-tint); box-shadow: none; }
.vp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.vp-step { width: 100%; height: 100%; text-align: left; border: none; border-radius: 18px; background: #fffaf3; padding: 16px 18px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: background .2s; font: 400 17px/1.5 var(--read); color: var(--ink); }
.vp-step[aria-pressed="true"] { background: #fbf3ea; }
.vp-dot { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--saffron); color: var(--saffron-text); display: flex; align-items: center; justify-content: center; font: 800 13px var(--ui); }
.vp-dot::before { content: attr(data-n); }
.vp-step[aria-pressed="true"] .vp-dot { background: var(--saffron); color: #fff; }
.vp-step[aria-pressed="true"] .vp-dot::before { content: "✓"; }
.vp-try-hint { margin: 12px 0 0; font: 500 13px var(--ui); color: #8a5a3c; }
.vp-qs li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1.5px solid var(--line-2); }
.vp-qs span { font: 500 12px var(--mono); color: var(--saffron); }
.vp-qs p { margin: 0; font: italic 400 19px/1.5 var(--read); color: var(--ink); text-wrap: pretty; }
.vp-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.vp-kids { border-radius: 28px; background: var(--teal); color: #f3fbf9; padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.vp-kids:hover { color: #f3fbf9; background: #2a625d; }
.vp-kids .vp-label { color: #cfe6df; }
.vp-kids-t { font: 700 22px/1.3 var(--ui); letter-spacing: -.01em; }
.vp-kids b { font: 800 15px var(--ui); margin-top: auto; }
.vp-book { border-radius: 28px; background: var(--teal-tint); padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.vp-book p { margin: 0; font: 500 16px/1.55 var(--ui); color: var(--ink); text-wrap: pretty; }
.vp-book b { font-weight: 800; }
.vp-coming { border-radius: 28px; border: 1.5px dashed var(--line-3); padding: 26px clamp(22px, 4vw, 40px); }
.vp-coming p { margin: 8px 0 0; font: 400 17px/1.6 var(--read); color: var(--ink-body); }

/* 04 reference */
.vp-faq { border-top: 1.5px solid var(--line-2); }
.vp-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; cursor: pointer; font: 700 18px/1.35 var(--ui); color: var(--ink); }
.vp-faq summary::-webkit-details-marker { display: none; }
.vp-faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #f5efe4; display: flex; align-items: center; justify-content: center; font: 700 16px var(--ui); color: var(--saffron-text); }
.vp-faq[open] summary::after { content: "−"; }
.vp-faq p { margin: 0 0 20px; max-width: 680px; font: 400 17px/1.6 var(--read); color: var(--ink-body); text-wrap: pretty; }
#cite { padding-top: 28px; padding-bottom: 28px; }
#cite .vp-sec-head { margin-bottom: 12px; }
.vp-cite { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-radius: 16px; background: #f5efe4; padding: 14px 18px; font: 400 17px/1.5 var(--read); color: var(--ink); }
.vp-copy { padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--line-3); background: var(--card); font: 700 13px var(--ui); color: var(--ink); cursor: pointer; }

/* the right-hand column */
.vp-rail-card { background: var(--card); border-radius: 24px; box-shadow: 0 1px 0 var(--line); padding: 22px 24px; }
.vp-rail-card > .vp-label { display: block; margin-bottom: 10px; }
.vp-where-ch { display: block; font: 800 18px var(--ui); color: var(--saffron-text); margin-bottom: 12px; }
.vp-dots { display: grid; grid-template-columns: repeat(18, 1fr); gap: 3px; }
.vp-dots a { aspect-ratio: 1; border-radius: 3px; background: #e9e0d0; }
.vp-dots a:hover { background: #e0a27a; }
.vp-dots a[aria-current="page"] { background: var(--saffron); }
.vp-where-nav { display: flex; justify-content: space-between; margin-top: 14px; font: 700 14px var(--ui); }
.vp-where-nav a { color: var(--ink); }
.vp-where-nav a.is-prev { color: var(--ink-muted); }

/* previous, the chapter, next */
.vp-pn-wrap { margin-top: 56px; margin-bottom: 32px; }
.vp-pn { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; padding-top: 24px; border-top: 1.5px solid var(--line); }
.vp-pn a { border-radius: 20px; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.vp-pn b { font: 800 20px var(--ui); }
.vp-pn .vp-label { letter-spacing: .1em; color: var(--ink-muted); }
.vp-pn-prev { background: var(--card); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.vp-pn-prev:hover { color: var(--saffron-text); }
.vp-pn-all { align-items: center; justify-content: center; border: 1.5px dashed #e0cfb5; color: var(--saffron-text); }
.vp-pn-next { background: var(--ink); color: var(--paper); align-items: flex-end; }
.vp-pn-next:hover { color: var(--saffron-tint); }
.vp-pn-next .vp-label { color: #c9bba5; }
@media (max-width: 600px) { .vp-pn > span:empty { display: none; } }

/* ---------- my workbook (site/js/workbook.js): bookmarks, status, notes, highlights; stored in this browser ---------- */
.wb-open { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--line-3); background: transparent; font: 600 14px var(--ui); color: var(--ink); cursor: pointer; }
.wb-open:hover { border-color: var(--ink); }
.wb-count { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--saffron); color: #fff; font: 600 12px var(--mono); text-align: center; }
.wb-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 4px 0 22px; }
.wb-tools:empty { display: none; }
.wb-status { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.wb-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line-3); background: var(--card); color: var(--ink); font: 600 14px var(--ui); cursor: pointer; white-space: nowrap; }
.wb-btn:hover { border-color: var(--ink); }
.wb-btn.is-sm { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.wb-btn[aria-pressed="true"] { background: var(--teal-tint); border-color: var(--teal); color: var(--teal); }
.wb-bookmark[aria-pressed="true"] { background: var(--saffron-tint); border-color: var(--saffron); color: var(--saffron-text); }
.wb-btn.is-link { border-color: transparent; background: transparent; color: var(--saffron-text); text-decoration: underline; text-underline-offset: 3px; padding-inline: 4px; }
.wb-btn.is-danger { color: var(--lotus-text); }
.wb-btn.is-danger:hover { border-color: var(--lotus-text); }
.wb-ico { font-size: 17px; line-height: 1; }
.wb-notes { margin: 28px 0; }
.wb-notes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.wb-h { font: 800 20px var(--ui); letter-spacing: -.01em; }
.wb-saved { font: 500 12px var(--mono); color: var(--ink-faint); }
.wb-note { width: 100%; min-height: 120px; padding: 14px 16px; border: 1.5px solid var(--line-3); border-radius: 14px; background: #fff; font: 400 17px/1.6 var(--read); color: var(--ink); resize: vertical; }
.wb-note:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.wb-hint, .wb-small { margin: 8px 0 0; font: 400 13px/1.5 var(--ui); color: var(--ink-faint); }
mark.wb-hl { color: inherit; border-radius: 3px; padding: 0 1px; box-decoration-break: clone; -webkit-box-decoration-break: clone; cursor: pointer; }
mark.wb-hl.is-saffron { background: #f6d9b8; }
mark.wb-hl.is-teal { background: #cfe6dd; }
mark.wb-hl.is-lotus { background: var(--lotus); }
.wb-hl-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.wb-hl-list li { display: flex; gap: 8px; align-items: flex-start; font: 400 15px/1.5 var(--read); }
.wb-x { flex: none; width: 26px; height: 26px; border-radius: 99px; border: 1px solid var(--line-3); background: var(--card); color: var(--ink-muted); cursor: pointer; line-height: 1; }
.wb-x:hover { color: var(--lotus-text); border-color: var(--lotus-text); }
.wb-pop { position: absolute; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 99px; background: var(--ink); box-shadow: 0 6px 20px rgba(42,36,32,.25); }
.wb-pop-label { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper); padding-right: 4px; }
.wb-swatch { width: 26px; height: 26px; border-radius: 99px; border: 2px solid var(--paper); cursor: pointer; }
.wb-swatch.is-saffron { background: #f6d9b8; } .wb-swatch.is-teal { background: #cfe6dd; } .wb-swatch.is-lotus { background: var(--lotus); }
.wb-pop .wb-btn { background: var(--paper); }
.wb-pop-remove { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px 2px 4px; border: 0; background: transparent; color: var(--paper); font: 600 13px var(--ui); cursor: pointer; }
.wb-pop-remove span { width: 20px; height: 20px; border-radius: 50%; background: rgba(247, 242, 233, .18); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; }
.wb-pop-remove:hover span, .wb-pop-remove:focus-visible span { background: #a2432b; }
.wb-pop-remove:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-radius: 99px; }
.wb-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(42,36,32,.32); }
.wb-panel { position: fixed; z-index: 51; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--paper); box-shadow: -10px 0 40px rgba(42,36,32,.18); transform: translateX(100%); transition: transform .22s ease; }
.wb-panel.is-open { transform: none; }
@media (prefers-reduced-motion: reduce) { .wb-panel { transition: none; } }
html.wb-locked { overflow: hidden; }
.wb-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 12px; }
.wb-title { font: 800 26px var(--ui); letter-spacing: -.02em; }
.wb-close { width: 40px; height: 40px; border-radius: 99px; border: 1.5px solid var(--line-3); background: transparent; font-size: 22px; cursor: pointer; }
.wb-search { margin: 0 22px; padding: 10px 14px; border: 1.5px solid var(--line-3); border-radius: 99px; background: #fff; font: 400 15px var(--ui); }
.wb-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 22px; border-bottom: 1.5px solid var(--line); }
.wb-tabs button { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-3); background: transparent; font: 600 13px var(--ui); color: var(--ink-muted); cursor: pointer; }
.wb-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.wb-scroll { flex: 1; overflow-y: auto; padding: 8px 22px 16px; }
.wb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wb-item { padding: 16px 18px; border-radius: 16px; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.wb-item-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.wb-ref { font: 800 16px var(--ui); color: var(--ink); }
.wb-chap { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.wb-star { color: var(--saffron); }
.wb-pill { padding: 2px 9px; border-radius: 99px; background: var(--teal-tint); color: var(--teal); font: 600 12px var(--ui); }
.wb-quote { margin: 8px 0 0; font: italic 400 15px/1.5 var(--read); color: var(--ink-muted); }
.wb-note-text { margin: 8px 0 0; padding-left: 12px; border-left: 3px solid var(--teal-line); font: 400 15px/1.55 var(--read); color: var(--ink-body); white-space: pre-wrap; }
.wb-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wb-empty { padding: 28px 4px; color: var(--ink-muted); }
.wb-empty p { margin: 0 0 6px; }
.wb-foot { padding: 14px 22px 20px; border-top: 1.5px solid var(--line); }
.wb-foot .wb-small { margin: 0; }
.wb-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wb-btn.is-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.wb-btn.is-primary:hover { background: #255a55; border-color: #255a55; }
.wb-account { margin: 10px 0 2px; }
.wb-where { margin: 0; font: 400 13px/1.5 var(--ui); color: var(--ink-muted); }
.wb-where.is-ok::before { content: "● "; color: var(--teal); }
.wb-where.is-warn, .wb-where-note.is-warn { color: #8a5a00; }
.wb-where.is-warn::before { content: "● "; color: #d79b2b; }
.wb-where-note { margin: 8px 0 0; font: 400 13px/1.5 var(--ui); color: var(--ink-muted); }
.wb-inline { padding: 0; border: 0; background: none; color: var(--saffron-text); font: 600 13px var(--ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wb-unsent { padding: 2px 8px; border-radius: 99px; background: #fff1c9; color: #6e4d00; font: 600 11px var(--ui); }
.wb-empty-h { font: 700 17px var(--ui); color: var(--ink); }
.wb-btn.is-danger-solid { background: var(--lotus-text); border-color: var(--lotus-text); color: #fff; }
.wb-toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: min(520px, calc(100vw - 32px)); padding: 14px 20px; border-radius: 16px; background: var(--ink); color: var(--paper); font: 500 15px/1.45 var(--ui); box-shadow: 0 10px 30px rgba(42,36,32,.3); }
.wb-ask-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(42,36,32,.4); }
.wb-ask { width: min(420px, 100%); padding: 24px; border-radius: 20px; background: var(--card); box-shadow: 0 20px 50px rgba(42,36,32,.3); }
.wb-ask-title { font: 800 21px/1.2 var(--ui); letter-spacing: -.01em; }
.wb-ask-text { margin: 10px 0 0; font: 400 15px/1.55 var(--ui); color: var(--ink-body); }
.wb-ask-row { justify-content: flex-end; margin-top: 20px; }
.wb-toast { left: 24px; transform: none; }
@media (max-width: 600px) { .wb-toast { left: 16px; right: 16px; bottom: auto; top: 16px; width: auto; max-width: none; } }
.wb-title:focus { outline: none; }
.wb-panel { width: min(540px, 100vw); }
.wb-place { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 0 22px 12px; border-bottom: 1.5px solid var(--line); }
.wb-tabs { border-bottom: 0; }
.wb-place-l { font: 600 13px var(--ui); color: var(--ink-muted); }
.wb-select { min-height: 40px; padding: 6px 12px; border: 1.5px solid var(--line-3); border-radius: 12px; background: #fff; font: 500 14px var(--ui); color: var(--ink); }
.wb-select:disabled { color: var(--ink-faint); background: var(--paper); }
@media (max-width: 480px) { .wb-place { grid-template-columns: auto minmax(0, 1fr); } }

/* ---------- my workbook on the verse page, in the designer's layout (2026-12-02) ---------- */
.vp-hero .wb-tools { margin: 6px 0 0; gap: 8px; }
.vp-hero .wb-bookmark { min-height: 0; padding: 10px 17px; border-color: var(--line-3); font: 700 15px var(--ui); }
.vp-hero .wb-bookmark[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.vp-hero .wb-status { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 99px; background: #ede5d6; gap: 2px; }
.vp-hero .wb-status .wb-btn { min-height: 0; padding: 8px 14px; border: none; background: transparent; color: var(--ink-muted); font: 600 14px var(--ui); }
.vp-hero .wb-status .wb-btn[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(42, 36, 32, .15); }
.vp-hero .wb-btn.is-link { min-height: 0; padding: 0; margin-left: 6px; font: 700 14px var(--ui); text-underline-offset: 4px; }
.vp-rail .wb-notes, .wb-sheet .wb-notes { margin: 0; padding: 20px 22px 22px; }
.vp-rail .wb-notes-head, .wb-sheet .wb-notes-head { margin-bottom: 10px; }
.vp-rail .wb-notes-head .wb-h, .wb-sheet .wb-notes-head .wb-h { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-text); }
.vp-rail .wb-saved, .wb-sheet .wb-saved { font-size: 11px; color: var(--teal); }
.vp-rail .wb-note, .wb-sheet .wb-note { min-height: 96px; height: 96px; padding: 12px 14px; background: #fffefb; font: 400 16px/1.5 var(--read); }
.wb-hl-head { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 8px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.wb-hl-head span + span { font-weight: 600; letter-spacing: 0; }
.vp-rail .wb-hint, .wb-sheet .wb-hint { margin: 0; border: 1.5px dashed #e0cfb5; border-radius: 12px; padding: 10px 12px; font: 500 13px/1.45 var(--ui); color: var(--ink-muted); }
.vp-rail .wb-hl-list, .wb-sheet .wb-hl-list { margin: 0; }
.vp-rail .wb-hl-list li, .wb-sheet .wb-hl-list li { font-size: 14px; line-height: 1.45; }
.vp-rail .wb-hl-list mark, .wb-sheet .wb-hl-list mark { flex: 1; padding: 4px 8px; border-radius: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vp-rail .wb-where-note, .wb-sheet .wb-where-note { font: 500 12px/1.5 var(--ui); color: #8a7e72; }
.wb-open-full { width: 100%; justify-content: center; margin-top: 14px; min-height: 0; padding: 10px 14px; border-color: var(--ink); background: transparent; font: 700 14px var(--ui); }
.wb-open-full:hover { background: var(--ink); color: var(--paper); }
.wb-fab { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: flex; align-items: center; gap: 4px; padding: 13px 20px; border-radius: 99px; border: none; background: var(--ink); color: var(--paper); font: 700 15px var(--ui); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .55); cursor: pointer; }
@media (min-width: 1100px) { .wb-fab { display: none; } }
.wb-locked .wb-fab { display: none; }
.wb-pop:has(.wb-pop-remove) { padding: 6px 10px 6px 7px; }

/* ---------------------------------------------------------------- Home, completed 2026-12-02 (tools/home_art.py pictures) */
/* Every picture here has white paper and blends with `multiply` (.painting), so it melts into paper, card or tint. */
/* a box with the page colour: multiply can't see the page background (it sits on the canvas), only a real box's */
.spot.has-pic, .start-pic { background: var(--paper); }
.spot.has-pic { border: 0; padding: 0; border-radius: 0; display: block; }
.spot.has-pic .painting { aspect-ratio: 4/3; height: auto; }
.card > .painting, .card > picture > .painting { aspect-ratio: 3/2; }
.peek > .painting, .peek > picture > .painting { aspect-ratio: 16/10; }
.card-hero > .painting, .card-hero > picture > .painting { display: block; }

.start-here { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 56px; align-items: center; }
.start-pic .painting { aspect-ratio: 3/2; }
.start-text h2 { margin: 0 0 16px; }
.start-text .serif { margin: 0 0 24px; font-size: 18px; line-height: 1.65; color: var(--ink-body); max-width: 34em; }
.start-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.start-link { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 16px; background: var(--card); box-shadow: 0 1px 0 var(--line); color: var(--ink); min-height: 44px; transition: transform .2s; }
.start-link b { font: 700 16px var(--ui); }
.start-link b::after { content: " →"; color: var(--saffron-text); }
.start-link span { font: 400 14px/1.4 var(--ui); color: var(--ink-muted); }
a.start-link:hover { transform: translateY(-2px); color: var(--ink); }

.famous { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.fv { display: flex; flex-direction: column; border-radius: 24px; background: var(--card); overflow: hidden; color: var(--ink); box-shadow: 0 1px 0 var(--line); transition: transform .2s; }
a.fv:hover { transform: translateY(-3px); color: var(--ink); }
.fv .painting { aspect-ratio: 3/2; }
.fv-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fv-tag { font: 700 14px var(--ui); color: var(--ink-muted); }
.fv-quote { margin: 0; font: italic 400 18px/1.5 var(--read); color: var(--ink-body); flex: 1; }
.fv-src { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }

.notebook { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 48px; align-items: center; border-radius: 36px; background: var(--saffron-tint); padding: clamp(28px, 4vw, 56px); }
.nb-text h2 { margin: 0 0 12px; }
.nb-points { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.nb-points li { background: var(--card); border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.nb-points b { font: 700 15px var(--ui); color: var(--saffron-text); }
.nb-points span { font: 400 14px/1.4 var(--ui); color: var(--ink-body); }
.nb-privacy { margin: 16px 0 0; font: 500 14px/1.5 var(--ui); color: var(--ink-muted); }
.nb-pic .painting { aspect-ratio: 3/2; }
html:not(.js) [data-open-workbook] { display: none; }

.book-hero .fan { position: relative; display: grid; place-items: center; }
.book-hero .fan > * { grid-area: 1 / 1; }
.book-hero .fan .page { width: min(68%, 230px); border-radius: 6px; box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .5); background: #fff; }
.book-hero .fan .page.is-back { transform: translateX(-38%) rotate(-9deg); }
.book-hero .fan .page.is-mid { transform: translateX(36%) rotate(7deg); }
.book-hero .fan .cover { position: relative; }
@media (prefers-reduced-motion: reduce) { a.fv:hover, a.start-link:hover { transform: none; } }

/* Home: a thin "buy the book" card under the feeling chips (author, 2026-12-02: "add a thin buy book card..").
   Wide screens: left column, under the chips. Phones: after the verse card, so it never sits between the chips and their answer. */
.buy-thin { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border-radius: 18px; background: var(--lotus); max-width: 520px; }
.buy-thin img { width: 40px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 6px 12px -8px rgba(80, 30, 20, .55); flex: none; }
.buy-thin div { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.buy-thin b { font: 800 16px/1.2 var(--ui); color: var(--ink); }
.buy-thin span { font: 500 13px/1.35 var(--ui); color: var(--lotus-text); }
.buy-thin .btn { flex: none; min-height: 44px; padding: 10px 18px; font-size: 14px; }
@media (min-width: 944px) {
  .hero.split { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; row-gap: 0; }
  .hero.split > div:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 340px) { .buy-thin { flex-wrap: wrap; } .buy-thin .btn { width: 100%; } }

/* @book: copied into book.css by tools/make_book_css.py */
/* ---------------------------------------------------------------- phones: the book bar at the bottom of every page
   As on jatajoot.com (author, 2026-12-02: "on mobile add bottom bar as in on jatajoot folder.."): the cover pokes out
   above the bar, Preview opens Home's book, Buy goes to the buy section. The in-page thin card gives way to it. */
.bk-bar { display: none; }
@media (max-width: 760px) {
  .bk-bar { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: rgba(247, 242, 233, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(42, 36, 32, .08); }
  .bk-bar-cover { flex: none; width: 36px; margin: -20px 0 -2px; transform: rotate(-3deg); border-radius: 2px 4px 4px 2px; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(162, 67, 43, .18), 0 6px 14px -4px rgba(80, 30, 20, .45); }
  .bk-bar-cover img { display: block; width: 100%; height: auto; }
  .bk-bar-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; flex: 1; }
  .bk-bar-t b { font: 800 15px/1.2 var(--ui); letter-spacing: -.01em; color: var(--ink); }
  .bk-bar-t span { font: 500 12px/1.3 var(--ui); color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bk-bar a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 99px; font: 700 14px var(--ui); text-decoration: none; }
  .bk-bar a.bk-prev { color: var(--ink); border: 1.5px solid var(--line-3); background: var(--card); }
  .bk-bar a.bk-bbuy { background: var(--ink); color: var(--paper); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .wb-fab { bottom: calc(76px + env(safe-area-inset-bottom)); }
  html.wb-locked .bk-bar { display: none; }
}


/* ---------------------------------------------------------------- Home: the page-turning book in the book card
   As on jatajoot.com's home page (author, 2026-12-02: "make the book in bigger card flipable same as in jatajoot home page
   preview book"); the rules below are jatajoot's, with the night-sky colours swapped for the lotus card. site/js/flipbook.js. */
.flip-wrap { position: relative; width: 100%; }
.flip-stage { position: relative; display: flex; justify-content: center; padding: 10px 0 0; }
.flip-shift { width: 100%; max-width: min(1240px, calc(78vh * 4 / 3)); transition: transform .9s cubic-bezier(.2, .7, .2, 1);
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .7)); }
.flipbook { position: relative; margin: 0 auto; cursor: pointer; }
.flipbook .page { background: #f3eee4; overflow: hidden; cursor: pointer; }
.flipbook .page img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.flipbook .page.cover, .flipbook .page.back { background: var(--card); }
.flipbook .page.endpaper, .flipbook .page.blank { background: transparent; }
.flipbook .page .fill { position: absolute; inset: 0; }
.flipbook .page.endpaper .fill { background: #1b1f4a radial-gradient(circle at 50% 45%, #2b2f6e, #141638); }
.flipbook .page.blank .fill { background: #f3eee4; }
/* a page with a picture is transparent behind it: the picture bows into the spine (its mask), and no paper shows in
   the wedges above and below the fold (author, 2026-11-27: "wear white bg on the seam top and bottom curves") */
.flipbook .page.content { background: transparent; }
/* the soft shadow of the binding on resting pages: the paper darkens as it curves down into the spine */
.flipbook .page.--left::after, .flipbook .page.--right::after { content: ""; position: absolute; top: 0; bottom: 0; width: 20%; pointer-events: none; }
.flipbook .page.--left::after { right: 0; background: linear-gradient(to left, rgba(45, 28, 8, .3) 0%, rgba(45, 28, 8, .2) 2%, rgba(45, 28, 8, .11) 6%, rgba(45, 28, 8, .05) 12%, rgba(45, 28, 8, .015) 20%, rgba(45, 28, 8, 0) 100%); }
.flipbook .page.--right::after { left: 0; background: linear-gradient(to right, rgba(45, 28, 8, .26) 0%, rgba(45, 28, 8, .16) 2%, rgba(45, 28, 8, .08) 6%, rgba(45, 28, 8, .03) 12%, rgba(45, 28, 8, 0) 100%); }
.flipbook .page.cover::after, .flipbook .page.back::after { display: none; }
/* the stack of page edges along the outer sides (sideways only, so no notch opens at the fold) */
.flipbook .page.--left:not(.cover):not(.back) { box-shadow: -1px 0 0 #d6c9ac, -2px 0 0 #f1e8d4, -3px 0 0 #cdbf9f, -4px 0 0 #ece2cc, -5px 0 0 #c7b896, -6px 0 0 #e6dbc2; }
.flipbook .page.--right:not(.cover):not(.back) { box-shadow: 1px 0 0 #d6c9ac, 2px 0 0 #f1e8d4, 3px 0 0 #cdbf9f, 4px 0 0 #ece2cc, 5px 0 0 #c7b896, 6px 0 0 #e6dbc2; }
.flipbook .page.--right:not(.cover):not(.back), .flip-stage.portrait .flipbook .page:not(.cover):not(.back) { clip-path: inset(0 -8px 0 0); }
.flip-stage:not(.portrait) .flipbook .page.--left:not(.cover):not(.back) { clip-path: inset(0 0 0 -8px); }
/* an open book's pages bow: the top edge dips toward the spine and the bottom edge rises, outer corners square */
.flipbook .page.--left:not(.cover):not(.back) img, .flipbook .page.--left:not(.cover):not(.back) .fill, .flipbook .page.--left:not(.cover):not(.back)::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0C55 0 84 .35 100 1.7V98.3C84 99.65 55 100 0 100Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0C55 0 84 .35 100 1.7V98.3C84 99.65 55 100 0 100Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.flipbook .page.--right:not(.cover):not(.back) img, .flipbook .page.--right:not(.cover):not(.back) .fill, .flipbook .page.--right:not(.cover):not(.back)::after,
.flip-stage.portrait .flipbook .page:not(.cover):not(.back) img, .flip-stage.portrait .flipbook .page:not(.cover):not(.back) .fill, .flip-stage.portrait .flipbook .page:not(.cover):not(.back)::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100 0C45 0 16 .35 0 1.7V98.3C16 99.65 45 100 100 100Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100 0C45 0 16 .35 0 1.7V98.3C16 99.65 45 100 100 100Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
/* the closed cover: a faint gold rim, the block of page edges along its open side, and a warm glow */
.flipbook .page.cover { box-shadow: 0 0 0 1px rgba(162, 67, 43, .16), 2px 0 0 #efe6d2, 3px 1px 0 #cdbf9f, 5px 1px 0 #ece2cc, 6px 2px 0 #c7b896,
  8px 2px 0 #e6dbc2, 9px 3px 0 #bfae8b, 0 22px 40px -22px rgba(80, 30, 20, .55); }
.flipbook .page.back { box-shadow: 0 0 0 1px rgba(162, 67, 43, .16), -2px 0 0 #efe6d2, -3px 1px 0 #cdbf9f, -5px 1px 0 #ece2cc, -6px 2px 0 #c7b896,
  -8px 2px 0 #e6dbc2, -9px 3px 0 #bfae8b, 0 22px 40px -22px rgba(80, 30, 20, .55); }
.flip-shift, .flip-peek { position: relative; z-index: 1; }
/* up and down is the page's scroll, sideways is the book's */
.flipbook, .flipbook .stf__block { touch-action: pan-y; }
/* until the library has laid the book out, its pages stay hidden and the space is kept */
.flipbook:not(.ready) > .page { display: none; }
.flipbook:not(.ready) { aspect-ratio: 4 / 3; max-height: 930px; }
.flip-stage.portrait .flipbook:not(.ready) { aspect-ratio: 2 / 3; }
.flipbook img:not([src]) { visibility: hidden; }
/* phones: one page at a time, the facing page at full size from the spine out past the left edge of the screen */
.flip-peek { display: none; }
.flip-stage.portrait { align-items: flex-start; }
.flip-stage.portrait.peeking { justify-content: flex-end; }
.flip-stage.portrait .flip-shift { width: calc(100% - 12vw); margin-left: 0; }
.flip-stage.portrait .flipbook .page:not(.cover):not(.back)::after { left: 0; right: auto; width: 20%;
  background: linear-gradient(to right, rgba(45, 28, 8, .3) 0%, rgba(45, 28, 8, .18) 2%, rgba(45, 28, 8, .09) 6%, rgba(45, 28, 8, .03) 12%, rgba(45, 28, 8, 0) 100%); }
.flip-stage.portrait .flipbook .page:not(.cover):not(.back) { box-shadow: 1px 0 0 #d6c9ac, 2px 0 0 #f1e8d4, 3px 0 0 #cdbf9f, 4px 0 0 #ece2cc, 5px 0 0 #c7b896; }
.flip-stage.portrait .flip-peek.on { display: block; position: absolute; z-index: 0; background: #f3eee4 right top no-repeat; cursor: pointer; touch-action: pan-y;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0C55 0 84 .35 100 1.7V98.3C84 99.65 55 100 0 100Z'/%3E%3C/svg%3E") right top no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0C55 0 84 .35 100 1.7V98.3C84 99.65 55 100 0 100Z'/%3E%3C/svg%3E") right top no-repeat; }
.flip-stage.portrait .flip-peek.on::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(30, 18, 4, .3) 0, rgba(30, 18, 4, .14) 8px, rgba(30, 18, 4, .05) 18px, rgba(30, 18, 4, 0) 30px),
    linear-gradient(to left, rgba(45, 28, 8, .3) 0, rgba(45, 28, 8, .2) 6px, rgba(45, 28, 8, .11) 18px, rgba(45, 28, 8, .05) 36px, rgba(45, 28, 8, .015) 60px, rgba(45, 28, 8, 0) 90px); }
/* the controls under the book */
.flip-controls { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.flip-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(162, 67, 43, .35); background: var(--card); color: var(--lotus-text); font: 700 22px/1 var(--ui); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 3px; }
.flip-arrow:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.flip-arrow:disabled { opacity: .35; cursor: default; }
.flip-count { min-width: 9.5em; text-align: center; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lotus-text); }
.flip-caption { position: relative; z-index: 1; text-align: center; font: italic 400 18px/1.3 var(--read); color: var(--ink-body); margin: 10px 0 0; min-height: 1.3em; }
/* without JavaScript: the plain cover, no controls */
.flip-nojs { display: block; margin: 0 auto; }
.js .flip-nojs { display: none; }
html:not(.js) .flip-stage, html:not(.js) .flip-controls, html:not(.js) .flip-caption { display: none; }
/* the card: a wider book side, so an open spread has room */
.book-hero .cover-side.has-flip { padding: 40px 28px 32px; display: block; }
@media (min-width: 1000px) { .book-hero:has(.has-flip) { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
@media (max-width: 699px) { .book-hero .cover-side.has-flip { padding: 28px 0 24px; } }

/* @end-book */
/* ---------------------------------------------------------------- Home: the kids cards as a fan
   (author, 2026-12-02: "can we make it fan card which shows (comes on top when i hover on that card ) to reduce vertical
   height"). Five cards overlap in one row, tilted like a hand of cards; the one under the pointer (or keyboard focus)
   straightens, lifts and comes to the top. Phones show the middle three. */
.panel-teal .peeks { display: flex; justify-content: center; align-items: flex-start; gap: 0; padding: 26px 0 30px; }
.panel-teal .peek { flex: none; width: 190px; margin: 0 0 0 -134px; position: relative; transform-origin: 50% 120%;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.panel-teal .peek:first-child { margin-left: 0; }
.panel-teal .peek:nth-child(1) { transform: translateY(22px) rotate(-12deg); z-index: 1; }
.panel-teal .peek:nth-child(2) { transform: translateY(7px) rotate(-6deg); z-index: 2; margin-top: 0; }
.panel-teal .peek:nth-child(3) { transform: none; z-index: 3; }
.panel-teal .peek:nth-child(4) { transform: translateY(7px) rotate(6deg); z-index: 2; }
.panel-teal .peek:nth-child(5) { transform: translateY(22px) rotate(12deg); z-index: 1; }
.panel-teal a.peek:hover, .panel-teal a.peek:focus-visible { z-index: 10; transform: translateY(-16px) rotate(0) scale(1.04);
  box-shadow: 0 26px 40px -18px rgba(0, 0, 0, .6); }
.panel-teal .peek .card-title { font-size: 17px; }
@media (max-width: 600px) {
  .panel-teal .peek:nth-child(1), .panel-teal .peek:nth-child(5) { display: none; }
  .panel-teal .peek { width: min(44vw, 180px); margin-left: calc(min(44vw, 180px) * -.66); }
  .panel-teal .peek:nth-child(2) { margin-left: 0; transform: translateY(6px) rotate(-4deg); }
  .panel-teal .peek:nth-child(4) { transform: translateY(6px) rotate(4deg); }
  .panel-teal .peek .card-body { padding: 12px 14px 16px; }
  .panel-teal .peek .card-title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .panel-teal a.peek:hover, .panel-teal a.peek:focus-visible { transform: none !important; } }

/* Home hero, wide screens: the buy card's bottom lines up with the verse card's bottom (author, 2026-12-02: "can we make
   buy book and right block bottom aligned"). The buy card sits at the foot of the left column; the verse card stretches
   to the full height, so whichever side is taller, both end on the same line. */
@media (min-width: 944px) {
  .hero.split { align-items: stretch; }
  .hero.split > div:nth-child(2) { display: flex; flex-direction: column; }
  .js .hero.split > div:nth-child(2) > .is-on { flex: 1; display: flex; flex-direction: column; }
  .js .hero.split > div:nth-child(2) > .is-on > .verse-card { flex: 1; }
}

/* My notes card on verse pages: starts small, "+" or the note box opens it, "−" closes it */
.wb-notes-head .wb-saved { margin-left: auto; }
.wb-notes-head { align-items: center; }
.wb-notes-toggle { flex: none; width: 34px; height: 34px; border: 0; border-radius: 99px; background: var(--paper-2, #efe9dd);
  color: var(--ink-body); font: 700 17px/1 var(--ui); cursor: pointer; display: grid; place-items: center; }
.wb-notes-toggle:hover { background: var(--line-2, #e4dccd); color: var(--ink); }
.wb-notes-toggle:focus-visible, .wb-note-start:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wb-hl-chip { display: inline-block; margin: 2px 0 12px; padding: 4px 12px; border-radius: 99px; background: var(--teal-tint);
  color: var(--teal); font: 700 14px var(--ui); }
.wb-note-start { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 1.5px dashed #d9d2c3; border-radius: 14px;
  background: transparent; cursor: pointer; color: inherit; }
.wb-note-start:hover { border-color: var(--teal); background: #fffefb; }
.wb-note-start-h { display: block; font: 800 17px var(--ui); color: var(--ink); }
.wb-note-start-t { display: block; margin-top: 4px; font: italic 400 15px/1.5 var(--read); color: var(--ink-muted); }
.wb-note-start-t.is-note { font-style: normal; color: var(--ink-body); white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Phones and tablets, verse pages: a teal "My notes" pill floats above the page, on the thumb side, and above the phone
   book bar; it opens this verse's notes in a bottom sheet (designer's "1b: Notes floats above the book bar"). The bar stays
   the book's alone. site/js/workbook.js makes the pill and moves the notes card into the sheet and back. */
.wb-fab { gap: 7px; padding: 12px 14px 12px 20px; background: #3f7a70; color: #fff; font: 700 16px var(--ui);
  box-shadow: 0 10px 24px -10px rgba(31, 74, 67, .6), 0 2px 6px rgba(31, 74, 67, .18); }
.wb-fab:hover { background: var(--teal); }
.wb-fab:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.wb-fab > span:first-child { font-size: 15px; }
.wb-fab-n { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: #fff; color: #2f6f69; font: 800 13px/24px var(--ui); text-align: center; }
.wb-fab-n[hidden] { display: none; }
.wb-sheet-on .wb-fab { display: none; }
.wb-sheet, .wb-sheet-scrim { display: none; }
@media (max-width: 1099px) {
  .wb-sheet-scrim { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(42, 36, 32, .38); opacity: 0; transition: opacity .25s; }
  .wb-sheet-scrim.is-open { opacity: 1; }
  .wb-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-width: 640px; margin: 0 auto;
    max-height: 86vh; max-height: 86dvh; overflow: auto; overscroll-behavior: contain; background: var(--card); border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 40px -10px rgba(42, 36, 32, .35); padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
  .wb-sheet.is-open { transform: none; }
  .wb-sheet[hidden], .wb-sheet-scrim[hidden] { display: none; }
  .wb-sheet-handle { width: 40px; height: 5px; margin: 10px auto 0; border-radius: 99px; background: var(--line-3); }
  .wb-sheet .wb-notes { margin: 0; padding: 12px 20px 22px; border-radius: 0; box-shadow: none; background: none; }
  .wb-sheet .wb-note { min-height: 150px; height: 150px; font-size: 16px; }
  html.wb-sheet-on { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .wb-sheet, .wb-sheet-scrim { transition: none; } }

/* My notes: the highlights' count and previous / next, which scroll to each highlight in the text */
.wb-hl-nav { display: flex; align-items: center; gap: 6px; margin: 2px 0 12px; }
.wb-notes:not(.is-closed) .wb-hl-nav { margin: 14px 0 0; }
.wb-hl-nav .wb-hl-chip { margin: 0 4px 0 0; }
.wb-hl-step { flex: none; width: 30px; height: 30px; border-radius: 99px; border: 1.5px solid var(--teal-line); background: transparent;
  color: var(--teal); font: 700 18px/1 var(--ui); cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.wb-hl-step:hover { background: var(--teal-tint); }
.wb-hl-step:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wb-notes:not(.is-closed) .wb-hint { margin-top: 14px; }
mark.wb-hl.is-found { animation: wb-found 1.4s ease-out; }
@keyframes wb-found { 0%, 35% { box-shadow: 0 0 0 3px var(--teal-line); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { mark.wb-hl.is-found { animation: none; outline: 2px solid var(--teal-line); } }

/* Verse pages: the thin book card between "Where you are" and "My notes"; phones have the book bar instead */
.vp-rail .vp-buy { max-width: none; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px; }
.vp-buy img { width: 40px; height: auto; margin: -32px 0 -4px 2px; transform: rotate(-4deg); border-radius: 2px 4px 4px 2px;
  box-shadow: 0 0 0 1px rgba(162, 67, 43, .18), 0 8px 16px -6px rgba(80, 30, 20, .5); }  /* pokes out of the card, as on the phone bar */
.vp-rail .vp-buy { margin-top: 20px; }
.vp-buy b { font-size: 15px; }
.vp-buy span { font-size: 12.5px; }
.vp-buy .btn { min-height: 38px; padding: 8px 18px; }
@media (max-width: 760px) { .vp-rail .vp-buy { display: none; } }
/* the arrows sit at the right edge, so "3 highlights" turning into "1 of 3" never moves them (author, 2026-12-03:
   "arrow position changes based on number,, keep the position fixed") */
.wb-hl-nav .wb-hl-chip { font-variant-numeric: tabular-nums; }
.wb-hl-nav .wb-hl-step:first-of-type { margin-left: auto; }

/* My notes: "Show ⌄ / Hide ⌃" instead of + and −, and Delete note under the note box */
.wb-notes-fold { flex: none; display: inline-flex; align-items: center; gap: 3px; min-height: 32px; padding: 0 9px 0 13px; border: 0; border-radius: 99px;
  background: #efe9dd; color: var(--ink-body); font: 700 13px var(--ui); cursor: pointer; }
.wb-notes-fold:hover { background: #e7dfcf; color: var(--ink); }
.wb-notes-fold:focus-visible, .wb-note-del:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wb-chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.wb-notes-fold.is-open .wb-chev { transform: rotate(180deg); }
.wb-note-tools { display: flex; justify-content: flex-end; margin-top: 6px; min-height: 0; }
.wb-note-del { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border: 0; border-radius: 8px; background: none;
  color: var(--lotus-text); font: 600 13px var(--ui); cursor: pointer; }
.wb-note-del:hover { background: var(--lotus); }
.wb-note-del[hidden] { display: none; }
.wb-ico-trash { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wb-ask-wrap { z-index: 70; }  /* above the phone notes sheet */
@media (prefers-reduced-motion: reduce) { .wb-chev { transition: none; } }

/* My notes: Expand opens the note in a big modal for longer writing */
.wb-note-tools { justify-content: space-between; align-items: center; }
.wb-note-big { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border: 0; border-radius: 8px; background: none;
  color: var(--teal); font: 600 13px var(--ui); cursor: pointer; }
.wb-note-big:hover { background: var(--teal-tint); }
.wb-note-big:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wb-ico-exp { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.wb-big-on { overflow: hidden; }
.wb-big-wrap { position: fixed; inset: 0; z-index: 66; display: grid; place-items: center; padding: 24px; background: rgba(42, 36, 32, .45); }
.wb-big { width: min(760px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 20px;
  border-radius: 24px; background: var(--card); box-shadow: 0 30px 80px -20px rgba(42, 36, 32, .5); }
.wb-big-head { display: flex; align-items: center; gap: 12px; }
.wb-big-head .wb-h { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-text); }
.wb-big-head .wb-saved { margin-left: auto; font-size: 11px; color: var(--teal); }
.wb-big-verse { margin: 0; padding-left: 12px; border-left: 3px solid var(--teal-line); font: italic 400 16px/1.5 var(--read); color: var(--ink-muted); }
.wb-big-note { flex: 1; width: 100%; min-height: 50vh; padding: 16px 18px; border: 1.5px solid var(--line-3); border-radius: 16px; background: #fffefb;
  font: 400 18px/1.65 var(--read); color: var(--ink); resize: none; }
.wb-big-note:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.wb-big-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wb-big-count { font: 500 12px var(--ui); color: var(--ink-faint); }
.wb-big-done { min-width: 110px; justify-content: center; }
@media (max-width: 760px) {  /* phones: the whole screen */
  .wb-big-wrap { padding: 0; place-items: stretch; }
  .wb-big { width: 100%; max-height: none; height: 100%; height: 100dvh; border-radius: 0; padding: calc(14px + env(safe-area-inset-top)) 18px calc(14px + env(safe-area-inset-bottom)); }
  .wb-big-note { min-height: 0; font-size: 17px; }
}

/* @book: copied into book.css by tools/make_book_css.py */
/* ---------------------------------------------------------------- the floating book card, bottom right (tablets, desktop)
   (author, 2026-12-03: "move to right.. it's fine workbook open will rmeoe that card"): it hides while the workbook
   panel, the notes sheet or the big note is open; on verse pages at tablet widths it sits above the My notes pill.
   Folded: a pink pill with the cover poking out. Open: the pill is the card's pink top, with a line about the book (on
   verse pages, the book chapter the verse is in), and Preview and Buy below on white. site/js/gita.js. */
.bk-float { display: none; }
@media (min-width: 761px) {
  .js .bk-float { display: block; position: fixed; right: 20px; bottom: 20px; z-index: 35; width: 236px; transition: opacity .2s, transform .2s; }
  .bk-float.is-away { opacity: 0; transform: translateY(12px); pointer-events: none; }
  html.wb-locked .bk-float, html.bk-open .bk-float, html.wb-big-on .bk-float, html.wb-sheet-on .bk-float { display: none; }
  body:has(.wb-fab) .bk-float { bottom: 84px; }
  .bk-float-cover { position: absolute; left: 14px; top: -16px; z-index: 2; width: 46px; transform: rotate(-5deg); border-radius: 2px 4px 4px 2px; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(162, 67, 43, .18), 0 8px 16px -6px rgba(80, 30, 20, .5); pointer-events: none; transition: width .2s, top .2s; }
  .bk-float-cover img { display: block; width: 100%; height: auto; }
  .bk-float-pill { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; min-height: 58px; padding: 10px 18px 10px 76px;
    border: 0; border-radius: 99px; background: var(--lotus); color: var(--ink); text-align: left; cursor: pointer;
    box-shadow: 0 10px 26px -12px rgba(80, 30, 20, .45), 0 0 0 1px rgba(162, 67, 43, .1); }
  .bk-float-pill:hover { background: #f1d3c8; }
  .bk-float-pill:focus-visible, .bk-float-fold:focus-visible, .bk-float-acts a:focus-visible { outline: 2px solid var(--lotus-text); outline-offset: 2px; }
  .bk-float-k { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lotus-text); }
  .bk-float-pill b { font: 800 17px/1.15 var(--ui); letter-spacing: -.01em; }
  .bk-float-more { display: none; }
  /* open */
  .bk-float.is-open { width: 300px; border-radius: 24px; background: var(--card); box-shadow: 0 18px 44px -16px rgba(42, 36, 32, .45), 0 0 0 1px var(--line); }
  .bk-float.is-open .bk-float-cover { width: 64px; top: -22px; left: 18px; }
  .bk-float.is-open .bk-float-pill { min-height: 0; padding: 18px 52px 6px 102px; border-radius: 24px 24px 0 0; box-shadow: none; cursor: default; }
  .bk-float.is-open .bk-float-pill:hover { background: var(--lotus); }
  .bk-float.is-open .bk-float-pill b { font-size: 20px; }
  .bk-float.is-open .bk-float-more { display: block; }
  .bk-float-fold { position: absolute; top: 12px; right: 12px; z-index: 3; width: 32px; height: 32px; border: 0; border-radius: 99px;
    background: rgba(255, 255, 255, .7); color: var(--ink-body); cursor: pointer; display: grid; place-items: center; }
  .bk-float-fold:hover { background: #fff; color: var(--ink); }
  .bk-float-fold svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .bk-float-line { margin: 0; padding: 2px 18px 16px 102px; min-height: 62px; background: var(--lotus); font: 500 13.5px/1.45 var(--ui); color: var(--ink-body); }
  .bk-float-acts { display: flex; gap: 10px; padding: 14px; }
  .bk-float-acts a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 99px;
    font: 700 15px var(--ui); text-decoration: none; }
  .bk-float-prev { flex: 1; color: var(--ink); border: 1.5px solid var(--line-3); background: var(--card); }
  .bk-float-prev:hover { border-color: var(--ink); }
  .bk-float-buy { background: var(--ink); color: var(--paper); }
  .bk-float-buy:hover { background: #000; }
}
@media (min-width: 1100px) { body:has(.wb-fab) .bk-float { bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .bk-float, .bk-float-cover { transition: none; } }

/* ---------------------------------------------------------------- the book overlay (Preview on any page)
   As on the Mahabharata and Jatajoot sites: a dark, softly blurred screen, the open book in the middle, a round cross,
   the page arrows and caption under it, then Buy and Close. Clicking anywhere but the book closes it. site/js/gita.js. */
.bk-reader { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 24px 0 22px; background: rgba(28, 22, 19, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease; color: #f5ede1; text-align: center; }
.bk-reader[hidden] { display: none; }
.bk-reader.on { opacity: 1; }
html.bk-open { overflow: hidden; }
html.bk-open .bk-bar, html.bk-open .wb-fab { display: none; }
.bk-reader .flip-wrap { width: 100%; }
.bk-reader .flip-shift { max-width: min(1100px, calc((100dvh - 240px) * 4 / 3)); }
.bk-reader .flip-count { color: #f0d6c6; }
.bk-reader .flip-caption { color: #f5ede1; }
.bk-reader .flip-arrow { background: transparent; color: #f5ede1; border-color: rgba(245, 237, 225, .35); }
.bk-reader .flip-arrow:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: rgba(245, 237, 225, .6); color: #fff; }
.bk-x { position: absolute; top: 18px; right: 22px; z-index: 3; width: 52px; height: 52px; border-radius: 50%; font: 400 30px/1 var(--ui); cursor: pointer;
  color: #f5ede1; background: rgba(255, 255, 255, .08); border: 1px solid rgba(245, 237, 225, .28); display: grid; place-items: center; padding: 0 0 3px; }
.bk-x:hover { background: rgba(255, 255, 255, .16); }
.bk-x:focus-visible, .bk-actions a:focus-visible, .bk-rclose:focus-visible { outline: 2px solid #f0d6c6; outline-offset: 3px; }
.bk-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.bk-reader a.bk-rbuy, .bk-rclose { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 99px; font: 700 15px var(--ui);
  cursor: pointer; text-decoration: none; }
.bk-reader a.bk-rbuy { background: var(--paper); color: var(--ink); border: 1.5px solid var(--paper); }
.bk-reader a.bk-rbuy:hover { background: #fff; }
.bk-rclose { color: #f5ede1; background: transparent; border: 1.5px solid rgba(245, 237, 225, .4); }
.bk-rclose:hover { border-color: #f5ede1; }
@media (max-width: 760px) {
  .bk-reader .flip-shift { max-width: min(100%, calc((100dvh - 240px) * 2 / 3)); }
  .bk-x { top: 10px; right: 10px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .bk-reader { transition: none; } }

/* Phones, as on the Mahabharata site's book (author, 2026-12-03: "check book folder of mahabharat for mobile
   treatment"): one right-hand page with its facing page peeking in from the left, kept a little off the right edge;
   the arrows at the edges with the page label and chapter between them. Inline on Home and in the overlay alike. */
@media (max-width: 699px) {
  .flip-stage.portrait { padding-right: 14px; }
  .bk-reader .flip-stage.portrait { padding-right: 18px; }
  .bk-reader .flip-stage.portrait .flip-shift { width: min(300px, 100% - 60px); }
  .flip-controls { justify-content: space-between; align-items: flex-start; gap: 0; margin-top: 18px; padding: 0 14px; }
  .flip-count { min-width: 0; margin-top: 15px; }
  .flip-count { margin-top: 10px; }
  .flip-caption { margin: -10px 64px 0; font-size: 16px; line-height: 1.3; min-height: 2.6em; }
  .bk-reader .flip-caption { margin-bottom: 8px; }
}
/* @end-book */

/* ---------------------------------------------------------------- tables in reading text (teachers' questions, translations) */
.prose table { width: 100%; border-collapse: collapse; font: 400 16px/1.5 var(--read); }
.prose th { text-align: left; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); padding: 10px 12px 10px 0; border-bottom: 1.5px solid var(--line-3); }
.prose td { padding: 12px 12px 12px 0; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.prose td small { font: 500 13px var(--ui); color: var(--ink-muted); }
@media print { .site-header, .site-footer, .submenu, .crumbs, .bk-bar, .bk-float, .aside-sticky, .btn { display: none !important; } }
.prose .verse-list { margin: 0; }
.prose .verse-list li { margin: 0; }
.prose .verse-list a { text-decoration: none; }
.prose .verse-list .line b { font-family: var(--ui); color: var(--ink); }
