/* jQuery UI's screen-reader live region (normally hidden by the jQuery UI theme CSS).
       jQuery UI appends it to <body>, so it can't be scoped to the form. */
    .ui-helper-hidden-accessible {
        position: absolute !important;
        clip: rect(1px, 1px, 1px, 1px);
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        border: 0;
        overflow: hidden;
    }

    /* Course dropdown - neutral Study site colours. Applies to any Marketo form (.mktoForm) on the page. */
    .mktoForm .mkto-ocb-result {
        --ocb-text: #222;
        --ocb-border: #aaa;
        --ocb-highlight: #f7f5f2;
        position: relative;
    }

    /* The list: sits under the field, fixed width (never narrower than the field, never wider than the screen) */
    .mktoForm .mkto-ocb-result ul.ui-autocomplete {
        position: absolute;
        z-index: 98;
        top: 0 !important;   /* jQuery UI sets top/left inline, so !important is needed */
        left: 0 !important;
        box-sizing: border-box;
        width: 40em !important;
        min-width: 100%;
        max-width: 90vw;
        max-height: 20em;
        margin: 0;
        padding: 0;
        overflow-y: auto;
        list-style: none;
        background: #fff;
        border: 1px solid var(--ocb-border);
        box-shadow: 0 1em 1em rgba(0, 0, 0, 0.1);
    }

    .mktoForm .mkto-ocb-result ul.ui-autocomplete li { margin: 0; }

    /* Items: the 1px transparent border reserves space for the highlight border, so nothing shifts */
    .mktoForm .mkto-ocb-result ul.ui-autocomplete .ui-menu-item-wrapper {
        display: block;
        padding: 0.5rem 1rem;
        border: 1px solid transparent;
        color: var(--ocb-text);
        line-height: 1.3;
        white-space: normal;
        cursor: pointer;
    }

    /* Highlighted item (hover or keyboard) */
    .mktoForm .mkto-ocb-result ul.ui-autocomplete .ui-menu-item-wrapper:hover,
    .mktoForm .mkto-ocb-result ul.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
        margin: 0 !important; /* jQuery UI's theme uses -1px here, which would shift the text */
        background: var(--ocb-highlight) !important;
        border: 1px solid var(--ocb-border) !important;
        color: var(--ocb-text) !important;
        font-weight: normal;
        outline: none !important;
        box-shadow: none !important;
    }