


:root {
    --accent: #0e6f68;
}

html {
    scroll-padding-top: 5.75rem;
}

body.portal-page {
    --cro-brand: var(--color-navy, #173250);
    --cro-brand-accent: var(--color-teal, #0e6f68);
    

    --portal-cta: var(--accent, var(--color-teal, #0e6f68));
    --portal-cta-dark: var(--accent-dark, var(--color-teal-dark, #0a5c56));
    --portal-muted-readable: #465a6e;
    --timeline-color: #64748b;
    --timeline-muted: #d4dae1;
    --portal-line: #e2eaf2;
    --portal-card-shadow: 0 1px 2px rgba(23, 50, 80, 0.04), 0 10px 30px -12px rgba(23, 50, 80, 0.12);
    min-height: 100vh;
    background: linear-gradient(180deg, #eef4f9 0%, #f5f8fb 360px);
    color: var(--color-navy, #173250);
    font-family: var(--font-sans, "Source Sans 3", system-ui, sans-serif);
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

.portal-page :where(a, button, input, select, textarea, summary, [tabindex]):not([tabindex="-1"]) {
    scroll-margin-top: 5.75rem;
}



.portal-panel :where(p) {
    margin: 0 0 0.95rem;
    line-height: 1.6;
}

.portal-panel :where(p:last-child) {
    margin-bottom: 0;
}

.portal-panel :where(ul, ol) {
    margin: 0 0 0.95rem;
    padding-left: 1.4rem;
}

.portal-panel :where(ul) { list-style: disc; }
.portal-panel :where(ol) { list-style: decimal; }

.portal-panel :where(li) {
    margin: 0.3rem 0;
    line-height: 1.55;
}

.portal-panel :where(p, li) a {
    text-decoration: underline;
    text-underline-offset: 0.16em;
    font-weight: 650;
}

.portal-updated {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.84rem;
    margin: 0 0 1.1rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



body.portal-page :where(a, button, summary, [role="button"]):focus-visible {
    

    outline: 3px solid color-mix(in srgb, var(--accent), #0b2942 35%);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    body.portal-page *,
    body.portal-page *::before,
    body.portal-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}





body.portal-page input::placeholder,
body.portal-page textarea::placeholder {
    color: #5f7085;  
    font-style: italic;
    opacity: 1;
}

 
.portal-skip-link {
    position: absolute;
    left: -999rem;
    top: 0;
    z-index: 60;
    background: #fff;
    color: var(--color-navy, #173250);
    font-weight: 750;
    text-decoration: none;
    padding: 0.65rem 1.05rem;
    border-radius: 0 0 10px 0;
    box-shadow: 0 8px 22px rgba(23, 50, 80, 0.22);
}

.portal-skip-link:focus {
    left: 0;
}

 
.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--color-line, #d9e2ea);
    box-shadow: 0 1px 2px rgba(15, 35, 55, 0.04);
}

.portal-topbar-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0.7rem 1.25rem;
    display: grid;
    

    grid-template-columns: minmax(14rem, 1fr) minmax(0, auto) minmax(9rem, 1fr);
    align-items: center;
    gap: 0.85rem;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 750;
    color: var(--color-navy, #173250);
    text-decoration: none;
    min-width: 0;
    justify-self: start;
}
.portal-brand:hover { color: var(--color-navy, #173250); }
.portal-brand img {
    

    height: 56px;
    width: 132px;
    display: block;
    object-fit: contain;
    object-position: left center;
}


.portal-brand img[width] {
    width: auto;
    max-width: 200px;
}


.portal-brand img[data-plate="dark"] {
    box-sizing: border-box;
    padding: 4px 6px;
    border-radius: 6px;
    background: var(--color-navy, #173250);
}

.portal-brand img[data-plate="dark"][data-shape="disc"] {
    padding: 3px;
    border-radius: 50%;
}



.portal-brand img[data-shape="box"] {
    border-radius: 6px;
}
 
.portal-brand-product img {
    height: 40px;
    width: auto;
    max-width: 220px;
}
.portal-brand span {
    font-size: 1.12rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.portal-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-width: 0;
    justify-self: center;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.portal-nav-link {
    color: var(--portal-muted-readable);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 650;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.14s ease, color 0.14s ease;
}
.portal-nav-link:hover {
    background: color-mix(in srgb, var(--accent) 7%, #fff);
    color: var(--color-navy, #173250);
}
.portal-nav-link.active {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 11%, #fff);
}

.portal-nav-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--color-line, #d9e2ea);
    border-radius: 8px;
    background: #fff;
    color: var(--color-navy, #173250);
    font-size: 0.86rem;
    font-weight: 700;
    font-family: inherit;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
}
.portal-nav-toggle:hover { background: #f1f5f9; }
.portal-nav-toggle i { font-size: 1.05rem; line-height: 1; }




.portal-cro-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.2rem 0;
    flex: 0 0 auto;
    color: var(--portal-muted-readable);
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.1;
    opacity: 0.82;
    text-align: left;
    text-decoration: none;
    transition: opacity 0.14s ease;
}

.portal-cro-link:hover { opacity: 1; }

.portal-cro-link img {
    display: block;
    height: 22px;
    width: auto;
}

.portal-cro-link span {
    max-width: 7.6rem;
}

.portal-cro-link strong {
    color: var(--color-navy, #173250);
    display: block;
    font-weight: 750;
}

.portal-cro-link-brand {
    justify-self: end;
}

 
.portal-footer {
    margin-top: auto;
    padding: 2.25rem 1rem 2rem;
    border-top: 1px solid var(--color-line, #d9e2ea);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.95rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--portal-muted-readable);
}

.portal-footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    padding: 0.5rem 1rem 0.5rem;
    color: #2a3744;
    width: 100%;
    max-width: 640px;
}

.portal-footer-contact strong {
    font-size: 0.95rem;
    color: var(--cro-brand);
}

.portal-footer-contact span {
    font-size: 0.95rem;
    color: var(--portal-muted-readable);
}

.portal-footer-contact a {
    color: var(--portal-cta);
    text-decoration: none;
    font-weight: 700;
    margin: 0 0.25rem;
}

.portal-footer-contact a:hover { text-decoration: underline; }

.portal-footer-nav {
    display: flex;
    gap: 0.4rem 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
}
.portal-footer-nav a {
    color: var(--portal-muted-readable);
    text-decoration: none;
    font-weight: 600;
}
.portal-footer-nav a:hover { color: var(--portal-cta); }

.portal-footer-brand {
    display: inline-flex;
    align-items: center;
}

.portal-footer-logo {
    height: 32px;
    width: auto;
}

.portal-footer a {
    font-weight: 700;
    text-decoration: none;
}

.portal-footer-copyright {
    color: var(--portal-muted-readable);
    font-size: 0.9rem;
    line-height: 1.35;
}

a { color: var(--accent); }





.portal-masthead {
    position: relative;
    width: 100%;
    border-top: 4px solid var(--accent);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.portal-masthead-identity {
    padding: 1.5rem 1.25rem 0;
}

.portal-masthead-actions {
    padding: 1.35rem 1.25rem 0;
}



.portal-masthead .portal-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
    margin: 0 auto;
    max-width: 920px;
    padding-inline: 0;
}

.portal-masthead .portal-hero h1 {
    color: var(--color-navy, #173250);
    margin: 0;
    font-size: 2.05rem;
}



.portal-masthead .portal-logo {
    flex: none;
    box-sizing: border-box;
    width: auto;
    height: 5.6rem;
    max-width: min(18rem, 100%);
    max-height: none;
    margin: -4.2rem 0 0;
    object-fit: contain;
}



.portal-masthead .portal-logo:is([data-plate="light"], [data-plate="dark"]) {
    padding: 0.5rem;
    border-radius: 14px;
    box-shadow: 0 6px 18px -8px rgba(8, 20, 34, 0.45);
}

 
.portal-masthead .portal-logo:is([data-plate="light"], [data-plate="dark"])[data-shape="disc"] {
    padding: 0.3rem;
    border-radius: 50%;
}

.portal-masthead .portal-logo[data-shape="box"] {
    border-radius: 10px;
}

.portal-masthead .portal-logo[data-plate="light"] {
    background: #fff;
}

.portal-masthead .portal-logo[data-plate="dark"] {
    background: var(--color-navy, #173250);
}

 
.portal-masthead-plain .portal-logo {
    margin-top: 0;
}

.portal-masthead-plain .portal-masthead-identity {
    padding-top: 2rem;
}



.portal-banner {
    width: 100%;
    aspect-ratio: var(--banner-ratio, 3 / 1);
    min-height: 9rem;
    max-height: min(70vh, 34rem);
    background: #eef4f8;
    overflow: hidden;
    padding: 0;
    align-self: stretch;
}

.portal-banner img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center 48%;
}



@media (min-width: 860px) {
    .portal-banner-focus-top .portal-banner img {
        object-position: center top;
    }

    .portal-banner-focus-bottom .portal-banner img {
        object-position: center bottom;
    }
}




.portal-banner-default {
    width: 100%;
    border-top: 4px solid var(--accent);
    border-bottom: 1px solid #dbe5ee;
    background: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
    color: var(--color-navy, #173250);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 8rem;
}

.portal-banner-default-seal {
    max-height: 72px;
    max-width: 80px;
    object-fit: contain;
}

.portal-banner-default-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy, #173250);
}

.portal-logo {
    max-height: 76px;
    max-width: 220px;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}


.portal-main {
    max-width: 760px;
    margin-inline: auto;
    padding: 2.25rem 1.25rem 2.75rem;
    flex: 1 0 auto;
    width: 100%;
}

.portal-main-wide {
    max-width: 1120px;
}

.portal-home-main {
    max-width: none;
    

    padding: 0;
}

.portal-hero {
    margin-bottom: 1.6rem;
    text-align: center;
}

.portal-hero h1,
.portal-hero h2 {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 2.2rem;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--color-navy, #173250);
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.portal-hero p {
    color: var(--portal-muted-readable);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0.4rem auto 0;
}

 
.portal-agency-info {
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 12px;
    background: #fff;
    color: var(--color-navy, #173250);
    margin-bottom: 1rem;
    overflow: visible;
    box-shadow: var(--portal-card-shadow);
}

 
.portal-agency-info > h2 {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-line, #d9e2ea);
}

.portal-agency-info > h2 i {
    color: var(--portal-cta);
    flex: 0 0 auto;
}

.portal-agency-info-body {
    padding: 1rem 1.1rem 1.15rem;
}

 
.portal-action-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--portal-card-shadow);
    margin-bottom: 0.9rem;
    padding: 1.3rem;
}

.portal-action-panel-inline {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

.portal-action-copy h2 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-navy, #173250);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0;
}

.portal-action-copy h2 i {
    color: var(--portal-cta);
    flex: 0 0 auto;
}

.portal-action-copy p {
    color: var(--portal-muted-readable);
    font-size: 0.94rem;
    line-height: 1.5;
    margin: 0.35rem 0 0;
}

.portal-home-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
}

.portal-home-browse {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: auto;
    padding: 0;
}

.portal-action-main {
    white-space: nowrap;
}

.portal-lookup-note {
    color: var(--portal-muted-readable);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.portal-lookup-note a {
    font-weight: 750;
}

 
.portal-home-shell {
    max-width: 920px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.portal-home-actions {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}



.portal-masthead .portal-home-actions {
    max-width: 920px;
    margin-inline: auto;
}



@media (min-width: 860px) {
    .portal-masthead .portal-home-actions {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        align-items: stretch;
    }

     
    .portal-masthead .portal-action-panel-inline {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    

    .portal-masthead .portal-action-panel > :last-child {
        margin-block-start: auto;
    }

    .portal-masthead .portal-action-main {
        justify-self: start;
    }

    

    .portal-masthead .portal-home-actions-single {
        grid-template-columns: minmax(0, 1fr);
        max-width: 680px;
    }

    .portal-masthead .portal-home-actions-single .portal-action-panel-inline {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .portal-masthead .portal-home-actions-single .portal-action-panel > :last-child {
        margin-block-start: 0;
    }

    

    .portal-masthead .portal-search-field,
    .portal-masthead .portal-home-search .portal-button-primary,
    .portal-masthead .portal-action-main {
        min-height: 2.85rem;
    }

}



@media (min-width: 860px) {
    

    .portal-masthead-carries-tiles {
        grid-template-rows: 1fr auto auto;
    }

    .portal-masthead-carries-tiles .portal-banner {
        grid-row: 1 / -1;
        grid-column: 1;
    }

    .portal-masthead-carries-tiles .portal-masthead-identity {
        grid-row: 2;
        grid-column: 1;
        z-index: 1;
    }

    .portal-masthead-carries-tiles .portal-masthead-actions {
        grid-row: 3;
        grid-column: 1;
        z-index: 1;
        padding-bottom: 1.6rem;
    }

    

    .portal-masthead-carries-tiles .portal-masthead-identity {
        padding: 0;
    }

    .portal-masthead-carries-tiles .portal-logo {
        display: none;
    }

    .portal-masthead-carries-tiles .portal-hero h1 {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .portal-masthead-carries-tiles .portal-logo {
        margin-top: 0;
    }

    .portal-masthead-carries-tiles .portal-action-panel {
        box-shadow: 0 10px 28px -12px rgba(8, 20, 34, 0.55);
    }

}

.portal-home-actions .portal-action-panel {
    margin-bottom: 0;
}



.portal-home-lookup {
    max-width: 920px;
    margin-inline: auto;
    

    padding: 1.15rem 1.25rem 1.35rem;
}

.portal-home-support {
    display: grid;
    gap: 0.9rem;
    max-width: 920px;
    

    margin: 0 auto 2.5rem;
    padding-inline: 1.25rem;
}

.portal-rail {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
    align-content: start;
}

.portal-rail-card {
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--portal-card-shadow);
    padding: 1.05rem 1.1rem;
}

.portal-rail-card h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-navy, #173250);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.55rem;
}

.portal-rail-card h2 i {
    color: var(--accent);
    flex: 0 0 auto;
}

.portal-rail-card p {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 0.6rem;
}

.portal-rail-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: 0.94rem;
    font-weight: 750;
    text-decoration: none;
    padding: 0.3rem 0;
    overflow-wrap: anywhere;
}

.portal-rail-contact a:hover {
    text-decoration: underline;
}

.portal-rail-contact a i {
    flex: 0 0 auto;
}

.portal-home-support .portal-agency-info {
    margin-bottom: 0;
}

.portal-home-support .portal-agency-info-body {
    padding: 1.35rem 1.45rem 1.45rem;
}

.portal-rail .portal-agency-info {
    margin-bottom: 0;
}

.portal-steps {
    counter-reset: portal-step;
    display: grid;
    gap: 0.85rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-steps li {
    counter-increment: portal-step;
    position: relative;
    padding-left: 2.35rem;
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.9rem;
    line-height: 1.5;
}

.portal-steps li::before {
    content: counter(portal-step);
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 800;
}

.portal-steps li strong {
    display: block;
    color: var(--color-navy, #173250);
    font-size: 0.94rem;
}

 
.portal-submit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(16.5rem, 1fr);
    gap: 1.1rem;
    align-items: start;
}

.portal-submit-main {
    min-width: 0;
}

@media (max-width: 960px) {
    .portal-submit-layout {
        grid-template-columns: 1fr;
    }
}

 
.portal-page-heading {
    margin-bottom: 1.35rem;
}

.portal-page-heading h1 {
    margin: 0;
    color: var(--color-navy, #173250);
    font-family: var(--font-serif, Georgia, serif);
    font-size: 2rem;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.portal-page-heading p {
    max-width: 680px;
    margin: 0.4rem 0 0;
    color: var(--color-muted-ink, #5f6f7e);
}

.portal-page-kicker {
    margin: 0 0 0.35rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

 
.portal-loading-spinner {
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    display: inline-block;
    vertical-align: -0.15em;
    margin-right: 0.4rem;
    animation: portal-spin 0.65s linear infinite;
}

.portal-contact-block {
    margin: 1.5rem 0;
    padding: 1.05rem;
    border: 1px solid var(--color-line, #d9e2ea);
    border-radius: 10px;
    background: #f8fbfd;
}

.portal-contact-block h2 {
    margin: 0;
    color: var(--color-navy, #173250);
    font-size: 1rem;
    font-weight: 750;
}

.portal-contact-block p {
    margin: 0.25rem 0 1rem;
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.94rem;
}

 
.portal-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 10px;
    background: #fff;
    color: var(--color-navy, #173250);
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
}

.portal-notice i {
    color: var(--accent);
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.portal-notice strong {
    display: block;
    font-size: 0.94rem;
    font-weight: 800;
}

.portal-notice p {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0.25rem 0 0;
}

 
.portal-notice p strong {
    display: inline;
    font-size: inherit;
    font-weight: 700;
}

.portal-notice-info {
    background: color-mix(in srgb, var(--accent) 8%, #fff);
    border-color: color-mix(in srgb, var(--accent) 24%, #dbe5ee);
}

.portal-notice-danger {
    background: #fff8f8;
    border-color: #fecaca;
}

.portal-notice-danger i {
    color: #b91c1c;
}

.portal-notice-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.portal-notice-success i {
    color: #15803d;
}

.portal-notice-compact {
    padding: 0.75rem 0.85rem;
}

 
.portal-submit-success {
    display: grid;
    place-items: center;
    gap: 0.45rem;
    padding: 2.75rem 1.5rem;
    text-align: center;
}

.portal-submit-success > i {
    color: #168a4a;
    font-size: 2.75rem;
}

.portal-submit-success h2 {
    color: var(--color-navy, #173250);
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.25rem 0 0;
}

.portal-submit-success p {
    color: var(--color-muted-ink, #5f6f7e);
    margin: 0;
}

.portal-submit-tracking {
    color: var(--color-navy, #173250) !important;
    font-weight: 750;
}

.portal-form-panel {
    padding: 1.4rem;
}

.portal-form-panel form {
    display: grid;
    gap: 1rem;
}

.portal-lookup-form {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.portal-lookup-submit {
    min-height: 2.8rem;
    white-space: nowrap;
}

.portal-lookup-help {
    grid-column: 1 / -1;
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.86rem;
    margin: -0.35rem 0 0;
}

.portal-muted {
    color: var(--color-muted-ink, #5f6f7e);
    line-height: 1.55;
    margin: 0 0 1rem;
}

.portal-section-heading {
    color: var(--color-navy, #173250);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 1.15rem 0 0.35rem;
}



.portal-instructions {
    color: var(--color-ink, #172333);
    font-size: 0.95rem;
    line-height: 1.5;
}

.portal-instructions p {
    margin: 0;
}

.portal-instructions p + p {
    margin-top: 0.35rem;
}

.portal-field {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
}

.portal-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}



.portal-address {
    display: grid;
    gap: 1rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.portal-contact-block .portal-address {
    margin-top: 1rem;
}

.portal-address-legend {
    margin-bottom: 0.6rem;
    padding: 0;
}

.portal-address-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}



.address-suggest-anchor {
    position: relative;
}

.address-suggest-popup {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 30;
    overflow: hidden;
    border: 1px solid var(--color-line, #d9e2ea);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 50, 80, 0.16);
}

.address-suggest-list {
    margin: 0;
    padding: 0.3rem 0;
    list-style: none;
}

.address-suggest-option {
    display: grid;
    gap: 0.1rem;
    padding: 0.55rem 0.85rem;
    color: var(--color-ink, #172333);
    cursor: pointer;
}

.address-suggest-option:hover,
.address-suggest-option[aria-selected="true"] {
    background: #edf3f8;
    box-shadow: inset 4px 0 0 var(--portal-cta, #0e6f68);
}

.address-suggest-main {
    font-weight: 650;
}

.address-suggest-secondary {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.86rem;
}

.address-suggest-credit {
    margin: 0;
    padding: 0.4rem 0.85rem 0.5rem;
    border-top: 1px solid var(--color-line, #d9e2ea);
    color: #5e5e5e;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: normal;
    text-align: right;
    white-space: nowrap;
}

.address-suggest-credit a {
    color: inherit;
    text-decoration: underline;
}

.address-suggest-credit-wrap {
    white-space: normal;
}

.address-suggest-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.portal-form-label {
    color: var(--color-navy, #173250);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.3;
}

.portal-required {
    color: #b91c1c;
    font-weight: 800;
}

.portal-optional,
.portal-help {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.84rem;
    line-height: 1.45;
}

.portal-form-input,
.portal-field-select {
    width: 100%;
    border: 1px solid #c9d6e2;
    border-radius: 10px;
    background: #fff;
    color: var(--color-navy, #173250);
    font: inherit;
    min-height: 2.8rem;
    padding: 0.68rem 0.8rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}



.portal-form-input[type="file"] {
    

    padding: 0.42rem 0.55rem;
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.95rem;
    line-height: 1.25;
    cursor: pointer;
}

.portal-form-input[type="file"]::file-selector-button {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--color-line, #d9e2ea);
    border-radius: 8px;
    background: var(--color-soft, #f6f8fb);
    color: var(--color-navy, #173250);
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
    padding: 0.3rem 0.85rem;
    margin-right: 0.7rem;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.portal-form-input[type="file"]::file-selector-button:hover {
    background: #eaf0f6;
    border-color: var(--accent);
}

.portal-form-input:focus,
.portal-field-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
    outline: none;
}

textarea.portal-form-input {
    min-height: 8.75rem;
    resize: vertical;
}

.portal-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 10px;
    background: #f8fbfd;
    color: var(--color-navy, #173250);
    margin-top: 0.45rem;
    padding: 0.72rem 0.8rem;
}

.portal-check-input {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.14rem;
    accent-color: var(--accent);
}

.portal-check-label {
    color: var(--color-navy, #173250);
    font-size: 0.92rem;
    line-height: 1.35;
}

.portal-anonymous-check {
    margin-top: 0.25rem;
}



.portal-contact-anonymous-text {
    display: none;
}

form:has(.portal-anonymous-block .portal-check-input:checked) .portal-required-contact,
form:has(.portal-anonymous-block .portal-check-input:checked) .portal-contact-required-text {
    display: none;
}

form:has(.portal-anonymous-block .portal-check-input:checked) .portal-contact-anonymous-text {
    display: block;
}



.portal-anonymous-warning {
    align-items: flex-start;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--color-muted-ink, #5f6f7e);
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding: 0.65rem 0.78rem;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.portal-anonymous-warning-icon {
    color: #a16207;
    flex: 0 0 auto;
    font-size: 1.05rem;
    margin-top: 0.1rem;
    opacity: 0;
    transition: opacity 120ms ease;
}

.portal-anonymous-block:has(.portal-check-input:checked) .portal-anonymous-warning {
    background: #fef9c3;
    border-color: #facc15;
    color: #713f12;
    font-weight: 500;
}

.portal-anonymous-block:has(.portal-check-input:checked) .portal-anonymous-warning-icon {
    opacity: 1;
}

.portal-error {
    color: #b91c1c;
    display: block;
    font-size: 0.84rem;
    line-height: 1.35;
}

.portal-back-link {
    margin: 0 0 0.85rem;
}

.portal-back-link a {
    align-items: center;
    color: var(--accent);
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 750;
    gap: 0.35rem;
    text-decoration: none;
}

.portal-back-link a:hover,
.portal-back-link a:focus-visible {
    color: var(--color-teal-dark, #0a5c56);
    text-decoration: underline;
}



.portal-deflection-results {
    display: grid;
    gap: 0.85rem;
    margin: 0.25rem 0 1.4rem;
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid color-mix(in srgb, var(--accent) 32%, #e2eaf2);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 6%, #fff);
}

.portal-deflection-head {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.portal-deflection-head > i {
    color: var(--accent);
    font-size: 1.35rem;
    line-height: 1.2;
}

.portal-deflection-title {
    margin: 0;
    color: var(--color-navy, #173250);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
}

 
.portal-deflection-title:focus {
    outline: none;
}

.portal-deflection-head p {
    margin: 0.3rem 0 0;
    color: #2c465f;
    font-size: 0.92rem;
    line-height: 1.5;
}

.portal-deflection-head-text {
    flex: 1 1 0;
    min-width: 0;
}



.portal-deflection-head .portal-deflection-toggle {
    flex: 0 0 auto;
    min-height: 2.2rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.86rem;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}



@media (max-width: 540px) {
    .portal-deflection-head {
        flex-wrap: wrap;
    }

    .portal-deflection-head .portal-deflection-toggle {
        flex-basis: 100%;
        justify-content: flex-start;
        margin: -0.25rem 0 0 2.05rem;
        padding-inline: 0;
    }
}

 
.portal-deflection-results.is-collapsed {
    gap: 0;
    padding-block: 0.7rem;
}

.portal-deflection-results.is-collapsed .portal-deflection-head p,
.portal-deflection-results.is-collapsed .portal-deflection-list,
.portal-deflection-results.is-collapsed .portal-deflection-submit {
    display: none;
}

.portal-deflection-list {
    display: grid;
    gap: 0.6rem;
}



.portal-keyword-links-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.2rem;
}

.portal-keyword-links-list a {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.portal-keyword-link-word {
    color: #2c465f;
}

.portal-deflection-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid color-mix(in srgb, var(--accent) 25%, #e2eaf2);
}

.portal-deflection-submit p {
    flex: 1 1 18rem;
    margin: 0;
    color: var(--color-navy, #173250);
    font-size: 0.92rem;
    font-weight: 650;
}

@media (max-width: 720px) {
    .portal-form-grid {
        grid-template-columns: 1fr;
    }

    .portal-address-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-address-row > :first-child {
        grid-column: 1 / -1;
    }

    .portal-lookup-form {
        grid-template-columns: 1fr;
    }

    .portal-withdraw-form {
        grid-template-columns: 1fr;
    }

    .portal-form-panel {
        padding: 1.1rem;
    }
}

.portal-submit-button {
    width: 100%;
}

.portal-contact-note {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.86rem;
    margin: 1rem 0 0;
    text-align: center;
}

.deflection-card {
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    box-shadow: none;
}

.deflection-card h3 {
    margin: 0;
    color: var(--color-navy, #173250);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.deflection-date {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

 
.deflection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.deflection-new-tab {
    font-size: 0.75em;
}

 
.portal-topic-summary {
    white-space: pre-line;
}

 
.portal-form-chooser {
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--portal-card-shadow);
    padding: 1.3rem;
}

.portal-form-chooser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.75rem;
}

.portal-form-choice {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 10.5rem;
    flex-direction: column;
    gap: 0.6rem;
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 12px;
    color: var(--color-navy, #173250);
    background: #f8fbfd;
    padding: 1.05rem;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.portal-form-choice:hover,
.portal-form-choice:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 14px 30px -10px rgba(23, 50, 80, 0.18);
    color: var(--color-navy, #173250);
    transform: translateY(-1px);
}

.portal-form-choice-head {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.portal-form-choice-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9px;
    background: color-mix(in srgb, var(--accent) 11%, #fff);
    color: var(--accent);
    font-size: 1.15rem;
}

.portal-form-choice-title {
    display: block;
    min-width: 0;
    align-self: center;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.portal-form-choice-description {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.9rem;
    line-height: 1.45;
    

    overflow-wrap: anywhere;
}

.portal-form-description {
    overflow-wrap: anywhere;
}

.portal-form-choice-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 750;
}

.is-loading {
    opacity: 0.78;
    pointer-events: none;
    cursor: progress;
}

.is-loading > i {
    display: none;
}

@keyframes portal-spin {
    to { transform: rotate(360deg); }
}

 
.request-log-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.request-log-count {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.92rem;
    margin: 0;
}

.request-log-page-size {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.82rem;
    font-weight: 650;
}

.request-log-sort-mobile {
    display: none;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.82rem;
    font-weight: 650;
}

.request-log-size-select {
    width: 5.25rem;
    font-weight: 650;
}

.request-log-sort-select {
    width: 13rem;
    font-weight: 650;
}



.reading-room-snippet {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    border-left: 3px solid var(--accent);
    background: #f8fbfd;
    color: #36546f;
    font-size: 0.88rem;
    line-height: 1.5rem;
    margin: 0;
    padding: 0 0.6rem;
}

.reading-room-snippet i {
    flex: 0 0 auto;
}

.reading-room-snippet-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    min-width: 0;
    overflow-wrap: anywhere;
}

.reading-room-actions,
.reading-room-back-row,
.portal-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.reading-room-actions {
    margin-top: 0.95rem;
}

.reading-room-back-row {
    margin-bottom: 0.9rem;
}



.portal-submit-row {
    justify-content: center;
    margin-top: 1.25rem;
}

 
.portal-button-primary,
.portal-button-secondary,
.portal-button-danger,
.portal-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.1;
    min-height: 2.65rem;
    padding: 0.72rem 1.05rem;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.portal-button-primary {
    border: 1px solid var(--portal-cta);
    background: var(--portal-cta);
    color: #fff;
    box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--portal-cta) 55%, transparent);
}

.portal-button-primary:hover,
.portal-button-primary:focus-visible {
    background: var(--portal-cta-dark);
    border-color: var(--portal-cta-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -8px color-mix(in srgb, var(--portal-cta) 60%, transparent);
}

.portal-button-secondary {
    border: 1px solid #d4dfe9;
    background: #fff;
    color: var(--color-navy, #173250);
}



.portal-status-link-keep {
    background: #fef9c3;
    border: 1px solid #facc15;
    border-radius: 0.6rem;
    margin: 0.5rem 0 0.75rem;
    max-width: 34rem;
    padding: 0.9rem 1rem;
    text-align: left;
}

.portal-status-link-lead {
    color: #713f12 !important;
    font-size: 0.95rem;
    margin: 0 0 0.6rem !important;
}

.portal-status-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portal-status-link-input {
    border: 1px solid #d4dfe9;
    border-radius: 0.5rem;
    color: var(--color-ink, #172333);
    flex: 1 1 14rem;
    font-size: 0.85rem;
    min-width: 0;
    padding: 0.55rem 0.7rem;
}

.portal-button-secondary:hover,
.portal-button-secondary:focus-visible {
    border-color: var(--portal-cta);
    color: var(--portal-cta);
    box-shadow: 0 8px 18px -8px rgba(23, 50, 80, 0.22);
}

.portal-button-danger {
    border: 1px solid #fca5a5;
    background: #fff;
    color: #b91c1c;
}

.portal-button-danger:hover,
.portal-button-danger:focus-visible {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

.portal-button-sm {
    min-height: 2.2rem;
    padding: 0.52rem 0.78rem;
    font-size: 0.82rem;
}

.portal-link-button {
    color: var(--portal-muted-readable);
    padding-inline: 0.55rem;
}

.portal-link-button:hover,
.portal-link-button:focus-visible {
    color: var(--portal-cta);
}

 
.portal-panel,
.portal-search-panel,
.reading-room-record {
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--portal-card-shadow);
}

.portal-panel {
    padding: 1.45rem;
}

.portal-search-panel {
    margin-bottom: 1rem;
    padding: 1.05rem;
}

.portal-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.portal-search-field {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 10px;
    background: #f8fbfd;
    color: var(--color-muted-ink, #5f6f7e);
    padding: 0 0.85rem;
    min-width: 0;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.portal-search-field:focus-within {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.portal-input,
.portal-select {
    width: 100%;
    min-height: 2.65rem;
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 10px;
    background-color: #fff;
    color: var(--color-navy, #173250);
    font: inherit;
    font-size: 0.92rem;
}

.portal-input {
    padding: 0.66rem 0.8rem;
}

.portal-input-search {
    border: 0;
    background: transparent;
    padding-inline: 0;
}

.portal-input-search:focus {
    outline: none;
    box-shadow: none;
}

.portal-select {
    padding: 0.58rem 0.75rem;
}

.portal-select:focus,
.portal-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
    outline: none;
}

.portal-input-search:focus {
    box-shadow: none;
    border-color: transparent;
}

.portal-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(8rem, 0.55fr) auto;
    gap: 0.75rem;
    margin-top: 0.9rem;
    align-items: end;
}

.portal-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

 


.reading-room-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(9.5rem, 0.7fr) minmax(9.5rem, 0.7fr) auto;
}

@media (max-width: 960px) {
    .reading-room-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

 
.reading-room-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin: 0.95rem 0 0.75rem;
}

.reading-room-count {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.92rem;
    margin: 0;
}

.reading-room-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.82rem;
    font-weight: 650;
}

.reading-room-sort-select {
    width: 10.5rem;
    min-height: 2.35rem;
    font-weight: 650;
}

.reading-room-list {
    display: grid;
    gap: 0.75rem;
}



.reading-room-record {
    display: grid;
    

    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
    padding: 1rem 1.15rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.reading-room-record:hover {
    border-color: color-mix(in srgb, var(--accent) 30%, #e2eaf2);
}

.reading-room-record-header,
.reading-room-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.reading-room-record-header {
    align-items: baseline;
}

.reading-room-record-header h2,
.reading-room-detail h2 {
    margin: 0;
    color: var(--color-navy, #173250);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.reading-room-record-header h2 i {
    color: var(--accent);
    margin-right: 0.25rem;
}

.reading-room-record-header h2 a {
    color: var(--color-navy, #173250);
    text-decoration: none;
}

.reading-room-record-header h2 a:hover {
    color: var(--accent);
}

.reading-room-description {
    color: #2c465f;
    line-height: 1.45;
    margin: 0.35rem 0 0;
    overflow-wrap: anywhere;
}

 
.reading-room-record-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: #2c465f;
    line-height: 1.5rem;
    margin: 0;
    overflow-wrap: anywhere;
}



.reading-room-record-body {
    display: grid;
    align-content: start;
    height: 3rem;
    overflow: hidden;
}

.reading-room-record-body:has(.reading-room-snippet) .reading-room-record-description {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.reading-room-record-header time {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.reading-room-date-label {
    font-weight: 600;
}



.reading-room-record-footer {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-top: 0.3rem;
}

.reading-room-tags {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 1.1rem;
    min-width: 0;
    min-height: 1.3rem;
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reading-room-tags li {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 0.35rem;
    min-width: 0;
    color: var(--color-navy, #173250);
    font-size: 0.86rem;
    font-weight: 700;
}

.reading-room-tag-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



.reading-room-tags .reading-room-tag-department:not(:only-child) {
    flex-shrink: 0;
    max-width: 55%;
}

.reading-room-tags i,
.reading-room-file-summary i {
    color: var(--accent);
}

.reading-room-record-files {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.reading-room-file-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.reading-room-open {
    white-space: nowrap;
}

.reading-room-label {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 0 0.25rem;
    text-transform: uppercase;
}

.reading-room-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.65rem;
    margin: 1rem 0 0;
}

.reading-room-meta dt {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reading-room-meta dd {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-navy, #173250);
    font-size: 0.86rem;
    font-weight: 700;
    margin: 0.18rem 0 0;
}

.reading-room-meta dd i {
    color: var(--accent);
}

.reading-room-files {
    border-top: 1px solid var(--color-line, #d9e2ea);
    margin-top: 1.25rem;
    padding-top: 1.05rem;
}

.reading-room-files-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    margin-bottom: 0.75rem;
}

.reading-room-files h3 {
    color: var(--color-navy, #173250);
    font-size: 0.94rem;
    font-weight: 800;
    margin: 0;
}

.reading-room-files-total {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.86rem;
    font-weight: 700;
    margin: 0;
}

 
.reading-room-file-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reading-room-file-list > li {
    margin: 0;
}

.reading-room-file-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 10px;
    background: #f8fbfd;
    color: var(--color-navy, #173250);
    padding: 0.65rem 0.78rem;
    text-decoration: none;
    transition: border-color 0.14s ease, background 0.14s ease;
}

.reading-room-file-link:hover {
    border-color: var(--accent);
    color: var(--color-navy, #173250);
    background: #fff;
}



.reading-room-file-list .reading-room-file-link {
    font-weight: inherit;
    text-decoration: none;
}

.reading-room-file-name {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 750;
}

 
.reading-room-file-name i {
    color: var(--accent);
    flex: 0 0 auto;
    margin-top: 0.25em;
}

.reading-room-file-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    flex: 0 0 auto;
}

.reading-room-file-size {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.8rem;
    font-weight: 700;
}

.reading-room-file-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--portal-cta);
    font-size: 0.84rem;
    font-weight: 750;
}

.reading-room-file-link:hover .reading-room-file-action {
    text-decoration: underline;
}

.reading-room-empty-clear {
    margin-top: 0.85rem;
}

.reading-room-muted {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.9rem;
    margin: 0;
}

 
.portal-empty {
    display: grid;
    place-items: center;
    border: 1px dashed #c4d2df;
    border-radius: 12px;
    background: #fff;
    color: var(--color-muted-ink, #5f6f7e);
    min-height: 11rem;
    padding: 2rem;
    text-align: center;
}

.portal-empty i {
    color: var(--accent);
    font-size: 2rem;
}

.portal-empty p {
    margin: 0.45rem 0 0;
}

.portal-status-empty {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.portal-status-empty > i {
    color: #b7791f;
    font-size: 2.4rem;
}

.portal-status-empty h2 {
    color: var(--color-navy, #173250);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
}

.portal-status-empty p {
    color: var(--color-muted-ink, #5f6f7e);
    margin: 0;
}

.portal-status-overview,
.portal-status-section {
    margin-bottom: 1rem;
}

.portal-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border-bottom: 1px solid var(--color-line, #d9e2ea);
    margin: -1.45rem -1.45rem 1rem;
    padding: 1rem 1.45rem;
}

.portal-status-header strong {
    color: var(--color-navy, #173250);
    font-size: 1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.portal-status-body {
    display: grid;
    gap: 0.8rem;
}

.portal-status-facts {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.portal-status-facts div {
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 10px;
    background: #f8fbfd;
    padding: 0.7rem 0.8rem;
}

.portal-status-facts dt {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-status-facts dd {
    color: var(--color-navy, #173250);
    line-height: 1.45;
    margin: 0.18rem 0 0;
    overflow-wrap: anywhere;
}

.portal-status-deadline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--color-navy, #173250);
}

.portal-status-deadline > span:first-child {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-status-deadline strong {
    font-weight: 800;
}

.portal-status-deadline small {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.84rem;
}

.portal-deadline-overdue {
    color: #b91c1c;
}

.portal-status-section h2 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-navy, #173250);
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.85rem;
}

.portal-status-section h2 i {
    color: var(--accent);
}

 
.portal-pay {
    display: grid;
    justify-items: start;
    gap: 0.65rem;
}

.portal-pay p {
    margin: 0;
}

.portal-pay-amount {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    color: var(--color-navy, #173250);
    font-weight: 700;
}

.portal-pay-amount strong {
    font-size: 1.35rem;
    font-weight: 800;
}

.portal-pay-instructions {
    white-space: pre-line;
}

.portal-file-list,
.portal-message-list {
    display: grid;
    gap: 0.65rem;
}

.portal-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 10px;
    background: #f8fbfd;
    padding: 0.7rem 0.8rem;
}

.portal-file-name {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-navy, #173250);
    font-weight: 750;
    min-width: 0;
    overflow-wrap: anywhere;
}

.portal-file-name i {
    color: var(--accent);
    flex: 0 0 auto;
}

.portal-inline-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.portal-message {
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 10px;
    background: #fff;
    padding: 0.8rem;
}

.portal-message-requester {
    background: #f8fbfd;
}

.portal-message-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.portal-message-header strong {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-navy, #173250);
}

.portal-message-header i {
    color: var(--accent);
}

.portal-message-header time {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.82rem;
    white-space: nowrap;
}

.portal-message p {
    color: var(--color-navy, #173250);
    margin: 0.45rem 0 0;
    white-space: pre-line;
}

.portal-status-action-form,
.portal-withdraw-form {
    border-top: 1px solid var(--color-line, #d9e2ea);
    display: grid;
    gap: 0.75rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
}

.portal-withdraw-form {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
}

.portal-danger-panel {
    border-color: #fecaca;
    background: #fffafa;
}

.portal-danger-panel h2 i {
    color: #b91c1c;
}

 
.portal-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1rem;
}

.portal-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    min-height: 2.2rem;
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 9px;
    background: #fff;
    color: var(--color-navy, #173250);
    font-size: 0.85rem;
    font-weight: 750;
    padding: 0.35rem 0.55rem;
    text-decoration: none;
    transition: border-color 0.14s ease, color 0.14s ease;
}

.portal-page-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.portal-page-link.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.portal-page-link.disabled {
    background: #f8fbfd;
    border-color: #d7e1ea;
    color: #526170;
    cursor: not-allowed;
    pointer-events: none;
}

 
@media (max-width: 760px) {
    .portal-search-row,
    .portal-filter-grid,
    .portal-home-search,
    .portal-action-panel-inline {
        grid-template-columns: 1fr;
    }

    .portal-action-main {
        white-space: normal;
        width: 100%;
    }

    .portal-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-filter-actions > * {
        width: 100%;
    }

    .reading-room-record-header,
    .reading-room-detail-header {
        flex-direction: column;
    }

    .reading-room-record-header {
        gap: 0.15rem;
    }

    .reading-room-record-header time {
        white-space: normal;
    }

    .reading-room-record-description {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .reading-room-record-body {
        height: 4.5rem;
    }

    .reading-room-snippet-text {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

     
    .reading-room-record-footer {
        flex-wrap: wrap;
    }

    

    .reading-room-record-files:first-child {
        margin-top: calc(1.3rem + 0.5rem);
    }

    .reading-room-record-files {
        justify-content: space-between;
        width: 100%;
        margin-left: 0;
    }

    .reading-room-file-link {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-status-header,
    .portal-file-row,
    .portal-message-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-inline-actions {
        justify-content: flex-start;
    }
}

.portal-min-w-0 {
    min-width: 0;
}

.request-number {
    color: var(--color-navy, #173250);
    font-weight: 750;
    font-size: 0.94rem;
}

.portal-type-pill,
.portal-form-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    border-radius: 999px;
    padding: 0.16rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.portal-type-pill {
    max-width: 100%;
    color: #fff;
    background: var(--accent);
    overflow-wrap: anywhere;
}

.portal-form-pill {
    color: #36546f;
    background: #eef4f8;
    border: 1px solid var(--color-line, #d9e2ea);
}

 
.request-log-list {
    display: grid;
    gap: 0.45rem;
}

.request-log-header,
.request-log-row-grid {
    display: grid;
    grid-template-columns: minmax(7rem, 1.05fr) minmax(10rem, 2fr) minmax(6rem, 0.95fr) minmax(5.5rem, 0.72fr) minmax(5.2rem, 0.62fr) minmax(5.5rem, 0.55fr);
    gap: 0.45rem;
    align-items: center;
}

.request-log-header {
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 10px;
    background: #f8fbfd;
    color: var(--color-muted-ink, #5f6f7e);
    padding: 0.55rem 0.85rem;
}

.request-log-head {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.request-log-head-sort {
    text-decoration: none;
}

.request-log-head-sort:hover,
.request-log-head-sort.is-active {
    color: var(--accent);
}

.request-log-card {
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 12px -6px rgba(23, 50, 80, 0.08);
    overflow: hidden;
    transition: border-color 0.14s ease, background 0.14s ease;
}

.request-log-card:hover {
    border-color: color-mix(in srgb, var(--accent) 35%, #dbe5ee);
    background: #fbfdff;
}

.request-log-card summary::-webkit-details-marker {
    display: none;
}

.request-log-summary::marker {
    content: "";
}

.request-log-summary {
    display: block;
    list-style: none;
    padding: 0.72rem 0.85rem;
    cursor: pointer;
}

.request-log-card-static .request-log-summary {
    cursor: default;
}

.request-log-summary:focus {
    outline: none;
}

.request-log-summary:focus-visible {
    box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.request-log-cell {
    min-width: 0;
}

.request-log-request-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
}

.request-log-title-icon {
    color: var(--accent);
    margin-right: 0.25rem;
}

.request-log-description {
    display: block;
    overflow: hidden;
    color: #2c465f;
    font-size: 0.9rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-log-department,
.request-log-received {
    color: #36546f;
    font-size: 0.84rem;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-log-received time {
    color: var(--color-navy, #173250);
}

.request-log-status {
    display: flex;
}

.request-log-mobile-label {
    display: none;
}

.request-log-expand {
    display: flex;
    justify-content: flex-end;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 750;
}

.request-log-more,
.request-log-less {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.request-log-less,
.request-log-card[open] .request-log-more {
    display: none;
}

.request-log-card[open] .request-log-less {
    display: inline-flex;
}

.request-log-expanded {
    border-top: 1px solid var(--portal-line, #e2eaf2);
    background: #fff;
    padding: 0.85rem 1rem 1rem;
}

.request-log-full-description {
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 8px;
    background: #f8fbfd;
    padding: 0.55rem 0.65rem;
}

.request-log-full-description h2 {
    margin: 0 0 0.25rem;
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.request-log-full-description p {
    margin: 0;
    color: var(--color-navy, #173250);
    font-size: 0.88rem;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.request-log-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 0.45rem 0.75rem;
    margin: 0.65rem 0 0;
}

.request-log-meta dt {
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.request-log-meta dd {
    margin: 0.1rem 0 0;
    color: var(--color-navy, #173250);
    font-size: 0.84rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.request-log-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.request-log-detail {
    border: 1px solid var(--portal-line, #e2eaf2);
    border-radius: 8px;
    background: #f8fbfd;
    padding: 0.45rem 0.55rem;
    min-width: 0;
}

.request-log-detail span {
    display: block;
    color: var(--color-muted-ink, #5f6f7e);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.request-log-detail strong {
    display: block;
    color: var(--color-navy, #173250);
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 0.15rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

 
.portal-status-badge {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
    padding: 0.35rem 0.6rem;
    white-space: nowrap;
}

.portal-status-new {
    background: #eef2f7;
    color: #475569;
}

.portal-status-waiting {
    background: #fff7ed;
    color: #9a3412;
}

.portal-status-active {
    background: #eff6ff;
    color: #1d4ed8;
}

.portal-status-complete {
    background: #ecfdf5;
    color: #047857;
}

.portal-status-stopped {
    background: #fef2f2;
    color: #b91c1c;
}

.request-log-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 8.75rem;
    }

    .portal-page :where(a, button, input, select, textarea, summary, [tabindex]):not([tabindex="-1"]) {
        scroll-margin-top: 8.75rem;
    }

    .portal-topbar-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand cro"
            "actions actions";
        align-items: center;
    }

    .portal-brand {
        grid-area: brand;
    }

    .portal-cro-link-brand {
        grid-area: cro;
    }

    .portal-topbar-actions {
        grid-area: actions;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }

    .portal-nav-toggle {
        display: inline-flex;
    }

    .portal-nav {
        display: none;
        order: 10;
        flex: 1 0 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.15rem;
        max-width: 100%;
        margin-top: 0.45rem;
        padding-top: 0.45rem;
        border-top: 1px solid var(--color-line, #d9e2ea);
    }

    .portal-topbar-actions.portal-nav-open .portal-nav {
        display: flex;
    }

    .portal-topbar-actions.portal-nav-open .portal-nav-toggle {
        background: #f1f5f9;
    }

    .portal-nav-link {
        text-align: left;
        padding: 0.6rem 0.9rem;
        font-size: 0.95rem;
        white-space: normal;
    }

    .portal-cro-link img {
        height: 22px;
    }

    .portal-cro-link {
        font-size: 0.68rem;
        max-width: 8rem;
    }

    

    .portal-banner {
        max-height: 42vh;
    }

    .portal-banner img {
        max-height: none;
    }

    .portal-masthead-actions {
        padding: 1.1rem 1rem 0;
    }

    .portal-hero h1,
    .portal-hero h2 {
        font-size: 1.7rem;
    }

    .portal-home-shell,
    .portal-home-support {
        padding-inline: 1rem;
    }

    .portal-home-lookup {
        padding-inline: 1rem;
    }

    .portal-page-heading h1 {
        font-size: 1.6rem;
    }

    .portal-status-badge {
        white-space: normal;
        text-align: right;
    }

    .request-log-toolbar {
        align-items: flex-start;
    }

    .request-log-count {
        width: 100%;
    }

    .request-log-sort-mobile {
        display: inline-flex;
    }

    .request-log-header {
        display: none;
    }

    .request-log-row-grid {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "request status"
            "description description"
            "department received"
            "expand expand";
        align-items: start;
        gap: 0.55rem 0.75rem;
    }

    .request-log-summary,
    .request-log-expanded {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .request-log-request-cell {
        grid-area: request;
    }

    .request-log-description {
        display: -webkit-box;
        grid-area: description;
        white-space: normal;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .request-log-department {
        grid-area: department;
    }

    .request-log-received {
        grid-area: received;
        text-align: right;
    }

    .request-log-status {
        grid-area: status;
        justify-content: flex-end;
    }

    .request-log-expand {
        grid-area: expand;
        justify-content: flex-start;
    }

    .request-log-department,
    .request-log-received {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
        white-space: normal;
    }

    .request-log-mobile-label {
        display: inline;
        color: var(--color-muted-ink, #5f6f7e);
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .request-log-page-size,
    .request-log-sort-mobile {
        flex: 1 1 auto;
    }
}

@media (max-width: 540px) {
    .portal-brand img,
    .portal-brand img[width] {
        height: 42px;
        max-width: 132px;
    }

    .portal-hero p {
        max-width: 340px;
    }

    .request-log-page-size,
    .request-log-sort-mobile {
        width: 100%;
    }

    .request-log-size-select,
    .request-log-sort-select {
        flex: 1 1 auto;
        width: auto;
    }

    .request-log-row-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "request"
            "status"
            "description"
            "department"
            "received"
            "expand";
    }

    .request-log-status,
    .request-log-received {
        justify-content: flex-start;
        text-align: left;
    }
}

 
.rich-text-source-hidden {
    display: none;
}

.rich-text-editor {
    background: #fff;
    border: 1px solid #c9d6e2;
    border-radius: 10px;
    

}

.rich-text-editor .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid var(--color-line, #d9e2ea);
    background: #f8fbfd;
    border-radius: 10px 10px 0 0;
}

.rich-text-editor .ql-container.ql-snow {
    border: 0;
    border-radius: 0 0 10px 10px;
    color: var(--color-navy, #173250);
    font: inherit;
    font-size: 1rem;
}

 
.rich-text-editor .ql-tooltip {
    z-index: 30;
    max-width: calc(100vw - 2rem);
    white-space: normal;
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(15, 42, 71, 0.18);
}

.rich-text-editor .ql-tooltip input[type="text"] {
    width: 12rem;
    max-width: 60vw;
}

.rich-text-editor .ql-editor {
    min-height: 9rem;
    font-size: 1rem;
    line-height: 1.55;
}

.rich-text-editor .ql-editor:focus {
    box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
    outline: none;
}

.rich-text {
    color: inherit;
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.rich-text :where(p, h2, h3, ul, ol, blockquote) {
    margin: 0 0 0.75rem;
    white-space: normal;
}

.rich-text :where(p, h2, h3, ul, ol, blockquote):last-child {
    margin-bottom: 0;
}



.rich-text h2,
.rich-text h3,
.rich-text-editor .ql-editor h2,
.rich-text-editor .ql-editor h3 {
    color: var(--color-navy, #173250);
    font-weight: 800;
    letter-spacing: 0;
}

.rich-text h2,
.rich-text-editor .ql-editor h2 {
    font-size: 1.25rem;
    line-height: 1.3;
}

.rich-text h3,
.rich-text-editor .ql-editor h3 {
    font-size: 1.08rem;
    line-height: 1.35;
}

.rich-text ul,
.rich-text ol {
    padding-left: 1.45rem;
}

.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }

.rich-text li {
    margin: 0.25rem 0;
}

.rich-text blockquote {
    border-left: 4px solid color-mix(in srgb, var(--accent) 50%, #d9e2ea);
    color: #425466;
    padding-left: 0.9rem;
}



.rich-text.rich-text-as-edited :where(p, h2, h3, ul, ol) {
    margin: 0;
}

.rich-text.rich-text-as-edited li {
    margin: 0;
}

.rich-text.rich-text-as-edited blockquote {
    margin: 5px 0;
}

.rich-text a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}
