[hidden] {
    display: none;
}

/* Taken from awesomplete:
 * https://github.com/LeaVerou/awesomplete/blob/ed99eae/awesomplete.css#L5
 */
div.awesomplete .visually-hidden {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}

div.awesomplete * {
    font-size: 15px;
    font-family: inherit;
    text-align: initial;
}

div.awesomplete > ul {
    /* The two rules below make the list of articles cover the content below,
     * rather than pushing it down the page. */
    z-index: 255;
    position: absolute;
    width: 100%;
    max-height: 255px;
    overflow-y: scroll;
    overflow-x: hidden;
    list-style: none;
    border: 2px solid #967A7A;
    border-top: none;
    border-radius: 0 0 2px 2px;
}

html[dir="ltr"] div.awesomplete > ul {
    padding: 0 3px 0 1px;
}

html[dir="rtl"] div.awesomplete > ul {
    padding: 0 1px 0 3px;
}

div.awesomplete > ul > li {
    display: flex;
    cursor: default;
    padding: 2px 3px;
}

div.awesomplete > ul > li > div {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    background: transparent;
}

div.awesomplete div.label {
    /* This tries to be as large as it can (100:1 ratio with .count). */
    flex-grow: 100;
}

div.awesomplete div.count {
    /* Don't shrink */
    flex-shrink: 0;
    color: #5f5f54;
}

html[dir="ltr"] div.count {
    padding-left: 5px;
}

html[dir="ltr"] div.count {
    padding-right: 5px;
}

div.awesomplete {
    width: 100%;
}

div.awesomplete > input {
    width: 100%;
    border: 3px solid #937E7E;
    border-radius: 4px;
    padding: 3px;
}

div.awesomplete > input:focus {
    outline: none;
}

div.awesomplete > input[aria-expanded="true"] {
    border-bottom-color: #937E7E4D;
}

div.awesomplete > ul[hidden],
div.awesomplete > ul:empty {
    display: none;
}

div.awesomplete > ul > li:hover,
div.awesomplete > ul > li[aria-selected="true"] {
    color: black;
    background: rgba(240, 228, 236, 0.5);
}

div.awesomplete mark {
    background: none;
    font-weight: bold;
    padding: 0;
}

div.awesomplete li:hover mark {
    background: none;
    font-weight: bold;
}
