.answer-search-trigger {
  display: inline-flex;
  width: 2.65rem;
  min-width: 2.65rem;
  height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font: inherit;
  transition: color 220ms ease;
}

.answer-search-trigger:hover,
.answer-search-trigger:focus-visible {
  color: #ead9ad;
  outline: 1px solid rgba(216, 192, 138, 0.64);
  outline-offset: -0.25rem;
}

.answer-search-trigger--desktop,
.answer-search-trigger--static-desktop {
  margin: -0.65rem -0.55rem -0.65rem 0.05rem;
}

.answer-search-trigger--mobile,
.answer-search-trigger--static-mobile {
  color: rgba(255, 255, 255, 0.56);
}

.answer-search-static-actions {
  display: contents;
}

.answer-search-trigger--static-mobile {
  display: none;
}

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

body.answer-search-open .site-core-access {
  opacity: 0.12;
  pointer-events: none;
}

.answer-search {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding:
    max(4.75rem, calc(env(safe-area-inset-top, 0px) + 4.25rem))
    max(1.25rem, env(safe-area-inset-right, 0px))
    max(1.5rem, calc(env(safe-area-inset-bottom, 0px) + 1rem))
    max(1.25rem, env(safe-area-inset-left, 0px));
  overflow: hidden;
  background: rgba(3, 3, 3, 0.82);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: #f4f1eb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

.answer-search__dialog {
  width: min(52rem, 100%);
  max-height: calc(100dvh - 10rem);
  margin-top: clamp(0rem, 6vh, 3.5rem);
  overflow: auto;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(8, 8, 8, 0.985);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

.answer-search__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 3.5vw, 2.4rem) clamp(1.25rem, 4vw, 3rem) 1.2rem;
  background: rgba(8, 8, 8, 0.985);
}

.answer-search__eyebrow,
.answer-search__examples-label,
.answer-search__result-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  line-height: 1.6;
  text-transform: uppercase;
}

.answer-search__title {
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 200;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.answer-search__close {
  display: inline-flex;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 200;
  line-height: 1;
  transition: border-color 220ms ease, color 220ms ease;
}

.answer-search__close:hover,
.answer-search__close:focus-visible {
  border-color: rgba(216, 192, 138, 0.52);
  color: #ead9ad;
  outline: 1px solid rgba(216, 192, 138, 0.64);
  outline-offset: 3px;
}

.answer-search__form {
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.answer-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.answer-search__input {
  display: block;
  width: 100%;
  min-height: 4.35rem;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid rgba(216, 192, 138, 0.35);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.5;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.answer-search__input::placeholder {
  color: rgba(255, 255, 255, 0.28);
  opacity: 1;
}

.answer-search__input:focus {
  border-bottom-color: rgba(234, 217, 173, 0.72);
}

.answer-search__input::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.42;
}

.answer-search__status {
  min-height: 1.5rem;
  margin: 0;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem) 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 200;
  letter-spacing: 0.03em;
  line-height: 1.75;
}

.answer-search__status--partial {
  color: rgba(234, 217, 173, 0.68);
}

.answer-search__content {
  padding: 1rem clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}

.answer-search__examples {
  padding-top: 0.35rem;
}

.answer-search__example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  margin-top: 1rem;
}

.answer-search__example {
  min-height: 2.75rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 200;
  letter-spacing: 0.04em;
  transition: border-color 220ms ease, color 220ms ease;
}

.answer-search__example:hover,
.answer-search__example:focus-visible {
  border-color: rgba(216, 192, 138, 0.48);
  color: rgba(234, 217, 173, 0.88);
  outline: 1px solid rgba(216, 192, 138, 0.58);
  outline-offset: 2px;
}

.answer-search__results {
  display: grid;
}

.answer-search__result-section--more {
  margin-top: 0.6rem;
}

.answer-search__section-heading {
  margin: 0;
  padding: 0.35rem 0 0.8rem;
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.56rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  line-height: 1.6;
}

.answer-search__result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem 1.5rem;
  margin: 0;
  padding: clamp(1.3rem, 2.8vw, 2rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.answer-search__result-meta,
.answer-search__result-title,
.answer-search__result-summary {
  grid-column: 1;
}

.answer-search__result-meta {
  color: rgba(234, 217, 173, 0.48);
  letter-spacing: 0.2em;
}

.answer-search__result-title {
  width: fit-content;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  font-weight: 200;
  letter-spacing: 0.015em;
  line-height: 1.55;
  text-decoration: none;
  transition: color 220ms ease;
}

.answer-search__result-summary {
  max-width: 55rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.49);
  font-size: 0.8rem;
  font-weight: 200;
  letter-spacing: 0.015em;
  line-height: 1.85;
}

.answer-search__result-read {
  grid-row: 1 / 4;
  grid-column: 2;
  align-self: end;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition: color 220ms ease;
}

.answer-search__result-title:hover,
.answer-search__result-title:focus-visible,
.answer-search__result-read:hover,
.answer-search__result-read:focus-visible {
  color: #ead9ad;
  outline: none;
}

.answer-search__result-title:focus-visible,
.answer-search__result-read:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
}

.answer-search__more-results {
  display: grid;
}

.answer-search__more-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 1.25rem;
  margin: 0;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.answer-search__more-meta {
  grid-column: 1;
  margin: 0;
  color: rgba(234, 217, 173, 0.38);
  font-size: 0.52rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 1.55;
  text-transform: uppercase;
}

.answer-search__more-title {
  grid-column: 1;
  width: fit-content;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  font-weight: 200;
  letter-spacing: 0.012em;
  line-height: 1.55;
  text-decoration: none;
  transition: color 220ms ease;
}

.answer-search__more-read {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.54rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: color 220ms ease;
}

.answer-search__more-title:hover,
.answer-search__more-title:focus-visible,
.answer-search__more-read:hover,
.answer-search__more-read:focus-visible {
  color: #ead9ad;
  outline: none;
}

.answer-search__more-title:focus-visible,
.answer-search__more-read:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
}

.answer-search__empty {
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.answer-search__empty h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  font-weight: 200;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.answer-search__empty p {
  max-width: 38rem;
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  font-weight: 200;
  line-height: 1.85;
}

@media (max-width: 767px) {
  .answer-search-static-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
  }

  .answer-search-trigger--static-mobile {
    display: inline-flex;
  }

  .answer-search-trigger--static-desktop {
    display: none;
  }

  .answer-search {
    padding:
      max(4rem, calc(env(safe-area-inset-top, 0px) + 3.5rem))
      max(0.8rem, env(safe-area-inset-right, 0px))
      max(0.75rem, env(safe-area-inset-bottom, 0px))
      max(0.8rem, env(safe-area-inset-left, 0px));
    background: rgba(3, 3, 3, 0.91);
  }

  .answer-search__dialog {
    width: 100%;
    max-height: calc(100dvh - max(4.75rem, calc(env(safe-area-inset-top, 0px) + 4.25rem)));
    margin-top: 0;
    box-shadow: none;
  }

  .answer-search__header {
    padding-top: 1.15rem;
  }

  .answer-search__input {
    min-height: 3.9rem;
    font-size: 1rem;
  }

  .answer-search__status {
    min-height: 1.2rem;
    padding-top: 0.9rem;
  }

  .answer-search__content {
    padding-top: 0.8rem;
  }

  .answer-search__example-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .answer-search__example {
    width: 100%;
    min-width: 0;
  }

  .answer-search__result {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .answer-search__result-read {
    grid-row: auto;
    grid-column: 1;
    justify-self: start;
    margin-top: 0.2rem;
  }

  .answer-search__more-result {
    gap: 0.25rem 0.75rem;
    padding: 0.85rem 0;
  }

  .answer-search__more-title {
    max-width: none;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .answer-search-trigger,
  .answer-search__close,
  .answer-search__example,
  .answer-search__result-title,
  .answer-search__result-read,
  .answer-search__more-title,
  .answer-search__more-read {
    transition: none;
  }
}
