/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* --------------------------------------------------------------------------
   Masthead.

   The navy gradient is the piece of the district look this app keeps unchanged
   from ESS_BL - it is what makes the two read as the same family of
   applications even though the ground under them differs.
   -------------------------------------------------------------------------- */
.pcs-topbar[b-147lnw5pwz] {
    background: linear-gradient(135deg, var(--pcs-navy-700) 0%, var(--pcs-navy-950) 100%);
    color: #fff;
}

.pcs-header[b-147lnw5pwz] {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 3vw, 1.25rem);
    padding-block: clamp(0.85rem, 2.5vw, 1.25rem);
}

.brand-link[b-147lnw5pwz] {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: var(--pcs-radius-sm);
}

.brand-link:focus-visible[b-147lnw5pwz] {
    outline: 3px solid var(--pcs-focus-on-navy);
    outline-offset: 3px;
}

.pcs-logo[b-147lnw5pwz] {
    display: block;
    height: clamp(38px, 9vw, 54px);
    width: auto;
}

.pcs-title-wrap[b-147lnw5pwz] {
    display: flex;
    flex-direction: column;
    min-width: 0; /* lets the wordmark wrap instead of forcing the header wide */
}

.pcs-overline[b-147lnw5pwz] {
    font-family: var(--pcs-font-subhead);
    font-size: clamp(0.6rem, 1.6vw, 0.72rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    /* Not pure white: the overline is secondary to the wordmark under it, and
       at this size full white vibrates against the navy. Still 8.9:1. */
    color: #B9C4DA;
}

.pcs-title[b-147lnw5pwz] {
    font-family: var(--pcs-font-display);
    font-weight: 800;
    font-size: clamp(1.1rem, 4.4vw, 1.85rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    color: #fff;
}

/* The brand accent stripe. Gold, sky and lime in equal thirds - the same device
   that closes the ESS hero panel, reused here as the masthead base so the
   header terminates in brand color rather than a hard edge against the ivory. */
.pcs-accent-stripe[b-147lnw5pwz] {
    height: 5px;
    background: linear-gradient(
        to right,
        var(--pcs-gold) 0 33.34%,
        var(--pcs-sky) 33.34% 66.67%,
        var(--pcs-lime) 66.67% 100%
    );
}

/* --------------------------------------------------------------------------
   Page frame. Footer pinned to the bottom on short pages - a public one-task
   page often has little content, and a footer floating mid-viewport reads as a
   half-loaded page.
   -------------------------------------------------------------------------- */
.page[b-147lnw5pwz] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh; /* accounts for mobile browser chrome */
}

main[b-147lnw5pwz] {
    outline: none; /* focus target for the skip link; the ring would frame the whole page */
    flex: 1 0 auto;
    padding-block: clamp(1.25rem, 4vw, 2.25rem);
}

/* --------------------------------------------------------------------------
   Footer.
   -------------------------------------------------------------------------- */
.site-footer[b-147lnw5pwz] {
    flex: 0 0 auto;
    margin-top: clamp(1.5rem, 5vw, 3rem);
    background: var(--pcs-navy-900);
    color: #D6DCE9;
    font-size: 0.93rem;
}

.footer-inner[b-147lnw5pwz] {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    justify-content: space-between;
    align-items: flex-start;
    padding-block: 1.5rem;
}

.footer-org[b-147lnw5pwz] {
    margin: 0;
    line-height: 1.5;
}

.footer-org strong[b-147lnw5pwz] {
    font-family: var(--pcs-font-subhead);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    font-weight: 600;
}

.site-footer nav ul[b-147lnw5pwz] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer a[b-147lnw5pwz] {
    /* Sky blue is used for text ONLY on navy, where it clears 7:1. The app.css
       token comment marks it decorative-only against white - this is the
       exception the comment allows for. */
    color: var(--pcs-sky);
    text-decoration: none;
    /* Comfortable tap target in the footer too. */
    display: inline-block;
    padding-block: 0.3rem;
}

.site-footer a:hover[b-147lnw5pwz] {
    color: #fff;
    text-decoration: underline;
}

.site-footer a:focus-visible[b-147lnw5pwz] {
    outline: 3px solid var(--pcs-focus-on-navy);
    outline-offset: 2px;
}
