/* ================================================
   Wedding Classic Rose — Standard Wedding Theme
   Palette: rosewood · blush · ink · cream
   Fonts:   Great Vibes (names/titles) + Cormorant Garamond (body/accent) +
            Josefin Sans (eyebrows/nav/buttons)
   Style:   Deep rosewood elegance, corner-bracket framed cards, a rose-bud
            garland divider at the hero seam, and an alternating icon-node
            wedding-day timeline — modeled on a classic formal invitation.
   ================================================ */

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

:root {
    --rose:         #8e2436;
    --rose-deep:    #6d1c29;
    --rose-soft:    #c98a95;
    --ink:          #2d2426;
    --text:         #5c4d4f;
    --muted:        #9a8b8f;
    --cream:        #fdf8f8;
    --blush:        #f6e3e6;
    --white:        #ffffff;
    --border:       rgba(142,36,54,.18);
    --accent-color: #8e2436;
    --radius:       16px;
    --btn-radius:   50px;

    --ff-script:  'Great Vibes', cursive;
    --ff-serif:   'Cormorant Garamond', Georgia, serif;
    --ff-heading: 'Josefin Sans', Arial, sans-serif;

    --gold-line: linear-gradient(90deg, transparent, var(--rose) 25%, var(--rose-soft) 75%, transparent);

    --card-shadow: 0 1px 2px rgba(45,36,38,.04), 0 8px 24px rgba(45,36,38,.06), 0 40px 70px rgba(45,36,38,.16);
    --card-shadow-sm: 0 1px 2px rgba(45,36,38,.04), 0 12px 30px rgba(45,36,38,.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-serif);
    font-size: 1.05rem;
    color: var(--text);
    background: var(--cream);
    line-height: 1.75;
    overflow-x: hidden;
}

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

/* ── Containers ─────────────────────────────── */
.cr-container     { max-width: 1100px; margin: 0 auto; padding: 0; }
.cr-container--sm { max-width: 680px; }

/*
 * Alternating section backgrounds, computed from what actually renders rather
 * than hardcoded per section — any of these can be hidden by plan tier, the
 * section-visibility toggle, or missing data, and the rhythm still holds
 * because :nth-child only counts DOM nodes that actually exist.
 */
.cr-alt-sections > * {
    background: var(--white);
}
.cr-alt-sections > *:nth-child(even) {
    background: var(--blush);
}

/* ── Section helpers ─────────────────────────── */
.cr-section-title {
    position: relative;
    font-family: var(--ff-script);
    /* Great Vibes only ships a single (regular) weight — sized up from a plain
       serif clamp() since script faces read visually smaller at the same
       font-size, with extra line-height so ascenders/descenders don't clip. */
    font-size: clamp(2.4rem, 6vw, 3.5rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--rose);
    text-align: center;
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
}

.cr-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-line);
}

.cr-eyebrow {
    font-family: var(--ff-heading);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--rose-soft);
    text-align: center;
    margin-bottom: .75rem;
}

/* ── Buttons ──────────────────────────────────── */
.cr-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--rose), var(--rose-deep));
    color: #fff !important;
    font-family: var(--ff-heading);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .95rem 2.5rem;
    border-radius: var(--btn-radius);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(142,36,54,.3);
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.cr-btn:hover {
    background: linear-gradient(135deg, var(--rose-deep), var(--rose));
    box-shadow: 0 12px 28px rgba(142,36,54,.4);
    text-decoration: none;
    transform: translateY(-2px);
    color: #fff !important;
}

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

@media (min-width: 601px) {
    .cr-topbar.scrolled {
        background: color-mix(in srgb, var(--cream) 92%, transparent);
        backdrop-filter: blur(10px);
        box-shadow: 0 1px 0 var(--border);
    }
}

.cr-topbar__links {
    display: flex;
    gap: 1.75rem;
}

.cr-topbar__links a {
    position: relative;
    font-family: var(--ff-heading);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: .2rem;
}

.cr-topbar__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}

.cr-topbar__links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.cr-topbar__toggle { display: none; }

/* Demo-only Basic/Standard switch + close + cart badge — shared look defined
   globally in layouts/theme.blade.php, just 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;
}

/* ── Corner-bracket frame ───────────────────────
   This theme's signature "formal document" device — four L-shaped brackets
   drawn purely with layered background-gradients on a ::before pseudo-element,
   so it can be dropped onto any positioned box (including one whose markup we
   don't own, via a descendant selector) without extra DOM. Scaled down (not
   hidden) on narrow screens — a tighter inset/arm-length stays legible on a
   small panel instead of reading as clutter, while still showing on mobile. */
.cr-corners { position: relative; }
.cr-corners::before {
    content: '';
    position: absolute;
    inset: 14px;
    pointer-events: none;
    z-index: 2;
    background:
        linear-gradient(var(--rose), var(--rose)) 0 0/2px 26px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 0 0/26px 2px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 100% 0/2px 26px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 100% 0/26px 2px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 0 100%/2px 26px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 0 100%/26px 2px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 100% 100%/2px 26px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 100% 100%/26px 2px no-repeat;
}
@media (max-width: 640px) {
    .cr-corners::before {
        inset: 7px;
        background:
            linear-gradient(var(--rose), var(--rose)) 0 0/2px 15px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 0 0/15px 2px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 100% 0/2px 15px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 100% 0/15px 2px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 0 100%/2px 15px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 0 100%/15px 2px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 100% 100%/2px 15px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 100% 100%/15px 2px no-repeat;
    }
}

/* ── Hero ───────────────────────────────────── */
.cr-hero {
    position: relative;
    padding: 8rem 1.5rem 6rem;
    text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--blush), var(--cream) 70%);
    overflow: hidden;
}

.cr-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 44rem;
    margin: 0 auto;
}

.cr-hero__eyebrow {
    font-family: var(--ff-heading);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .45em;
    text-transform: uppercase;
    color: var(--rose-soft);
    margin-bottom: 1.25rem;
}

.cr-hero__name {
    font-family: var(--ff-script);
    font-size: clamp(3.5rem, 11vw, 7rem);
    font-weight: 400;
    line-height: .95;
    color: var(--ink);
}

.cr-hero__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: .5rem auto;
    max-width: 22rem;
}
.cr-hero__ornament-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(to right, transparent, var(--rose));
}
.cr-hero__ornament-line:last-child {
    background: linear-gradient(to left, transparent, var(--rose));
}
.cr-hero__ornament-rose {
    width: 22px;
    height: 28px;
    color: var(--rose);
    flex-shrink: 0;
}

.cr-hero__tagline {
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text);
    max-width: 32rem;
    margin: 1.75rem auto 0;
}

.cr-hero__date {
    font-family: var(--ff-heading);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--ink);
    margin-top: 1.75rem;
}

.cr-hero__cta {
    margin-top: 2.25rem;
}

/* ── Shape divider (hero seam) ────────────────── */
.cr-shape {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    direction: ltr;
    pointer-events: none;
    z-index: 1;
}
.cr-shape-top { top: -1px; }
.cr-shape-bottom { bottom: -1px; }
.cr-shape[data-negative="false"].cr-shape-bottom,
.cr-shape[data-negative="true"].cr-shape-top {
    transform: rotate(180deg);
}
.cr-shape svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* ── Section corner accent ─────────────────────
   A single-stem rose (see partials/section-accent.blade.php), included either
   as a direct sibling of .cr-container (sections this theme owns directly) or
   nested inside it as the first child of a shared component's `heading` slot
   (dress-code, story timeline, etc.) — either way it's the first element at its
   DOM level, so the general sibling selector below reliably lifts real content
   above the decoration regardless of nesting depth. */
.cr-couple, .cr-countdown, .cr-audio, .cr-story, .cr-gallery, .cr-program, .cr-dress-code,
.cr-good-to-know, .cr-location, .cr-accommodation, .cr-guest-wall, .cr-album, .cr-closing, .cr-rsvp,
.cr-gallery-upload {
    position: relative;
    overflow: hidden;
}

.cr-section-accent {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.cr-section-accent__rose {
    position: absolute;
    display: block;
    width: 90px;
    height: 120px;
    opacity: .14;
}
.cr-section-accent__rose--1 {
    bottom: -16px;
    left: 1.5rem;
    transform: rotate(-6deg);
}
.cr-section-accent__rose--2 {
    top: -16px;
    right: 1.5rem;
    transform: rotate(176deg);
    color: var(--rose-soft);
}

@media (max-width: 700px) {
    .cr-section-accent__rose { display: none; }
}

/* Only every other section gets the accent, following the same rhythm as the
   background-tint alternation above — on every single section back-to-back it
   reads as repetitive. */
.cr-alt-sections > *:nth-child(odd) .cr-section-accent {
    display: none;
}

.cr-countdown .cr-section-accent ~ *,
.cr-audio .cr-section-accent ~ *,
.cr-story .cr-section-accent ~ *,
.cr-gallery .cr-section-accent ~ *:not(.gg-lightbox),
.cr-program .cr-section-accent ~ *,
.cr-dress-code .cr-section-accent ~ *,
.cr-good-to-know .cr-section-accent ~ *,
.cr-location .cr-section-accent ~ *,
.cr-accommodation .cr-section-accent ~ *,
.cr-guest-wall .cr-section-accent ~ *,
.cr-album .cr-section-accent ~ *,
.cr-closing .cr-section-accent ~ *,
.cr-rsvp .cr-section-accent ~ * {
    position: relative;
    z-index: 2;
}

/* ── Meet the Couple ──────────────────────────── */
.cr-couple {
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 0 1rem 5rem;
    margin-top: -3.5rem;
    border-radius: 32px 32px 0 0;
    text-align: center;
    box-shadow: 0 -20px 40px rgba(45,36,38,.06);
}
.cr-couple .cr-container {
    padding-top: 3.5rem;
}

.cr-couple__grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.cr-couple__person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    width: clamp(10rem, 20vw, 13rem);
}

.cr-couple__photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    box-shadow: var(--card-shadow-sm);
}

.cr-couple__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cr-couple__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: var(--blush);
}

.cr-couple__role {
    font-family: var(--ff-heading);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--rose-soft);
    margin-top: .85rem;
}

.cr-couple__name {
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: 1.9rem;
    color: var(--ink);
}

.cr-couple__amp {
    font-family: var(--ff-script);
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    color: var(--rose);
    align-self: center;
    margin-top: 2.5rem;
}

/* Keep bride/amp/groom on a single row even on narrow phones instead of
   wrapping to two — smaller photos and a tighter gap free up enough width.
   Matches the breakpoint .cr-corners scales its bracket frame down at (see
   above), so the corner brackets stay proportionate to the smaller photos. */
@media (max-width: 640px) {
    .cr-couple__grid {
        flex-wrap: nowrap;
        gap: .85rem;
    }
    .cr-couple__person {
        width: clamp(6rem, 30vw, 8.5rem);
    }
    .cr-couple__amp {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-top: 1.5rem;
    }
}

/* ── Countdown ───────────────────────────────── */
.cr-countdown {
    padding: 5rem 1rem;
    text-align: center;
}

.cr-countdown__timer {
    display: flex;
    gap: .85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cr-countdown__unit {
    position: relative;
    background: var(--white);
    border-top: 2px solid color-mix(in srgb, var(--rose) 45%, transparent);
    box-shadow: var(--card-shadow-sm);
    padding: 1.5rem 1.75rem;
    min-width: 88px;
    text-align: center;
}

.cr-countdown__number {
    display: block;
    font-family: var(--ff-serif);
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 600;
    color: var(--rose);
    line-height: 1;
}

.cr-countdown__label {
    display: block;
    font-family: var(--ff-heading);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .6rem;
}

/* ── Audio player ──────────────────────────── */
.cr-audio {
    padding: 5rem 1rem;
    text-align: center;
}

/* ── Poem / message ──────────────────────────── */
.cr-poem {
    padding: 6rem 1.5rem;
    text-align: center;
}

.cr-poem__card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow-sm);
    padding: 3.25rem 2.5rem 2.75rem;
    max-width: 640px;
    margin: 0 auto;
}

.cr-poem__text {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    line-height: 1.9;
    color: var(--ink);
    white-space: pre-line;
}

.cr-poem__sig {
    margin-top: 1.75rem;
    font-family: var(--ff-heading);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .05em;
    color: var(--rose);
}

/* ── Our Story ───────────────────────────────────
   Bespoke to this theme (see the dedicated
   <x-wedding-classic-rose-story-timeline> component, not the generic
   <x-story-timeline>): a rose vine with a bud marker at each milestone,
   alternating a corner-bracket framed photo with a script-period text card —
   shares the corner-bracket frame with "Meet the Couple" and the Program card
   (.cr-agenda). */
.cr-story {
    padding: 5.5rem 1.5rem;
    text-align: center;
}

.cr-story__intro {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text);
    max-width: 38rem;
    margin: 0 auto;
}

.cr-story__timeline {
    position: relative;
    max-width: 920px;
    margin: 2.5rem auto 0;
    padding-left: 2.5rem;
    text-align: left;
}
.cr-story__timeline::before {
    content: '';
    position: absolute;
    top: .5rem;
    bottom: .5rem;
    left: 1rem;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--rose) 6%, var(--rose) 94%, transparent);
}

.cr-story__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0 0 3rem 1.5rem;
}
.cr-story__item:last-child { padding-bottom: 0; }

.cr-story__node {
    position: absolute;
    top: 0;
    /* .cr-story__item's own padding-left (1.5rem) doesn't move its own edge,
       but that edge already sits 2.5rem
       right of .cr-story__timeline's edge — the amount of the timeline's own
       padding-left. Subtract it so the node lines up with the vine
       (.cr-story__timeline::before), which isn't affected by that padding. */
    left: -1.5rem;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--rose);
    box-shadow: var(--card-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
    z-index: 1;
}
.cr-story__node svg {
    width: 1.15rem;
    height: 1.45rem;
}

.cr-story__photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    box-shadow: var(--card-shadow-sm);
}
.cr-story__photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cr-story__card { text-align: left; }
.cr-story__period {
    display: block;
    font-family: var(--ff-script);
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1;
    color: var(--rose);
    margin-bottom: .5rem;
}
.cr-story__title {
    font-family: var(--ff-serif);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: .5rem;
}
.cr-story__desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
}

/* Center spine + alternating photo/card columns above 700px. */
@media (min-width: 700px) {
    .cr-story__timeline { padding-left: 0; }
    .cr-story__timeline::before { left: 50%; transform: translateX(-50%); }
    .cr-story__item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
        padding: 0 0 4rem;
    }
    .cr-story__node { left: 50%; }
    .cr-story__photo { order: 1; }
    .cr-story__card { order: 2; }
    .cr-story__item--rev .cr-story__photo { order: 2; }
    .cr-story__item--rev .cr-story__card { order: 1; }
}

.cr-gallery {
    padding: 5.5rem 1rem;
    text-align: center;
}
.cr-guest-wall {
    padding: 5rem 1rem;
    text-align: center;
}
.cr-gallery-upload {
    padding: 5.5rem 1rem;
    text-align: center;
}

.cr-gallery-upload .gu-form {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow-sm);
}

/* Shared <x-gallery-grid> reskin: a defined edge instead of a borderless tile. */
.cr-gallery .gg-item {
    border: 1px solid var(--border);
}

/* Shared <x-guest-wall> reskin: elevate the flat cards to the white/border/
   shadow language used everywhere else in this theme. */
.cr-guest-wall .gw-card {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow-sm);
}
.cr-guest-wall .gw-card__quote {
    color: var(--rose-soft);
}
.cr-guest-wall .gw-card__name {
    font-family: var(--ff-heading);
    color: var(--rose);
}

/* ── Program (framed "order of service" card) ───
   One narrow centred column, corner-bracket framed (this theme's .cr-corners
   "formal document" device), with every entry a marker · time · detail grid
   row split by a gold hairline. The row grid pins the time next to its label
   so content never floats in dead space — the previous alternating-spine
   layout stretched each card to half the row width and left most of it empty. */
.cr-program {
    padding: 5.5rem 1rem;
    text-align: center;
}

.cr-agenda {
    position: relative;
    /* Shrink-wrap to the widest row so the corner brackets hug the schedule
       instead of framing a half-empty column — a short programme reads as a
       small card, a long one grows to 100% of the container and wraps. */
    width: fit-content;
    max-width: 100%;
    margin: 2.5rem auto 0;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow-sm);
    padding: 2.75rem 3rem;
    text-align: left;
}

.cr-agenda__list {
    list-style: none;
}

.cr-agenda__row {
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem auto 1fr;
    column-gap: 1.25rem;
    align-items: baseline;
    padding: 1.5rem 0;
}
.cr-agenda__row:first-child { padding-top: 0; }
.cr-agenda__row:last-child { padding-bottom: 0; }
/* Gold hairline between entries only — same foil gradient as the section-title
   rule, drawn on a ::before so it never sits under the first row. */
.cr-agenda__row:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold-line);
}

.cr-agenda__marker {
    align-self: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--blush);
    border: 1px solid var(--border);
    color: var(--rose);
    display: grid;
    place-items: center;
}
.cr-agenda__marker svg {
    width: 1.05rem;
    height: 1.05rem;
}
/* Rose fallback keeps its natural 120x160 (3:4 portrait) ratio instead of
   squashing into the square marker box. */
.cr-agenda__marker svg.cr-agenda__marker-rose {
    width: .85rem;
    height: 1.15rem;
}

.cr-agenda__time {
    font-family: var(--ff-serif);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--rose);
    white-space: nowrap;
}

.cr-agenda__detail {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}
.cr-agenda__label {
    font-family: var(--ff-serif);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--ink);
}
.cr-agenda__loc {
    font-size: .85rem;
    line-height: 1.5;
    color: var(--muted);
}
.cr-agenda__loc a {
    margin-left: .4em;
    font-size: .92em;
    color: var(--rose);
}

/* Below 520px the marker column stays but the time lifts above the label as a
   letter-spaced eyebrow, so the detail text keeps a usable width on a phone. */
@media (max-width: 520px) {
    .cr-agenda {
        padding: 2.25rem 4.6rem;
    }
    .cr-agenda__row {
        grid-template-columns: 2rem 1fr;
        column-gap: .9rem;
        row-gap: .35rem;
        align-items: start;
    }
    .cr-agenda__marker {
        grid-row: 1 / span 2;
        align-self: start;
        width: 2rem;
        height: 2rem;
    }
    .cr-agenda__time {
        grid-column: 2;
        grid-row: 1;
        font-family: var(--ff-heading);
        font-size: .82rem;
        font-weight: 700;
        letter-spacing: .16em;
    }
    .cr-agenda__detail {
        grid-column: 2;
        grid-row: 2;
    }
}

/* ── Dress Code / Good to Know ───────────────── */
.cr-dress-code {
    padding: 5.5rem 1rem;
    text-align: center;
}
.cr-good-to-know {
    padding: 5.5rem 1rem;
    text-align: center;
}
.cr-accommodation {
    padding: 5.5rem 1rem;
    text-align: center;
}

/* Dress Code has no per-item cards of its own (just note text + swatches), so
   the whole content block is framed as one card, matching the poem/countdown
   language. */
.cr-dress-code .cr-container {
    position: relative;
    max-width: 680px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow-sm);
    padding: 3rem 2.5rem;
}

.cr-good-to-know .gtk-card,
.cr-accommodation .accom-card {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow-sm);
}
.cr-good-to-know .gtk-card__title,
.cr-accommodation .accom-card__name {
    font-family: var(--ff-heading);
    color: var(--rose);
}

/* ── Location (framed "keepsake" map) ───────────
   The map is matted inside this theme's corner-bracket frame with a gold foil
   line and the venue name set in serif, under a rose-ornament divider — the
   generic section rendered a raw shadowed iframe and a 📍 emoji button. */
.cr-location {
    padding: 5.5rem 1rem;
    text-align: center;
}

/* Rose divider — same line · rose · line device as .cr-hero__ornament. */
.cr-location__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 18rem;
    margin: 0 auto 2.5rem;
}
.cr-location__ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--rose));
}
.cr-location__ornament-line:last-child {
    background: linear-gradient(to left, transparent, var(--rose));
}
.cr-location__ornament-rose {
    flex-shrink: 0;
    width: 20px;
    height: 26px;
    color: var(--rose);
}

.cr-location__card {
    position: relative;
    max-width: 40rem;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow-sm);
    padding: 1.5rem;
}

/* Matted map window: framed by a thin rose rule with the gold foil line on top,
   the tiles nudged towards the theme palette with a light desaturation. */
.cr-location__map {
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
}
.cr-location__map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-line);
    z-index: 1;
}
.cr-location__map iframe {
    width: 100%;
    height: 360px;
    border: none;
    display: block;
    filter: grayscale(.2) contrast(.96);
}

.cr-location__meta {
    padding: 1.75rem 1rem .25rem;
}
.cr-location__name {
    font-family: var(--ff-serif);
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--ink);
}
.cr-location__address {
    font-size: .95rem;
    color: var(--muted);
    margin: .35rem 0 1.75rem;
}
.cr-location__btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.cr-location__pin {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 520px) {
    .cr-location__card { padding: 1rem; }
    .cr-location__map iframe { height: 300px; }
    .cr-location__meta { padding: 1.5rem .5rem .25rem; }
}

/* ── Closing ─────────────────────────────────── */
.cr-closing {
    padding: 3.5rem 1.5rem 1.5rem;
    text-align: center;
}

.cr-closing__text {
    font-family: var(--ff-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--muted);
}

/* ── RSVP section ────────────────────────────── */
.cr-rsvp {
    padding: 3rem 1rem 6rem;
}

.cr-rsvp .rsvp-layout-wrap {
    max-width: 600px;
    padding: 0;
}

.cr-rsvp .rsvp-layout-wrap .rsvp-form-col {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow-sm);
    padding: 1.5rem 1.25rem;
}

/* Corner brackets on the RSVP card via the shared .cr-corners technique, applied
   here through a descendant selector since this box's markup belongs to the
   shared <x-rsvp-form> component, not this theme's own template. */
.cr-rsvp .rsvp-layout-wrap .rsvp-form-col::before {
    content: '';
    position: absolute;
    inset: 12px;
    pointer-events: none;
    z-index: 2;
    background:
        linear-gradient(var(--rose), var(--rose)) 0 0/2px 26px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 0 0/26px 2px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 100% 0/2px 26px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 100% 0/26px 2px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 0 100%/2px 26px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 0 100%/26px 2px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 100% 100%/2px 26px no-repeat,
        linear-gradient(var(--rose), var(--rose)) 100% 100%/26px 2px no-repeat;
}
@media (max-width: 640px) {
    .cr-rsvp .rsvp-layout-wrap .rsvp-form-col::before {
        inset: 7px;
        background:
            linear-gradient(var(--rose), var(--rose)) 0 0/2px 15px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 0 0/15px 2px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 100% 0/2px 15px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 100% 0/15px 2px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 0 100%/2px 15px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 0 100%/15px 2px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 100% 100%/2px 15px no-repeat,
            linear-gradient(var(--rose), var(--rose)) 100% 100%/15px 2px no-repeat;
    }
}

.cr-form .form__group label {
    display: block;
    font-family: var(--ff-heading);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .4rem;
}

.cr-rsvp .rsvp-qr-strip__inner {
    border-color: var(--border);
    background: var(--white);
}
.cr-rsvp .rsvp-qr-calendar { color: var(--rose); }
.cr-rsvp .rsvp-qr-calendar:hover { color: var(--rose-deep); }

/* ── Album ───────────────────────────────────── */
.cr-album {
    padding: 5rem 1.5rem;
    text-align: center;
}
.cr-album__sub {
    color: var(--muted);
    font-size: .95rem;
    margin: .5rem 0 2.5rem;
}

/* ── Footer ──────────────────────────────────── */
.cr-footer {
    position: relative;
    background: var(--ink);
    color: rgba(255,255,255,.55);
    text-align: center;
    padding: 3.25rem 1.5rem 3rem;
    font-size: .82rem;
    line-height: 1.9;
}
.cr-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold-line);
}
.cr-footer a { color: var(--rose-soft); }

/* Rose-ornament divider — the hero's line · rose · line device, tuned for the
   dark footer (currentColor drives both the rose glyph and the fading rules). */
.cr-footer__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 15rem;
    margin: 0 auto 1.5rem;
    color: var(--rose-soft);
}
.cr-footer__ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, currentColor);
}
.cr-footer__ornament-line:last-child {
    background: linear-gradient(to left, transparent, currentColor);
}
.cr-footer__ornament-rose {
    flex-shrink: 0;
    width: 18px;
    height: 24px;
}

.cr-footer__names {
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: 1.75rem;
    color: rgba(255,255,255,.9);
    display: block;
    margin-bottom: .35rem;
}
.cr-footer__date {
    font-family: var(--ff-heading);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}
.cr-footer__signoff {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--rose-soft);
    max-width: 24rem;
    margin: 1.15rem auto 0;
}
.cr-footer__cal {
    margin-top: 1.75rem;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.cr-footer__cal-icon {
    width: 1rem;
    height: 1rem;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 700px) {
    .cr-hero { padding: 6.5rem 1.25rem 4.5rem; }
    .cr-couple { margin-top: -2.5rem; }
}

@media (max-width: 600px) {
    .cr-topbar__links {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: min(280px, 80vw);
        background: var(--ink);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 1.75rem;
        padding: 2rem 2.5rem;
        transform: translateX(100%);
        transition: transform .3s ease;
    }
    .cr-topbar__links.is-open {
        transform: translateX(0);
    }
    .cr-topbar__links a { color: rgba(255,255,255,.85); }

    .cr-topbar__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 2.5rem;
        height: 2.5rem;
        border: 0;
        background: rgba(24,24,27,.7);
        backdrop-filter: blur(8px);
        border-radius: 50%;
        cursor: pointer;
        z-index: 250;
        position: relative;
    }
    .cr-topbar__toggle span {
        display: block;
        width: 18px;
        height: 2px;
        margin: 0 auto;
        background: #fff;
        transition: transform .25s ease, opacity .25s ease;
    }
    .cr-topbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .cr-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .cr-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Countdown pill wraps to 2x2 on very narrow phones instead of shrinking each
   unit past legibility — kept as its own late rule (not folded into an earlier
   @media block) so equal-specificity declarations still resolve in source order. */
@media (max-width: 420px) {
    .cr-countdown__unit { min-width: 40%; }
}
