/* ================================================
   Wedding Heirloom — Standard Wedding Theme
   Palette: cream · terracotta · deep olive · blush-gold
   Fonts:   Great Vibes (script) + Cormorant Garamond (serif) + Montserrat (labels)
   Style:   Heritage keepsake — hairline rules, a small star mark, a wax-sealed
            envelope intro, a full-bleed serif-and-script hero. Cloned from
            partyinvite.asimpleinvite.com ("Heritage Theme").
   ================================================ */

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

:root {
    /* Two customer-facing swappable roles (config/themes.php 'colors' =>
       'palette', theme_colors['accent'|'section_bg']) — a real event overrides
       these via an inline :root{--accent:…;--dark:…} (see index.blade.php),
       the demo page via <x-demo-color-picker>. Every terracotta-family value
       below derives from --accent (buttons, hairlines, section marks, story/
       program markers, the shared dress-code/good-to-know/accommodation/
       audio-player/gallery components); the dark Day-Program/footer ground
       derives from --dark. Cream/paper/ink stay fixed neutrals either way. */
    --accent: #c68a52;
    --dark: #4a4d2e;

    --wh-cream:        #f6f1e1;   /* even alt sections + page ground */
    --wh-paper:        #fffdf7;   /* odd alt sections (near-white warm) */
    --wh-terracotta:   var(--accent);
    --wh-terracotta-deep: color-mix(in srgb, var(--accent) 78%, black);
    --wh-olive:        var(--dark);   /* dark sections: Day Program + footer */
    --wh-olive-deep:   color-mix(in srgb, var(--dark) 78%, black);
    --wh-gold:         #e7c4a0;   /* text/marks on the dark ground — fixed for reliable contrast against any pick */
    --wh-ink:          #2b251f;
    --wh-muted:        #7a6f5e;
    --wh-line:         rgba(43, 37, 31, .16);

    --accent-color:    var(--accent);   /* shared-component hook (dress-code/good-to-know/accommodation/audio-player/gallery-grid/story-timeline) */
    --radius:          8px;
    --btn-radius:      2px;

    --ff-script: 'Great Vibes', 'Segoe Script', cursive;
    --ff-serif:  'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --ff-sans:   'Montserrat', 'Lato', system-ui, sans-serif;

    --card-shadow:    0 1px 2px rgba(43, 37, 31, .05), 0 12px 34px rgba(43, 37, 31, .10);
    --card-shadow-sm: 0 1px 2px rgba(43, 37, 31, .04), 0 8px 22px rgba(43, 37, 31, .07);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-serif);
    font-size: 1.05rem;
    color: var(--wh-ink);
    background: var(--wh-cream);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.wh-scroll-lock {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--wh-terracotta-deep); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--wh-olive); }

.wh-page { overflow-x: hidden; position: relative; }

/* ── Containers ─────────────────────────────── */
.wh-container     { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.wh-container--sm { max-width: 640px; }

/* ── Alternating section grounds ─────────────
   Computed from what actually renders (nth-child on real DOM nodes), so the
   rhythm survives any section hidden by plan tier / visibility toggle / missing
   data. Never hardcode a per-section background. */
.wh-alt-sections > * { background: var(--wh-paper); }
.wh-alt-sections > *:nth-child(even) { background: var(--wh-cream); }

/* ── Shared section header (eyebrow + script title + hairline star rule) ── */
.wh-eyebrow {
    font-family: var(--ff-sans);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--wh-terracotta-deep);
    text-align: center;
    margin-bottom: .5rem;
}

.wh-section-title {
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 3.9rem);
    line-height: 1.15;
    color: var(--wh-olive);
    text-align: center;
}

/* Hairline rule with a centred star — the reference's recurring divider mark. */
.wh-title-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    width: min(15rem, 60%);
    margin: 1rem auto 0;
    color: var(--wh-terracotta);
}
.wh-title-rule::before,
.wh-title-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: .5;
}
.wh-title-rule i {
    font-style: normal;
    font-size: .85rem;
    line-height: 1;
}
.wh-title-rule i::before { content: '\2726'; }  /* ✦ */

/* ── Buttons ─────────────────────────────────── */
.wh-btn {
    display: inline-block;
    background: var(--wh-terracotta);
    color: #fff !important;
    font-family: var(--ff-sans);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    padding: .95rem 2.4rem;
    border: 1px solid var(--wh-terracotta);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.wh-btn:hover {
    background: var(--wh-terracotta-deep);
    border-color: var(--wh-terracotta-deep);
    color: #fff !important;
    transform: translateY(-1px);
}
.wh-btn--ghost {
    background: transparent;
    color: var(--wh-olive) !important;
    border-color: color-mix(in srgb, var(--wh-olive) 45%, transparent);
}
.wh-btn--ghost:hover {
    background: color-mix(in srgb, var(--wh-olive) 8%, transparent);
    color: var(--wh-olive) !important;
    border-color: var(--wh-olive);
}

/* ================================================
   ENVELOPE INTRO
   Cream card with a thin terracotta frame + wax seal, opening to the page.
   Hidden entirely with JS off (see .wh-has-envelope) so the invitation is
   always reachable.
   ================================================ */
.wh-envelope {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6vh 6vw;
    background: linear-gradient(165deg, #faf6ec 0%, #f3ebd7 55%, #ece0c6 100%);
    cursor: pointer;
    transition: opacity .8s ease .35s, visibility .8s ease .35s;
}
.wh-has-envelope .wh-envelope { display: flex; }
.wh-envelope.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

/* Thin double frame hugging the screen edge */
.wh-envelope::before {
    content: '';
    position: absolute;
    inset: 1.1rem;
    border: 1px solid color-mix(in srgb, var(--wh-terracotta) 45%, transparent);
    box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--wh-terracotta) 16%, transparent);
    pointer-events: none;
}

.wh-envelope__stage {
    position: relative;
    width: min(430px, 86vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    animation: wh-rise .8s ease both;
}

.wh-envelope__card {
    position: relative;
    width: 100%;
    aspect-ratio: 100 / 68;
    background: linear-gradient(160deg, #fffdf6 0%, #f8f1e1 100%);
    border: 1px solid color-mix(in srgb, var(--wh-terracotta) 35%, transparent);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.75rem 1.5rem;
    transition: transform 1s cubic-bezier(.3, 0, .2, 1), opacity .8s ease;
}
.wh-envelope__card::before {
    content: '';
    position: absolute;
    inset: .5rem;
    border: 1px solid color-mix(in srgb, var(--wh-terracotta) 30%, transparent);
    pointer-events: none;
}
.wh-envelope.is-open .wh-envelope__card {
    transform: translateY(-8px) scale(1.03);
    opacity: 0;
}

.wh-envelope__kicker {
    font-family: var(--ff-sans);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--wh-terracotta-deep);
    margin-bottom: .35rem;
}
.wh-envelope__names {
    font-family: var(--ff-script);
    font-size: clamp(2.1rem, 8vw, 2.9rem);
    line-height: 1.05;
    color: var(--wh-olive);
}
.wh-envelope__stars {
    font-size: .7rem;
    letter-spacing: .5em;
    color: var(--wh-terracotta);
    margin: .5rem 0 .35rem;
}
.wh-envelope__date {
    font-family: var(--ff-sans);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--wh-muted);
}

.wh-envelope__seal {
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 60%, white), var(--wh-terracotta) 45%, var(--wh-terracotta-deep) 100%);
    box-shadow: 0 6px 16px rgba(90, 55, 30, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fdf3e6;
    font-family: var(--ff-script);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform .7s ease, opacity .5s ease;
}
.wh-envelope__seal::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px dashed rgba(253, 243, 230, .55);
    border-radius: 50%;
}
.wh-envelope.is-open .wh-envelope__seal {
    transform: translateX(-50%) scale(.6);
    opacity: 0;
}

.wh-envelope__prompt {
    font-family: var(--ff-sans);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--wh-terracotta-deep);
    animation: wh-pulse 2.6s ease-in-out infinite;
}

@keyframes wh-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wh-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ================================================
   FLOATING TOPBAR
   ================================================ */
.wh-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.4rem;
    background: transparent;
    transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
}
/* Desktop only — on mobile the bar stays transparent unconditionally (the
   hamburger toggle carries its own dark-translucent backdrop), matching
   wedding-neela. */
@media (min-width: 761px) {
    .wh-topbar.scrolled {
        background: color-mix(in srgb, var(--wh-paper) 92%, transparent);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 1px 0 var(--wh-line);
    }
}

.wh-topbar__brand {
    font-family: var(--ff-script);
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
    white-space: nowrap;
    transition: color .3s ease, text-shadow .3s ease;
}
.wh-topbar.scrolled .wh-topbar__brand {
    color: var(--wh-olive);
    text-shadow: none;
}

.wh-topbar__links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-left: auto;
}
.wh-topbar__links a {
    font-family: var(--ff-sans);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
    padding-bottom: .2rem;
    position: relative;
}
.wh-topbar.scrolled .wh-topbar__links a {
    color: var(--wh-olive);
    text-shadow: none;
}
.wh-topbar__links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}
.wh-topbar__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.wh-topbar__toggle { display: none; }

/* Demo Basic/Standard switch + fabs — shared look from layouts/theme.blade.php,
   positioned here at opposite bottom corners. */
.dpb-switch, .dpb-fab { position: fixed; bottom: 1rem; z-index: 9999; }
.dpb-fab { right: 1rem; }
.dpb-close { right: 4rem; }
.dpb-switch { left: 1rem; display: flex; align-items: center; height: 2.5rem; padding: 0 .25rem; }
.dpb-switch a { display: inline-flex; align-items: center; height: 2rem; padding: 0 .9rem; font-size: 12px; }

/* ================================================
   HERO — full-bleed photo slideshow, centred script names.
   Skill hero pattern B: graduated scrim + white text + shadow + frosted chips,
   so contrast never depends on a host's uploaded photo.
   ================================================ */
.wh-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 5rem;
    overflow: hidden;
    color: #fff;
    /* Base ground so hero text stays legible even before/without photos. */
    background: linear-gradient(160deg, var(--wh-olive) 0%, var(--wh-olive-deep) 100%);
}

.wh-hero .hero-swiper { z-index: 0; }
.wh-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(30, 24, 16, .28) 0%, rgba(30, 24, 16, .46) 45%, rgba(24, 20, 12, .7) 100%);
    pointer-events: none;
}

.wh-hero__inner {
    position: relative;
    z-index: 2;
    animation: wh-rise 1s ease both;
}

.wh-hero__eyebrow {
    font-family: var(--ff-sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .38em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

.wh-hero__names {
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: clamp(3.4rem, 12vw, 6.5rem);
    line-height: 1.05;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .4);
}
.wh-hero__amp {
    display: inline-block;
    margin: 0 .1em;
    font-size: .8em;
    opacity: .9;
}

.wh-hero__flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.1rem auto 1.4rem;
    width: min(20rem, 74vw);
}
.wh-hero__flourish::before,
.wh-hero__flourish::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, .8);
}
.wh-hero__flourish span {
    font-size: 1rem;
    line-height: 1;
    color: var(--wh-gold);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.wh-hero__date {
    display: inline-block;
    font-family: var(--ff-sans);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    padding: .5rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wh-hero__meta {
    margin-top: .9rem;
    font-family: var(--ff-sans);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.wh-hero__cta {
    margin-top: 2rem;
    display: inline-block;
    font-family: var(--ff-sans);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .6);
    padding-bottom: .3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.wh-hero__cta:hover { color: var(--wh-gold); }

.wh-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    z-index: 2;
    width: 1.4rem;
    height: 1.4rem;
    color: rgba(255, 255, 255, .85);
    animation: wh-bob 1.8s ease-in-out infinite;
}
@keyframes wh-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Hero → first section seam (shape divider partial) */
.wh-shape {
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}
.wh-shape-bottom { bottom: -1px; }
.wh-shape-top { top: -1px; }
.wh-shape[data-negative="true"].wh-shape-bottom { transform: rotate(180deg); }
.wh-shape svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 44px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* ================================================
   NOTE / MESSAGE
   ================================================ */
.wh-note {
    padding: 5.5rem 1.25rem;
    text-align: center;
    background: var(--wh-paper);
}
.wh-note__card {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    background: var(--wh-paper);
    border: 1px solid var(--wh-line);
    box-shadow: var(--card-shadow-sm);
    padding: 3.25rem 2.5rem 2.75rem;
}
.wh-note__card::before {
    content: '';
    position: absolute;
    inset: .5rem;
    border: 1px solid color-mix(in srgb, var(--wh-terracotta) 25%, transparent);
    pointer-events: none;
}
.wh-note__text {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--wh-ink);
    white-space: pre-line;
}
.wh-note__sig {
    margin-top: 1.5rem;
    font-family: var(--ff-script);
    font-size: 1.9rem;
    color: var(--wh-terracotta-deep);
}

/* ================================================
   Generic section shell (padding + relative for slot decorations)
   ================================================ */
.wh-couple, .wh-countdown, .wh-audio, .wh-story, .wh-wedding-party, .wh-gallery, .wh-program, .wh-dress-code,
.wh-good-to-know, .wh-location, .wh-accommodation, .wh-guest-wall, .wh-gallery-upload,
.wh-album, .wh-closing, .wh-rsvp {
    position: relative;
    padding: 5.5rem 1.25rem;
    text-align: center;
}

/* ── Meet the Couple ─────────────────────────────
   Two heirloom-framed portraits (thin terracotta double-rule) with a script
   name + uppercase role under each, an ampersand between. Rendered only when a
   bride/groom portrait has been uploaded. */
.wh-couple__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 5vw, 4rem);
    margin-top: 2.75rem;
}
.wh-couple__person {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 1 20rem;
    margin: 0;
}
.wh-couple__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--wh-paper);
    padding: .55rem;
    border: 1px solid color-mix(in srgb, var(--wh-terracotta) 40%, transparent);
    box-shadow: var(--card-shadow-sm);
}
.wh-couple__frame::before {
    content: '';
    position: absolute;
    inset: .28rem;
    z-index: 1;
    border: 1px solid color-mix(in srgb, var(--wh-terracotta) 30%, transparent);
    pointer-events: none;
}
.wh-couple__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wh-couple__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--ff-script);
    font-size: 3.5rem;
    color: color-mix(in srgb, var(--wh-terracotta) 55%, transparent);
    background: color-mix(in srgb, var(--wh-terracotta) 6%, transparent);
}
.wh-couple__person figcaption {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin-top: 1rem;
}
.wh-couple__role {
    font-family: var(--ff-sans);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--wh-terracotta-deep);
}
.wh-couple__name {
    font-family: var(--ff-script);
    font-size: 1.9rem;
    line-height: 1.1;
    color: var(--wh-olive);
}
.wh-couple__amp {
    align-self: center;
    font-family: var(--ff-script);
    font-size: 2.6rem;
    color: var(--wh-terracotta);
    /* nudge up so it lands on the portraits' vertical centre, not the captions
       below them */
    margin-bottom: 1.75rem;
}
@media (max-width: 620px) {
    .wh-couple__amp { display: none; }
    .wh-couple__person { flex-basis: min(20rem, 100%); }
}

/* ── Countdown ───────────────────────────────── */
.wh-countdown__timer {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem;
}
.wh-countdown__unit {
    min-width: 92px;
    padding: 1.4rem 1.1rem;
    background: var(--wh-paper);
    border: 1px solid var(--wh-line);
    box-shadow: var(--card-shadow-sm);
}
.wh-countdown__number {
    display: block;
    font-family: var(--ff-serif);
    font-weight: 600;
    font-size: clamp(2.1rem, 6vw, 3.1rem);
    line-height: 1;
    color: var(--wh-terracotta-deep);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}
.wh-countdown__label {
    display: block;
    margin-top: .45rem;
    font-family: var(--ff-sans);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--wh-muted);
}

/* ── Audio player reskin ─────────────────────── */
.wh-audio .audio-player {
    max-width: 460px;
    margin: 1.75rem auto 0;
}
.wh-audio .audio-player__toggle,
.audio-player__fixed-toggle { border-radius: 50%; }

/* ================================================
   OUR STORY — shared <x-story-timeline> reskin.
   Its native layout (centred spine, alternating cards, dot markers) already
   matches the reference; we only restyle the card + marker.
   ================================================ */
.wh-story .st-intro {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--wh-muted);
    max-width: 34rem;
    margin: 1rem auto 0;
}
.wh-story .st-timeline {
    margin-top: 2.75rem;
    max-width: 56rem;   /* wider than the shared 42rem — matches the reference's max-w-4xl */
}
.wh-story .st-timeline::before {
    background: color-mix(in srgb, var(--wh-terracotta) 40%, transparent);
    width: 1px;
}
.wh-story .st-item::before {
    width: 9px;
    height: 9px;
    background: var(--wh-terracotta);
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--wh-terracotta) 14%, transparent);
    border-radius: 0;
}
@media (min-width: 700px) {
    .wh-story .st-item:nth-child(odd)::before,
    .wh-story .st-item:nth-child(even)::before { transform: translateX(-50%) rotate(45deg); }
}
/* Editorial, box-free milestones — no card frame, just text on the section
   ground with the spine + diamond markers. */
.wh-story .st-item__card {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}
.wh-story .st-item__photo { margin: 0 0 1rem; }
.wh-story .st-item__period {
    font-family: var(--ff-sans);
    font-size: .62rem;
    letter-spacing: .2em;
    color: var(--wh-terracotta-deep);
}
.wh-story .st-item__title {
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 1.15;
    color: var(--wh-olive);
    margin: .1rem 0 .4rem;
}
.wh-story .st-item__desc {
    font-family: var(--ff-serif);
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--wh-ink);
    opacity: .9;
}
.wh-story .st-item__photo img { border-radius: 0; }

/* ── Gallery — shared <x-gallery-grid> reskin ── */
.wh-gallery .gg-item {
    border: 1px solid var(--wh-line);
    border-radius: 0;
}
.wh-gallery .gg-grid { gap: .75rem; }

/* ================================================
   DAY PROGRAM — custom <x-wedding-heritage-program>
   A faithful take on the reference's "Day Program": a dark-olive section, a
   horizontal row of columns each with a gold time pill, a circular icon
   medallion threaded on a single hairline, a serif title and a location line.
   Below 780px it collapses to a centred vertical stack.
   ================================================ */
.wh-program {
    background: var(--wh-olive) !important;
    color: var(--wh-gold);
}
.wh-program .wh-eyebrow { color: var(--wh-gold); opacity: .8; }
.wh-program .wh-section-title { color: #fff; }
.wh-program .wh-title-rule { color: var(--wh-gold); }

.wh-prog {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--wh-prog-n, 5), minmax(0, 1fr));
    gap: 1.25rem .5rem;
    margin-top: 3rem;
}

/* One continuous hairline running from the first medallion centre to the last.
   It is a single element (not a per-medallion pseudo) so an individual
   medallion's :hover transform can't change how it paints; each opaque olive
   medallion sits on top and masks its crossing, giving the "threaded" look.
   `top` is the medallion row's vertical centre: pill height (0.64 font + 0.64
   padding, line-height 1) + row gap (0.65) + medallion radius (1.75). The
   left/right insets are half a column each, so the line stops at the outer
   medallion centres. */
.wh-prog::before {
    content: '';
    position: absolute;
    top: 3.7rem;
    left: calc(50% / var(--wh-prog-n, 5));
    right: calc(50% / var(--wh-prog-n, 5));
    height: 1px;
    background: rgba(255, 255, 255, .22);
}
/* Nothing to connect when there's a single item. */
.wh-prog:has(> .wh-prog__item:only-child)::before { display: none; }

.wh-prog__item {
    position: relative;   /* paints after .wh-prog::before, so the line sits behind */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .65rem;
}

.wh-prog__time {
    font-family: var(--ff-sans);
    font-size: .64rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .12em;
    color: var(--wh-olive);
    background: var(--wh-gold);
    padding: .32rem .85rem;
    border-radius: 999px;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
    transition: background .25s ease, color .25s ease;
}

.wh-prog__medallion {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--wh-olive);
    border: 2px solid rgba(255, 255, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wh-gold);
    transition: border-color .25s ease, transform .25s ease;
}
.wh-prog__medallion svg { width: 1.4rem; height: 1.4rem; }

/* Serif title, matching the reference's "Day Program" event labels (not the
   script used elsewhere in this theme). */
.wh-prog__label {
    font-family: var(--ff-serif);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.3;
    color: #fff;
}
.wh-prog__loc {
    font-family: var(--ff-serif);
    font-size: .92rem;
    color: rgba(231, 196, 160, .78);
}
.wh-prog__dir {
    font-family: var(--ff-sans);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--wh-gold);
    border-bottom: 1px solid rgba(231, 196, 160, .4);
    padding-bottom: .1rem;
}
.wh-prog__item:hover .wh-prog__time { background: var(--wh-terracotta); color: #fff; }
.wh-prog__item:hover .wh-prog__medallion { border-color: var(--wh-gold); transform: scale(1.08); }

@media (max-width: 780px) {
    .wh-prog {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 20rem;
        margin-inline: auto;
    }
    /* Plain vertical stack on mobile (as in the reference) — the threaded
       hairline only makes sense across the horizontal row, so drop it here
       rather than run a line down through the centred labels. */
    .wh-prog::before { display: none; }
}

/* ================================================
   DRESS CODE / GOOD TO KNOW / ACCOMMODATION — shared components
   Scoped with two classes so they beat the components' own pushed rules
   (equal-specificity source order otherwise lets the component win).
   ================================================ */
.wh-alt-sections .wh-dress-code,
.wh-alt-sections .wh-good-to-know,
.wh-alt-sections .wh-accommodation { padding: 5.5rem 1.25rem; }

.wh-dress-code .dc-note {
    font-family: var(--ff-serif);
    font-size: 1.1rem;
    color: var(--wh-ink);
    opacity: .9;
}
.wh-dress-code .dc-swatch {
    border-radius: 0;
    border: 1px solid var(--wh-line);
}

.wh-good-to-know .gtk-grid { margin-top: 2rem; }
.wh-good-to-know .gtk-card {
    background: var(--wh-paper);
    border: 1px solid var(--wh-line);
    box-shadow: var(--card-shadow-sm);
    border-radius: 0;
}
.wh-good-to-know .gtk-card__title {
    font-family: var(--ff-sans);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--wh-olive);
}
.wh-good-to-know .gtk-card__text { font-family: var(--ff-serif); font-size: 1rem; }
.wh-good-to-know .gtk-card__icon { color: var(--wh-terracotta); }

.wh-accommodation .accom-grid { margin-top: 2rem; }
.wh-accommodation .accom-card {
    background: var(--wh-paper);
    border: 1px solid var(--wh-line);
    box-shadow: var(--card-shadow-sm);
    border-radius: 0;
}
.wh-accommodation .accom-card__name {
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: 1.55rem;
    color: var(--wh-olive);
}
.wh-accommodation .accom-card__address,
.wh-accommodation .accom-card__note { font-family: var(--ff-serif); }
.wh-accommodation .accom-card__icon,
.wh-accommodation .accom-card__link { color: var(--wh-terracotta-deep); }

/* ── Location / map ──────────────────────────── */
.wh-location__address {
    font-family: var(--ff-serif);
    font-size: 1.05rem;
    color: var(--wh-muted);
    margin: .75rem 0 2rem;
}
.wh-map {
    max-width: 820px;
    margin: 0 auto 1.75rem;
    border: 1px solid var(--wh-line);
    box-shadow: var(--card-shadow-sm);
    overflow: hidden;
}
.wh-map iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ── Guest wall — shared <x-guest-wall> reskin ── */
/* Always three across (the shared component's default is auto-fit). Falls back
   to two centred for exactly two messages, one for one (component's own
   .gw-grid--single), and a single column on mobile. */
.wh-guest-wall .gw-grid:not(.gw-grid--single) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wh-guest-wall .gw-grid:has(> .gw-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 22rem));
    justify-content: center;
}
.wh-guest-wall .gw-grid { margin-top: 2rem; }
.wh-guest-wall .gw-card {
    background: var(--wh-paper);
    border: 1px solid var(--wh-line);
    box-shadow: var(--card-shadow-sm);
    border-radius: 0;
    text-align: center;
}
.wh-guest-wall .gw-card__quote { font-family: var(--ff-script); color: var(--wh-terracotta); opacity: .6; }
.wh-guest-wall .gw-card__text { font-family: var(--ff-serif); font-style: italic; font-size: 1.05rem; }
.wh-guest-wall .gw-card__name {
    font-family: var(--ff-sans);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--wh-terracotta-deep);
}

/* ── Guest photo upload / full-gallery reskin ── */
.wh-gallery-upload .gu-form {
    background: var(--wh-paper);
    border: 1px solid var(--wh-line);
    box-shadow: var(--card-shadow-sm);
    border-radius: var(--radius);
}

/* ── Album ───────────────────────────────────── */
.wh-album__sub { font-family: var(--ff-serif); color: var(--wh-muted); margin: .75rem 0 2rem; }

/* ── Closing ─────────────────────────────────── */
.wh-closing { padding: 4rem 1.25rem 3rem; }
.wh-closing__text {
    font-family: var(--ff-script);
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    color: var(--wh-terracotta-deep);
}

/* ================================================
   RSVP — custom <x-wedding-heritage-rsvp>
   Fully theme-owned (not the shared <x-rsvp-form>), so every class below is
   this component's own — nothing here is inherited from a shared component's
   pushed styles.
   ================================================ */
.wh-rsvp { padding: 4rem 1.25rem 6rem; }

/* Card frame — the same thin terracotta double-rule used on the note card,
   the envelope and the couple portraits, so the RSVP reads as one more
   heirloom keepsake rather than a generic form panel. */
.wh-rsvp__card {
    position: relative;
    max-width: 34rem;
    margin: 2.75rem auto 0;
    background: var(--wh-paper);
    border: 1px solid color-mix(in srgb, var(--wh-terracotta) 35%, transparent);
    box-shadow: var(--card-shadow-sm);
    padding: 2.25rem 2rem;
    text-align: left;
}
.wh-rsvp__card::before {
    content: '';
    position: absolute;
    inset: .45rem;
    border: 1px solid color-mix(in srgb, var(--wh-terracotta) 25%, transparent);
    pointer-events: none;
}

/* ---- Deadline banner ---- */
.rsvp-deadline {
    margin-bottom: 1.75rem;
    padding: .85rem 1.1rem;
    text-align: center;
    font-family: var(--ff-serif);
    font-size: .9rem;
    line-height: 1.6;
    color: var(--wh-ink);
    background: color-mix(in srgb, var(--wh-terracotta) 8%, transparent);
}
.rsvp-deadline p { margin: 0; }
.rsvp-deadline__days { font-weight: 700; color: var(--wh-terracotta-deep); }
.rsvp-deadline--passed {
    color: #a03d33;
    background: color-mix(in srgb, #a03d33 10%, transparent);
}
.rsvp-deadline--passed .rsvp-deadline__days { color: #a03d33; }

/* ---- Thank you / alerts ---- */
.rsvp-thank-you {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    background: color-mix(in srgb, var(--wh-olive) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--wh-olive) 22%, transparent);
}
.rsvp-thank-you__text {
    margin: 0;
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--wh-olive);
}
.rsvp-thank-you--declined {
    background: color-mix(in srgb, currentColor 5%, transparent);
    border-color: var(--wh-line);
}
.rsvp-thank-you--declined .rsvp-thank-you__text { color: var(--wh-ink); opacity: .85; }

.rsvp-notme { margin: 0 0 1.5rem; text-align: center; font-size: .82rem; }
.rsvp-notme a {
    color: var(--wh-terracotta-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rsvp-alert {
    padding: .9rem 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--ff-serif);
    font-size: .92rem;
    text-align: center;
}
.rsvp-alert--success {
    background: color-mix(in srgb, var(--wh-olive) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--wh-olive) 25%, transparent);
    color: var(--wh-olive);
}
.rsvp-alert--error {
    background: color-mix(in srgb, #a03d33 8%, transparent);
    border: 1px solid color-mix(in srgb, #a03d33 25%, transparent);
    color: #a03d33;
}
.rsvp-notme-note {
    background: color-mix(in srgb, currentColor 5%, transparent);
    border: 1px solid var(--wh-line);
    color: var(--wh-ink);
    opacity: .9;
}

/* ---- Reply choice ---- */
.wh-rsvp__choices {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.75rem;
}
.wh-rsvp__choice {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .85rem .75rem;
    font-family: var(--ff-sans);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: center;
    color: var(--wh-ink);
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--wh-ink) 20%, transparent);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.wh-rsvp__choice-mark { font-size: .8em; color: var(--wh-terracotta); }
.wh-rsvp__choice:hover { border-color: var(--wh-terracotta); }
.wh-rsvp__choice--going.is-active {
    background: var(--wh-terracotta);
    border-color: var(--wh-terracotta);
    color: #fff;
}
.wh-rsvp__choice--going.is-active .wh-rsvp__choice-mark { color: #fff; }
.wh-rsvp__choice--decline.is-active {
    background: color-mix(in srgb, var(--wh-olive) 8%, transparent);
    border-color: var(--wh-olive);
    color: var(--wh-olive);
}

/* ---- Details / fields ---- */
.wh-rsvp__details { animation: wh-rsvp-slide .25s ease-out; }
@keyframes wh-rsvp-slide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form__group { margin-bottom: 1.25rem; }
.form__group label {
    display: block;
    margin-bottom: .45rem;
    font-family: var(--ff-sans);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--wh-muted);
}
.form__label-text { font-family: var(--ff-serif); font-size: 1rem; margin: 0; }

.form__group input[type="text"],
.form__group input[type="email"],
.form__group select,
.form__group textarea {
    width: 100%;
    padding: .75rem .9rem;
    font-family: var(--ff-serif);
    font-size: 1rem;
    color: var(--wh-ink);
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--wh-ink) 20%, transparent);
    border-radius: 2px;
    transition: border-color .2s ease;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--wh-terracotta);
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--wh-muted); opacity: .7; }
.form__group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a6f5e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    padding-right: 2rem;
}
.form__error { display: block; margin-top: .3rem; font-size: .78rem; color: #a03d33; }

.rsvp-fully-booked {
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
    text-align: center;
    font-family: var(--ff-serif);
    font-size: .9rem;
    background: color-mix(in srgb, var(--wh-terracotta) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--wh-terracotta) 25%, transparent);
}

.wh-rsvp__submit { width: 100%; margin-top: .25rem; }

.rsvp-recaptcha-notice {
    max-width: 34rem;
    margin: 1.25rem auto 0;
    font-family: var(--ff-sans);
    font-size: .7rem;
    line-height: 1.6;
    text-align: center;
    color: var(--wh-muted);
}
.rsvp-recaptcha-notice a { text-decoration: underline; }

@media (max-width: 480px) {
    .wh-rsvp__card { padding: 1.75rem 1.35rem; }
    .wh-rsvp__choices { flex-direction: column; }
}

/* ================================================
   FOOTER
   ================================================ */
.wh-footer {
    position: relative;
    background: var(--wh-olive-deep);
    color: rgba(231, 196, 160, .65);
    text-align: center;
    padding: 4rem 1.5rem 3.25rem;
    font-family: var(--ff-serif);
}
.wh-footer__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    width: min(14rem, 60%);
    margin: 0 auto 1.25rem;
    color: rgba(231, 196, 160, .5);
}
.wh-footer__mark::before,
.wh-footer__mark::after { content: ''; flex: 1; height: 1px; background: currentColor; }
.wh-footer__mark span { font-size: .8rem; line-height: 1; }
.wh-footer__names {
    font-family: var(--ff-script);
    font-size: 2.4rem;
    line-height: 1.1;
    color: #fff;
}
.wh-footer__date {
    font-family: var(--ff-sans);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    margin-top: .35rem;
}
.wh-footer__signoff {
    max-width: 24rem;
    margin: 1.1rem auto 0;
    font-style: italic;
    color: rgba(231, 196, 160, .8);
}
.wh-footer__cal {
    margin-top: 1.75rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.wh-footer__cal svg { width: 1rem; height: 1rem; }
/* Ghost button on the dark olive footer: the default ghost colour (--wh-olive)
   would vanish into the ground — flip to gold on gold-tinted border. */
.wh-footer__cal.wh-btn--ghost {
    color: var(--wh-gold) !important;
    border-color: rgba(231, 196, 160, .4);
}
.wh-footer__cal.wh-btn--ghost:hover {
    background: rgba(231, 196, 160, .1);
    color: #fff !important;
    border-color: var(--wh-gold);
}
.wh-footer__hash {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(231, 196, 160, .2);
    font-family: var(--ff-sans);
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(231, 196, 160, .4);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 760px) {
    body { font-size: 1rem; }

    /* No brand on mobile, bar pinned left with just the hamburger — as in
       wedding-neela. */
    .wh-topbar { padding: .8rem 1rem; justify-content: flex-start; }
    .wh-topbar__brand { display: none; }

    .wh-topbar__toggle {
        order: -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 2.9rem;
        height: 2.9rem;
        padding: 0;
        border: 1.5px solid rgba(255, 255, 255, .3);
        border-radius: 50%;
        background: rgba(43, 37, 31, .4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        cursor: pointer;
    }
    .wh-topbar__toggle span {
        width: 18px;
        height: 2px;
        border-radius: 1px;
        background: #fff;
        transition: transform .25s ease, opacity .2s ease;
    }
    .wh-topbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .wh-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .wh-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .wh-topbar__links {
        position: absolute;
        top: calc(100% + .5rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: .2rem;
        margin-left: 0;
        padding: .5rem;
        background: color-mix(in srgb, var(--wh-paper) 98%, transparent);
        border: 1px solid var(--wh-line);
        box-shadow: 0 12px 32px rgba(43, 37, 31, .16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .wh-topbar__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .wh-topbar__links a {
        color: var(--wh-olive);
        text-shadow: none;
        text-align: center;
        padding: .65rem 1rem;
    }
    .wh-topbar__links a::after { display: none; }
    .wh-topbar__links a:hover { background: color-mix(in srgb, var(--wh-terracotta) 10%, transparent); }

    .wh-couple, .wh-countdown, .wh-audio, .wh-story, .wh-wedding-party, .wh-program, .wh-dress-code, .wh-good-to-know,
    .wh-location, .wh-accommodation, .wh-guest-wall, .wh-gallery-upload, .wh-album,
    .wh-closing, .wh-rsvp, .wh-note,
    .wh-alt-sections .wh-dress-code,
    .wh-alt-sections .wh-good-to-know,
    .wh-alt-sections .wh-accommodation { padding-left: 1rem; padding-right: 1rem; }

    .wh-countdown__timer {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .5rem;
        max-width: 26rem;
        margin-inline: auto;
    }
    .wh-countdown__unit { min-width: 0; padding: 1rem .25rem; }
    .wh-countdown__number { font-size: clamp(1.7rem, 8vw, 2.4rem); }
    .wh-countdown__label { font-size: .55rem; letter-spacing: .12em; }

    .wh-note__card { padding: 2.5rem 1.5rem; }

    .wh-guest-wall .gw-grid:not(.gw-grid--single),
    .wh-guest-wall .gw-grid:has(> .gw-card:nth-child(2):last-child) {
        grid-template-columns: 1fr;
        justify-content: stretch;
        max-width: 26rem;
        margin-inline: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wh-envelope, .wh-envelope__card, .wh-envelope__seal, .wh-envelope__stage,
    .wh-envelope__prompt, .wh-hero__inner, .wh-hero__scroll {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
