/* =========================================================
   PACKAGING EUROPE
   COMPACT FOOTER
   ========================================================= */

.pe-footer {
    width: 100%;
    background: #ffffff;
    color: #0b1430;
    border-top: 1px solid #e5e5e5;
}


/* =========================================================
   TOP ROW
   Topics / Sections / Events
   ========================================================= */

.pe-footer__top {
    width: min(100% - 3rem, 75rem);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-bottom: 1px solid #dcdcdc;
}


.pe-footer__top-item {
    min-height: 4.5rem;

    display: flex;
    align-items: center;
}


.pe-footer__section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    color: #0b1430;

    font-size: 1rem;
    font-weight: 700;

    text-decoration: none;

    transition: color 0.2s ease;
}


.pe-footer__section-link:hover {
    color: #e30613;
}


.pe-footer__arrow {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 400;
}


/* =========================================================
   SOCIAL ICONS
   ========================================================= */

.pe-footer__social {
    width: min(100% - 3rem, 75rem);
    min-height: 7rem;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;

    border-bottom: 1px solid #dcdcdc;
}

.pe-footer__social a {
    width: 2.75rem;
    height: 2.75rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;
    border: 1px solid #d8d8d8;

    color: #e30613;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.pe-footer__social a:hover {
    background: #e30613;
    border-color: #e30613;
    color: #ffffff;
}

.pe-footer__social svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}


/*
 * Ghost's social-links partial outputs its own list.
 * Force it into one horizontal row.
 */

.pe-footer__social ul {
    display: flex !important;
    align-items: center;
    justify-content: center;

    gap: 1rem;

    margin: 0;
    padding: 0;

    list-style: none;
}


.pe-footer__social li {
    margin: 0;
    padding: 0;
}


.pe-footer__social a {
    width: 2.75rem;
    height: 2.75rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;
    border: 1px solid #d8d8d8;

    color: #e30613;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.pe-footer__social a:hover {
    background: #e30613;
    border-color: #e30613;
    color: #ffffff;
}


/* Hide the text labels if the partial outputs them */

.pe-footer__social a span {
    display: none;
}


/* =========================================================
   LEGAL / BOTTOM AREA
   ========================================================= */

.pe-footer__bottom {
    width: 100%;

    padding: 1.5rem 1.5rem 1.75rem;

    text-align: center;
}


.pe-footer__legal {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 0.35rem 0.75rem;

    margin: 0 auto 0.75rem;
}


.pe-footer__legal a {
    color: #0b1430;

    font-size: 0.9rem;
    font-weight: 700;

    text-decoration: none;

    transition: color 0.2s ease;
}


.pe-footer__legal a:hover {
    color: #e30613;
}


.pe-footer__legal span {
    color: #0b1430;
    font-size: 0.9rem;
}


.pe-footer__copyright {
    color: #555555;

    font-size: 0.9rem;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 48rem) {

    .pe-footer__top {
        width: calc(100% - 2rem);

        grid-template-columns: 1fr;

        border-bottom: 1px solid #dcdcdc;
    }


    .pe-footer__top-item {
        min-height: 3.75rem;

        border-bottom: 1px solid #eeeeee;
    }


    .pe-footer__top-item:last-child {
        border-bottom: none;
    }


    .pe-footer__section-link {
        width: 100%;

        justify-content: flex-start;

        font-size: 1rem;
    }


    .pe-footer__social {
        width: calc(100% - 2rem);

        min-height: 6rem;
    }


    .pe-footer__social ul {
        gap: 0.75rem;
    }


    .pe-footer__social a {
        width: 2.5rem;
        height: 2.5rem;
    }


    .pe-footer__bottom {
        padding: 1.25rem 1rem 1.5rem;
    }


    .pe-footer__legal {
        gap: 0.3rem 0.6rem;
    }


    .pe-footer__legal a,
    .pe-footer__legal span {
        font-size: 0.85rem;
    }


    .pe-footer__copyright {
        font-size: 0.8rem;
    }

}