:root {
    --bg: #0a0a0c;
    --surface: #121218;
    --gold: #c9a227;
    --gold-dim: #8a7020;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --on-gold: #0a0a0c;
    --card-bg: #171b22;
    --card-border: #282f3b;
    --card-text: #f9fafb;
    --asset-bg: #171b22;
    --asset-border: #2f3745;
    --table-bg: #171b22;
    --table-border: #2d3440;
    --header-bg: rgba(10, 10, 12, 0.92);
    --header-border: rgba(201, 162, 39, 0.25);
    --nav-cluster-bg: linear-gradient(165deg, rgba(24, 26, 34, 0.94) 0%, rgba(12, 13, 18, 0.92) 100%);
    --nav-cluster-border: rgba(201, 162, 39, 0.28);
    --nav-cluster-border-top: rgba(201, 162, 39, 0.42);
    --nav-cluster-inset: rgba(255, 248, 220, 0.07);
    --nav-cluster-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
    --nav-link: rgba(228, 230, 236, 0.88);
    --nav-link-hover: #f8efd0;
    --nav-link-hover-bg: rgba(201, 162, 39, 0.11);
    --social-bg: rgba(18, 18, 24, 0.45);
    --social-bg-hover: rgba(18, 18, 24, 0.65);
    --video-stage-bg: linear-gradient(155deg, #141820 0%, #0a0c10 55%, #12151a 100%);
    --video-el-bg: #050608;
    --hero-grad-from: #ffffff;
    --page-title-grad-a: #f6f7fb;
    --page-title-grad-b: #f0d98c;
    --page-title-grad-c: #c9a227;
    --qr-border: rgba(10, 10, 12, 0.72);
    --embed-bg: #0c0c0f;
    --input-bg: rgba(18, 18, 24, 0.8);
    --input-border: rgba(47, 55, 69, 1);
    --panel-soft: rgba(18, 18, 24, 0.45);
    --trust-strip-bg: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(18, 18, 24, 0.95));
    --modal-backdrop: rgba(0, 0, 0, 0.72);
    --modal-surface: rgba(18, 18, 24, 0.98);
    --modal-border: rgba(47, 55, 69, 1);
    --modal-img-bg: #0a0a0c;
    --modal-close-bg: rgba(10, 10, 12, 0.6);
    --modal-gallery-bg: #0c0c0f;
    --caption-divider: rgba(255, 255, 255, 0.06);
    --media-chrome: #070709;
    --floating-ui-bg: rgba(10, 10, 12, 0.86);
    --floating-ui-bg-hover: rgba(10, 10, 12, 0.98);
    --sound-toggle-bg: rgba(10, 10, 12, 0.55);
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f0e8dc;
    --surface: #fffdf8;
    --gold: #a67c0f;
    --gold-dim: #7a5c0c;
    --text: #1c1914;
    --muted: #5a5348;
    --on-gold: #fffdf5;
    --card-bg: #fffaf2;
    --card-border: rgba(166, 124, 15, 0.28);
    --card-text: #1c1914;
    --asset-bg: #faf5eb;
    --asset-border: rgba(140, 110, 50, 0.22);
    --table-bg: #faf5eb;
    --table-border: rgba(120, 98, 55, 0.2);
    --header-bg: rgba(255, 253, 248, 0.94);
    --header-border: rgba(166, 124, 15, 0.32);
    --nav-cluster-bg: linear-gradient(165deg, rgba(255, 252, 245, 0.99) 0%, rgba(245, 234, 214, 0.97) 100%);
    --nav-cluster-border: rgba(180, 145, 55, 0.35);
    --nav-cluster-border-top: rgba(200, 165, 70, 0.5);
    --nav-cluster-inset: rgba(255, 255, 255, 0.65);
    --nav-cluster-shadow: 0 6px 22px rgba(80, 60, 30, 0.1);
    --nav-link: rgba(38, 34, 28, 0.9);
    --nav-link-hover: #3d3318;
    --nav-link-hover-bg: rgba(166, 124, 15, 0.12);
    --social-bg: rgba(255, 246, 225, 0.9);
    --social-bg-hover: rgba(255, 238, 200, 0.98);
    --video-stage-bg: linear-gradient(155deg, #ebe4d6 0%, #e4dcc8 55%, #efe8dc 100%);
    --video-el-bg: #ddd6c8;
    --hero-grad-from: #0f0d0a;
    --page-title-grad-a: #14110d;
    --page-title-grad-b: #6a5420;
    --page-title-grad-c: #a67c0f;
    --qr-border: rgba(50, 42, 28, 0.18);
    --embed-bg: #f2ebe0;
    --input-bg: rgba(255, 252, 245, 0.95);
    --input-border: rgba(140, 115, 60, 0.35);
    --panel-soft: rgba(255, 248, 235, 0.9);
    --trust-strip-bg: linear-gradient(135deg, rgba(166, 124, 15, 0.14), rgba(255, 252, 245, 0.98));
    --modal-backdrop: rgba(42, 36, 28, 0.48);
    --modal-surface: rgba(255, 253, 248, 0.98);
    --modal-border: rgba(166, 124, 15, 0.3);
    --modal-img-bg: #ebe4d8;
    --modal-close-bg: rgba(255, 252, 245, 0.92);
    --modal-gallery-bg: #e8e2d4;
    --caption-divider: rgba(40, 35, 28, 0.08);
    --media-chrome: #e0d8ca;
    --floating-ui-bg: rgba(255, 253, 248, 0.94);
    --floating-ui-bg-hover: #fffdf8;
    --sound-toggle-bg: rgba(255, 252, 245, 0.88);
}

html[data-theme="light"] .cosmos-nebula {
    opacity: 0.32;
    background:
        radial-gradient(900px 520px at 16% 18%, rgba(201, 162, 80, 0.2), transparent 66%),
        radial-gradient(720px 460px at 82% 22%, rgba(180, 140, 70, 0.16), transparent 63%),
        radial-gradient(980px 640px at 50% 88%, rgba(160, 120, 60, 0.12), transparent 72%);
}

html[data-theme="light"] .cosmos-sphere {
    opacity: 0.38;
    background:
        radial-gradient(circle at 28% 28%, rgba(255, 220, 140, 0.35), transparent 42%),
        radial-gradient(circle at 60% 60%, rgba(210, 170, 80, 0.22), transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(200, 160, 70, 0.14), transparent 70%),
        radial-gradient(circle at 50% 90%, rgba(120, 100, 80, 0.08), transparent 55%);
}

html[data-theme="light"] .cosmos-core {
    filter: sepia(0.25) saturate(0.9) brightness(1.08) contrast(1.02);
    opacity: 0.22;
    box-shadow:
        0 0 36px rgba(200, 160, 80, 0.2),
        0 0 90px rgba(180, 140, 70, 0.12);
}

html[data-theme="light"] .cosmos-logo {
    filter: sepia(0.35) saturate(0.75) brightness(0.92);
    opacity: 0.055;
}

html[data-theme="light"] .cosmos-planet {
    opacity: 0.05;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
}

.cosmos-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    perspective: 900px;
}

.cosmos-nebula {
    position: absolute;
    inset: -8%;
    background:
        radial-gradient(900px 520px at 16% 18%, rgba(109, 78, 42, 0.18), transparent 66%),
        radial-gradient(720px 460px at 82% 22%, rgba(128, 92, 50, 0.14), transparent 63%),
        radial-gradient(980px 640px at 50% 88%, rgba(88, 64, 38, 0.12), transparent 72%);
    opacity: 0.48;
    z-index: 0;
}

.cosmos-sphere {
    position: absolute;
    width: 1150px;
    height: 1150px;
    top: 44%;
    left: 52%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 28%, rgba(233, 192, 97, 0.22), transparent 40%),
        radial-gradient(circle at 60% 60%, rgba(170, 112, 34, 0.18), transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(201, 162, 39, 0.12), transparent 70%),
        radial-gradient(circle at 50% 90%, rgba(0, 0, 0, 0.40), transparent 55%);
    filter: blur(0.6px);
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
}

.cosmos-core {
    position: absolute;
    width: 210px;
    height: 210px;
    top: 42%;
    left: 52%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-image: url("/images/logo-chabad-bat-yam.png");
    background-size: 190px 190px;
    background-position: center;
    background-repeat: no-repeat;
    filter: sepia(0.85) saturate(0.6) hue-rotate(-8deg) brightness(0.9) contrast(1.05);
    box-shadow:
        0 0 42px rgba(190, 138, 73, 0.22),
        0 0 110px rgba(126, 88, 46, 0.14);
    opacity: 0.32;
    z-index: 2;
}

.cosmos-logo {
    position: absolute;
    display: block;
    background-image: url("/images/logo-chabad-bat-yam.png");
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 50%;
    filter: sepia(0.84) saturate(0.65) brightness(0.68);
    opacity: 0.08;
    z-index: 1;
}

.cosmos-planet {
    position: absolute;
    display: block;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%,
            rgba(255, 233, 182, 0.26),
            rgba(201, 162, 39, 0.10) 40%,
            rgba(121, 82, 36, 0.08) 72%,
            transparent 100%);
    box-shadow:
        inset 0 0 0 1px rgba(201, 162, 39, 0.14),
        0 0 18px rgba(201, 162, 39, 0.10);
    filter: blur(1.1px);
    opacity: 0.06;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 0;
    z-index: 1;
}

.cosmos-orbit {
    position: absolute;
    top: 42%;
    left: 52%;
    transform-style: preserve-3d;
}

.cosmos-orbit.o1 { animation: orbit-spin-1 92s linear infinite; }
.cosmos-orbit.o2 { animation: orbit-spin-2 120s linear infinite; }
.cosmos-orbit.o3 { animation: orbit-spin-3 146s linear infinite; }

.cosmos-orbit.o1 .pl1 { width: 44px; height: 44px; transform: translate(-50%, -210px) scale(0.9); opacity: 0.07; }
.cosmos-orbit.o2 .pl2 { width: 34px; height: 34px; transform: translate(-50%, -300px) scale(0.74); opacity: 0.055; }
.cosmos-orbit.o3 .pl3 { width: 56px; height: 56px; transform: translate(-50%, -390px) scale(1.02); opacity: 0.05; }

.cosmos-logo.p1 { width: 48px; height: 48px; top: 12%; left: 14%; animation: drift-p1 70s ease-in-out infinite alternate; opacity: 0.065; }
.cosmos-logo.p2 { width: 30px; height: 30px; top: 24%; left: 78%; animation: drift-p2 88s ease-in-out infinite alternate; opacity: 0.055; }
.cosmos-logo.p3 { width: 60px; height: 60px; top: 68%; left: 16%; animation: drift-p3 105s ease-in-out infinite alternate; opacity: 0.06; }
.cosmos-logo.p4 { width: 36px; height: 36px; top: 74%; left: 84%; animation: drift-p4 95s ease-in-out infinite alternate; opacity: 0.05; }
.cosmos-logo.p5 { width: 42px; height: 42px; top: 50%; left: 6%; animation: drift-p5 112s ease-in-out infinite alternate; opacity: 0.052; }

@keyframes orbit-spin-1 {
    from { transform: rotate(0deg) translateZ(20px); }
    to { transform: rotate(360deg) translateZ(20px); }
}
@keyframes orbit-spin-2 {
    from { transform: rotate(360deg) translateZ(-30px); }
    to { transform: rotate(0deg) translateZ(-30px); }
}
@keyframes orbit-spin-3 {
    from { transform: rotate(0deg) translateZ(55px); }
    to { transform: rotate(360deg) translateZ(55px); }
}
@keyframes drift-p1 { from { transform: translate3d(0,0,0) scale(0.95); } to { transform: translate3d(80px,-28px,35px) scale(1.08);} }
@keyframes drift-p2 { from { transform: translate3d(0,0,0) scale(0.9);} to { transform: translate3d(-90px,34px,-30px) scale(1.05);} }
@keyframes drift-p3 { from { transform: translate3d(0,0,0) scale(0.96);} to { transform: translate3d(72px,-44px,28px) scale(1.1);} }
@keyframes drift-p4 { from { transform: translate3d(0,0,0) scale(0.92);} to { transform: translate3d(-64px,-26px,-24px) scale(1.03);} }
@keyframes drift-p5 { from { transform: translate3d(0,0,0) scale(0.94);} to { transform: translate3d(94px,18px,26px) scale(1.06);} }

@media (max-width: 760px) {
    .cosmos-core { width: 140px; height: 140px; }
    .cosmos-logo.p3, .cosmos-logo.p4 { display: none; }
    .cosmos-sphere { width: 820px; height: 820px; opacity: 0.45; }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px;
    color: var(--card-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.asset {
    background: var(--asset-bg);
    border-radius: 12px;
    border: 1px solid var(--asset-border);
    padding: 8px;
}

.asset img, .asset video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Gallery category: video thumbnail + play (layers — must beat .asset img / .asset video) */
.asset .gallery-video-frame {
    width: 100%;
}

.asset .gallery-video-stage {
    position: relative;
    width: 100%;
    min-height: 168px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--video-stage-bg);
    contain: layout style;
}

.asset .gallery-video-stage.is-loading {
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.12);
}

/* Video + poster: out of flow so they never stack vertically */
.asset .gallery-video-frame .gallery-video-el,
.asset .gallery-video-frame .gallery-video-poster {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-sizing: border-box;
}

.asset .gallery-video-frame .gallery-video-el {
    z-index: 1;
    background: var(--video-el-bg);
    opacity: 0;
    pointer-events: none;
}

.asset .gallery-video-frame .gallery-video-poster {
    z-index: 2;
    pointer-events: none;
}

.asset .gallery-video-frame.is-playing .gallery-video-el {
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
}

.asset .gallery-video-frame.is-playing .gallery-video-poster,
.asset .gallery-video-frame.is-playing .gallery-video-play {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.asset .gallery-video-frame .gallery-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
    transition: transform 0.18s ease, filter 0.18s ease;
}

.asset .gallery-video-frame .gallery-video-play:hover {
    transform: translate(-50%, -50%) scale(1.06);
    filter: drop-shadow(0 8px 22px rgba(201, 162, 39, 0.35));
}

.asset .gallery-video-frame .gallery-video-play:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.85);
    outline-offset: 4px;
    border-radius: 50%;
}

.asset .gallery-video-poster-fallback .gallery-video-poster[hidden] {
    display: none;
}

/* Respect EXIF orientation for photos served as-is (browser support varies). */
.asset img {
    image-orientation: from-image;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--table-bg);
}

th, td {
    border: 1px solid var(--table-border);
    padding: 8px;
    text-align: start;
    font-size: 13px;
}

.path-cell {
    max-width: 420px;
    word-break: break-all;
}

.site-header {
    border-bottom: 1px solid var(--header-border);
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
    overflow: visible;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.header-bar {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    min-height: 0;
    padding-inline-end: 200px;
}

.header-whatsapp-link--qr {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 88px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--qr-border);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
    padding: 4px;
    text-decoration: none;
    z-index: 2;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.header-whatsapp-link--qr:hover {
    transform: translateX(-50%) translateY(-1px) scale(1.04);
    filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.45));
}

.header-whatsapp-icon {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

.header-trailing {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 3;
}

.header-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--nav-cluster-border);
    background: var(--social-bg);
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.header-menu-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.header-menu-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--nav-cluster-border-top);
    background: var(--social-bg-hover);
}

.header-menu-toggle:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.55);
    outline-offset: 2px;
}

.header-menu-toggle-bar {
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    display: block;
    position: relative;
}

.site-header--nav-open .header-menu-toggle {
    background: var(--social-bg-hover);
    border-color: var(--nav-cluster-border-top);
}

.header-menu-toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--nav-cluster-border);
    background: var(--social-bg);
    color: var(--gold);
    cursor: pointer;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--nav-cluster-border-top);
    background: var(--social-bg-hover);
    color: var(--gold-dim);
}

.theme-toggle:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.55);
    outline-offset: 2px;
}

.theme-toggle-icon {
    width: 18px;
    height: 18px;
    display: block;
}

html[data-theme="light"] .theme-toggle-icon--sun {
    display: none;
}

html:not([data-theme="light"]) .theme-toggle-icon--moon {
    display: none;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-link {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid rgba(201, 162, 39, 0.25);
}

.lang-link:hover {
    color: var(--gold);
    border-color: rgba(201, 162, 39, 0.45);
}

.lang-link.is-current {
    color: var(--on-gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    border-color: transparent;
}

.brand {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    font-size: 1.05rem;
}

.brand-lockup {
    display: inline-flex;
    align-items: flex-start;
    gap: 14px;
    max-width: min(100%, 520px);
}

.brand-logo-link {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    text-decoration: none;
    isolation: isolate;
}

.brand-logo-link::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 30% 30%, rgba(201, 162, 39, 0.42), transparent 58%),
        radial-gradient(circle at 70% 65%, rgba(201, 162, 39, 0.28), transparent 64%);
    filter: blur(10px);
    transform: scale(0.92);
    transition: opacity 0.26s ease, transform 0.26s ease;
}

.brand-logo-link:hover::before,
.brand-logo-link:focus-visible::before,
.brand-logo-link:active::before {
    opacity: 1;
    transform: scale(1);
    animation: brandLogoGlowPulse 1.5s ease-in-out infinite;
}

/* Official crest: vertical emblem (770 + waves + ХАБАД БАТ-ЯМ). */
.brand-logo-img {
    flex-shrink: 0;
    height: 120px;
    width: 110px;
    max-width: 110px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    transform: scale(1.14);
    transform-origin: top left;
    transition: transform 0.34s ease, filter 0.34s ease;
}

.brand-logo-link:hover .brand-logo-img,
.brand-logo-link:focus-visible .brand-logo-img,
.brand-logo-link:active .brand-logo-img {
    animation: brandLogoFloat 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.4));
}

@keyframes brandLogoGlowPulse {
    0% {
        filter: blur(8px);
    }
    50% {
        filter: blur(13px);
    }
    100% {
        filter: blur(8px);
    }
}

@keyframes brandLogoFloat {
    0% {
        transform: scale(1.14) translateY(0) rotate(0deg);
    }
    50% {
        transform: scale(1.165) translateY(-2px) rotate(-0.45deg);
    }
    100% {
        transform: scale(1.14) translateY(0) rotate(0deg);
    }
}

.brand-lockup-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    gap: 0;
    padding-top: 2px;
}

.brand-text-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    gap: 3px;
    text-decoration: none;
    color: inherit;
}

.brand-name {
    font-size: 1.52rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-subname {
    font-size: 0.66rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

.brand-domain {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.brand-social-inline {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 2px;
}

.brand-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    background: var(--social-bg);
    color: var(--gold);
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.brand-social-link:hover {
    transform: translateY(-1px);
    border-color: rgba(201, 162, 39, 0.55);
    background: var(--social-bg-hover);
}

.brand-social-ico {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* Desktop / tablet: QR in header center; compact WA icon only on small screens */
@media (min-width: 761px) {
    .brand-social-link--whatsapp {
        display: none;
    }

    .brand-social-inline--wa-only {
        display: none;
    }
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-main-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 5px 6px 5px 8px;
    border-radius: 16px;
    background: var(--nav-cluster-bg);
    border: 1px solid var(--nav-cluster-border);
    border-top-color: var(--nav-cluster-border-top);
    box-shadow:
        inset 0 1px 0 var(--nav-cluster-inset),
        var(--nav-cluster-shadow);
    overflow: visible;
}

.nav-main {
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 14px 20px;
    max-width: none;
    padding-top: 0;
    margin-inline-start: 150px;
    overflow: visible;
}

.nav-main-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--nav-link);
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.nav-main-link:hover {
    color: var(--nav-link-hover);
    background: var(--nav-link-hover-bg);
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.18);
}

.nav-main-link:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.65);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nav-main {
        position: absolute;
        top: 100%;
        inset-inline: 12px;
        max-width: none;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
        border-radius: 14px;
        border: 1px solid var(--nav-cluster-border);
        background: color-mix(in srgb, var(--header-bg) 96%, transparent);
        box-shadow:
            0 10px 26px rgba(0, 0, 0, 0.22),
            0 0 0 1px color-mix(in srgb, var(--header-border) 70%, transparent);
        display: none;
        z-index: 15;
    }

    .site-header--nav-open .nav-main {
        display: flex;
    }

    .nav-main-cluster {
        justify-content: center;
        width: 100%;
        padding: 6px 8px;
        flex-wrap: wrap;
    }

    .nav-main-link {
        padding: 8px 10px;
        font-size: 0.88rem;
    }

    .nav-main-cta {
        align-self: center;
        text-align: center;
        padding: 11px 24px;
    }

    .nav-main-actions {
        align-self: center;
        justify-content: center;
        width: 100%;
    }

    .header-menu-toggle {
        display: inline-flex;
    }

    .nav-campaign-link {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
    }

    .header-bar {
        flex-wrap: wrap;
        min-height: 0;
        padding-inline-end: 0;
    }

    .header-whatsapp-link--qr {
        display: none;
    }

    .brand-social-inline--wa-only {
        display: flex;
    }

    .brand-social-link--whatsapp {
        display: inline-flex;
    }

    .header-trailing {
        position: static;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 100%;
        gap: 10px;
    }

    .lang-switch {
        display: flex;
        flex-wrap: wrap;
    }
}

.nav .cta,
.nav-main-cta {
    color: var(--on-gold);
    background: linear-gradient(135deg, #e8c24a, var(--gold) 45%, var(--gold-dim));
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.93rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 1px solid rgba(255, 252, 235, 0.35);
    box-shadow:
        0 4px 18px rgba(201, 162, 39, 0.42),
        0 0 0 1px rgba(201, 162, 39, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    flex-shrink: 0;
}

.nav .cta:hover,
.nav-main-cta:hover {
    color: var(--on-gold);
    filter: brightness(1.06);
    box-shadow:
        0 6px 26px rgba(201, 162, 39, 0.55),
        0 0 0 1px rgba(201, 162, 39, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}

.nav .cta:focus-visible,
.nav-main-cta:focus-visible {
    outline: 2px solid #fff8e0;
    outline-offset: 3px;
}

.nav-main-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-campaign-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 13px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-decoration: none;
    color: #f3e6bc;
    border: 1px dashed rgba(201, 162, 39, 0.62);
    background:
        radial-gradient(130px 70px at 88% 12%, rgba(201, 162, 39, 0.2), transparent 72%),
        linear-gradient(165deg, rgba(24, 26, 36, 0.96), rgba(11, 13, 20, 0.98));
    box-shadow:
        0 0 0 1px rgba(201, 162, 39, 0.16),
        0 4px 16px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    overflow: hidden;
    transition:
        color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.15s ease;
}

.nav-campaign-link::after {
    content: "";
    position: absolute;
    inset: -40% -60%;
    background: linear-gradient(
        105deg,
        transparent 36%,
        rgba(255, 220, 120, 0.07) 44%,
        rgba(255, 240, 190, 0.22) 50%,
        rgba(255, 220, 120, 0.07) 56%,
        transparent 64%
    );
    transform: translateX(120%);
    animation: nav-campaign-shimmer 4.8s ease-in-out infinite;
    pointer-events: none;
}

.nav-campaign-link-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.14);
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.28);
    flex-shrink: 0;
}

.nav-campaign-link-ico {
    display: block;
    color: rgba(240, 215, 140, 0.98);
}

.nav-campaign-link-text {
    position: relative;
    z-index: 1;
}

.nav-campaign-link:hover {
    color: #fff6df;
    border-color: rgba(240, 215, 140, 0.82);
    box-shadow:
        0 0 0 1px rgba(201, 162, 39, 0.32),
        0 6px 22px rgba(201, 162, 39, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.nav-campaign-link.is-current {
    border-style: solid;
    color: #fff8e8;
    box-shadow:
        0 0 0 1px rgba(201, 162, 39, 0.45),
        0 0 20px rgba(201, 162, 39, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.nav-campaign-link:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.75);
    outline-offset: 3px;
}

@keyframes nav-campaign-shimmer {
    0%,
    72% {
        transform: translateX(120%);
    }
    100% {
        transform: translateX(-120%);
    }
}

html[data-theme="light"] .nav-campaign-link {
    color: #4a3810;
    border-color: rgba(166, 124, 15, 0.55);
    background:
        radial-gradient(130px 70px at 88% 12%, rgba(199, 161, 83, 0.18), transparent 72%),
        linear-gradient(165deg, rgba(255, 251, 241, 0.98), rgba(244, 235, 216, 0.98));
    box-shadow:
        0 0 0 1px rgba(166, 124, 15, 0.14),
        0 4px 14px rgba(120, 90, 20, 0.12);
}

html[data-theme="light"] .nav-campaign-link:hover {
    color: #3a2c0c;
}

html[data-theme="light"] .nav-campaign-link-ico {
    color: #7a5a12;
}

@media (prefers-reduced-motion: reduce) {
    .nav-campaign-link::after {
        animation: none;
    }
}

.hero {
    padding: 48px 0 24px;
    max-width: 720px;
}

.hero-kicker {
    color: var(--gold);
    font-size: 0.9rem;
    margin: 0 0 12px;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 16px;
    background: linear-gradient(90deg, var(--hero-grad-from), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--on-gold);
}

.btn-ghost {
    border: 1px solid rgba(201, 162, 39, 0.45);
    color: var(--gold);
    background: transparent;
}

.btn-secondary {
    border: 1px solid rgba(201, 162, 39, 0.5);
    color: var(--gold);
    background: color-mix(in srgb, var(--gold) 12%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.btn-secondary:hover {
    background: color-mix(in srgb, var(--gold) 22%, transparent);
    border-color: rgba(201, 162, 39, 0.72);
    transform: translateY(-1px);
}

.section {
    margin: 40px 0;
}

.section h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--gold);
}

.impact-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.lead {
    color: var(--muted);
    line-height: 1.6;
    max-width: 720px;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.tier-card {
    background: var(--surface);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tier-card strong {
    color: var(--gold);
    font-size: 1.1rem;
}

.tier-card span {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tier-monthly {
    border-style: dashed;
}

.tier-with-embed {
    align-items: stretch;
    text-align: left;
}

.tier-placeholder {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.donate-embed {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.2);
    min-height: 120px;
    background: var(--embed-bg);
}

.donate-embed iframe {
    display: block;
    width: 100%;
    min-height: 280px;
    border: 0;
}

/* —— Donate page: messaging strategies, trust, payment accordions —— */
.page-donate .donate-hero {
    margin-top: 8px;
}

.donate-trust-strip {
    list-style: none;
    margin: 0 0 24px;
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    background: var(--trust-strip-bg);
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 14px;
    font-size: 0.82rem;
    color: var(--muted);
}

.donate-trust-strip li {
    position: relative;
    padding-inline-start: 14px;
}

.donate-trust-strip li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.45em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.85;
}

.donate-strategy-headline {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.18;
    margin: 0 0 14px;
    color: var(--text);
    max-width: 40rem;
}

.donate-strategy-lead {
    max-width: 44rem;
    margin-bottom: 22px;
}

.donate-strategy-hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 12px;
}

.donate-rabbi-lead {
    margin: 18px 0 10px;
}

.rabbi-form-section {
    margin-top: 6px;
}

.rabbi-form-lead {
    color: var(--muted);
    margin: 0 0 16px;
    line-height: 1.6;
    max-width: 56rem;
}

.rabbi-form {
    display: block;
}

.rabbi-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.field-input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text);
    outline: none;
    font: inherit;
}

.field-input:focus {
    border-color: rgba(201, 162, 39, 0.6);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.field-textarea {
    resize: vertical;
}

.rabbi-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}

.rabbi-form-status {
    margin: 10px 0 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.rabbi-form-status.is-success {
    color: #b8e6b8;
}

.rabbi-form-status.is-error {
    color: #ffb8b8;
}

.rabbi-form-contacts {
    margin-top: 18px;
    background: var(--panel-soft);
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-radius: 14px;
    padding: 14px;
}

.rabbi-form-contacts-h {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-actions-grid-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.donate-strategy-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.donate-strategy-headline,
.donate-strategy-lead {
    transition: opacity 0.22s ease, transform 0.22s ease;
    will-change: opacity, transform;
}

.donate-strategy-swap-out {
    opacity: 0;
    transform: translateY(10px);
}

.donate-impact-widget {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    border-radius: 16px;
    border: 1px solid rgba(201, 162, 39, 0.18);
    background: rgba(18, 18, 24, 0.5);
    padding: 14px;
    overflow: visible;
}

.donate-impact-widget-media {
    flex: 0 0 35%;
    max-width: 35%;
    min-width: 0;
}

.donate-impact-widget-text {
    flex: 0 0 65%;
    max-width: 65%;
    min-width: 0;
    box-sizing: border-box;
    padding: 6px 10px 6px 2px;
}

.donate-impact-widget .section {
    margin: 0;
}

.donate-impact-widget-text.donate-hero {
    margin-top: 0;
}

.donate-impact-widget-text .donate-strategy-hint,
.donate-impact-widget-text .donate-strategy-headline,
.donate-impact-widget-text .donate-strategy-lead {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.donate-impact-widget-text .donate-strategy-tabs {
    gap: 6px;
    margin-bottom: 8px;
}

.donate-impact-widget-text .donate-strategy-tab {
    font-size: 0.72rem;
    padding: 8px 12px;
}

@media (max-width: 720px) {
    .donate-impact-widget {
        flex-direction: column;
        gap: 18px;
    }
    .donate-impact-widget-media {
        flex-basis: auto;
        width: 100%;
        max-width: 100%;
    }
    .donate-impact-widget-text {
        flex-basis: auto;
        width: 100%;
        max-width: 100%;
    }
}

.donate-impact-ticker {
    border-radius: 0;
    border: 0;
    background: transparent;
    padding: 0 48px;
    overflow: hidden;
    position: relative;
    min-height: 300px;
}

.donate-impact-ticker-arrow {
    position: absolute;
    top: 108px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(201, 162, 39, 0.62);
    border-radius: 999px;
    background: var(--floating-ui-bg);
    color: #f3df9a;
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(6px);
    transition: color 140ms ease, background 140ms ease, border-color 140ms ease, transform 100ms ease;
}

.donate-impact-ticker-arrow.is-prev {
    left: 0;
}

.donate-impact-ticker-arrow.is-next {
    right: 0;
}

.donate-impact-ticker-arrow:hover {
    color: #ffecae;
    border-color: rgba(201, 162, 39, 0.9);
    background: var(--floating-ui-bg-hover);
}

.donate-impact-ticker-arrow:active {
    transform: scale(0.97);
}

.donate-impact-ticker-arrow:focus-visible {
    outline: 2px solid #f0d98c;
    outline-offset: 2px;
}

.donate-impact-ticker-item {
    position: absolute;
    inset: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

.donate-impact-ticker-item.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.donate-impact-media-frame,
.donate-impact-media,
.donate-impact-video-ratio {
    width: 100%;
}

.donate-impact-media-frame {
    position: relative;
    width: 100%;
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--media-chrome);
}

.donate-impact-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    background: var(--media-chrome);
    display: block;
}

.donate-impact-video-ratio {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    background: var(--media-chrome);
}

.donate-impact-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.donate-impact-caption {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.45;
    padding: 0 4px;
}

/* Donate / programs / contact: same sound control (upper-right over video) */
.donate-impact-sound-toggle,
.programs-mini-ticker-sound,
.contact-gallery-ticker-sound {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 6;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.45);
    background: var(--sound-toggle-bg);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.12s ease, border-color 0.12s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.contact-gallery-ticker-sound {
    z-index: 5;
}

.donate-impact-sound-toggle:hover,
.programs-mini-ticker-sound:hover,
.contact-gallery-ticker-sound:hover {
    transform: scale(1.05);
    border-color: rgba(201, 162, 39, 0.75);
}

.donate-impact-sound-toggle:focus-visible,
.programs-mini-ticker-sound:focus-visible,
.contact-gallery-ticker-sound:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.75);
    outline-offset: 2px;
}

.donate-impact-sound-icon,
.programs-mini-ticker-sound-icon,
.contact-gallery-ticker-sound-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.7;
}

.donate-impact-sound-icon--on,
.programs-mini-ticker-sound-icon--on,
.contact-gallery-ticker-sound-icon--on {
    display: none;
}

.donate-impact-sound-toggle:not(.is-muted) .donate-impact-sound-icon--off,
.programs-mini-ticker-sound:not(.is-muted) .programs-mini-ticker-sound-icon--off,
.contact-gallery-ticker-sound:not(.is-muted) .contact-gallery-ticker-sound-icon--off {
    display: none;
}

.donate-impact-sound-toggle:not(.is-muted) .donate-impact-sound-icon--on,
.programs-mini-ticker-sound:not(.is-muted) .programs-mini-ticker-sound-icon--on,
.contact-gallery-ticker-sound:not(.is-muted) .contact-gallery-ticker-sound-icon--on {
    display: block;
}

@media (max-width: 760px) {
    .donate-impact-ticker {
        padding: 0 40px;
    }
    .donate-impact-ticker-arrow {
        top: 96px;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }
}

.donate-strategy-tab {
    font: inherit;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.35);
    background: var(--input-bg);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.donate-strategy-tab:hover {
    color: var(--gold);
    border-color: rgba(201, 162, 39, 0.55);
}

.donate-strategy-tab.is-selected,
.donate-strategy-tab[aria-selected="true"] {
    color: var(--on-gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    border-color: transparent;
}

.donate-config-note {
    font-size: 0.8rem;
    color: var(--muted);
    margin: -8px 0 20px;
    max-width: 48rem;
}

.donate-payments-grid {
    display: grid;
    gap: 28px;
    margin-top: 8px;
}

@media (min-width: 960px) {
    .donate-payments-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 36px;
    }
}

.donate-payments-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 14px;
}

.donate-payments-tab {
    font: inherit;
    cursor: pointer;
    padding: 10px 14px 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.35);
    background: var(--input-bg);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}

.donate-payments-tab-mark {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    filter: drop-shadow(0 2px 8px rgba(201, 162, 39, 0.22));
}

.donate-payments-tab-mark--bonus {
    transform: translateY(-1px);
}

.donate-payments-tab-mark--vip {
    transform: translateY(-1px);
}

.donate-payments-tab-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 10px 4px 7px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
    animation: donate-tab-chip-glow 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .donate-payments-tab-chip {
        animation: none;
    }
}

@keyframes donate-tab-chip-glow {
    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 0 0 1px rgba(255, 220, 140, 0.35),
            0 4px 14px rgba(201, 162, 39, 0.28);
    }
    50% {
        transform: translateY(-1px) scale(1.04);
        box-shadow:
            0 0 0 1px rgba(255, 235, 180, 0.55),
            0 6px 22px rgba(201, 162, 39, 0.42);
    }
}

.donate-payments-tab-chip--bonus {
    background: linear-gradient(155deg, #f0d56a 0%, #c9a227 45%, #a67c1a 100%);
    color: #1a1206;
    border-color: rgba(255, 248, 210, 0.55);
}

.donate-payments-tab-chip--vip {
    background: linear-gradient(155deg, #3d2f5c 0%, #1e1630 55%, #120e1c 100%);
    color: #f5e6b8;
    border-color: rgba(201, 162, 39, 0.75);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.donate-payments-tab-chip-ico {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: currentColor;
    opacity: 0.95;
}

.donate-payments-tab-chip-words {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

[dir="rtl"] .donate-payments-tab-chip--bonus .donate-payments-tab-chip-words {
    letter-spacing: 0.02em;
}

/* VIP badge: Latin letters stay crisp and readable */
.donate-payments-tab-chip--vip .donate-payments-tab-chip-words {
    letter-spacing: 0.18em;
    font-size: 0.74rem;
}

.donate-payments-tab.is-selected .donate-payments-tab-mark,
.donate-payments-tab[aria-selected="true"] .donate-payments-tab-mark {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.donate-payments-tab.is-selected .donate-payments-tab-chip--bonus,
.donate-payments-tab[aria-selected="true"] .donate-payments-tab-chip--bonus {
    background: linear-gradient(155deg, #1c1810 0%, #0d0b08 100%);
    color: #f3e4a8;
    border-color: rgba(255, 255, 255, 0.12);
    animation: donate-tab-chip-glow-selected 2.8s ease-in-out infinite;
}

.donate-payments-tab.is-selected .donate-payments-tab-chip--vip,
.donate-payments-tab[aria-selected="true"] .donate-payments-tab-chip--vip {
    background: linear-gradient(155deg, #1c1810 0%, #0d0b08 100%);
    color: #f3e4a8;
    border-color: rgba(255, 255, 255, 0.18);
    text-shadow: none;
    animation: donate-tab-chip-glow-selected 2.8s ease-in-out infinite;
}

@keyframes donate-tab-chip-glow-selected {
    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.08),
            0 3px 12px rgba(0, 0, 0, 0.35);
    }
    50% {
        transform: translateY(-1px) scale(1.03);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.14),
            0 5px 16px rgba(0, 0, 0, 0.4);
    }
}

.donate-payments-tab:hover {
    color: var(--gold);
    border-color: rgba(201, 162, 39, 0.55);
}

.donate-payments-tab.is-selected,
.donate-payments-tab[aria-selected="true"] {
    color: var(--on-gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    border-color: transparent;
}

.donate-payments-panels {
    position: relative;
    width: 100%;
    min-height: 260px;
    transition: none;
    overflow: visible;
}

.donate-payments-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.donate-payments-panel.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.donate-panel {
    background: rgba(18, 18, 24, 0.5);
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 16px;
    padding: 20px 18px 22px;
}

.donate-panel-monthly {
    border-style: dashed;
    border-color: rgba(201, 162, 39, 0.32);
}

.donate-panel-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    color: var(--gold);
}

.donate-panel-lead {
    margin: 0 0 18px;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.55;
}

.donate-tier-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.donate-tier-details {
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 39, 0.22);
    background: #12121a;
    overflow: hidden;
}

.donate-tier-summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.donate-tier-summary::-webkit-details-marker {
    display: none;
}

.donate-tier-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.donate-tier-summary-inner {
    flex: 1;
    min-width: 0;
}

.donate-tier-amount-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    margin-bottom: 6px;
}

.donate-tier-amount-row--with-ico {
    align-items: center;
    gap: 12px;
}

.donate-tier-ico-wrap {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.22), rgba(18, 18, 24, 0.92));
    border: 1px solid rgba(201, 162, 39, 0.42);
    color: var(--gold);
    box-shadow:
        0 0 0 1px rgba(255, 220, 140, 0.12),
        0 6px 18px rgba(0, 0, 0, 0.35);
}

.donate-tier-ico-svg {
    width: 26px;
    height: 26px;
    display: block;
}

.donate-tier-amount-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    min-width: 0;
    flex: 1;
}

.donate-tier-title-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    min-width: 0;
    flex: 1 1 12rem;
}

.donate-tier-spend {
    font-size: 0.68rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--muted);
    max-width: 42ch;
}

[dir="ltr"] .donate-tier-spend {
    text-transform: lowercase;
}

.donate-tier-nis {
    font-size: 1.35rem;
    color: var(--gold);
    font-weight: 700;
}

.donate-tier-badge {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    border: 1px solid rgba(201, 162, 39, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
}

[dir="rtl"] .donate-tier-badge {
    text-transform: none;
    letter-spacing: 0.04em;
}

.donate-tier-bonus {
    margin: 10px 0 0;
    padding: 10px 12px 10px 14px;
    border-radius: 10px;
    border-inline-start: 3px solid rgba(201, 162, 39, 0.75);
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.12), rgba(18, 18, 24, 0.35));
    font-size: 0.88rem;
    line-height: 1.5;
}

.donate-tier-bonus-kicker {
    display: inline;
    margin-inline-end: 0.35em;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.donate-tier-bonus-text {
    color: rgba(232, 228, 218, 0.92);
}

.donate-tier-micro {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--muted);
}

.donate-tier-custom-contact {
    margin: 8px 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--gold-dim);
    font-weight: 600;
}

.donate-tier-chevron {
    flex-shrink: 0;
    width: 0;
    height: 0;
    margin-top: 8px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--gold);
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.donate-tier-details[open] .donate-tier-chevron {
    transform: rotate(180deg);
}

.donate-tier-open-hint {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold-dim);
}

.donate-tier-body {
    padding: 0 12px 14px;
}

.donate-embed-frame {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    background: #08080a;
}

.donate-embed-framebar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--on-gold);
    background: linear-gradient(90deg, var(--gold), var(--gold-dim));
}

.donate-embed-framebar-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.donate-embed-framebar-hint {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 550;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 1.4;
    opacity: 0.95;
}

.donate-embed-lock {
    width: 10px;
    height: 12px;
    border: 2px solid var(--bg);
    border-radius: 2px;
    position: relative;
    opacity: 0.9;
}

.donate-embed-lock::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
    width: 6px;
    height: 5px;
    border: 2px solid var(--bg);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

.donate-embed-inner iframe.donation-iframe {
    display: block;
    width: 100%;
    min-height: 480px;
    border: 0;
    background: #fff;
}

.donate-embed-inner.is-embed-scroll {
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 39, 0.62) rgba(255, 255, 255, 0.1);
}

.donate-embed-inner.is-embed-scroll::-webkit-scrollbar {
    width: 11px;
}

.donate-embed-inner.is-embed-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

.donate-embed-inner.is-embed-scroll::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 39, 0.55);
    border-radius: 6px;
    border: 2px solid rgba(8, 8, 10, 0.35);
}

.donate-checkout-embed .donate-embed-inner.is-embed-scroll {
    max-height: min(82vh, 920px);
}

.footer-donate-frame .donate-embed-inner.is-embed-scroll {
    max-height: min(72vh, 580px);
}

.donate-tier-body .tier-placeholder {
    margin: 8px 4px 4px;
}

/* —— Donate: comparison matrix + single checkout —— */
.donate-payments-intro {
    margin: 0 0 16px;
    max-width: 48rem;
}

.donate-compare {
    margin-top: 4px;
}

.donate-mobile-tiers {
    display: none;
}

.donate-compare-bonus-details {
    margin: 0;
}

.donate-compare-bonus-summary {
    display: none;
}

.donate-mobile-tiers-lead {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
}

.donate-mobile-tiers-list {
    display: grid;
    gap: 10px;
}

.donate-mobile-tier {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "main ico"
        "spend ico";
    gap: 4px 12px;
    align-items: center;
    width: 100%;
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 39, 0.32);
    background: linear-gradient(165deg, rgba(30, 28, 22, 0.92), rgba(14, 14, 18, 0.96));
    color: var(--text);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.2s ease,
        transform 0.18s ease;
}

.donate-mobile-tier-main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.donate-mobile-tier-amount {
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.2;
}

.donate-mobile-tier-sub {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1.3;
}

.donate-mobile-tier-spend {
    grid-area: spend;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--muted);
}

.donate-mobile-tier-ico {
    grid-area: ico;
    align-self: center;
    opacity: 0.9;
}

.donate-mobile-tier:hover:not(:disabled) {
    border-color: rgba(201, 162, 39, 0.55);
    transform: translateY(-1px);
}

.donate-mobile-tier.is-active {
    border-color: var(--gold);
    box-shadow:
        0 0 0 1px rgba(201, 162, 39, 0.35),
        0 10px 28px rgba(0, 0, 0, 0.28);
    background: linear-gradient(165deg, rgba(201, 162, 39, 0.14), rgba(14, 14, 18, 0.96));
}

.donate-mobile-tier:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.donate-payments-intro--mobile {
    display: none;
}

.donate-checkout-wizard {
    display: none;
}

.donate-checkout-wizard-steps {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.donate-checkout-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    background: rgba(10, 10, 14, 0.45);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    line-height: 1.25;
}

.donate-checkout-wizard-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold);
}

.donate-checkout-wizard-step.is-current {
    border-color: var(--gold);
    color: var(--text);
    background: rgba(201, 162, 39, 0.12);
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.22);
}

.donate-checkout-wizard-step.is-current .donate-checkout-wizard-num {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--on-gold);
}

.donate-checkout-wizard-step.is-done {
    color: var(--text);
    border-color: rgba(201, 162, 39, 0.35);
}

.donate-checkout-wizard-step.is-done .donate-checkout-wizard-num {
    background: rgba(201, 162, 39, 0.28);
    color: var(--on-gold);
}

@media (max-width: 760px) {
    .donate-payments-intro:not(.donate-payments-intro--mobile) {
        display: none;
    }

    .donate-payments-intro--mobile {
        display: block;
    }

    .donate-mobile-tiers {
        display: block;
        margin-bottom: 12px;
    }

    .donate-compare-bonus-summary {
        display: list-item;
        cursor: pointer;
        margin: 0 0 10px;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid rgba(201, 162, 39, 0.22);
        background: rgba(10, 10, 14, 0.45);
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--gold);
        list-style: none;
    }

    .donate-compare-bonus-summary::-webkit-details-marker {
        display: none;
    }

    .donate-compare-bonus-details:not([open]) .donate-compare-scroll {
        display: none;
    }

    .donate-compare-bonus-details[open] .donate-compare-bonus-summary {
        margin-bottom: 10px;
        border-color: rgba(201, 162, 39, 0.42);
    }

    .donate-bank-transfer--page {
        display: none;
    }

    .donate-checkout-wizard {
        display: block;
    }

    .donate-checkout-slot {
        margin-top: 18px;
        padding: 14px 12px 16px;
        border-radius: 16px;
        border: 1px solid rgba(201, 162, 39, 0.28);
        background: rgba(10, 10, 14, 0.55);
        scroll-margin-top: calc(var(--header-h, 64px) + 12px);
    }

    .donate-checkout-slot-hint {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text);
    }

    .donate-flow-payment-grid,
    .donate-checkout-slot .torah-payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .donate-flow-payment .torah-payment-method--wide,
    .donate-checkout-slot .torah-payment-method--wide {
        grid-column: auto;
    }

    .donate-flow-payment .bank-transfer-notice,
    .donate-checkout-slot .bank-transfer-notice {
        margin-top: 12px;
    }

    .donate-flow-continue,
    .donate-flow-checkout-btn {
        width: 100%;
        justify-content: center;
    }

    html[data-theme="light"] .donate-mobile-tier {
        background: linear-gradient(165deg, #fffdf8, #f8f2e8);
        border-color: rgba(166, 124, 15, 0.28);
    }

    html[data-theme="light"] .donate-mobile-tier.is-active {
        background: linear-gradient(165deg, rgba(201, 162, 39, 0.12), #fffdf8);
    }

    html[data-theme="light"] .donate-checkout-slot {
        background: rgba(255, 252, 245, 0.96);
        border-color: rgba(166, 124, 15, 0.28);
    }

    html[data-theme="light"] .donate-checkout-wizard-step {
        background: rgba(255, 252, 245, 0.9);
    }

    html[data-theme="light"] .donate-compare-bonus-summary {
        background: rgba(255, 252, 245, 0.9);
    }
}

@media (min-width: 761px) {
    .donate-compare-bonus-details {
        display: block;
    }

    .donate-compare-bonus-summary {
        display: none;
    }

    .donate-compare-bonus-details .donate-compare-scroll {
        display: block;
    }
}

.donate-compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 39, 0.22);
    background: rgba(10, 10, 14, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.donate-compare-table {
    width: 100%;
    min-width: 780px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.82rem;
}

.donate-compare-corner {
    position: sticky;
    inset-inline-start: 0;
    z-index: 4;
    width: 8.25rem;
    min-width: 8.25rem;
    padding: 0.65rem 0.5rem;
    text-align: inherit;
    vertical-align: bottom;
    background: linear-gradient(180deg, rgba(18, 18, 24, 0.98), rgba(12, 12, 16, 0.98));
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.donate-compare-corner--rich {
    width: 12.5rem;
    min-width: 12.5rem;
    max-width: 14rem;
    padding: 0.65rem 0.55rem 0.75rem;
    vertical-align: top;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    border-inline-end: 1px solid rgba(201, 162, 39, 0.12);
    background:
        linear-gradient(145deg, rgba(201, 162, 39, 0.07) 0%, transparent 42%),
        linear-gradient(180deg, rgba(18, 18, 24, 0.99), rgba(10, 10, 14, 0.98));
}

.donate-compare-corner-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    text-align: start;
}

.donate-compare-corner-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.1rem;
}

.donate-compare-corner-ico {
    flex-shrink: 0;
    color: rgba(201, 162, 39, 0.95);
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.25));
    animation: donate-corner-ico-float 2.4s ease-in-out infinite;
}

.donate-compare-corner-ico:nth-child(2) {
    animation-delay: 0.2s;
}

.donate-compare-corner-ico:nth-child(3) {
    animation-delay: 0.4s;
}

.donate-compare-corner-ico--vip {
    color: rgba(240, 215, 140, 0.98);
}

@keyframes donate-corner-ico-float {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.88;
    }
    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.donate-compare-corner-kicker {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    line-height: 1.25;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.35);
    animation: donate-corner-kicker-glow 2.8s ease-in-out infinite;
}

@keyframes donate-corner-kicker-glow {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.12);
    }
}

.donate-compare-corner-head {
    display: block;
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1.38;
    color: rgba(245, 245, 250, 0.96);
}

.donate-compare-corner-sub {
    display: block;
    font-size: 0.6rem;
    font-weight: 500;
    line-height: 1.38;
    color: rgba(161, 161, 170, 0.96);
}

@media (prefers-reduced-motion: reduce) {
    .donate-compare-corner-ico,
    .donate-compare-corner-kicker {
        animation: none;
    }
}

.donate-compare-th {
    padding: 0.35rem 0.25rem 0.5rem;
    vertical-align: bottom;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    transition:
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.donate-compare-th.is-active {
    background: rgba(201, 162, 39, 0.1);
    box-shadow: inset 0 -3px 0 var(--gold);
}

.donate-compare-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    width: 100%;
    min-height: 7.25rem;
    padding: 10px 7px 11px;
    margin: 0;
    font: inherit;
    cursor: pointer;
    color: var(--text);
    background: linear-gradient(165deg, rgba(30, 28, 22, 0.9), rgba(14, 14, 18, 0.95));
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 12px;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.22s ease;
}

.donate-compare-select:hover:not(:disabled) {
    border-color: rgba(201, 162, 39, 0.55);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.donate-compare-select:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.donate-compare-th.is-active .donate-compare-select {
    border-color: var(--gold);
    box-shadow:
        0 0 0 1px rgba(201, 162, 39, 0.45),
        0 10px 32px rgba(201, 162, 39, 0.12);
}

.donate-compare-select-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.2;
}

.donate-compare-select-sub {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    max-width: 13ch;
    line-height: 1.25;
}

/* «Куда уходит помощь» — мелко, внутри кнопки суммы */
.donate-compare-select-spend {
    display: block;
    font-size: 0.58rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(161, 161, 170, 0.92);
    text-align: center;
    max-width: 15ch;
    margin-top: 1px;
}

[dir="ltr"] .donate-compare-select-spend {
    text-transform: lowercase;
}

.donate-compare-select-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.donate-compare-select-ico .donate-tier-ico-svg {
    width: 22px;
    height: 22px;
    opacity: 0.9;
}

.donate-compare-select-ico--surprise .donate-tier-ico-svg--custom-surprise {
    width: 26px;
    height: 26px;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.35));
}

.donate-compare-section {
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.09), rgba(18, 18, 24, 0.5));
}

.donate-compare-section-head {
    padding: 0.65rem 0.75rem 0.7rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.28);
    text-align: inherit;
}

.donate-compare-section-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 42rem;
}

.donate-compare-section-kicker {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.donate-compare-section-title {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(244, 244, 245, 0.95);
}

.donate-compare-row--bonus .donate-compare-row-title {
    color: rgba(244, 244, 245, 0.96);
    font-weight: 700;
}

.donate-compare-row--vip .donate-compare-rowhead {
    background: linear-gradient(90deg, rgba(61, 47, 92, 0.35), rgba(14, 14, 18, 0.96));
    border-bottom-color: rgba(201, 162, 39, 0.2);
}

.donate-compare-rowhead {
    position: sticky;
    inset-inline-start: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 8.25rem;
    min-width: 8.25rem;
    max-width: 12rem;
    padding: 0.5rem 0.4rem 0.55rem 0.45rem;
    text-align: inherit;
    font-weight: 600;
    line-height: 1.3;
    background: rgba(14, 14, 18, 0.96);
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.25);
}

.donate-compare-rowhead-main {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

[dir="rtl"] .donate-compare-rowhead {
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.25);
    align-items: flex-end;
}

[dir="rtl"] .donate-compare-vip-badge {
    align-self: flex-end;
}

.donate-compare-vip-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px 3px;
    border-radius: 6px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f5e6b8;
    background: linear-gradient(155deg, #3d2f5c 0%, #1e1630 55%, #120e1c 100%);
    border: 1px solid rgba(201, 162, 39, 0.55);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.donate-compare-td--vip-perk {
    background: rgba(61, 47, 92, 0.12);
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.08);
}

.donate-compare-row-ico {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold);
}

.donate-compare-row-ico .donate-tier-ico-svg {
    width: 16px;
    height: 16px;
}

.donate-compare-row-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    flex: 1;
    min-width: 0;
}

.donate-compare-td {
    padding: 0.45rem 0.35rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.donate-compare-td.is-active {
    background: rgba(201, 162, 39, 0.07);
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.12);
}

.donate-compare-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.donate-compare-mark--once {
    color: #7dd3a0;
}

.donate-compare-mark--monthly {
    flex-direction: column;
    gap: 2px;
    color: var(--gold);
}

.donate-compare-check,
.donate-compare-recur {
    width: 22px;
    height: 22px;
    display: block;
}

.donate-compare-recur-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0.85;
}

.donate-compare-mark--none {
    color: rgba(161, 161, 170, 0.55);
    font-weight: 600;
    font-size: 1rem;
}

/* Price-row glint: sweeps right → left (1000 ₪ … VIP) when scrolled into view */
.donate-compare-select.is-price-glint,
.donate-compare-corner--rich.is-price-glint {
    position: relative;
    overflow: hidden;
}

.donate-compare-select.is-price-glint::after,
.donate-compare-corner--rich.is-price-glint::after {
    content: "";
    position: absolute;
    inset: -30% -50%;
    background: linear-gradient(
        105deg,
        transparent 28%,
        rgba(255, 210, 90, 0.06) 38%,
        rgba(255, 236, 170, 0.52) 50%,
        rgba(255, 210, 90, 0.06) 62%,
        transparent 72%
    );
    transform: translateX(115%);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
    animation: donate-price-glint-sweep 0.75s cubic-bezier(0.22, 0.84, 0.32, 1) var(--price-glint-delay, 0ms) forwards;
}

.donate-compare-table.is-price-row-glint .donate-compare-select.is-price-glint,
.donate-compare-table.is-price-row-glint .donate-compare-corner--rich.is-price-glint {
    animation: donate-price-glint-bg 0.75s ease-out var(--price-glint-delay, 0ms) forwards;
}

@keyframes donate-price-glint-sweep {
    0% {
        transform: translateX(115%);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    100% {
        transform: translateX(-115%);
        opacity: 0;
    }
}

@keyframes donate-price-glint-bg {
    0%,
    100% {
        box-shadow: none;
    }
    35% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 220, 130, 0.35),
            0 0 22px rgba(201, 162, 39, 0.22);
    }
}

html[data-theme="light"] .donate-compare-select.is-price-glint::after,
html[data-theme="light"] .donate-compare-corner--rich.is-price-glint::after {
    mix-blend-mode: multiply;
    background: linear-gradient(
        105deg,
        transparent 28%,
        rgba(255, 230, 150, 0.12) 38%,
        rgba(255, 248, 210, 0.72) 50%,
        rgba(255, 230, 150, 0.12) 62%,
        transparent 72%
    );
}

@media (prefers-reduced-motion: reduce) {
    .donate-compare-select.is-price-glint::after,
    .donate-compare-corner--rich.is-price-glint::after,
    .donate-compare-table.is-price-row-glint .donate-compare-select.is-price-glint,
    .donate-compare-table.is-price-row-glint .donate-compare-corner--rich.is-price-glint {
        animation: none;
    }

    .donate-compare-select,
    .donate-compare-th,
    .donate-compare-td {
        transition: none;
    }
}

.donate-checkout-slot {
    margin-top: 28px;
    padding-top: 8px;
    border-top: 1px solid rgba(201, 162, 39, 0.15);
}

.donate-checkout-slot-hint {
    margin: 0 0 14px;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.5;
}

.donate-perks-toast {
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    width: min(420px, calc(100vw - 32px));
    transform: translateX(-50%) translateY(calc(100% + 28px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.32s ease,
        visibility 0.32s;
}

.donate-perks-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.donate-perks-toast-card {
    position: relative;
    padding: 28px 16px 16px;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    background: rgba(16, 16, 20, 0.96);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.donate-perks-toast-celebration {
    position: absolute;
    left: 50%;
    top: -8px;
    width: 220px;
    height: 72px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

.donate-perks-toast-celebration::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 26px;
    width: 120px;
    height: 28px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.45) 0%, rgba(201, 162, 39, 0.1) 45%, transparent 75%);
    filter: blur(2.5px);
    opacity: 0;
}

.donate-perks-toast.is-visible .donate-perks-toast-celebration::before {
    animation: donate-toast-glow 1.8s ease-out both;
}

.donate-perks-toast-spark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 22px;
    border-radius: 999px;
    transform-origin: center -10px;
    background: linear-gradient(180deg, rgba(255, 244, 186, 0.95), rgba(201, 162, 39, 0.12));
    box-shadow:
        0 0 12px rgba(255, 224, 120, 0.55),
        0 0 26px rgba(201, 162, 39, 0.45);
    opacity: 0;
}

.donate-perks-toast.is-visible .donate-perks-toast-spark {
    animation: donate-toast-spark 1.8s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.donate-perks-toast.is-visible .donate-perks-toast-spark.s1 { animation-delay: 0ms; transform: translate(-50%, -50%) rotate(-68deg); }
.donate-perks-toast.is-visible .donate-perks-toast-spark.s2 { animation-delay: 60ms; transform: translate(-50%, -50%) rotate(-42deg); }
.donate-perks-toast.is-visible .donate-perks-toast-spark.s3 { animation-delay: 120ms; transform: translate(-50%, -50%) rotate(-18deg); }
.donate-perks-toast.is-visible .donate-perks-toast-spark.s4 { animation-delay: 180ms; transform: translate(-50%, -50%) rotate(0deg); }
.donate-perks-toast.is-visible .donate-perks-toast-spark.s5 { animation-delay: 240ms; transform: translate(-50%, -50%) rotate(20deg); }
.donate-perks-toast.is-visible .donate-perks-toast-spark.s6 { animation-delay: 300ms; transform: translate(-50%, -50%) rotate(44deg); }
.donate-perks-toast.is-visible .donate-perks-toast-spark.s7 { animation-delay: 360ms; transform: translate(-50%, -50%) rotate(70deg); }

@keyframes donate-toast-spark {
    0% {
        opacity: 0;
        height: 2px;
        filter: blur(1px);
    }
    18% {
        opacity: 1;
        height: 26px;
        filter: blur(0);
    }
    52% {
        opacity: 0.95;
        height: 20px;
    }
    100% {
        opacity: 0;
        height: 8px;
        filter: blur(1px);
    }
}

@keyframes donate-toast-glow {
    0% { opacity: 0; transform: translateX(-50%) scale(0.6); }
    35% { opacity: 1; transform: translateX(-50%) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) scale(1.25); }
}

.donate-perks-toast-dismiss {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}

.donate-perks-toast-dismiss:hover {
    color: var(--text, #eaeaea);
    background: rgba(255, 255, 255, 0.07);
}

.donate-checkout-perks-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--text, #eaeaea);
}

.donate-perks-toast .donate-checkout-perks-title {
    margin: 0 32px 10px 0;
}

.donate-checkout-perks-list {
    margin: 0;
    padding: 0 0 0 1.15rem;
    list-style: disc;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.donate-checkout-perks-item {
    margin: 0.35em 0;
    padding-left: 0.15em;
    color: var(--text, #eaeaea);
}

.donate-checkout-perks-text {
    margin-right: 0.35em;
}

.donate-checkout-perks-kind {
    display: inline-block;
    margin-inline-start: 0.35em;
    font-size: 0.82em;
    font-weight: 600;
    color: rgba(201, 162, 39, 0.95);
    white-space: nowrap;
}

.donate-checkout-perks-vip {
    display: inline-block;
    margin-inline-start: 0.45em;
    padding: 0.12em 0.45em;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 4px;
    color: rgba(30, 28, 20, 0.95);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.95), rgba(230, 200, 90, 0.9));
    vertical-align: middle;
}

.donate-checkout-perks-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.donate-checkout-slot-frame-wrap {
    animation: donate-checkout-reveal 0.45s ease both;
}

@keyframes donate-checkout-reveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .donate-checkout-slot-frame-wrap {
        animation: none;
    }

    .donate-perks-toast {
        transition: none;
    }

    .donate-perks-toast-spark {
        animation: none !important;
        opacity: 0;
    }
}

.donate-checkout-embed .donate-embed-inner iframe.donation-iframe {
    min-height: 520px;
}

.page-prose {
    position: relative;
    isolation: isolate;
}

.page-prose::before {
    content: "";
    position: absolute;
    inset: -10px -12px;
    z-index: -1;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.72), rgba(10, 10, 12, 0.58));
    border: 1px solid rgba(201, 162, 39, 0.1);
    pointer-events: none;
}

.page-prose h1 {
    margin-top: 0;
}

.page-title-programs {
    position: relative;
    display: inline-block;
    font-size: clamp(1.7rem, 3.9vw, 2.45rem);
    line-height: 1.12;
    margin: 0 0 14px;
    background: linear-gradient(92deg, var(--page-title-grad-a) 0%, var(--page-title-grad-b) 55%, var(--page-title-grad-c) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 26px rgba(201, 162, 39, 0.24);
}

.page-title-programs::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 10px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.92), rgba(201, 162, 39, 0.08));
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.22);
}

.page-title-about,
.page-title-gallery {
    position: relative;
    display: block;
    clear: both;
    width: fit-content;
    font-size: clamp(1.7rem, 3.9vw, 2.4rem);
    line-height: 1.12;
    margin: 0 0 14px;
    background: linear-gradient(92deg, var(--page-title-grad-a) 0%, var(--page-title-grad-b) 55%, var(--page-title-grad-c) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 24px rgba(201, 162, 39, 0.22);
}

.page-title-about::after,
.page-title-gallery::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 10px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.92), rgba(201, 162, 39, 0.08));
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}

.page-title-leadership {
    position: relative;
    display: block;
    clear: both;
    width: fit-content;
    margin: 0 0 10px;
    padding-bottom: 3px;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    letter-spacing: 0.04em;
    color: #f2e8c6;
    text-shadow: 0 0 24px rgba(201, 162, 39, 0.22);
}

.page-title-leadership::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 6px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.88), rgba(201, 162, 39, 0.1));
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}

.page-title-news {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 0 10px;
    padding-bottom: 3px;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    letter-spacing: 0.04em;
    color: #f2e8c6;
    text-shadow: 0 0 24px rgba(201, 162, 39, 0.22);
}

.page-title-news::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 6px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.88), rgba(201, 162, 39, 0.1));
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}

.page-title-contact {
    position: relative;
    display: block;
    clear: both;
    width: fit-content;
    margin: 0 0 10px;
    padding-bottom: 3px;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    letter-spacing: 0.04em;
    color: #f2e8c6;
    text-shadow: 0 0 24px rgba(201, 162, 39, 0.22);
}

.page-title-contact::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 6px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.88), rgba(201, 162, 39, 0.1));
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}

.page-title-with-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.page-title-with-logo h1 {
    margin: 0;
}

.page-title-institute {
    position: relative;
    display: block;
    clear: both;
    width: fit-content;
    margin: 0;
    padding-bottom: 3px;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    letter-spacing: 0.04em;
    color: #f2e8c6;
    text-shadow: 0 0 24px rgba(201, 162, 39, 0.22);
}

.page-title-institute::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 6px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.88), rgba(201, 162, 39, 0.1));
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}

.institute-benefits {
    max-width: 44rem;
    margin: 12px 0 14px;
    padding: 8px 8px 7px;
    border-radius: 11px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.06), rgba(12, 12, 16, 0.18));
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.institute-benefits-title {
    margin: 0 0 6px;
    font-size: 0.92rem;
    color: #f3e6bf;
    letter-spacing: 0.015em;
}

.institute-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.institute-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(201, 162, 39, 0.18);
    background: rgba(10, 10, 12, 0.16);
}

.institute-benefit-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    position: relative;
    border-radius: 6px;
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.08);
}

.institute-benefit-icon svg {
    width: 12px;
    height: 12px;
    display: block;
}

.institute-benefit-check {
    position: absolute;
    inset-inline-end: -4px;
    inset-block-end: -5px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.95);
    color: #0a0a0c;
    font-size: 8px;
    line-height: 11px;
    text-align: center;
    font-weight: 900;
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.35);
}

.institute-benefit-text {
    color: var(--muted);
    line-height: 1.3;
    font-size: 0.88rem;
}

.page-title-logo {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(201, 162, 39, 0.25);
    background: rgba(10, 10, 12, 0.22);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .page-title-with-logo {
        gap: 10px;
    }
    .page-title-logo {
        width: 46px;
        height: 46px;
    }
}

.page-inline-figure {
    max-width: 21rem;
    margin: 14px auto 12px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(201, 162, 39, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.15);
}

.page-inline-figure--sm {
    max-width: 12.5rem;
    aspect-ratio: 16 / 9;
}

.page-inline-gallery {
    max-width: 44rem;
    margin: 14px auto 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.page-inline-figure--grid {
    margin: 0;
    max-width: none;
}

.page-inline-figure--lead {
    float: inline-start;
    margin: 4px 0 10px;
    margin-inline-end: 14px;
}

.contact-gallery-ticker {
    max-width: 14.5rem;
}

.contact-gallery-ticker-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background:
        radial-gradient(180px 120px at 90% 4%, rgba(201, 162, 39, 0.15), transparent 70%),
        linear-gradient(160deg, rgba(16, 16, 22, 0.96), rgba(8, 8, 12, 0.96));
}

.contact-gallery-ticker-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #06070a;
    isolation: isolate;
}

/* Never paint inactive slide layers (photo bleed under video, etc.) */
.contact-gallery-ticker-media .contact-gallery-ticker-img[hidden],
.contact-gallery-ticker-media .contact-gallery-ticker-img-bg[hidden],
.contact-gallery-ticker-media .contact-gallery-ticker-video[hidden],
.contact-gallery-ticker-media .contact-gallery-ticker-video-bg[hidden] {
    display: none !important;
}

.contact-gallery-ticker-media.is-contact-slide-video .contact-gallery-ticker-img,
.contact-gallery-ticker-media.is-contact-slide-video .contact-gallery-ticker-img-bg {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.contact-gallery-ticker-media.is-contact-slide-photo .contact-gallery-ticker-video,
.contact-gallery-ticker-media.is-contact-slide-photo .contact-gallery-ticker-video-bg {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.contact-gallery-ticker-img,
.contact-gallery-ticker-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 3;
}

.contact-gallery-ticker-img-bg,
.contact-gallery-ticker-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(14px) saturate(1.08) brightness(0.72);
    transform: scale(1.08);
    z-index: 1;
}

.contact-gallery-ticker-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(8, 8, 12, 0.3), rgba(8, 8, 12, 0) 22%, rgba(8, 8, 12, 0) 78%, rgba(8, 8, 12, 0.3));
    pointer-events: none;
}

.contact-gallery-ticker-caption {
    margin: 0;
    padding: 10px 12px 12px;
    font-size: 0.88rem;
    line-height: 1.38;
    color: #efe8cf;
    min-height: 3.2em;
    background: rgba(10, 10, 14, 0.72);
}

.contact-gallery-ticker-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.66);
    background: rgba(6, 7, 10, 0.84);
    color: #f4e4aa;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.36);
}

.contact-gallery-ticker-arrow.is-prev { left: 8px; }
.contact-gallery-ticker-arrow.is-next { right: 8px; }

.contact-gallery-ticker-arrow:hover {
    border-color: rgba(201, 162, 39, 0.95);
    color: #fff3c8;
}

.contact-gallery-ticker.is-switch .contact-gallery-ticker-img,
.contact-gallery-ticker.is-switch .contact-gallery-ticker-video {
    animation: contactTickerFade 0.38s ease;
}

@keyframes contactTickerFade {
    from { opacity: 0.52; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}

.contact-map-widget {
    max-width: 44rem;
    margin: 14px 0 18px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    background:
        radial-gradient(220px 120px at 92% 6%, rgba(201, 162, 39, 0.14), transparent 72%),
        linear-gradient(165deg, rgba(20, 20, 28, 0.95), rgba(10, 10, 14, 0.96));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.contact-map-title {
    margin: 0 0 4px;
    font-size: 1.03rem;
    color: #f0d98c;
}

.contact-map-lead {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-map-frame {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.24);
    background: #070709;
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    min-height: 300px;
    border: 0;
}

.contact-map-open {
    margin: 10px 0 0;
}

.page-float-clear {
    clear: both;
}

html[dir="rtl"] .page-inline-figure--lead {
    margin-inline-end: 18px;
}

@media (max-width: 1100px) {
    .page-inline-figure--lead {
        float: none;
        margin: 14px auto 12px;
    }
}

.page-inline-img {
    width: 100%;
    height: auto;
    display: block;
}

.page-inline-figure--sm .page-inline-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-inline-caption {
    padding: 10px 14px 12px;
    text-align: center;
    font-size: 0.83rem;
    line-height: 1.35;
    color: var(--muted);
    background: rgba(10, 10, 12, 0.18);
}

.prose-p {
    margin: 0 0 1.1em;
    max-width: 44rem;
    line-height: 1.65;
    color: var(--muted);
}

.page-prose--about .page-inline-figure:not(.page-inline-figure--lead):not(.page-inline-figure--grid) {
    max-width: 44rem;
    margin: 14px 0 12px;
}

.page-prose--about .page-inline-gallery {
    max-width: 44rem;
    margin: 14px 0 12px;
}

.page-prose--about .rabbi-form-lead,
.page-prose--about .rabbi-form,
.page-prose--about .rabbi-form-contacts {
    max-width: 44rem;
}

.page-prose--leadership .page-inline-figure--sm {
    max-width: 9.8rem;
    aspect-ratio: auto;
}

.page-prose--leadership .page-inline-figure--sm .page-inline-img {
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Empty portrait slot (e.g. rebbetzin photo withheld) — keeps the bio card layout. */
.page-inline-portrait-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    border: 1px dashed rgba(201, 162, 39, 0.42);
    background:
        radial-gradient(70% 55% at 50% 38%, rgba(201, 162, 39, 0.1), transparent 72%),
        linear-gradient(165deg, rgba(28, 28, 34, 0.92), rgba(12, 12, 16, 0.96));
    color: rgba(201, 162, 39, 0.55);
}

.page-inline-portrait-placeholder-ico {
    width: 46%;
    height: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

html[data-theme="light"] .page-inline-portrait-placeholder {
    border-color: rgba(166, 124, 15, 0.38);
    background:
        radial-gradient(70% 55% at 50% 38%, rgba(201, 162, 80, 0.14), transparent 72%),
        linear-gradient(165deg, #fffdf8, #f1e6d2);
    color: rgba(140, 108, 28, 0.55);
}

.leadership-bio-card {
    max-width: 44rem;
    margin: 0 0 14px;
    padding: 14px 14px 10px;
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 39, 0.22);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.08), rgba(12, 12, 16, 0.28));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.leadership-bio-card .prose-p {
    margin-bottom: 0.9em;
}

.leadership-bio-card .prose-p strong {
    color: #f3e6bf;
    font-weight: 800;
}

.programs-cards {
    margin: 8px 0 18px;
}

.programs-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    max-width: 58rem;
}

.program-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 39, 0.22);
    background:
        radial-gradient(180px 80px at 88% 10%, rgba(201, 162, 39, 0.11), transparent 70%),
        linear-gradient(165deg, rgba(22, 22, 28, 0.92), rgba(12, 12, 16, 0.95));
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.24);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.program-card:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 162, 39, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.program-card-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.35);
}

.program-card-ico svg {
    width: 20px;
    height: 20px;
    display: block;
}

.program-card-title {
    margin: 2px 0 0;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text);
}

.program-card-lead {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.92rem;
}

.program-card-cta.btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 7px 11px;
    font-size: 0.78rem;
}

.programs-mini-gallery {
    margin-top: 2px;
}

.programs-mini-ticker-frame {
    position: relative;
    max-width: 58rem;
}

.programs-mini-ticker-track {
    position: relative;
    max-width: 58rem;
    min-height: 210px;
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 39, 0.24);
    background:
        radial-gradient(220px 140px at 12% 12%, rgba(201, 162, 39, 0.14), transparent 72%),
        linear-gradient(165deg, rgba(22, 22, 28, 0.94), rgba(10, 10, 14, 0.97));
    overflow: hidden;
}

.programs-mini-ticker-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.7);
    background: rgba(10, 10, 14, 0.94);
    color: #ffecae;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
    transition: color 140ms ease, border-color 140ms ease, transform 100ms ease, background 140ms ease;
}

.programs-mini-ticker-arrow.is-prev {
    left: 8px;
}

.programs-mini-ticker-arrow.is-next {
    right: 8px;
}

.programs-mini-ticker-arrow:hover {
    border-color: rgba(201, 162, 39, 1);
    color: #fff3c8;
    background: rgba(10, 10, 14, 1);
}

.programs-mini-ticker-arrow:active {
    transform: translateY(-50%) scale(0.97);
}

.programs-mini-ticker-arrow:focus-visible {
    outline: 2px solid #f0d98c;
    outline-offset: 2px;
}

.programs-mini-ticker-item {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 10px 54px;
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    opacity: 0;
    transform: translateX(12%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.programs-mini-ticker-item.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

.programs-mini-ticker-item.is-enter-right {
    opacity: 0;
    transform: translateX(20%);
    z-index: 3;
}

.programs-mini-ticker-item.is-exit-left {
    opacity: 0;
    transform: translateX(-20%);
    z-index: 1;
}

.programs-mini-ticker-photo {
    width: 235px;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(201, 162, 39, 0.3);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.33);
    display: block;
}

.programs-mini-ticker-video {
    background: #070709;
}

.programs-mini-ticker-caption {
    margin: 0;
    font-family:
        "Cormorant Garamond",
        "Frank Ruhl Libre",
        "Times New Roman",
        serif;
    font-size: clamp(1.1rem, 2.1vw, 1.45rem);
    line-height: 1.42;
    letter-spacing: 0.01em;
    color: rgba(248, 244, 232, 0.97);
    text-wrap: pretty;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.35),
        0 0 18px rgba(201, 162, 39, 0.2);
    padding-inline-end: 8px;
}

.programs-mini-ticker-caption::before {
    content: "✦ ";
    color: rgba(201, 162, 39, 0.95);
    font-size: 0.9em;
}

@media (max-width: 760px) {
    .programs-mini-ticker-track {
        min-height: 300px;
    }

    .programs-mini-ticker-item {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 10px 12px 12px;
        gap: 10px;
    }

    .programs-mini-ticker-photo {
        width: 100%;
        height: 190px;
    }

    .programs-mini-ticker-caption {
        font-size: 1.03rem;
        line-height: 1.4;
    }

    .programs-mini-ticker-arrow {
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        font-size: 1.45rem;
    }

    .programs-mini-ticker-arrow:active {
        transform: translateY(-50%) scale(0.97);
    }

    .programs-mini-ticker-arrow.is-prev {
        left: 10px;
    }

    .programs-mini-ticker-arrow.is-next {
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .programs-mini-ticker-item {
        transition: none;
        transform: none;
    }
}

.inline-link {
    color: var(--gold);
    text-decoration: underline;
}

.inline-link:hover {
    color: #e6c55c;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-embed-wide iframe {
    min-height: 360px;
}

.home-media-gallery h2 {
    margin-bottom: 14px;
}

.home-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.home-media-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 126px;
    text-decoration: none;
    color: var(--text);
    border-radius: 16px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(201, 162, 39, 0.34);
    background:
        radial-gradient(180px 120px at 88% 4%, rgba(201, 162, 39, 0.18), transparent 68%),
        linear-gradient(155deg, rgba(23, 24, 31, 0.96), rgba(13, 14, 20, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 239, 193, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.28);
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.home-media-card:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 162, 39, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 239, 193, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.36);
}

.home-media-card:focus-visible {
    outline: 2px solid #f0d98c;
    outline-offset: 2px;
}

.home-media-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f1de9f;
    border: 1px solid rgba(201, 162, 39, 0.5);
    background: rgba(10, 10, 14, 0.64);
}

.home-media-card-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.home-media-card-title {
    font-size: 1.02rem;
    line-height: 1.28;
}

.home-media-card-more {
    margin-top: auto;
    font-size: 0.83rem;
    color: var(--gold);
}

.news-feed-title {
    color: var(--gold);
    font-size: 1.2rem;
    margin: 0 0 16px;
}

.news-feed-block {
    margin-top: 28px;
}

.news-feed-more {
    margin-top: 14px;
}

.fb-feed-hint {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.news-youtube-stack-lead {
    font-size: 0.92rem;
    margin: 0 0 1rem;
    line-height: 1.45;
    opacity: 0.95;
}

.news-youtube-stack .news-yt-subsection {
    margin-top: 1.75rem;
}

.news-youtube-stack .news-yt-subsection:first-of-type {
    margin-top: 0.35rem;
}

.news-yt-subheading {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text, #f4f4f5);
}

.yt-feed-search-row {
    margin-bottom: 10px;
}

.yt-feed-search-input {
    width: min(420px, 100%);
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    background: rgba(23, 27, 34, 0.55);
    color: inherit;
    font: inherit;
}

.yt-feed-search-input:focus {
    outline: 2px solid rgba(201, 162, 39, 0.45);
    outline-offset: 1px;
}


.feed-carousel {
    position: relative;
}

.feed-carousel-viewport {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px 2px 6px;
}

.feed-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.feed-carousel-track {
    display: flex !important;
    gap: 14px;
    flex-wrap: nowrap !important;
}

.feed-carousel-track > .yt-card,
.feed-carousel-track > .fb-card {
    flex: 0 0 min(300px, 86vw);
}

.feed-carousel-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    transform: none;
    z-index: 3;
    width: 52px;
    border: none;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(10, 10, 12, 0.72), rgba(10, 10, 12, 0.28));
    color: var(--gold);
    font-size: 28px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 120ms ease, background 120ms ease;
}

.feed-carousel-arrow::after {
    content: '';
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.45);
    background: rgba(10, 10, 12, 0.86);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
    z-index: -1;
}

.feed-carousel-arrow:hover {
    color: #f0d98c;
    background: linear-gradient(90deg, rgba(10, 10, 12, 0.86), rgba(10, 10, 12, 0.34));
}

.feed-carousel-arrow:hover::after {
    border-color: rgba(201, 162, 39, 0.8);
}

.feed-carousel-arrow[disabled] {
    opacity: 0;
    pointer-events: none;
}

.feed-carousel-arrow.is-prev {
    left: -16px;
    background: linear-gradient(90deg, rgba(10, 10, 12, 0.78), rgba(10, 10, 12, 0.18));
}

.feed-carousel-arrow.is-next {
    right: -16px;
    background: linear-gradient(270deg, rgba(10, 10, 12, 0.78), rgba(10, 10, 12, 0.18));
}

.feed-carousel.is-loading .feed-carousel-arrow.is-next {
    color: transparent;
    pointer-events: none;
}

.feed-carousel.is-loading .feed-carousel-arrow.is-next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border-radius: 50%;
    border: 2px solid rgba(201, 162, 39, 0.28);
    border-top-color: rgba(201, 162, 39, 0.95);
    animation: feed-carousel-spin 0.72s linear infinite;
}

html[dir="rtl"] .feed-carousel.is-loading .feed-carousel-arrow.is-next {
    color: var(--gold);
    pointer-events: auto;
}

html[dir="rtl"] .feed-carousel.is-loading .feed-carousel-arrow.is-next::before {
    content: none;
}

html[dir="rtl"] .feed-carousel.is-loading .feed-carousel-arrow.is-prev {
    color: transparent;
    pointer-events: none;
}

html[dir="rtl"] .feed-carousel.is-loading .feed-carousel-arrow.is-prev::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border-radius: 50%;
    border: 2px solid rgba(201, 162, 39, 0.28);
    border-top-color: rgba(201, 162, 39, 0.95);
    animation: feed-carousel-spin 0.72s linear infinite;
}

@keyframes feed-carousel-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 760px) {
    .feed-carousel-arrow {
        display: none;
    }
}
.yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.yt-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.yt-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.fb-card.yt-card {
    cursor: default;
    text-align: start;
    font: inherit;
}

.yt-card:hover {
    border-color: rgba(201, 162, 39, 0.45);
    transform: translateY(-2px);
}

.yt-thumb-wrap {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0c0c0f;
}

.yt-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fb-thumb-1x1 {
    aspect-ratio: 1 / 1;
}

.fb-card-img {
    cursor: pointer;
}

.fb-card-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    border-radius: 10px;
    overflow: hidden;
    background: #0c0c0f;
}

.fb-card-media-grid--1 {
    grid-template-columns: 1fr;
}

.fb-card-media-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fb-card-media-grid--3,
.fb-card-media-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fb-card-media-grid--3 .fb-card-img:first-child {
    grid-column: span 2;
}

.fb-card-media-grid .fb-card-img {
    width: 100%;
    height: 100%;
    min-height: 118px;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

.fb-card-media-grid .fb-card-img:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.75);
    outline-offset: -2px;
}

.fb-card-date-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
}

.fb-card-date-link:hover .fb-card-date,
.fb-card-date-link:focus-visible .fb-card-date {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fb-card-date-link:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.55);
    outline-offset: 2px;
}

.fb-card-date {
    display: inline;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.92;
}

.fb-card-date-icon {
    display: inline-flex;
    align-items: center;
    color: var(--gold);
    opacity: 0.88;
    flex-shrink: 0;
}

.fb-card-body-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.fb-card-body--clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /* Must match App\Util\FacebookFeedExcerpt::PREVIEW_LINE_COUNT */
    -webkit-line-clamp: 13;
    overflow: hidden;
    word-break: break-word;
}

.fb-card-more-btn {
    align-self: flex-start;
    margin: 0;
    padding: 2px 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fb-card-more-btn:hover,
.fb-card-more-btn:focus-visible {
    color: #e8d089;
}

.fb-card-more-btn:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.55);
    outline-offset: 2px;
    border-radius: 4px;
}

.fb-card-body {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--muted);
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    min-width: 0;
}

.fb-card-body-wrap--i18n {
    position: relative;
    min-width: 0;
    min-height: 2.5rem;
}

.fb-card-body--i18n-source {
    margin: 0;
}

.fb-card-body-i18n-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(18, 18, 24, 0.96), rgba(18, 18, 24, 0.9));
    display: flex;
    align-items: flex-start;
    padding: 4px 0 0;
    backdrop-filter: blur(2px);
}

.fb-card-body__shimmer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45em;
    width: 100%;
    padding-top: 2px;
}

.fb-card-body__shimmer-line {
    display: block;
    width: 100%;
    height: 0.85em;
    margin-top: 0.45em;
    border-radius: 6px;
    filter: blur(0.35px);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(201, 162, 39, 0.16) 45%,
        rgba(255, 255, 255, 0.04) 100%
    );
    background-size: 220% 100%;
    animation: fb-i18n-shimmer 1.15s ease-in-out infinite;
}

.fb-card-body__shimmer-line:nth-child(2) {
    width: 92%;
    animation-delay: 0.08s;
}

.fb-card-body__shimmer-line:nth-child(3) {
    width: 84%;
    animation-delay: 0.16s;
}

.fb-card-body__shimmer-line:nth-child(4) {
    width: 68%;
    animation-delay: 0.24s;
}

@keyframes fb-i18n-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.fb-card-body br {
    display: block;
    margin: 0.25em 0;
}

.fb-card-body strong {
    font-weight: 700;
    color: var(--text);
}

.fb-card-body em {
    font-style: italic;
}

.fb-card-body .inline-link {
    color: var(--gold);
}

/* Inline `code`: explicit inline — .fb-card-body--clamp uses -webkit-box; unqualified <code> can stretch full width */
.fb-card-body code {
    display: inline;
    vertical-align: baseline;
    font-size: 0.85em;
    padding: 0.12em 0.4em;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(244, 244, 245, 0.96);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    max-width: 100%;
}

.fb-card-body pre.fb-md-pre {
    display: block;
    margin: 0.4em 0;
    padding: 0.55em 0.65em;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    font-size: 0.82em;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.fb-card-body pre.fb-md-pre code {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: inherit;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    box-decoration-break: unset;
    -webkit-box-decoration-break: unset;
    vertical-align: unset;
    max-width: none;
}

html[data-theme="light"] .fb-card-body code {
    background: rgba(166, 124, 15, 0.12);
    border-color: rgba(166, 124, 15, 0.28);
    color: var(--text);
}

html[data-theme="light"] .fb-card-body pre.fb-md-pre code {
    background: transparent;
    border: 0;
    color: inherit;
}

html[data-theme="light"] .fb-card-body pre.fb-md-pre {
    background: rgba(255, 252, 245, 0.96);
    border-color: rgba(166, 124, 15, 0.28);
    color: var(--text);
}

.fb-card-more {
    color: var(--gold);
    font-weight: 700;
}

.fb-detail-modal-body .fb-card-more {
    display: none;
}

.yt-card-title {
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--muted);
}

.contact-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.footer-contact a {
    color: var(--muted);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--gold);
}

.site-footer {
    border-top: 1px solid rgba(201, 162, 39, 0.15);
    margin-top: 48px;
    padding: 24px 0 40px;
    color: var(--muted);
    font-size: 0.85rem;
}

.site-footer .legal {
    margin-top: 8px;
    font-size: 0.8rem;
}

.site-footer-yechi {
    margin-top: 28px;
    padding-top: 22px;
    text-align: center;
}

.site-footer-yechi-line {
    position: relative;
    max-width: min(420px, 92vw);
    height: 2px;
    margin: 0 auto 18px;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(201, 162, 39, 0.15) 12%,
        rgba(201, 162, 39, 0.75) 42%,
        rgba(240, 215, 140, 0.95) 50%,
        rgba(201, 162, 39, 0.75) 58%,
        rgba(201, 162, 39, 0.15) 88%,
        transparent 100%
    );
    box-shadow:
        0 0 0 1px rgba(201, 162, 39, 0.12),
        0 0 28px rgba(201, 162, 39, 0.18);
}

.site-footer-yechi-line::before,
.site-footer-yechi-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(201, 162, 39, 0.65);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.35), rgba(30, 28, 22, 0.9));
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.35);
}

.site-footer-yechi-line::before {
    left: 0;
}

.site-footer-yechi-line::after {
    right: 0;
}

.site-footer-yechi-line-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 215, 140, 0.55) 0%, transparent 70%);
    animation: site-footer-yechi-pulse 3.2s ease-in-out infinite;
}

@keyframes site-footer-yechi-pulse {
    0%,
    100% {
        opacity: 0.65;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.site-footer-yechi-text {
    position: relative;
    margin: 0 auto;
    max-width: 36rem;
    padding: 0.12rem 0.45rem 0.2rem;
    font-size: clamp(0.82rem, 2.4vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.55;
    color: rgba(216, 196, 132, 0.96);
    background: linear-gradient(180deg, rgba(248, 233, 178, 0.96) 0%, rgba(205, 171, 75, 0.92) 48%, rgba(133, 103, 34, 0.92) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 -1px 0 rgba(255, 245, 208, 0.25),
        0 1px 0 rgba(72, 53, 16, 0.82),
        0 2px 2px rgba(0, 0, 0, 0.42),
        0 0 18px rgba(201, 162, 39, 0.24);
    filter: drop-shadow(0 1px 0 rgba(22, 18, 8, 0.65));
    font-family:
        "Frank Ruhl Libre",
        "Segoe UI",
        "Arial Hebrew",
        "David",
        "Noto Sans Hebrew",
        system-ui,
        serif;
}

.site-footer-yechi-text::before {
    content: "";
    position: absolute;
    inset: 0.02rem 0.18rem;
    pointer-events: none;
    border-top: 1px solid rgba(255, 240, 190, 0.18);
    border-bottom: 1px solid rgba(98, 73, 20, 0.22);
    border-radius: 2px;
    mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
    .site-footer-yechi-line-glow {
        animation: none;
    }
}

.footer-donate-widget {
    margin-top: 48px;
    border-top: 1px solid rgba(201, 162, 39, 0.28);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.08), transparent);
    padding: 20px 0 8px;
}

.footer-donate-inner {
    padding-bottom: 8px;
}

.footer-donate-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.footer-donate-text {
    margin: 0;
    flex: 1;
    min-width: 200px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.footer-donate-btn {
    flex-shrink: 0;
}

.footer-donate-details {
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 12px;
    background: rgba(18, 18, 24, 0.6);
    overflow: hidden;
}

.footer-donate-summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
}

.footer-donate-summary::-webkit-details-marker {
    display: none;
}

.footer-donate-embed-wrap {
    padding: 0 12px 14px;
}

.footer-donate-form {
    margin: 0 0 14px;
}

.footer-donate-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 560px) {
    .footer-donate-form-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        align-items: end;
    }
}

.footer-donate-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-donate-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-donate-amount-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-donate-amount-input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    background: rgba(8, 8, 12, 0.72);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.footer-donate-amount-input:focus {
    outline: 2px solid rgba(201, 162, 39, 0.45);
    outline-offset: 1px;
}

.footer-donate-amount-suffix {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--gold);
}

.footer-donate-installments-select {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    background: rgba(8, 8, 12, 0.72);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.footer-donate-installments-select:focus {
    outline: 2px solid rgba(201, 162, 39, 0.45);
    outline-offset: 1px;
}

.footer-donate-submit {
    width: 100%;
    max-width: 320px;
}

.footer-donate-form-hint {
    margin-top: 10px;
}

.footer-donate-checkout-panel {
    margin-bottom: 12px;
}

.footer-donate-checkout-panel[hidden] {
    display: none !important;
}

.donate-flow-steps {
    position: relative;
}

.donate-flow-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.donate-flow-lead {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.92rem;
}

.donate-flow-fields {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.donate-flow-fields .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.donate-flow-amount-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

@media (min-width: 560px) {
    .donate-flow-amount-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        align-items: end;
    }
}

.donate-flow-error {
    margin: 0 0 10px;
    color: #ffb4b4;
    font-size: 0.88rem;
    line-height: 1.45;
}

.donate-flow-continue,
.donate-flow-checkout-btn {
    width: 100%;
    max-width: 320px;
}

.donate-flow-payment {
    margin-top: 4px;
}

.donate-flow-payment-grid {
    margin-bottom: 10px;
}

.donate-checkout-slot .donate-flow-donor,
.donate-checkout-slot .donate-flow-payment {
    margin-bottom: 16px;
    padding: 14px 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.22);
    background: rgba(10, 10, 14, 0.55);
}

html[data-theme="light"] .donate-checkout-slot .donate-flow-donor,
html[data-theme="light"] .donate-checkout-slot .donate-flow-payment,
html[data-theme="light"] .footer-donate-embed-wrap .donate-flow-donor,
html[data-theme="light"] .footer-donate-embed-wrap .donate-flow-payment {
    background: rgba(255, 252, 245, 0.96);
    border-color: rgba(166, 124, 15, 0.24);
}

html[data-theme="light"] .donate-flow-error {
    color: #9a3b12;
}

.footer-donate-frame .donate-embed-inner iframe.donation-iframe {
    min-height: 520px;
}

.footer-donate-note {
    margin: 10px 4px 0;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
}

.gallery-page-intro {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 44rem;
}

.gallery-back-nav {
    margin: 0 0 20px;
}

.gallery-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: #f0d98c;
    border: 1px solid rgba(201, 162, 39, 0.42);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.1), rgba(10, 12, 16, 0.35));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gallery-back-link:hover {
    color: #fff8e6;
    border-color: rgba(201, 162, 39, 0.65);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.16), rgba(12, 14, 18, 0.45));
    box-shadow: 0 6px 18px rgba(201, 162, 39, 0.12);
    transform: translateY(-1px);
}

.gallery-back-link:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.75);
    outline-offset: 3px;
}

.gallery-back-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    opacity: 0.92;
}

.gallery-back-link-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

[dir="rtl"] .gallery-back-link-icon {
    transform: scaleX(-1);
}

.gallery-media-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 20px;
}

.gallery-filter {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    border: 1px solid rgba(201, 162, 39, 0.28);
    background: rgba(18, 18, 24, 0.5);
}

.gallery-filter:hover {
    color: var(--gold);
    border-color: rgba(201, 162, 39, 0.45);
}

.gallery-filter.is-active {
    color: var(--on-gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    border-color: transparent;
}

.program-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.program-gallery-more {
    margin-top: 14px;
}

#donate-payments {
    scroll-margin-top: 88px;
}

#donate-payments-title {
    scroll-margin-top: 64px;
}

.donate-payments-chooser {
    padding-bottom: 0;
}

.donate-payments-tiers {
    padding-top: 0;
}

#donate-payments-tiers,
#donate-payments-panels,
.donate-payments-panel .donate-panel-title {
    scroll-margin-top: calc(var(--site-header-offset, 280px) + 16px);
}

/* Image viewer modal (inline + gallery photos) */
img[data-modal-src],
.page-inline-img {
    cursor: pointer;
}

.img-modal {
    position: fixed;
    inset: 0;
    background: var(--modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.img-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.img-modal-stage {
    width: 100%;
    max-width: 980px;
    background: var(--modal-surface);
    border: 1px solid var(--modal-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transform: translateY(10px) scale(0.985);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
}

.img-modal.is-open .img-modal-stage {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.img-modal-img {
    width: 100%;
    max-height: calc(100vh - 190px);
    object-fit: contain;
    background: var(--modal-img-bg);
    display: block;
}

.img-modal-caption {
    padding: 12px 16px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--caption-divider);
}

.img-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--modal-close-bg);
    border: 1px solid rgba(201, 162, 39, 0.25);
    color: var(--text);
    font-size: 24px;
    line-height: 38px;
    cursor: pointer;
}

.img-modal-close:hover {
    border-color: rgba(201, 162, 39, 0.55);
    color: var(--gold);
}

.img-modal-close:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.65);
    outline-offset: 2px;
}

/* Facebook card — full post (internal modal) */
.fb-detail-modal-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fb-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.fb-detail-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fb-detail-modal-backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: var(--modal-backdrop);
}

.fb-detail-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background: var(--modal-surface);
    border: 1px solid var(--modal-border);
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(10px) scale(0.985);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
}

.fb-detail-modal.is-open .fb-detail-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.fb-detail-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--modal-close-bg);
    border: 1px solid rgba(201, 162, 39, 0.25);
    color: var(--text);
    font-size: 24px;
    line-height: 38px;
    cursor: pointer;
}

.fb-detail-modal-close:hover {
    border-color: rgba(201, 162, 39, 0.55);
    color: var(--gold);
}

.fb-detail-modal-scroll {
    overflow: auto;
    max-height: calc(100vh - 32px);
    -webkit-overflow-scrolling: touch;
    padding: 48px 18px 20px;
}

.fb-detail-modal-gallery {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--modal-gallery-bg);
}

.fb-detail-modal-stage {
    background: var(--modal-gallery-bg);
}

.fb-detail-modal-gallery[hidden] {
    display: none !important;
}

.fb-detail-modal-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(52vh, 420px);
    object-fit: contain;
}

.fb-detail-modal-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 6px;
    padding: 8px;
    background: rgba(10, 10, 12, 0.82);
}

.fb-detail-modal-thumb {
    margin: 0;
    padding: 0;
    border: 1px solid rgba(201, 162, 39, 0.22);
    background: #101015;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.fb-detail-modal-thumb.is-active {
    border-color: rgba(201, 162, 39, 0.75);
}

.fb-detail-modal-thumb img {
    width: 100%;
    height: 62px;
    object-fit: cover;
    display: block;
}

.fb-detail-modal-meta {
    margin-bottom: 10px;
}

.fb-detail-date-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
}

.fb-detail-date-link:hover .fb-card-date,
.fb-detail-date-link:focus-visible .fb-card-date {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fb-detail-date-link:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.55);
    outline-offset: 2px;
}

.fb-detail-modal-body {
    padding-bottom: 8px;
}

/* YouTube grid cards — button opens in-site player modal */
button.yt-card {
    cursor: pointer;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    text-align: start;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.yt-video-modal {
    position: fixed;
    inset: 0;
    z-index: 2150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.yt-video-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.yt-video-modal-backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: var(--modal-backdrop);
}

.yt-video-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background: var(--modal-surface);
    border: 1px solid var(--modal-border);
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(10px) scale(0.985);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
}

.yt-video-modal.is-open .yt-video-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.yt-video-modal-close {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--modal-close-bg);
    border: 1px solid rgba(201, 162, 39, 0.25);
    color: var(--text);
    font-size: 24px;
    line-height: 38px;
    cursor: pointer;
}

.yt-video-modal-close:hover {
    border-color: rgba(201, 162, 39, 0.55);
    color: var(--gold);
}

.yt-video-modal-scroll {
    overflow: auto;
    max-height: calc(100vh - 32px);
    -webkit-overflow-scrolling: touch;
    padding: 48px 18px 20px;
}

.yt-video-modal-title {
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.35;
    color: var(--text);
    padding-inline-end: 36px;
}

/* Padding-bottom 16:9: reliable when aspect-ratio + absolute iframe collapses (some WebKit). */
.yt-video-modal-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: var(--embed-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}

.yt-video-modal-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.yt-video-modal-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0 0 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.yt-video-modal-desc[hidden] {
    display: none !important;
}

.yt-video-modal-external {
    margin: 0;
}

.yt-video-modal-external[hidden] {
    display: none !important;
}

/* Light theme: keep ticker / floating controls readable on pale backgrounds */
html[data-theme="light"] .donate-impact-ticker-arrow {
    color: var(--gold-dim);
    box-shadow: 0 6px 16px rgba(60, 48, 28, 0.12);
}

html[data-theme="light"] .donate-impact-ticker-arrow:hover {
    color: var(--gold);
}

/* Light theme: impact widget matches page (was hardcoded dark panel + illegible text) */
html[data-theme="light"] .donate-impact-widget {
    background: var(--panel-soft);
    border-color: rgba(166, 124, 15, 0.28);
    box-shadow: 0 8px 24px rgba(60, 48, 28, 0.06);
}

html[data-theme="light"] .programs-mini-ticker-track {
    background:
        radial-gradient(220px 140px at 12% 12%, rgba(201, 162, 90, 0.22), transparent 72%),
        linear-gradient(165deg, rgba(255, 252, 245, 0.99), rgba(236, 226, 204, 0.97));
    border-color: rgba(166, 124, 15, 0.3);
}

html[data-theme="light"] .programs-mini-ticker-arrow {
    color: var(--gold-dim);
    background: var(--floating-ui-bg);
}

html[data-theme="light"] .programs-mini-ticker-arrow:hover {
    color: var(--gold);
    background: var(--floating-ui-bg-hover);
}

html[data-theme="light"] .contact-gallery-ticker-arrow {
    background: var(--floating-ui-bg);
    color: var(--gold-dim);
}

html[data-theme="light"] .contact-gallery-ticker-arrow:hover {
    color: var(--gold);
    background: var(--floating-ui-bg-hover);
}

html[data-theme="light"] .contact-gallery-ticker-caption {
    color: var(--text);
    background: var(--floating-ui-bg);
}

/* Light theme: readable article panels, cards, and solid page titles */
html[data-theme="light"] .page-prose::before {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 240, 226, 0.94));
    border: 1px solid rgba(166, 124, 15, 0.22);
}

html[data-theme="light"] .page-title-leadership,
html[data-theme="light"] .page-title-news,
html[data-theme="light"] .page-title-contact,
html[data-theme="light"] .page-title-institute {
    color: transparent;
    background: linear-gradient(92deg, var(--page-title-grad-a) 0%, var(--page-title-grad-b) 52%, var(--page-title-grad-c) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
}

html[data-theme="light"] .leadership-bio-card {
    background: linear-gradient(180deg, #fffdf8, #f6ecda);
    border-color: rgba(166, 124, 15, 0.3);
    box-shadow: 0 8px 22px rgba(70, 55, 30, 0.08);
}

html[data-theme="light"] .leadership-bio-card .prose-p {
    color: var(--muted);
}

html[data-theme="light"] .leadership-bio-card .prose-p strong {
    color: #4a3b18;
}

html[data-theme="light"] .home-media-card {
    color: var(--text);
    background:
        radial-gradient(200px 100px at 88% 6%, rgba(201, 162, 80, 0.2), transparent 68%),
        linear-gradient(155deg, #fffdf8, #f2e8d8);
    border-color: rgba(166, 124, 15, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 6px 20px rgba(60, 48, 28, 0.09);
}

html[data-theme="light"] .home-media-card-title {
    color: var(--text);
}

html[data-theme="light"] .home-media-card-icon {
    color: var(--gold);
    border-color: rgba(166, 124, 15, 0.42);
    background: rgba(255, 248, 230, 0.95);
}

html[data-theme="light"] .program-card {
    background:
        radial-gradient(180px 80px at 88% 10%, rgba(201, 162, 80, 0.16), transparent 70%),
        linear-gradient(165deg, #fffdf8, #efe4d4);
    border-color: rgba(166, 124, 15, 0.28);
    box-shadow: 0 6px 20px rgba(60, 48, 28, 0.08);
}

html[data-theme="light"] .program-card:hover {
    box-shadow: 0 10px 26px rgba(60, 48, 28, 0.12);
}

html[data-theme="light"] .page-inline-caption {
    color: var(--muted);
    background: rgba(255, 252, 245, 0.92);
    border: 1px solid rgba(166, 124, 15, 0.12);
}

html[data-theme="light"] .institute-benefits {
    background: linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(245, 234, 214, 0.95));
    border-color: rgba(166, 124, 15, 0.28);
    box-shadow: 0 4px 14px rgba(60, 48, 28, 0.06);
}

html[data-theme="light"] .institute-benefits-title {
    color: var(--gold-dim);
}

html[data-theme="light"] .institute-benefit-item {
    background: rgba(255, 252, 245, 0.85);
    border-color: rgba(166, 124, 15, 0.22);
}

html[data-theme="light"] .institute-benefit-text {
    color: var(--text);
}

html[data-theme="light"] .gallery-back-link {
    color: var(--text);
    background: linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(245, 234, 214, 0.92));
    border-color: rgba(166, 124, 15, 0.35);
}

html[data-theme="light"] .gallery-filter {
    background: rgba(255, 252, 245, 0.9);
    border-color: rgba(166, 124, 15, 0.25);
}

/* —— Light theme: donate comparison matrix (was dark-only) —— */
html[data-theme="light"] .donate-compare-scroll {
    background: rgba(255, 252, 245, 0.96);
    border-color: rgba(166, 124, 15, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

html[data-theme="light"] .donate-compare-corner {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.99), rgba(245, 236, 218, 0.97));
    border-bottom-color: rgba(166, 124, 15, 0.22);
}

html[data-theme="light"] .donate-compare-corner--rich {
    background:
        linear-gradient(145deg, rgba(166, 124, 15, 0.08) 0%, transparent 42%),
        linear-gradient(180deg, rgba(255, 253, 248, 0.99), rgba(240, 232, 214, 0.96));
    border-inline-end-color: rgba(166, 124, 15, 0.18);
}

html[data-theme="light"] .donate-compare-corner-head {
    color: var(--text);
}

html[data-theme="light"] .donate-compare-corner-sub {
    color: var(--muted);
}

html[data-theme="light"] .donate-compare-select {
    background: linear-gradient(165deg, rgba(255, 252, 245, 0.99), rgba(236, 226, 204, 0.96));
    border-color: rgba(166, 124, 15, 0.3);
    color: var(--text);
    box-shadow: 0 2px 10px rgba(60, 48, 28, 0.06);
}

html[data-theme="light"] .donate-compare-select:hover:not(:disabled) {
    box-shadow: 0 8px 26px rgba(60, 48, 28, 0.12);
}

html[data-theme="light"] .donate-compare-th.is-active {
    background: rgba(166, 124, 15, 0.09);
}

html[data-theme="light"] .donate-compare-th.is-active .donate-compare-select {
    border-color: var(--gold);
    box-shadow:
        0 0 0 1px rgba(166, 124, 15, 0.28),
        0 10px 26px rgba(60, 48, 28, 0.1);
}

html[data-theme="light"] .donate-compare-select-spend {
    color: var(--muted);
}

html[data-theme="light"] .donate-compare-section {
    background: linear-gradient(90deg, rgba(166, 124, 15, 0.12), rgba(255, 252, 245, 0.78));
}

html[data-theme="light"] .donate-compare-section-head {
    border-bottom-color: rgba(166, 124, 15, 0.26);
}

html[data-theme="light"] .donate-compare-section-title {
    color: var(--text);
}

html[data-theme="light"] .donate-compare-row--bonus .donate-compare-row-title {
    color: var(--text);
}

html[data-theme="light"] .donate-compare-rowhead {
    background: rgba(255, 252, 245, 0.98);
    border-bottom-color: rgba(166, 124, 15, 0.2);
    box-shadow: 4px 0 14px rgba(60, 48, 28, 0.07);
}

html[data-theme="light"] [dir="rtl"] .donate-compare-rowhead {
    box-shadow: -4px 0 14px rgba(60, 48, 28, 0.07);
}

html[data-theme="light"] .donate-compare-row--vip .donate-compare-rowhead {
    background: linear-gradient(90deg, rgba(100, 78, 140, 0.12), rgba(255, 252, 245, 0.98));
    border-bottom-color: rgba(166, 124, 15, 0.2);
}

html[data-theme="light"] .donate-compare-corner-ico--vip {
    color: var(--gold-dim);
}

html[data-theme="light"] .donate-compare-vip-badge {
    color: #2d2438;
    background: linear-gradient(155deg, #ebe4f2 0%, #d8cce8 55%, #c9b9dc 100%);
    border-color: rgba(110, 85, 150, 0.42);
    box-shadow: 0 2px 10px rgba(60, 48, 28, 0.08);
}

html[data-theme="light"] .donate-compare-td--vip-perk {
    background: rgba(100, 78, 140, 0.07);
    box-shadow: inset 0 0 0 1px rgba(120, 95, 160, 0.14);
}

html[data-theme="light"] .donate-compare-td.is-active {
    background: rgba(166, 124, 15, 0.1);
    box-shadow: inset 0 0 0 1px rgba(166, 124, 15, 0.22);
}

html[data-theme="light"] .donate-compare-mark--none {
    color: rgba(90, 83, 72, 0.5);
}

/* —— Light theme: donate panels, tier accordions, embed chrome, perks toast —— */
html[data-theme="light"] .donate-panel {
    background: var(--panel-soft);
    border-color: rgba(166, 124, 15, 0.24);
}

html[data-theme="light"] .donate-tier-details {
    background: var(--card-bg);
    border-color: rgba(166, 124, 15, 0.26);
}

html[data-theme="light"] .donate-tier-ico-wrap {
    background: linear-gradient(145deg, rgba(166, 124, 15, 0.16), rgba(255, 252, 245, 0.98));
    border-color: rgba(166, 124, 15, 0.38);
    box-shadow: 0 4px 16px rgba(60, 48, 28, 0.08);
}

html[data-theme="light"] .donate-tier-bonus {
    background: linear-gradient(90deg, rgba(166, 124, 15, 0.14), rgba(255, 252, 245, 0.82));
    border-inline-start-color: rgba(166, 124, 15, 0.55);
}

html[data-theme="light"] .donate-tier-bonus-text {
    color: var(--text);
}

html[data-theme="light"] .donate-embed-frame {
    border-color: rgba(166, 124, 15, 0.32);
    box-shadow: 0 10px 36px rgba(60, 48, 28, 0.12);
    background: var(--surface);
}

/* —— Light theme: footer «Быстрый платёж» (details + embed) —— */
html[data-theme="light"] .footer-donate-widget {
    border-top-color: rgba(166, 124, 15, 0.3);
    background: linear-gradient(180deg, rgba(166, 124, 15, 0.1), transparent);
}

html[data-theme="light"] .footer-donate-details {
    background: rgba(255, 252, 245, 0.96);
    border-color: rgba(166, 124, 15, 0.28);
    box-shadow: 0 4px 18px rgba(60, 48, 28, 0.06);
}

html[data-theme="light"] .footer-donate-summary {
    color: var(--gold-dim);
}

html[data-theme="light"] .footer-donate-details[open] .footer-donate-summary {
    border-bottom: 1px solid rgba(166, 124, 15, 0.18);
}

html[data-theme="light"] .footer-donate-amount-input,
html[data-theme="light"] .footer-donate-installments-select {
    background: rgba(255, 252, 245, 0.98);
    border-color: rgba(166, 124, 15, 0.28);
    color: var(--text);
}

html[data-theme="light"] .donate-perks-toast-card {
    background: rgba(255, 253, 248, 0.98);
    border-color: rgba(166, 124, 15, 0.28);
    box-shadow: 0 14px 44px rgba(60, 48, 28, 0.14);
}

html[data-theme="light"] .donate-checkout-perks-title {
    color: var(--text);
}

html[data-theme="light"] .donate-checkout-perks-item {
    color: var(--text);
}

html[data-theme="light"] .donate-perks-toast-dismiss:hover {
    color: var(--text);
    background: rgba(166, 124, 15, 0.1);
}

html[data-theme="light"] .donate-embed-inner.is-embed-scroll {
    scrollbar-color: rgba(166, 124, 15, 0.55) rgba(40, 36, 28, 0.08);
}

html[data-theme="light"] .donate-embed-inner.is-embed-scroll::-webkit-scrollbar-track {
    background: rgba(40, 36, 28, 0.06);
}

html[data-theme="light"] .donate-embed-inner.is-embed-scroll::-webkit-scrollbar-thumb {
    background: rgba(166, 124, 15, 0.52);
    border-color: rgba(255, 252, 245, 0.85);
}

/* —— Light theme: contact map + gallery (chrome, not iframe content) —— */
html[data-theme="light"] .contact-map-widget {
    background:
        radial-gradient(220px 120px at 92% 6%, rgba(201, 162, 80, 0.2), transparent 72%),
        linear-gradient(165deg, rgba(255, 253, 248, 0.99), rgba(245, 236, 218, 0.95));
    border-color: rgba(166, 124, 15, 0.28);
    box-shadow: 0 8px 26px rgba(60, 48, 28, 0.08);
}

html[data-theme="light"] .contact-map-title {
    color: var(--gold-dim);
}

html[data-theme="light"] .contact-map-frame {
    border-color: rgba(166, 124, 15, 0.28);
    background: var(--media-chrome);
}

html[data-theme="light"] .contact-gallery-ticker-frame {
    background:
        radial-gradient(180px 120px at 90% 4%, rgba(201, 162, 80, 0.18), transparent 70%),
        linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(236, 226, 204, 0.97));
}

html[data-theme="light"] .contact-gallery-ticker-media {
    background: var(--media-chrome);
}

html[data-theme="light"] .contact-gallery-ticker-media::after {
    background: linear-gradient(
        90deg,
        rgba(248, 242, 232, 0.45),
        rgba(248, 242, 232, 0) 22%,
        rgba(248, 242, 232, 0) 78%,
        rgba(248, 242, 232, 0.45)
    );
}

/* —— Light theme: institute benefits icon chips (tighter with card panels) —— */
html[data-theme="light"] .institute-benefit-icon {
    background: rgba(166, 124, 15, 0.1);
    border-color: rgba(166, 124, 15, 0.35);
}

html[data-theme="light"] .page-title-logo {
    background: rgba(255, 252, 245, 0.95);
    border-color: rgba(166, 124, 15, 0.28);
}

/* —— Light theme: carousel edge fades (feed strip) —— */
html[data-theme="light"] .feed-carousel-arrow {
    color: var(--gold-dim);
    background: linear-gradient(90deg, rgba(255, 252, 245, 0.96), rgba(245, 236, 218, 0.22));
}

html[data-theme="light"] .feed-carousel-arrow::after {
    border-color: rgba(166, 124, 15, 0.35);
    background: var(--floating-ui-bg);
    box-shadow: 0 8px 22px rgba(60, 48, 28, 0.12);
}

html[data-theme="light"] .feed-carousel-arrow:hover {
    color: var(--gold);
    background: linear-gradient(90deg, rgba(255, 252, 245, 0.99), rgba(236, 226, 204, 0.42));
}

html[data-theme="light"] .feed-carousel-arrow:hover::after {
    border-color: rgba(166, 124, 15, 0.55);
}

html[data-theme="light"] .feed-carousel-arrow.is-prev {
    background: linear-gradient(90deg, rgba(255, 252, 245, 0.98), rgba(245, 236, 218, 0.12));
}

html[data-theme="light"] .feed-carousel-arrow.is-next {
    background: linear-gradient(270deg, rgba(255, 252, 245, 0.98), rgba(245, 236, 218, 0.12));
}

/* —— Light theme: programs mini ticker — caption was still “light on dark” styling —— */
html[data-theme="light"] .programs-mini-ticker-caption {
    color: var(--text);
    text-shadow: none;
}

/* —— Light theme: Facebook post modal — photo thumb strip —— */
html[data-theme="light"] .fb-detail-modal-thumbs {
    background: rgba(255, 252, 245, 0.97);
    border-top: 1px solid rgba(166, 124, 15, 0.2);
}

html[data-theme="light"] .fb-detail-modal-thumb {
    background: #fffdf8;
    border-color: rgba(166, 124, 15, 0.28);
}

html[data-theme="light"] .fb-detail-modal-thumb.is-active {
    border-color: rgba(166, 124, 15, 0.55);
    box-shadow: 0 0 0 1px rgba(166, 124, 15, 0.2);
}

/* Torah campaign landing */
.torah-campaign-main {
    padding-bottom: 18px;
}

.torah-slogans h2 {
    margin-bottom: 10px;
}

.torah-visuals h2 {
    margin-bottom: 10px;
}

.torah-visuals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.torah-visual-card {
    overflow: hidden;
    border: 1px solid rgba(199, 161, 83, 0.26);
    padding: 0;
}

.torah-visual-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.torah-visual-card figcaption {
    padding: 10px 12px 12px;
    font-size: 0.9rem;
    color: var(--muted);
}

.torah-slogans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.torah-slogan-card {
    border: 1px solid rgba(199, 161, 83, 0.35);
    background:
        radial-gradient(130px 90px at 88% 8%, rgba(199, 161, 83, 0.18), transparent 72%),
        linear-gradient(165deg, rgba(28, 33, 47, 0.95), rgba(17, 20, 30, 0.97));
}

.torah-slogan-card p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.5;
    color: #f5e7b8;
    font-weight: 700;
}

.torah-campaign-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.torah-stat-card h3 {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

.torah-stat-card p {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 700;
}

.torah-campaign-search {
    max-width: 520px;
    margin-bottom: 14px;
}

.torah-offer-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(199, 161, 83, 0.26);
    background: rgba(20, 24, 35, 0.7);
    margin-bottom: 14px;
}

.torah-offer-tab {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.torah-offer-tab.is-active {
    color: #1f1a0f;
    background: linear-gradient(135deg, #f5e7b8, #dfc06f);
}

.torah-offer-panel {
    animation: donate-checkout-reveal 220ms ease;
}

.torah-flow-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: max(14px, env(safe-area-inset-top, 0px))
        max(14px, env(safe-area-inset-right, 0px))
        max(14px, env(safe-area-inset-bottom, 0px))
        max(14px, env(safe-area-inset-left, 0px));
    overflow: hidden;
}

.torah-flow-modal[hidden] {
    display: none !important;
}

.torah-flow-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 12, 0.72);
    backdrop-filter: blur(2px);
}

.torah-flow-dialog {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(960px, 100%);
    max-width: 100%;
    min-width: 0;
    max-height: 100%;
    overflow: auto;
    border: 1px solid rgba(199, 161, 83, 0.35);
    background:
        radial-gradient(220px 140px at 90% 8%, rgba(199, 161, 83, 0.14), transparent 72%),
        rgba(15, 19, 28, 0.98);
}

.torah-flow-dialog.is-opening {
    animation: torah-flow-rubber-in 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.torah-flow-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: block;
    border: 0;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(240, 217, 140, 0.16);
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.torah-flow-steps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-right: 38px;
}

.torah-flow-step .news-feed-title,
.torah-flow-step .donate-panel-title {
    margin-top: 0;
}

.torah-flow-step {
    transform-origin: 50% 50%;
}

.torah-flow-step.is-step-entering {
    animation: torah-flow-step-enter 360ms cubic-bezier(0.25, 0.85, 0.25, 1);
}

.torah-flow-step.is-step-leaving {
    animation: torah-flow-step-leave 280ms cubic-bezier(0.35, 0.1, 0.8, 0.25);
}

.torah-flow-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(240, 217, 140, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.torah-flow-step-dot.is-active {
    color: #1f1a0f;
    border-color: rgba(240, 217, 140, 0.9);
    background: linear-gradient(135deg, #f5e7b8, #dfc06f);
    font-weight: 700;
}

.torah-flow-dialog.is-checkout-step {
    display: flex;
    flex-direction: column;
}

.torah-flow-step[data-campaign-step="checkout"] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: min(68vh, 640px);
}

.torah-flow-checkout-slot {
    margin-top: 12px;
    padding-top: 0;
    border-top: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.torah-flow-checkout-slot .donate-checkout-slot-frame-wrap {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: min(62vh, 580px);
}

.torah-flow-checkout-slot .donate-checkout-slot-frame-wrap[hidden] {
    display: none !important;
}

.torah-flow-checkout-embed {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: min(62vh, 580px);
}

.torah-flow-checkout-embed .donate-embed-inner {
    flex: 1 1 auto;
    display: flex;
    width: 100%;
    min-height: min(58vh, 540px);
}

.torah-flow-checkout-embed .donate-embed-inner.is-embed-scroll {
    display: block;
    max-height: min(68vh, 640px);
}

.torah-flow-checkout-embed .donate-embed-inner iframe.donation-iframe {
    width: 100%;
    min-height: min(58vh, 540px);
    flex: 1 1 auto;
}

.torah-payment-methods {
    margin: 0 0 14px;
}

.torah-payment-methods-lead {
    margin: 0 0 10px;
    font-size: 0.95rem;
    opacity: 0.92;
}

.torah-payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.torah-payment-method {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    color: inherit;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    text-align: center;
}

.torah-payment-method:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.torah-payment-method.is-active {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.torah-payment-method:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.torah-payment-method__icon {
    width: 34px;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
    flex: 0 0 auto;
}

.torah-payment-method__icon--apple {
    background-image: url("/images/apple-pay.svg");
}

.torah-payment-method__icon--google {
    background-image: url("/images/google-pay.svg");
}

.torah-payment-method--wide {
    grid-column: 1 / -1;
}

.torah-payment-methods-note {
    margin: 10px 0 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.bank-transfer-notice {
    margin: 18px 0 0;
    padding: 16px 18px;
    border: 2px solid color-mix(in srgb, var(--accent) 72%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

.bank-transfer-notice--compact {
    margin-top: 14px;
    padding: 14px 16px;
}

.bank-transfer-kicker {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.bank-transfer-title {
    margin: 0 0 8px;
    font-size: 1.12rem;
    line-height: 1.3;
}

.bank-transfer-lead {
    margin: 0 0 12px;
    font-size: 0.94rem;
    line-height: 1.45;
    opacity: 0.92;
}

.bank-transfer-details {
    margin: 0 0 12px;
    display: grid;
    gap: 8px;
}

.bank-transfer-detail {
    display: grid;
    grid-template-columns: minmax(7rem, 9rem) 1fr;
    gap: 8px 12px;
    align-items: baseline;
    font-size: 0.92rem;
}

.bank-transfer-detail dt {
    margin: 0;
    opacity: 0.78;
    font-weight: 500;
}

.bank-transfer-detail dd {
    margin: 0;
}

.bank-transfer-account-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1.02em;
    letter-spacing: 0.02em;
}

.bank-transfer-detail--holder dd {
    word-break: break-word;
}

.bank-transfer-holder-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bank-transfer-holder-lines strong {
    display: block;
    line-height: 1.35;
}

.bank-transfer-receipt {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    font-size: 0.9rem;
    line-height: 1.45;
}

html[dir="rtl"] .bank-transfer-receipt {
    border-left: none;
    border-right: 4px solid var(--accent);
}

.bank-transfer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.bank-transfer-contact-btn {
    flex: 0 0 auto;
}

.bank-transfer-contact-link {
    font-size: 0.88rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

html[data-theme="light"] .bank-transfer-notice {
    background: color-mix(in srgb, var(--accent) 7%, #fff);
    border-color: color-mix(in srgb, var(--accent) 55%, #c9b89a);
}

html[data-theme="light"] .bank-transfer-receipt {
    background: color-mix(in srgb, var(--accent) 10%, #fff);
}

.donate-checkout-slot .bank-transfer-notice,
.footer-donate-embed-wrap .bank-transfer-notice,
.torah-payment-methods .bank-transfer-notice {
    margin-top: 14px;
}

@media (max-width: 520px) {
    .bank-transfer-detail {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

.torah-installments-field {
    display: block;
    margin-top: 12px;
}

.torah-installments-select {
    width: 100%;
    max-width: 320px;
}

.torah-checkout-continue {
    margin-top: 14px;
    width: 100%;
    max-width: 320px;
}

@media (min-width: 640px) {
    .torah-payment-methods-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .torah-payment-method--wide {
        grid-column: 1 / -1;
    }
}

.torah-checkout-test-hint {
    margin: 0.35rem 0 0;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 198, 63, 0.14);
    border: 1px solid rgba(255, 198, 63, 0.45);
    color: var(--text, inherit);
    font-size: 0.82rem;
    line-height: 1.35;
}

@keyframes torah-flow-rubber-in {
    0% { opacity: 0; transform: scale(0.92); }
    70% { opacity: 1; transform: scale(1.01); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes torah-flow-step-enter {
    0% { opacity: 0; transform: scale(1.08); }
    58% { opacity: 1; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes torah-flow-step-leave {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.9); }
}

.torah-sheet-card {
    max-width: 620px;
    border: 1px solid rgba(199, 161, 83, 0.28);
    background:
        radial-gradient(160px 100px at 86% 8%, rgba(199, 161, 83, 0.18), transparent 72%),
        linear-gradient(165deg, rgba(28, 33, 47, 0.95), rgba(17, 20, 30, 0.97));
}

.torah-sheet-card h3,
.torah-sheet-card p {
    margin: 0 0 10px;
}

.torah-sheet-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f5e7b8;
}

.torah-campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 8px;
    width: 100%;
    max-height: 520px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid rgba(199, 161, 83, 0.2);
    border-radius: 14px;
    background: rgba(12, 15, 23, 0.42);
    scrollbar-gutter: stable both-edges;
}

.torah-chapter-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(199, 161, 83, 0.26);
    border-radius: 12px;
    padding: 8px;
}

.torah-chapter-card[hidden] {
    display: none !important;
}

.torah-chapter-card.status-sold {
    opacity: 0.7;
}

.torah-chapter-card.status-reserved {
    border-color: rgba(240, 217, 140, 0.45);
}

.torah-chapter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.torah-chapter-index {
    margin: 0;
    font-size: 0.64rem;
    color: var(--muted);
}

.torah-chapter-status {
    font-size: 0.6rem;
    border-radius: 999px;
    padding: 1px 6px;
    background: rgba(240, 217, 140, 0.12);
    border: 1px solid rgba(240, 217, 140, 0.24);
}

.torah-chapter-title {
    margin: 0;
    font-size: 0.76rem;
}

.torah-chapter-he {
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
}

.torah-chapter-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.66rem;
}

.torah-chapter-price {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 700;
}

.torah-chapter-buyer {
    margin: 0;
    color: var(--gold);
    font-size: 0.66rem;
}

.torah-chapter-card .btn {
    padding: 6px 8px;
    font-size: 0.66rem;
}

.torah-checkout {
    scroll-margin-top: 80px;
}

.torah-checkout-actions {
    margin-top: 12px;
}

.torah-intent-card {
    margin: 10px 0 14px;
    border: 1px solid rgba(199, 161, 83, 0.34);
    background:
        radial-gradient(180px 120px at 90% 8%, rgba(199, 161, 83, 0.12), transparent 72%),
        rgba(21, 25, 37, 0.9);
}

.torah-intent-title {
    margin: 0 0 6px;
}

.torah-intent-text {
    margin: 0 0 10px;
    font-size: 1.02rem;
    line-height: 1.52;
}

.torah-intent-emphasis {
    color: #f3d98a;
    font-weight: 700;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.42),
        0 0 18px rgba(240, 217, 140, 0.22);
}

.torah-intent-fields {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.torah-intent-fields .field-input,
.torah-intent-fields textarea.field-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.torah-phone-row {
    display: grid;
    grid-template-columns: minmax(5.4rem, 6.2rem) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}

.torah-phone-code-picker {
    position: relative;
    min-width: 0;
}

.torah-phone-code-trigger {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding-right: 1.35rem;
    cursor: pointer;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.torah-phone-code-trigger::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    opacity: 0.55;
    pointer-events: none;
}

.torah-phone-code-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    width: min(22rem, calc(100vw - 48px));
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(199, 161, 83, 0.35);
    background: rgba(15, 19, 28, 0.98);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.torah-phone-code-panel[hidden] {
    display: none !important;
}

.torah-phone-code-search {
    width: 100%;
    margin-bottom: 8px;
}

.torah-phone-code-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(16rem, 42vh);
    overflow: auto;
}

.torah-phone-code-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.torah-phone-code-option:hover,
.torah-phone-code-option.is-active {
    background: rgba(240, 217, 140, 0.12);
}

.torah-phone-code-option.is-selected {
    background: rgba(240, 217, 140, 0.18);
}

.torah-phone-code-option-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.torah-phone-code-option-dial {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-size: 0.88rem;
}

.torah-phone-code-empty {
    padding: 10px;
    color: var(--muted);
    font-size: 0.88rem;
}

.torah-phone-number {
    min-width: 0;
}

.torah-phone-hint {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.35;
}

.torah-thankyou-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 0 36px;
}

.torah-thankyou-hero {
    padding: 24px 22px;
    text-align: center;
    border: 1px solid rgba(199, 161, 83, 0.35);
    background:
        radial-gradient(220px 140px at 90% 8%, rgba(199, 161, 83, 0.14), transparent 72%),
        rgba(15, 19, 28, 0.98);
}

.torah-thankyou-kicker {
    margin: 0 0 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--muted);
}

.torah-thankyou-title {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--gold);
}

.torah-thankyou-selection {
    margin: 0 0 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.86rem;
    color: var(--on-gold);
    background: linear-gradient(90deg, var(--gold), var(--gold-dim));
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
}

.torah-thankyou-lead {
    margin: 14px auto 0;
    max-width: 38rem;
}

.torah-thankyou-amount {
    margin-top: 18px;
    padding: 16px;
    border-color: rgba(199, 161, 83, 0.28);
    background: rgba(255, 255, 255, 0.03);
}

.torah-thankyou-amount-label {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.torah-thankyou-amount-value {
    margin: 6px 0 0;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 700;
    color: var(--gold);
}

.torah-thankyou-amount-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.torah-thankyou-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 8px;
}

.torah-thankyou-next {
    border: 1px solid rgba(199, 161, 83, 0.28);
}

.torah-thankyou-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.page-torah-thank-you .site-footer {
    margin-top: 24px;
}

html[data-theme="light"] .torah-thankyou-hero {
    background:
        radial-gradient(180px 120px at 90% 8%, rgba(199, 161, 83, 0.1), transparent 72%),
        var(--panel-soft);
    border-color: rgba(166, 124, 15, 0.32);
}

html[data-theme="light"] .torah-thankyou-amount {
    background: rgba(255, 251, 241, 0.92);
}

html[data-theme="light"] .torah-thankyou-next {
    background: var(--panel-soft);
    border-color: rgba(166, 124, 15, 0.28);
}

.torah-intent-error {
    margin: 0;
    color: #ffb8b8;
    font-weight: 600;
}

.torah-ticker-kicker {
    margin: 0 0 6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--muted);
}

.torah-source-card {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(199, 161, 83, 0.34);
    border-radius: 18px;
    background: #0f1420;
    box-shadow: 0 20px 36px rgba(4, 7, 13, 0.42);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 320ms ease, transform 320ms ease;
    pointer-events: none;
}

.torah-source-ticker {
    position: relative;
    height: 430px;
    overflow: hidden;
    overflow-anchor: none;
}

.torah-source-card {
    padding: 0;
}

.torah-source-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8, 11, 18, 0.14) 2%, rgba(8, 11, 18, 0.42) 40%, rgba(8, 11, 18, 0.82) 100%);
    pointer-events: none;
}

.torah-source-main {
    position: absolute;
    inset: 0;
    z-index: 2;
    min-height: 0;
    padding: 0;
}

.torah-source-portrait {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    object-position: center 18%;
    border: 0;
    display: block;
}

.torah-source-portrait:focus-visible {
    outline: 2px solid rgba(245, 228, 173, 0.95);
    outline-offset: -4px;
}

.torah-source-card.is-active {
    opacity: 1;
    transform: translateY(0);
    animation: torah-ticker-fade 420ms ease;
    border-color: rgba(240, 217, 140, 0.55);
    box-sizing: border-box;
    pointer-events: auto;
}

.torah-source-quote {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 54px;
    margin: 0;
    max-height: calc(100% - 112px);
    overflow: auto;
    line-height: 1.2;
    font-size: clamp(1.45rem, 2.95vw, 2.42rem);
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fbf4df;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.62),
        0 10px 24px rgba(0, 0, 0, 0.72);
    text-align: start;
    pointer-events: none;
}

.torah-source-meta {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 12px;
    left: 18px;
    margin: 0;
    color: rgba(255, 246, 217, 0.92);
    font-size: 0.84rem;
    text-align: right;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.torah-source-meta .inline-link {
    display: inline-block;
    color: inherit;
    text-align: right;
    text-decoration-color: rgba(255, 233, 176, 0.88);
}

.torah-source-controls {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.torah-sources-actions {
    margin-top: 18px;
}

.torah-source-nav {
    border: 1px solid rgba(199, 161, 83, 0.35);
    color: var(--text);
    background: rgba(28, 33, 47, 0.85);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.torah-source-dots {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.torah-source-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(240, 217, 140, 0.35);
    cursor: pointer;
    transition: transform 220ms ease, background-color 220ms ease, width 220ms ease;
}

.torah-source-dot.is-active {
    width: 28px;
    background: rgba(240, 217, 140, 0.92);
}

.torah-progress h2 {
    margin-bottom: 8px;
}

.torah-progress-label {
    margin: 0 0 8px;
}

.torah-progressbar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(199, 161, 83, 0.22);
}

.torah-progressbar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #d6b76b, #f5e7b8);
}

.torah-progress-meta {
    margin: 8px 0 0;
    color: var(--text);
    font-weight: 600;
}

.torah-progress-meta span {
    color: var(--muted);
    margin-left: 6px;
}

@keyframes torah-ticker-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 900px) {
    .torah-campaign-grid {
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
        max-height: 420px;
        gap: 8px;
        padding: 6px;
    }

    .torah-source-ticker {
        height: 360px;
    }

    .torah-source-quote {
        left: 14px;
        right: 14px;
        bottom: 48px;
        max-height: calc(100% - 94px);
        font-size: clamp(1.2rem, 6.3vw, 1.72rem);
        line-height: 1.22;
    }

    .torah-source-meta {
        left: 14px;
        right: 14px;
        bottom: 10px;
        font-size: 0.76rem;
    }
}

.img-modal-caption-wrap {
    padding: 12px 16px;
    border-top: 1px solid var(--caption-divider);
}

.img-modal-caption {
    padding: 0;
    color: var(--text);
    text-align: left;
    font-weight: 600;
}

.img-modal-source {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

html[data-theme="light"] .torah-slogan-card {
    background:
        radial-gradient(130px 90px at 88% 8%, rgba(199, 161, 83, 0.2), transparent 72%),
        linear-gradient(165deg, rgba(255, 251, 241, 0.96), rgba(244, 235, 216, 0.98));
}

html[data-theme="light"] .torah-slogan-card p {
    color: #543c11;
}

html[data-theme="light"] .torah-source-card {
    border-color: rgba(128, 93, 23, 0.35);
    box-shadow: 0 18px 30px rgba(65, 46, 13, 0.2);
}

html[data-theme="light"] .torah-source-nav {
    background: rgba(255, 251, 241, 0.92);
}

html[data-theme="light"] .torah-offer-tabs {
    background: rgba(255, 251, 241, 0.88);
}

html[data-theme="light"] .torah-offer-tab.is-active {
    color: #2c220f;
}

html[data-theme="light"] .torah-sheet-card {
    background:
        radial-gradient(160px 100px at 86% 8%, rgba(199, 161, 83, 0.21), transparent 72%),
        linear-gradient(165deg, rgba(255, 251, 241, 0.96), rgba(244, 235, 216, 0.98));
}

html[data-theme="light"] .torah-sheet-price {
    color: #5b4314;
}

html[data-theme="light"] .torah-flow-backdrop {
    background: var(--modal-backdrop);
}

html[data-theme="light"] .torah-flow-dialog {
    background:
        radial-gradient(220px 140px at 90% 8%, rgba(199, 161, 83, 0.12), transparent 72%),
        var(--modal-surface);
    border-color: var(--modal-border);
    color: var(--card-text);
}

html[data-theme="light"] .torah-flow-close {
    background: var(--modal-close-bg);
    color: var(--text);
}

html[data-theme="light"] .torah-ticker-kicker {
    color: var(--muted);
}

html[data-theme="light"] .torah-intent-card {
    background:
        radial-gradient(180px 120px at 90% 8%, rgba(199, 161, 83, 0.1), transparent 72%),
        var(--panel-soft);
    border-color: rgba(166, 124, 15, 0.32);
    color: var(--text);
}

html[data-theme="light"] .torah-intent-emphasis {
    color: #7a5a12;
    text-shadow: none;
}

html[data-theme="light"] .torah-phone-code-panel {
    background: rgba(255, 251, 241, 0.98);
    border-color: rgba(166, 124, 15, 0.32);
    box-shadow: 0 16px 36px rgba(65, 46, 13, 0.18);
}

html[data-theme="light"] .torah-phone-code-option:hover,
html[data-theme="light"] .torah-phone-code-option.is-active {
    background: rgba(166, 124, 15, 0.12);
}

html[data-theme="light"] .torah-phone-code-option.is-selected {
    background: rgba(166, 124, 15, 0.18);
}

html[data-theme="light"] .torah-sheet-card h3,
html[data-theme="light"] .torah-sheet-card p {
    color: var(--text);
}

html[data-theme="light"] .torah-flow-step-dot {
    background: rgba(166, 124, 15, 0.22);
    color: var(--text);
}

html[data-theme="light"] .torah-flow-step-dot.is-active {
    background: linear-gradient(135deg, #e8c24a, var(--gold) 45%, var(--gold-dim));
    color: var(--on-gold);
}

/* Site-entry campaign popup */
.campaign-entry-popup {
    --ce-surface: rgba(15, 19, 28, 0.98);
    --ce-surface-grad: radial-gradient(220px 140px at 90% 8%, rgba(199, 161, 83, 0.14), transparent 72%);
    --ce-border: rgba(199, 161, 83, 0.35);
    --ce-title: #f5e7b8;
    --ce-text: #f4f4f5;
    --ce-muted: #a1a1aa;
    --ce-chip-bg:
        radial-gradient(120px 70px at 92% 8%, rgba(199, 161, 83, 0.14), transparent 72%),
        linear-gradient(165deg, rgba(28, 33, 47, 0.92), rgba(17, 20, 30, 0.96));
    --ce-chip-text: #f0dfb8;
    --ce-backdrop: rgba(5, 7, 12, 0.76);
    --ce-close-bg: rgba(240, 217, 140, 0.16);

    position: fixed;
    inset: 0;
    z-index: 1320;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: max(14px, env(safe-area-inset-top, 0px))
        max(14px, env(safe-area-inset-right, 0px))
        max(14px, env(safe-area-inset-bottom, 0px))
        max(14px, env(safe-area-inset-left, 0px));
    overflow: hidden;
    color: var(--ce-text);
}

html[data-theme="light"] .campaign-entry-popup {
    --ce-surface: rgba(255, 253, 248, 0.98);
    --ce-surface-grad: radial-gradient(220px 140px at 90% 8%, rgba(199, 161, 83, 0.1), transparent 72%);
    --ce-border: rgba(166, 124, 15, 0.35);
    --ce-title: #5b4314;
    --ce-text: #1c1914;
    --ce-muted: #5a5348;
    --ce-chip-bg:
        radial-gradient(120px 70px at 92% 8%, rgba(199, 161, 83, 0.16), transparent 72%),
        linear-gradient(165deg, rgba(255, 251, 241, 0.96), rgba(244, 235, 216, 0.98));
    --ce-chip-text: #4a3810;
    --ce-backdrop: var(--modal-backdrop);
    --ce-close-bg: var(--modal-close-bg);
}

.campaign-entry-popup[hidden] {
    display: none !important;
}

.campaign-entry-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: var(--ce-backdrop);
    backdrop-filter: blur(3px);
    cursor: pointer;
}

.campaign-entry-popup .campaign-entry-dialog.torah-flow-dialog {
    width: 100%;
    max-width: min(560px, calc(100vw - 28px));
    min-width: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
    background: var(--ce-surface-grad), var(--ce-surface);
    border-color: var(--ce-border);
    color: var(--ce-text);
    box-sizing: border-box;
}

.campaign-entry-popup .torah-flow-close {
    background: var(--ce-close-bg);
    color: var(--ce-text);
}

.campaign-entry-body {
    padding: 8px 18px 20px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.campaign-entry-kicker {
    margin: 0 0 6px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.campaign-entry-title {
    margin: 0 0 8px;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(1.45rem, 4.5vw, 2.05rem);
    line-height: 1.12;
    font-weight: 700;
    color: var(--ce-title);
    text-shadow: 0 0 24px rgba(201, 162, 39, 0.22);
    overflow-wrap: anywhere;
}

.campaign-entry-lead {
    margin: 0 0 10px;
    font-size: 1.02rem;
    line-height: 1.45;
    font-weight: 700;
    color: var(--ce-text);
    overflow-wrap: anywhere;
}

.campaign-entry-body-text {
    margin: 0 0 14px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ce-muted);
    overflow-wrap: anywhere;
}

.campaign-entry-slogans {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 8px;
    min-width: 0;
}

.campaign-entry-slogans li {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(199, 161, 83, 0.28);
    background: var(--ce-chip-bg);
    font-size: 0.86rem;
    line-height: 1.45;
    font-weight: 650;
    color: var(--ce-chip-text);
    overflow-wrap: anywhere;
    min-width: 0;
}

html[data-theme="light"] .campaign-entry-slogans li {
    border-color: rgba(166, 124, 15, 0.28);
}

.campaign-entry-popup .torah-ticker-kicker,
.campaign-entry-popup .campaign-entry-ticker-kicker {
    color: var(--ce-muted);
}

.campaign-entry-ticker-wrap {
    margin-bottom: 16px;
    min-width: 0;
    max-width: 100%;
}

.campaign-entry-ticker-kicker {
    margin-bottom: 8px;
}

.campaign-entry-ticker {
    height: 240px;
    max-width: 100%;
    min-width: 0;
}

.campaign-entry-ticker .torah-source-card {
    border-radius: 16px;
}

.campaign-entry-quote-text {
    left: 16px;
    right: 16px;
    bottom: 46px;
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    line-height: 1.22;
}

.campaign-entry-ticker-controls {
    margin-top: 10px;
}

.campaign-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.campaign-entry-cta {
    flex: 1 1 220px;
    text-align: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
}

.campaign-entry-actions .btn {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
}

html[data-theme="light"] .campaign-entry-title {
    text-shadow: none;
}

html[data-theme="light"] .campaign-entry-popup .torah-source-nav {
    background: rgba(255, 251, 241, 0.92);
    color: var(--text);
}

html[data-theme="light"] .campaign-entry-popup .torah-source-dot {
    background: rgba(166, 124, 15, 0.28);
}

html[data-theme="light"] .campaign-entry-popup .torah-source-dot.is-active {
    background: rgba(166, 124, 15, 0.82);
}

@media (max-width: 520px) {
    .campaign-entry-body {
        padding-inline: 14px;
    }

    .campaign-entry-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .campaign-entry-cta,
    .campaign-entry-actions .btn-ghost {
        width: 100%;
        flex: 1 1 auto;
    }

    .campaign-entry-ticker {
        height: min(240px, 52vh);
    }
}

@media (prefers-reduced-motion: reduce) {
    .campaign-entry-dialog.is-opening {
        animation: none;
    }
}

/* —— Campaign activity feed (Charidy-style) —— */
.campaign-activity {
    margin-top: 8px;
}

.campaign-activity-head {
    margin-bottom: 14px;
}

.campaign-activity-title {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.campaign-activity-lead {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: 42rem;
}

.campaign-activity-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.campaign-activity-stat {
    padding: 12px 12px 10px;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.22);
    background: rgba(10, 10, 14, 0.45);
}

.campaign-activity-stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 4px;
}

.campaign-activity-stat-value {
    font-size: 1.05rem;
}

.campaign-activity-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.14);
    overflow: hidden;
    margin: 6px 0;
}

.campaign-activity-meter-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
    transition: width 0.45s ease;
}

.campaign-activity-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    max-height: min(52vh, 420px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.campaign-activity-item {
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    background: rgba(10, 10, 14, 0.5);
    animation: campaign-activity-in 0.35s ease both;
}

.campaign-activity-item.is-new {
    border-color: rgba(201, 162, 39, 0.55);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2);
}

@keyframes campaign-activity-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.campaign-activity-item-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px 12px;
    align-items: start;
    padding: 12px 12px;
}

.campaign-activity-item-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: rgba(72, 187, 120, 0.18);
    color: #6ee7a0;
    font-size: 0.9rem;
    font-weight: 800;
    margin-top: 2px;
}

.campaign-activity-item-label {
    margin: 0;
    font-weight: 650;
    line-height: 1.35;
}

.campaign-activity-item-dedication {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: var(--gold);
    line-height: 1.4;
}

.campaign-activity-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: end;
    white-space: nowrap;
}

.campaign-activity-item-amount {
    font-weight: 750;
    color: var(--gold);
}

.campaign-activity-item-time {
    font-size: 0.76rem;
    color: var(--muted);
}

.campaign-activity-empty {
    padding: 16px 14px;
    border-radius: 12px;
    border: 1px dashed rgba(201, 162, 39, 0.28);
    color: var(--muted);
    text-align: center;
}

.donate-thanks-banner {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(72, 187, 120, 0.35);
    background: rgba(72, 187, 120, 0.12);
    color: #b7f5cb;
    font-weight: 600;
    line-height: 1.45;
}

html[data-theme="light"] .donate-thanks-banner {
    color: #166534;
    background: rgba(72, 187, 120, 0.1);
}

.torah-progress-raised {
    margin: 10px 0 0;
    font-size: 0.95rem;
}

.torah-progress-raised strong {
    color: var(--gold);
}

.torah-chapter-dedication {
    color: var(--gold);
}

.torah-charidy-meter {
    scroll-margin-top: calc(var(--header-h, 64px) + 12px);
}

.torah-mobile-donate-bar {
    display: none;
}

@media (max-width: 760px) {
    .campaign-activity-stats {
        grid-template-columns: 1fr;
    }

    .page-torah-campaign .torah-charidy-meter {
        order: -2;
        margin-top: 0;
        padding-top: 8px;
    }

    .page-torah-campaign .campaign-activity {
        order: -1;
    }

    .page-torah-campaign .torah-campaign-main {
        display: flex;
        flex-direction: column;
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    .torah-mobile-donate-bar {
        display: flex;
        gap: 8px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9000;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(201, 162, 39, 0.28);
        background: rgba(10, 10, 14, 0.94);
        backdrop-filter: blur(10px);
    }

    .torah-mobile-donate-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .torah-mobile-donate-btn-secondary {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    html[data-theme="light"] .torah-mobile-donate-bar {
        background: rgba(255, 252, 245, 0.96);
    }
}

html[data-theme="light"] .campaign-activity-stat,
html[data-theme="light"] .campaign-activity-item {
    background: rgba(255, 252, 245, 0.96);
    border-color: rgba(166, 124, 15, 0.22);
}


/* === KabalaTech product landing === */
.page-kabalatech .kabalatech-main {
  padding-bottom: 3.5rem;
  max-width: 100%;
  overflow-x: clip;
}

.page-kabalatech .gallery-grid,
.page-kabalatech .asset,
.page-kabalatech .asset img {
  max-width: 100%;
}

.page-kabalatech .kabalatech-live-asset img,
.page-kabalatech .kabalatech-shot-grid .asset img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.page-kabalatech .kabalatech-form-grid,
.page-kabalatech .torah-phone-row {
  max-width: 100%;
}

.page-kabalatech .torah-phone-row {
  flex-wrap: wrap;
}

.kabalatech-hero {
  padding: 2.5rem 0 1.5rem;
  max-width: 52rem;
}

.kabalatech-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #c9a227);
  font-weight: 600;
}

.kabalatech-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink, #1a1520);
}

html:not([data-theme="light"]) .kabalatech-title {
  color: #f4e9c8;
}

.kabalatech-lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 42rem;
  opacity: 0.92;
}

.kabalatech-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 100%;
}

.kabalatech-hero-actions .btn {
  max-width: 100%;
  box-sizing: border-box;
}

.kabalatech-live-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: auto;
  max-width: 100%;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
}

.kabalatech-request-open {
  min-width: 0;
  width: min(100%, 22rem);
  max-width: 100%;
  padding: 0.95rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 650;
  box-sizing: border-box;
}

.kabalatech-live-caption {
  margin: 0 0 1rem;
  opacity: 0.85;
}

.kabalatech-live-grid.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px);
  width: min(100%, 280px);
  max-width: 280px;
  margin-top: 12px;
  gap: 12px;
}

.kabalatech-live-asset {
  width: 100%;
}

.kabalatech-live-asset img {
  cursor: zoom-in;
}

.kabalatech-live-actions {
  margin-top: 1rem;
}

.kabalatech-feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.kabalatech-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: rgba(255, 252, 245, 0.55);
}

html:not([data-theme="light"]) .kabalatech-feature {
  background: rgba(255, 255, 255, 0.04);
}

.kabalatech-feature-icon {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 0 0.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.kabalatech-feature-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--gold, #a67c0f);
}

.kabalatech-feature-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.9;
}

.kabalatech-shot-grid .asset img {
  cursor: zoom-in;
}

.kabalatech-form-lead {
  margin: 0 auto 1.25rem;
  max-width: 40rem;
  text-align: center;
}

.kabalatech-request .section-title {
  text-align: center;
}

.kabalatech-request-cta {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

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

.kabalatech-field-span,
.kabalatech-langs,
.kabalatech-hayom {
  grid-column: 1 / -1;
}

.kabalatech-langs-hint {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.88rem;
  opacity: 0.8;
  line-height: 1.35;
}

.kabalatech-langs-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.35rem 0.75rem;
  width: 100%;
}

.kabalatech-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline-end: 0;
  margin-top: 0.35rem;
  cursor: pointer;
  min-width: 0;
}

.kabalatech-check:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.kabalatech-form-status {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  background: rgba(201, 162, 39, 0.08);
}

.kabalatech-form-status.is-error {
  border-color: rgba(180, 60, 60, 0.45);
  background: rgba(180, 60, 60, 0.1);
  color: #8b1e1e;
}

html:not([data-theme="light"]) .kabalatech-form-status.is-error {
  color: #ffb4b4;
}

.kabalatech-form-status.is-ok {
  border-color: rgba(40, 140, 80, 0.4);
  background: rgba(40, 140, 80, 0.1);
}

.kabalatech-form-actions {
  margin-top: 1.25rem;
}

@media (max-width: 720px) {
  .kabalatech-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Request form modal */
.kabalatech-form-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.kabalatech-form-modal[hidden] {
  display: none !important;
}

.kabalatech-form-modal.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.kabalatech-form-modal.is-open[hidden] {
  display: flex !important;
}

.kabalatech-form-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop, rgba(12, 10, 8, 0.62));
  backdrop-filter: blur(4px);
}

.kabalatech-form-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(720px, 100%);
  max-height: none;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: visible;
  overscroll-behavior: contain;
  padding: 1.2rem 1rem 1.35rem;
  border-radius: 18px;
  border: 1px solid var(--modal-border, rgba(201, 162, 39, 0.35));
  background: var(--modal-surface, #fffaf0);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(12px) scale(0.985);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  box-sizing: border-box;
  min-width: 0;
}

@media (min-width: 720px) {
  .kabalatech-form-modal {
    align-items: center;
  }

  .kabalatech-form-modal-dialog {
    padding: 1.35rem 1.4rem 1.5rem;
    max-height: min(92dvh, 920px);
    overflow-y: auto;
  }
}

.kabalatech-form-modal.is-open .kabalatech-form-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

html:not([data-theme="light"]) .kabalatech-form-modal-dialog {
  background: color-mix(in srgb, #1c1712 92%, #3a2e1c);
}

.kabalatech-form-modal-close {
  position: absolute;
  top: 0.55rem;
  inset-inline-end: 0.65rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.72;
}

.kabalatech-form-modal-close:hover {
  opacity: 1;
  background: rgba(201, 162, 39, 0.12);
}

.kabalatech-form-modal-title {
  margin: 0 2rem 0.45rem 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

html[dir="rtl"] .kabalatech-form-modal-title {
  margin: 0 0 0.45rem 2rem;
}

.kabalatech-form-modal-lead {
  margin: 0 0 1.1rem;
  opacity: 0.88;
  font-size: 0.95rem;
  line-height: 1.45;
}

.kabalatech-form-modal .kabalatech-form,
.kabalatech-form-modal .kabalatech-form-grid,
.kabalatech-form-modal .field,
.kabalatech-form-modal .field-input,
.kabalatech-form-modal .field-textarea,
.kabalatech-form-modal .torah-phone-row,
.kabalatech-form-modal .kabalatech-langs,
.kabalatech-form-modal .kabalatech-langs-options {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.kabalatech-form-modal .field-input,
.kabalatech-form-modal .field-textarea,
.kabalatech-form-modal .torah-phone-number,
.kabalatech-form-modal .torah-phone-code-trigger {
  width: 100%;
  max-width: 100%;
}

/* KabalaTech: hover dropdown + section subnav */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    z-index: 30;
}

.nav-dropdown-trigger {
    gap: 0.4rem;
}

.nav-dropdown-trigger.is-current,
.nav-dropdown.is-current > .nav-dropdown-trigger {
    color: var(--nav-link-hover);
    background: var(--nav-link-hover-bg);
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.18);
}

.nav-dropdown-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.72;
    flex: 0 0 auto;
    margin-top: 1px;
    transition: transform 0.16s ease;
}

.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret,
.nav-dropdown.is-open .nav-dropdown-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    min-width: max(100%, 11.5rem);
    border-radius: 12px;
    border: 1px solid var(--nav-cluster-border);
    background: var(--nav-cluster-bg);
    box-shadow:
        inset 0 1px 0 var(--nav-cluster-inset),
        0 12px 28px rgba(0, 0, 0, 0.2),
        var(--nav-cluster-shadow);
    z-index: 40;
}

.nav-dropdown-link {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--nav-link);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition:
        color 0.16s ease,
        background 0.16s ease;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.is-current {
    color: var(--nav-link-hover);
    background: var(--nav-link-hover-bg);
}

/* Desktop: panel attached under KabalaTech, overlays CTA row */
@media (min-width: 761px) {
    .nav-dropdown-menu {
        position: absolute;
        top: calc(100% + 2px);
        left: auto;
        right: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-4px);
        transition:
            opacity 0.14s ease,
            transform 0.14s ease,
            visibility 0.14s ease;
    }

    html[dir="rtl"] .nav-dropdown-menu {
        left: 0;
        right: auto;
    }

    /* Bridge the cluster padding so hover doesn't flicker */
    .nav-dropdown::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 10px;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu,
    .nav-dropdown.is-open .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* Mobile accordion inside hamburger panel */
@media (max-width: 760px) {
    .nav-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        z-index: auto;
    }

    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        display: none;
        margin: 0.15rem 0 0.35rem;
        padding: 0.35rem;
        min-width: 0;
        width: 100%;
        border-radius: 10px;
        border: 1px solid var(--nav-cluster-border);
        box-shadow: none;
        background: color-mix(in srgb, var(--nav-cluster-bg) 88%, transparent);
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-link {
        white-space: normal;
        padding-inline-start: 1rem;
    }
}

/* (section subnav removed — dropdown under KabalaTech is the submenu) */

.kabalatech-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin: 1.25rem 0 0.25rem;
    font-size: 0.92rem;
    opacity: 0.85;
}

.kabalatech-crumbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kabalatech-crumbs-list li:not(:last-child)::after {
    content: "/";
    margin-inline-start: 0.45rem;
    opacity: 0.7;
}

.kabalatech-crumbs a {
    color: var(--gold, #a67c0f);
    text-decoration: none;
}

.kabalatech-crumbs a:hover {
    text-decoration: underline;
}

.kabalatech-hub-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    background: rgba(255, 252, 245, 0.55);
}

html:not([data-theme="light"]) .kabalatech-hub-card {
    background: rgba(255, 255, 255, 0.04);
}

.kabalatech-hub-card-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

.kabalatech-hub-card-media--icon {
    display: grid;
    place-items: center;
    min-height: 14rem;
    padding: 2rem;
    background:
        radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--gold, #c9a227) 30%, transparent), transparent 52%),
        linear-gradient(165deg, var(--card-bg, #f7f3ea), color-mix(in srgb, var(--gold, #c9a227) 12%, var(--surface, #efe8dc)));
}

.kabalatech-hub-card-media--icon img {
    width: min(46%, 10rem);
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
}

.kabalatech-hub-card-title {
    margin: 0 0 0.55rem;
    font-size: 1.35rem;
}

.kabalatech-hub-card-lead {
    margin: 0 0 1rem;
    line-height: 1.5;
}

.kabalatech-hub-cards {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .kabalatech-hub-cards {
        grid-template-columns: 1fr 1fr;
    }

    .kabalatech-hub-cards .kabalatech-hub-card {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.kabalatech-gem-shot-grid {
    grid-template-columns: minmax(0, 22rem);
    justify-content: center;
}

.kabalatech-gem-shot-grid .asset img {
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: top center;
}

.page-kabalatech-gematria .gematria-main {
    max-width: 56rem;
}

.page-kabalatech-gematria .kabalatech-gem-calc {
    scroll-margin-top: 5rem;
}

@media (max-width: 800px) {
    .kabalatech-hub-card {
        grid-template-columns: 1fr;
    }
}
