
hr { all: revert; }

hr.fancy {
    border: none;
    border-top: 3px double #333;
    color: #333;
    overflow: visible;
    text-align: center;
    height: 5px;
}

.required-asterisk {
    color: red;
}

.usa-step-indicator__segment {
    max-width: none !important;
}

.usa-alert__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.mdgov-masthead {
    min-height: 200px !important;

}

.mde-hero {
    background: url('/path/to/forest-background.jpg') center/cover no-repeat;
    color: #fff;
    position: relative;
}

.mde-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.usa-nav__link {
    padding: 0.5rem 1rem;
    text-decoration: none;
}

    .usa-nav__link:hover {
        text-decoration: underline;
    }

.mde-social a:hover {
    color: #d9e8f6;
}

.form-check-inline {
    display: inline-flex; /* or inline-block / inline-flex */
    align-items: center; /* vertically align input & label if needed */
    margin-right: 1rem; /* spacing between inline items */
}

    /* Optionally: remove margin on the last item */
    .form-check-inline:last-child {
        margin-right: 0;
    }


.main-header {
    background-color: #002855; /* Dark blue background */
    color: #ffffff; /* White text */
    padding: 10px 0; /* Vertical padding */
    font-family: Arial, sans-serif; /* Common accessible font */
}

    .main-header .container {
        max-width: 1200px; /* Adjust as needed for your site's max width */
        margin: 0 auto; /* Center the container */
        display: flex; /* Use flexbox for alignment */
        justify-content: space-between; /* Space between logo and nav */
        align-items: center; /* Vertically align items */
        padding: 0 15px; /* Horizontal padding for smaller screens */
    }

    /* Logo and Site Title */
    .main-header .logo-link {
        display: flex; /* Flex for logo and text alignment */
        align-items: center; /* Vertically align logo and text */
        text-decoration: none; /* Remove underline from link */
        color: inherit; /* Inherit text color from header */
        height: 50px !important;
    }

    .main-header .mde-logo {
        /* Use a max-height to ensure it doesn't get too big,
       but remove a fixed 'height' if it's causing cropping. */
        height: 40px !important; /* Adjust this value as needed to fit your header design */
        width: auto; /* Maintain aspect ratio */
        margin-right: 10px;
        /* Optional: If the image has transparent areas you want to fill,
       or if you want to ensure it has a background if the image itself isn't full */
        /* background-color: transparent; */ /* Or a color if you need to fill a specific background */
        /* object-fit: contain; */ /* Ensures the entire image is visible within its bounds */
    }

    .main-header .site-title {
        font-size: 1.5em; /* Adjust font size as needed */
        font-weight: bold;
    }

    /* Navigation Styles */
    .main-header .main-nav ul {
        list-style: none; /* Remove bullet points */
        margin: 0;
        padding: 0;
        display: flex; /* Use flexbox for horizontal nav items */
    }

    .main-header .main-nav li {
        margin-left: 20px; /* Space between nav items */
    }

    .main-header .main-nav a {
        color: #ffffff; /* White link text */
        text-decoration: none; /* Remove underline */
        font-size: 0.9em; /* Adjust font size */
        padding: 5px 0; /* Add padding for better click area */
        transition: color 0.3s ease; /* Smooth hover effect */
    }

        .main-header .main-nav a:hover,
        .main-header .main-nav a:focus {
            color: #cccccc; /* Lighter color on hover/focus */
            text-decoration: underline; /* Underline on hover/focus for accessibility */
            outline: 2px solid #cccccc; /* Visible focus indicator for keyboard users */
            outline-offset: 2px; /* Space between outline and text */
        }

/* Ensure focus states are always visible */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #007bff; /* A distinct outline color */
    outline-offset: 2px;
}



/* Login Page */
#loginMdeLogo {
    max-width: 320px;
}

/* File Upload Page */
.files-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.file-row {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .25rem 0;
}

.icon-btn {
    border: 0;
    background: transparent;
    padding: .25rem;
    line-height: 1;
    cursor: pointer;
}

    .icon-btn .icon {
        display: block;
    }

    .icon-btn:focus {
        outline: 2px solid;
        outline-offset: 2px;
    }

.file-meta .userFileName {
    font-weight: 600;
}

.file-desc {
    white-space: pre-wrap;
}

/* When files are selected, keep rows inside the blue box */
.usa-file-input__target.has-selection {
    overflow: hidden; 
}

    /* Rows: no outside margins so they don't push past the border */
    .usa-file-input__target.has-selection .usa-file-input__preview {
        margin: 0;
    }

        /* subtle separators between rows */
        .usa-file-input__target.has-selection .usa-file-input__preview + .usa-file-input__preview {
            border-top: 1px solid #dfe1e2;
        }
