/* ═══════════════════════════════════════════════════════════════════
   NakshatraZone — Sacred Book (flipbook result experience)
   Works with StPageFlip (.stf__* classes) — pages are .hz-page.
   ═══════════════════════════════════════════════════════════════════ */

/* Stage that holds the floating book over the dimmed page.
   StPageFlip 'stretch' sizes the book from THIS element's width, so the
   viewport-fit cap lives here: width derived from viewport height via the
   page aspect ratio (791/560 ≈ 1.413 → two-page spread width ≈ height × 1.4155),
   so the full spread height always fits the screen. The book grows to fill
   the available height; content is scaled to match (see applyPageZoom). */
.hz-book-stage {
  position: relative; z-index: 5; display: none;
  padding: 16px 0 22px;
  margin: 0 auto;
  /* 156px reserve = sticky header (64) + toolbar (~50) + padding + safety buffer */
  max-width: clamp(460px, calc((100vh - 156px) * 1.4155), 1560px);
  max-width: clamp(460px, calc((100dvh - 156px) * 1.4155), 1560px);
  scroll-margin-top: 74px; /* clear the sticky header when scrolled into view */
}
.hz-book-stage.open { display: block; }
@media (max-width: 700px) {
  /* single-page (portrait) mode on narrow screens — cap by height too */
  .hz-book-stage {
    max-width: clamp(240px, calc((100vh - 150px) * 0.7078), 620px);
    max-width: clamp(240px, calc((100dvh - 150px) * 0.7078), 620px);
  }
}

.hz-book-toolbar {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.hz-book-toolbar button, .hz-book-toolbar a.hz-tool {
  font-family: var(--hz-font-body); font-weight: 700; font-size: 0.85rem;
  color: #f0e3c8; background: rgba(43, 24, 4, 0.55); border: 1px solid rgba(227, 182, 79, 0.4);
  border-radius: 999px; padding: 9px 20px; cursor: pointer; transition: background 0.15s;
}
.hz-book-toolbar button:hover, .hz-book-toolbar a.hz-tool:hover { background: rgba(227, 182, 79, 0.22); }
.hz-book-toolbar .hz-page-indicator { color: #d9c49a; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; }

#hzBook { margin: 0 auto; }
/* short laptop screens: trim the chrome around the book to give it room */
@media (max-height: 760px) {
  .hz-book-stage { padding-top: 12px; }
  .hz-book-toolbar { margin-bottom: 10px; }
}
.stf__parent { margin: 0 auto; }

/* ── The page itself ────────────────────────────────────────────── */
.hz-page {
  background:
    /* soft mottled stains so the tone is never flat like a screen */
    radial-gradient(58% 42% at 20% 16%, rgba(176, 136, 66, 0.07), transparent 62%),
    radial-gradient(52% 40% at 84% 74%, rgba(150, 108, 48, 0.06), transparent 62%),
    radial-gradient(40% 30% at 66% 30%, rgba(120, 84, 30, 0.04), transparent 66%),
    radial-gradient(140% 100% at 50% 0%, rgba(255, 250, 235, 0.55), transparent 55%),
    linear-gradient(160deg, #f8f1de 0%, #f1e6c9 55%, #e9dcba 100%);
  color: var(--hz-ink);
  overflow: hidden;
  border: 1px solid rgba(166, 119, 23, 0.25);
  box-shadow: inset 0 0 60px rgba(120, 84, 30, 0.12);
}
/* paper texture — fine grain + soft laid-paper fibres, multiplied into the tone */
.hz-page::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; z-index: 0;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.014 0.06' numOctaves='3' seed='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23f)' opacity='0.09'/%3E%3C/svg%3E");
  background-size: 140px 140px, 320px 320px;
  background-repeat: repeat, repeat;
}
/* faint centered Ganesh watermark on every book page (covers excluded — they carry their own art) */
.hz-page:not(.hz-cover)::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url('/static/heritage/ganesh-watermark.png');
  background-repeat: no-repeat; background-position: center 48%; background-size: 66% auto;
  opacity: 0.055;
}
/* inner spine shading — StPageFlip marks left/right pages */
.hz-page[data-side="left"]  { box-shadow: inset -26px 0 34px -22px rgba(90, 60, 15, 0.4), inset 0 0 60px rgba(120, 84, 30, 0.1); }
.hz-page[data-side="right"] { box-shadow: inset  26px 0 34px -22px rgba(90, 60, 15, 0.4), inset 0 0 60px rgba(120, 84, 30, 0.1); }
/* single-page (portrait) mode has no spine — drop the side shading */
.stf__wrapper.--portrait .hz-page[data-side] { box-shadow: inset 0 0 60px rgba(120, 84, 30, 0.12); }

.hz-page-inner {
  position: relative; z-index: 1; height: 100%;
  padding: 34px 32px 50px; display: flex; flex-direction: column;
  overflow: hidden;
}
/* ornamental inner frame */
.hz-page-inner.framed { margin: 12px; padding: 26px 24px 50px; border: 1px solid rgba(166, 119, 23, 0.45); }
.hz-page-inner.framed::before, .hz-page-inner.framed::after {
  content: '❧'; position: absolute; color: rgba(166, 119, 23, 0.6); font-size: 0.9rem;
}
.hz-page-inner.framed::before { top: 4px; left: 8px; }
.hz-page-inner.framed::after { bottom: 4px; right: 8px; transform: rotate(180deg); }

.hz-page-footer {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 24px 12px; text-align: center;
  font-size: 0.66rem; letter-spacing: 0.18em; color: var(--hz-ink-faint); text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  /* parchment fade behind the credit so any clipped content tucks under it cleanly */
  background: linear-gradient(180deg, transparent, #ece0c2 55%);
  pointer-events: none;
}
.hz-page-footer::before, .hz-page-footer::after { content: '—'; color: rgba(166, 119, 23, 0.5); }

/* ── Cover page ─────────────────────────────────────────────────── */
.hz-cover .hz-page-inner { align-items: center; text-align: center; justify-content: space-between; }
.hz-cover-border {
  position: absolute; inset: 14px; pointer-events: none;
  border: 2px solid rgba(166, 119, 23, 0.55); border-radius: 4px;
  background:
    linear-gradient(45deg, transparent 48%, rgba(166,119,23,0.18) 50%, transparent 52%) 0 0 / 18px 18px;
  background-clip: border-box;
}
.hz-cover-border::before {
  content: ''; position: absolute; inset: 5px;
  border: 1px solid rgba(123, 45, 38, 0.45); border-radius: 2px;
}
.hz-invocation {
  font-family: var(--hz-font-indic); font-size: 1.28rem; font-weight: 700;
  color: var(--hz-maroon); margin-top: 26px; letter-spacing: 0.02em;
}
.hz-cover-medallion {
  width: 168px; height: 168px; border-radius: 50%; margin: 12px auto;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 38% 30%, #fdf4dd, #efe0b8 60%, #e2cd9a);
  border: 3px double var(--hz-gold-deep);
  box-shadow: 0 4px 18px rgba(120, 80, 20, 0.3), inset 0 0 24px rgba(166, 119, 23, 0.25);
}
.hz-cover-medallion .om-glyph {
  font-size: 5.2rem; line-height: 1; color: var(--hz-maroon);
  text-shadow: 0 2px 0 rgba(255, 246, 220, 0.8), 0 4px 12px rgba(94, 31, 26, 0.35);
  font-family: var(--hz-font-indic);
}
.hz-cover-shloka {
  font-family: var(--hz-font-indic); font-size: 0.82rem; line-height: 1.9;
  color: var(--hz-ink-soft); margin: 14px 0 6px;
}
.hz-cover-name {
  font-family: var(--hz-font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--hz-ink); margin: 10px 0 2px;
}
.hz-cover-brand { font-family: var(--hz-font-display); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--hz-gold-deep); text-transform: uppercase; }
.hz-cover-title { font-family: var(--hz-font-display); font-size: 1.02rem; letter-spacing: 0.3em; color: var(--hz-maroon); text-transform: uppercase; margin-top: 4px; }

/* ── Generic chapter heading ────────────────────────────────────── */
.hz-chap-eyebrow { text-align: center; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; color: var(--hz-gold-deep); margin-bottom: 3px; }
.hz-chap-title {
  font-family: var(--hz-font-display); text-align: center; font-size: 1.34rem;
  color: var(--hz-maroon); margin: 0 0 2px;
}
.hz-chap-sub { text-align: center; font-size: 0.8rem; color: var(--hz-ink-faint); font-style: italic; margin-bottom: 8px; }
.hz-chap-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 10px; color: var(--hz-gold-deep); }
.hz-chap-rule::before, .hz-chap-rule::after { content: ''; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, rgba(166, 119, 23, 0.7)); }
.hz-chap-rule::after { background: linear-gradient(90deg, rgba(166, 119, 23, 0.7), transparent); }

/* decorative art band at top of chapter pages — Lord Shiva painting */
.hz-chap-art {
  flex: 0 0 auto;            /* never let the flex column squeeze the banner */
  height: 158px; width: 100%; margin: -6px -6px 12px; border-radius: 6px;
  overflow: hidden; position: relative;
  border: 1px solid rgba(166, 119, 23, 0.55);
  box-shadow: inset 0 0 0 3px rgba(253, 244, 221, 0.5), 0 3px 10px rgba(90, 60, 15, 0.22);
}
.hz-chap-art-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 16%;
  display: block;
}
/* soft parchment vignette so the photo melts into the page edges */
.hz-chap-art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 26px rgba(120, 84, 30, 0.35);
  background: linear-gradient(180deg, transparent 62%, rgba(241, 230, 201, 0.45) 100%);
}
/* fallback gradient band if the image is missing */
.hz-chap-art-fallback {
  background:
    radial-gradient(80px 50px at 82% 20%, rgba(123, 45, 38, 0.35), transparent 70%),
    radial-gradient(100px 60px at 50% 50%, rgba(201, 150, 46, 0.35), transparent 75%),
    linear-gradient(120deg, #8a5a26, #a5793c 50%, #7b4a1c);
}

/* ── Milan book — compact gold line-art banner (lighter than paintings) ── */
.hz-chap-art-milan { height: 112px; margin-bottom: 10px; }
.hz-chap-art-milan .hz-chap-art-img { object-position: center 35%; }

/* ── Milan book — the couple's yoni animal medallions face each other ── */
.hz-yoni-strip {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin: 4px auto 10px; padding: 10px 16px;
  background: rgba(253, 246, 230, 0.75);
  border: 1px solid rgba(201, 150, 46, 0.5); border-radius: 12px;
  max-width: 320px;
}
.hz-yoni-side { text-align: center; }
.hz-yoni-side img {
  width: 62px; height: 62px; border-radius: 50%;
  border: 2px solid rgba(166, 119, 23, 0.65); display: block; margin: 0 auto 3px;
  box-shadow: 0 2px 6px rgba(90, 60, 15, 0.25);
}
.hz-yoni-name   { font-weight: 700; font-size: 0.72rem; color: var(--hz-ink, #3a2a14); }
.hz-yoni-animal { font-size: 0.62rem; font-style: italic; color: var(--hz-ink-faint, #8a6f4d); }
.hz-yoni-heart  { font-size: 1.3rem; color: #b8421e; }

/* ── Cover deity image (Lord Ganesha) ───────────────────────────── */
.hz-cover-deity {
  width: 200px; height: 240px; margin: 10px auto 4px;
  position: relative; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--hz-gold-deep);
  box-shadow: 0 6px 22px rgba(120, 80, 20, 0.32), inset 0 0 0 3px rgba(253, 244, 221, 0.55);
  background: radial-gradient(circle at 38% 30%, #fdf4dd, #efe0b8 60%, #e2cd9a);
  display: flex; align-items: center; justify-content: center;
}
.hz-cover-deity img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  display: block;
}
.hz-cover-deity .hz-deity-om {
  display: none;
  font-family: var(--hz-font-indic); font-size: 5rem; color: var(--hz-maroon);
  text-shadow: 0 2px 0 rgba(255, 246, 220, 0.8), 0 4px 12px rgba(94, 31, 26, 0.35);
}
.hz-cover-deity.hz-deity-fallback .hz-deity-om { display: block; }

/* ── Detail rows (birth details spread) ─────────────────────────── */
.hz-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; margin-top: 6px; }
.hz-detail { padding: 4px 0; }
.hz-detail .k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hz-ink-faint); }
.hz-detail .v { font-family: var(--hz-font-display); font-size: 1.02rem; font-weight: 700; color: var(--hz-maroon); margin-top: 2px; word-break: break-word; }
.hz-detail .v.small { font-size: 0.9rem; }

/* Sun/Moon seals */
.hz-seals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.hz-seal { text-align: center; padding: 7px 8px 6px; border: 1px solid rgba(166, 119, 23, 0.5); position: relative; }
.hz-seal::before { content: ''; position: absolute; inset: 3px; border: 1px solid rgba(166, 119, 23, 0.25); }
.hz-seal .seal-label { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.2em; color: var(--hz-ink-faint); text-transform: uppercase; }
.hz-seal .seal-ring {
  width: 52px; height: 52px; margin: 5px auto; border-radius: 50%;
  border: 2.5px double var(--hz-gold-deep);
  background: radial-gradient(circle at 35% 30%, #f4e9cf, #e0cda1);
  box-shadow: inset 0 0 14px rgba(120, 80, 20, 0.35); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hz-seal .seal-ring img { width: 62%; height: 62%; object-fit: contain; filter: sepia(0.6) saturate(0.7) contrast(1.05); }
.hz-seal .seal-sign { font-family: var(--hz-font-display); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.1em; color: var(--hz-ink); text-transform: uppercase; }
.hz-seal .seal-alt { margin-top: 4px; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em; color: var(--hz-ink-faint); text-transform: uppercase; }

/* ── Chart page (parchment scroll) ──────────────────────────────── */
.hz-scroll-wrap { margin: 8px auto 0; max-width: 330px; width: 100%; }
.hz-scroll-rod {
  height: 26px; border-radius: 13px;
  background: linear-gradient(180deg, #f3e8cd 0%, #cbb789 70%, #a68f5e 100%);
  box-shadow: 0 3px 8px rgba(70, 45, 10, 0.4); position: relative;
}
.hz-scroll-rod::before, .hz-scroll-rod::after {
  content: ''; position: absolute; top: 2px; width: 16px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e9d9ae, #a68f5e);
}
.hz-scroll-rod::before { left: -8px; } .hz-scroll-rod::after { right: -8px; }
.hz-scroll-body {
  margin: 0 10px; padding: 18px 14px;
  background: linear-gradient(180deg, #f3ead2, #ecdfbd);
  box-shadow: inset 0 0 26px rgba(120, 84, 30, 0.22);
  border-left: 1px solid rgba(166, 119, 23, 0.35); border-right: 1px solid rgba(166, 119, 23, 0.35);
}
.hz-chart-svg { display: block; width: 100%; height: auto; }
.hz-chart-svg .frame { stroke: #8a5a26; stroke-width: 1.6; fill: none; }
.hz-chart-svg .houseno { font: 700 11px var(--hz-font-body); fill: #94805f; }
.hz-chart-svg .planet { font: 700 10.5px var(--hz-font-body); fill: #5e1f1a; }
.hz-chart-svg .planet.retro { fill: #7b2d26; font-style: italic; }
.hz-chart-caption { text-align: center; font-size: 0.72rem; color: var(--hz-ink-faint); margin-top: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Table of contents ──────────────────────────────────────────── */
.hz-toc-list { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: toc; }
.hz-toc-list li {
  counter-increment: toc; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 252, 243, 0.75); border: 1px solid rgba(166, 119, 23, 0.35);
  border-radius: 999px; padding: 10px 18px 10px 8px; margin-bottom: 10px;
  font-family: var(--hz-font-display); font-weight: 700; font-size: 0.92rem; color: var(--hz-ink);
}
.hz-toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--hz-gold-deep); color: var(--hz-gold-deep);
  font-family: var(--hz-font-body); font-size: 0.78rem; font-weight: 800;
  background: radial-gradient(circle at 35% 30%, #fbf3dd, #eeddb4);
}
.hz-toc-list li .toc-page { margin-left: auto; font-family: var(--hz-font-body); font-size: 0.76rem; color: var(--hz-ink-faint); font-weight: 700; }

/* ── Summary teaser cards ───────────────────────────────────────── */
.hz-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.hz-teaser {
  position: relative; background: rgba(255, 252, 243, 0.8);
  border: 1px solid rgba(166, 119, 23, 0.4); border-radius: 8px; padding: 9px 11px 8px;
  display: flex; flex-direction: column;
}
.hz-teaser .t-head { display: flex; align-items: center; gap: 7px; }
.hz-teaser .t-icon {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid var(--hz-gold-deep); display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; background: radial-gradient(circle at 35% 30%, #fbf3dd, #eeddb4);
}
.hz-teaser .t-title { font-family: var(--hz-font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: var(--hz-ink); text-transform: uppercase; }
.hz-teaser .t-count { position: absolute; top: 9px; right: 12px; font-family: var(--hz-font-display); font-size: 1.02rem; font-weight: 800; color: var(--hz-gold-deep); }
.hz-teaser .t-hook { font-size: 0.78rem; font-weight: 700; color: var(--hz-maroon); margin: 5px 0 2px; }
.hz-teaser .t-body { font-size: 0.73rem; line-height: 1.45; color: var(--hz-ink-soft); flex: 1; }
.hz-teaser .t-link { font-size: 0.73rem; font-weight: 800; color: var(--hz-gold-deep); margin-top: 6px; padding-top: 5px; border-top: 1px dashed rgba(166, 119, 23, 0.4); cursor: pointer; }
.hz-teaser .t-link:hover { color: var(--hz-maroon); }

/* ── Milan "sealed chapters" curiosity cards ────────────────────── */
.hz-teaser-sealed { border-color: rgba(123, 45, 38, 0.45); }
/* the SEALED ribbon owns the top-right corner — flow the value under the title */
.hz-teaser-sealed .t-count { position: static; margin: 2px 0 0; font-size: 0.98rem; }
.hz-teaser-sealed .t-head { padding-right: 44px; }
.hz-teaser-sealed::after {
  content: 'SEALED'; position: absolute; top: -1px; right: -1px;
  font-size: 0.5rem; font-weight: 900; letter-spacing: 0.14em;
  color: #fdf3df; background: linear-gradient(180deg, #8a3a30, #6d2620);
  padding: 3px 8px 2px; border-radius: 0 8px 0 8px;
}
.hz-teaser-sealed .t-link { color: var(--hz-maroon); }
.hz-teaser-sealed .t-link:hover { color: var(--hz-maroon-deep); }

/* ── Milan cover — entwined wedding rings ───────────────────────── */
.hz-cover-rings { width: 150px; margin: 6px auto; }
.hz-cover-rings svg { width: 100%; display: block; overflow: visible; }
.hz-cover-rings circle {
  fill: none; stroke-width: 4.5;
  stroke: var(--hz-gold-deep);
}
.hz-cover-rings .r2 { stroke: var(--hz-maroon); opacity: 0.85; }
.hz-cover-rings .gem {
  fill: var(--hz-gold-deep);
  animation: hzGemTwinkle 3s ease-in-out infinite;
}
@keyframes hzGemTwinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.hz-cover-tag {
  font-size: 0.78rem; font-style: italic; color: var(--hz-ink-faint);
  margin: 6px 0 8px;
}
.hz-unlock-assure {
  text-align: center; font-size: 0.7rem; color: var(--hz-ink-faint);
  letter-spacing: 0.06em; margin-top: 10px;
}

/* ── Chapter body text + blur gate ──────────────────────────────── */
.hz-prose { font-size: 0.87rem; line-height: 1.62; color: var(--hz-ink); }
.hz-prose p { margin: 0 0 8px; }
.hz-prose .lead-word { font-family: var(--hz-font-display); font-weight: 700; color: var(--hz-maroon); }
.hz-blur-gate { position: relative; margin-top: 4px; }
.hz-blur-text {
  filter: blur(4.5px); user-select: none; pointer-events: none;
  font-size: 0.85rem; line-height: 1.55; color: var(--hz-ink-soft); opacity: 0.85;
}
.hz-blur-gate::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(243, 234, 210, 0.55) 55%, rgba(243, 234, 210, 0.92) 100%);
}
.hz-unlock-inline {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: -14px; text-align: center;
}
.hz-unlock-inline a {
  font-size: 0.82rem; font-weight: 800; color: #fdf3df; cursor: pointer;
  padding: 8px 20px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, #a5793c, #7b4a1c);
  border: 1px solid rgba(227, 182, 79, 0.65);
  box-shadow: 0 3px 10px rgba(90, 60, 15, 0.3);
  animation: hzUnlockGlow 3.4s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.hz-unlock-inline a:hover { color: #fff; transform: translateY(-1px); }
.hz-unlock-inline .lock { font-size: 0.9rem; }
@keyframes hzUnlockGlow {
  0%, 100% { box-shadow: 0 3px 10px rgba(90, 60, 15, 0.3); }
  50%      { box-shadow: 0 3px 10px rgba(90, 60, 15, 0.3), 0 0 18px 2px rgba(227, 182, 79, 0.45); }
}
/* personalisation line riding on the fill fade, above the unlock pill */
.hz-fill-note {
  position: relative; z-index: 2; text-align: center;
  margin: -20px 0 8px; font-size: 0.72rem; font-style: italic;
  color: var(--hz-ink-faint); letter-spacing: 0.04em;
}

/* Page-filling blurred gate — grows to consume all remaining page height so the
   page looks full of "more to read"; shrinks to nothing on already-full pages.
   The unlock link is a separate flex item that always stays visible. */
.hz-fill { flex: 1 1 0; min-height: 0; overflow: hidden; position: relative; margin-top: 8px; }
.hz-fill-text {
  filter: blur(4.5px); user-select: none; pointer-events: none;
  font-size: 0.85rem; line-height: 1.62; color: var(--hz-ink-soft); opacity: 0.85;
  text-align: justify;
}
.hz-fill::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  background: linear-gradient(180deg, transparent, rgba(243, 234, 210, 0.6) 45%, #f3ead2 82%);
  pointer-events: none;
}
.hz-fill + .hz-unlock-inline { flex: 0 0 auto; margin-top: 6px; }

/* Yoga / dosha list rows */
.hz-name-list { list-style: none; padding: 0; margin: 6px 0; }
.hz-name-list li {
  display: flex; align-items: baseline; gap: 9px; padding: 7px 2px;
  border-bottom: 1px dashed rgba(166, 119, 23, 0.35); font-size: 0.85rem;
}
.hz-name-list li .nm { font-weight: 700; color: var(--hz-ink); font-family: var(--hz-font-display); }
.hz-name-list li .tag { margin-left: auto; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hz-gold-deep); }
.hz-name-list li .tag.warn { color: var(--hz-maroon); }

/* Verdict chip (KP domains) */
.hz-verdict {
  display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em;
  color: #fdf3df; background: linear-gradient(180deg, #8a5a26, #6d4118);
  border-radius: 999px; padding: 4px 14px; margin: 4px 0 10px;
}

/* ── Final unlock/upsell page ───────────────────────────────────── */
.hz-page-unlock .hz-page-inner { text-align: center; }
.hz-unlock-hero-lock {
  width: 72px; height: 72px; margin: 6px auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  border: 2.5px double var(--hz-gold-deep);
  background: radial-gradient(circle at 35% 30%, #fbf3dd, #eeddb4);
}
.hz-page-unlock .hz-btn-gold { max-width: 280px; margin: 14px auto 0; }
.hz-download-btn { max-width: 300px; margin: 14px auto 0; }

/* ── Titled subsections (Panchang / Personality detail pages) ────── */
.hz-sub { margin-bottom: 10px; }
.hz-sub:last-child { margin-bottom: 0; }
.hz-sub-title {
  font-family: var(--hz-font-display); font-size: 0.98rem; font-weight: 700;
  color: var(--hz-maroon); margin: 0 0 3px; display: flex; align-items: center; gap: 9px;
}
.hz-sub-title::before { content: '❧'; color: var(--hz-gold-deep); font-size: 0.85rem; }
.hz-sub-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(166,119,23,0.5), transparent); }
.hz-sub .hz-prose { font-size: 0.85rem; line-height: 1.55; }
.hz-sub .hz-prose p { margin: 0 0 4px; }
/* compact blur inside subsections */
.hz-blur-compact { max-height: 46px; overflow: hidden; }
.hz-blur-compact .hz-blur-text { font-size: 0.8rem; line-height: 1.5; }
.hz-blur-compact + .hz-unlock-inline { margin-top: -18px; }

/* ── Planet medallion (planet-in-house pages) ───────────────────── */
.hz-planet-medallion {
  width: 132px; height: 132px; margin: 6px auto 0; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 38% 30%, #fbf3dd, #ece0bd 65%, #ddca9f);
  border: 2px double var(--hz-gold-deep); position: relative;
  box-shadow: inset 0 0 20px rgba(120, 80, 20, 0.22), 0 4px 14px rgba(120, 80, 20, 0.2);
}
.hz-planet-medallion::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(166, 119, 23, 0.4); border-radius: 50%; }
.hz-planet-medallion .pm-label { font-family: var(--hz-font-body); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.24em; color: var(--hz-ink-faint); margin-bottom: 4px; z-index: 1; }
.hz-planet-medallion .pm-glyph { font-size: 2.7rem; line-height: 1; color: var(--hz-maroon); text-shadow: 0 2px 4px rgba(94, 31, 26, 0.25); z-index: 1; }
.hz-planet-medallion .pm-img { width: 62%; height: 62%; object-fit: contain; z-index: 1; filter: sepia(0.18) saturate(0.92) drop-shadow(0 2px 4px rgba(94, 31, 26, 0.2)); }

/* ── Book tables (Bhav Phal, Gemstone, Dasha) ───────────────────── */
.hz-book-table { width: 100%; border-collapse: collapse; font-size: 0.76rem; margin-top: 4px; }
.hz-book-table th {
  background: linear-gradient(180deg, var(--hz-maroon), var(--hz-maroon-deep));
  color: #fdf3df; font-family: var(--hz-font-body); font-weight: 700; letter-spacing: 0.04em;
  padding: 7px 8px; text-align: left; font-size: 0.68rem; text-transform: uppercase;
}
.hz-book-table td { padding: 3.5px 8px; border-bottom: 1px solid rgba(166, 119, 23, 0.28); color: var(--hz-ink); }
.hz-book-table tbody tr:nth-child(even) { background: rgba(201, 150, 46, 0.08); }
.hz-book-table td:first-child { font-family: var(--hz-font-display); font-weight: 700; color: var(--hz-maroon); }
.hz-book-table tr.hz-row-now td { background: rgba(201, 150, 46, 0.24); font-weight: 700; }
.hz-dasha-table tr.now { background: rgba(201, 150, 46, 0.22) !important; }
.hz-dasha-table td.now-tag { color: var(--hz-maroon); font-weight: 800; font-size: 0.64rem; letter-spacing: 0.08em; }

/* ── Strength bars (Shadbala) ───────────────────────────────────── */
.hz-bars { margin-top: 8px; }
.hz-bar-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(166, 119, 23, 0.28); }
.hz-bar-lbl { width: 88px; flex-shrink: 0; font-family: var(--hz-font-display); font-weight: 700; font-size: 0.82rem; color: var(--hz-ink); }
.hz-bar-track { flex: 1; height: 12px; border-radius: 8px; background: rgba(120, 84, 30, 0.16); overflow: hidden; border: 1px solid rgba(166, 119, 23, 0.3); }
.hz-bar-fill { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--hz-gold), var(--hz-gold-deep)); }
.hz-bar-fill.strong { background: linear-gradient(90deg, var(--hz-success), #2f5a2b); }
.hz-bar-val { width: 74px; flex-shrink: 0; text-align: right; font-size: 0.7rem; font-weight: 700; color: var(--hz-ink-soft); }

/* ── Milan: guna score dial ─────────────────────────────────────── */
.hz-dial-wrap { text-align: center; margin: 6px 0 2px; }
.hz-dial { width: 210px; height: 130px; margin: 0 auto; display: block; }
.hz-dial .track { fill: none; stroke: rgba(120, 84, 30, 0.18); stroke-width: 16; stroke-linecap: round; }
.hz-dial .arc { fill: none; stroke-width: 16; stroke-linecap: round; }
.hz-dial .arc.good { stroke: var(--hz-success); }
.hz-dial .arc.mid { stroke: var(--hz-gold-deep); }
.hz-dial .arc.low { stroke: var(--hz-maroon); }
.hz-dial-score { font-family: var(--hz-font-display); font-size: 2.1rem; font-weight: 800; color: var(--hz-maroon); line-height: 1; margin-top: -46px; position: relative; }
.hz-dial-score small { font-size: 0.95rem; color: var(--hz-ink-faint); font-weight: 700; }
.hz-dial-verdict { font-family: var(--hz-font-display); font-size: 1.02rem; font-weight: 700; color: var(--hz-ink); margin-top: 8px; }
.hz-dial-tier { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 999px; padding: 4px 14px; margin-top: 8px; }
.hz-dial-tier.good { color: #fdf3df; background: linear-gradient(180deg, var(--hz-success), #2f5a2b); }
.hz-dial-tier.mid  { color: #fdf3df; background: linear-gradient(180deg, var(--hz-gold-deep), #7a5710); }
.hz-dial-tier.low  { color: #fdf3df; background: linear-gradient(180deg, #9c3b31, var(--hz-maroon-deep)); }

/* Milan status chips (manglik / dosha verdicts) */
.hz-chip { display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 3px 12px; border: 1px solid; }
.hz-chip.ok   { color: var(--hz-success); border-color: rgba(62, 107, 58, 0.5); background: rgba(62, 107, 58, 0.1); }
.hz-chip.warn { color: var(--hz-maroon); border-color: rgba(123, 45, 38, 0.45); background: rgba(123, 45, 38, 0.08); }
.hz-chip.gold { color: var(--hz-gold-deep); border-color: rgba(166, 119, 23, 0.5); background: rgba(166, 119, 23, 0.1); }

/* Milan cover: two names joined */
.hz-cover-duo { font-family: var(--hz-font-display); font-size: 1.32rem; font-weight: 700; color: var(--hz-ink); margin: 10px 0 2px; line-height: 1.5; }
.hz-cover-duo .amp { display: block; font-size: 1rem; color: var(--hz-gold-deep); }

/* ── Sticky mobile unlock bar ───────────────────────────────────── */
.hz-mobile-unlock-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(58, 33, 8, 0.94), rgba(40, 22, 4, 0.98));
  border-top: 1px solid rgba(227, 182, 79, 0.35);
  backdrop-filter: blur(8px);
}
.hz-mobile-unlock-bar .hz-btn-gold { font-size: 0.95rem; padding: 13px 16px; }
.hz-mobile-unlock-bar .hz-btn-gold s { opacity: 0.6; font-weight: 600; margin-left: 2px; }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hz-book-stage { padding: 18px 0 40px; }
  .hz-book-toolbar { gap: 8px; padding: 0 10px; }
  .hz-book-toolbar button, .hz-book-toolbar a.hz-tool { padding: 8px 14px; font-size: 0.78rem; }
  .hz-page-inner { padding: 22px 18px 28px; }
  .hz-page-inner.framed { margin: 8px; padding: 18px 14px 24px; }
  .hz-detail-grid { gap: 2px 10px; }
  .hz-summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hz-chap-title { font-size: 1.2rem; }
  .hz-cover-medallion { width: 130px; height: 130px; }
  .hz-cover-medallion .om-glyph { font-size: 4rem; }
}
@media (max-width: 760px) {
  .hz-mobile-unlock-bar.show { display: block; }
  /* keep floating buttons clear of the unlock bar */
  body.hz-has-unlockbar .hz-wa { bottom: 92px; }
  body.hz-has-unlockbar .hz-footer { padding-bottom: 78px; }
}
