/* Search controls use the same typography on every public page. */
.amethyst-site-search-form {
  margin: 0;
  color: var(--ink, #242325);
  font-size: 16px;
  line-height: 1.55;
}

.amethyst-site-search-form label {
  display: block;
  margin: 0 0 10px;
  font-weight: 600;
}

.amethyst-site-search-form__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.amethyst-site-search-form input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--smoke, #746d79);
  border-radius: 0;
  background: transparent;
  color: var(--ink, #242325);
  font: 400 14px/1.5 var(--sans, sans-serif);
}

.amethyst-site-search-form input::placeholder {
  color: var(--smoke, #746d79);
  opacity: 1;
}

.amethyst-site-search-form__submit {
  flex: 0 0 auto;
  line-height: 1.55;
  white-space: nowrap;
}

.amethyst-site-search-form--header {
  font: 600 12px/1.55 var(--sans, sans-serif);
}

.amethyst-site-search-form--header label,
.amethyst-site-search-form--mobile label {
  color: inherit;
  font: inherit;
}

.amethyst-site-search-form :focus-visible,
.amethyst-site-search-header > summary:focus-visible,
.amethyst-site-search-fallback:focus-visible,
.amethyst-site-search-page a:focus-visible {
  outline: 2px solid #62506d;
  outline-offset: 4px;
}

.header .nav > .amethyst-site-search-header {
  position: relative;
  flex: 0 0 44px;
}

.amethyst-site-search-header > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 100px;
  color: var(--ink, #242325);
  list-style: none;
  cursor: pointer;
}

.amethyst-site-search-header > summary::-webkit-details-marker {
  display: none;
}

.amethyst-site-search-header > summary:hover,
.amethyst-site-search-header[open] > summary {
  background: var(--paper, #e9e5dc);
}

.amethyst-site-search-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}

.amethyst-site-search-icon::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  content: "";
}

.amethyst-site-search-icon::after {
  position: absolute;
  top: 15px;
  left: 14px;
  width: 8px;
  height: 1.7px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
  content: "";
}

.amethyst-site-search-header__panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 16px);
  right: 0;
  width: min(520px, calc(100vw - 64px));
  padding: 24px;
  border: 1px solid var(--line, rgba(36, 35, 37, .14));
  border-radius: 0;
  background: var(--paper, #e9e5dc);
  box-shadow: 0 10px 26px rgba(36, 35, 37, .1);
}

.amethyst-site-search-mobile,
.amethyst-site-search-fallback {
  display: none;
}

.header .nav :is(ul.sub-menu, .menu-more__list) {
  border-radius: 0;
  background: var(--paper, #e9e5dc);
  backdrop-filter: none;
}

.amethyst-site-search-page {
  min-height: 55vh;
  padding: clamp(128px, 12vw, 180px) 0 clamp(56px, 7vw, 104px);
  color: var(--ink, #242325);
  font-size: 16px;
  line-height: 1.65;
}

.amethyst-site-search-page__header {
  max-width: 960px;
}

.amethyst-site-search-page__header h1 {
  margin: 0 0 32px;
  font: 500 clamp(34px, 5vw, 64px)/1.08 var(--display, sans-serif);
  letter-spacing: -.04em;
}

.amethyst-site-search-page__count,
.amethyst-site-search-page__empty {
  max-width: 76ch;
  margin: 32px 0 0;
  color: var(--smoke, #746d79);
}

.amethyst-site-search-page__empty p {
  margin: 0 0 16px;
}

.amethyst-site-search-page__empty a {
  color: #62506d;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.amethyst-site-search-results {
  max-width: 960px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.amethyst-site-search-results > li {
  margin: 0;
  padding: 24px 0;
  border-block-start: 1px solid var(--line, rgba(36, 35, 37, .14));
}

.amethyst-site-search-result__type {
  margin: 0 0 8px;
  color: var(--smoke, #746d79);
  font-size: 14px;
}

.amethyst-site-search-result h2 {
  margin: 0 0 12px;
  font: 500 clamp(22px, 2.4vw, 30px)/1.25 var(--display, sans-serif);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.amethyst-site-search-result h2 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}

.amethyst-site-search-result h2 a:hover {
  color: #62506d;
}

.amethyst-site-search-result__excerpt {
  max-width: 80ch;
  margin: 0;
  color: var(--smoke, #746d79);
  overflow-wrap: anywhere;
}

.amethyst-site-search-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.amethyst-site-search-pagination li {
  margin: 0;
  padding: 0;
}

.amethyst-site-search-pagination .page-numbers:not(ul) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 100px;
}

.amethyst-site-search-pagination a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.amethyst-site-search-pagination .current {
  background: var(--ink, #242325);
  color: var(--white, #faf9f5);
}

@media (min-width: 1001px) and (max-width: 1150px) {
  .header .nav {
    gap: 12px;
  }

  .header #menu ul {
    gap: 14px;
  }

  .header .nav > .btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (max-width: 1000px) {
  .header .nav > .amethyst-site-search-header {
    display: none;
  }

  .header #menu .amethyst-site-search-mobile {
    display: block;
    width: 100%;
    margin: 0;
  }

  .header #menu .amethyst-site-search-form--mobile {
    color: inherit;
    font: inherit;
  }

  .amethyst-site-search-form input[type="search"] {
    font-size: 16px;
  }

  .amethyst-site-search-fallback {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    text-decoration: underline;
  }

  .header #menu.open {
    z-index: 60;
    gap: 24px;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    border: 1px solid var(--line, rgba(36, 35, 37, .14));
    border-radius: 0;
    background: var(--paper, #e9e5dc);
    color: var(--ink, #242325);
    font: 500 16px/1.5 var(--sans, sans-serif);
    box-shadow: 0 12px 28px rgba(36, 35, 37, .12);
    backdrop-filter: none;
  }

  .header #menu.open > ul > li > a,
  .header #menu.open > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    color: inherit;
    font: inherit;
  }

  .header #menu.open > ul {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 650px) {
  .amethyst-site-search-page {
    padding-top: 112px;
  }

  .header #menu.open {
    max-height: calc(100dvh - 72px);
  }

  .amethyst-site-search-form__controls {
    gap: 8px;
  }
}
