.header-search-trigger {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fffc79 url("/img/design/search-magnifier.png") center / 43px auto no-repeat;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.search-header-slot {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
}

.header-search-trigger::before {
  display: none;
}

.header-search-trigger::after {
  display: none;
}

.header-search-trigger:hover,
.header-search-trigger:focus-visible {
  background-color: #fff34f;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
  outline: 3px solid #fffc79;
  outline-offset: 3px;
}

.search-overlay[hidden] {
  display: none;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: start center;
  box-sizing: border-box;
  padding: min(18vh, 150px) 20px 30px;
  background: rgba(15, 20, 21, 0.62);
}

.search-dialog {
  position: relative;
  box-sizing: border-box;
  width: min(620px, 100%);
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 34px;
  border: 1px solid #d7d0c8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}

.search-dialog h2 {
  margin: 0 44px 22px 0;
  color: #941100;
  font: 400 28px/1.25 Lora, Georgia, serif;
}

.search-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2efeb;
  color: #222;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.zoom-overlay-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.zoom-overlay-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.zoom-overlay-form input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid #9d958d;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font: 18px/1.4 Lora, Georgia, serif;
}

.zoom-overlay-form button[type="submit"] {
  min-height: 50px;
  padding: 10px 22px;
  border: 0;
  border-radius: 6px;
  background: #941100;
  color: #fff;
  font: 700 17px/1.2 Lora, Georgia, serif;
  cursor: pointer;
}

.zoom-overlay-form button[type="submit"]:hover,
.zoom-overlay-form button[type="submit"]:focus-visible {
  background: #741000;
}

body.search-overlay-open {
  overflow: hidden;
}

.search-results {
  margin-top: 22px;
  border-top: 1px solid #d7d0c8;
}

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

.search-results .search-status {
  margin: 16px 0 12px;
  color: #59534e;
  font-size: 15px;
}

.search-results ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-results li {
  padding: 13px 0;
  border-top: 1px solid #ece8e3;
}

.search-results li:first-child {
  border-top: 0;
}

.search-results li > a {
  color: #941100;
  font: 700 18px/1.3 Lora, Georgia, serif;
}

.search-results li p {
  margin: 5px 0 0;
  color: #333;
  font-size: 15px;
  line-height: 1.45;
}

@media screen and (max-width: 560px) {
  .search-overlay {
    padding-top: 90px;
  }

  .search-dialog {
    padding: 28px 20px 22px;
  }

  .zoom-overlay-form {
    grid-template-columns: 1fr;
  }
}
