:root {
    --purim-navy: #13253f;
    --purim-ink: #1f3553;
    --purim-muted: #4d627f;
    --purim-gold: #b0721a;
    --purim-amber: #f4c15a;
    --purim-cream: #fff9ef;
    --purim-paper: #fcfdff;
    --purim-border: rgba(24, 50, 82, 0.14);
    --purim-shadow: 0 20px 42px rgba(14, 31, 54, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--purim-ink);
    background:
        radial-gradient(circle at 95% -15%, rgba(244, 193, 90, 0.32), rgba(244, 193, 90, 0) 42%),
        radial-gradient(circle at 5% -10%, rgba(19, 37, 63, 0.2), rgba(19, 37, 63, 0) 35%),
        linear-gradient(180deg, #f6f9ff 0%, #fdfefe 55%, #fafcff 100%);
    min-height: 100vh;
    line-height: 1.7;
}

.purim-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #60a5fa 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.purim-topbar__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.purim-brand {
    text-decoration: none;
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.purim-back {
    text-decoration: none;
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.42rem 0.95rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.purim-back:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.85);
}

.purim-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.3rem 1rem 3rem;
}

.purim-hero {
    position: relative;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 80%, #60a5fa 100%);
    color: #ffffff;
    padding: 1.55rem 1.25rem 1.3rem;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
    overflow: hidden;
}

.purim-hero::before,
.purim-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.purim-hero::before {
    width: 280px;
    height: 280px;
    right: -95px;
    top: -110px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 70%);
}

.purim-hero::after {
    width: 210px;
    height: 210px;
    left: -62px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.22), rgba(147, 197, 253, 0) 70%);
}

.purim-kicker {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(219, 234, 254, 0.9);
    font-weight: 700;
}

.purim-title {
    margin: 0.38rem 0 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.65rem, 4.2vw, 2.45rem);
    line-height: 1.1;
    letter-spacing: 0.015em;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.purim-subtitle {
    max-width: 62ch;
    margin: 0.58rem 0 0;
    color: rgba(219, 234, 254, 0.92);
    font-size: 0.95rem;
    line-height: 1.58;
}

.purim-facts {
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.purim-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.36rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #dbeafe;
    border: 1px solid rgba(191, 219, 254, 0.35);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
}

.purim-cta {
    margin-top: 0.9rem;
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.54rem 1.05rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.purim-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.purim-cta-row {
    margin-top: 0.82rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

/* Override margin-top when inside .purim-cta-row */
.purim-cta-row .purim-cta {
    margin-top: 0;
}

.purim-cta--megillah {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.purim-route-note {
    margin: 0.75rem 0 0;
    max-width: 64ch;
    color: rgba(219, 234, 254, 0.92);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(191, 219, 254, 0.38);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
}

/* ── Purim songs page ─────────────────────────────────── */
.purim-hero--songs {
    padding-top: 1.35rem;
    padding-bottom: 1.25rem;
}

.purim-song-card {
    margin-top: 1rem;
    border-radius: 18px;
    border: 1px solid var(--purim-border);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 35, 58, 0.08);
    padding: 1rem;
}

.purim-song-card__header h2 {
    margin: 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
    color: var(--purim-navy);
}

.purim-song-card__meta {
    margin: 0.4rem 0 0;
    color: var(--purim-muted);
    font-size: 0.88rem;
}

.purim-song-video {
    width: 100%;
    margin-top: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(19, 37, 63, 0.15);
    background: #101828;
}

.purim-song-lyrics-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.purim-song-lyrics {
    border: 1px solid rgba(19, 37, 63, 0.11);
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.75rem 0.8rem;
}

.purim-song-lyrics h3,
.purim-song-lyrics h4 {
    margin: 0 0 0.5rem;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--purim-muted);
}

.purim-song-lyrics p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.66;
    color: #22354f;
}

.purim-song-lyrics--he p {
    direction: rtl;
    text-align: right;
    font-family: "Times New Roman", "David", serif;
    font-size: 1.06rem;
    line-height: 1.75;
}

.purim-song-part {
    margin-top: 0.9rem;
    border-top: 1px dashed rgba(19, 37, 63, 0.16);
    padding-top: 0.8rem;
}

.purim-song-part__title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--purim-navy);
}

.purim-song-part__meta {
    margin: 0.2rem 0 0;
    font-size: 0.84rem;
    color: var(--purim-muted);
}

.purim-song-list {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.purim-song-link-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border-radius: 16px;
    border: 1px solid var(--purim-border);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 35, 58, 0.08);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.purim-song-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(17, 35, 58, 0.14);
    border-color: rgba(37, 99, 235, 0.36);
}

.purim-song-link-card h2 {
    margin: 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.25rem;
    color: var(--purim-navy);
    line-height: 1.22;
}

.purim-song-link-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #4b6690;
    line-height: 1.5;
}

.purim-song-link-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #2d4568;
    line-height: 1.58;
}

.purim-song-link-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #1d4ed8;
}

.reveal {
    animation: sectionReveal 0.65s ease both;
}

.purim-video {
    margin-top: 1rem;
    border-radius: 22px;
    border: 1px solid var(--purim-border);
    background: var(--purim-paper);
    box-shadow: 0 14px 34px rgba(17, 35, 58, 0.08);
    padding: 1.2rem;
}

.purim-video h2 {
    margin: 0;
    font-family: "Cinzel", Georgia, serif;
    color: var(--purim-navy);
    font-size: clamp(1.3rem, 2.3vw, 1.8rem);
}

.purim-video p {
    margin: 0.5rem 0 0;
    color: var(--purim-muted);
}

.purim-video__frame {
    margin-top: 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(19, 37, 63, 0.13);
    background: linear-gradient(145deg, #ffffff, #f3f7ff);
    padding: 0.8rem;
    min-height: 240px;
}

/* Hide Chabad embed promotional footer text */
.purim-video__frame > p,
.purim-video__frame .player_note,
.purim-video__frame .jtv-poster-logo > a[href*="chabad.org/Video"],
.purim-video__frame a[href*="chabad.org/Video"] {
    display: none !important;
}

.purim-section {
    margin-top: 1rem;
    border-radius: 22px;
    border: 1px solid var(--purim-border);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 35, 58, 0.08);
    padding: 1.2rem;
}

.purim-section__head {
    margin-bottom: 0.9rem;
}

.purim-section__eyebrow {
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--purim-gold);
    font-weight: 800;
}

.purim-section h2 {
    margin: 0.4rem 0 0;
    font-family: "Cinzel", Georgia, serif;
    color: var(--purim-navy);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.25;
}

.purim-timeline {
    position: relative;
    display: grid;
    gap: 0.85rem;
}

.purim-event {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    border: 1px solid rgba(19, 37, 63, 0.12);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.purim-event::after {
    content: "";
    display: table;
    clear: both;
}

.purim-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(14, 31, 54, 0.09);
}

.purim-event h3 {
    margin: 0;
    color: #16365a;
    font-size: 1.04rem;
}

.purim-event p {
    margin: 0.4rem 0 0;
    color: #3f5670;
    font-size: 0.96rem;
}

.purim-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.purim-card {
    border-radius: 18px;
    border: 1px solid rgba(19, 37, 63, 0.13);
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    padding: 1rem;
}

.purim-card h2 {
    margin: 0;
    font-family: "Cinzel", Georgia, serif;
    color: var(--purim-navy);
    font-size: 1.24rem;
}

.purim-card ul {
    margin: 0.7rem 0 0;
    padding-left: 1.1rem;
    color: #3a546d;
}

.purim-card li {
    margin-bottom: 0.52rem;
}

.purim-card li:last-child {
    margin-bottom: 0;
}

.purim-reflection {
    margin-top: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(176, 114, 26, 0.2);
    background: linear-gradient(140deg, #fff8eb, #fff2d8);
    box-shadow: 0 14px 34px rgba(176, 114, 26, 0.15);
    padding: 1.1rem;
}

.purim-reflection h2 {
    margin: 0;
    color: #7f4f09;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
}

.purim-reflection p {
    margin: 0.7rem 0 0;
    color: #5f4521;
}

@keyframes sectionReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Story intro text ──────────────────────────────── */
.purim-intro-text {
    font-size: 1.05rem;
    color: #304d68;
    line-height: 1.78;
    margin: 0 0 1rem;
}

/* ── Highlighted quote (hero quote) ───────────────── */
.purim-highlight-quote {
    border-left: 4px solid var(--purim-amber);
    background: linear-gradient(135deg, #fff8eb, #fffdf5);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    margin-top: 0.5rem;
}

.purim-highlight-quote p {
    margin: 0 0 0.35rem;
    color: #5a3a0a;
    font-size: 1.06rem;
    line-height: 1.65;
    font-style: italic;
}

.purim-highlight-quote span {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--purim-gold);
    letter-spacing: 0.03em;
}

/* ── Video description ─────────────────────────────── */
.purim-video__desc {
    margin: 0.5rem 0 0;
    color: var(--purim-muted);
    font-size: 0.97rem;
}

/* ── Timeline event head (number + title) ─────────── */
.purim-event__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
}

.purim-event__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4c15a, #e8a422);
    color: #102340;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(228, 160, 30, 0.35);
}

.purim-event h3 {
    margin: 0;
    color: #16365a;
    font-size: 1.05rem;
    font-family: "Cinzel", Georgia, serif;
}

.purim-event p + p {
    margin-top: 0.65rem;
}

.purim-event--final {
    border-color: rgba(176, 114, 26, 0.22);
    background: linear-gradient(145deg, #fffbf0, #fdf6e8);
}

/* ── Inline quote block (inside story chapters) ─────── */
.purim-inline-quote {
    border-left: 3px solid var(--purim-amber);
    margin: 0.75rem 0;
    padding: 0.6rem 0.85rem;
    background: rgba(244, 193, 90, 0.1);
    border-radius: 0 10px 10px 0;
}

.purim-inline-quote p {
    margin: 0;
    color: #4a3010;
    font-style: italic;
    font-size: 0.97rem;
    line-height: 1.7;
}

/* ── Purim list (inside story cards) ─────────────── */
.purim-list {
    margin: 0.65rem 0 0;
    padding-left: 1.2rem;
    color: #3a546d;
}

.purim-list li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

.purim-list li:last-child {
    margin-bottom: 0;
}

/* ── Key dates grid ──────────────────────────────── */
.purim-dates-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.purim-date-card {
    border-radius: 14px;
    border: 1px solid rgba(19, 37, 63, 0.14);
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.purim-date-card--highlight {
    border-color: rgba(176, 114, 26, 0.28);
    background: linear-gradient(145deg, #fff9ed, #fff4d8);
    box-shadow: 0 8px 20px rgba(176, 114, 26, 0.14);
}

.purim-date-label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--purim-gold);
}

.purim-date-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--purim-navy);
    font-family: "Cinzel", Georgia, serif;
    line-height: 1.25;
}

.purim-date-note {
    font-size: 0.82rem;
    color: var(--purim-muted);
    line-height: 1.45;
}

/* ── Closing blessing ────────────────────────────── */
.purim-closing {
    margin-top: 1rem;
    font-size: 1.06rem;
}

/* ── Footer ──────────────────────────────────────── */
.purim-footer {
    text-align: center;
    padding: 1.5rem 1rem 2.5rem;
    font-size: 0.87rem;
    color: var(--purim-muted);
}

.purim-footer a {
    color: var(--purim-gold);
    text-decoration: none;
    font-weight: 600;
}

.purim-footer a:hover {
    text-decoration: underline;
}

/* ── Story image figures ─────────────────────────── */
.purim-event__fig {
    float: right;
    margin: 0 0 0.9rem 1.1rem;
    max-width: 210px;
    width: 40%;
    clear: right;
}

.purim-event__img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(19, 37, 63, 0.14);
    box-shadow: 0 8px 22px rgba(14, 31, 54, 0.18);
    display: block;
}

.purim-event__caption {
    font-size: 0.74rem;
    color: var(--purim-muted);
    margin-top: 0.4rem;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

/* Featured overview image */
.purim-overview-fig {
    margin: 1.1rem 0 0;
    text-align: center;
}

.purim-overview-img {
    display: block;
    max-width: 100%;
    width: 340px;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid rgba(19, 37, 63, 0.13);
    box-shadow: 0 8px 22px rgba(14, 31, 54, 0.14);
}

.purim-overview-caption {
    font-size: 0.8rem;
    color: var(--purim-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 960px) {
    .purim-grid {
        grid-template-columns: 1fr;
    }

    .purim-dates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .purim-dates-grid {
        grid-template-columns: 1fr;
    }

    .purim-event__fig {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 0.85rem;
    }

    .purim-event__img {
        border-radius: 10px;
    }
}

@media (max-width: 720px) {
    .purim-main {
        padding-top: 1rem;
    }

    .purim-hero,
    .purim-video,
    .purim-section,
    .purim-reflection {
        border-radius: 18px;
        padding: 1rem;
    }

    .purim-kicker {
        font-size: 0.72rem;
    }

    .purim-subtitle {
        font-size: 0.95rem;
    }

    .purim-video__frame {
        min-height: 200px;
        padding: 0.55rem;
    }

    .purim-event {
        padding: 0.85rem 0.85rem;
    }

    .purim-song-card {
        padding: 0.85rem;
    }

    .purim-song-lyrics-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .purim-song-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}

/* ══════════════════════════════════════════════════════════
   PURIM LANDING SPLASH
   ══════════════════════════════════════════════════════════ */

@keyframes splashFloat {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50%       { transform: translateY(-16px) rotate(var(--r, 0deg)); }
}

@keyframes splashIn {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

#purim-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(145deg, #1d4ed8 0%, #1e3a8a 42%, #0f1e55 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#purim-splash::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 18% 18%, rgba(244, 193, 90, 0.2), transparent 50%),
        radial-gradient(ellipse at 80% 78%, rgba(96, 165, 250, 0.18), transparent 55%);
    pointer-events: none;
}

#purim-splash.splash--exit {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Floating decorative images */
.splash-deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.splash-deco-1 { top: 4%;    left: 2%;    width: 100px; --r: -22deg; animation: splashFloat 3.9s ease-in-out infinite 0s;    opacity: 0.55; }
.splash-deco-2 { top: 6%;    right: 3%;   width: 88px;  --r:  18deg; animation: splashFloat 4.3s ease-in-out infinite 0.5s;  opacity: 0.55; }
.splash-deco-3 { bottom: 7%; left: 4%;    width: 80px;  --r:  12deg; animation: splashFloat 4.0s ease-in-out infinite 1.1s;  opacity: 0.6; }
.splash-deco-4 { bottom: 5%; right: 3%;   width: 92px;  --r: -14deg; animation: splashFloat 3.7s ease-in-out infinite 0.3s;  opacity: 0.6; }
.splash-deco-5 { top: 42%;   left: 0.5%;  width: 72px;  --r:  -8deg; animation: splashFloat 4.6s ease-in-out infinite 0.8s;  opacity: 0.4; }
.splash-deco-6 { top: 38%;   right: 0.5%; width: 78px;  --r:  14deg; animation: splashFloat 4.1s ease-in-out infinite 1.4s;  opacity: 0.4; }

/* Content */
.splash-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    width: 100%;
    animation: splashIn 0.55s ease both;
}

.splash-eyebrow {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(219, 234, 254, 0.78);
    font-weight: 700;
}

.splash-hebrew {
    display: block;
    font-family: "Times New Roman", "David", serif;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    color: var(--purim-amber);
    text-shadow: 0 2px 18px rgba(244, 193, 90, 0.45);
    margin: 0.4rem 0 0.15rem;
    direction: rtl;
    font-weight: normal;
}

.splash-title {
    margin: 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
    line-height: 1.1;
}

.splash-subtitle {
    margin: 0.55rem 0 1.6rem;
    font-size: 1.08rem;
    color: rgba(219, 234, 254, 0.86);
}

/* Three equal choice cards */
.splash-choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.splash-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.5rem 1.1rem;
    border-radius: 20px;
    border: 2px solid;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.splash-btn--story {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.38);
    color: #ffffff;
}

.splash-btn--story:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.78);
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.splash-btn--megillah {
    background: linear-gradient(135deg, rgba(244, 193, 90, 0.22), rgba(232, 164, 34, 0.15));
    border-color: rgba(244, 193, 90, 0.65);
    color: #ffffff;
}

.splash-btn--megillah:hover {
    background: linear-gradient(135deg, rgba(244, 193, 90, 0.38), rgba(232, 164, 34, 0.3));
    border-color: var(--purim-amber);
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(244, 193, 90, 0.3);
}

.splash-btn--songs {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(20, 184, 166, 0.14));
    border-color: rgba(94, 234, 212, 0.52);
    color: #ffffff;
}

.splash-btn--songs:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(20, 184, 166, 0.24));
    border-color: rgba(153, 246, 228, 0.75);
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(20, 184, 166, 0.26);
}

/* Icon pair in each card */
.splash-btn-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.3rem;
}

.splash-btn-icons img {
    width: 46px;
    height: auto;
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.45));
    transition: transform 0.28s ease;
}

.splash-btn--story:hover   .splash-btn-icons img:first-child { transform: rotate(-10deg) scale(1.1); }
.splash-btn--story:hover   .splash-btn-icons img:last-child  { transform: rotate(8deg)   scale(1.1); }
.splash-btn--megillah:hover .splash-btn-icons img:first-child { transform: rotate(-8deg)  scale(1.1); }
.splash-btn--megillah:hover .splash-btn-icons img:last-child  { transform: rotate(10deg)  scale(1.1); }

.splash-btn-title {
    display: block;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

.splash-btn-sub {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 1;
    line-height: 1.45;
}

/* Skip link */
.splash-skip {
    background: none;
    border: none;
    color: rgba(219, 234, 254, 0.52);
    font-size: 0.82rem;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    transition: color 0.2s ease;
    padding: 0.25rem 0.5rem;
}

.splash-skip:hover { color: rgba(219, 234, 254, 0.9); }

@media (max-width: 540px) {
    .splash-choices { grid-template-columns: 1fr; gap: 0.75rem; }
    .splash-deco-5, .splash-deco-6 { display: none; }
    .splash-deco-1, .splash-deco-2 { width: 68px; top: 2%; }
    .splash-deco-3, .splash-deco-4 { width: 60px; }
    .splash-btn { padding: 1.2rem 0.9rem; }
}

/* ══════════════════════════════════════════════════════════
   MEGILLAH READER — clean, professional, matches app style
   ══════════════════════════════════════════════════════════ */

/* ── CTA flash for "Read the Full Megillah" button ───── */
@keyframes megillahPulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(0,0,0,0.12), 0 0 0 0 rgba(255,255,255,0.55); }
    50%       { box-shadow: 0 8px 20px rgba(0,0,0,0.18), 0 0 0 9px rgba(255,255,255,0); }
}

.purim-cta--megillah {
    animation: megillahPulse 1.9s ease-in-out infinite;
}

.purim-cta--megillah:hover {
    animation: none;
}

/* ── Outer page wrapper for esther.html ───────────────── */
.esther-page-main {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* ── Outer section wrapper ─────────────────────────────── */
.megillah-section {
    position: relative;
    margin-top: 1.2rem;
    border-radius: 24px;
    background: #ffffff;
    border: 2px solid rgba(176, 114, 26, 0.2);
    box-shadow: 0 20px 52px rgba(14, 31, 54, 0.1);
    overflow: hidden;
}

/* Corner decorative images */
.megillah-deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.megillah-deco--tl { top: -20px; left: -20px;  width: 130px; height: auto; transform: rotate(-28deg); opacity: 0.18; }
.megillah-deco--tr { top: -14px; right: -14px; width: 120px; height: auto; transform: rotate(22deg);  opacity: 0.18; }
.megillah-deco--bl { bottom: -16px; left: 8px;   width: 100px; height: auto; transform: rotate(12deg);  opacity: 0.22; }
.megillah-deco--br { bottom: -10px; right: 8px;  width: 110px; height: auto; transform: rotate(-18deg); opacity: 0.22; }

/* ── Header (rich navy blue — matches page hero) ───────── */
.megillah-header {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 55%, #13253f 100%);
    padding: 1.8rem 1.5rem 1.4rem;
    text-align: center;
    overflow: hidden;
}

.megillah-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 18% 18%, rgba(244, 193, 90, 0.14), transparent 52%),
        radial-gradient(ellipse at 82% 78%, rgba(147, 197, 253, 0.14), transparent 55%);
    pointer-events: none;
}

.megillah-eyebrow {
    position: relative;
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--purim-amber);
    font-weight: 800;
}

.megillah-title-hebrew {
    position: relative;
    display: block;
    font-family: "Times New Roman", "David", serif;
    font-size: 1.6rem;
    color: var(--purim-amber);
    margin: 0.35rem 0 0.1rem;
    direction: rtl;
    font-weight: normal;
    text-shadow: 0 2px 14px rgba(244, 193, 90, 0.35);
}

.megillah-header h2 {
    position: relative;
    margin: 0.1rem 0 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.megillah-desc {
    position: relative;
    margin: 0.55rem 0 0;
    font-size: 0.9rem;
    color: rgba(219, 234, 254, 0.85);
    line-height: 1.55;
}

/* Decoration images row in header */
.megillah-header-decos {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.1rem;
}

.megillah-header-decos img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.28s ease;
}

.megillah-header-decos img:nth-child(1) { transform: rotate(-10deg); }
.megillah-header-decos img:nth-child(2) { transform: rotate(6deg) scale(1.05); }
.megillah-header-decos img:nth-child(3) { transform: rotate(-5deg) scale(0.96); }
.megillah-header-decos img:nth-child(4) { transform: rotate(12deg); }
.megillah-header-decos img:nth-child(5) { transform: rotate(-7deg) scale(1.07); }
.megillah-header-decos img:nth-child(6) { transform: rotate(8deg); }
.megillah-header-decos img:hover { transform: scale(1.2) rotate(0deg) !important; }

/* ── Chapter navigation tab strip ─────────────────────── */
.megillah-chapters {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    background: #f4f7ff;
    border-bottom: 1px solid rgba(19, 37, 63, 0.1);
}

.megillah-ch-btn {
    padding: 0.42rem 0.88rem;
    border-radius: 999px;
    border: 1.5px solid var(--purim-border);
    background: #ffffff;
    color: var(--purim-navy);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 1px 3px rgba(14, 31, 54, 0.06);
}

.megillah-ch-btn:hover {
    border-color: var(--purim-gold);
    color: var(--purim-gold);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(176, 114, 26, 0.15);
}

.megillah-ch-btn.active {
    background: linear-gradient(135deg, #f4c15a, #e8a422);
    border-color: transparent;
    color: #13253f;
    box-shadow: 0 4px 14px rgba(244, 193, 90, 0.38);
}

.megillah-all-btn {
    padding: 0.42rem 1rem;
    border-radius: 999px;
    border: 1.5px dashed var(--purim-border);
    background: transparent;
    color: var(--purim-muted);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: "Manrope", sans-serif;
    cursor: pointer;
    transition: all 0.18s ease;
}

.megillah-all-btn:hover,
.megillah-all-btn.active {
    border-style: solid;
    border-color: var(--purim-navy);
    color: var(--purim-navy);
    background: #ffffff;
}

/* ── Verse content area ────────────────────────────────── */
.megillah-content {
    padding: 1.4rem 2rem 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.megillah-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--purim-muted);
    font-size: 1rem;
}

/* Chapter header (inside rendered content) */
.megillah-ch-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.95rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(244, 193, 90, 0.28);
}

.megillah-ch-icon {
    width: 46px;
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
    flex-shrink: 0;
}

.megillah-ch-title {
    margin: 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.22rem;
    color: var(--purim-navy);
}

.megillah-ch-title-he {
    margin: 0.12rem 0 0;
    font-family: "Times New Roman", "David", serif;
    font-size: 1rem;
    color: var(--purim-muted);
    direction: rtl;
    font-weight: normal;
}

/* ── Individual verse card ─────────────────────────────── */
.megillah-verse {
    background: #ffffff;
    border: 1px solid rgba(19, 37, 63, 0.09);
    border-left: 3px solid var(--purim-amber);
    border-radius: 12px;
    padding: 1rem 1.4rem;
    margin-bottom: 0.65rem;
    transition: box-shadow 0.18s ease, transform 0.15s ease;
}

.megillah-verse:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 31, 54, 0.09);
}

.megillah-verse-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
}

.megillah-verse-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4c15a, #e8a422);
    color: #13253f;
    font-size: 0.68rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(228, 160, 30, 0.28);
}

.megillah-verse-hebrew {
    direction: rtl;
    text-align: right;
    font-family: "Times New Roman", "David", "SBL Hebrew", serif;
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--purim-navy);
    font-weight: normal;
    margin: 0 0 0.55rem;
    padding: 0;
}

.megillah-verse-english {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #344257;
    margin: 0;
    padding: 0 0.1rem;
}

.mgv-haman-noiser {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0 0.22rem;
    padding: 0;
    border: 1.5px solid rgba(176, 114, 26, 0.4);
    border-radius: 999px;
    background: #fff8eb;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.14s ease, box-shadow 0.16s ease, background 0.16s ease;
    box-shadow: 0 1px 4px rgba(176, 114, 26, 0.15);
}

.mgv-haman-noiser img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.mgv-haman-noiser:hover {
    background: #fdecc8;
    box-shadow: 0 3px 10px rgba(176, 114, 26, 0.28);
    transform: translateY(-2px) scale(1.08);
}

.mgv-haman-noiser.is-playing {
    animation: noiserShake 0.36s ease-in-out 1;
}

@keyframes noiserShake {
    0%   { transform: rotate(0deg)   scale(1);    }
    20%  { transform: rotate(-18deg) scale(1.12); }
    40%  { transform: rotate(18deg)  scale(1.12); }
    60%  { transform: rotate(-12deg) scale(1.06); }
    80%  { transform: rotate(10deg)  scale(1.04); }
    100% { transform: rotate(0deg)   scale(1);    }
}

/* ── Verse reaction buttons (matches main app style) ───── */
.megillah-verse-reactions {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.7rem;
    flex-wrap: wrap;
}

/* Base pill button */
.mgv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.32rem 0.68rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: "Manrope", sans-serif;
    cursor: pointer;
    transition: all 0.17s ease;
    border: 1px solid;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mgv-btn:hover  { transform: translateY(-1px); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); }
.mgv-btn:active { transform: translateY(0); }

/* Emphasize — amber */
.mgv-emphasize         { color: #92400e; border-color: #fde68a; background: #fef3c7; }
.mgv-emphasize:hover   { background: #fde68a; border-color: #fcd34d; box-shadow: 0 3px 8px rgba(245,158,11,0.2); }
.mgv-emphasize.active  { background: #f59e0b; color: #fff; border-color: #d97706; box-shadow: 0 3px 8px rgba(217,119,6,0.25); }

/* Heart — rose */
.mgv-heart         { color: #9d174d; border-color: #fbcfe8; background: #fce7f3; }
.mgv-heart:hover   { background: #fbcfe8; border-color: #f9a8d4; box-shadow: 0 3px 8px rgba(236,72,153,0.2); }
.mgv-heart.active  { background: #db2777; color: #fff; border-color: #be185d; box-shadow: 0 3px 8px rgba(190,24,93,0.25); }

/* Bookmark — blue */
.mgv-bookmark         { color: #1e40af; border-color: #bfdbfe; background: #dbeafe; }
.mgv-bookmark:hover   { background: #bfdbfe; border-color: #93c5fd; box-shadow: 0 3px 8px rgba(59,130,246,0.2); }
.mgv-bookmark.active  { background: #3b82f6; color: #fff; border-color: #2563eb; box-shadow: 0 3px 8px rgba(37,99,235,0.25); }

.mgv-commentary {
    color: #4b5563;
    border-color: #d1d5db;
    background: #f9fafb;
    font-weight: 700;
}

.mgv-commentary:hover {
    color: #13253f;
    border-color: #9ca3af;
    background: #f3f4f6;
    box-shadow: 0 3px 8px rgba(55, 65, 81, 0.16);
}

.mgv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    line-height: 1;
}

.mgv-bookmark .mgv-icon svg {
    width: 0.88rem;
    height: 0.88rem;
    fill: currentColor;
    display: block;
}

.mgv-count {
    font-size: 0.74rem;
    font-weight: 700;
    min-width: 0.4rem;
}

/* ── Chapter separator (All-chapters view) ─────────────── */
.megillah-separator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.5rem 0 1rem;
}

.megillah-separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(176, 114, 26, 0.32), transparent);
}

.megillah-separator-icon {
    width: 34px;
    height: auto;
    opacity: 0.6;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

/* ── Source credit ─────────────────────────────────────── */
.megillah-credit {
    text-align: center;
    padding: 0.8rem 1rem 0.2rem;
    font-size: 0.78rem;
    color: var(--purim-muted);
    border-top: 1px solid var(--purim-border);
}

.megillah-credit a { color: var(--purim-gold); text-decoration: none; }
.megillah-credit a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 720px) {
    .megillah-section  { border-radius: 18px; }
    .megillah-header   { padding: 1.4rem 1rem 1.2rem; }
    .megillah-header-decos img { height: 40px; }
    .megillah-content  { padding: 1rem; }
    .megillah-verse-hebrew { font-size: 1rem; }
    .megillah-deco { display: none; }
}

@media (max-width: 480px) {
    .megillah-header-decos { gap: 0.6rem; }
    .megillah-header-decos img { height: 32px; }
    .megillah-ch-btn { font-size: 0.74rem; padding: 0.35rem 0.68rem; }
    .mgv-btn { font-size: 0.74rem; padding: 0.28rem 0.58rem; }
}

/* ─────────────────────────────────────────────────────────────────
   esther.html — auth banner
───────────────────────────────────────────────────────────────── */

/* Auth banner — hidden by default; JS removes [hidden] when not signed in */
.esther-auth-banner {
    display: none;
}
.esther-auth-banner:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.8rem auto 0;
    padding: 0.65rem 1rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 10px;
    color: #78350f;
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    line-height: 1.4;
    max-width: 640px;
}

@keyframes authBannerFlash {
    0%, 100% { background: #fef3c7; border-color: #fde68a; }
    40%       { background: #fde68a; border-color: #f59e0b; }
}
.esther-auth-banner--flash {
    animation: authBannerFlash 0.7s ease-in-out 2;
}

/* Commentary modal — hidden by default via [hidden]; shown when JS removes it */
.esther-commentary-modal {
    display: none;
}
.esther-commentary-modal:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}
.esther-commentary-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.esther-commentary-panel {
    width: min(760px, 100%);
    max-height: min(78vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid rgba(19, 37, 63, 0.16);
    background: linear-gradient(150deg, #ffffff, #f8fbff);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.33);
}

.esther-commentary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(19, 37, 63, 0.1);
}

.esther-commentary-header h2 {
    margin: 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.06rem;
    color: var(--purim-navy);
}

.esther-commentary-close {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(19, 37, 63, 0.16);
    background: #ffffff;
    color: var(--purim-muted);
    font-size: 1.22rem;
    line-height: 1;
    cursor: pointer;
}

.esther-commentary-close:hover {
    background: #f3f4f6;
    color: var(--purim-navy);
}

.esther-commentary-body {
    overflow-y: auto;
    padding: 0.9rem 1rem 1.1rem;
    display: grid;
    gap: 0.7rem;
}

.esther-commentary-entry {
    border-radius: 12px;
    border: 1px solid rgba(19, 37, 63, 0.12);
    background: #ffffff;
    padding: 0.7rem 0.8rem;
}

.esther-commentary-entry h3 {
    margin: 0;
    color: #1e3a5f;
    font-size: 0.92rem;
    font-weight: 800;
}

.esther-commentary-entry p {
    margin: 0.4rem 0 0;
    font-size: 0.92rem;
    color: #3b556f;
    line-height: 1.62;
}

@media (max-width: 600px) {
    .esther-back-nav { padding: 0.6rem 1rem; }
    .esther-back-title { display: none; }
    .esther-commentary-panel {
        max-height: min(84vh, 720px);
        border-radius: 14px;
    }
    .esther-commentary-header,
    .esther-commentary-body {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

/* ══════════════════════════════════════════════════════════
   ESTHER BACK NAV — improved
   ══════════════════════════════════════════════════════════ */

.esther-back-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--purim-navy) 0%, #1a3259 100%);
    border-bottom: 2px solid var(--purim-gold);
    font-family: 'Manrope', sans-serif;
    font-size: 0.86rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(10, 20, 40, 0.3);
}

.esther-back-link,
.esther-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--purim-amber);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1.5px solid rgba(244, 193, 90, 0.3);
    background: rgba(244, 193, 90, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.esther-back-link:hover,
.esther-back-home:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
}

.esther-back-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    overflow: hidden;
}

.esther-back-title-he {
    font-family: "Times New Roman", "David", serif;
    font-size: 0.96rem;
    color: var(--purim-amber);
    direction: rtl;
    font-weight: normal;
    white-space: nowrap;
}

.esther-back-title-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
}

.esther-back-title > span:last-child {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════
   MEGILLAH HEADER — improved typography & layout
   ══════════════════════════════════════════════════════════ */

/* Fix: h1 in megillah header needs same style as h2 */
.megillah-header h1 {
    position: relative;
    margin: 0.15rem 0 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.55rem, 3.2vw, 2.3rem);
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
    line-height: 1.15;
}

/* Eyebrow ornament stars */
.megillah-eyebrow-ornament {
    color: var(--purim-amber);
    font-size: 0.6rem;
    vertical-align: middle;
    margin: 0 0.35rem;
    opacity: 0.9;
}

/* Decorative divider between Hebrew title and English title */
.megillah-header-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem auto 0.3rem;
    max-width: 300px;
}

.megillah-header-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 193, 90, 0.55), transparent);
}

.megillah-header-divider-img {
    width: 22px;
    height: auto;
    opacity: 0.65;
    filter: drop-shadow(0 0 5px rgba(244, 193, 90, 0.55));
}

/* Subtitle line below h1 */
.megillah-subtitle {
    position: relative;
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    color: rgba(219, 234, 254, 0.65);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
}

/* Make the Hebrew title bigger and more dramatic */
.megillah-title-hebrew {
    font-size: clamp(1.9rem, 4.5vw, 3rem) !important;
    text-shadow: 0 2px 20px rgba(244, 193, 90, 0.45) !important;
    margin: 0.45rem 0 0 !important;
}

/* ── Help badges (replace inline emoji text) ─── */
.megillah-help {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.megillah-help-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.72rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
    border: 1.5px solid;
    line-height: 1;
    letter-spacing: 0.01em;
}

.mgvh-em {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.48);
    color: #fcd34d;
}

.mgvh-heart {
    background: rgba(236, 72, 153, 0.16);
    border-color: rgba(236, 72, 153, 0.42);
    color: #f9a8d4;
}

.mgvh-bk {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.42);
    color: #93c5fd;
}

/* ══════════════════════════════════════════════════════════
   PURIM LANDING PAGE (purim.html redesigned as hub)
   ══════════════════════════════════════════════════════════ */

/* Dark festive background for the whole landing page */
.purim-landing-body {
    background: linear-gradient(150deg, #1d4ed8 0%, #1e3a8a 38%, #0f1e55 72%, #0a1638 100%) !important;
    min-height: 100vh;
}

.purim-landing-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 16% 14%, rgba(244, 193, 90, 0.22), transparent 48%),
        radial-gradient(ellipse at 82% 80%, rgba(96, 165, 250, 0.16), transparent 52%),
        radial-gradient(ellipse at 50% 50%, rgba(147, 51, 234, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Transparent topbar on the landing page */
.purim-topbar--glass {
    background: rgba(15, 30, 85, 0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.purim-back--light {
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}
.purim-back--light:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
}

/* Landing main — full viewport, centered content */
.purim-landing-main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 58px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow: hidden;
}

/* Content box — centered card */
.purim-landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    width: 100%;
    animation: splashIn 0.6s ease both;
}

/* Decorative divider between Hebrew line and subtitle */
.purim-landing-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.9rem auto 0;
    max-width: 360px;
}

.purim-landing-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 193, 90, 0.5), transparent);
}

.purim-landing-divider-img {
    width: 28px;
    height: auto;
    opacity: 0.55;
    filter: drop-shadow(0 0 6px rgba(244, 193, 90, 0.5));
    animation: splashFloat 4.5s ease-in-out infinite 0.6s;
}

/* Landing page subtitle */
.purim-landing-content .splash-subtitle {
    margin: 0.65rem 0 1.6rem;
}

/* Make splash-btn work as <a> tags */
a.splash-btn {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
}

/* Note at the bottom */
.purim-landing-note {
    margin: 1.5rem 0 0;
    font-size: 0.8rem;
    color: rgba(219, 234, 254, 0.45);
    font-family: "Manrope", sans-serif;
    letter-spacing: 0.02em;
}

.purim-landing-note strong {
    color: rgba(219, 234, 254, 0.7);
    font-weight: 700;
}

/* Landing footer */
.purim-landing-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0.9rem 1rem 1.5rem;
    font-size: 0.82rem;
    color: rgba(219, 234, 254, 0.38);
    font-family: "Manrope", sans-serif;
}

.purim-landing-footer a {
    color: rgba(219, 234, 254, 0.55);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.18s ease;
}

.purim-landing-footer a:hover {
    color: rgba(219, 234, 254, 0.9);
}

/* Footer removed sitewide */
footer,
.page-footer {
    display: none !important;
}

/* Landing-page splash decos are positioned relative to .purim-landing-main */
.purim-landing-main .splash-deco {
    position: absolute;
}

@media (max-width: 540px) {
    .purim-landing-main { padding: 1.5rem 1rem; }
    .purim-landing-content .splash-choices { grid-template-columns: 1fr; gap: 0.75rem; }
}

@media (max-width: 600px) {
    .esther-back-title { display: none; }
}

/* Esther page refinements: cleaner top section and text-only commentary action */
.esther-reader-body {
    background: #ffffff !important;
}

.esther-reader-body .esther-page-main,
.esther-reader-body .megillah-section,
.esther-reader-body .megillah-chapters,
.esther-reader-body .megillah-content {
    background: #ffffff;
}

.esther-back-nav {
    background:
        linear-gradient(120deg, rgba(10, 27, 54, 0.96) 0%, rgba(21, 45, 85, 0.94) 62%, rgba(18, 44, 78, 0.95) 100%),
        radial-gradient(circle at 12% 18%, rgba(244, 193, 90, 0.18), transparent 42%);
    border-bottom: 1px solid rgba(244, 193, 90, 0.42);
}

.esther-back-link,
.esther-back-home {
    color: #f7d58e;
    border-color: rgba(247, 213, 142, 0.34);
    background: rgba(247, 213, 142, 0.08);
}

.esther-back-title > span:last-child {
    color: rgba(255, 255, 255, 0.78);
}

.megillah-header {
    background:
        radial-gradient(circle at 14% 15%, rgba(244, 193, 90, 0.2), transparent 40%),
        radial-gradient(circle at 84% 86%, rgba(125, 211, 252, 0.16), transparent 42%),
        linear-gradient(135deg, #163f84 0%, #1a3f7c 34%, #162f58 62%, #112341 100%);
    border-bottom: 1px solid rgba(244, 193, 90, 0.24);
}

.megillah-eyebrow {
    color: #f8d999;
    letter-spacing: 0.2em;
}

.megillah-subtitle {
    margin-top: 0.45rem;
    color: rgba(227, 239, 255, 0.88);
    letter-spacing: 0.06em;
    text-transform: none;
}

.megillah-intro-note {
    max-width: 64ch;
    margin: 0.7rem auto 0;
    padding: 0.55rem 0.8rem;
    color: rgba(227, 239, 255, 0.92);
    font-size: 0.92rem;
    border-radius: 999px;
    border: 1px solid rgba(170, 204, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.megillah-help {
    margin-top: 0.8rem;
}

.megillah-help-badge {
    min-height: 30px;
    padding-left: 0.78rem;
    padding-right: 0.78rem;
}

.mgvh-cm {
    background: rgba(209, 213, 219, 0.18);
    border-color: rgba(209, 213, 219, 0.5);
    color: #e5e7eb;
}

.mgv-commentary {
    color: #344257;
    border-color: #c4cedb;
    background: #eef2f8;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.mgv-commentary:hover {
    color: #1a304d;
    border-color: #aab8cb;
    background: #e1e9f4;
}

.mgv-commentary:focus-visible {
    outline: 2px solid #567cb6;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .megillah-intro-note {
        font-size: 0.84rem;
        border-radius: 14px;
    }

    .megillah-help-badge {
        font-size: 0.73rem;
    }
}

/* ══════════════════════════════════════════════════════════
   PURIM SONGS LIST PAGE — Festive redesign
   ══════════════════════════════════════════════════════════ */

.purim-songs-body {
    background: linear-gradient(145deg, #0c1d38 0%, #14253f 45%, #1a2d4a 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Floating decorations */
.psong-deco {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    animation: splashFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.psong-deco-1 { width: 88px;  top: 7%;   left: 1.5%; --r: -12deg; animation-duration: 5.5s; opacity: 0.22; }
.psong-deco-2 { width: 76px;  top: 18%;  right: 2%;  --r: 15deg;  animation-duration: 7s;   animation-delay: 1s;   opacity: 0.20; }
.psong-deco-3 { width: 72px;  bottom: 22%; left: 2%; --r: 6deg;   animation-duration: 6.5s; animation-delay: 0.5s; opacity: 0.18; }
.psong-deco-4 { width: 82px;  bottom: 9%;  right: 1.5%; --r: -8deg; animation-duration: 5s; animation-delay: 2s;   opacity: 0.20; }
.psong-deco-5 { width: 66px;  top: 46%; left: 0.5%; --r: 20deg;  animation-duration: 8s;   animation-delay: 1.5s; opacity: 0.15; }
.psong-deco-6 { width: 74px;  top: 42%; right: 0.5%; --r: -15deg; animation-duration: 7.5s; animation-delay: 0.8s; opacity: 0.17; }

/* Hero header */
.psongs-hero {
    text-align: center;
    padding: 2.8rem 1.5rem 1.8rem;
    position: relative;
    z-index: 1;
}
.psongs-kicker {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--purim-amber);
    margin: 0 0 0.55rem;
}
.psongs-title-he {
    display: block;
    font-family: "Times New Roman", "David", serif;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    color: var(--purim-amber);
    margin: 0 0 0.25rem;
    line-height: 1.2;
}
.psongs-title-en {
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.9rem, 4.8vw, 2.9rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.55rem;
    text-shadow: 0 2px 18px rgba(0,0,0,0.3);
    line-height: 1.1;
}
.psongs-subtitle {
    color: rgba(219, 234, 254, 0.78);
    font-size: 0.98rem;
    margin: 0 auto;
    max-width: 480px;
    line-height: 1.6;
}

/* Nav pill links */
.psongs-nav {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1.25rem 1.2rem;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.psongs-nav-link {
    padding: 0.42rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(219,234,254,0.82);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.psongs-nav-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(244,193,90,0.5);
    color: var(--purim-amber);
}

/* Song card grid */
.psongs-grid {
    max-width: 980px;
    margin: 0.5rem auto 0;
    padding: 0 1.25rem 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    position: relative;
    z-index: 1;
}
.psong-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    cursor: pointer;
}
.psong-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 56px rgba(0,0,0,0.45);
    border-color: rgba(244, 193, 90, 0.65);
}
.psong-card-imgwrap {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(244,193,90,0.18) 0%, rgba(96,165,250,0.12) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.psong-card-imgwrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(244,193,90,0.22), transparent 65%);
}
.psong-card-imgwrap img {
    height: 85px;
    width: auto;
    position: relative;
    filter: drop-shadow(0 5px 12px rgba(0,0,0,0.5));
    transition: transform 0.32s ease;
    object-fit: contain;
}
.psong-card:hover .psong-card-imgwrap img {
    transform: scale(1.1) rotate(3deg);
}
.psong-card:hover .psong-card-imgwrap img:nth-child(2) {
    transform: scale(1.08) rotate(-4deg);
}
.psong-card-body {
    padding: 1.1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}
.psong-card-title-he {
    font-family: "Times New Roman", "David", serif;
    font-size: 1.2rem;
    color: var(--purim-amber);
    direction: rtl;
    text-align: right;
    margin: 0;
    line-height: 1.3;
}
.psong-card-title-en {
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}
.psong-card-meta {
    font-size: 0.76rem;
    color: rgba(219, 234, 254, 0.55);
    margin: 0;
    line-height: 1.45;
}
.psong-card-desc {
    font-size: 0.86rem;
    color: rgba(219, 234, 254, 0.78);
    margin: 0.25rem 0 0;
    flex: 1;
    line-height: 1.58;
}
.psong-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.8rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--purim-amber);
    letter-spacing: 0.04em;
}
.psong-card:hover .psong-card-cta {
    gap: 0.55rem;
}

/* ══════════════════════════════════════════════════════════
   PURIM SONG DETAIL PAGE — Line-by-line lyrics
   ══════════════════════════════════════════════════════════ */

/* Subtle fixed corner decorations */
.sdetail-deco {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    animation: splashFloat 7s ease-in-out infinite;
    filter: drop-shadow(0 3px 7px rgba(0,0,0,0.22));
}
.sdetail-deco-1 { width: 78px;  top: 14%;    left: 0.25%; --r: -10deg; animation-duration: 6s;   opacity: 0.14; }
.sdetail-deco-2 { width: 68px;  top: 28%;    right: 0.25%; --r: 13deg;  animation-duration: 8.5s; animation-delay: 1s;  opacity: 0.12; }
.sdetail-deco-3 { width: 62px;  bottom: 28%; left: 0.25%; --r: 5deg;   animation-duration: 7s;   animation-delay: 2s;  opacity: 0.12; }
.sdetail-deco-4 { width: 70px;  bottom: 12%; right: 0.25%; --r: -7deg;  animation-duration: 5.5s; animation-delay: 0.5s; opacity: 0.13; }

/* Dark festive header */
.sdetail-hero {
    background: linear-gradient(145deg, #0c1d38 0%, #14253f 50%, #1e3a6e 100%);
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.sdetail-hero::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--purim-amber), transparent);
}
.sdetail-kicker {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    color: var(--purim-amber);
    margin: 0 0 0.5rem;
}
.sdetail-title-he {
    font-family: "Times New Roman", "David", serif;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    color: var(--purim-amber);
    margin: 0 0 0.15rem;
    line-height: 1.15;
    direction: rtl;
}
.sdetail-title-en {
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.85rem);
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
    line-height: 1.2;
}
.sdetail-meta {
    font-size: 0.83rem;
    color: rgba(219, 234, 254, 0.65);
    margin: 0;
    line-height: 1.5;
}

/* Back nav above header */
.sdetail-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #60a5fa 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}
.sdetail-topbar__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Main content area */
.sdetail-main {
    max-width: 880px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 3.5rem;
    position: relative;
    z-index: 1;
}

/* Video */
.sdetail-video-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: #0b1725;
    border: 1px solid rgba(19,37,63,0.25);
    box-shadow: 0 14px 36px rgba(14, 31, 54, 0.18);
    margin-bottom: 2.25rem;
}
.sdetail-video {
    width: 100%;
    display: block;
    max-height: 440px;
}

/* Lyrics section */
.sdetail-lyrics-section {
    margin-bottom: 2rem;
}
.sdetail-lyrics-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}
.sdetail-lyrics-title {
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--purim-navy);
    margin: 0;
    white-space: nowrap;
}
.sdetail-lyrics-divider {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, var(--purim-border), transparent);
}

/* Column legend row */
.sdetail-legend {
    display: grid;
    grid-template-columns: 2fr 3fr 3fr;
    gap: 0;
    margin-bottom: 0.4rem;
    padding: 0 0.1rem;
}
.sdetail-legend-col {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--purim-muted);
    padding: 0 0.65rem;
}
.sdetail-legend-col:first-child { text-align: right; }

/* Lyric table */
.lyric-table {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* Stanza (verse / chorus group) */
.lyric-stanza {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lyric-stanza-label {
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--purim-muted);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.2rem;
}
.lyric-stanza-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(19,37,63,0.1);
}

/* One lyric line row */
.lyric-line {
    display: grid;
    grid-template-columns: 2fr 3fr 3fr;
    border-radius: 7px;
    border: 1px solid rgba(19,37,63,0.09);
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.15s ease;
}
.lyric-line:hover {
    box-shadow: 0 3px 12px rgba(19,37,63,0.09);
}
.lyric-col {
    padding: 0.4rem 0.68rem;
    font-size: 0.905rem;
    line-height: 1.54;
}
.lyric-col--he {
    direction: rtl;
    text-align: right;
    font-family: "Times New Roman", "David", serif;
    font-size: 1.04rem;
    line-height: 1.52;
    color: #1a2f4e;
    background: rgba(244, 193, 90, 0.1);
    border-left: 1px solid rgba(19,37,63,0.08);
}
.lyric-col--tl {
    font-style: italic;
    color: #2a4d80;
    background: #f3f7ff;
    border-left: 1px solid rgba(19,37,63,0.07);
    text-align: center;
}
.lyric-col--en {
    color: #374a65;
    background: #ffffff;
}

/* Chorus stanza — golden tint */
.lyric-stanza--chorus .lyric-stanza-label { color: var(--purim-gold); }
.lyric-stanza--chorus .lyric-stanza-label::after { background: rgba(176,114,26,0.2); }
.lyric-stanza--chorus .lyric-line { border-color: rgba(244,193,90,0.28); }
.lyric-stanza--chorus .lyric-col--he { background: rgba(244,193,90,0.2); }
.lyric-stanza--chorus .lyric-col--tl { background: rgba(244,193,90,0.07); }

/* Song part divider (for mashup page) */
.sdetail-part-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 2.25rem 0 1.5rem;
}
.sdetail-part-divider-line {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(176,114,26,0.35), transparent);
}
.sdetail-part-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-align: center;
}
.sdetail-part-title-he {
    font-family: "Times New Roman", "David", serif;
    font-size: 1.2rem;
    color: var(--purim-gold);
    direction: rtl;
    line-height: 1.2;
}
.sdetail-part-title-en {
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--purim-navy);
}
.sdetail-part-meta {
    font-size: 0.76rem;
    color: var(--purim-muted);
}

/* Responsive */
@media (min-width: 540px) and (max-width: 900px) {
    .psongs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .psongs-grid { grid-template-columns: 1fr; }
    .psong-deco-5, .psong-deco-6 { display: none; }
}
@media (max-width: 620px) {
    .lyric-line { grid-template-columns: 1fr; }
    .lyric-col--he,
    .lyric-col--tl { border-left: none; border-bottom: 1px solid rgba(19,37,63,0.07); }
    .sdetail-legend { display: none; }
    .sdetail-hero { padding: 1.5rem 1rem 1.35rem; }
    .sdetail-main { padding: 1.25rem 0.9rem 2.5rem; }
}
