.analog-search {
    --analog-ink: #17363b;
    --analog-brand: #00666d;
    --analog-line: #c9dfe0;
    display: grid;
    gap: 18px;
    margin: 4px 0 30px;
    color: var(--analog-ink);
    min-width: 0;
}

.analog-search :is(input, select, button, a):focus-visible {
    outline: 2px solid #00858b;
    outline-offset: 2px;
}

.analog-search__actions,
.analog-search__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.analog-search__pages :is(a, span) {
    padding: 9px 13px;
    color: var(--analog-brand);
    background: #fff;
    border: 1px solid var(--analog-line);
    border-radius: 4px;
    text-decoration: none;
}

.analog-search__pages [aria-current] {
    background: #e8f5f5;
    border-color: #00858b;
    font-family: 'gotham_probold', sans-serif;
}

.analog-search__form,
.analog-search__notice {
    padding: clamp(14px, 3vw, 23px);
    background: #fff;
    border: 1px solid var(--analog-line);
    border-radius: 6px;
}

.analog-search p {
    margin: 0 0 10px;
}

.analog-search__form label,
.analog-search__form legend {
    display: block;
    color: var(--analog-ink);
    font: .9rem/1.4 'gotham_probold', sans-serif;
}

.analog-search__form p,
.analog-search__hint {
    color: #526368;
}

.analog-search__form label {
    margin-bottom: 5px;
}

.analog-search__form :is(input:not([type=hidden]), select) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin-top: 4px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #aac9cc;
    border-radius: 4px;
    color: var(--analog-ink);
    font: .9rem/1.4 'gotham_proregular', sans-serif;
}

.analog-search__entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.analog-search__model {
    position: relative;
    min-width: 0;
}

.analog-search__suggestions {
    position: absolute;
    z-index: 6;
    inset: 100% 0 auto;
    max-height: 240px;
    overflow: auto;
    margin: 4px 0 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--analog-line);
    border-radius: 4px;
    box-shadow: 0 6px 16px rgb(0 65 69 / 12%);
}

.analog-search__suggestions li {
    padding: 9px 10px;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.analog-search__suggestions li:hover,
.analog-search__suggestions [aria-selected=true] {
    background: #e8f5f5;
    color: var(--analog-brand);
}

.analog-search__filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 12px 0;
}

.analog-search__filters > .analog-search__field {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.analog-search__form .analog-search__field select {
    margin-top: 0;
}

.analog-search__flux {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.analog-search__form .analog-search__flux legend {
    width: auto;
    margin: 0 0 6px;
    padding: 0;
}

.analog-search__range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.analog-search__range label {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding-left: 10px;
    border: 1px solid #aac9cc;
    border-radius: 4px;
    font-family: 'gotham_proregular', sans-serif;
}

.analog-search__form .analog-search__range input[type=number] {
    min-height: 42px;
    margin: 0;
    padding: 8px;
    border: 0;
    background: transparent;
}

.analog-search__range label:focus-within {
    outline: 2px solid #00858b;
    outline-offset: 2px;
}

.analog-search__form .analog-search__range input:focus-visible {
    outline: 0;
}

.analog-search__modes,
.analog-search__form .analog-search__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 440px;
}

.analog-search .analog-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    max-width: 100%;
    min-height: 35px;
    padding: 3px 8px;
    color: #fff;
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
}

.analog-search .analog-search__modes .analog-search__button,
.analog-search .analog-search__form .analog-search__actions .analog-search__button {
    width: 100%;
}

.analog-search__modes [aria-current=page] {
    box-shadow: inset 0 -3px #004f56;
}

.analog-search .analog-search__button:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.analog-search__button:disabled {
    opacity: .65;
    cursor: wait;
}

.analog-search__notice h2,
.analog-search__results h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.analog-search__card h3 a {
    color: var(--analog-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.analog-search__result-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.analog-search__applied {
    color: var(--analog-brand);
    font-family: 'gotham_probold', sans-serif;
}

.analog-search__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 14px;
}

.analog-search__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--analog-line);
    border-radius: 6px;
    background: #fff;
    overflow-wrap: anywhere;
}

.analog-search__photo {
    display: block;
    padding: 10px 14px 0;
}

.analog-search__photo img {
    display: block;
    width: 100%;
    height: 132px;
    object-fit: contain;
    background: #fff;
}

.analog-search__card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.analog-search__card h3 {
    margin: 0;
    font-size: .95rem;
    line-height: 1.45;
}

.analog-search__card .analog-search__match {
    margin: 0;
    padding: 7px 8px;
    background: #edf7f7;
    border-radius: 4px;
    font-size: .76rem;
    line-height: 1.4;
}

.analog-search__match strong {
    display: block;
    color: var(--analog-brand);
}

.analog-search__specs {
    margin: 0;
    font-size: .82rem;
}

.analog-search__specs div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 4px 0;
    border-top: 1px solid #edf2f2;
}

.analog-search__specs dt,
.analog-search__specs dd {
    margin: 0;
}

.analog-search__specs dt {
    color: #526368;
    font-weight: normal;
}

.analog-search__compare {
    margin-top: auto;
}

.analog-search .analog-search__compare .analog-search__button {
    width: 100%;
}

.analog-search__compare .analog-search__status {
    margin: 6px 0 0;
    font-size: .8rem;
}

.analog-search__status:empty {
    display: none;
}

.analog-search__pages {
    margin-top: 14px;
}

.analog-search__result-footer {
    justify-content: flex-end;
    margin-top: 16px;
}

#analog-search-form,
#analog-results,
#analog-consultation {
    scroll-margin-top: 16px;
}

@media (max-width: 580px) {
    .analog-search__entry,
    .analog-search__filters {
        grid-template-columns: minmax(0, 1fr);
    }

}

@media (max-width: 420px) {
    .analog-search__modes,
    .analog-search__form .analog-search__actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

