/**
 * ختم الملوك — Royal Seal
 * A sealed royal decree: parchment, gold medallions, gilded arches and struck coins.
 * Mobile-first; every wide-screen rule sits inside a min-width query.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cream: #f7f2eb;
    --cream-2: #fffaf4;
    --parchment: #efe6d8;
    --parchment-2: #e5d8c4;
    --gold: #b8956b;
    --gold-light: #d4bc8e;
    --gold-shimmer: #e8d5a8;
    --gold-deep: #8b6b3a;
    --ink: #2a1810;
    --ink-soft: #5c4a3a;
    --shadow: rgba(42, 24, 16, .12);
    --radius-md: 1.85rem;
    --radius-lg: 2.5rem;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body.royal-cream {
    font-family: 'Cormorant Garamond', 'Amiri', Georgia, serif;
    color: var(--ink);
    min-height: 100vh;
    min-height: var(--app-vh, 100svh);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(ellipse 92% 46% at 50% -12%, rgba(184, 149, 107, .16), transparent 58%),
        radial-gradient(ellipse 60% 40% at 100% 62%, rgba(212, 188, 142, .12), transparent 55%),
        radial-gradient(ellipse 60% 36% at 0% 88%, rgba(184, 149, 107, .1), transparent 58%),
        var(--cream);

    /* Shared feature sections */
    --rsvp-accent: #6f5327;
    --rsvp-text: var(--ink);
    --rsvp-muted: var(--ink-soft);
    --rsvp-border: rgba(184, 149, 107, .42);
    --rsvp-field: var(--cream-2);
    --if-accent: #6f5327;
    --if-accent-text: #fffaf4;
    --if-text: var(--ink);
    --if-muted: var(--ink-soft);
    --if-border: rgba(184, 149, 107, .38);
    --if-field: var(--cream-2);
    --if-surface: rgba(184, 149, 107, .08);
    --if-punch: var(--parchment);
    --if-rsvp-bg: transparent;
    --if-lang-bg: rgba(255, 250, 244, .94);
}

html[dir="rtl"] body.royal-cream {
    font-family: var(--inv-font-ar-body), 'Noto Naskh Arabic', serif;
}

a { color: inherit; text-decoration: none; }

.rc-grain {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: .1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Ambient drift tinted for the royal palette — champagne only, no red */
.inv-amb--petal { color: rgba(196, 168, 122, .45); }
.inv-amb--spark { color: rgba(184, 149, 107, .65); }

/* ── Type ── */
.rc-label {
    font-family: 'Cinzel', 'Italiana', serif;
    font-size: .62rem;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
.rc-label--center { text-align: center; }
html[dir="rtl"] .rc-label {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: .1em;
    text-transform: none;
    font-size: .9rem;
}

.rc-crown {
    display: block;
    width: 46px;
    height: auto;
    margin: 0 auto .9rem;
    fill: var(--gold);
}

@keyframes rc-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ── Reveal ── */
.reveal, [data-reveal] {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 1s ease, transform 1s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible, [data-reveal].is-visible { opacity: 1; transform: none; }

/* ══════════════════════════════
   Gate — the seal in the intro video does the talking
   ══════════════════════════════ */
@keyframes gate-spin { to { transform: rotate(360deg); } }
@keyframes rc-seal-pulse {
    0%, 100% { transform: scale(1); box-shadow: inset 0 1px 4px rgba(255, 255, 255, .7), 0 0 0 0 rgba(184, 149, 107, .5); }
    50% { transform: scale(1.035); box-shadow: inset 0 1px 4px rgba(255, 255, 255, .7), 0 0 0 14px rgba(184, 149, 107, 0); }
}

#royal-gate {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #0a0604;
    transition: opacity .8s ease;
}
#royal-gate.is-fading { opacity: 0; pointer-events: none; }
#royal-gate.is-hidden { display: none; }
#royal-gate video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
#royal-gate .gate-loading,
#royal-gate .gate-waiting {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}
#royal-gate .gate-loading.is-active,
#royal-gate .gate-waiting.is-active { display: flex; }
#royal-gate .gate-loading { background: #0a0604; z-index: 3; }
#royal-gate .gate-waiting {
    cursor: pointer;
    justify-content: flex-end;
    padding-bottom: 3.2rem;
    background: linear-gradient(180deg, transparent 45%, rgba(10, 6, 4, .55) 100%);
    z-index: 4;
}
#royal-gate.is-playing .gate-waiting { display: none !important; }

/* A single gold mark — the video already carries the wax seal */
.gate-mark {
    font-size: .9rem;
    letter-spacing: .5em;
    color: var(--gold-shimmer);
    animation: rc-mark-pulse 2.8s ease-in-out infinite;
}
@keyframes rc-mark-pulse {
    0%, 100% { opacity: .55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.12); }
}

.gate-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(184, 149, 107, .2);
    border-top-color: var(--gold-light);
    animation: gate-spin 1s linear infinite;
}
.gate-text {
    margin-top: 1.4rem;
    font-size: .72rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold-light);
}
html[dir="rtl"] .gate-text { letter-spacing: .05em; text-transform: none; }

.gate-tap {
    margin-top: 1.9rem;
    font-size: .7rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(212, 188, 142, .5);
    padding-bottom: .35rem;
    text-align: center;
}
html[dir="rtl"] .gate-tap { letter-spacing: .04em; text-transform: none; font-size: .9rem; }

.royal-mute-btn {
    position: fixed;
    inset-inline-end: 1.15rem;
    bottom: 1.15rem;
    z-index: 50;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: var(--cream-2);
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 22px var(--shadow);
}

/* ══════════════════════════════
   I · Palace hero
   ══════════════════════════════ */
.rc-palace {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    min-height: var(--app-vh, 100svh);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 6, 4, .22) 0%, rgba(10, 6, 4, .38) 45%, rgba(10, 6, 4, .9) 100%),
        var(--rc-hero) center/cover no-repeat;
}
.rc-palace--video {
    background-image: linear-gradient(180deg, rgba(10, 6, 4, .22) 0%, rgba(10, 6, 4, .38) 45%, rgba(10, 6, 4, .9) 100%);
    background-color: #0a0604;
}
.rc-palace .inv-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    z-index: 0;
    pointer-events: none;
}
.rc-palace-veil {
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(180deg, transparent, rgba(10, 6, 4, .92));
    pointer-events: none;
    z-index: 1;
}
.rc-palace-frame {
    position: absolute;
    inset: .85rem;
    z-index: 1;
    border: 1px solid rgba(232, 213, 168, .35);
    pointer-events: none;
}
.rc-palace-frame::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(232, 213, 168, .16);
}
.rc-palace-copy {
    position: relative;
    z-index: 2;
    width: min(36rem, calc(100% - 3rem));
    padding: 0 0 3.6rem;
}
.rc-palace-copy .rc-crown { fill: var(--gold-shimmer); }
.rc-palace-copy .rc-label { color: var(--gold-shimmer); }

.rc-palace-name {
    font-family: 'Italiana', 'Cormorant Garamond', serif;
    font-size: clamp(2.6rem, 12vw, 5rem);
    font-weight: 400;
    line-height: 1.02;
    margin-top: .5rem;
    background: linear-gradient(135deg, #fff 0%, var(--gold-shimmer) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rc-shimmer 7s linear infinite;
}
html[dir="rtl"] .rc-palace-name { font-size: clamp(2.1rem, 9.5vw, 4rem); line-height: 1.45; }

.rc-ampersand {
    font-family: 'Italiana', serif;
    font-size: 1.7rem;
    color: var(--gold-shimmer);
    margin: .35rem 0;
    opacity: .9;
}

.rc-tagline {
    margin-top: 1.2rem;
    max-width: 24rem;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.75;
    color: var(--ink-soft);
}
.rc-tagline--light {
    color: rgba(247, 242, 235, .9);
    margin-inline: auto;
    font-style: normal;
}

.rc-palace-band {
    margin: 1.6rem auto 0;
    padding: .6rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    font-family: 'Cinzel', serif;
    font-size: .7rem;
    letter-spacing: .16em;
    color: var(--gold-shimmer);
    border-top: 1px solid rgba(232, 213, 168, .38);
    border-bottom: 1px solid rgba(232, 213, 168, .38);
}
html[dir="rtl"] .rc-palace-band {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: 0;
    font-size: .85rem;
}
.rc-palace-band em { font-style: normal; opacity: .6; }

.rc-scroll-hint {
    display: inline-block;
    margin-top: 2rem;
    font-size: .68rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold-shimmer);
    border-bottom: 1px solid rgba(232, 213, 168, .5);
    padding-bottom: .25rem;
    animation: rc-bounce 2.4s ease infinite;
}
html[dir="rtl"] .rc-scroll-hint { letter-spacing: .04em; text-transform: none; font-size: .88rem; }
@keyframes rc-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ══════════════════════════════
   II · The decree
   ══════════════════════════════ */
.rc-decree {
    position: relative;
    z-index: 1;
    padding: 3.5rem 1.1rem 2.5rem;
}
.rc-scrollsheet {
    position: relative;
    max-width: 34rem;
    margin: 0 auto;
}
.rc-scroll-rod {
    display: block;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
    box-shadow: 0 6px 16px rgba(42, 24, 16, .2);
    position: relative;
}
.rc-scroll-rod::before,
.rc-scroll-rod::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 22px;
    border-radius: 4px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, var(--gold-shimmer), var(--gold-deep));
}
.rc-scroll-rod::before { inset-inline-start: -8px; }
.rc-scroll-rod::after { inset-inline-end: -8px; }

.rc-scrollsheet-body {
    padding: 2.6rem 1.4rem 2.4rem;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 255, 255, .8), transparent 60%),
        linear-gradient(180deg, var(--cream-2), var(--parchment) 85%);
    box-shadow: 0 22px 48px var(--shadow), inset 0 0 0 1px rgba(184, 149, 107, .28);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.3s cubic-bezier(.22, 1, .36, 1) .15s;
}
.rc-decree.is-visible .rc-scrollsheet-body { clip-path: inset(0 0 0 0); }

.rc-wax {
    position: relative;
    display: grid;
    place-items: center;
    width: 4.4rem;
    height: 4.4rem;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 26%, var(--cream-2) 0%, var(--gold-light) 60%, var(--gold-deep) 100%);
    color: #4a3418;
    font-family: 'Italiana', serif;
    font-size: .85rem;
    letter-spacing: .08em;
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, .7), 0 10px 26px rgba(74, 52, 24, .28);
    animation: rc-seal-pulse 3s ease-in-out infinite;
}
.rc-wax::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1px solid rgba(255, 250, 244, .6);
}

.rc-decree-title {
    margin-top: .8rem;
    font-family: 'Italiana', serif;
    font-size: clamp(1.6rem, 6.5vw, 2.4rem);
    font-weight: 400;
    color: var(--ink);
}
.rc-decree-text {
    margin-top: 1.1rem;
    font-size: 1.02rem;
    line-height: 2;
    color: var(--ink-soft);
}

.rc-flourish {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 1.8rem auto 1.4rem;
    max-width: 18rem;
}
.rc-flourish i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.rc-flourish .rc-crown { flex: none; width: 34px; margin: 0; }

.rc-decree-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    flex-wrap: wrap;
    font-family: 'Italiana', serif;
    font-size: clamp(1.5rem, 6.5vw, 2.1rem);
    font-weight: 400;
    background: linear-gradient(135deg, var(--ink) 0%, var(--gold-deep) 50%, var(--ink) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rc-shimmer 8s linear infinite;
}
.rc-decree-names em {
    font-style: normal;
    font-size: .62em;
    -webkit-text-fill-color: var(--gold);
}

.rc-decree-lines {
    margin-top: 1.8rem;
    display: grid;
    gap: .9rem;
    text-align: start;
}
.rc-decree-lines > div {
    display: grid;
    grid-template-columns: 4.6rem 1fr;
    gap: .8rem;
    align-items: baseline;
    padding-bottom: .7rem;
    border-bottom: 1px dashed rgba(184, 149, 107, .4);
}
.rc-decree-lines dt {
    font-family: 'Cinzel', serif;
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
html[dir="rtl"] .rc-decree-lines dt {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: 0;
    text-transform: none;
    font-size: .85rem;
}
.rc-decree-lines dd { font-size: 1.02rem; color: var(--ink); }
.rc-decree-lines dd small {
    display: block;
    margin-top: .2rem;
    font-size: .82rem;
    color: var(--ink-soft);
}

.rc-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: .9rem 2.4rem;
    border-radius: 999px;
    font-family: 'Cinzel', serif;
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-deep), var(--gold-light));
    box-shadow: 0 14px 30px rgba(74, 52, 24, .22);
    transition: transform .3s ease, box-shadow .3s ease;
}
.rc-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(74, 52, 24, .28); }
html[dir="rtl"] .rc-cta {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: .02em;
    text-transform: none;
    font-size: .95rem;
}

/* ══════════════════════════════
   III · Gilded arch portrait
   ══════════════════════════════ */
.rc-portrait {
    position: relative;
    z-index: 1;
    padding: 2.5rem 1.25rem 1rem;
    display: grid;
    justify-items: center;
}
.rc-arch {
    position: relative;
    width: min(20rem, 78vw);
    aspect-ratio: 3 / 4;
    border-radius: 999px 999px 1rem 1rem;
    overflow: hidden;
    background: var(--parchment);
    box-shadow:
        0 26px 56px var(--shadow),
        0 0 0 1px rgba(184, 149, 107, .55),
        0 0 0 9px var(--cream-2),
        0 0 0 10px rgba(184, 149, 107, .35);
}
.rc-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    transform: scale(1.04);
    transition: transform 9s ease;
}
.rc-portrait.is-visible .rc-arch img { transform: scale(1); }
.rc-arch-corner {
    position: absolute;
    bottom: .6rem;
    width: 2.4rem;
    height: 2.4rem;
    z-index: 2;
    border: 1px solid rgba(232, 213, 168, .75);
    pointer-events: none;
}
.rc-arch-corner--start { inset-inline-start: .6rem; border-top: 0; border-inline-end: 0; }
.rc-arch-corner--end { inset-inline-end: .6rem; border-top: 0; border-inline-start: 0; }

.rc-portrait-caption {
    margin-top: 1.4rem;
    font-family: 'Italiana', serif;
    font-size: 1.15rem;
    letter-spacing: .28em;
    color: var(--gold-deep);
}
html[dir="rtl"] .rc-portrait-caption { letter-spacing: .12em; }

/* ══════════════════════════════
   IV · Countdown struck in gold
   ══════════════════════════════ */
.rc-countdown-section {
    position: relative;
    z-index: 1;
    padding: 3.5rem 1.25rem;
    text-align: center;
}
.rc-countdown-section .rc-label { margin-bottom: 1.8rem; }
.rc-countdown,
body.royal-cream .tpl-countdown {
    display: flex;
    justify-content: center;
    gap: .55rem;
    flex-wrap: wrap;
}
body.royal-cream .tpl-countdown-item {
    position: relative;
    display: grid;
    place-items: center;
    gap: .1rem;
    width: clamp(4.1rem, 20vw, 5.1rem);
    height: clamp(4.1rem, 20vw, 5.1rem);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 26%, var(--cream-2) 0%, var(--gold-light) 62%, var(--gold-deep) 100%);
    box-shadow:
        0 12px 26px rgba(42, 24, 16, .18),
        inset 0 1px 4px rgba(255, 255, 255, .8),
        inset 0 -2px 6px rgba(74, 52, 24, .25);
}
body.royal-cream .tpl-countdown-item::before {
    content: '';
    display: block;
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 250, 244, .55);
}
body.royal-cream .tpl-countdown-value {
    font-family: 'Italiana', serif;
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    color: #4a3418;
    line-height: 1;
}
body.royal-cream .tpl-countdown-label {
    font-family: 'Cinzel', serif;
    font-size: .52rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #6b4f28;
    margin-top: .2rem;
}
html[dir="rtl"] body.royal-cream .tpl-countdown-label {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: 0;
    text-transform: none;
    font-size: .68rem;
}
body.royal-cream .tpl-countdown-done {
    font-family: 'Italiana', serif;
    font-size: 1.4rem;
    color: var(--gold-deep);
}

/* ══════════════════════════════
   V · Three gold seals
   ══════════════════════════════ */
.rc-seals {
    position: relative;
    z-index: 1;
    padding: 1rem 1.25rem 3rem;
    max-width: 56rem;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}
.rc-seal-card {
    position: relative;
    padding: 2.4rem 1.4rem 1.6rem;
    text-align: center;
    border-radius: var(--radius-md);
    background: linear-gradient(165deg, var(--cream-2), rgba(239, 230, 216, .92));
    box-shadow: 0 16px 40px var(--shadow), inset 0 0 0 1px rgba(184, 149, 107, .2);
}
.rc-seal-stamp {
    position: absolute;
    top: -1.05rem;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Cinzel', serif;
    font-size: .78rem;
    color: #4a3418;
    background: radial-gradient(circle at 34% 26%, var(--cream-2) 0%, var(--gold-light) 62%, var(--gold-deep) 100%);
    box-shadow: 0 6px 16px rgba(74, 52, 24, .25), inset 0 1px 3px rgba(255, 255, 255, .7);
}
html[dir="rtl"] .rc-seal-stamp { transform: translateX(50%); }
.rc-seal-card h3 {
    font-family: 'Cinzel', serif;
    font-size: .62rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--gold-deep);
}
html[dir="rtl"] .rc-seal-card h3 {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: .06em;
    text-transform: none;
    font-size: .9rem;
}
.rc-seal-card p {
    margin-top: .7rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink);
}
.rc-seal-card small {
    display: block;
    margin-top: .35rem;
    font-size: .82rem;
    color: var(--ink-soft);
}

/* ── Section rule between archives ── */
.rc-archives { position: relative; z-index: 1; }
.rc-rule {
    display: flex;
    align-items: center;
    gap: .9rem;
    max-width: 20rem;
    margin: 2.8rem auto 1.4rem;
}
.rc-rule i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.rc-rule .rc-crown { flex: none; width: 30px; margin: 0; opacity: .85; }

/* ══════════════════════════════
   Shared sections — royal dressing
   ══════════════════════════════ */
body.royal-cream .inv-if-kicker {
    font-family: 'Cinzel', serif;
    color: var(--gold-deep);
}
html[dir="rtl"] body.royal-cream .inv-if-kicker { font-family: var(--inv-font-ar-body), serif; }
body.royal-cream .inv-if-title {
    font-family: 'Italiana', serif;
    color: var(--ink);
}
html[dir="rtl"] body.royal-cream .inv-if-title { font-family: var(--inv-font-ar-body), serif; }

body.royal-cream .inv-if-welcome,
body.royal-cream .inv-if-gratitude {
    border: 0;
    background: transparent;
}
body.royal-cream .inv-if-notes-body,
body.royal-cream .inv-if-guestbook-entry {
    border: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(165deg, var(--cream-2), rgba(239, 230, 216, .9));
    box-shadow: 0 14px 34px var(--shadow);
}

/* Programme as a decree ledger */
body.royal-cream .inv-if-programme-list {
    max-width: 34rem;
    margin-inline: auto;
    gap: 0;
}
body.royal-cream .inv-if-programme-item,
html[dir="rtl"] body.royal-cream .inv-if-programme-item {
    grid-template-columns: 4.4rem 1fr;
    align-items: baseline;
    gap: .9rem;
    padding: 1rem .2rem;
    border: 0;
    border-bottom: 1px dashed rgba(184, 149, 107, .4);
    background: none;
    text-align: start;
}
body.royal-cream .inv-if-programme-time {
    font-family: 'Cinzel', serif;
    font-size: .8rem;
    letter-spacing: .08em;
    color: var(--gold-deep);
    text-align: start;
}
html[dir="rtl"] body.royal-cream .inv-if-programme-item .inv-if-programme-time {
    font-family: var(--inv-font-ar-body), serif;
    text-align: start;
}
body.royal-cream .inv-if-programme-name { font-size: 1.06rem; color: var(--ink); }
body.royal-cream .inv-if-programme-desc { font-size: .88rem; color: var(--ink-soft); }

/* Gallery — gilded frames */
body.royal-cream .inv-if-gallery-cell {
    border-radius: 1.2rem 1.2rem .4rem .4rem;
    overflow: hidden;
    box-shadow: 0 14px 32px var(--shadow), 0 0 0 1px rgba(184, 149, 107, .35), 0 0 0 6px var(--cream-2);
}
body.royal-cream .inv-if-gallery-cell img { border-radius: inherit; }

/* Map + entry pass */
body.royal-cream .inv-if-map-frame {
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 44px var(--shadow), 0 0 0 1px rgba(184, 149, 107, .3);
}
body.royal-cream .inv-if-ticket {
    background: linear-gradient(165deg, var(--cream-2), var(--parchment));
    border-color: rgba(184, 149, 107, .45);
}

/* ── Footer ── */
.rc-footer {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem 4.5rem;
    text-align: center;
    font-size: .85rem;
    color: var(--ink-soft);
    background: linear-gradient(180deg, transparent, rgba(239, 230, 216, .7));
}
.rc-footer-monogram {
    font-family: 'Italiana', serif;
    font-size: 1.5rem;
    letter-spacing: .3em;
    color: var(--gold-deep);
    margin-bottom: .4rem;
}
html[dir="rtl"] .rc-footer-monogram { letter-spacing: .12em; }
.rc-footer-tag {
    margin-top: .5rem;
    font-family: 'Cinzel', serif;
    font-size: .66rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
}
html[dir="rtl"] .rc-footer-tag {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: .06em;
    text-transform: none;
    font-size: .82rem;
}

/* ══════════════════════════════
   Wider screens
   ══════════════════════════════ */
@media (min-width: 640px) {
    .rc-seals { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
    .rc-decree { padding: 4.5rem 1.5rem 3rem; }
    .rc-scrollsheet-body { padding: 3.2rem 2.4rem 2.8rem; }
    .rc-decree-lines > div { grid-template-columns: 6rem 1fr; }
}

@media (min-width: 900px) {
    .rc-palace-copy { padding-bottom: 4.5rem; }
    .rc-arch { width: 22rem; }
    .rc-countdown, body.royal-cream .tpl-countdown { gap: 1rem; }
}

/* Keep shared blocks inside the viewport on phones */
.inv-if-showcase,
.inv-if-showcase-shell,
.inv-if-section { max-width: 100%; overflow-x: hidden; }
.inv-if-showcase-viewport { min-width: 0 !important; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .reveal, [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .rc-scrollsheet-body { clip-path: none !important; transition: none !important; }
    .rc-palace-name,
    .rc-decree-names,
    .rc-scroll-hint,
    .gate-mark,
    .rc-wax { animation: none !important; }
    html { scroll-behavior: auto; }
}
