.smart-search {
  box-sizing: border-box;
  width: 100%;
  max-width: 54rem;
  padding: clamp(1rem, 3vw, 2rem);
  color: #f2f2f2;
  background: #2f2f2f;
  border: 0;
  border-radius: 0;
  font-family: "Fira Sans", Arial, sans-serif;
  font-size: max(1rem, 16px);
  font-weight: 400;
  line-height: 1.6;
}
.smart-search *, .smart-search *::before, .smart-search *::after { box-sizing: border-box; }
.smart-search .search-page-form { display: block; margin: 0; }
.smart-search label { position: static; display: block; width: auto; height: auto; margin: 0 0 .75em; overflow: visible; clip: auto; clip-path: none; white-space: normal; color: #fff; font-size: 1.1em; font-weight: 700; line-height: 1.4; }
.smart-search .search-form__control { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-width: 0; min-height: 64px; color: #2f2f2f; background: #fff; border: 0; border-radius: 0; }
.smart-search .search-form__control input { color-scheme: light; width: 100%; min-width: 0; min-height: 64px; margin: 0; padding: .85em 1em; color: #2f2f2f; background: #fff; border: 0; border-radius: 0; font: inherit; line-height: 1.5; box-shadow: none; transition: none; }
.smart-search .search-form__control input::placeholder { color: #526171; opacity: 1; }
.smart-search .search-form__control button { display: inline-flex; align-items: center; justify-content: center; gap: .45em; width: auto; min-width: 44px; min-height: 64px; padding: .7em 1em; color: #2f2f2f; background: #fff; border: 0; border-radius: 0; font: inherit; font-weight: 700; line-height: 1.5; cursor: pointer; }
.smart-search .search-form__control button:hover { color: #2f2f2f; background: #e8e8e8; }
.smart-search .search-form__control .icon { flex: 0 0 1em; width: 1em; height: 1em; }
.smart-search .search-form__control:focus-within { outline: none; }
/* Keep the white outer edge intact; the focus line sits inside the field. */
.smart-search .search-form__control input:focus-visible { outline: 0; box-shadow: none; background-image: linear-gradient(#2f2f2f, #2f2f2f); background-repeat: no-repeat; background-position: left 1em bottom 6px; background-size: calc(100% - 2em) 2px; }
.smart-search .search-form__control button:focus-visible { outline: 2px solid #2f2f2f; outline-offset: -6px; }
.smart-search .search-hint { margin: .7em 0 0; color: #d2d2d2; font-size: .95em; line-height: 1.5; }
.smart-search .search-status { min-height: 1.6em; margin: 1.5em 0 .25em; color: #fff; font-size: 1em; line-height: 1.6; font-weight: 700; }
.smart-search .search-language-note { margin: 0; color: #d2d2d2; font-size: .95em; line-height: 1.5; }
.smart-search .search-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 1.25em 0; }
.smart-search .search-results:empty { margin: 0; }
.smart-search .search-result { min-width: 0; padding: 1.15em 0; border-bottom: 1px solid #626262; background: transparent; }
.smart-search .search-result:first-child { padding-top: .4em; }
.smart-search .search-result h2 { margin: 0 0 .45em; color: #fff; font: inherit; font-size: 1.3em; font-weight: 700; line-height: 1.4; }
.smart-search .search-result p { max-width: 72ch; margin: 0; color: #ededed; font-size: 1em; line-height: 1.65; }
.smart-search a { color: #f2f2f2; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.smart-search a:hover { color: #fff; text-decoration-thickness: 2px; }
.smart-search .search-result a { display: inline; min-height: 0; padding: 0; color: #fff; background: transparent; }
.smart-search .search-result a:hover { color: #fff; transform: none; background: transparent; }
.smart-search .search-result__url { display: block; margin-top: .45em; color: #d2d2d2; font-size: .9em; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.smart-search mark { display: inline; color: #202c38; background: #fff0b3; font-weight: inherit; }
.smart-search .search-alternatives { display: flex; flex-wrap: wrap; column-gap: 1.5em; row-gap: .3em; margin: 1.4em 0 0; padding-top: 1em; border-top: 1px solid #626262; font-size: 1em; line-height: 1.5; }
.smart-search .search-alternatives a, .smart-search .search-full-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: .4em; }
.smart-search .search-full-link { font-weight: 700; }
.smart-search .search-more { min-height: 48px; max-width: 100%; padding: .7em 1em; color: #fff; background: transparent; border: 1px solid #bdbdbd; border-radius: 0; font: inherit; font-weight: 700; line-height: 1.5; white-space: normal; }
.smart-search .search-more:hover { color: #2f2f2f; background: #fff; }
.smart-search a:focus-visible, .smart-search .search-more:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.smart-search [hidden] { display: none !important; }

.site-dialog--search { color-scheme: dark; color: #f2f2f2; background: #2f2f2f; overflow-y: auto; }
.site-dialog--search .site-dialog__header { gap: 1rem; min-height: 0; max-width: 64rem; padding-block: clamp(1.25rem, 3vw, 2.5rem); }
.site-dialog--search .search-dialog__title { position: static; width: auto; height: auto; margin: 0; color: #fff; clip: auto; overflow: visible; white-space: normal; font-size: max(1.4rem, 22px); line-height: 1.3; }
.site-dialog--search .search-dialog__close { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: .5em; min-width: 48px; min-height: 48px; padding: .5em .8em; color: #fff; background: transparent; border: 1px solid #bdbdbd; border-radius: 0; font-family: "Fira Sans", Arial, sans-serif; font-size: max(1rem, 16px); line-height: 1.5; cursor: pointer; }
.site-dialog--search .search-dialog__close:hover { color: #2f2f2f; background: #fff; }
.site-dialog--search .search-dialog__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.site-dialog--search .site-dialog__body { display: block; min-height: 0; max-width: 64rem; padding-block: clamp(2rem, 9vh, 5rem) 2rem; overflow: visible; }
.site-dialog--search .smart-search { max-width: none; margin-inline: auto; padding: 0; background: transparent; }

@media (max-width: 480px) {
  .smart-search { padding: 1rem; }
  .smart-search .search-form__control button { padding-inline: .6em; }
  .smart-search .search-form__control button .icon { display: none; }
}
@media (forced-colors: active) {
  .smart-search, .site-dialog--search { color: CanvasText; background: Canvas; border-color: CanvasText; }
  .smart-search mark { color: HighlightText; background: Highlight; }
  .smart-search .search-form__control, .smart-search .search-more, .site-dialog--search .search-dialog__close { border-color: ButtonText; }
  .smart-search .search-form__control:focus-within, .smart-search a:focus-visible, .smart-search .search-more:focus-visible, .site-dialog--search .search-dialog__close:focus-visible { outline-color: Highlight; }
  .smart-search .search-form__control input:focus-visible { outline: 2px solid Highlight; outline-offset: -3px; }
}
