/* /Components/HeaderPage.razor.rz.scp.css */
/* Scoped to HeaderPage.razor. Because HeaderPage is included on every page
   (Index, OffenderSearch, VictimSearch, ...), this masthead is global.
   Bundled automatically into RespayWebPortal.styles.css.
   Recreates the DPSCS "angled masthead" from https://dpscs.maryland.gov/ */

/* Masthead band. Solid maroon base fills the whole strip. */
.mdgov-masthead[b-dy4nabauue] {
    position: relative;
    overflow: hidden;
    min-height: 225px;
    background-color: #981E32;
}

/* Flag lives in the right-hand box, undistorted, with a DIAGONAL left edge
   (clip-path) so the maroon meets the flag on an angle. Wider at the top,
   like the original site. */
.mdgov-masthead__flag[b-dy4nabauue] {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 42%;
    background-image: url('/Images/masthead-bg-angled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
}

/* Seal + titles: centered as a group, above everything, white text.
   Constrained to the maroon area (right: 40%) so it stays off the flag. */
.mdgov-masthead__content[b-dy4nabauue] {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    right: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1rem 1.5rem;
    text-align: center;
    color: #ffffff;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

.mdgov-masthead__seal[b-dy4nabauue] {
    flex: 0 0 auto;
    width: 110px;
    height: auto;
}

.mdgov-masthead__titles[b-dy4nabauue] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: #ffffff;
}

.mdgov-title-lg[b-dy4nabauue] {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.05;
}

.mdgov-title-md[b-dy4nabauue] {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.mdgov-title-sm[b-dy4nabauue] {
    font-size: 1rem;
    font-weight: 500;
}

/* Narrow screens: full-width maroon, hide the flag, no angle. */
@media (max-width: 960px) {
    .mdgov-masthead__flag[b-dy4nabauue] {
        display: none;
    }

    .mdgov-masthead__content[b-dy4nabauue] {
        right: 0;
    }
}
/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-zks8c37xwl] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-zks8c37xwl] {
    flex: 1;
}

.sidebar[b-zks8c37xwl] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-zks8c37xwl] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-zks8c37xwl]  a, .top-row[b-zks8c37xwl]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-zks8c37xwl]  a:hover, .top-row[b-zks8c37xwl]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-zks8c37xwl]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-zks8c37xwl] {
        display: none;
    }

    .top-row.auth[b-zks8c37xwl] {
        justify-content: space-between;
    }

    .top-row[b-zks8c37xwl]  a, .top-row[b-zks8c37xwl]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-zks8c37xwl] {
        flex-direction: row;
    }

    .sidebar[b-zks8c37xwl] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-zks8c37xwl] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-zks8c37xwl]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-zks8c37xwl], article[b-zks8c37xwl] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
