/* On-site search: header pop-up results + /search/ page (assets/js/site-search.js) */

/* pop-up grows to fit results; scrolls if they are taller than the screen */
.search__popup { height: auto; min-height: 55%; max-height: 100vh; overflow-y: auto; overscroll-behavior: contain; }
.search__popup .search__top { margin-bottom: 56px; }
.search__input input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

.mm-sr mark { background: none; color: #EE9723; font-weight: 600; padding: 0; }
.mm-sr__list { list-style: none; margin: 0; padding: 0; }
.mm-sr__link { display: block; text-decoration: none; }
.mm-sr__crumb { display: block; font-size: 12.5px; letter-spacing: .02em; text-transform: lowercase; margin-bottom: 4px; }
.mm-sr__title { display: block; font-family: "Outfit", sans-serif; font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.mm-sr__text { display: block; font-size: 15px; line-height: 1.6; }
.mm-sr__none a { text-decoration: underline; text-underline-offset: 3px; }

/* header pop-up (dark glass) */
.mm-sr--pop { max-width: 900px; }
.mm-sr--pop:empty { display: none; }
.search__popup.mm-sr-open .mm-sr--pop { margin-top: 18px; }
.mm-sr--pop .mm-sr__item + .mm-sr__item { border-top: 1px solid rgba(255, 255, 255, .12); }
.mm-sr--pop .mm-sr__link { padding: 16px 14px; margin: 0 -14px; border-radius: 12px; transition: background .2s ease; }
.mm-sr--pop .mm-sr__link:hover, .mm-sr--pop .mm-sr__link:focus-visible { background: rgba(255, 255, 255, .07); outline: none; }
.mm-sr--pop .mm-sr__crumb { color: rgba(255, 255, 255, .5); }
.mm-sr--pop .mm-sr__title { color: #fff; transition: color .2s ease; }
.mm-sr--pop .mm-sr__link:hover .mm-sr__title, .mm-sr--pop .mm-sr__link:focus-visible .mm-sr__title { color: #EE9723; }
.mm-sr--pop .mm-sr__text { color: rgba(255, 255, 255, .72); }
.mm-sr--pop .mm-sr__all { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 4px; padding: 12px 24px; border-radius: 50px;
  background: #8D441F; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s ease; }
.mm-sr--pop .mm-sr__all:hover, .mm-sr--pop .mm-sr__all:focus-visible { background: #EC7225; color: #fff; outline: none; }
.mm-sr--pop .mm-sr__none { color: rgba(255, 255, 255, .78); font-size: 16px; margin: 6px 0 0; }
.mm-sr--pop .mm-sr__none a { color: #EE9723; }

/* /search/ page */
.mm-search { max-width: 860px; margin: 0 auto; }
.mm-search__form { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.mm-search .mm-search__field { flex: 1; min-width: 0; height: 60px !important; line-height: normal; margin: 0; padding: 0 22px; border: 1.5px solid #ecdfd3; border-radius: 50px; background: #fff;
  font-size: 17px; color: #2b1a10; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.mm-search .mm-search__field:focus { border-color: #EC7225; box-shadow: 0 0 0 4px rgba(236, 114, 37, .15); }
.mm-search__field::-webkit-search-cancel-button { cursor: pointer; }
.mm-search__form .rr-btn__header { border: 0; cursor: pointer; flex: none; }
.mm-search__status { color: #5e5e5e; font-size: 15px; margin: 0 0 8px; min-height: 1.6em; }
.mm-search .mm-sr__item { border-top: 1px solid #ecdfd3; }
.mm-search .mm-sr__item:last-child { border-bottom: 1px solid #ecdfd3; }
.mm-search .mm-sr__link { padding: 22px 18px; margin: 0 -18px; border-radius: 14px; transition: background .2s ease; }
.mm-search .mm-sr__link:hover, .mm-search .mm-sr__link:focus-visible { background: #FAF6F2; outline: none; }
.mm-search .mm-sr__crumb { color: #8D441F; }
.mm-search .mm-sr__title { color: #2b1a10; font-size: 22px; transition: color .2s ease; }
.mm-search .mm-sr__link:hover .mm-sr__title { color: #EC7225; }
.mm-search .mm-sr__text { color: #5e5e5e; }
.mm-search mark { color: #8D441F; background: #fbe7d6; border-radius: 3px; padding: 0 2px; }
.mm-search .mm-sr__none { font-size: 17px; color: #2b1a10; margin: 12px 0 0; }
.mm-search .mm-sr__none a { color: #8D441F; }

@media (max-width: 991px) {
  .search__popup { padding: 40px 24px 60px; }
}
@media (max-width: 767px) {
  .search__popup { padding: 28px 6px 48px; }
  .search__popup .search__top { margin-bottom: 28px; }
  .search__popup .search__input { height: 64px; }
  .search__popup .search__input input, .search__popup .search__input input::placeholder { font-size: 20px; }
  .mm-sr__title { font-size: 18px; }
  .mm-sr__text { font-size: 14.5px; }
  .mm-search__form { flex-direction: column; align-items: stretch; }
  .mm-search .mm-search__field { flex: none; }
  .mm-search__form .rr-btn__header { justify-content: center; }
  .mm-search .mm-sr__title { font-size: 19px; }
}
