/* ==========================================================================
   Chozhi Prasannam (சோழி பிரசன்னம்) — HosurOnline
   Vanilla CSS · variables · grid/flex · hardware-accelerated transforms
   ========================================================================== */
.chozhi, .cz-heritage {
  --maroon: #2B0909;
  --maroon-2: #4A1414;
  --gold: #D4AF37;
  --gold-2: #FFD54A;
  --cream: #F5E6CC;
  --vermilion: #C81D11;
  --ivory: #FAF9F6;
  --ink: #2a1a12;
  --muted: #6b5644;
  --radius: 14px;
  --sans: "Noto Sans Tamil", "Latha", "Nirmala UI", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Noto Serif Tamil", "Vijaya", "Latha", Georgia, serif;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
}
.chozhi *, .chozhi *::before, .chozhi *::after { box-sizing: border-box; }

/* bilingual switching — both languages are in the DOM (SEO), one is shown */
html[lang="ta"] .chozhi .en, html[lang="en"] .chozhi .ta,
html[lang="ta"] .cz-heritage .en, html[lang="en"] .cz-heritage .ta { display: none !important; }

.chozhi [hidden] { display: none !important; }
.chozhi-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- hero ---------- */
.cz-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.25;
  color: var(--maroon);
  margin: 6px 0 8px;
}
.cz-hero h1 small { font-size: 0.55em; color: var(--vermilion); font-family: var(--sans); font-weight: 600; }
.cz-lead { font-size: 18px; color: #4a3528; margin: 0 0 14px; }

/* ---------- sticky input bar ---------- */
.cz-bar {
  position: relative;   /* not sticky: scrolls away with the page */
  z-index: 60;
  background: linear-gradient(180deg, #fffaf0 0%, #fbf1dc 100%);
  border: 1px solid #e2cfa0;
  border-radius: var(--radius);
  padding: 12px 14px 10px;
  margin: 0 0 14px;
  box-shadow: 0 8px 20px -14px rgba(43, 9, 9, 0.55);
}
.chozhi { container-type: inline-size; container-name: chozhi; }
.cz-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
}
@container chozhi (min-width: 680px) {
  .cz-bar-row { grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.35fr); }
}
.cz-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; position: relative; }
.cz-label { font-size: 15px; font-weight: 700; color: var(--maroon); }
.cz-bar input[type="text"], .cz-bar select {
  font: inherit;
  font-size: 17px;
  padding: 9px 11px;
  border: 1.5px solid #c9b07a;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  min-height: 46px;
}
.cz-bar input:focus, .cz-bar select:focus, .cz-btn:focus-visible, .cz-icon:focus-visible, .cz-langbtn:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.7);
  outline-offset: 2px;
}
.cz-bar input[aria-invalid="true"], .cz-bar select[aria-invalid="true"] { border-color: var(--vermilion); background: #fff5f4; }
.cz-bar input:disabled, .cz-bar select:disabled { background: #f3ece0; color: #5c4a3a; cursor: not-allowed; }
.cz-help { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.cz-err { font-size: 14px; color: var(--vermilion); font-weight: 600; min-height: 0; line-height: 1.3; }
.cz-err:empty { display: none; }
.cz-check { display: flex; gap: 6px; align-items: center; font-size: 15px; color: #4a3528; cursor: pointer; }
.cz-check input { width: 18px; height: 18px; accent-color: var(--vermilion); }

.cz-seg { display: inline-flex; border: 1.5px solid #c9b07a; border-radius: 10px; overflow: hidden; }
.cz-langbtn {
  font: inherit; font-size: 16px; font-weight: 700;
  padding: 9px 14px; min-height: 46px;
  border: 0; background: #fff; color: var(--maroon); cursor: pointer;
}
.cz-langbtn[aria-pressed="true"] { background: var(--maroon); color: var(--cream); }

#search-result-container {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  z-index: 80;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #c9b07a;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.35);
}

.cz-bar-status {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #dcc596;
  align-items: center;
}
.cz-now { font-size: 15.5px; color: #3b2a1c; line-height: 1.45; }
.cz-now b { color: var(--maroon); }
.cz-now .pill {
  display: inline-block; padding: 1px 9px; margin: 0 4px 2px 0;
  border-radius: 999px; background: #fff; border: 1px solid #e2cfa0; white-space: nowrap;
}
.cz-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cz-icon {
  font: inherit; font-size: 15px; font-weight: 700;
  padding: 8px 12px; min-height: 42px;
  border-radius: 10px; border: 1.5px solid #c9b07a; background: #fff; color: var(--maroon); cursor: pointer;
}
.cz-icon[aria-pressed="false"] { opacity: 0.6; text-decoration: line-through; }

@media (max-width: 600px) {
  .chozhi { font-size: 17px; }
  .cz-bar { padding: 10px; }
  .cz-bar-status { grid-template-columns: minmax(0, 1fr); }
  .cz-tools { justify-content: flex-start; }
}
/* compact mode: once the bar sticks to the top or the ritual has begun — still always visible */
.cz-bar.is-stuck, .cz-bar.is-compact { padding: 6px 10px; border-radius: 0 0 12px 12px; }
.cz-bar.is-stuck .cz-help, .cz-bar.is-compact .cz-help { display: none; }
.cz-bar.is-stuck .cz-label, .cz-bar.is-compact .cz-label { font-size: 12.5px; line-height: 1.2; }
.cz-bar.is-stuck input[type="text"], .cz-bar.is-stuck select, .cz-bar.is-stuck .cz-langbtn,
.cz-bar.is-compact input[type="text"], .cz-bar.is-compact select, .cz-bar.is-compact .cz-langbtn {
  min-height: 36px; padding-top: 5px; padding-bottom: 5px; font-size: 15.5px;
}
.cz-bar.is-stuck .cz-check, .cz-bar.is-compact .cz-check { font-size: 13.5px; }
.cz-bar.is-stuck .cz-bar-status, .cz-bar.is-compact .cz-bar-status { margin-top: 4px; padding-top: 4px; }
.cz-bar.is-stuck .cz-now, .cz-bar.is-compact .cz-now { white-space: nowrap; overflow-x: auto; font-size: 14px; scrollbar-width: thin; }
.cz-bar.is-stuck .cz-icon, .cz-bar.is-compact .cz-icon { min-height: 34px; padding: 4px 10px; font-size: 14px; }
@container chozhi (max-width: 520px) {
  .cz-bar-row { grid-template-columns: minmax(0, 1fr); }
  .cz-bar.is-stuck .cz-bar-row, .cz-bar.is-compact .cz-bar-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 4px 6px; align-items: center; }
  .cz-bar.is-stuck .cz-label, .cz-bar.is-compact .cz-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .cz-bar.is-stuck .cz-sank, .cz-bar.is-compact .cz-sank { grid-column: 1 / -1; }
  .cz-bar.is-stuck .cz-sank .cz-check, .cz-bar.is-compact .cz-sank .cz-check { display: none; }
  .cz-bar.is-stuck .cz-langbtn, .cz-bar.is-compact .cz-langbtn { font-size: 13px; padding: 4px 7px; min-height: 34px; }
  .cz-bar.is-stuck input[type="text"], .cz-bar.is-stuck select,
  .cz-bar.is-compact input[type="text"], .cz-bar.is-compact select { font-size: 14.5px; min-height: 34px; padding-left: 7px; padding-right: 7px; }
  .cz-bar.is-stuck .cz-bar-status, .cz-bar.is-compact .cz-bar-status { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .cz-bar.is-stuck .cz-tools, .cz-bar.is-compact .cz-tools { flex-wrap: nowrap; gap: 4px; }
  .cz-bar.is-stuck .cz-icon span, .cz-bar.is-compact .cz-icon span { display: none; }
  .cz-bar.is-stuck .cz-icon, .cz-bar.is-compact .cz-icon { padding: 4px 8px; font-size: 16px; }
}

/* ---------- progress ---------- */
.cz-progress {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
  counter-reset: none;
}
.cz-progress li {
  font-size: 14px; line-height: 1.3; padding: 8px 8px 8px 10px;
  border-radius: 10px; background: #f6efe2; color: #7a6450; border: 1px solid #eadcc0;
  transition: background 0.4s, color 0.4s, transform 0.4s;
}
.cz-progress li b {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #e5d5b4; color: var(--maroon); font-size: 13px; margin-right: 4px;
}
.cz-progress li.is-active { background: var(--maroon); color: var(--cream); transform: translateY(-2px); border-color: var(--maroon); }
.cz-progress li.is-active b { background: var(--gold); }
.cz-progress li.is-done { background: #efe3c6; color: var(--maroon); }
.cz-progress li.is-done b { background: var(--gold); color: var(--maroon); }
@media (max-width: 700px) {
  .cz-progress li span { display: none !important; }
  .cz-progress li.is-active span { display: inline !important; }
  .cz-progress { grid-template-columns: repeat(5, auto); }
}

/* ---------- stage ---------- */
.cz-stage {
  background: radial-gradient(120% 90% at 50% 0%, #3a0f0f 0%, var(--maroon) 55%, #160404 100%);
  color: var(--cream);
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.25), 0 16px 40px -24px rgba(0, 0, 0, 0.7);
  perspective: 1400px;
}
.cz-stage-head h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  color: var(--gold-2);
  margin: 2px 0 6px;
  outline: none;
}
.cz-do { font-size: 17.5px; margin: 0 0 4px; color: var(--cream); }
.cz-why { font-size: 15px; margin: 0 0 10px; color: #d9c49b; font-style: italic; }

.cz-scene { position: relative; }
.cz-scene svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;                /* CLS = 0 */
  border-radius: 14px;
  background: #1a0606;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.cz-scene-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.cz-scene-grid.with-chart .cz-chartbox { width: 100%; max-width: 540px; justify-self: center; }
@container chozhi (min-width: 980px) {
  .cz-scene-grid.with-chart { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
}
.cz-chartbox, .cz-olai-wrap, .cz-stage { scroll-margin-top: 12px; }

.cz-stage-anim { animation: czStageIn 0.7s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 50% 0; }
@keyframes czStageIn {
  from { opacity: 0; transform: rotate3d(1, 0, 0, -14deg) translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: rotate3d(1, 0, 0, 0deg) translate3d(0, 0, 0); }
}

.cz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; justify-content: center; }
.cz-btn {
  font: inherit; font-size: 18px; font-weight: 700;
  padding: 12px 22px; min-height: 50px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #ffe58a, var(--gold));
  color: var(--maroon);
  box-shadow: 0 6px 18px -8px rgba(212, 175, 55, 0.8), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.15s, filter 0.2s, opacity 0.2s;
}
.cz-btn:hover:not(:disabled) { transform: translate3d(0, -1px, 0); filter: brightness(1.05); }
.cz-btn:active:not(:disabled) { transform: translate3d(0, 1px, 0) scale(0.98); }
.cz-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cz-btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(245, 230, 204, 0.5); box-shadow: none; font-size: 15.5px; }
.cz-btn-roll { background: linear-gradient(180deg, #ff6b4a, var(--vermilion)); color: #fff; font-size: 20px; padding: 14px 30px; }
.cz-btn-roll:not(:disabled) { animation: czPulse 1.6s ease-in-out infinite; }
@keyframes czPulse { 50% { box-shadow: 0 0 0 10px rgba(200, 29, 17, 0.15), 0 6px 18px -8px rgba(200, 29, 17, 0.8); } }

.cz-eyes {
  margin: 12px auto 0; max-width: 640px; text-align: center; font-size: 17.5px;
  background: rgba(245, 230, 204, 0.08); border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px; padding: 10px 14px; color: var(--cream);
  animation: czBreath 5s ease-in-out infinite;
}
@keyframes czBreath { 50% { background: rgba(245, 230, 204, 0.16); } }
.cz-status { min-height: 1.6em; margin: 10px 0 0; text-align: center; font-size: 16.5px; color: #ffe7a8; font-weight: 600; }
.cz-status.is-error { color: #ffb4a8; }

/* ---------- SVG scene styling ---------- */
.svg-hint { fill: var(--cream); font: 600 20px var(--sans); }
.svg-small { fill: var(--cream); font: 600 13px var(--sans); }
.svg-tray { fill: #f3dcae; font: 600 15px var(--sans); opacity: 0.75; }
.svg-count { fill: var(--gold-2); font: 700 64px var(--serif); paint-order: stroke; stroke: #2B0909; stroke-width: 6px; }
.svg-countsub { fill: var(--cream); font: 600 22px var(--sans); paint-order: stroke; stroke: #2B0909; stroke-width: 5px; }

#hallSvg .hall-light { opacity: 0; transition: opacity 2.4s ease; }
#hallSvg #flames { opacity: 0; transition: opacity 0.8s ease; }
#hallSvg #flameGlow { opacity: 0; transition: opacity 1.6s ease; }
#hallSvg.lit .hall-light { opacity: 0.55; }
#hallSvg.lit #flames { opacity: 1; }
#hallSvg.lit #flameGlow { opacity: 1; animation: czGlow 3.2s ease-in-out infinite; }
@keyframes czGlow { 50% { opacity: 0.72; } }
#hallSvg .flame { will-change: transform; }
#hallSvg .flame > use { transform-box: fill-box; transform-origin: 50% 100%; animation: czFlicker 1.9s ease-in-out infinite; }
#hallSvg .flame:nth-child(2n) > use { animation-duration: 2.3s; animation-delay: -0.4s; }
@keyframes czFlicker {
  0%, 100% { transform: scale3d(1, 1, 1) skewX(0deg); }
  25% { transform: scale3d(0.96, 1.06, 1) skewX(1.5deg); }
  50% { transform: scale3d(1.03, 0.95, 1) skewX(-1deg); }
  75% { transform: scale3d(0.98, 1.04, 1) skewX(0.8deg); }
}
#matchstick { cursor: grab; }
#matchstick.dragging { cursor: grabbing; }
#matchstick .match-flame { opacity: 0; transition: opacity 0.2s; }
#matchstick.struck .match-flame { opacity: 1; }
#hallSvg.lit #matchstick { opacity: 0; transition: opacity 1.2s ease 0.4s; pointer-events: none; }
#holdTrack, #holdRing { transition: opacity 0.4s; }
#hallSvg.lit #holdTrack, #hallSvg.lit #holdRing { opacity: 0; }

.offering { cursor: grab; }
.offering.dragging { cursor: grabbing; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.45)); }
.offering.placed { cursor: default; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35)); }
.offering.locked { opacity: 0.5; }
.slot .slot-ghost { opacity: 0; fill-opacity: 0; stroke: var(--gold-2); }
.slot .slot-ring { fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-dasharray: 5 5; opacity: 0; }
.slot.active .slot-ring, .slot.active .slot-ghost { opacity: 0.85; animation: czSlot 1.4s ease-in-out infinite; }
.slot.active .slot-ghost { opacity: 0.35; }
@keyframes czSlot { 50% { opacity: 0.25; } }
.slot.filled .slot-ring, .slot.filled .slot-ghost { opacity: 0 !important; animation: none; }

.shell { will-change: transform; transform-box: view-box; transform-origin: 0 0; }
.shell .face { transform-box: view-box; transform-origin: 0 0; }
.shell.aura { filter: url(#auraGlow); }
.shell.aside { opacity: 0.5; transition: opacity 0.6s; }
.shell-shadow { fill: #000; opacity: 0.45; filter: url(#shell-shadow); }
#shellLayer.energizing .shell .face { animation: czWarm 0.9s ease-in-out infinite alternate; }
@keyframes czWarm { to { filter: brightness(calc(1 + var(--energy, 0) * 0.35)) drop-shadow(0 0 calc(var(--energy, 0) * 8px) #FFD54A); } }

/* ---------- chart ---------- */
.cz-chartbox {
  background: #fffaf0; color: var(--ink);
  border-radius: 14px; padding: 12px; border: 1px solid #e2cfa0;
}
.cz-chartbox h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 21px; color: var(--maroon); text-align: center; }
.cz-chart { position: relative; }
.cz-chart svg { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.cz-chartsum { margin: 8px 0 0; font-size: 15.5px; text-align: center; color: var(--maroon); font-weight: 600; }
.rc-house rect { fill: #fff; stroke: #7a0f14; stroke-width: 1.5; transition: fill 0.35s; }
.rc-house:hover rect, .rc-house:focus rect { fill: #fff2cc; }
.rc-house:focus { outline: none; }
.rc-house:focus rect { stroke: var(--gold); stroke-width: 3; }
.rc-house .rc-name { font: 700 15px var(--sans); fill: #7a0f14; }
.rc-house .rc-num { font: 600 12px var(--sans); fill: #a08770; }
.rc-house .rc-mark { font: 700 16px var(--sans); }
.rc-house .rc-pl { font: 700 17px var(--sans); fill: #2a1a12; }
.rc-house.is-lagna rect { fill: #fde8e4; stroke: var(--vermilion); stroke-width: 3; }
.rc-house.is-walk rect { fill: #fff0b8; }
.rc-house.is-arudha rect { fill: #ffe082; stroke: #b8860b; stroke-width: 3.5; }
.rc-house.is-arudha { animation: czArudha 1.8s ease-in-out 2; }
@keyframes czArudha { 50% { filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.95)); } }
.rc-centre rect { fill: #2B0909; }
.rc-centre text { fill: var(--cream); font: 600 16px var(--sans); }
.rc-centre .rc-title { font: 700 22px var(--serif); fill: var(--gold-2); }
.rc-centre .rc-hint { font: 500 13px var(--sans); fill: #d9c49b; }
.rc-tip {
  position: absolute; z-index: 5; pointer-events: none;
  min-width: 180px; max-width: 240px;
  background: var(--maroon); color: var(--cream);
  border: 1px solid var(--gold); border-radius: 10px;
  padding: 8px 10px; font-size: 14px; line-height: 1.45;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.6);
  transform: translate3d(-50%, -110%, 0);
}
.rc-tip b { color: var(--gold-2); }

/* ---------- olai chuvadi (palm-leaf manuscript) ---------- */
.cz-olai-wrap { margin-top: 18px; }
.cz-olai {
  background:
    repeating-linear-gradient(0deg, rgba(139, 106, 46, 0.10) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, #f1dfae 0%, #e3c788 55%, #d5b46e 100%);
  border-radius: 20px / 40px;
  border: 2px solid #8B6A2E;
  padding: 0 0 18px;
  box-shadow: 0 20px 40px -24px rgba(60, 30, 0, 0.75), inset 0 0 30px rgba(120, 80, 20, 0.25);
  clip-path: inset(0 100% 0 0 round 20px);
}
.cz-olai.unrolled { animation: czUnroll 1.9s cubic-bezier(.6, .05, .2, 1) forwards; }
@keyframes czUnroll { to { clip-path: inset(0 0 0 0 round 20px); } }
.cz-olai-svg { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 120; }
.olai-title { font: 700 30px var(--serif); fill: #5A1A0A; }
.cz-report { padding: 6px 22px 0; color: #2e1a0c; }
@media (max-width: 600px) { .cz-report { padding: 4px 12px 0; } }

.cz-inputbox {
  background: rgba(255, 250, 238, 0.85);
  border: 1.5px dashed #8B6A2E;
  border-radius: 12px; padding: 10px 14px; margin: 6px 0 14px;
}
.cz-inputbox h3 { margin: 0 0 6px; font-size: 17px; color: var(--maroon); }
.cz-inputbox dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 15.5px; }
.cz-inputbox dt { font-weight: 700; color: #6a3f1c; }
.cz-inputbox dd { margin: 0; word-break: break-word; }
@media (max-width: 520px) { .cz-inputbox dl { grid-template-columns: minmax(0, 1fr); } .cz-inputbox dd { margin-bottom: 4px; } }

.cz-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.cz-card {
  background: rgba(255, 252, 244, 0.9); border: 1px solid #c9a865; border-radius: 12px;
  padding: 10px; text-align: center;
}
.cz-card .k { font-size: 14px; color: #6a3f1c; font-weight: 700; display: block; }
.cz-card .v { font-family: var(--serif); font-size: 21px; color: var(--maroon); font-weight: 700; line-height: 1.3; display: block; }
@media (max-width: 700px) { .cz-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cz-verdict {
  border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; font-size: 18px;
  border-left: 6px solid var(--gold); background: rgba(255, 249, 230, 0.9);
}
.cz-verdict b { font-family: var(--serif); font-size: 22px; display: block; color: var(--maroon); }
.cz-verdict.favourable { border-color: #2e7d32; }
.cz-verdict.mixed { border-color: var(--gold); }
.cz-verdict.patience { border-color: var(--vermilion); }

.cz-verse {
  font-family: var(--serif); text-align: center; margin: 4px 0 16px; padding: 14px;
  background: rgba(90, 26, 10, 0.06); border-radius: 12px;
}
.cz-verse .lines { font-size: clamp(20px, 2.6vw, 25px); line-height: 1.7; color: #4a1208; font-weight: 700; }
.cz-verse .src { font-family: var(--sans); font-size: 14px; color: #7a5a3a; margin-top: 4px; }
.cz-verse .mean { font-family: var(--sans); font-size: 16.5px; color: #3b2414; margin-top: 8px; }

.cz-block { margin: 0 0 12px; }
.cz-block h4 { margin: 0 0 4px; font-size: 18px; color: var(--maroon); font-family: var(--serif); }
.cz-block p { margin: 0; font-size: 17px; }
.cz-block.main { background: rgba(255, 252, 244, 0.75); border-radius: 12px; padding: 10px 14px; border: 1px solid #d7bb7c; }

.cz-report h3.cz-sec { font-family: var(--serif); color: var(--maroon); font-size: 21px; margin: 18px 0 8px; border-bottom: 1px solid #b8955a; padding-bottom: 4px; }
.cz-report-chart { max-width: 420px; margin: 0 auto 10px; }
.cz-table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: rgba(255, 252, 244, 0.8); }
.cz-table th, .cz-table td { border: 1px solid #c9a865; padding: 6px 8px; text-align: left; }
.cz-table th { background: rgba(122, 15, 20, 0.9); color: var(--cream); }
.cz-remedies { margin: 0; padding-left: 1.2em; font-size: 17px; }
.cz-remedies li { margin-bottom: 6px; }
.cz-method, .cz-disclaimer { font-size: 14.5px; color: #5c4128; margin: 10px 0 0; }
.cz-report-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0 4px; }
.cz-report-actions .cz-btn-ghost { color: var(--maroon); border-color: #8B6A2E; }

/* ---------- info box ---------- */
.cz-info { margin-top: 22px; background: #fffaf0; border: 1px solid #e2cfa0; border-radius: var(--radius); padding: 14px 16px; }
.cz-info h2 { font-family: var(--serif); color: var(--maroon); font-size: 24px; margin: 0 0 8px; }
.cz-info details { border-top: 1px solid #ead9b5; padding: 8px 0; }
.cz-info summary { cursor: pointer; font-weight: 700; color: var(--vermilion); font-size: 18px; padding: 4px 0; }
.cz-info li, .cz-info p, .cz-info dd { font-size: 16.5px; }
.cz-info dt { font-weight: 700; color: var(--maroon); margin-top: 6px; }
.cz-info dd { margin: 0 0 6px 0; }
.cz-refs a, .cz-heritage-link a { color: #7c1d1d; font-weight: 700; }
.cz-heritage-link { margin: 10px 0 0; font-size: 17px; }
.cz-noscript { background: #fff3cd; padding: 10px; border-radius: 8px; }

/* ---------- heritage page ---------- */
.cz-heritage { font-family: var(--sans); font-size: 18px; line-height: 1.7; color: #2a1a12; }
.cz-heritage h1, .cz-heritage h2 { font-family: var(--serif); color: #2B0909; }
.cz-heritage h1 { font-size: clamp(26px, 3.6vw, 34px); }
.cz-heritage h2 { font-size: 23px; margin-top: 22px; border-bottom: 2px solid #ead9b5; padding-bottom: 4px; }
.cz-heritage .hz-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
@media (max-width: 760px) { .cz-heritage .hz-demo { grid-template-columns: minmax(0, 1fr); } }
.cz-heritage .cz-btn { font-family: var(--sans); }
.cz-heritage .cz-langbar { display: flex; gap: 8px; justify-content: flex-end; }

@media (prefers-reduced-motion: reduce) {
  .chozhi *, .cz-heritage * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .cz-olai { clip-path: none; }
}

@media print {
  .cz-olai { clip-path: none !important; box-shadow: none; background: #fff; border-color: #999; }
  .cz-report-actions { display: none !important; }
}
