/* rite.css — styles for the shared rite stepper template (L1). */

/* ---- steps label ---- */
.rite-steps-label { text-align: center; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-gold-dark, #b8860b); margin: 32px 0 12px; }
.rite-steps-label::before, .rite-steps-label::after { content: ''; display: inline-block; width: 40px; height: 1px; background: var(--color-border, #eee); vertical-align: middle; margin: 0 12px; }

/* ---- stepper ---- */
.rite-stepper { background: #fff; border-radius: 14px; border: 1px solid #e8e4de; box-shadow: 0 2px 12px rgba(0,0,0,.04); overflow: hidden; margin: 0 0 32px; }
.rite-progress { height: 4px; background: var(--color-tan-lighter, #e8dfc7); }
.rite-progress-bar { height: 100%; background: var(--color-gold, #d4a017); transition: width 0.3s ease; }
.rite-stage { padding: 26px 32px 28px; }
.rite-stage-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.rite-stage-num { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--color-gold, #d4a017); color: #fff; font-family: 'Lora', Georgia, serif; font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rite-stage-meta { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-lightest, #999); display: block; }
.rite-stage-title { font-family: 'Lora', Georgia, serif; font-size: 1.7rem; font-weight: 700; color: var(--color-text-dark, #2d2d2d); margin: 2px 0 0; }
.rite-stage-mlrow { display: flex; align-items: center; gap: 10px; background: var(--color-light-bg-alt, #faf7f0); border-radius: 8px; padding: 8px 14px; margin-bottom: 16px; width: fit-content; }
.rite-ml { font-family: 'Noto Sans Malayalam', sans-serif; font-size: 1.3rem; color: var(--color-text-dark, #2d2d2d); }
.rite-tr { font-size: 0.85rem; color: var(--color-text-lightest, #999); }
.rite-stage-text { font-size: 0.98rem; line-height: 1.8; color: var(--color-text-medium, #4a4a4a); margin: 0; }

/* controls */
.rite-controls { display: flex; align-items: center; justify-content: space-between; padding: 0 32px 24px; gap: 14px; }
.rite-dots { display: flex; gap: 7px; align-items: center; }
.rite-dot { width: 9px; height: 9px; border-radius: 999px; border: none; cursor: pointer; padding: 0; background: var(--color-tan-lighter, #e8dfc7); transition: width 0.3s ease, background 0.3s; }
.rite-dot[aria-current="true"] { width: 22px; background: var(--color-gold, #d4a017); }
.rite-prev, .rite-next { font-size: 0.85rem; }
.rite-prev:disabled, .rite-next:disabled { opacity: 0.4; cursor: default; }

/* ---- no-JS fallback: show all stages stacked ---- */
html:not(.js-ready) .rite-stage { display: block !important; border-bottom: 1px solid #eee; }
html:not(.js-ready) .rite-stage:last-of-type { border-bottom: none; }
html:not(.js-ready) .rite-controls, html:not(.js-ready) .rite-progress { display: none; }

/* ---- mobile ---- */
@media (max-width: 600px) {
  .rite-stage { padding: 20px 16px; }
  .rite-stage-title { font-size: 1.3rem; }
  .rite-stage-num { width: 40px; height: 40px; font-size: 1.2rem; }
  .rite-controls { padding: 0 16px 20px; }
}

/* ---- preparation tabs ---- */
.rite-prep { background: #fff; border-radius: 14px; border: 1px solid #e8e4de; box-shadow: 0 2px 12px rgba(0,0,0,.04); overflow: hidden; margin: 0 0 16px; }
.rite-prep-tabs { display: flex; background: #e8dfc7; }
.rite-prep-tab { flex: 1; position: relative; cursor: pointer; text-align: center; background: transparent; border: none; border-right: 1px solid #e8e4de; padding: 15px 10px 13px; font-family: 'Inter', sans-serif; transition: background 0.25s ease; }
.rite-prep-tab:last-child { border-right: none; }
.rite-prep-tab[aria-selected="true"] { background: #fff; }
.rite-prep-tab .phase { display: block; font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: #999; margin-bottom: 3px; }
.rite-prep-tab[aria-selected="true"] .phase { color: var(--color-gold-dark, #b8860b); }
.rite-prep-tab .label { font-family: 'Lora', Georgia, serif; font-size: 1.15rem; font-weight: 700; color: #666; }
.rite-prep-tab[aria-selected="true"] .label { color: #2d2d2d; }
.rite-prep-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; transition: background 0.25s; }
.rite-prep-tab[aria-selected="true"]::after { background: var(--color-gold, #d4a017); }
.rite-prep-tab:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-gold, #d4a017); outline-offset: -2px; }

.rite-prep-panel { padding: 24px 30px 26px; }
.rite-prep-panel[hidden] { display: none; }
.rite-prep-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.rite-prep-panel li { display: flex; gap: 13px; align-items: flex-start; }
.rite-prep-check { flex-shrink: 0; margin-top: 1px; width: 21px; height: 21px; border-radius: 50%; background: linear-gradient(135deg, rgba(212,160,23,0.08), rgba(139,30,45,0.03)); border: 1px solid var(--color-gold, #d4a017); display: flex; align-items: center; justify-content: center; color: var(--color-gold-dark, #b8860b); }
.rite-prep-check svg { width: 11px; height: 11px; }
.rite-prep-text { font-size: 0.94rem; line-height: 1.55; color: #4a4a4a; }

.rite-highlight { margin-top: 16px; background: linear-gradient(135deg, rgba(212,160,23,0.08), rgba(139,30,45,0.03)); border-radius: 14px; padding: 20px; }
.rite-highlight h3 { font-family: 'Lora', Georgia, serif; font-size: 1.1rem; color: var(--color-maroon, #8B1E2D); margin: 0 0 8px; }
.rite-highlight p { margin: 0; font-size: 0.9rem; line-height: 1.7; color: #4a4a4a; }

/* no-JS fallback: show every phase stacked */
html:not(.js-ready) .rite-prep-tabs { display: none; }
html:not(.js-ready) .rite-prep-panel { display: block !important; }
html:not(.js-ready) .rite-prep-panel::before { content: attr(data-phase); display: block; font-family: 'Lora', Georgia, serif; font-size: 1.1rem; font-weight: 700; color: var(--color-gold, #d4a017); margin-bottom: 10px; }
html:not(.js-ready) .rite-prep-panel + .rite-prep-panel { border-top: 1px solid #e8e4de; }

@media (max-width: 600px) {
  .rite-prep-tab { padding: 12px 6px 10px; }
  .rite-prep-tab .label { font-size: 1rem; }
  .rite-prep-panel { padding: 20px 18px 22px; }
}
