/* Search */
.search-dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.search-dialog-top h2 { flex: 1; padding-top: 3px; }
.search-dialog-top .header-icon-button { flex: none; margin: -10px -10px 0 0; }
.search-dialog-form { margin: 0; }
.search-suggestions[hidden] { display: none; }
.search-suggestions { max-height: min(48vh, 450px); overflow-y: auto; margin-top: 16px; border: 1px solid #e5e0d8; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgb(43 33 20 / 7%); }
.search-suggestions-heading { margin: 0; padding: 14px 18px 6px; color: #7b6b5b; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.search-suggestion { display: grid; gap: 3px; padding: 11px 18px; border-top: 1px solid #f0eeea; color: #292929; text-decoration: none; }
.search-suggestion:hover, .search-suggestion:focus-visible { background: #fff7eb; outline: none; }
.search-suggestion strong { font-size: 16px; line-height: 1.3; }
.search-suggestion span { color: #736b63; font-size: 12px; }
.search-suggestion small { overflow: hidden; color: #514c47; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion-all { display: block; padding: 13px 18px; border-top: 1px solid #e5e0d8; color: #99540b; font-weight: 700; text-decoration: none; }
.search-suggestion-all:hover { background: #fff7eb; }
.search-suggestions-empty { margin: 0; padding: 15px 18px; color: #70685f; }
.search-page { padding-top: 40px; padding-bottom: 80px; }
.search-page-form { max-width: 850px; margin-bottom: 38px; }
.search-page-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.search-page-heading h2 { margin: 0 0 15px; font-size: clamp(23px, 2.5vw, 31px); font-weight: 600; }
.search-page-heading p { flex: none; margin: 0 0 17px; color: #746d65; font-size: 14px; }
.search-empty-intro { color: #70685f; }
.search-group { margin-bottom: 44px; }
.search-group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 21px; font-weight: 600; }
.search-group h3 span { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 50px; background: #f3eee8; color: #65594e; font-size: 13px; }
.search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.search-hit { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 170px; gap: 5px; padding: 20px 46px 20px 22px; border: 1px solid #ded9d1; border-radius: 10px; background: #fff; color: #292929; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s; }
.search-hit:hover, .search-hit:focus-visible { border-color: var(--orange-dark); box-shadow: 0 8px 24px rgb(47 35 20 / 9%); transform: translateY(-2px); outline: none; }
.search-hit-meta { color: #93601b; font-size: 12px; font-weight: 700; line-height: 1.4; }
.search-hit-title { font-size: 19px; font-weight: 700; line-height: 1.2; }
.search-hit-location { margin-top: 3px; color: #6e665c; font-size: 12px; font-weight: 600; }
.search-hit-snippet { display: -webkit-box; overflow: hidden; margin-top: 5px; color: #4d4944; font-size: 14px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-hit-arrow { position: absolute; top: 20px; right: 20px; color: var(--orange-dark); font-size: 22px; line-height: 1; }
.search-hit mark, .search-suggestion mark, .search-focus-section mark { padding: 0 2px; border-radius: 2px; background: #ffda91; color: inherit; }
.search-focus-section { scroll-margin-top: 100px; padding-left: 18px; border-left: 4px solid var(--orange); background: linear-gradient(90deg, #fff7e9, transparent 70%); }
@media (max-width: 760px) {
    .search-results { grid-template-columns: 1fr; }
    .search-page-heading { align-items: flex-start; flex-direction: column; gap: 0; }
    .search-hit { min-height: 0; }
}

.search-results .search-hit { display: flex; grid-template-columns: none; gap: 5px; padding: 20px 46px 20px 22px; }
.search-results .search-hit:hover { border-color: var(--orange-dark); }
.search-dialog .search-dialog-top h2 { margin: 0; font-size: clamp(27px, 3.5vw, 38px); line-height: 1.12; }
.search-results .search-hit .search-hit-meta { color: #93601b; font-size: 12px; }
.search-results .search-hit .search-hit-location { color: #6e665c; font-size: 12px; }
.search-results .search-hit .search-hit-snippet { display: -webkit-box; color: #4d4944; font-size: 14px; }
.search-results .search-hit .search-hit-arrow { position: absolute; top: 20px; right: 20px; color: var(--orange-dark); font-size: 22px; }

/* One relevance list in both views; category is attached to each hit. */
.search-suggestions { border: 0; border-top: 1px solid #e9e4dc; border-radius: 0; box-shadow: none; margin-top: 20px; }
.search-suggestion { gap: 3px; padding: 13px 2px; border-top: 0; border-bottom: 1px solid #eee9e2; }
.search-suggestion:hover, .search-suggestion:focus-visible { background: #fffaf3; }
.search-suggestion-top, .search-hit-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.search-suggestion .search-suggestion-badge, .search-results .search-hit .search-hit-badge { display: inline-flex; align-items: center; width: fit-content; min-height: 21px; padding: 2px 8px; border-radius: 4px; background: #f5e9d8; color: #82500e; font-size: 11px; font-weight: 700; line-height: 1.2; }
.search-suggestion .search-suggestion-path, .search-results .search-hit .search-hit-path { overflow: hidden; color: #7b746b; font-size: 12px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion strong { font-size: 16px; }
.search-suggestion small { color: #5c554d; white-space: normal; line-height: 1.4; }
.search-suggestion-all { margin-top: 3px; padding: 13px 2px; border-top: 0; }
.search-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 25px; }
.search-filters a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid #ded7ce; border-radius: 50px; color: #504a43; font-size: 14px; line-height: 1.2; text-decoration: none; }
.search-filters a:hover, .search-filters a:focus-visible { border-color: #b97927; color: #8b4f0e; outline: none; }
.search-filters a[aria-current="page"] { border-color: #af6715; background: #fff1dd; color: #7c4206; font-weight: 700; }
.search-filters span { color: inherit; opacity: .7; font-size: 12px; }

/* The modal already shows the location in its breadcrumb. */
.search-dialog .search-suggestion-path { color: #8b5716; font-weight: 700; }
.search-dialog:focus { outline: none; }
.search-dialog-form input:focus { border-color: #d6d3d1; outline: none; box-shadow: none; }

/* Search modal header follows the contact form's accent and icon treatment. */
.search-dialog { border-top: 4px solid var(--orange); border-radius: 14px; }
.search-dialog-top { align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.search-dialog-mark { display: grid; width: 47px; height: 47px; flex: none; place-items: center; border-radius: 13px; color: #a75d00; background: #fff1dd; }
.search-dialog-mark svg { width: 27px; height: 27px; }
.search-dialog-heading { flex: 1; min-width: 0; }
.search-dialog .search-dialog-heading h2 { margin: 0 0 4px; padding: 0; font-size: 27px; font-weight: 600; line-height: 1.2; }
.search-dialog-heading p { margin: 0; color: #706b65; font-size: 16px; line-height: 1.45; }
.search-dialog-top .header-icon-button { margin: -8px -10px 0 0; }
@media (max-width: 520px) {
    .search-dialog-top { gap: 12px; }
    .search-dialog-mark { width: 40px; height: 40px; }
    .search-dialog-mark svg { width: 23px; height: 23px; }
    .search-dialog .search-dialog-heading h2 { font-size: 23px; }
    .search-dialog-heading p { font-size: 14px; }
}

/* Test detail pages and direct links from product sidebars. */
.testkit-page { padding-top: 42px; padding-bottom: 85px; }
.testkit-kicker { margin: 0 0 8px; color: #9a580c; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.testkit-lead { max-width: 760px; margin: 0 0 38px; color: #625c54; font-size: 19px; line-height: 1.5; }
.testkit-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(28px, 5vw, 70px); }
.testkit-layout h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; padding-bottom: 11px; border-bottom: 2px solid var(--orange); font-size: 23px; }
.testkit-layout h2 span { color: #8a5c23; font-size: 15px; }
.testkit-product-list, .testkit-document-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.testkit-product-list a, .testkit-document-list a { display: grid; gap: 3px; padding: 17px 19px; border: 1px solid #e5dfd7; border-radius: 9px; color: #292929; text-decoration: none; }
.testkit-product-list a:hover, .testkit-document-list a:hover { border-color: var(--orange-dark); background: #fffaf3; }
.testkit-product-list strong, .testkit-document-list strong { font-size: 17px; }
.testkit-product-list a > span, .testkit-document-list a > span { color: #756c62; font-size: 13px; }
.product-kit:target { scroll-margin-top: 120px; margin-left: -10px; padding-left: 10px; border-left: 3px solid var(--orange); background: #fff8eb; }
@media (max-width: 760px) { .testkit-layout { grid-template-columns: 1fr; } }

/* On the results page suggestions expand the document flow instead of covering results. */
.search-page-query { max-width: 850px; margin-bottom: 38px; }
.search-page .search-page-form { max-width: none; margin-bottom: 0; }
.search-page .search-suggestions { position: static; width: 100%; max-height: 390px; overflow-y: auto; margin: 12px 0 0; padding: 0 18px 8px; border: 1px solid #e0d8ce; border-top: 3px solid var(--orange); border-radius: 8px; background: #fffaf5; box-shadow: 0 5px 18px rgb(43 33 20 / 7%); }
.search-page .search-suggestions-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 10px; border-bottom: 1px solid #e9e0d5; }
.search-page .search-suggestions-header strong { color: #37312b; font-size: 15px; font-weight: 700; }
.search-page .search-suggestions-header button { padding: 4px 0 4px 8px; border: 0; color: #8b5414; background: none; font: inherit; font-size: 13px; cursor: pointer; }
.search-page .search-suggestions-header button:hover { text-decoration: underline; }
.search-page .search-suggestion { padding-inline: 0; background: transparent; }
.search-page .search-suggestion:hover, .search-page .search-suggestion:focus-visible { background: #fff0db; }
.search-page .search-suggestion-all { padding-inline: 0; }
/* Keep the labelled suggestions panel anchored to the search field without moving results. */
.search-page-query { position: relative; }
.search-page .search-suggestions { position: absolute; z-index: 20; top: 100%; left: 0; margin-top: 10px; box-shadow: 0 14px 36px rgb(43 33 20 / 18%); }
