/* 
   Zizania - ESPA Banner (reusable component)

   Publicity banner shown above the Hero (and reusable
   on other pages). Style: floating white card on the
   base surface, with a hand-drawn lime underline under
   the kicker label. Tonal, no borders, ambient shadow.
    */

.zz-espa-banner {
    background: var(--surface);
    padding-block: clamp(1rem, 3vw, 1.7rem);
}

.zz-espa-banner__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    background: var(--surface-container-lowest);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: 0 20px 40px rgba(var(--on-surface-rgb), 0.06);
}

.zz-espa-banner__content {
    min-width: 0;
}

.zz-espa-banner__label {
    opacity: 1;
    color: var(--on-surface-variant);
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 0.75rem;
}

.zz-espa-banner__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.6vw, 1.0625rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--on-surface);
    max-width: 46ch;
}

.zz-espa-banner__media {
    flex: 0 0 auto;
    margin: 0;
    line-height: 0;
}

.zz-espa-banner__img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
}

@media (max-width: 782px) {
    .zz-espa-banner__card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .zz-espa-banner__media {
        width: 100%;
    }

    .zz-espa-banner__img {
        max-width: 100%;
    }
}

/* Pull the hero up when it directly follows the banner */
.zz-espa-banner + .zizania-hero {
    padding-block-start: 0;
}

/* When the banner is present, drop the hero's fullscreen centering on
   desktop so the hero content sits right below the banner. */
@media (min-width: 768px) {
    .zz-espa-banner + .zizania-hero.zz-section--fullscreen {
        min-height: auto;
        justify-content: flex-start;
    }
}
