/**
 * Shared P3 platform footer.
 * Product / Project Owner: Plus Three Project (P3)
 * Technical Development & Implementation: Sahel Lode Integrated Nigeria Limited
 */
.p3-shared-footer {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid #e5eaf0;
    background: #fff;
    color: #42526b;
    font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.p3-shared-footer__inner {
    display: flex;
    width: min(1180px, calc(100% - 40px));
    min-height: 88px;
    margin: 0 auto;
    padding: 18px 0;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
}

.p3-shared-footer__product,
.p3-shared-footer__credit {
    display: grid;
    gap: 3px;
}

.p3-shared-footer__product strong {
    color: #082b63;
    font-size: 14px;
    font-weight: 750;
}

.p3-shared-footer span {
    color: #42526b;
    font-size: 13px;
    line-height: 1.45;
}

.p3-shared-footer__credit {
    text-align: right;
}

.p3-shared-footer a {
    color: #082b63;
    font-weight: 750;
    text-decoration: none;
}

.p3-shared-footer a:hover,
.p3-shared-footer a:focus-visible {
    color: #00a651;
}

.p3-shared-footer--embedded {
    width: 100% !important;
    margin: 24px 0 0 !important;
}

.p3-shared-footer--embedded .p3-shared-footer__inner {
    width: 100%;
    max-width: none;
    padding-right: 4px;
    padding-left: 4px;
}

@media (min-width: 992px) {
    body.portal-body .p3-shared-footer,
    body.member-enterprise-body .p3-shared-footer,
    body.command-body .p3-shared-footer {
        width: calc(100% - var(--member-sidebar-width, var(--p3-sidebar-width, 270px)));
        margin-left: var(--member-sidebar-width, var(--p3-sidebar-width, 270px));
        overflow: hidden;
    }

    body.command-body .p3-shared-footer--embedded {
        width: 100% !important;
        margin-left: 0 !important;
    }

    body.portal-body .p3-shared-footer__inner,
    body.member-enterprise-body .p3-shared-footer__inner,
    body.command-body .p3-shared-footer__inner {
        width: 100%;
        max-width: none;
        padding-right: 28px;
        padding-left: 28px;
    }
}

@media (max-width: 640px) {
    .p3-shared-footer__inner {
        width: min(100% - 28px, 1180px);
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .p3-shared-footer__credit {
        text-align: left;
    }
}

@media print {
    .p3-shared-footer {
        display: none !important;
    }
}
