.public-header__search-button,
.public-header__mobile-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ec;
  background: #fff;
  color: #13243a;
  cursor: pointer;
}

.public-header__search-button {
  min-height: 42px;
  gap: 0.5rem;
  border-radius: 0.85rem;
  padding: 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.public-header__search-button svg,
.public-header__mobile-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.public-header__mobile-search {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 0.85rem;
}

.public-header__desktop-action {
  gap: 0.55rem;
}

/* The public header uses one brand lockup and one readable type scale on every contour. */
.public-header__brand-link {
  flex: 0 0 auto;
  border-right: 0;
  padding-right: 0;
}

.public-header__brand-lockup {
  display: grid;
  min-width: 8.8rem;
  gap: 0.28rem;
  align-content: center;
}

.public-header__brand-wordmark {
  font-size: 0.96rem !important;
  font-weight: 650 !important;
  line-height: 1 !important;
}

.public-header__brand-tagline {
  color: #64748b;
  font-family: "Manrope", sans-serif;
  font-size: 0.52rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.public-header--home .public-header__brand-tagline {
  color: rgba(255, 255, 255, 0.62);
}

.public-home-editorial .public-header--home .public-header__mega-direct,
.public-editorial-shell .public-header--home .public-header__mega-direct {
  font-size: clamp(0.72rem, 0.7vw, 0.8rem);
  font-weight: 650;
  line-height: 1.2;
}

.public-home-editorial .public-header--home .public-header__search-button--home,
.public-editorial-shell .public-header--home .public-header__search-button--home {
  min-width: 9.5rem;
  border-radius: 0.5rem;
  font-size: 0.74rem;
}

.public-home-editorial .public-header--home .public-header__search-button--home svg,
.public-editorial-shell .public-header--home .public-header__search-button--home svg {
  display: block;
}

.public-search-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: min(760px, calc(100dvh - 2rem));
  margin: auto;
  overflow: hidden;
  border: 1px solid #dbe3ec;
  border-radius: 16px;
  background: #fff;
  padding: 0;
  color: #0f172a;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.22);
}

.public-search-dialog::backdrop,
.search-document-dialog::backdrop {
  background: rgba(8, 18, 33, 0.62);
  backdrop-filter: blur(8px);
}

.public-search-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.4rem 1.5rem 1.15rem;
}

.public-search-dialog__head p,
.public-search-dialog__popular > p {
  margin: 0;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.public-search-dialog__head h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.public-search-dialog__head > button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ec;
  border-radius: 50%;
  background: #fff;
  color: #334155;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.public-search-dialog__form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 1.5rem 0;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
}

.public-search-dialog__form:focus-within {
  border-color: #0c9471;
  box-shadow: 0 0 0 3px rgba(12, 148, 113, 0.1);
}

.public-search-dialog__form svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #64748b;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.public-search-dialog__form input {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 1rem;
  outline: 0;
}

.public-search-dialog__form button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: #0c9471;
  padding: 0 1.15rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.public-search-dialog__status {
  padding: 0.85rem 1.5rem 0;
  color: #64748b;
  font-size: 0.78rem;
}

.public-search-dialog__results {
  max-height: min(390px, 48dvh);
  overflow-y: auto;
  padding: 0.75rem 1.5rem 0;
}

.public-search-dialog__result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  border-top: 1px solid #e2e8f0;
  padding: 0.9rem 0;
  color: #0f172a;
  text-decoration: none;
}

.public-search-dialog__result:first-child {
  border-top: 0;
}

.public-search-dialog__result small,
.public-search-dialog__result span {
  display: block;
}

.public-search-dialog__result small {
  color: #0c7c61;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.public-search-dialog__result strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1rem;
  line-height: 1.35;
}

.public-search-dialog__result span {
  margin-top: 0.25rem;
  overflow: hidden;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-search-dialog__result > i {
  align-self: center;
  color: #0c7c61;
  font-size: 1.2rem;
  font-style: normal;
}

.public-search-dialog__result.is-active,
.public-search-dialog__result:hover {
  color: #0c7c61;
}

.public-search-dialog__popular {
  padding: 1.15rem 1.5rem;
}

.public-search-dialog__popular > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.public-search-dialog__popular a,
.search-page__popular a,
.search-page__empty a {
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  background: #fff;
  padding: 0.55rem 0.8rem;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}

.public-search-dialog__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding: 1rem 1.5rem;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.search-page__hero {
  padding: clamp(3rem, 6vw, 6.5rem) clamp(1rem, 4vw, 3.1rem) clamp(2.25rem, 4vw, 4rem);
  border-bottom: 1px solid #dce4ec;
}

.search-page__hero > p,
.search-page__results-head p {
  margin: 0;
  color: #0c7c61;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.search-page__hero h1 {
  max-width: 18ch;
  margin: 1rem 0 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.4rem, 6.3vw, 6rem);
  font-weight: 450;
  letter-spacing: 0;
  line-height: 0.98;
}

.search-page__hero h1 strong {
  color: #0c9471;
  font-weight: inherit;
}

.search-page__form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  width: min(920px, 100%);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 2px solid #13243a;
  padding: 0.35rem 0 0.75rem;
}

.search-page__form svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #13243a;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-page__form input {
  width: 100%;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: clamp(1rem, 2vw, 1.35rem);
  outline: 0;
}

.search-page__form button {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: #0c9471;
  padding: 0 1.35rem;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.search-page__summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(920px, 100%);
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.82rem;
}

.search-page__summary strong {
  color: #13243a;
}

.search-page__popular {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.search-page__workspace {
  display: grid;
  grid-template-columns: minmax(13rem, 0.24fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 4vw, 3.1rem) clamp(4rem, 7vw, 7rem);
}

.search-page__filters {
  align-self: start;
}

.search-page__filters > div + div {
  margin-top: 2rem;
}

.search-page__filters p {
  margin: 0 0 0.65rem;
  color: #94a3b8;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-page__filters a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid #e2e8f0;
  padding: 0.72rem 0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.search-page__filters a.is-active {
  color: #0c7c61;
}

.search-page__filters a span {
  color: #94a3b8;
}

.search-page__results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}

.search-page__results-head h2 {
  margin: 0.45rem 0 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
}

.search-page__results-head form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.search-page__results-head label {
  color: #64748b;
  font-size: 0.72rem;
}

.search-page__results-head select {
  min-height: 40px;
  border: 1px solid #dbe3ec;
  border-radius: 9px;
  background: #fff;
  padding: 0 0.75rem;
  color: #13243a;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
}

.search-page__suggestion {
  border-top: 1px solid #dbe3ec;
  margin: 0;
  padding: 1rem 0;
  color: #64748b;
  font-size: 0.85rem;
}

.search-page__suggestion a {
  color: #0c7c61;
  font-weight: 800;
}

.search-result {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  border-top: 1px solid #dbe3ec;
  padding: 1.35rem 0;
  color: #0f172a;
  text-decoration: none;
}

.search-result__index {
  color: #0c7c61;
  font-size: 0.72rem;
  font-weight: 800;
}

.search-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  color: #64748b;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-result__meta b {
  color: #0c7c61;
}

.search-result__meta i {
  font-style: normal;
}

.search-result__copy > strong {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.3;
}

.search-result__snippet {
  display: block;
  max-width: 72ch;
  margin-top: 0.55rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.65;
}

.search-result__snippet mark {
  background: #d9f4eb;
  color: #075d49;
}

.search-result > svg {
  width: 20px;
  height: 20px;
  align-self: center;
  fill: none;
  stroke: #0c7c61;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.search-result:hover > svg {
  transform: translateX(4px);
}

.search-page__empty {
  border-top: 1px solid #dbe3ec;
  padding: 2.25rem 0;
}

.search-page__empty > strong {
  font-size: 1.2rem;
}

.search-page__empty > p {
  max-width: 62ch;
  color: #64748b;
  line-height: 1.7;
}

.search-page__empty > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-page__pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid #dbe3ec;
  padding-top: 1.25rem;
}

.search-page__pagination a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  color: #0c7c61;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.search-page__pagination a:last-child {
  justify-self: end;
  text-align: right;
}

.search-content {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) 0;
}

.search-content > header > a {
  color: #0c7c61;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.search-content > header > p {
  margin: 2.25rem 0 0;
  color: #0c7c61;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search-content h1 {
  max-width: 18ch;
  margin: 1rem 0 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  font-weight: 480;
  line-height: 1;
}

.search-content > header > strong {
  display: block;
  max-width: 62ch;
  margin-top: 1.6rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.search-content > header > time {
  display: block;
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.78rem;
}

.search-content__body {
  max-width: 72ch;
  border-top: 1px solid #dbe3ec;
  margin-top: 2.5rem;
  padding-top: 2rem;
  color: #334155;
  font-size: 1.04rem;
  line-height: 1.9;
}

.search-content__document {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #dbe3ec;
  border-bottom: 1px solid #dbe3ec;
  margin-top: 2.5rem;
  padding: 1.35rem 0;
}

.search-content__document p,
.search-content__document span {
  margin: 0;
  color: #64748b;
  font-size: 0.72rem;
}

.search-content__document strong {
  display: block;
  margin: 0.3rem 0;
}

.search-content__document > div:last-child {
  display: flex;
  gap: 0.5rem;
}

.search-content__document button,
.search-content__document a {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  padding: 0 1rem;
  color: #13243a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 42px;
  text-decoration: none;
  cursor: pointer;
}

.search-document-dialog {
  width: min(1120px, calc(100vw - 2rem));
  height: min(820px, calc(100dvh - 2rem));
  margin: auto;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  padding: 0;
}

.search-document-dialog header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #dbe3ec;
  padding: 0 1rem;
}

.search-document-dialog header button {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.search-document-dialog iframe {
  width: 100%;
  height: calc(100% - 58px);
  border: 0;
}

@media (max-width: 1023px) {
  .public-header__mobile-search {
    display: inline-flex;
  }

  .public-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .search-page__workspace {
    grid-template-columns: 1fr;
  }

  .search-page__filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .search-page__filters > div + div {
    margin-top: 0;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .public-home-editorial .public-header--home .public-header__inner,
  .public-editorial-shell .public-header--home .public-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .public-home-editorial .public-header--home .public-header__desktop-action,
  .public-editorial-shell .public-header--home .public-header__desktop-action {
    display: flex;
    border-left: 0;
    padding-left: 0;
  }

  .public-header__search-button {
    width: 42px;
    min-width: 42px !important;
    padding: 0;
  }

  .public-header__search-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (max-width: 640px) {
  .public-header__brand-lockup {
    min-width: 7.65rem;
    gap: 0.22rem;
  }

  .public-header__brand-wordmark {
    font-size: 0.84rem !important;
  }

  .public-header__brand-tagline {
    font-size: 0.46rem;
  }

  .public-header__mobile-search {
    width: 40px;
    height: 40px;
  }

  .public-search-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .public-search-dialog__head,
  .public-search-dialog__results,
  .public-search-dialog__popular,
  .public-search-dialog__all {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .public-search-dialog__form {
    margin-right: 1rem;
    margin-left: 1rem;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .public-search-dialog__form button {
    grid-column: 1 / -1;
  }

  .search-page__form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .search-page__form button {
    grid-column: 1 / -1;
  }

  .search-page__summary,
  .search-page__results-head,
  .search-content__document {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-page__filters {
    grid-template-columns: 1fr;
  }

  .search-page__results-head form {
    width: 100%;
    justify-content: space-between;
  }

  .search-result {
    grid-template-columns: 1.8rem minmax(0, 1fr);
  }

  .search-result > svg {
    display: none;
  }
}
