: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%;
    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: left;
    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;
}

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

.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;
}

.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 {
    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;
}

/* Menu cluster: reads as one navigation strip (TRIZ: segmentation + local quality vs CTA) */
.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);
}

.nav-main-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--nav-link);
    text-decoration: none;
    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 {
        max-width: 100%;
        margin-inline-start: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

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

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

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

    .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;
}

.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;
}

.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-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: 360px;
    border: 0;
    background: #fff;
}

.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-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;
}

@media (prefers-reduced-motion: reduce) {
    .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: 420px;
}

.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;
}

.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;
}


.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-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;
}

/* 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"] .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);
}

/* —— 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);
}

