/* 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); }
/* Gita for Kids pages: a morning sky at the top of the page that fades into the paper, with a drifting scene behind
   everything (site/js/ambient.js; each page's scene in content/book/ambient.json). The sky scrolls with the page, so
   paintings further down still sit on paper. */
html.is-kids { background: linear-gradient(180deg, #d9ebf6 0, #e6f1f7 360px, #f3f2ec 820px, var(--paper) 1100px) no-repeat var(--paper); }
html.is-kids body { background: transparent; }
canvas.ambient { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
@media print { canvas.ambient { display: none; } html.is-kids { background: none; } }
/* go to a verse: the box on the 404 page (gita.js runs every form[data-vjump]) */
.vjump { position: relative; display: flex; align-items: center; border: 1.5px solid var(--line-2, #e2d8c6); border-radius: 99px; background: var(--card); padding: 2px 3px 2px 13px; }
.vjump:focus-within { border-color: var(--saffron); }
.vjump.is-bad { border-color: var(--lotus, #b4495f); }
.vjump-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vjump input { width: 118px; border: 0; outline: 0; background: none; font: 500 14px var(--ui); color: var(--ink); padding: 5px 0; }
.vjump input::placeholder { color: var(--ink-muted); opacity: .8; }
.vjump button { border: 0; border-radius: 99px; background: var(--ink); color: var(--paper); font: 700 13px var(--ui); padding: 5px 11px; cursor: pointer; }
.vjump-msg:empty { display: none; }
.vjump-msg { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--paper); font: 500 13px var(--ui); }
/* @menu: the mega menu (tools/mega_menu.py writes the markup, gita.js runs it). Author, 2026-12-03: "create mega menu
   for gita site .. but ensure you follow theme of gita site only". Desktop (1100 px and up): a row of tabs, each opening
   a full-width panel under the header. Narrower: a Menu button opens the same links as a full-screen sheet. */
.site-header.mm { position: relative; z-index: 60; flex-wrap: nowrap; gap: 24px; }
/* the panels and the phone sheet take the page's own colour: paper, or on Gita for Kids pages the morning sky the header
   sits on (author, 2026-12-03, with a screenshot of the cream panel under the blue sky: "color") */
.site-header.mm { --mm-bg: var(--paper); --mm-sheet: var(--paper); --mm-top: var(--paper); --mm-tile: var(--card); --mm-line: var(--line); --mm-rule: var(--line-2); }
html.is-kids .site-header.mm { --mm-bg: linear-gradient(180deg, #ddedf6, #e5f0f6); --mm-top: #dcecf6;
  --mm-sheet: linear-gradient(180deg, #dcecf6 0, #e6f1f7 45%, #f3f2ec 80%, var(--paper) 100%);
  --mm-tile: rgba(255, 253, 248, .72); --mm-line: #cadfe9; --mm-rule: #d3e5ee; }
.mm-bar { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; }
.mm-nav, .mm-tabs, .mm-links, .mm-feels, .mm-chs, .mm-cards, .mm-kcards { list-style: none; margin: 0; padding: 0; }
.mm-tabs { display: flex; align-items: center; gap: 4px 22px; }
.mm-tab { display: inline-flex; align-items: center; gap: 5px; padding: 8px 0; font: 500 15px var(--ui); color: var(--ink-muted); white-space: nowrap; cursor: pointer; }
.mm-tab:hover, .mm-tab[aria-expanded="true"], .mm-tab[aria-current] { color: var(--ink); }
.mm-tab[aria-current], .mm-tab[aria-expanded="true"] { box-shadow: inset 0 -2px 0 var(--saffron); }
.mm-chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.mm-tab[aria-expanded="true"] .mm-chev { transform: rotate(180deg); }
.mm-item.is-kids .mm-tab { padding: 7px 13px 7px 15px; border-radius: 99px; background: var(--teal-tint); color: var(--teal); font-weight: 700; box-shadow: none; }
.mm-item.is-kids .mm-tab:hover { background: #d5e8e0; }
.mm-item.is-kids .mm-tab[aria-current], .mm-item.is-kids .mm-tab[aria-expanded="true"] { background: var(--teal); color: #fff; }

.mm-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.mm-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-3); background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.mm-icon:hover, .mm-icon[aria-expanded="true"] { border-color: var(--ink); color: var(--ink); }
.mm-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mm-buy { padding: 9px 13px 9px 17px; border-radius: 99px; background: var(--saffron); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .01em; }
.mm-buy:hover, .mm-buy[aria-expanded="true"] { background: var(--saffron-text); color: #fff; box-shadow: none; }
.mm-burger, .mm-sheet-top, .mm-sheet-find, .mm-sheet-foot { display: none; }
/* Search (opens the Cmd K box, site/js/search.js): a round icon; from 1240 px a pill with the shortcut */
.mm-find-l, .mm-kbd { display: none; }
@media (min-width: 1240px) {
  .mm-icon.mm-find { width: auto; grid-auto-flow: column; gap: 8px; padding: 0 8px 0 13px; border-radius: 99px; color: var(--ink-muted); }
  .mm-icon.mm-find:hover { color: var(--ink); }
  .mm-icon.mm-find svg { width: 17px; height: 17px; }
  .mm-find-l { display: inline; font: 600 14px var(--ui); }
  .mm-kbd { display: inline-grid; place-items: center; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--line-2); font: 500 11px var(--mono); letter-spacing: .02em; color: var(--ink-muted); }
}
/* My workbook: workbook.js puts its button in .mm-wb; in the header it is a round icon with the count on it */
.mm-wb { display: contents; }
.mm-wb .wb-open { position: relative; width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
.mm-wb .wb-open > span[aria-hidden] { display: none; }
.mm-wb .wb-open::before { content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4.5L6 21z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4.5L6 21z'/%3E%3C/svg%3E") center / contain no-repeat; }
.mm-wb .wb-count { position: absolute; top: -5px; right: -7px; min-width: 19px; padding: 1px 5px; font-size: 11px; line-height: 16px; }

/* ---- the panels (desktop) */
.mm-panel { display: none; }
.mm-item.is-open > .mm-panel { display: block; }
@keyframes mm-in { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.mm-in { max-width: var(--wrap); margin: 0 auto; padding: 34px var(--pad) 42px; display: grid; grid-template-columns: 272px 1fr; gap: 52px; }
.mm-side { padding-right: 44px; border-right: 1.5px solid var(--mm-line); }
.mm-title { margin: 0 0 8px; font: 800 34px/1 var(--ui); letter-spacing: -.035em; color: var(--ink); }
.mm-line { margin: 0 0 16px; font: 400 16px/1.45 var(--read); color: var(--ink-muted); }
.mm-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1.5px solid var(--mm-rule); font: 500 17px/1.3 var(--ui); color: var(--ink); }
.mm-links a:hover, .mm-links a[aria-current] { color: var(--saffron-text); }
.mm-arr { flex: none; color: var(--saffron); transition: transform .15s; }
.mm-links a:hover .mm-arr { transform: translateX(3px); }
.mm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.mm-head .eyebrow { margin: 0; }
.mm-more { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--saffron-text); white-space: nowrap; }
.mm-more .mm-arr { color: inherit; }
.mm-more:hover .mm-arr { transform: translateX(3px); }
.mm-img { display: block; background: var(--card); }

/* What's on your mind: twelve feelings */
.mm-feels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px 12px; }
.mm-feel { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font: 600 15px/1.25 var(--ui); color: var(--ink); }
.mm-feel .mm-img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; mix-blend-mode: multiply; transition: transform .2s; }
.mm-feel:hover, .mm-feel[aria-current] { color: var(--saffron-text); }
.mm-feel:hover .mm-img { transform: scale(1.05); }
/* Chapters: the eighteen, in three columns */
.mm-chs { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: column; grid-template-rows: repeat(4, auto); gap: 2px 24px; }
/* the six to start with, as pictures (like the feelings), then the other twelve */
.mm-feel small { display: block; margin-bottom: 3px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--saffron-text); }
.mm-sub { margin: 24px 0 8px; padding-top: 18px; border-top: 1.5px solid var(--mm-rule); }
.mm-ch { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 8px 10px 8px 6px; border-radius: 14px; color: var(--ink); }
.mm-ch b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--saffron-tint); color: var(--saffron-text); font: 500 13px var(--mono); }
.mm-ch span { font: 600 15px/1.25 var(--ui); }
.mm-ch i { display: block; margin-top: 1px; font: italic 400 13.5px/1.3 var(--read); color: var(--ink-faint); }
.mm-ch:hover, .mm-ch[aria-current] { background: var(--mm-tile); }
.mm-ch:hover b, .mm-ch[aria-current] b { background: var(--saffron); color: #fff; }
/* Learn: four ways in */
.mm-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mm-card { display: flex; flex-direction: column; color: var(--ink); }
.mm-card .mm-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; transition: transform .2s; }
.mm-card b { margin-top: 12px; font: 700 16px/1.25 var(--ui); }
.mm-card span { margin-top: 4px; font: 400 14.5px/1.4 var(--read); color: var(--ink-muted); }
.mm-card:hover b { color: var(--saffron-text); }
.mm-card:hover .mm-img { transform: translateY(-3px); }
/* Gita for Kids: teal, question cards and the book */
.mm-item.is-kids .mm-panel .eyebrow, .mm-item.is-kids .mm-more, .mm-item.is-kids .mm-links a:hover, .mm-item.is-kids .mm-links a[aria-current] { color: var(--teal); }
.mm-item.is-kids .mm-arr { color: var(--teal-rule); }
.mm-kids { display: grid; grid-template-columns: 1fr 212px; gap: 24px; align-items: start; }
.mm-kcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mm-kcard { display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 18px; background: var(--mm-tile); box-shadow: 0 1px 0 var(--mm-line); font: 600 15px/1.25 var(--ui); color: var(--ink); }
.mm-kcard .mm-img { flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.mm-kcard:hover, .mm-kcard[aria-current] { background: var(--teal-tint); color: var(--ink); }
.mm-book { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 24px; background: var(--lotus); }
.mm-book p, .mm-book-top p { margin: 0; }
.mm-book b, .mm-book-top b { display: block; font: 800 17px/1.2 var(--ui); color: var(--ink); }
.mm-book p span, .mm-book-top p span { display: block; margin-top: 3px; font: 500 13.5px/1.4 var(--ui); color: #6b4a3f; }
.mm-book-cover { display: block; width: 72px; transform: rotate(-3deg); border-radius: 2px 5px 5px 2px; overflow: hidden; box-shadow: 0 10px 18px -8px rgba(42, 36, 32, .45); }
.mm-cover { width: 100%; height: auto; }
.mm-book-prev { align-self: flex-start; padding: 8px 14px; border-radius: 99px; background: var(--ink); color: var(--paper); font: 700 14px var(--ui); }
.mm-book-prev:hover { color: var(--paper); background: #000; }
/* Search: go to a verse */
/* Get the book: a small card under the button */
.mm-get { position: relative; }
.mm-drop { position: absolute; top: calc(100% + 12px); right: 0; width: 310px; padding: 18px 20px 8px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); box-shadow: 0 24px 40px -22px rgba(42, 36, 32, .35); }
.mm-item.is-open > .mm-drop { animation: mm-drop .16s ease-out; }
@keyframes mm-drop { from { opacity: 0; transform: translateY(-6px); } }
.mm-book-top { display: flex; gap: 16px; align-items: center; padding: 4px 0 10px; }
.mm-book-top .mm-book-cover { flex: none; width: 58px; }
.mm-drop .mm-links li:last-child a { border-bottom: 0; }

@media (min-width: 1100px) {
  .mm-panel:not(.mm-drop) { position: absolute; top: 100%; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--mm-bg);
    border-top: 1.5px solid var(--mm-line); border-bottom: 1.5px solid var(--mm-line); box-shadow: 0 30px 40px -30px rgba(42, 36, 32, .3); }
  .mm-item.is-open > .mm-panel:not(.mm-drop) { animation: mm-in .16s ease-out; }
  /* never past the bottom of the screen: it scrolls inside itself if it must */
  .mm-panel:not(.mm-drop) { max-height: calc(100vh - 80px); overflow-y: auto; overscroll-behavior: contain; }
}
/* short laptop screens (e.g. 1280 x 720): tighter rows so the 13-link Learn list fits */
@media (min-width: 1100px) and (max-height: 860px) {
  .mm-in { padding-top: 22px; padding-bottom: 26px; }
  .mm-line { margin-bottom: 10px; }
  .mm-links a { padding: 7px 0; }
}
@media (min-width: 1100px) and (max-width: 1240px) {
  .mm-tabs { gap: 4px 16px; }
  .mm-in { grid-template-columns: 240px 1fr; gap: 40px; }
  .mm-side { padding-right: 32px; }
}

/* ---- under 1100 px: a Menu button and a full-screen sheet */
@media (max-width: 1099.98px) {
  .site-header.mm { gap: 12px; }
  .mm-bar { justify-content: flex-end; }
  .mm-burger { display: inline-grid; }
  .mm-get { display: none; }
  .mm-nav { display: none; position: fixed; inset: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain; background: var(--mm-sheet); padding: 0 var(--pad) 40px; }
  .mm.is-sheet .mm-nav { display: block; animation: mm-sheet .2s ease-out; }
  @keyframes mm-sheet { from { opacity: 0; transform: translateY(10px); } }
  .mm-sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px; position: sticky; top: 0; z-index: 2; background: var(--mm-top); }
  .mm-sheet-k { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--saffron-text); }
  .mm-sheet-find { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 13px 18px; border: 2px solid var(--line-2); border-radius: 99px; background: var(--card); color: var(--ink-muted); font: 500 17px var(--ui); }
  .mm-sheet-find svg { flex: none; width: 19px; height: 19px; fill: none; stroke: var(--saffron-text); stroke-width: 2.2; stroke-linecap: round; }
  .mm-sheet-find:hover { color: var(--ink); border-color: var(--saffron); }
  .mm-tabs { display: block; }
  .mm-tabs > .mm-item { border-bottom: 1.5px solid var(--mm-line); }
  .mm-tab, .mm-item.is-kids .mm-tab { display: flex; width: 100%; justify-content: space-between; padding: 18px 0; border-radius: 0; background: none; font: 800 23px/1.1 var(--ui); letter-spacing: -.02em; color: var(--ink); box-shadow: none !important; }
  .mm-item.is-kids .mm-tab, .mm-item.is-kids .mm-tab[aria-current], .mm-item.is-kids .mm-tab[aria-expanded="true"] { background: none; color: var(--teal); }
  .mm-tab[aria-current] > span { box-shadow: inset 0 -3px 0 var(--saffron); }
  .mm-item.is-kids .mm-tab[aria-current] > span { box-shadow: inset 0 -3px 0 var(--teal-line); }
  .mm-chev { width: 20px; height: 20px; }
  .mm-tabs .mm-tab { scroll-margin-top: 76px; }  /* clears the sticky Menu bar */
  .mm-tabs .mm-in { display: block; padding: 0 0 22px; }
  .mm-tabs .mm-side { padding: 0; border: 0; }
  .mm-tabs .mm-title, .mm-tabs .mm-line { display: none; }
  .mm-tabs .mm-links { margin-bottom: 20px; }
  .mm-tabs .mm-links a { padding: 10px 0; font-size: 17px; }
  .mm-feels { grid-template-columns: repeat(4, 1fr); gap: 16px 8px; }
  .mm-feel { font-size: 14px; }
  .mm-feel .mm-img { width: 68px; height: 68px; }
  .mm-chs { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(6, auto); }
  .mm-cards { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .mm-kids { display: block; }
  .mm-tabs .mm-book { display: none; }
  .mm-sheet-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
  .mm-sheet-foot > * { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border-radius: 99px; font: 700 15px var(--ui); cursor: pointer; }
  .mm-sheet-wb { grid-column: 1 / -1; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
  .mm-sheet-prev { background: var(--lotus); color: var(--ink); }
  .mm-sheet-buy { background: var(--saffron); color: #fff; }
  .mm-sheet-buy:hover { color: #fff; }
  html.mm-lock { overflow: hidden; }
}
@media (max-width: 760px) {
  .mm-head { flex-wrap: wrap; row-gap: 6px; } .mm-head .eyebrow { white-space: nowrap; }
  .mm-feels { grid-template-columns: repeat(3, 1fr); }
  .mm-chs, .mm-kcards { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}
@media (max-width: 600px) {
  .mm-wb { display: none; }
  .wordmark { font-size: 21px; } .wordmark i { font-size: 19px; } .wm-feather { height: 27px; }
  .mm-cards { grid-template-columns: 1fr 1fr; }
  .mm-card span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mm-item.is-open > .mm-panel, .mm.is-sheet .mm-nav { animation: none !important; } }
@media print { .mm-bar { display: none !important; } }
/* @end-menu */
.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); }
/* the chapter's painting as a very light wash behind the card, fading out towards the words (author, 2026-12-03) */
.ch-card { position: relative; isolation: isolate; overflow: hidden; }
/* finalize_site.py wraps the picture in <picture> for its AVIF copies; gita.css shows <picture> as display: contents,
   so the img itself is placed against the card */
.ch-card > :not(picture):not(.ch-bg) { position: relative; z-index: 1; }
.ch-bg { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 78%; height: 100%; object-fit: cover; object-position: 50% 60%;
  opacity: .16; mix-blend-mode: multiply; pointer-events: none; transition: transform .6s cubic-bezier(.2, .7, .3, 1);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 55%); mask-image: linear-gradient(to right, transparent, #000 55%); }
.ch-card:hover .ch-bg { transform: scale(1.03); }
/* over the wash, the Sanskrit name and the verse count are a shade darker so they keep AA contrast (4.5:1) on every
   painting: worst case 5.5:1, measured pixel by pixel (2026-12-03); in the plain muted colour they fell to 3.3:1 */
.ch-card:has(.ch-bg) .sa, .ch-card:has(.ch-bg) .meta { color: #5a4f47; }
@media (prefers-reduced-motion: reduce) { .ch-card:hover .ch-bg { transform: none; } }
.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; }
/* the book's chapter pages, question first (author, 2026-12-03): moments to tick, what would you do, June's setup only */
.scn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.scn { position: relative; display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 18px; padding: 15px 18px; box-shadow: 0 1px 0 var(--line); cursor: pointer; font: 400 18px/1.5 var(--read); color: var(--ink-body); transition: background .15s, color .15s; }
.scn:hover { background: #fffaf0; }
.scn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scn .tick { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-3); background: var(--paper); display: grid; place-items: center; font: 800 14px/1 var(--ui); color: transparent; transition: background .15s, border-color .15s; }
.scn input:checked ~ .tick { background: var(--teal); border-color: var(--teal); color: #fff; }
.scn:has(input:checked) { background: var(--teal-tint); color: var(--ink); }
.scn input:focus-visible ~ .tick { outline: 2px solid var(--teal); outline-offset: 2px; }
.wwyd { border-radius: 24px; background: var(--teal-tint); padding: 24px 26px; }
.wwyd h2 { margin: 0 0 8px; color: #1f4f4a; }
.wwyd p { margin: 0; font: 400 18px/1.6 var(--read); color: var(--ink-body); }
.june-tease { border-radius: 28px; background: var(--lotus); padding: 28px clamp(22px, 4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.june-tease .eyebrow { margin: 0; }
.june-tease h2 { margin: 0; }
.june-tease p { margin: 0; font: 400 18px/1.6 var(--read); color: #4a3a33; }
.monster-mini { display: flex; align-items: center; gap: 16px; background: rgba(255, 253, 248, .55); border-radius: 20px; padding: 10px 18px 10px 10px; align-self: flex-start; }
.monster-mini .painting { width: 88px; height: 88px; flex: none; border-radius: 14px; object-fit: cover; mix-blend-mode: multiply; }
.monster-mini .eyebrow { margin: 0 0 2px; }
.monster-mini b { display: block; font: 800 18px/1.25 var(--ui); color: var(--ink); }
.note-box.care p { margin: 0; font: 500 15px/1.5 var(--ui); color: var(--ink-muted); }
/* a printable to download: page 1 of the PDF on the left; title, line and button stacked beside it, so the card fits any
   column, a side column included (author, 2026-12-03: "ugly", of the old three-column card squeezed in one) */
.printable { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px 18px; align-items: start; padding: 16px 18px; border-radius: 20px; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.printable .pr-thumb { grid-row: span 2; width: 76px; height: auto; border-radius: 4px; border: 1px solid var(--line); box-shadow: 0 6px 14px -8px rgba(42, 36, 32, .35); transform: rotate(-2deg); background: #fff; }
.pr-text b { display: block; font: 700 17px/1.25 var(--ui); color: var(--ink); text-wrap: balance; }
.pr-text span { display: block; margin-top: 4px; font: 500 14px/1.4 var(--ui); color: var(--ink-muted); }
.printable .btn { justify-self: start; min-height: 0; padding: 8px 18px; font-size: 14px; }
@media (max-width: 420px) { .printable { grid-template-columns: 60px minmax(0, 1fr); } .printable .pr-thumb { width: 60px; } }

/* ---------- 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; }
.lost-find { max-width: 380px; margin: 0 auto 30px; text-align: left; }
.lost-find .eyebrow { text-align: center; margin-bottom: 10px; }
.lost-find .vjump { padding: 4px 5px 4px 18px; border-width: 2px; }
.lost-find .vjump input { flex: 1; width: auto; min-width: 0; font-size: 17px; padding: 8px 0; }
.lost-find .vjump button { font-size: 15px; padding: 8px 16px; }
.lost-find .vjump-msg { left: 0; right: auto; }

/* ---------- 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-aka { margin: 10px 0 0; font: 500 14px var(--ui); color: var(--ink-muted); }
.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.is-loading { cursor: progress; opacity: .75; }
.vp-audio .vp-bar { cursor: pointer; }  /* click the bar to jump there (gita.js) */
.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; }
/* page-turn shading with soft edges (author, 2026-12-03: "i mean sharp border.. natural shadow has some blur and fade in
   near borders"): the library paints its shadows as hard-edged gradient boxes; blurring them keeps the darkness and lets
   every edge fade out. The shading on a soft page's own face stays sharp, since it ends at the paper's edge. */
.flipbook .stf__hardShadow, .flipbook .stf__hardInnerShadow, .flipbook .stf__outerShadow { filter: blur(14px); }
/* 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, .js .hero.split > div:nth-child(2) > .is-on > .deck { flex: 1; }
}

/* Home's feeling cards as a shuffle deck, five a feeling: the front card on top, two more peeking out behind it; clicking
   the card (not its links), its "Next verse" or a swipe brings the next one up, and it loops (author, 2026-12-03: "can we
   make this a shuflable card.. clicking brings next card upfront fpor that emotion", "5 per emotion"). Every card sits in
   the same grid cell, so the deck is as tall as its tallest card and nothing jumps. The bottom padding grows with the
   width: the tilted cards behind hang below the front one by about 2.3% of its width. */
.deck { display: grid; padding: 0 14px calc(14px + 2.4%) 0; touch-action: pan-y; }
.deck > .verse-card { grid-area: 1 / 1; display: flex; flex-direction: column; transform-origin: 50% 100%;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .35s ease, box-shadow .3s; }
html:not(.js) .deck > .verse-card:not(:first-child) { display: none; }
/* the front card has the same thin edge as the cards behind it, plus its soft shadow (author: "top card has diff border") */
.js .deck > [data-pos="0"] { z-index: 5; cursor: pointer; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -22px rgba(60, 40, 20, .45); }
.js .deck > [data-pos="1"] { z-index: 4; transform: translate(7px, 7px) rotate(1.3deg); box-shadow: 0 0 0 1px var(--line); }
.js .deck > [data-pos="2"] { z-index: 3; transform: translate(14px, 14px) rotate(2.6deg); box-shadow: 0 0 0 1px var(--line); }
.js .deck > [data-pos="3"], .js .deck > [data-pos="4"] { z-index: 2; transform: translate(14px, 14px) rotate(2.6deg); opacity: 0; }
.js .deck > [data-pos="out"] { z-index: 6; transform: translate(-46%, -14px) rotate(-7deg); opacity: 0; pointer-events: none; }
.js .deck > [data-pos="1"] > *, .js .deck > [data-pos="2"] > *, .js .deck > [data-pos="3"] > *, .js .deck > [data-pos="4"] > * { visibility: hidden; }
.deck img { -webkit-user-drag: none; user-select: none; }
.deck.is-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.deck.is-dragging > [data-pos="0"] { transition: none; cursor: grabbing; }
.deck .verse-card .body { flex: 1; }
/* Each card's footer, as in the designer's hero (2026-12-03): "All on <feeling>" on the left, the card's place in the
   deck and a dark Next verse button on the right, under a thin rule. */
.vc-foot { display: flex; align-items: center; gap: 14px; padding: 14px 28px; border-top: 1px solid var(--line); }
.vc-foot .arrow-link { margin-right: auto; }
.deck-count { font: 600 13px/1 var(--ui); color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.deck-next { border: 0; border-radius: 99px; background: var(--ink); color: var(--paper); padding: 11px 18px; white-space: nowrap;
  font: 700 14px/1 var(--ui); cursor: pointer; transition: background .15s, transform .15s; }
.deck-next:hover { background: #3d342e; }
.deck-next:active { transform: scale(.97); }
.deck-next:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
html:not(.js) .deck-count, html:not(.js) .deck-next { display: none; }
.deck-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) { .vc-foot { padding: 12px 20px; gap: 10px; } .vc-foot .arrow-link { font-size: 14px; } }
/* Picking another feeling shuffles the deck (author, 2026-12-03: "fast shuffle to switch to next batch of cards", then
   "quick 1 card after other to bring new set of cards"): the cards on show flick up and away in .15 s, then the new
   feeling's cards are dealt one at a time from the lower right, back card first, the front card landing last on top.
   `translate` and `rotate` stack on top of each card's own transform, so the fan behind the front card stays put. */
@keyframes deck-out { to { translate: 0 -34px; rotate: -3deg; opacity: 0; } }
@keyframes deck-in { 0% { translate: 70px 120px; rotate: 10deg; opacity: 0; } 35% { opacity: 1; } }
.deck.is-leaving > [data-pos="0"], .deck.is-leaving > [data-pos="1"], .deck.is-leaving > [data-pos="2"] {
  animation: deck-out .15s cubic-bezier(.5, 0, .9, .4) both; }
.deck.is-leaving > [data-pos="1"] { animation-delay: .02s; }
.deck.is-leaving > [data-pos="2"] { animation-delay: .04s; }
.deck.is-dealing > [data-pos="0"], .deck.is-dealing > [data-pos="1"], .deck.is-dealing > [data-pos="2"] {
  animation: deck-in .26s cubic-bezier(.2, .75, .25, 1) both; }
.deck.is-dealing > [data-pos="1"] { animation-delay: .11s; }
.deck.is-dealing > [data-pos="0"] { animation-delay: .22s; }
/* While a deck is dealt in or flicked away, the cards behind the front one show their real painting and words (author,
   2026-12-03: "quick shuffle shuffles blank cards.. shuffle real cards please"); once they land, the front card covers them. */
.js .deck.is-leaving > [data-pos="1"] > *, .js .deck.is-leaving > [data-pos="2"] > *,
.js .deck.is-dealing > [data-pos="1"] > *, .js .deck.is-dealing > [data-pos="2"] > * { visibility: visible; }

/* Home's feeling chips, as in the designer's hero (2026-12-03): white capsules with a soft shadow and a small dot, the dots
   in turn saffron, teal and rose; the chosen feeling is dark with a bright saffron dot. */
.hero .chips { gap: 10px; max-width: 640px !important; }
.hero .chips .chip { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 18px 8px 15px;
  background: var(--card); border-color: transparent; font-size: 15px;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, .06), 0 2px 6px -3px rgba(60, 40, 20, .18); }
.hero .chips .chip::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #e2a57c); }
.hero .chips .chip:nth-child(3n+2) { --dot: #8dc3b6; }
.hero .chips .chip:nth-child(3n) { --dot: #eab5ad; }
.hero .chips .chip:hover { box-shadow: 0 0 0 1px rgba(60, 40, 20, .12), 0 4px 10px -4px rgba(60, 40, 20, .25); }
.hero .chips .chip[aria-pressed="true"] { --dot: #f08a4b; background: var(--ink); color: var(--paper);
  box-shadow: 0 8px 16px -10px rgba(40, 25, 15, .7); }

/* Feeling pictures crossfade when the feeling changes (gita.js fade()): the new one fades in with a slight settle; on
   desktop, where the pictures share one place behind the words, the old one stays shown while it fades out. */
@keyframes spot-in { from { opacity: 0; transform: scale(1.02); } }
@keyframes spot-out { to { opacity: 0; } }
.js .hero .spot.fade-in { animation: spot-in .6s cubic-bezier(.3, .7, .3, 1) both; }
@media (prefers-reduced-motion: reduce) { .js .hero .spot.fade-in, .js .hero .spot.fade-out { animation: none; } }
/* the intro over the feeling's faded painting is body-text dark, not muted: muted fell to 3.2:1 on the darker paintings
   (Focus, Anger, Hard decisions); body ink is 5.2:1 or more on all 12, measured pixel by pixel (author, 2026-12-03:
   "contrast of text") */
.hero.split > div:first-child > .lede { color: var(--ink-body); }
/* and the painting is half as strong behind the words (to --words-end, set by gita.js), full strength below them: on
   smaller screens the painting sits right behind the intro, where Self-doubt's dark hoodie took it to 2.3:1 */
.js .hero.split .spot.has-pic {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, .5) var(--words-end, 100%), #000 calc(var(--words-end, 100%) + 72px));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, .5) var(--words-end, 100%), #000 calc(var(--words-end, 100%) + 72px)); }
/* the feeling's short loop over its painting (gita.js): same box, same fit, same multiply; it fades in once playing */
.hero .spot.has-pic { position: relative; }
.hero .spot.has-pic .spot-vid { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain;
  object-position: 50% 100%; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.hero .spot.has-pic .spot-vid.is-playing { opacity: 1; }
/* once the loop plays, the painting under it goes, so the two never show together: the clip's frame sits a few
   pixels off the painting, and both at once drew every line twice (author, 2026-12-03: "double border image and video") */
.hero .spot.has-pic .painting:not(.spot-vid) { transition: opacity .5s ease; }
.hero .spot.has-pic.has-live .painting:not(.spot-vid) { opacity: 0; }

/* Home hero, desktop: the feeling chips and the whole card fit in the first screen (author, 2026-12-03: "tighten vertical
   height to fit the emotion picker and entire card in first fold of scren"). Both columns are as tall as the screen
   under the header (at most 860px). Left, as in the designer's hero: the feeling's painting is a large faded backdrop
   behind the words, from the heading down to the chips, which sit at the foot of the column. Right: the card's words keep
   their size and its painting shrinks to the room left, whole, never cropped (it blends into the paper). */
@media (min-width: 944px) and (min-height: 600px) {
  .js .hero.split { --fold: min(calc(100svh - 84px - 36px), 860px); padding-top: 12px; }
  .js .hero.split > div:first-child { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; height: var(--fold); }
  .js .hero.split > div:first-child > .eyebrow { grid-row: 1; }
  .js .hero.split > div:first-child > h1 { grid-row: 2; }
  .js .hero.split > div:first-child > .lede { grid-row: 3; margin-bottom: 0 !important; }
  .js .hero.split > div:first-child > :not(.spot) { grid-column: 1; position: relative; z-index: 1; }
  .js .hero.split .chips { grid-row: 5; }
  .js .hero.split .spot.has-pic { grid-column: 1; grid-row: 2 / 5; width: auto; aspect-ratio: auto; min-height: 0;
    margin: 0 -18% 14px 0; position: relative; opacity: .5; pointer-events: none; }
  .js .hero.split .spot.has-pic.fade-out { display: block; animation: spot-out .5s ease both; }
  .js .hero.split .spot.has-pic picture { position: absolute; inset: 0; }
  .js .hero.split .spot.has-pic .painting { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: 50% 100%; }
  .js .hero.split > div:nth-child(2) { height: var(--fold); }
  .js .hero.split .deck { min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .js .hero.split .deck > .verse-card { min-height: 0; }
  .js .hero.split .deck > .verse-card > picture { flex: 1 1 0; min-height: 110px; position: relative; display: block; margin: 18px 28px 0; }
  .js .hero.split .deck > .verse-card > picture .painting { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-fit: contain; }
  .js .hero.split .deck .verse-card .body { flex: none; padding: 18px 28px 22px; }
  .js .hero.split .deck .verse-line { margin: 12px 0 10px; }
  .js .hero.split .deck .verse-meaning { margin-bottom: 14px; }
}
/* Short screens (730px or less): tighter spacing inside the card and a smaller least picture, so the longest cards still
   end inside the screen. */
@media (min-width: 944px) and (min-height: 600px) and (max-height: 730px) {
  .js .hero.split .deck > .verse-card > picture { min-height: 84px; margin-top: 10px; }
  .js .hero.split .deck .verse-card .body { padding: 12px 24px 14px; }
  .js .hero.split .deck .verse-line { margin: 8px 0 8px; }
  .js .hero.split .deck .verse-meaning { margin-bottom: 10px; }
  .js .hero.split .deck .try { padding: 10px 16px; }
  .js .hero.split .vc-foot { padding: 10px 24px; }
  .js .hero.split .deck-next { padding: 9px 16px; }
}
@media (prefers-reduced-motion: reduce) { .deck > .verse-card { transition: opacity .2s; animation: none !important; } }

/* Home hero, phones, as in the designer's phone mockup (2026-12-03, "can mobile design be this"): the feeling's painting is
   a faded backdrop behind the heading and intro; the chips are one sideways row running off the right edge; each card
   has a small picture with its tags beside it, then the verse, and "1/5" and "Next →" in the footer. */
.dc-sl { display: none; }
@media (max-width: 760px) {
  .hero.split { padding-top: 18px; }
  .js .hero.split > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr); }
  .js .hero.split > div:first-child > :not(.spot) { grid-column: 1; position: relative; z-index: 1; }
  .js .hero.split > div:first-child > .eyebrow { grid-row: 1; }
  .js .hero.split > div:first-child > h1 { grid-row: 2; }
  .js .hero.split > div:first-child > .lede { grid-row: 3; margin-bottom: 0 !important; }
  .js .hero.split .spot.has-pic { grid-column: 1; grid-row: 1 / 4; align-self: center; justify-self: end; width: 86%; margin: 0 -6% 0 0;
    opacity: .45; pointer-events: none; }
  .js .hero.split .spot.has-pic.fade-out { display: block; animation: spot-out .5s ease both; }
  .js .hero.split .chips { grid-row: 4; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    max-width: none !important; margin: 26px -20px 0; padding: 4px 20px 8px; scroll-padding-inline: 20px; }
  .js .hero.split .chips::-webkit-scrollbar { display: none; }
  .js .hero.split .chips .chip { flex: none; min-height: 46px; padding-inline: 16px 20px; font-size: 16px; }
  .js .hero.split { row-gap: 18px; overflow-x: clip; }
  /* a tall narrow card fans less, or its back edges run off the screen */
  .js .hero .deck > [data-pos="1"] { transform: translate(5px, 6px) rotate(.5deg); }
  .js .hero .deck > [data-pos="2"], .js .hero .deck > [data-pos="3"], .js .hero .deck > [data-pos="4"] { transform: translate(10px, 12px) rotate(1deg); }
  .js .hero .deck { padding: 0 10px 14px 0; }
  /* the card: picture and tags side by side, the rest under them */
  .js .hero .deck > .verse-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr;
    column-gap: 16px; padding: 22px 22px 0; }
  .js .hero .deck .verse-card .body { display: contents; }
  .js .hero .deck > .verse-card > picture { grid-column: 1; grid-row: 1; display: block; border-radius: 12px; overflow: hidden; }
  .js .hero .deck > .verse-card > picture .painting { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .js .hero .deck .body > .row { grid-column: 2; grid-row: 1; align-self: center; flex-direction: column; align-items: flex-start; gap: 8px; }
  .js .hero .deck .verse-line { grid-column: 1 / -1; grid-row: 2; margin: 20px 0 12px; font-size: 22px; line-height: 1.28; }
  .js .hero .deck .verse-meaning { grid-column: 1 / -1; grid-row: 3; margin-bottom: 18px; }
  .js .hero .deck .try { grid-column: 1 / -1; grid-row: 4; align-self: start; }
  .js .hero .deck .vc-foot { grid-column: 1 / -1; grid-row: 5; align-self: end; margin: 22px -22px 0; padding: 12px 18px 12px 22px; }
  .js .hero .deck .dn-v { display: none; }  /* the button's label still says "Next verse on …" */
  .js .hero .deck .dc-of { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .js .hero .deck .dc-sl { display: inline; }
  .js .hero .deck-count { font-size: 15px; color: var(--ink-muted); }
  .js .hero .deck-next { padding: 12px 20px; font-size: 16px; }
}

/* 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; }
  /* a few seconds after the page loads the front cover swings open, a little and then wider, to show the first page,
     then closes (gita.js adds .is-peek); clicking the book opens the page-turning book (author, 2026-12-03: "peek the
     book on page load after few seconds and peek telescopilly with more gap.. and if you click the book open the overlay
     with book flip", then "peek i meant open the front page peek") */
  .bk-float-cover { position: absolute; left: 14px; top: -16px; z-index: 2; width: 46px; transform: rotate(-5deg); 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); cursor: pointer; perspective: 260px; transition: width .2s, top .2s; }
  .bk-float-cover img { display: block; width: 100%; height: auto; border-radius: 2px 4px 4px 2px; }
  .bk-float-cover .bk-float-inside { position: absolute; inset: 0; height: 100%; object-fit: cover; border-radius: 1px 3px 3px 1px; box-shadow: inset 6px 0 8px -6px rgba(60, 30, 20, .35); }
  .bk-float-cover .bk-float-front { position: relative; transform-origin: 0 50%; backface-visibility: hidden; }
  .bk-float.is-peek:not(.is-open) .bk-float-front { animation: bk-peek 3.4s ease-in-out; }
  @keyframes bk-peek {
    0% { transform: rotateY(0); }
    18%, 34% { transform: rotateY(-42deg); box-shadow: 4px 0 8px rgba(60, 30, 20, .25); }
    52%, 74% { transform: rotateY(-76deg); box-shadow: 6px 0 10px rgba(60, 30, 20, .3); }
    100% { transform: rotateY(0); }
  }
  .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; } .bk-float.is-peek .bk-float-front { animation: 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); }
