/* one row under the heading: a bordered bar, like a browser's address bar, with the back arrow inside. */
.search {
    min-height: 0;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-bar {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #aaa;
    padding: 0.375rem 0.5rem;
    background: #fff;
}

.search-bar:focus-within {
    border-color: #5264a6;
}

/* monospace fonts draw the arrow small and off-centre, so it is enlarged without growing the bar. */
.search-back {
    border: 0;
    padding: 0;
    background: none;
    color: #5264a6;
    font-size: 1.25em;
    line-height: 1;
    cursor: pointer;
}

.search-back:disabled {
    color: #ccc;
    cursor: default;
}

.search-field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: text;
}

.search-at {
    color: #999;
}

.search-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0;
    background: none;
    color: #333;
    outline: none;
}

.search-key {
    border: 1px solid #ccc;
    padding: 0 0.3rem;
    color: #999;
    font: inherit;
    font-size: 11px;
    line-height: 1.3;
}

.search-field:focus-within .search-key {
    display: none;
}

.search-status {
    color: #666;
    white-space: nowrap;
}

.search-status:empty {
    display: none;
}
