/* Public shell styles. Source: layout-public-header.php and layout-public-footer.php. */
:root {
    --mt-primary: #D32675;
    --mt-primary-dark: #CC3366;
    --mt-action: #2381CF;
    --mt-success: #16B84E;
    --mt-orange: #F05F1D;
    --mt-text: #54595F;
    --mt-muted: #7A7A7A;
    --mt-soft: #FAFAFA;
    --mt-border: #F1D6E2;
    --mt-shadow: 0 0 5px rgba(0, 0, 0, .13);
    --mt-bottom-nav-height: 5.25rem;
}

body {
    background: var(--mt-soft);
    color: var(--mt-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: calc(var(--mt-bottom-nav-height) + env(safe-area-inset-bottom));
}

body > main {
    flex: 1 0 auto;
}

.mt-skip-link {
    background: #fff;
    border: 1px solid var(--mt-primary);
    border-radius: .5rem;
    color: var(--mt-primary);
    left: .75rem;
    padding: .45rem .7rem;
    position: fixed;
    top: .75rem;
    transform: translateY(-150%);
    transition: transform .15s ease;
    z-index: 2000;
}

.mt-skip-link:focus {
    transform: translateY(0);
}

.site-footer {
    margin-top: auto !important;
}

.btn-primary {
    --bs-btn-bg: var(--mt-primary);
    --bs-btn-border-color: var(--mt-primary);
    --bs-btn-hover-bg: var(--mt-primary-dark);
    --bs-btn-hover-border-color: var(--mt-primary-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--mt-primary);
    --bs-btn-border-color: var(--mt-primary);
    --bs-btn-hover-bg: var(--mt-primary);
    --bs-btn-hover-border-color: var(--mt-primary);
}

.hero-band {
    background: #fff;
    border-bottom: 1px solid var(--mt-border);
}

.soft-panel {
    background: #fff;
    border: 1px solid var(--mt-border);
    border-radius: 14px;
    box-shadow: var(--mt-shadow);
}

.step-number {
    align-items: center;
    background: var(--mt-primary);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.mt-app-topbar {
    background: #fff;
    border-bottom: 1px solid rgba(211, 38, 117, .16);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    position: sticky;
    top: 0;
    z-index: 1035;
}

.mt-topbar-inner {
    align-items: center;
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr auto 1fr;
    min-height: 3.55rem;
}

.mt-brand {
    color: var(--mt-primary);
    font-size: 1.2rem;
    justify-self: center;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

.mt-icon-button {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(211, 38, 117, .18);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    color: var(--mt-primary);
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 700;
    height: 2.35rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    text-decoration: none;
    width: 2.35rem;
}

.mt-icon-button:hover,
.mt-icon-button:focus {
    border-color: var(--mt-primary);
    color: var(--mt-primary-dark);
}

.mt-icon-button-left {
    justify-self: start;
}

.mt-icon-button-right {
    justify-self: end;
}

.mt-public-menu .list-group-item.active {
    background: var(--mt-primary);
    border-color: var(--mt-primary);
}

.mt-profile-shell {
    margin-inline: auto;
    max-width: 980px;
    min-width: 0;
    padding-bottom: 1rem;
    width: 100%;
}

.mt-profile-card,
.mt-form-card {
    background: #fff;
    border: 1px solid rgba(211, 38, 117, .14);
    border-radius: 14px;
    box-shadow: var(--mt-shadow);
    max-width: 100%;
    min-width: 0;
}

.mt-profile-hero {
    position: relative;
    text-align: center;
}

.mt-avatar {
    border: 4px solid var(--mt-primary);
    box-shadow: 0 4px 14px rgba(211, 38, 117, .18);
    height: 8rem;
    width: 8rem;
}

.mt-avatar-wrap {
    display: inline-block;
    line-height: 0;
    position: relative;
}

.mt-avatar-award {
    align-items: center;
    background-color: white;
    border: 2px solid var(--mt-panel);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(211, 38, 117, .18);
    display: inline-flex;
    height: 1.65rem;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: .15rem;
    top: .15rem;
    width: 1.65rem;
}

.mt-avatar-placeholder {
    align-items: center;
    background: #fff4f9;
    color: var(--mt-primary);
    display: inline-flex;
    font-size: 2.8rem;
    font-weight: 700;
    justify-content: center;
}

.mt-profile-name {
    color: var(--mt-primary);
    letter-spacing: 0;
}

.mt-profile-role,
.mt-muted {
    color: var(--mt-muted);
}

.mt-chip {
    align-items: center;
    background: #fff5fa;
    border: 1px solid rgba(211, 38, 117, .18);
    border-radius: 999px;
    color: var(--mt-text);
    display: inline-flex;
    font-size: .82rem;
    gap: .35rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: .32rem .7rem;
    text-align: center;
    white-space: normal;
}

.mt-chip-success {
    background: #f0fff5;
    border-color: rgba(22, 184, 78, .2);
    color: #0f7c36;
}

.mt-readable-page,
.mt-readable-page *,
.mt-readable-page .row,
.mt-readable-page [class*="col-"],
.mt-readable-page .card,
.mt-readable-page .soft-panel {
    max-width: 100%;
    min-width: 0;
}

.mt-readable-page .card,
.mt-readable-page .soft-panel {
    width: 100%;
}

.mt-readable-shell {
    margin-inline: auto;
    max-width: 920px;
    min-width: 0;
    width: 100%;
}

.mt-readable-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    min-width: 0;
    width: 100%;
}

.mt-readable-page p,
.mt-readable-page h1,
.mt-readable-page h2,
.mt-readable-page dd {
    overflow-wrap: anywhere;
}

.mt-section-title {
    align-items: center;
    color: var(--mt-text);
    display: flex;
    font-size: 1rem;
    gap: .55rem;
    margin-bottom: .75rem;
}

.mt-section-icon {
    align-items: center;
    background: #fff0f7;
    border-radius: 999px;
    color: var(--mt-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .8rem;
    font-weight: 800;
    height: 1.8rem;
    justify-content: center;
    width: 1.8rem;
}

.mt-anchor-nav {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .25rem;
}

.mt-anchor-nav a {
    background: #fff;
    border: 1px solid rgba(211, 38, 117, .16);
    border-radius: 999px;
    color: var(--mt-primary);
    flex: 0 0 auto;
    font-size: .85rem;
    padding: .45rem .75rem;
    text-decoration: none;
}

.mt-empty-state {
    background: #fafafa;
    border: 1px dashed #ead9e2;
    border-radius: 12px;
    color: var(--mt-muted);
    margin-bottom: 0;
    padding: .85rem;
}

.mt-danger-card {
    border-color: rgba(220, 53, 69, .25);
}

.mt-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: center;
}

.mt-page-actions > * {
    max-width: 100%;
}

.mt-page-actions .btn {
    min-width: 0;
    white-space: normal;
}

@media (max-width: 575.98px) {
    .mt-profile-shell {
        max-width: calc(100vw - 1.5rem);
    }

    .mt-profile-card {
        overflow: hidden;
    }

    .mt-page-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        margin-inline: auto;
        max-width: 100%;
        width: 100%;
    }

    .mt-page-actions > * {
        min-width: 0;
        width: 100%;
    }

    .mt-page-actions > .btn {
        width: 100%;
    }
}

    .private-bottom-nav {
        border-color: var(--mt-border) !important;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -3px 14px rgba(0, 0, 0, .07);
        z-index: 1030;
    }

    .private-bottom-nav.bg-white {
        background: #fff !important;
    }

    .private-bottom-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: var(--mt-bottom-nav-height);
        max-width: 100%;
        padding-left: .35rem;
        padding-right: .35rem;
        width: 100%;
    }

    .private-bottom-link {
        align-items: center;
        background: transparent;
        border: 0;
        color: var(--mt-muted);
        display: inline-flex;
        flex-direction: column;
        font-size: .72rem;
        font-weight: 600;
        gap: .22rem;
        justify-content: center;
        line-height: 1.1;
        min-width: 0;
        padding: .3rem .15rem;
        text-decoration: none;
    }

    .private-bottom-link i {
        align-items: center;
        background: var(--mt-icon-soft, #fff3f8);
        border-radius: 999px;
        color: var(--mt-primary);
        display: inline-flex;
        font-size: 1rem;
        height: 1.75rem;
        justify-content: center;
        line-height: 1;
        width: 1.75rem;
    }

    .private-bottom-link:nth-child(1) i {
        background: #fff2eb;
        color: var(--mt-orange);
    }

    .private-bottom-link:nth-child(2) i {
        background: #edf7ff;
        color: var(--mt-action);
    }

    .private-bottom-link:nth-child(4) i {
        background: #eefcf3;
        color: var(--mt-success);
    }

    .private-bottom-link-main {
        transform: translateY(-.7rem);
    }

    .private-bottom-link-main i {
        background: var(--mt-primary);
        box-shadow: 0 7px 18px rgba(211, 38, 117, .28);
        color: #fff;
        font-size: 1.25rem;
        height: 3rem;
        width: 3rem;
    }

    .private-bottom-link.active,
    .private-bottom-link:hover,
    .private-bottom-link:focus {
        color: var(--mt-primary);
    }

    .private-bottom-link.active i,
    .private-bottom-link:hover i,
    .private-bottom-link:focus i {
        background: var(--mt-primary);
        color: #fff;
    }

    .private-bottom-badge {
        left: calc(50% + .75rem);
        top: .45rem;
    }

    .private-bottom-link.disabled {
        cursor: not-allowed;
        opacity: .45;
        pointer-events: none;
    }
