/* Only the event composition and its isolated preview. Normal home styles are unchanged. */
#major-event-slot {
    display: contents
}

.public-site .major-event {
    min-height: calc(100svh - var(--header-height));
    padding: clamp(32px, 5vh, 72px) var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center
}

.major-event-copy {
    max-width: 960px;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere
}

.public-site .major-event h1 {
    font-size: clamp(52px, 6.6vw, 104px);
    line-height: .98;
    max-width: 18ch;
    margin: 0 auto 16px;
    overflow-wrap: anywhere
}

.major-event-logo {
    width: auto;
    height: auto;
    max-width: min(180px, 70%);
    max-height: 64px;
    margin: 0 auto 20px;
    object-fit: contain
}

.major-event .eyebrow {
    margin-bottom: 12px
}

.major-event-text {
    font-size: clamp(22px, 2.1vw, 29px);
    line-height: 1.35;
    max-width: 48ch;
    margin: 0 auto 14px;
    color: var(--muted);
    overflow-wrap: anywhere
}

.major-event-date {
    font-size: clamp(23px, 2.4vw, 34px);
    line-height: 1.2;
    margin: 0 auto 16px;
    color: var(--accent-deep)
}

.major-event-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 28px
}

.major-event-actions a {
    min-height: 44px;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal
}

.major-event-media {
    width: min(1120px, 100%);
    margin: 0 auto;
    min-width: 0
}

.major-event-media img {
    width: 100%;
    height: auto;
    max-height: 52svh;
    object-fit: contain;
    margin: auto
}

.major-event-image-link {
    display: block;
    outline-offset: 6px
}

.major-event-media-action {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 18px;
    min-height: 44px;
    background: var(--paper-deep);
    border-bottom: 1px solid #1112;
    font-size: 19px;
    font-weight: 500;
    text-align: center;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    overflow-wrap: anywhere
}

@media(hover:hover) {
    .major-event-image-link:hover img {
        opacity: .94
    }

    .major-event-image-link:hover .major-event-media-action {
        color: var(--accent-deep)
    }
}

.major-event-image-link img {
    transition: opacity .18s ease
}

.major-event-image-link:focus-visible {
    outline: 2px solid var(--accent-deep)
}

@media(max-width:1200px) {
    .public-site .major-event {
        min-height: calc(100svh - var(--header-height));
        ;
        padding-block: 32px;
        gap: 20px;
        justify-content: center;
    }

    .public-site .major-event h1 {
        font-size: clamp(48px, 7vw, 76px)
    }

    .major-event-media img {
        max-height: none
    }
}

@media(max-width:600px) {
    .public-site .major-event {
        min-height: calc(100svh - var(--header-height));
        ;
        padding-block: 28px;
        gap: 20px;
        justify-content: center;
    }

    .public-site .major-event h1 {
        font-size: clamp(42px, 11vw, 60px);
        max-width: 16ch
    }

    .major-event-text {
        font-size: 22px
    }

    .major-event-date {
        font-size: 26px
    }

    .major-event .eyebrow {
        font-size: 14px
    }

    .major-event-actions {
        gap: 10px 22px
    }

    .major-event-media img {
        max-height: none
    }

    .major-event-media-action {
        font-size: 18px
    }

    .major-event-logo {
        max-height: 48px
    }
}

@media(max-height:500px) {
    .public-site .major-event {
        min-height:0;
        padding-block: 28px;
        gap: 24px
    }

    .public-site .major-event h1 {
        font-size: clamp(38px, 6vw, 60px)
    }

    .major-event-media img {
        max-height: none
    }

    .major-event-logo {
        max-height: 40px
    }
}

@media(prefers-reduced-motion:reduce) {
    .major-event-image-link img {
        transition: none
    }
}

.major-event-preview-bar {
    padding: 16px var(--gutter);
    border-bottom: 1px solid #1112;
    background: var(--paper-deep);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 19px
}

.major-event-preview-bar a {
    text-decoration: underline
}

/* Wide screens give the image its own editorial space; portrait stays composed around it. */
@media(min-width:1000px) and (min-height:600px) {
    .public-site .major-event {
        display: grid;
        min-height:calc(100svh - var(--header-height));
        grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
        align-content: center;
        align-items: center;
        gap: clamp(28px, 3vw, 48px);
        padding-block: 48px;
        text-align: left
    }

    .major-event-copy {
        max-width: 520px;
        justify-self: end
    }

    .public-site .major-event h1 {
        font-size: clamp(64px, 6.1vw, 98px);
        max-width: 11ch;
        margin-left: 0;
        margin-right: 0
    }

    .major-event-logo,
    .major-event-text,
    .major-event-date {
        margin-left: 0;
        margin-right: 0
    }

    .major-event-actions {
        justify-content: flex-start
    }

    .major-event-media {
        width: 100%
    }

    .major-event-media img {
        max-height: 70svh
    }

    .major-event-media-action {
        margin-left: 0;
        margin-right: 0
    }

    .major-event:not(:has(.major-event-media)) {
        grid-template-columns: 1fr;
        text-align: center
    }

    .major-event:not(:has(.major-event-media)) .major-event-copy {
        justify-self: center;
        max-width: 900px
    }

    .major-event:not(:has(.major-event-media)) h1,
    .major-event:not(:has(.major-event-media)) .major-event-text,
    .major-event:not(:has(.major-event-media)) .major-event-date,
    .major-event:not(:has(.major-event-media)) .major-event-logo {
        margin-inline: auto;
        max-width: 100%
    }

    .major-event:not(:has(.major-event-media)) .major-event-actions {
        justify-content: center
    }

    .major-event-media-fallback {
        grid-column: 1/-1;
        text-align: center
    }
}

/* Palette values stay on this event, including its controls. */
.major-event[data-event-palette] .button,
.major-event[data-event-palette] .button:hover,
.major-event[data-event-palette] .button:focus-visible {
    background: var(--ink);
    color: var(--paper)
}

.major-event[data-event-palette] .major-event-media-action {
    background: var(--paper);
    border-bottom-color: currentColor
}