/* Shared brand header: public pages + staff app (includes/header.php, includes/public_header.php) */

.public-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 20px;
    background: #f0f8f0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 12px 36px rgba(20, 46, 76, 0.08);
    margin-bottom: 20px;
}

.public-header__brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.public-header__logo {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    border: 1px solid rgba(31, 54, 70, 0.1);
}

.public-header__text {
    min-width: 0;
}

.public-header__title {
    margin: 0;
    font-size: clamp(1.4rem, 2.2vw, 2.4rem);
    line-height: 1.05;
    color: #50C878;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.public-header__subtitle {
    margin: 6px 0 0;
    font-size: 1rem;
    color: #800000;
}

.public-header__label {
    margin: 0;
    font-size: 1rem;
    color: #7b2f2f;
    font-weight: 700;
    text-align: right;
}

.public-header__school-year {
    margin: 4px 0 0;
    color: #800000;
    font-size: 0.96rem;
    text-align: right;
}

.public-header__aside {
    min-width: 0;
    flex: 0 1 auto;
}

.public-header__user-panel {
    text-align: right;
}

.public-header__welcome {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #800000;
    font-weight: 600;
}

.public-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.public-header__actions form {
    margin: 0;
}

.mps-header-separator {
    border: 0;
    border-top: 1px solid rgba(31, 54, 70, 0.12);
    margin: 0;
}

@media (max-width: 720px) {
    .public-header {
        text-align: center;
        justify-content: center;
    }

    .public-header__label,
    .public-header__school-year {
        text-align: center;
    }

    .public-header__user-panel {
        text-align: center;
    }

    .public-header__actions {
        justify-content: center;
    }
}
