/* The Editorial website layout. Shared website styles are in
   Components/WeddingWebsite/WebsiteRenderer.razor.css, which this file builds on.

   This is a plain stylesheet, not scoped CSS, so selectors start at
   .ww-renderer[data-render-mode]: that weighs the same as the scoped
   ".ww-renderer[b-…]" the shared rules use, and this file loads after them
   (index.html), so these rules win wherever both apply, as before. */

.ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial {
    display: grid;
    min-height: min(720px, calc(100vh - 68px));
    align-items: center;
    padding: clamp(48px, 8vw, 120px) clamp(24px, 9vw, 144px);
}

.ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.34fr);
    align-items: center;
    gap: clamp(28px, 7vw, 108px);
    width: min(100%, 1320px);
    margin: 0 auto;
}

.ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial__copy {
    max-width: 820px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial .ww-kicker {
    max-width: 420px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial .ww-heading {
    font-size: calc(clamp(3rem, 9vw, 7.5rem) * var(--ww-heading-scale, 1));
    letter-spacing: var(--ww-heading-tracking, -0.055em);
    line-height: 0.98;
    overflow-wrap: anywhere;
}

.ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial .ww-subheading {
    margin: 26px 0 0;
    max-width: 620px;
    font-size: calc(clamp(1rem, 1.8vw, 1.2rem) * var(--ww-subheading-scale, 1));
    line-height: 1.7;
}

.ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial .ww-venue-summary {
    margin-top: 24px;
    font-size: calc(0.95rem * var(--ww-body-scale, 1));
    line-height: 1.65;
}

.ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial__date {
    display: grid;
    min-height: 220px;
    place-items: center;
    border-top: 1px solid var(--ww-accent);
    border-bottom: 1px solid var(--ww-accent);
    color: var(--ww-heading);
    text-align: center;
}

.ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial__date time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--ww-heading-font);
    font-style: var(--ww-heading-style, normal);
}

.ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial__day {
    color: var(--ww-accent);
    font-size: calc(clamp(4rem, 8vw, 7rem) * var(--ww-heading-scale, 1));
    line-height: 0.95;
}

.ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial__month {
    font-size: calc(1.15rem * var(--ww-heading-scale, 1));
}

.ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial__ornament {
    color: var(--ww-accent);
    font-size: calc(3rem * var(--ww-heading-scale, 1));
}

.ww-renderer[data-render-mode] .ww-shell .ww-story-editorial__inner {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(36px, 9vw, 144px);
    width: min(100%, 1240px);
    margin: 0 auto;
}

.ww-renderer[data-render-mode] .ww-shell .ww-story-editorial__title {
    position: relative;
    padding-bottom: 30px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-story-editorial__title .ww-heading {
    max-width: 500px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-story-editorial__mark {
    display: block;
    margin-top: 28px;
    color: var(--ww-accent);
    font-size: 1.6rem;
}

.ww-renderer[data-render-mode] .ww-shell .ww-story-editorial__body {
    max-width: 720px;
    margin-top: 5px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    align-items: start;
    gap: clamp(40px, 8vw, 128px);
    width: min(100%, 1320px);
    margin: 0 auto;
}

.ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial__title .ww-heading {
    max-width: 760px;
    font-size: calc(clamp(3rem, 8vw, 7rem) * var(--ww-heading-scale, 1));
}

.ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial__name {
    margin-top: 30px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial__details {
    border-top: 1px solid var(--ww-accent);
    padding-top: 22px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial__block + .ww-venue-editorial__block {
    margin-top: 32px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial__block .ww-kicker {
    margin-bottom: 12px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 32px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-story-editorial.has-photo .ww-story-editorial__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    grid-template-areas:
        "title photo"
        "body photo";
    /* The story sits under its heading; any spare height beside the photo goes below it. */
    grid-template-rows: auto 1fr;
    gap: 0 clamp(36px, 7vw, 112px);
}

.ww-renderer[data-render-mode] .ww-shell .ww-story-editorial.has-photo .ww-story-editorial__title {
    grid-area: title;
}

.ww-renderer[data-render-mode] .ww-shell .ww-story-editorial.has-photo .ww-story-editorial__body {
    grid-area: body;
    margin-top: 0;
}

.ww-renderer[data-render-mode] .ww-shell .ww-story-editorial__photo {
    grid-area: photo;
    width: 100%;
    aspect-ratio: 4 / 5;
}

.ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial.has-photo .ww-venue-editorial__inner {
    row-gap: clamp(32px, 5vw, 64px);
}

.ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial__photo {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 21 / 9;
}

.ww-renderer[data-render-mode] .ww-shell .ww-rsvp-editorial__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
    align-items: center;
    gap: clamp(40px, 9vw, 144px);
    width: min(100%, 1280px);
    margin: 0 auto;
}

.ww-renderer[data-render-mode] .ww-shell .ww-rsvp-editorial__copy .ww-heading {
    max-width: 780px;
    font-size: calc(clamp(2.8rem, 7vw, 6.4rem) * var(--ww-heading-scale, 1));
}

.ww-renderer[data-render-mode] .ww-shell .ww-rsvp-editorial__copy .ww-rsvp__supporting {
    margin-left: 0;
}

.ww-renderer[data-render-mode] .ww-shell .ww-rsvp-editorial__action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ww-renderer[data-render-mode] .ww-shell .ww-rsvp-editorial__rule {
    width: 100%;
    max-width: 280px;
    border-top: 1px solid var(--ww-accent);
    margin-bottom: 28px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-rsvp-editorial__note {
    margin: 20px 0 0;
    color: var(--ww-text);
    font-size: calc(0.9rem * var(--ww-body-scale, 1));
    line-height: 1.6;
}

.ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 20px;
    border-top: 1px solid color-mix(in srgb, var(--ww-accent) 55%, var(--ww-background));
    padding: 22px 0 28px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__number {
    color: var(--ww-accent);
    font-family: var(--ww-heading-font);
    font-size: calc(1.1rem * var(--ww-heading-scale, 1));
    line-height: 1.4;
    font-weight: var(--ww-heading-weight, 400);
    letter-spacing: 0.08em;
    font-style: var(--ww-heading-style, normal);
}

.ww-renderer[data-render-mode] .ww-shell .ww-faq-editorial__item summary {
    min-height: 86px;
    font-family: var(--ww-item-title-font);
    font-size: calc(clamp(1.45rem, 3vw, 2.35rem) * var(--ww-item-title-scale, 1));
    line-height: 1.2;
    font-weight: var(--ww-item-title-weight, 400);
    letter-spacing: var(--ww-item-title-tracking, -0.02em);
    font-style: var(--ww-item-title-style, normal);
}

.ww-renderer[data-render-mode] .ww-shell .ww-faq-editorial__item .ww-faq__answer {
    padding-bottom: 26px;
}

@media (max-width: 800px) {
    .ww-renderer[data-render-mode] .ww-shell .ww-story-editorial__inner,
    .ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial__inner,
    .ww-renderer[data-render-mode] .ww-shell .ww-rsvp-editorial__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-story-editorial.has-photo .ww-story-editorial__inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "title"
            "photo"
            "body";
        grid-template-rows: auto;
        gap: 32px;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-story-editorial__photo {
        width: min(100%, 420px);
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial__photo {
        aspect-ratio: 3 / 2;
    }
}

@media (max-width: 640px) {
    .ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial {
        min-height: calc(100vh - 68px);
        padding: 56px 24px;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial__date {
        min-height: 150px;
        width: min(100%, 260px);
        justify-self: end;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-welcome-editorial__day {
        font-size: calc(4rem * var(--ww-heading-scale, 1));
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-story-editorial__inner,
    .ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial__inner,
    .ww-renderer[data-render-mode] .ww-shell .ww-rsvp-editorial__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-story-editorial__title {
        padding-bottom: 0;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-story-editorial__mark {
        margin-top: 18px;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial__title .ww-heading,
    .ww-renderer[data-render-mode] .ww-shell .ww-rsvp-editorial__copy .ww-heading {
        font-size: calc(clamp(2.6rem, 12vw, 4.2rem) * var(--ww-heading-scale, 1));
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-venue-editorial__details {
        padding-top: 18px;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-rsvp-editorial__action {
        align-items: flex-start;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-rsvp-editorial__rule {
        max-width: none;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__row {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 14px;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-faq-editorial__item summary {
        min-height: 72px;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__link {
        max-width: 100%;
    }
}

/* Editorial list sections (Travel, Accommodation, FAQ, Gifts): a full-width masthead with the
   heading on one line and the introduction beside it, then the items using the full width.
   Headings once sat in a narrow side column and broke mid-word. */
.ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__inner,
.ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__inner,
.ww-renderer[data-render-mode] .ww-shell .ww-faq-editorial__inner,
.ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4cqi, 56px);
    width: min(100%, 1180px);
    margin: 0 auto;
}

.ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__title,
.ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__title,
.ww-renderer[data-render-mode] .ww-shell .ww-faq-editorial__title,
.ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__title {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
    column-gap: clamp(32px, 6cqi, 96px);
    border-bottom: 1px solid color-mix(in srgb, var(--ww-heading) 30%, var(--ww-background));
    padding-bottom: clamp(24px, 3cqi, 40px);
}

.ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__title .ww-kicker,
.ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__title .ww-kicker,
.ww-renderer[data-render-mode] .ww-shell .ww-faq-editorial__title .ww-kicker,
.ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__title .ww-kicker {
    grid-column: 1 / -1;
}

.ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__title .ww-heading,
.ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__title .ww-heading,
.ww-renderer[data-render-mode] .ww-shell .ww-faq-editorial__title .ww-heading,
.ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__title .ww-heading {
    grid-column: 1 / -1;
    font-size: calc(clamp(2.4rem, 7cqi, 5.5rem) * var(--ww-heading-scale, 1));
}

/* With an introduction, the heading shares the masthead; without one it has the full width. */
.ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__title:has(.ww-section-intro) .ww-heading,
.ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__title:has(.ww-section-intro) .ww-heading,
.ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__title:has(.ww-gifts__intro) .ww-heading {
    grid-column: 1;
}

/* Travel options and gift cards carry their own top rule, so their masthead has none. */
.ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__title,
.ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__title {
    border-bottom: 0;
    padding-bottom: 0;
}

.ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__title .ww-section-intro,
.ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__title .ww-section-intro,
.ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__title .ww-gifts__intro {
    grid-column: 2;
    max-width: 52ch;
    margin: 0;
    text-align: left;
}

/* Travel: numbered options side by side. */
.ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    column-gap: clamp(28px, 4cqi, 56px);
}

/* Accommodation: name, description and booking details in ruled rows. */
.ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__row {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 0.8fr);
    column-gap: clamp(24px, 4cqi, 56px);
    row-gap: 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--ww-accent) 45%, var(--ww-background));
    padding: 28px 0;
}

.ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__row:first-child {
    padding-top: 4px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__description p {
    margin: 0;
}

.ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__meta {
    min-width: 0;
}

.ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__meta address {
    margin-top: 0;
}

/* FAQ: a comfortable reading width under the masthead. */
.ww-renderer[data-render-mode] .ww-shell .ww-faq-editorial__list {
    width: min(100%, 880px);
}

.ww-renderer[data-render-mode] .ww-shell .ww-faq-editorial__item summary {
    min-height: 72px;
    font-size: calc(clamp(1.25rem, 2.4cqi, 1.75rem) * var(--ww-item-title-scale, 1));
}

/* Gifts: each registry as a card, link at the foot. */
.ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(20px, 3cqi, 40px);
}

.ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__row {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    border-top: 2px solid var(--ww-accent);
    padding-top: 22px;
}

.ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__copy {
    flex: 1;
    min-width: 0;
}

.ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__link {
    align-self: flex-start;
}

@media (max-width: 800px) {
    .ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__title,
    .ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__title,
    .ww-renderer[data-render-mode] .ww-shell .ww-faq-editorial__title,
    .ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__title {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 18px;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__title .ww-section-intro,
    .ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__title .ww-section-intro,
    .ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__title .ww-gifts__intro {
        grid-column: 1;
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-travel-editorial__title .ww-heading,
    .ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__title .ww-heading,
    .ww-renderer[data-render-mode] .ww-shell .ww-faq-editorial__title .ww-heading,
    .ww-renderer[data-render-mode] .ww-shell .ww-gifts-editorial__title .ww-heading {
        font-size: calc(clamp(2.1rem, 10cqi, 3.75rem) * var(--ww-heading-scale, 1));
    }

    .ww-renderer[data-render-mode] .ww-shell .ww-accommodation-editorial__row {
        grid-template-columns: minmax(0, 1fr);
    }
}
