#main .autocomplete {
    position: relative;
    flex: 1;
    line-height: 1.5;
}

    #main .autocomplete-item {
        z-index: 1;
        margin: 0;
        padding: 0;
        font-size: 0.875rem;
        box-shadow: inset 0 -1px 0 0 #3e3e3e;
        transform: rotate(0);
    }

    #main .autocomplete-item a {
            display: block;
            width: 100%;
            margin: 0;
            padding: 0.5rem;
            color: #fff;
            text-decoration: none;
        }

    #main .autocomplete-item a span {
                color: #fc0;
            }

    #main .autocomplete-item a:before {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            display: block;

            width: 100%;
            height: 100%;
            content: "";
        }

    #main .autocomplete-item a:focus {
            outline: none;
        }

    #main .autocomplete-item:focus-within,
        #main .autocomplete-item:hover {
            text-decoration: underline;
            -webkit-text-decoration: solid underline currentColor 2px;
                    text-decoration: solid underline currentColor 2px;
            background-color: #3e3e3e;
        }

    #main .autocomplete-list {
        position: absolute;
        z-index: 10;
        display: none;
        width: 100%;
        max-height: 0;
        border-radius: 0 0 0.25rem 0.25rem;

        overflow-x: hidden;
        overflow-y: auto;
        color: black;
        background: #000;
        box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
        transition: max-height 0.2s ease-in-out;
    }

    #main .autocomplete_list_has-many::after {
            position: sticky;
            bottom: 0;
            left: 0;
            display: block;
            width: 100%;
            height: 2em;
            background-image: linear-gradient(transparent, black);
            content: " ";
            pointer-events: none;
        }

    #main .autocomplete_list_has-some {
        max-height: 250px;
    }

    #main .autocomplete input {
        width: 100%;
    }

    /* FIXME: These rules disappear on :hover without explanation */

    #main .autocomplete:focus-within input {
        outline: 2px dashed black !important;
        outline-offset: -3px !important;
    }

    #main .autocomplete:focus-within .autocomplete-list {
        display: block;
    }

#main .input-with-button {
    position: relative;
}

#main .input-with-button button[type="submit"] {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        border: none;
        background-color: transparent;
    }

#main .program-search-form {
        overflow: visible;
    }

#main .program-search-form button[type="submit"],
        #main .program-search-form input {
            border: none;
            border-radius: 0;
        }

#main .program-search-form button[type="submit"] {
            --search-icon-size: 1.25rem;

            min-width: 0;
            padding: 1.25rem;
        }

#main .program-search-form button[type="submit"]:before {
                position: absolute;
                top: 0;
                right: 0;
                bottom: 0;
                left: 0;
                display: block;
                width: 100%;
                height: 100%;
                background-image: url("https://www.mtu.edu/mtu_resources/images/n/search-black.svg");
                background-repeat: no-repeat;
                background-position: center center;
                background-size: var(--search-icon-size) var(--search-icon-size);
                content: "";
            }

#main .program-search-form input {
            height: 42px;
            color: black; /* Using revert causes white-on-white text on IE11. */
            font-size: 1rem;
            text-indent: 0.5rem;
        }

#main .program-search-intro {
        font-size: 1.125rem;
        line-height: 1.25;
        text-align: center;
    }

#main .program-search-intro h2 {
            font-weight: 300;
            font-size: 2.25rem;
        }

@media screen and (min-width: 881px) {

#main .program-search-intro {
            text-align: revert
    }
        }

#main .program-search-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }

@media (min-width: 881px) {

#main .program-search-footer {
            justify-content: flex-start
    }
        }

#main .program-search-footer-links {
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

#main .program-search-footer-links li {
            left: 0;
            display: inline-block;
            padding: 0;
        }

#main .program-search-footer-links li a {
                color: inherit;
                text-decoration: underline;
                -webkit-text-decoration: solid underline currentColor 3px;
                        text-decoration: solid underline currentColor 3px;
            }

#main .program-search-footer-links li a:focus,
            #main .program-search-footer-links li a:hover {
                text-decoration: none;
            }

#main .program-search-footer-links li.pipe:before {
                content: "|";
            }

.header-cta {
    flex-direction: column !important;
    margin-bottom: 0 !important;
    color: black !important;
}

.header-cta__button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 5px;
}

.header-cta > li {
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding-right: 0 !important;
    border-bottom: none !important;
}

@media only screen and (min-width: 881px) {
    .header-cta > li:nth-of-type(even) .header-cta__button {
        background-color: #fc0;
    }

    .header-cta__button {
        padding: 0;
    }
}

@media only screen and (max-width: 881px) {
    #program-sorter .section-fit {
        padding-bottom: 4%;
    }
}

#main .program-search {
    box-sizing: border-box;
}

#main .program-search *,
#main .program-search *::before,
#main .program-search *::after {
    box-sizing: inherit;
}

