/* AMANDA_CARE_STAGE8_R2H5_ALIGN_HEADER_BEGIN */
/* ONLY: Portal Lapor + Portal Track, via the R2H3 page-specific stylesheet. */
/* Goal: compact pill, now aligned to the same centered column as the portal navbar. */
/* Do not add this stylesheet to global layouts or other public pages. */

body.portal-theme .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 22px;
    flex-wrap: wrap;
    min-height: 0;
    /* Follow the same 1180px centered rail and inner padding as the portal navbar. */
    width: min(1180px, 100%);
    max-width: 1180px;
    box-sizing: border-box;
    margin: 10px auto 0;
    padding: 8px 14px 0 18px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #71819a;
    font-family: 'Albert Sans', system-ui, sans-serif;
}

/* The group is deliberately small: no cream/gold outlined banner. */
body.portal-theme .topbar > div:first-child,
body.portal-theme .topbar .topbar-service-group {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 3px 11px 3px 3px;
    background: linear-gradient(180deg, #f6f8fd 0%, #ebf1f9 100%);
    border: 1px solid rgba(124, 143, 174, 0.13);
    border-radius: 999px;
    box-shadow: 0 4px 12px -9px rgba(36, 53, 84, 0.38);
    color: #71819a;
    font-family: 'Albert Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: normal;
}

/* Rose-to-maroon active chip: the compact look in reference image 2. */
body.portal-theme .topbar .topbar-badge,
body.portal-theme .topbar .topbar-service-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 25px;
    margin: 0;
    padding: 5px 11px;
    background: linear-gradient(180deg, #d98b9b 0%, #a04d65 35%, #662225 100%);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 2px 5px rgba(75, 25, 40, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-family: 'Albert Sans', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

/* Lighter, quieter companion label. Classic markup inherits this from div:first-child. */
body.portal-theme .topbar .topbar-service-text {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #71819a;
    font-family: 'Albert Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Contact information remains available, but is no longer part of a giant banner. */
body.portal-theme .topbar > div:last-child:not(:first-child),
body.portal-theme .topbar .topbar-meta {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #71819a;
    font-family: 'Albert Sans', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
    overflow-wrap: anywhere;
}
body.portal-theme .topbar > div:last-child:not(:first-child) strong,
body.portal-theme .topbar .topbar-meta strong {
    color: #536c91;
    font-weight: 650;
}

@media (max-width: 820px) {
    body.portal-theme .topbar {
        align-items: flex-start;
        gap: 6px;
        padding: 8px 12px 0;
    }
    body.portal-theme .topbar > div:first-child,
    body.portal-theme .topbar .topbar-service-group {
        flex: 0 1 auto;
        max-width: 100%;
        width: fit-content;
        min-height: 0;
        gap: 7px;
        padding: 3px 10px 3px 3px;
        border-radius: 999px;
    }
    body.portal-theme .topbar > div:last-child:not(:first-child),
    body.portal-theme .topbar .topbar-meta {
        flex: 1 1 100%;
        width: 100%;
        text-align: left;
        font-size: 10.5px;
    }
}
@media (max-width: 380px) {
    body.portal-theme .topbar .topbar-badge,
    body.portal-theme .topbar .topbar-service-pill {
        font-size: 10px;
        padding: 5px 9px;
    }
    body.portal-theme .topbar > div:first-child,
    body.portal-theme .topbar .topbar-service-group {
        font-size: 11px;
        gap: 6px;
        border-radius: 18px;
    }
    body.portal-theme .topbar .topbar-service-text { font-size: 11px; }
}
/* AMANDA_CARE_STAGE8_R2H5_ALIGN_HEADER_END */
