.edm-public-document {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: #f3f6f9;
}

.edm-public-document > .edm-public-content {
    flex: 1;
    min-width: 0;
}

.edm-public-header {
    background-color: #005e90;
    padding: 8px 20px 0;
    font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.edm-public-header,
.edm-public-header * {
    box-sizing: border-box;
}

.headerBrandRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.headerBrandGroup {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

.headerLogoCa {
    height: 35px;
    max-width: 25vw;
    object-fit: contain;
}

.headerLogoCalhr {
    height: 46px;
    max-width: 55vw;
    object-fit: contain;
}

.headerPortalBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.45rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.headerPortalLeft {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
    color: #fff;
    font-weight: 500;
}

.headerPortalSeparator {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1;
    user-select: none;
    margin: 0 0.15rem;
}

.public-portal-home-link,
.public-portal-auth-link,
.public-developer-settings > summary {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 400;
    gap: 0.35rem;
    padding: 0.2rem 0.35rem;
    border: 1px solid transparent;
    border-radius: 0.3rem;
}

.public-portal-home-link:hover,
.public-portal-home-link:focus-visible,
.public-portal-auth-link:hover,
.public-portal-auth-link:focus-visible {
    color: #f5fbff;
}

.edm-public-header a:focus-visible,
.public-developer-settings > summary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.public-portal-home-link--active,
.public-portal-auth-link--active {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.42);
    border-left-color: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: #f5fbff;
}

.public-portal-home-link--active .public-portal-title,
.public-portal-auth-link--active .public-portal-auth-label {
    font-weight: 600;
}

.public-portal-title {
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.public-portal-home-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: currentColor;
}

.public-portal-auth-label,
.public-developer-settings > summary {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.95;
    letter-spacing: 0.01em;
}

.public-developer-settings > summary .rzi {
    font-size: 22px;
}

.public-developer-settings {
    position: relative;
    color: #fff;
}

.public-developer-settings > summary {
    border: 1px solid #f2c879;
    background-color: #7d4b00;
    cursor: pointer;
    list-style: none;
}

.public-developer-settings > summary:hover,
.public-developer-settings > summary:focus-visible {
    background-color: #603900;
}

.public-developer-settings > summary::-webkit-details-marker {
    display: none;
}

.public-developer-settings-panel {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 0.4rem);
    left: 0;
    width: max-content;
    min-width: 320px;
    max-width: min(440px, calc(100vw - 2rem));
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.4rem;
    background: #fff;
    color: #172b4d;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.public-developer-settings-panel .mb15 {
    margin-bottom: 0 !important;
}

.public-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--rz-base, #dfe5ec);
    text-align: center;
    font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
}

.public-footer__link {
    color: #005e90;
    font-weight: 600;
    text-decoration: none;
}

.public-footer__link:hover,
.public-footer__link:focus-visible {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .edm-public-header {
        padding: 12px 16px 0;
    }

    .headerBrandGroup {
        gap: 0.75rem;
    }
}

@media print {
    .edm-public-header,
    .public-footer {
        display: none;
    }
}
