/* Clear search affordances, shared by repository subpages. */
body #page :is(.dl-filter-bar, .pg-directory-search, .rg-filters) {
    gap: 10px 12px;
    padding: 12px 14px;
    background: #edf5fc;
    border: 1px solid #bad1e5;
    border-left: 3px solid var(--pri, #2869ad);
    border-radius: 6px;
    box-shadow: 0 2px 5px #174c7810;
    font-size: 12px;
}

/* Expose existing accessible labels instead of relying only on placeholders. */
body #page .dl-filter-bar .dl-filter-group > label,
body #page .pg-directory-search > label,
body #page .rg-filters > label {
    position: static !important;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    overflow: visible;
    white-space: normal;
    margin: 0 0 5px;
    padding: 0;
    color: #224968;
    font: 400 12px/1.4 var(--font, Arial, sans-serif);
}
body #page :is(.pg-directory-search, .rg-filters) > label { margin: 0; }

body #page :is(.dl-filter-bar, .pg-directory-search, .rg-filters) input:is([type="text"], [type="search"]),
body #page :is(#rn-search, #rn-table-search) {
    min-height: 38px;
    height: 38px;
    padding: 8px 12px 8px 38px;
    color: #173b57;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='%232869ad' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 11px center;
    background-size: 19px;
    border: 1.5px solid #648fb5;
    border-radius: 5px;
    box-shadow: inset 0 1px 2px #123d6310;
    font: 400 12px/1.4 var(--font, Arial, sans-serif);
    opacity: 1;
    transition: border-color .15s, box-shadow .15s;
}
body #page :is(.dl-filter-bar, .pg-directory-search, .rg-filters) input::placeholder,
body #page :is(#rn-search, #rn-table-search)::placeholder {
    color: #526b7e;
    opacity: 1;
}
body #page :is(.dl-filter-bar, .pg-directory-search, .rg-filters) input:is([type="text"], [type="search"]):hover,
body #page :is(#rn-search, #rn-table-search):hover { border-color: #2869ad; }
body #page :is(.dl-filter-bar, .pg-directory-search, .rg-filters) input:is([type="text"], [type="search"]):focus,
body #page :is(#rn-search, #rn-table-search):focus {
    border-color: #145b9d;
    outline: 2px solid #aacdf0;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #2869ad12;
    background-color: #fff;
}

body #page :is(.dl-filter-bar, .pg-directory-search, .rg-filters) select {
    min-height: 38px;
    height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
    color: #173b57;
    background-color: #fff;
    border: 1px solid #8eafcc;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 400;
}
body #page :is(.dl-filter-bar, .pg-directory-search, .rg-filters) button[type="submit"] {
    min-height: 38px;
    padding: 8px 18px;
    border: 1px solid #195b97;
    border-radius: 5px;
    background: var(--pri, #2869ad);
    color: #fff;
    font: 400 12px/1.4 var(--font, Arial, sans-serif);
}
body #page :is(.dl-filter-bar, .pg-directory-search, .rg-filters) button[type="submit"]:hover {
    background: #1b568c;
}
body #page :is(.dl-filter-bar, .pg-directory-search, .rg-filters) :is(select, button):focus-visible {
    outline: 2px solid #145b9d;
    outline-offset: 3px;
}
body #page .pg-directory-search input[type="search"] {
    flex: 1 1 260px;
    width: min(100%, 420px);
    max-width: 580px;
    min-width: 0;
}
body #page .rg-filters input[type="search"] { flex: 0 1 420px; width: 420px; min-width: 220px; }
@media (max-width: 600px) {
    body #page :is(.dl-filter-bar, .pg-directory-search, .rg-filters) {
        padding: 10px;
        gap: 9px;
    }
    body #page .dl-filter-search { flex-basis: 100%; min-width: 0; }
    body #page :is(.pg-directory-search, .rg-filters) input[type="search"] {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}
