/* ------------------------------------------------------------------
   मनाचे श्लोक — manacheshlok.in
   "Temple at dawn" — warm off-white canvas, indigo ink,
   saffron/marigold accent, muted teal secondary.
   Modern, clean, devotional. Mobile-first. No frameworks.
------------------------------------------------------------------- */

:root {
  --canvas:    #F7F1E7;   /* warm parchment background */
  --canvas-2:  #EFE6D6;   /* soft gradient pair */
  --card:      #FFFDF9;   /* warm ivory card (not pure white) */
  --ink:       #2A2418;   /* warm near-black ink (primary text) */
  --ink-soft:  #6B5F4D;   /* secondary text */
  --ink-faint: #9C9079;   /* tertiary / hints */
  --saffron:   #C5562A;   /* deep terracotta-saffron — primary accent */
  --saffron-d: #A8431D;   /* darker for text-on-light */
  --saffron-l: #E9883E;   /* lighter saffron for highlights */
  --teal-2:    #2E6E62;   /* deep teal — secondary accent */
  --line:      #E7DCC8;   /* hairlines */
  --line-2:    #D9CCB2;   /* slightly stronger hairline */
  --gold:      #B08D3C;   /* fine details */
  --shadow:    0 1px 2px rgba(74,56,32,0.05), 0 16px 40px rgba(74,56,32,0.10);
  --shadow-sm: 0 1px 2px rgba(74,56,32,0.05), 0 6px 18px rgba(74,56,32,0.07);
  --radius:    16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  background-image:
    radial-gradient(120% 80% at 50% -20%, var(--canvas) 40%, var(--canvas-2) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a { color: var(--saffron-d); }

.wrap {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */

.site-head {
  text-align: center;
  padding: 30px 0 4px;
}

.site-head .invocation {
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: var(--saffron-d);
  margin: 0 0 10px;
  text-transform: none;
}

.site-head .site-name {
  font-family: "Tiro Devanagari Marathi", serif;
  font-weight: 400;
  font-size: 2rem;
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.site-head .site-name a { color: inherit; text-decoration: none; }

.site-head .byline {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* header action buttons — tags & bookmarks */
.head-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.head-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, color 0.16s ease,
              transform 0.16s ease, box-shadow 0.16s ease;
}
.head-btn:hover, .head-btn:focus-visible {
  color: var(--saffron-d);
  border-color: var(--saffron);
  transform: translateY(-1px);
}
.head-btn:active { transform: translateY(0); }
.head-btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.head-btn .bm-icon { fill: none; stroke: currentColor; stroke-width: 1.8; }
.head-btn.has-marks .bm-icon { fill: var(--saffron); stroke: var(--saffron); }

/* ---------- the verse card ---------- */

main { flex: 1; padding-bottom: 104px; }

.leaf {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 26px 0 20px;
  padding: 52px 34px 40px;
  overflow: hidden;
}

/* a single fine saffron accent, centered — like a tilak, not a bar */
.leaf::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--saffron);
  opacity: 0.85;
}

.shlok-text {
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 1.5rem;
  line-height: 2.1;
  text-align: center;
  margin: 0;
  white-space: pre-line;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.shlok-number {
  display: block;
  text-align: center;
  font-family: "Tiro Devanagari Marathi", serif;
  color: var(--saffron-d);
  font-size: 1rem;
  margin-top: 24px;
  letter-spacing: 0.04em;
  position: relative;
}
.shlok-number::before, .shlok-number::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2));
}
.shlok-number::before { right: calc(50% + 34px); transform: scaleX(-1); }
.shlok-number::after  { left:  calc(50% + 34px); }

/* bookmark button on the card */
.bookmark-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink-faint);
  line-height: 0;
  transition: color 0.16s ease, transform 0.16s ease;
}
.bookmark-btn:hover { color: var(--saffron); transform: scale(1.08); }
.bookmark-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.bookmark-btn[aria-pressed="true"] { color: var(--saffron); }
.bookmark-btn[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- meaning toggles ---------- */

.meanings {
  margin: 0 0 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.meanings details {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  overflow: hidden;
}
.meanings details + details { border-top: 1px solid var(--line); }

.meanings summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s ease;
}
.meanings summary:hover { color: var(--saffron-d); }
.meanings summary::-webkit-details-marker { display: none; }
.meanings summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--saffron);
  border-bottom: 2px solid var(--saffron);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}
.meanings details[open] summary::after { transform: rotate(-135deg); }

.meanings .meaning-body {
  padding: 2px 18px 18px;
  margin: 0;
  color: #43475C;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ---------- tags under shlok ---------- */

.shlok-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-block;
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--teal-2);
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 999px;
  padding: 5px 14px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip:hover, .chip:focus-visible {
  color: #fff;
  background: var(--teal-2);
  border-color: var(--teal-2);
}

/* ---------- bottom navigation bar ---------- */

.navbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(251, 247, 240, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}

.navbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav-link {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  text-decoration: none;
  padding: 10px 6px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-link[aria-disabled="true"] { color: var(--ink-faint); opacity: 0.5; pointer-events: none; }
.nav-link:hover { color: var(--saffron-d); }

.nav-pick {
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  background: var(--saffron);
  border: none;
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(232,137,59,0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.nav-pick:hover { background: var(--saffron-d); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(232,137,59,0.4); }
.nav-pick:active { transform: translateY(0); }

/* ---------- bottom sheets / dialogs ---------- */

.overlay {
  position: fixed; inset: 0;
  background: rgba(32, 36, 58, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 40;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.overlay.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--canvas);
  border-radius: 20px 20px 0 0;
  z-index: 50;
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.36, 1);
  max-height: 76svh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(32,36,58,0.18);
}
.sheet.open { transform: translateY(0); }
.sheet-tall { max-height: 86svh; }

/* grab handle */
.sheet::before {
  content: "";
  position: absolute;
  top: 9px; left: 50%;
  width: 40px; height: 4px;
  margin-left: -20px;
  border-radius: 99px;
  background: var(--line-2);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 8px;
}
.sheet-head h2 {
  margin: 0;
  font-family: "Tiro Devanagari Marathi", serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--ink);
}
.sheet-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--ink-faint); padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.sheet-close:hover { color: var(--ink); background: var(--line); }

.sheet-body { overflow-y: auto; padding: 8px 22px 28px; -webkit-overflow-scrolling: touch; }

.sheet-intro {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 2px 0 18px;
}

/* ---------- picker: search + view toggle ---------- */

.picker-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px 22px 12px;
  border-bottom: 1px solid var(--line);
}

.search-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.search-ico {
  position: absolute;
  left: 14px;
  width: 17px; height: 17px;
  fill: none; stroke: var(--ink-faint); stroke-width: 2; stroke-linecap: round;
  pointer-events: none;
}
.picker-search {
  width: 100%;
  font-family: inherit;
  font-size: 16px;            /* >=16px stops iOS zoom */
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 11px 16px 11px 40px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.picker-search::placeholder { color: var(--ink-faint); }
.picker-search:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232,137,59,0.15);
}

.view-toggle {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.view-toggle:hover { color: var(--saffron-d); border-color: var(--saffron); }
.view-toggle.is-grid { color: #fff; background: var(--saffron); border-color: var(--saffron); }
.view-toggle svg { width: 20px; height: 20px; fill: currentColor; }

.picker-empty { color: var(--ink-soft); text-align: center; padding: 28px 0; margin: 0; }

/* rich shlok index list */
.shlok-index { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: none; }

.ix-row { margin: 0 0 8px; }
.ix-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.ix-link:hover {
  border-color: var(--saffron);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}
.ix-row.current .ix-link {
  border-color: var(--saffron);
  background: linear-gradient(0deg, rgba(232,137,59,0.06), rgba(232,137,59,0.06)), var(--card);
}

.ix-num {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 1.05rem;
  color: var(--saffron-d);
  background: rgba(232,137,59,0.09);
  border-radius: 10px;
}
.ix-row.current .ix-num { background: var(--saffron); color: #fff; }

.ix-main { flex: 1; min-width: 0; }
.ix-line {
  display: block;
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 1.06rem;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ix-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.ix-tag {
  font-size: 0.72rem;
  color: var(--teal-2);
  background: rgba(21,122,110,0.08);
  border-radius: 99px;
  padding: 2px 9px;
}

.ix-mark { flex: none; color: var(--ink-faint); opacity: 0.45; line-height: 0; }
.ix-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ix-mark.on { color: var(--saffron); opacity: 1; }
.ix-mark.on svg { fill: currentColor; }

/* compact number grid (secondary view) */
.num-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.num-grid a {
  display: grid;
  place-items: center;
  text-decoration: none;
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 1.02rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 0;
  background: var(--card);
  transition: border-color 0.14s ease, color 0.14s ease;
}
.num-grid a:hover { border-color: var(--saffron); color: var(--saffron-d); }
.num-grid a.current { background: var(--saffron); border-color: var(--saffron); color: #fff; }

/* ---------- bookmarks sheet ---------- */

.bm-save {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 4px 0 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.bm-save:hover { border-color: var(--saffron); }
.bm-save .bm-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.bm-save[aria-pressed="true"] { color: var(--saffron-d); border-color: var(--saffron); }
.bm-save[aria-pressed="true"] .bm-icon { fill: var(--saffron); stroke: var(--saffron); }

.bm-list { list-style: none; margin: 0; padding: 0; }
.bm-list li { margin-bottom: 8px; }
.bm-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: "Tiro Devanagari Marathi", serif;
  transition: border-color 0.15s ease;
}
.bm-list a:hover { border-color: var(--saffron); }
.bm-empty { color: var(--ink-soft); font-size: 0.92rem; margin: 4px 0 10px; }

/* tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 8px; }
.tag-cloud .tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  padding: 10px 18px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
}
.tag-cloud .tag-chip:hover { color: #fff; background: var(--teal-2); border-color: var(--teal-2); }
.tag-chip .count {
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 0.8rem;
  color: var(--saffron-d);
  background: rgba(232,137,59,0.12);
  border-radius: 999px;
  padding: 1px 9px;
}
.tag-cloud .tag-chip:hover .count { color: #fff; background: rgba(255,255,255,0.22); }

/* ---------- tag page ---------- */

.page-title {
  font-family: "Tiro Devanagari Marathi", serif;
  font-weight: 400;
  font-size: 1.6rem;
  margin: 26px 0 4px;
  text-align: center;
  color: var(--ink);
}
.page-sub { text-align: center; color: var(--ink-soft); margin: 0 0 22px; font-size: 0.9rem; }

.shlok-list { list-style: none; margin: 0 0 30px; padding: 0; }
.shlok-list li { margin-bottom: 10px; }
.shlok-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.shlok-list a:hover { border-color: var(--saffron); transform: translateX(2px); }
.shlok-list .first-line {
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 1.1rem;
  flex: 1;
}
.shlok-list .which { color: var(--saffron-d); font-size: 0.84rem; font-weight: 600; white-space: nowrap; }

/* ---------- footer ---------- */

.site-foot {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.8rem;
  padding: 12px 0 120px;
}
.site-foot a { color: var(--ink-soft); }

/* ---------- byline about link ---------- */
.byline-dot { color: var(--ink-faint); margin: 0 2px; }
.about-link {
  font: inherit;
  font-size: 0.85rem;
  color: var(--saffron-d);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.about-link:hover { color: var(--saffron); }

/* ---------- intro banner (home only) ---------- */
.intro-banner {
  text-align: center;
  margin: 18px auto 0;
  max-width: 540px;
}
.intro-text {
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.intro-more {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--saffron-d);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
}
.intro-more:hover { color: var(--saffron); }

/* ---------- about sheet ---------- */
.about-body { line-height: 1.7; }
.about-lead {
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 1.12rem;
  color: var(--ink);
  margin: 2px 0 12px;
}
.about-en { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 18px; }
.about-how {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 16px;
  margin-bottom: 18px;
}
.about-how-title { font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.about-points { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.about-points li { margin-bottom: 6px; }
.about-points b { color: var(--ink); font-weight: 600; }
.about-foot {
  text-align: center;
  font-family: "Tiro Devanagari Marathi", serif;
  color: var(--saffron-d);
  font-size: 1rem;
  margin: 4px 0 4px;
}

/* ---------- picker filter pills ---------- */
.picker-filters {
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
  flex-wrap: wrap;
}
.filt {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--canvas);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 15px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filt:hover { border-color: var(--saffron); color: var(--saffron-d); }
.filt.is-on {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #FFF8EE;
}

/* ---------- featured cards (today / resume) ---------- */
.picker-featured {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.feat-card {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feat-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.feat-today {
  background: linear-gradient(135deg, rgba(197,86,42,0.10), rgba(233,136,62,0.06));
  border-color: rgba(197,86,42,0.28);
}
.feat-resume {
  background: linear-gradient(135deg, rgba(46,110,98,0.10), rgba(46,110,98,0.04));
  border-color: rgba(46,110,98,0.26);
}
.feat-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.feat-today .feat-label { color: var(--saffron-d); }
.feat-resume .feat-label { color: var(--teal-2); }
.feat-line {
  display: block;
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.4;
}
.feat-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 3px;
}

/* ---------- about: what/tour additions ---------- */
.about-what { margin-bottom: 16px; }
.about-what p:not(.about-how-title) {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}
.about-tour-btn {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--saffron-d);
  background: var(--card);
  border: 1.5px solid var(--saffron);
  border-radius: 12px;
  padding: 13px 16px;
  margin: 6px 0 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.about-tour-btn:hover { background: var(--saffron); color: #FFF8EE; }

/* ---------- guided tour ---------- */
.tour-ov {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.tour-ov.show { opacity: 1; pointer-events: auto; }
.tour-spot {
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(30, 24, 14, 0.66);
  transition: all 0.3s cubic-bezier(0.22, 0.8, 0.36, 1);
  pointer-events: none;
}
.tour-pop {
  position: fixed;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(30, 24, 14, 0.3);
  padding: 16px 18px 14px;
  z-index: 91;
}
.tour-title {
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.tour-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.tour-nav { display: flex; align-items: center; justify-content: space-between; }
.tour-count { font-size: 0.82rem; color: var(--ink-faint); }
.tour-btns { display: flex; gap: 8px; }
.tour-skip {
  font: inherit; font-size: 0.88rem;
  color: var(--ink-soft); background: none; border: none;
  padding: 8px 10px; cursor: pointer; border-radius: 8px;
}
.tour-skip:hover { color: var(--ink); }
.tour-next {
  font: inherit; font-size: 0.9rem; font-weight: 600;
  color: #FFF8EE; background: var(--saffron); border: none;
  padding: 8px 18px; cursor: pointer; border-radius: 999px;
  transition: background 0.15s ease;
}
.tour-next:hover { background: var(--saffron-d); }

/* homepage intro sub-line */
.intro-sub {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-faint);
  margin: 0 auto 10px;
  max-width: 520px;
}

/* ---------- navigation transitions ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.2s ease both; }
::view-transition-new(root) { animation: vt-in 0.28s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; } }

.leaf { animation: leaf-in 0.5s cubic-bezier(0.22, 0.8, 0.36, 1) both; }
.meanings, .shlok-tags { animation: leaf-in 0.5s cubic-bezier(0.22, 0.8, 0.36, 1) 0.07s both; }
@keyframes leaf-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- desktop ---------- */

@media (min-width: 720px) {
  body { font-size: 18px; }
  .site-head { padding-top: 46px; }
  .site-head .site-name { font-size: 2.3rem; }
  .shlok-text { font-size: 1.72rem; line-height: 2.2; }
  .leaf { padding: 52px 60px 38px; }

  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%;
    transform: translate(-50%, -46%) scale(0.97);
    opacity: 0;
    width: min(600px, 92vw);
    border-radius: 18px;
    max-height: 80vh;
    pointer-events: none;
    box-shadow: 0 24px 70px rgba(32,36,58,0.28);
  }
  .sheet.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
  .sheet::before { display: none; }
  .sheet-head { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet, .overlay, .meanings summary::after, .head-btn,
  .nav-pick, .ix-link, .shlok-list a { transition: none; }
  .leaf, .meanings, .shlok-tags { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }

/* ==================================================================
   SEO restructure additions — breadcrumbs, verse headings,
   homepage hub, grouped reading pages, full-text page.
   Everything below reuses the existing token system.
   ================================================================== */

/* ---------- breadcrumbs ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 18px 0 2px;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--saffron-d); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink-faint); }
.crumb-sep { color: var(--line-2); }

/* ---------- verse page heading (the real h1) ---------- */

.leaf-heading {
  text-align: center;
  margin: 6px 0 18px;
  font-weight: 400;
}
.leaf-heading .lh-num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: none;
  color: var(--saffron-d);
  font-family: "Mukta", system-ui, sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
}
.leaf-heading .lh-line {
  display: block;
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 1.06rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* meaning labels are now h2s — keep them looking exactly as before */
.meanings summary h2 {
  font: inherit;
  font-weight: inherit;
  margin: 0;
  padding: 0;
  color: inherit;
}

/* ---------- related links under a verse ---------- */

.leaf-also {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 26px 0 8px;
  text-align: center;
  font-size: 0.86rem;
}
.leaf-also a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.leaf-also a:hover { border-color: var(--saffron); color: var(--saffron-d); }

/* ---------- homepage hub ---------- */

.hub-h1 {
  font-family: "Tiro Devanagari Marathi", serif;
  font-weight: 400;
  font-size: 1.72rem;
  line-height: 1.35;
  text-align: center;
  margin: 22px 0 10px;
  color: var(--ink);
}
.hub-lead {
  text-align: center;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 22px;
}

.hub-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 34px;
}
.cta {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.cta:hover { border-color: var(--saffron); transform: translateY(-1px); }
.cta-main {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}
.cta-main:hover { background: var(--saffron-d); border-color: var(--saffron-d); }

.hub-prose { margin: 0 0 34px; }
.hub-prose h2,
.hub-groups h2,
.hub-tags h2,
.hub-index h2,
.hub-en h2 {
  font-family: "Tiro Devanagari Marathi", serif;
  font-weight: 400;
  font-size: 1.28rem;
  color: var(--ink);
  margin: 30px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.hub-prose p {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.78;
  margin: 0 0 14px;
}
.hub-prose b { font-weight: 600; }
.hub-prose a { color: var(--saffron-d); }

.hub-en p { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.72; margin: 0; }

/* ---------- group grid ---------- */

.grp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin: 14px 0 6px;
}
.grp-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.grp-cell:hover { border-color: var(--saffron); color: var(--saffron-d); }
.grp-cell.is-on {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}

/* ---------- collapsible 205-line index ---------- */

.idx-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.idx-wrap summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.idx-wrap summary::-webkit-details-marker { display: none; }
.idx-wrap[open] summary { border-bottom: 1px solid var(--line); }

.idx-list { list-style: none; margin: 0; padding: 0; }
.idx-list li + li { border-top: 1px solid var(--line); }
.idx-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.12s ease;
}
.idx-list a:hover { background: var(--canvas-2); }
.idx-n {
  min-width: 34px;
  color: var(--saffron-d);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.idx-line {
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 0.98rem;
  line-height: 1.45;
}

/* ---------- verse blocks (sampoorn + group pages) ---------- */

.verse-flow { margin: 0 0 30px; }

.vb {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px 22px;
  margin: 0 0 14px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 20px;
}
.vb-head {
  margin: 0 0 10px;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  font-weight: 600;
  font-family: "Mukta", system-ui, sans-serif;
}
.vb-head a { color: var(--saffron-d); text-decoration: none; }
.vb-head a:hover { text-decoration: underline; }
.vb-text {
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: 1.2rem;
  line-height: 2;
  white-space: pre-line;
  margin: 0;
  color: var(--ink);
}
.vb-meaning {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #43475C;
  font-size: 0.95rem;
  line-height: 1.72;
}

/* ---------- footer nav ---------- */

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  margin: 0 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.foot-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
}
.foot-nav a:hover { color: var(--saffron-d); text-decoration: underline; }

/* ---------- wider screens ---------- */

@media (min-width: 700px) {
  .hub-h1 { font-size: 2rem; }
  .leaf-heading .lh-line { font-size: 1.16rem; }
  .vb-text { font-size: 1.32rem; }
  .leaf-also { flex-direction: row; justify-content: center; }
  .leaf-also a { flex: 0 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cta, .grp-cell, .leaf-also a, .idx-list a { transition: none; }
}
