/* ================================================
   Bloom Eighteen — Digital Invitation Theme
   Soft and feminine for an 18th birthday: a flowing script name under a loose
   watercolour half-wreath, blush rose and sage green on warm cream, translucent
   peony-and-fern clusters (mix-blend-mode: multiply). No gold, no glitter.
   All artwork is CSS/SVG — no photo assets beyond the host's own uploads.
   ================================================ */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Three independently pickable seeds (see the "Button Color" / "Section
       Background" / "Accent Details" pickers in the event editor). Every tint
       below each one is computed from it with color-mix() rather than its own
       hardcoded hex, so a new pick recolours every card / rule / bloom that
       reads the matching variable. Ratios reproduce the original blush-and-sage
       palette and stay balanced for other colours too. The small bloom baked
       into the section-title / seam data-URI does NOT follow the pickers (same
       known limitation as the other palette themes). */
    --btn-accent:       #C67E88;
    --btn-color:        var(--btn-accent);
    --btn-color-light:  color-mix(in srgb, var(--btn-accent) 55%, white);
    --btn-color-dark:   color-mix(in srgb, var(--btn-accent) 60%, black);

    --section-bg-accent: #9FB294;
    --paper:      color-mix(in srgb, var(--section-bg-accent) 5%, #FFFCFA);
    --paper-alt:  color-mix(in srgb, var(--section-bg-accent) 13%, #FFFCFA);
    --sage:       var(--section-bg-accent);
    --sage-soft:  color-mix(in srgb, var(--section-bg-accent) 45%, white);
    --sage-deep:  color-mix(in srgb, var(--section-bg-accent) 50%, black);

    --accent-detail: #C67E88;
    --rose:       var(--accent-detail);
    --rose-soft:  color-mix(in srgb, var(--accent-detail) 45%, white);
    --rose-pale:  color-mix(in srgb, var(--accent-detail) 18%, white);
    --rose-deep:  color-mix(in srgb, var(--accent-detail) 55%, black);
    --accent-color: var(--accent-detail);

    --white:  #FFFFFF;
    --ink:    #4A3F42;
    --body:   #6E6165;
    --muted:  #9B8E92;
    --radius: 12px;
    --btn-radius: 999px;
    --ff-display: 'Prata', Georgia, serif;
    --ff-script:  'Sacramento', 'Snell Roundhand', 'Apple Chancery', cursive;
    --ff-body:    'Mulish', system-ui, -apple-system, sans-serif;

    /* Tiny four-petal bloom (rose petals, sage heart) used as the section-title
       accent mark. Baked at the default palette — see the note above. */
    --blm-bloom-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='%23C67E88'%3E%3Cellipse cx='30' cy='16' rx='9' ry='14' opacity='.55'/%3E%3Cellipse cx='30' cy='44' rx='9' ry='14' opacity='.55'/%3E%3Cellipse cx='16' cy='30' rx='14' ry='9' opacity='.55'/%3E%3Cellipse cx='44' cy='30' rx='14' ry='9' opacity='.55'/%3E%3C/g%3E%3Ccircle cx='30' cy='30' r='7' fill='%239FB294'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    font-weight: 400;
    color: var(--body);
    background-color: var(--paper);
    line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: var(--rose-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Utility ---------- */
.blm-container         { max-width: 1080px; margin: 0 auto; }
.blm-container--narrow { max-width: 640px; }

/* Every section sits on the same flat cream ground — the bloom look wants calm
   uniformity, not an alternating-tint rhythm. A section boundary is marked only
   by the slim feathered rose rule below (::after), which reads cleanly because
   the ground never changes colour across it. The rule survives any section being
   hidden by plan tier / visibility toggle / missing data (it's :not(:last-child)
   on whatever remains). */
.blm-alt-sections > * {
    position: relative;
    background-color: var(--paper);
    background-repeat: no-repeat;
}

.blm-poem::after,
.blm-alt-sections > *:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(60%, 420px);
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rose) 55%, transparent), transparent);
    z-index: 1;
    pointer-events: none;
}

.blm-section-title {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 2.15rem);
    color: var(--rose-deep);
    text-align: center;
    margin-bottom: 1.75rem;
    padding-top: 2.9rem;
    line-height: 1.2;
    position: relative;
}
.blm-section-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: no-repeat center / contain var(--blm-bloom-img);
}

/* ---------- Watercolour decoration ----------
   Containers set mix-blend-mode:multiply so translucent ellipse overlaps deepen
   like wet pigment instead of stacking as flat opaque cut-outs. */
.blm-wreath__leaves { color: var(--sage); }
.blm-wreath__blooms { color: var(--rose); }
/* Inline wreath leaves are bare <ellipse>s — SVG's default fill is black, so
   they need currentColor explicitly (the bloom <use>s carry it internally). */
.blm-wreath__leaves ellipse { fill: currentColor; opacity: .5; }

.blm-fx-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: multiply;
}
.blm-fx-bloom { position: absolute; color: var(--rose); opacity: .16; }
.blm-fx-bloom--a { width: 150px; height: 150px; top: 5%; left: -3%; }
.blm-fx-bloom--b { width: 92px;  height: 92px;  top: 58%; right: 1%; }
.blm-fx-bloom--c { width: 64px;  height: 64px;  bottom: 8%; left: 12%; }
.blm-fx-sprig { position: absolute; color: var(--sage); opacity: .22; }
.blm-fx-sprig--a { width: 118px; height: 196px; top: -12%; right: 7%; transform: rotate(18deg); }
.blm-fx-sprig--b { width: 98px;  height: 164px; bottom: -16%; left: -2%; transform: rotate(-24deg); }

@media (max-width: 700px) {
    .blm-fx-bloom--a,
    .blm-fx-sprig--a { display: none; }
}

/* ---------- Hero ---------- */
.blm-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 7rem 1.5rem 6.5rem;
    background:
        radial-gradient(ellipse 82% 40% at 50% 0%, color-mix(in srgb, var(--rose) 9%, transparent), transparent 70%),
        radial-gradient(ellipse 72% 42% at 50% 100%, color-mix(in srgb, var(--sage) 10%, transparent), transparent 70%),
        var(--paper);
}

.blm-hero__inner {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    text-align: center;
}

/* Loose watercolour spray cresting just above the portrait — the theme's one
   big floral gesture, kept in normal flow (never absolutely placed behind the
   photo) so it always reads; a small negative margin lets its lower blooms
   tuck behind the portrait's top edge like a cradle. */
.blm-hero__wreath {
    display: block;
    width: min(76%, 280px);
    height: auto;
    margin: 0 auto -0.75rem;
    position: relative;
    z-index: 0;
    opacity: .9;
    pointer-events: none;
}

/* ---------- Hero photo (round, soft-edged) ---------- */
.blm-hero__photo {
    position: relative;
    width: min(190px, 52%);
    margin: 0 auto 2rem;
}

.blm-hero__photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--rose-pale);
    box-shadow:
        0 0 0 10px var(--paper),
        0 0 0 11px color-mix(in srgb, var(--rose) 22%, transparent),
        0 22px 50px rgba(74, 63, 66, .14);
}
/* Feathers the photo edge into the cream ground rather than a hard ring. */
.blm-hero__photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 22px 7px color-mix(in srgb, var(--paper) 66%, transparent);
    pointer-events: none;
}

.blm-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blm-hero__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

/* ---------- Hero text ---------- */
.blm-hero__eyebrow {
    font-family: var(--ff-body);
    text-transform: uppercase;
    letter-spacing: .24em;
    font-size: .74rem;
    font-weight: 600;
    color: var(--rose-deep);
    margin-bottom: .5rem;
}

.blm-hero__name {
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: clamp(3.6rem, 15vw, 6rem);
    line-height: .95;
    color: var(--rose);
    margin: .1rem 0 .7rem;
    overflow-wrap: break-word;
}

.blm-hero__milestone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    font-family: var(--ff-display);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .8rem;
    color: var(--muted);
}
.blm-hero__milestone-rule {
    width: 34px;
    height: 1px;
    background: var(--rose-soft);
}

.blm-hero__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.4rem;
}
.blm-hero__chip {
    display: inline-flex;
    align-items: center;
    background: color-mix(in srgb, var(--sage) 14%, var(--white));
    border: 1px solid color-mix(in srgb, var(--sage) 34%, transparent);
    border-radius: 999px;
    padding: .42rem .95rem;
    font-size: .76rem;
    font-weight: 600;
    color: var(--sage-deep);
}
.blm-hero__chip--motto {
    background: color-mix(in srgb, var(--rose) 12%, var(--white));
    border-color: color-mix(in srgb, var(--rose) 32%, transparent);
    color: var(--rose-deep);
}

.blm-hero__date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    margin-top: 1.5rem;
    font-family: var(--ff-display);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 1rem;
    color: var(--rose-deep);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}
.blm-hero__date-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rose);
    flex-shrink: 0;
}

.blm-hero__lines {
    margin-top: 1.1rem;
    font-family: var(--ff-body);
    font-size: 1rem;
    color: var(--ink);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}
.blm-hero__lines strong { font-weight: 700; }
.blm-hero__lines-sub {
    font-size: .88rem;
    color: var(--muted);
    margin-top: .15rem;
}

.blm-hero__cta {
    display: inline-block;
    width: auto;
    margin-top: 2rem;
    padding: .85rem 2.6rem;
}

@media (max-width: 560px) {
    .blm-hero__wreath { width: min(70%, 230px); margin-bottom: -0.5rem; }
    .blm-hero__name { font-size: clamp(3rem, 17vw, 4rem); }
}

/* ---------- Hero shape divider (partial) — rule · bloom · rule ---------- */
.blm-shape {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(74%, 460px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    pointer-events: none;
    z-index: 2;
}
.blm-shape-bottom { bottom: 26px; }
.blm-shape-top { top: 26px; }
.blm-shape__rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rule, var(--rose)), transparent);
}
.blm-shape__bloom {
    flex: none;
    width: 34px;
    height: 34px;
    color: var(--rose);
    opacity: .8;
}

/* ---------- Floating topbar ---------- */
.blm-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: .9rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background .3s ease, backdrop-filter .3s ease;
}

@media (min-width: 601px) {
    .blm-topbar.scrolled {
        background: color-mix(in srgb, var(--paper) 92%, transparent);
        backdrop-filter: blur(10px);
    }
}

.blm-topbar__links {
    display: flex;
    gap: 1.25rem;
}
.blm-topbar__links a {
    font-family: var(--ff-body);
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--body);
    transition: color .2s;
}
.blm-topbar__links a:hover { color: var(--rose-deep); text-decoration: none; }

.blm-topbar__toggle { display: none; }

/* Demo-only Basic/Standard switch + close + cart badge — shared look defined
   globally in layouts/theme.blade.php, positioned here at opposite bottom
   corners at every screen width. */
.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;
}

@media (max-width: 600px) {
    .blm-topbar { justify-content: flex-start; }
    .blm-topbar__toggle { order: -1; }

    .blm-topbar__toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 3rem;
        height: 3rem;
        padding: 0;
        border: 1.5px solid rgba(255, 255, 255, .4);
        border-radius: 50%;
        background: color-mix(in srgb, var(--rose-deep) 55%, transparent);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        cursor: pointer;
        transition: background .2s;
    }
    .blm-topbar__toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 1px;
        background: #fff;
        transition: transform .25s ease, opacity .2s ease;
    }
    .blm-topbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .blm-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .blm-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .blm-topbar__links {
        flex-direction: column;
        gap: .25rem;
        position: absolute;
        top: calc(100% + .5rem);
        left: 1rem;
        right: 1rem;
        padding: .5rem;
        background: color-mix(in srgb, var(--paper) 97%, transparent);
        border: 1px solid color-mix(in srgb, var(--rose) 45%, transparent);
        border-radius: 14px;
        box-shadow: 0 12px 32px rgba(74, 63, 66, .16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .blm-topbar__links.is-open {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .blm-topbar__links a {
        text-align: center;
        padding: .65rem 1rem;
        border-radius: 8px;
        color: var(--body);
        white-space: normal;
    }
    .blm-topbar__links a:hover {
        background: color-mix(in srgb, var(--rose) 12%, transparent);
        color: var(--rose-deep);
    }
}

/* ---------- Countdown ---------- */
.blm-countdown {
    padding: 5rem 1.25rem 6.5rem;
    text-align: center;
}
.blm-audio { padding: 5rem 1.25rem 6.5rem; text-align: center; }

.blm-countdown__intro {
    font-family: var(--ff-display);
    color: var(--body);
    font-size: 1.05rem;
    max-width: 440px;
    margin: 0 auto;
}

.blm-countdown__timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.25rem;
}

.blm-countdown__unit {
    min-width: 96px;
    padding: 1.5rem .6rem 1.05rem;
    background: color-mix(in srgb, var(--white) 78%, var(--paper));
    border: 1px solid color-mix(in srgb, var(--rose) 24%, transparent);
    border-radius: var(--radius);
    box-shadow: 0 10px 26px rgba(74, 63, 66, .07);
}

.blm-countdown__number {
    display: block;
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 2.4rem;
    color: var(--rose-deep);
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.blm-countdown__label {
    display: block;
    font-family: var(--ff-body);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .64rem;
    font-weight: 700;
    color: var(--muted);
    margin-top: .55rem;
}

/* ---------- Framed card (note / poem) ---------- */
.blm-card {
    position: relative;
    background: color-mix(in srgb, var(--white) 80%, var(--paper));
    border: 1px solid color-mix(in srgb, var(--rose) 24%, transparent);
    border-radius: var(--radius);
    padding: 3rem 2.25rem 2.75rem;
    max-width: 620px;
    margin: 0 auto;
    box-shadow: 0 16px 42px rgba(74, 63, 66, .08);
}
.blm-card__bloom {
    display: block;
    width: 38px;
    height: 38px;
    margin: 0 auto 1.2rem;
    color: var(--rose);
    opacity: .85;
}

.blm-poem {
    padding: 5rem 1.25rem 6.5rem;
    text-align: center;
    position: relative;
    background-color: var(--paper);
}
.blm-poem__text {
    font-family: var(--ff-display);
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--ink);
    white-space: pre-line;
}

/* ---------- Gallery (generic <x-gallery-grid>) ---------- */
.blm-gallery { padding: 5rem 1.25rem 6.5rem; text-align: center; }

/* ---------- Growing Up (dedicated <x-birthday-18-bloom-story-timeline>) ----------
   A soft stem down the left, rose fading to sage, with a watercolour bloom that
   opens larger at each milestone (bud -> full bloom) beside a round, feather-
   edged portrait echoing the hero. */
.blm-story { padding: 5rem 1.25rem 6.5rem; text-align: center; }

.blm-story__intro {
    max-width: 34rem;
    margin: 0 auto 1rem;
    font-family: var(--ff-body);
    font-size: .96rem;
    line-height: 1.7;
    color: var(--body);
}

.blm-story__timeline {
    position: relative;
    max-width: 34rem;
    margin: 2.25rem auto 0;
    text-align: left;
}
/* The stem: rose at the crown, fading into sage at the foot ("grows into leaf"). */
.blm-story__timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(to bottom,
        transparent,
        color-mix(in srgb, var(--rose) 55%, transparent) 4%,
        color-mix(in srgb, var(--rose) 34%, var(--sage) 66%) 45%,
        color-mix(in srgb, var(--sage) 62%, transparent) 94%,
        transparent);
}

.blm-story__item {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 150px) 1fr;
    align-items: center;
    gap: 0 1.3rem;
    padding: 1.15rem 0;
}

/* Bloom markers open wider down the timeline — bud, then bloom. Past the third
   milestone they hold at full size. */
.blm-story__mark {
    grid-column: 1;
    justify-self: center;
    display: block;
    width: 26px;
    height: 26px;
    color: var(--rose);
    position: relative;
    z-index: 1;
    /* soft paper disc so the stem doesn't cut visibly through the bloom */
    background: radial-gradient(closest-side, var(--paper) 62%, transparent);
}
.blm-story__mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.blm-story__item:nth-child(2) .blm-story__mark { width: 33px; height: 33px; }
.blm-story__item:nth-child(n+3) .blm-story__mark { width: 40px; height: 40px; }

.blm-story__figure {
    grid-column: 2;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.blm-story__photo {
    position: relative;
    width: 100%;
    max-width: 150px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--rose-pale);
    box-shadow:
        0 0 0 7px var(--paper),
        0 0 0 8px color-mix(in srgb, var(--rose) 20%, transparent),
        0 14px 30px rgba(74, 63, 66, .12);
}
.blm-story__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 16px 5px color-mix(in srgb, var(--paper) 58%, transparent);
    pointer-events: none;
}
.blm-story__photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blm-story__caption {
    font-family: var(--ff-script);
    font-size: 1.05rem;
    line-height: 1;
    color: var(--rose);
    text-align: center;
}

.blm-story__card { grid-column: 3; }

.blm-story__period {
    display: block;
    font-family: var(--ff-body);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rose-deep);
    margin-bottom: .3rem;
}
.blm-story__title {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: .35rem;
}
.blm-story__desc {
    font-family: var(--ff-body);
    font-size: .9rem;
    line-height: 1.65;
    color: var(--body);
}

/* No photo on a milestone — let the text take the portrait column too. */
.blm-story__item--noimg { grid-template-columns: 40px 1fr; }
.blm-story__item--noimg .blm-story__card { grid-column: 2; }

@media (max-width: 560px) {
    .blm-story__timeline::before { left: 15px; }
    .blm-story__item {
        grid-template-columns: 32px 104px 1fr;
        gap: 0 .9rem;
    }
    .blm-story__item--noimg { grid-template-columns: 32px 1fr; }
    .blm-story__caption { font-size: .95rem; }
}

@media (max-width: 420px) {
    .blm-story__item {
        grid-template-columns: 28px 1fr;
        row-gap: .55rem;
    }
    .blm-story__mark { grid-row: 1 / span 2; align-self: start; margin-top: .2rem; }
    .blm-story__figure { grid-column: 2; grid-row: 1; align-items: flex-start; }
    .blm-story__photo { max-width: 116px; }
    .blm-story__card { grid-column: 2; grid-row: 2; }
    .blm-story__item--noimg .blm-story__card { grid-row: 1; }
}

/* ---------- Celebration Timeline (Program) ---------- */
.blm-program {
    padding: 5rem 1.25rem 6.5rem;
    text-align: center;
}
.blm-program__list {
    max-width: 440px;
    margin: 1.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}
.blm-program__line {
    font-family: var(--ff-display);
    font-size: 1.2rem;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.blm-program__line strong {
    font-weight: 400;
    color: var(--rose-deep);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}
.blm-program__sep { color: var(--rose); }
.blm-program__where {
    font-family: var(--ff-body);
    font-size: .9rem;
    color: var(--muted);
    margin-top: .25rem;
}
.blm-program__where a { color: var(--rose-deep); margin-left: .4em; }

/* ---------- Dress Code / Good to Know ---------- */
.blm-dress-code   { padding: 5rem 1.25rem 6.5rem; text-align: center; }
.blm-good-to-know { padding: 5rem 1.25rem 6.5rem; text-align: center; }

/* ---------- Find the Party (Map) ---------- */
.blm-location { padding: 5rem 1.25rem 6.5rem; text-align: center; }
.blm-location__map { max-width: 560px; margin: 1rem auto 0; }
.blm-location__map iframe {
    width: 100%;
    height: 320px;
    display: block;
    border: 0;
    border-radius: var(--radius);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--rose) 22%, transparent),
        0 14px 34px rgba(74, 63, 66, .14);
}
.blm-location__info { margin-top: 2.25rem; }
.blm-location__name {
    font-family: var(--ff-display);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 1.1rem;
    color: var(--rose-deep);
    margin-bottom: .35rem;
}
.blm-location__address {
    font-family: var(--ff-body);
    color: var(--muted);
    margin-bottom: 1.4rem;
}

/* ---------- Accommodation ---------- */
.blm-accommodation { padding: 5rem 1.25rem 6.5rem; text-align: center; }

/* ---------- Album / Closing ---------- */
.blm-album { padding: 5rem 1.25rem; text-align: center; }
.blm-album__text { font-family: var(--ff-display); opacity: .85; margin-bottom: 1.75rem; }

.blm-closing { padding: 2.75rem 1.25rem; text-align: center; }
.blm-closing p {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    color: var(--ink);
    opacity: .8;
    margin: 0;
}

/* ---------- Gallery upload / Guest Wall ---------- */
.blm-guest-wall     { padding: 5rem 1.25rem 6.5rem; text-align: center; }
.blm-gallery-upload { padding: 5rem 1.25rem 6.5rem; text-align: center; }
.blm-gallery-upload .gu-form {
    max-width: 620px;
    padding: 0 1.5rem;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ---------- RSVP ---------- */
.blm-rsvp {
    position: relative;
    overflow: hidden;
    padding: 5rem 1.25rem 6.5rem;
}
.blm-rsvp .rsvp-deadline {
    background: transparent;
    margin-bottom: 10px;
}

/* The watercolour cluster sits behind the heading/form (z-index:0), so both need
   their own stacking context above it — a position:static title would otherwise
   paint underneath the decoration regardless of DOM order. */
.blm-rsvp .blm-section-title,
.blm-rsvp .rsvp-layout-wrap {
    position: relative;
    z-index: 2;
}

.rsvp-layout-wrap {
    max-width: 540px;
    margin: 0 auto;
    background: color-mix(in srgb, var(--white) 82%, var(--paper));
    border: 1px solid color-mix(in srgb, var(--rose) 24%, transparent);
    border-radius: var(--radius);
    box-shadow: 0 22px 54px rgba(74, 63, 66, .1);
    padding: 3.5rem 2.5rem;
}

@media (max-width: 500px) {
    .rsvp-layout-wrap { padding: 2.5rem 1.25rem; }
}

.blm-rsvp .form__group label {
    display: block;
    font-family: var(--ff-body);
    font-weight: 700;
    font-size: .74rem;
    color: var(--rose-deep);
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.blm-rsvp .form__group input[type="text"],
.blm-rsvp .form__group input[type="email"],
.blm-rsvp .form__group input[type="tel"],
.blm-rsvp .form__group select,
.blm-rsvp .form__group textarea {
    width: 100%;
    padding: .9rem 1.15rem;
    border: 1px solid color-mix(in srgb, var(--rose) 28%, transparent);
    border-radius: 10px;
    font-family: var(--ff-body);
    font-size: .95rem;
    color: var(--ink);
    background-color: color-mix(in srgb, var(--white) 70%, var(--paper));
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.blm-rsvp .form__group .rsvp-stepper {
    background: color-mix(in srgb, var(--white) 70%, var(--paper));
}

.blm-rsvp .form__group input[type="text"]:focus,
.blm-rsvp .form__group input[type="email"]:focus,
.blm-rsvp .form__group input[type="tel"]:focus,
.blm-rsvp .form__group select:focus,
.blm-rsvp .form__group textarea:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 18%, transparent);
}

.blm-rsvp .form__error {
    display: block;
    color: var(--btn-color-dark);
    font-size: .82rem;
    margin-top: .3rem;
}

.blm-alert--success {
    background: color-mix(in srgb, var(--sage) 16%, white);
    color: var(--ink);
    border: 1px solid var(--sage);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

/* ---------- Buttons ---------- */
.blm-btn {
    display: block;
    width: 100%;
    padding: .9rem 2rem;
    background: var(--btn-color);
    color: var(--white);
    font-family: var(--ff-body);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    font-size: .82rem;
    border: 1px solid var(--btn-color);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--btn-color) 28%, transparent);
    margin-top: .5rem;
}
.blm-btn:hover {
    background: var(--btn-color-dark);
    border-color: var(--btn-color-dark);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}
.blm-btn--outline {
    background: transparent;
    color: var(--rose-deep);
    border-color: var(--rose);
    box-shadow: none;
}
.blm-btn--outline:hover {
    background: var(--rose);
    border-color: var(--rose);
    color: var(--white);
}
.blm-location .blm-btn,
.blm-album .blm-btn { display: inline-block; width: auto; }

/* ---------- Footer ---------- */
.blm-footer {
    background-color: var(--paper-alt);
    color: var(--body);
    text-align: center;
    padding: 3rem 1.25rem 3.25rem;
    border-top: 1px solid color-mix(in srgb, var(--rose) 26%, transparent);
}
.blm-footer p { margin-bottom: .3rem; font-family: var(--ff-body); }
.blm-footer a { color: var(--rose-deep); }

.blm-footer__wreath {
    display: block;
    width: 220px;
    max-width: 70%;
    height: auto;
    margin: 0 auto 1rem;
    mix-blend-mode: multiply;
    opacity: .9;
}

.blm-footer__name {
    font-family: var(--ff-script);
    font-size: 2.4rem;
    color: var(--rose);
    line-height: 1;
    margin-bottom: .15rem;
}
.blm-footer__signoff {
    max-width: 22rem;
    margin: .75rem auto 1.25rem !important;
    color: var(--muted);
}
.blm-footer__cal {
    display: inline-flex;
    width: auto;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
}
.blm-footer__cal-icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 500px) {
    /* nowrap + scroll keeps all four units on one row down to ~360px instead of
       flex-wrap dropping them to a 2x2 block. */
    .blm-countdown__timer {
        gap: .5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .blm-countdown__timer::-webkit-scrollbar { display: none; }
    .blm-countdown__unit {
        min-width: 60px;
        padding: 1.1rem .45rem .8rem;
        flex-shrink: 0;
    }
    .blm-countdown__number { font-size: 2rem; }
}

/* Standardised horizontal gutter across every content section on mobile
   (padding-x: 1rem), matching the convention used across the app's other
   themes. Appended at the very end so equal-specificity source order guarantees
   this wins over each section's own base padding rule above. */
@media (max-width: 600px) {
.blm-hero,
.blm-poem,
.blm-countdown,
.blm-audio,
.blm-story,
.blm-gallery,
.blm-program,
.blm-dress-code,
.blm-good-to-know,
.blm-location,
.blm-accommodation,
.blm-guest-wall,
.blm-gallery-upload,
.blm-album,
.blm-closing,
.blm-rsvp,
.blm-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
