/**
 * غلاف الذهب — Golden Cover
 * A luxury magazine issue: masthead cover, contents page, a printed paper
 * spread with a drop cap, fact box and colophon. Mobile-first.
 */

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

:root {
    --forest: #102018;
    --forest-2: #16281e;
    --ink: #0a1210;
    --gold: #c9a962;
    --gold-bright: #e2c989;
    --gold-deep: #9a7c3f;
    --cream: #f5e6d3;
    --paper: #f7efe3;
    --paper-ink: #1b2a22;
    --muted: #b8a898;
    --radius-md: 1.6rem;
    --radius-lg: 2.3rem;
}

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

body.golden-editorial {
    font-family: 'Cormorant Garamond', 'Amiri', Georgia, serif;
    color: var(--cream);
    background:
        radial-gradient(ellipse 80% 45% at 15% 8%, rgba(201, 169, 98, .14), transparent 58%),
        radial-gradient(ellipse 70% 45% at 90% 72%, rgba(201, 169, 98, .1), transparent 55%),
        var(--forest);
    min-height: 100vh;
    min-height: var(--app-vh, 100svh);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;

    /* Shared feature sections */
    --rsvp-accent: var(--gold);
    --rsvp-text: var(--cream);
    --rsvp-muted: var(--muted);
    --rsvp-border: rgba(201, 169, 98, .4);
    --rsvp-field: rgba(255, 255, 255, .06);
    --if-accent: var(--gold);
    --if-accent-text: var(--ink);
    --if-text: var(--cream);
    --if-muted: var(--muted);
    --if-border: rgba(201, 169, 98, .32);
    --if-field: rgba(255, 255, 255, .06);
    --if-surface: rgba(201, 169, 98, .08);
    --if-punch: var(--forest-2);
    --if-rsvp-bg: transparent;
    --if-lang-bg: rgba(16, 32, 24, .92);
}

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

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

.ge-stripes {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: .05;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(201, 169, 98, .35), transparent 55%),
        radial-gradient(ellipse 70% 45% at 80% 70%, rgba(201, 169, 98, .2), transparent 50%);
}

/* Ambient drift tinted for gold on forest */
.inv-amb--spark { color: rgba(226, 201, 137, .8); }
.inv-amb--bird { color: rgba(201, 169, 98, .55); }

/* ── Editorial type helpers ── */
.ge-kicker,
.ge-label {
    font-family: 'Jost', 'Bodoni Moda', sans-serif;
    font-size: .6rem;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--gold);
}
html[dir="rtl"] .ge-kicker,
html[dir="rtl"] .ge-label {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: .08em;
    text-transform: none;
    font-size: .9rem;
}
.ge-label { text-align: center; }

@keyframes ge-flash-sweep {
    0% { background-position: 120% center; }
    100% { background-position: -20% center; }
}

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

/* ══════════════════════════
   Gate
   ══════════════════════════ */
@keyframes gate-spin { to { transform: rotate(360deg); } }
@keyframes ge-issue-glow {
    0%, 100% { box-shadow: 0 0 22px rgba(201, 169, 98, .22); }
    50% { box-shadow: 0 0 42px rgba(201, 169, 98, .5); }
}

#ge-gate {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #000;
    transition: opacity .75s ease;
}
#ge-gate.is-fading { opacity: 0; pointer-events: none; }
#ge-gate.is-hidden { display: none; }
#ge-gate video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
#ge-gate .gate-loading,
#ge-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;
}
#ge-gate .gate-loading.is-active,
#ge-gate .gate-waiting.is-active { display: flex; }
#ge-gate .gate-loading { background: var(--ink); z-index: 3; }
#ge-gate .gate-waiting { cursor: pointer; background: rgba(0, 0, 0, .42); z-index: 4; }
#ge-gate.is-playing .gate-waiting { display: none !important; }

.gate-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(201, 169, 98, .2);
    border-top-color: var(--gold-bright);
    animation: gate-spin .9s linear infinite;
}
.gate-text {
    margin-top: 1.2rem;
    font-size: .7rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--gold);
}
html[dir="rtl"] .gate-text { letter-spacing: .05em; text-transform: none; }

.gate-issue {
    display: grid;
    place-items: center;
    width: 5.2rem;
    height: 5.2rem;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    font-family: 'Bodoni Moda', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-bright);
    animation: ge-issue-glow 2.2s ease-in-out infinite;
}
.gate-tap {
    margin-top: 1.7rem;
    font-size: .66rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--cream);
    border-bottom: 1px solid var(--gold);
    padding-bottom: .3rem;
    text-align: center;
}
html[dir="rtl"] .gate-tap { letter-spacing: .04em; text-transform: none; font-size: .88rem; }

.ge-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(--forest);
    color: var(--gold);
    cursor: pointer;
}

/* ══════════════════════════
   The cover
   ══════════════════════════ */
.ge-splash {
    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: var(--cream);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 18, 16, .28) 0%, rgba(10, 18, 16, .42) 42%, rgba(10, 18, 16, .94) 100%),
        var(--ge-hero) center/cover no-repeat;
}
.ge-splash--video {
    background-image: linear-gradient(180deg, rgba(10, 18, 16, .28) 0%, rgba(10, 18, 16, .42) 42%, rgba(10, 18, 16, .94) 100%);
    background-color: var(--ink);
}
.ge-splash .inv-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 26%;
    z-index: 0;
    pointer-events: none;
}
.ge-splash-veil {
    position: absolute;
    inset: auto 0 0;
    height: 60%;
    background: linear-gradient(180deg, transparent, rgba(10, 18, 16, .95));
    pointer-events: none;
    z-index: 1;
}

.ge-cover-masthead {
    position: absolute;
    top: 0;
    inset-inline: 0;
    z-index: 3;
    margin: 1rem 1.1rem 0;
    /* leave room for the fixed language pill */
    padding-inline-end: 5.6rem;
    padding-bottom: .6rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .6rem;
    border-bottom: 1.5px solid rgba(201, 169, 98, .8);
    font-family: 'Jost', sans-serif;
    font-size: .54rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold-bright);
}
html[dir="rtl"] .ge-cover-masthead {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: .04em;
    text-transform: none;
    font-size: .74rem;
}
.ge-cover-brand { font-weight: 500; }
.ge-cover-meta { opacity: .85; white-space: nowrap; }

/* Peeling page corner */
.ge-corner {
    position: absolute;
    top: 3.4rem;
    inset-inline-end: 0;
    z-index: 3;
    width: 3.4rem;
    height: 3.4rem;
    background: linear-gradient(225deg, rgba(245, 230, 211, .92) 0%, rgba(201, 169, 98, .8) 55%, transparent 56%);
    box-shadow: -4px 4px 12px rgba(0, 0, 0, .35);
    animation: ge-curl 5s ease-in-out infinite;
    pointer-events: none;
}
html[dir="rtl"] .ge-corner { background: linear-gradient(135deg, rgba(245, 230, 211, .92) 0%, rgba(201, 169, 98, .8) 55%, transparent 56%); }
@keyframes ge-curl {
    0%, 100% { transform: scale(1); opacity: .75; }
    50% { transform: scale(1.12); opacity: 1; }
}

.ge-splash-copy {
    position: relative;
    z-index: 2;
    width: min(36rem, calc(100% - 2.4rem));
    padding: 0 0 3.4rem;
}
.ge-splash-title {
    margin-top: .8rem;
    font-family: 'Bodoni Moda', 'Playfair Display', serif;
    font-size: clamp(2rem, 9vw, 3.6rem);
    font-weight: 400;
    line-height: 1.08;
    background: linear-gradient(100deg, var(--cream) 20%, var(--gold-bright) 45%, var(--cream) 70%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ge-splash.is-visible .ge-splash-title { animation: ge-flash-sweep 2.6s ease-out .3s both; }
html[dir="rtl"] .ge-splash-title { font-size: clamp(1.8rem, 8vw, 3rem); line-height: 1.4; }

.ge-splash-names {
    margin-top: 1rem;
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
    font-size: clamp(1.5rem, 7vw, 2.3rem);
    color: var(--cream);
}
.ge-splash-names em { font-style: normal; color: var(--gold); margin: 0 .35rem; }
html[dir="rtl"] .ge-splash-names { font-style: normal; }

.ge-barcode {
    margin: 1.6rem auto 0;
    width: fit-content;
    display: grid;
    justify-items: center;
    gap: .3rem;
    padding: .5rem .7rem;
    background: rgba(245, 230, 211, .1);
    border: 1px solid rgba(201, 169, 98, .3);
    border-radius: .5rem;
}
.ge-barcode-bars {
    display: block;
    width: 6.4rem;
    height: 1.6rem;
    background: repeating-linear-gradient(
        90deg,
        var(--cream) 0 1px, transparent 1px 3px,
        var(--cream) 3px 5px, transparent 5px 6px,
        var(--cream) 6px 7px, transparent 7px 10px
    );
    opacity: .8;
}
.ge-barcode-text {
    font-family: 'Jost', sans-serif;
    font-size: .52rem;
    letter-spacing: .22em;
    color: var(--muted);
}

.ge-splash-link {
    display: inline-block;
    margin-top: 1.6rem;
    color: var(--gold-bright);
    font-size: .66rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold);
    padding-bottom: .3rem;
    animation: ge-bounce 2.2s ease infinite;
}
html[dir="rtl"] .ge-splash-link { letter-spacing: .05em; text-transform: none; font-size: .85rem; }
@keyframes ge-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ══════════════════════════
   Contents
   ══════════════════════════ */
.ge-contents {
    position: relative;
    z-index: 1;
    padding: 3.5rem 1.15rem 2.5rem;
    max-width: 40rem;
    margin: 0 auto;
}
.ge-contents-list {
    list-style: none;
    margin-top: 1.4rem;
    display: grid;
    gap: .55rem;
}
.ge-contents-list a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(201, 169, 98, .07);
    transition: background .3s ease, transform .3s ease;
}
.ge-contents-list a:hover { background: rgba(201, 169, 98, .14); transform: translateY(-2px); }
.ge-contents-no {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.05rem;
    color: var(--gold);
    min-width: 1.9rem;
}
.ge-contents-label { font-size: 1rem; color: var(--cream); }
.ge-contents-dots {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(201, 169, 98, .45) 0 2px, transparent 2px 6px);
}
.ge-contents-go { color: var(--gold); font-size: .9rem; }
html[dir="rtl"] .ge-contents-go { transform: scaleX(-1); }

/* ══════════════════════════
   Cover story — printed paper
   ══════════════════════════ */
.ge-spread {
    position: relative;
    z-index: 1;
    margin: 2rem .7rem;
    padding: 2.4rem 1.2rem 2.8rem;
    border-radius: var(--radius-lg);
    color: var(--paper-ink);
    background:
        radial-gradient(ellipse 60% 30% at 50% 0%, rgba(255, 255, 255, .8), transparent 60%),
        linear-gradient(180deg, var(--paper), #efe3d1);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .4);
}
.ge-spread-inner { max-width: 34rem; margin: 0 auto; }
.ge-spread-head { text-align: center; }
.ge-spread-kicker {
    font-family: 'Jost', sans-serif;
    font-size: .58rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
html[dir="rtl"] .ge-spread-kicker {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: .08em;
    text-transform: none;
    font-size: .88rem;
}
.ge-spread-title {
    margin-top: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    flex-wrap: wrap;
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    font-weight: 400;
    font-style: italic;
    color: var(--paper-ink);
}
.ge-spread-title em { font-style: normal; color: var(--gold-deep); font-size: .62em; }
html[dir="rtl"] .ge-spread-title { font-style: normal; }
.ge-spread-standfirst {
    margin-top: .8rem;
    font-size: .86rem;
    letter-spacing: .04em;
    color: rgba(27, 42, 34, .72);
}

.ge-spread-body { margin-top: 1.8rem; }

.ge-spread-figure {
    margin: 0 0 1.4rem;
    overflow: hidden;
    border-radius: 1.1rem;
    box-shadow: 0 16px 34px rgba(27, 42, 34, .22);
}
.ge-spread-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    animation: ge-ken 20s ease-in-out infinite alternate;
}
@keyframes ge-ken {
    from { transform: scale(1); }
    to { transform: scale(1.07); }
}
.ge-spread-figure figcaption {
    padding: .7rem .9rem;
    background: rgba(27, 42, 34, .06);
    font-size: .74rem;
    color: rgba(27, 42, 34, .7);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.ge-figure-tag {
    font-family: 'Jost', sans-serif;
    font-size: .56rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: .18rem .5rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
}
html[dir="rtl"] .ge-figure-tag { letter-spacing: .04em; text-transform: none; font-size: .68rem; }

.ge-spread-copy {
    font-size: 1.02rem;
    line-height: 1.95;
    color: rgba(27, 42, 34, .9);
}
.ge-spread-copy--lead::first-letter {
    float: inline-start;
    font-family: 'Bodoni Moda', serif;
    font-size: 3.6rem;
    line-height: .82;
    padding-inline-end: .5rem;
    padding-top: .3rem;
    color: var(--gold-deep);
}

.ge-pullquote {
    position: relative;
    margin: 1.8rem 0 0;
    padding: 1.4rem 0 0;
    border-top: 1px solid rgba(154, 124, 63, .4);
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
    font-size: clamp(1.15rem, 4.6vw, 1.5rem);
    line-height: 1.6;
    color: var(--gold-deep);
    text-align: center;
}
.ge-pullquote-mark {
    display: block;
    font-size: .85rem;
    line-height: 1;
    margin: 0 0 .9rem;
    color: var(--gold-deep);
    letter-spacing: .4em;
}
html[dir="rtl"] .ge-pullquote { font-style: normal; font-family: var(--inv-font-ar-body), serif; }

.ge-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: .9rem 2.2rem;
    border-radius: 999px;
    font-family: 'Jost', sans-serif;
    font-size: .68rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    box-shadow: 0 14px 30px rgba(27, 42, 34, .22);
    transition: transform .3s ease, box-shadow .3s ease;
}
.ge-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(27, 42, 34, .28); }
html[dir="rtl"] .ge-cta {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: .02em;
    text-transform: none;
    font-size: .95rem;
}

/* ══════════════════════════
   Fact box + countdown
   ══════════════════════════ */
.ge-factbox {
    position: relative;
    z-index: 1;
    padding: 3rem 1.15rem 1rem;
    max-width: 44rem;
    margin: 0 auto;
}
.ge-facts {
    margin-top: 1.5rem;
    display: grid;
    gap: .8rem;
}
.ge-fact {
    padding: 1.2rem 1.2rem;
    border-radius: var(--radius-md);
    background: linear-gradient(165deg, rgba(245, 230, 211, .08), rgba(201, 169, 98, .08));
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.ge-fact dt {
    font-family: 'Jost', sans-serif;
    font-size: .56rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
}
html[dir="rtl"] .ge-fact dt {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: .06em;
    text-transform: none;
    font-size: .82rem;
}
.ge-fact dd {
    margin-top: .5rem;
    font-family: 'Bodoni Moda', serif;
    font-size: 1.08rem;
    color: var(--cream);
}
.ge-fact dd small {
    display: block;
    margin-top: .3rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: .8rem;
    color: var(--muted);
}

.ge-countdown-wrap { padding: 2.6rem 0 1rem; text-align: center; }
.ge-countdown-wrap .ge-label { margin-bottom: 1.2rem; }
.ge-countdown,
body.golden-editorial .tpl-countdown {
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
}
body.golden-editorial .tpl-countdown-item {
    min-width: 4.2rem;
    padding: .95rem .7rem;
    border: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(165deg, rgba(201, 169, 98, .18), rgba(201, 169, 98, .05));
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
body.golden-editorial .tpl-countdown-value {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.7rem;
    color: var(--cream);
    line-height: 1;
}
body.golden-editorial .tpl-countdown-label {
    margin-top: .35rem;
    font-family: 'Jost', sans-serif;
    font-size: .5rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
}
html[dir="rtl"] body.golden-editorial .tpl-countdown-label {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: 0;
    text-transform: none;
    font-size: .68rem;
}
body.golden-editorial .tpl-countdown-done {
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--gold-bright);
}

/* ══════════════════════════
   Page rules between sections
   ══════════════════════════ */
.ge-pages { position: relative; z-index: 1; }
.ge-page-rule {
    display: flex;
    align-items: center;
    gap: .8rem;
    max-width: 26rem;
    margin: 3rem auto 1rem;
}
.ge-page-rule i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, .6), transparent);
}
.ge-page-rule b {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: .58rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}
html[dir="rtl"] .ge-page-rule b {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: .04em;
    text-transform: none;
    font-size: .82rem;
}

/* ══════════════════════════
   Shared sections — editorial dressing
   ══════════════════════════ */
body.golden-editorial .inv-if-kicker {
    font-family: 'Jost', sans-serif;
    color: var(--gold);
}
html[dir="rtl"] body.golden-editorial .inv-if-kicker { font-family: var(--inv-font-ar-body), serif; }
body.golden-editorial .inv-if-title {
    font-family: 'Bodoni Moda', serif;
    color: var(--cream);
}
html[dir="rtl"] body.golden-editorial .inv-if-title { font-family: var(--inv-font-ar-body), serif; }

body.golden-editorial .inv-if-welcome,
body.golden-editorial .inv-if-gratitude { border: 0; background: transparent; }
body.golden-editorial .inv-if-notes-body,
body.golden-editorial .inv-if-guestbook-entry {
    border: 0;
    border-radius: var(--radius-md);
    background: rgba(201, 169, 98, .08);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .2);
}

/* Programme as an editorial schedule */
body.golden-editorial .inv-if-programme-list {
    max-width: 34rem;
    margin-inline: auto;
    gap: 0;
    counter-reset: ge-prog;
}
body.golden-editorial .inv-if-programme-item,
html[dir="rtl"] body.golden-editorial .inv-if-programme-item {
    position: relative;
    grid-template-columns: 4.4rem 1fr;
    align-items: baseline;
    gap: .9rem;
    padding: 1.05rem .3rem;
    border: 0;
    border-bottom: 1px solid rgba(201, 169, 98, .22);
    background: none;
    text-align: start;
    counter-increment: ge-prog;
}
body.golden-editorial .inv-if-programme-time {
    font-family: 'Bodoni Moda', serif;
    font-size: .95rem;
    letter-spacing: .02em;
    color: var(--gold-bright);
    text-align: start;
}
html[dir="rtl"] body.golden-editorial .inv-if-programme-item .inv-if-programme-time { text-align: start; }
body.golden-editorial .inv-if-programme-name { font-size: 1.05rem; color: var(--cream); }
body.golden-editorial .inv-if-programme-desc { font-size: .88rem; color: var(--muted); }

/* Photo essay — filmstrip frames */
body.golden-editorial .inv-if-filmstrip-frame {
    border-radius: .9rem;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .3), 0 0 0 1px rgba(201, 169, 98, .35);
}

/* Language pill on a dark page */
body.golden-editorial .inv-if-lang {
    background: rgba(16, 32, 24, .92);
    border-color: rgba(201, 169, 98, .45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
body.golden-editorial .inv-if-lang a { color: var(--cream); }
body.golden-editorial .inv-if-lang a.is-active {
    background: var(--gold);
    color: var(--ink);
}

body.golden-editorial .inv-if-map-frame {
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3), 0 0 0 1px rgba(201, 169, 98, .35);
}
body.golden-editorial .inv-if-showcase-nav {
    background: rgba(16, 32, 24, .88);
    border-color: rgba(201, 169, 98, .5);
    color: var(--gold-bright);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}
body.golden-editorial .inv-if-showcase-nav:hover { background: rgba(22, 40, 30, .95); }

/* ══════════════════════════
   Colophon
   ══════════════════════════ */
.ge-colophon {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
    padding: 2.6rem 1.25rem 4rem;
    text-align: center;
    border-top: 1px solid rgba(201, 169, 98, .28);
    background: linear-gradient(180deg, transparent, rgba(10, 18, 16, .6));
}
.ge-footer-brand {
    font-family: 'Jost', sans-serif;
    font-size: .58rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--gold);
}
html[dir="rtl"] .ge-footer-brand {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: .08em;
    text-transform: none;
    font-size: .84rem;
}
.ge-colophon-grid {
    margin: 1.6rem auto 0;
    max-width: 30rem;
    display: grid;
    gap: .7rem;
    text-align: start;
}
.ge-colophon-grid dt {
    font-family: 'Jost', sans-serif;
    font-size: .52rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--muted);
}
html[dir="rtl"] .ge-colophon-grid dt {
    font-family: var(--inv-font-ar-body), serif;
    letter-spacing: .04em;
    text-transform: none;
    font-size: .76rem;
}
.ge-colophon-grid dd {
    margin-top: .2rem;
    font-size: .92rem;
    color: var(--cream);
    padding-bottom: .6rem;
    border-bottom: 1px dotted rgba(201, 169, 98, .3);
}
.ge-colophon-names {
    margin-top: 1.6rem;
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gold-bright);
}
html[dir="rtl"] .ge-colophon-names { font-style: normal; }

/* ══════════════════════════
   Wider screens
   ══════════════════════════ */
@media (min-width: 700px) {
    .ge-spread { margin: 3rem auto; max-width: 46rem; padding: 3.2rem 2.6rem 3.4rem; }
    .ge-facts { grid-template-columns: repeat(2, 1fr); }
    .ge-fact--wide { grid-column: 1 / -1; }
    .ge-colophon-grid { grid-template-columns: repeat(3, 1fr); }
    .ge-cover-masthead { margin: 1.4rem 2rem 0; font-size: .6rem; }
}

@media (min-width: 900px) {
    .ge-spread-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }
    .ge-spread-figure { margin: 0; }
    .ge-pullquote { grid-column: 1 / -1; }
    .ge-spread-body > .ge-cta { grid-column: 1 / -1; justify-self: center; }
}

/* 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; }
    .gate-issue,
    .ge-corner,
    .ge-splash-link,
    .ge-spread-figure img,
    .ge-splash-title { animation: none !important; }
    html { scroll-behavior: auto; }
}
