/* One approved, outlined SVG for every portal wordmark. Keep its original colors and aspect ratio. */
.portal-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    max-width: 301px;
    line-height: 0;
    vertical-align: middle;
    text-decoration: none;
    border-radius: 8px;
}
.portal-logo-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 301 / 114;
    object-fit: contain;
}
.portal-logo:focus-visible {
    outline: 3px solid #ff941f;
    outline-offset: 4px;
}
.hp-wordmark { width: clamp(220px, 20vw, 301px); }
.portal-wordmark { width: 230px; margin-left: 0; }
.portal-wordmark--account { width: 180px; }
.main-header .header-inner { gap: 20px; }
.main-header .brand-block { flex: 1; min-width: 0; }
.main-header .dept-block { min-width: 0; }
.main-header .admin-info-block { flex-shrink: 0; }
/* A light plate protects the navy lettering on the authenticated masthead and footer. */
.logged-in .main-header .portal-logo,
.portal-footer .portal-logo { background: #fff; }
.portal-footer .portal-footer-brand { width: 156px; max-width: 100%; margin-bottom: 16px; }
.portal-footer .portal-logo { margin: 0; padding: 0; }
.portal-footer-identity {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}
.portal-footer-emblem {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}
.portal-footer-department { min-width: 0; max-width: 400px; }
.portal-footer-department strong { display: block; line-height: 1.5; }
.portal-footer-department p:last-child { margin-bottom: 0; }

@media (max-width: 1199px) {
    .main-header .header-inner { gap: 14px; }
    .portal-wordmark { width: 200px; }
    .portal-wordmark--account { width: 160px; }
}
@media (max-width: 900px) {
    /* The existing compact masthead keeps the government identity and account controls;
       the full portal logo remains available in the footer on every screen. */
    .portal-wordmark { display: none; }
    .main-header .header-inner--account-branding { flex-wrap: wrap; }
    .header-inner--account-branding .brand-block { flex-basis: 100%; }
    .header-inner--account-branding .admin-info-block { margin-left: auto; }
}
@media (max-width: 600px) {
    .portal-footer-identity { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
}
@media print {
    .portal-logo { background: #fff; }
}
