.iea-premium-footer {
    --iea-footer-bg: #F5F5F2;
    --iea-footer-ink: #111111;
    --iea-footer-accent: #00626a;
    /* Break out of Gutenberg/theme content constraints so the footer always
       occupies the full browser viewport, even when the shortcode lives
       inside a constrained Group block. */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    background: var(--iea-footer-bg);
    color: var(--iea-footer-ink);
    font-family: inherit;
    box-sizing: border-box;
    clear: both;
}

.iea-premium-footer *,
.iea-premium-footer *::before,
.iea-premium-footer *::after {
    box-sizing: border-box;
}

.iea-premium-footer__inner {
    /* Desktop content is deliberately centered at 80% of the viewport. */
    width: 80vw;
    max-width: 80vw;
    margin: 0 auto;
    padding: 118px 0 30px;
}

.iea-premium-footer__top {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 110px repeat(3, minmax(0, 1fr)) 190px;
    column-gap: clamp(28px, 3.2vw, 80px);
    align-items: start;
    min-height: 250px;
}

.iea-premium-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 17px;
    padding-top: 0;
}

.iea-premium-footer__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.iea-premium-footer__logo--primary {
    max-width: 74px;
    max-height: 74px;
}

.iea-premium-footer__logo--secondary {
    max-width: 108px;
    max-height: 108px;
}

.iea-premium-footer__title {
    margin: 0 0 25px;
    color: var(--iea-footer-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: .005em;
}

.iea-premium-footer p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.55;
}

.iea-premium-footer p:last-child {
    margin-bottom: 0;
}

.iea-premium-footer__details {
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
}

.iea-premium-footer__details div {
    min-height: 22px;
}

.iea-premium-footer__details a,
.iea-premium-footer__legal a {
    color: inherit;
    text-decoration: none;
}

.iea-premium-footer__details a:hover,
.iea-premium-footer__legal a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.iea-premium-footer__social-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
}

.iea-premium-footer__social-link {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .22s ease, opacity .22s ease;
}

.iea-premium-footer__social-link:hover,
.iea-premium-footer__social-link:focus-visible {
    transform: translateY(-2px);
    opacity: .78;
}

.iea-premium-footer__social-link svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.iea-premium-footer__social-link--instagram svg {
    width: 17px;
    height: 17px;
}

.iea-premium-footer__bottom {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 34px auto 0;
    border-top: 1px solid rgba(0,0,0,.88);
    padding-top: 20px;
    min-height: 44px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-size: 12px;
    line-height: 1.4;
}

.iea-premium-footer__copyright {
    grid-column: 1;
    justify-self: start;
    white-space: nowrap;
}

.iea-premium-footer__legal {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .iea-premium-footer__inner {
        padding-top: 82px;
    }

    .iea-premium-footer__top {
        grid-template-columns: 130px repeat(2, minmax(210px, 1fr));
        gap: 56px 70px;
        min-height: 0;
    }

    .iea-premium-footer__social {
        grid-column: 2 / -1;
    }
}

@media (max-width: 820px) {
    .iea-premium-footer__inner {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        padding: 58px 0 28px;
    }

    .iea-premium-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 48px 34px;
    }

    .iea-premium-footer__brand {
        grid-row: span 2;
        justify-self: start;
        align-items: flex-start;
    }

    .iea-premium-footer__social {
        grid-column: auto;
    }

    .iea-premium-footer__bottom {
        margin-top: 54px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .iea-premium-footer__copyright,
    .iea-premium-footer__legal {
        grid-column: 1;
        justify-self: start;
    }

    .iea-premium-footer__legal {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px 20px;
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .iea-premium-footer__inner {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        padding: 48px 0 24px;
    }

    .iea-premium-footer__top {
        display: flex;
        flex-direction: column;
        gap: 38px;
    }

    .iea-premium-footer__brand {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        margin-bottom: 6px;
    }

    .iea-premium-footer__logo--primary {
        max-width: 68px;
        max-height: 68px;
    }

    .iea-premium-footer__logo--secondary {
        max-width: 90px;
        max-height: 90px;
    }

    .iea-premium-footer__title {
        margin-bottom: 16px;
        font-size: 19px;
    }

    .iea-premium-footer__details,
    .iea-premium-footer p {
        font-size: 15px;
        line-height: 1.55;
    }

    .iea-premium-footer__social-link {
        width: 34px;
        height: 34px;
    }

    .iea-premium-footer__bottom {
        margin-top: 48px;
        padding-top: 18px;
        font-size: 12px;
    }

    .iea-premium-footer__top {
        align-items: center;
    }

    .iea-premium-footer__brand {
        width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .iea-premium-footer__campus,
    .iea-premium-footer__social {
        width: 100%;
        text-align: center;
    }

    .iea-premium-footer__social-list {
        justify-content: center;
    }

    .iea-premium-footer__bottom {
        justify-items: center;
        text-align: center;
    }

    .iea-premium-footer__copyright,
    .iea-premium-footer__legal {
        width: 100%;
        justify-self: center;
        text-align: center;
    }

    .iea-premium-footer__legal {
        justify-content: center;
    }

    .iea-premium-footer__copyright {
        white-space: normal;
    }
}
