html body.municipal-homepage main#main-content .hero { overflow: visible !important; z-index: 10; }
html body .homepage-service-search-wrap { position: relative; width: 100%; min-width: 0; }
html body.municipal-homepage main#main-content .homepage-service-search {
  height: 40px !important;
  min-height: 40px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 34px !important;
  gap: 0 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  border: 1px solid #dce5ec !important;
  border-radius: 5px !important;
  background: #f5f8fa !important;
  box-shadow: none !important;
}
html body.municipal-homepage main#main-content .homepage-service-search input {
  height: 38px !important;
  min-height: 38px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 6px 10px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}
html body.municipal-homepage main#main-content .homepage-service-search .service-search-submit {
  width: 34px !important;
  min-width: 34px !important;
  height: 38px !important;
  min-height: 38px !important;
  flex: 0 0 34px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  padding: 8px !important;
  background: transparent !important;
  border: 0 !important;
  color: #375d79 !important;
  box-shadow: none !important;
}
html body.municipal-homepage main#main-content .homepage-service-search .service-search-submit svg { width: 16px !important; height: 16px !important; }
html body.municipal-homepage main#main-content .homepage-service-search .service-search-submit:hover { background: #e8eff4 !important; }
html body.municipal-homepage main#main-content .homepage-service-search:focus-within { outline: 2px solid #8da6ba; outline-offset: 2px; }
html body .homepage-service-results {
  position: absolute; top: 100%; left: 0; z-index: 30;
  width: 100%; max-width: 620px; max-height: min(420px, 50vh); overflow-y: auto;
  box-sizing: border-box; overscroll-behavior: contain;
  margin-top: 12px; padding: 16px; background: #fff; color: #455563;
  border-radius: 8px; text-align: left;
}
html body .homepage-service-results[hidden] { display: none !important; }
html body .homepage-service-results article { padding: 14px 0; border-top: 1px solid #edf0f2; }
html body .homepage-service-results h3 { font: 600 15px/1.5 "DM Sans",sans-serif !important; color: #294c67 !important; }
html body .homepage-service-results p { font: 400 13px/1.7 "DM Sans",sans-serif !important; color: #455563 !important; margin: 0 0 8px; white-space: pre-line; }
html body .homepage-service-results a { display: inline-block; padding: 6px 10px; background: #eaf3f8; color: #455563; border-radius: 4px; font-size: 12px; }
@media (max-width: 767.98px) {
  html body.municipal-homepage main#main-content .homepage-service-search {
    height: 34px !important;
    min-height: 34px !important;
  }
  html body.municipal-homepage main#main-content .homepage-service-search input,
  html body.municipal-homepage main#main-content .homepage-service-search .service-search-submit {
    height: 32px !important;
    min-height: 32px !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  html body.municipal-homepage main#main-content .homepage-service-search .service-search-submit::before,
  html body.municipal-homepage main#main-content .homepage-service-search .service-search-submit::after {
    content: none !important;
  }
  html body .homepage-service-results > a {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
  }
}
/* Keep the native clear control opaque rather than using the browser's faded icon. */
html body #service-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  opacity: 1 !important;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 4 8 8m0-8-8 8' fill='none' stroke='%2300365f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat !important;
}
html body #service-search:placeholder-shown::-webkit-search-cancel-button {
  opacity: 0 !important;
  pointer-events: none;
}

/* Final mobile search treatment shared by every homepage session state. */
@media (max-width: 767px) {
  html:root:root body.municipal-homepage main#main-content .hero .hero-copy
  form.service-search.homepage-service-search {
    grid-template-columns: minmax(0, 1fr) 44px !important;
    grid-template-rows: 44px !important;
    width: min(100%, 400px) !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 18px auto 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .58) !important;
    border-radius: 7px !important;
    background: rgba(255, 255, 255, .78) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 5px 16px rgba(0, 30, 65, .08) !important;
  }

  html:root:root body.municipal-homepage main#main-content .hero .hero-copy
  form.service-search.homepage-service-search > input#service-search {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 8px 13px !important;
    border: 0 !important;
    background: transparent !important;
    color: #123b5b !important;
    font: 400 13px/1.4 "DM Sans", "Segoe UI", sans-serif !important;
  }

  html:root:root body.municipal-homepage main#main-content .hero .hero-copy
  form.service-search.homepage-service-search > input#service-search::placeholder {
    color: rgba(18, 59, 91, .72) !important;
  }

  html:root:root body.municipal-homepage main#main-content .hero .hero-copy
  form.service-search.homepage-service-search > button.service-search-submit {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 11px !important;
    border: 0 !important;
    border-left: 0 !important;
    background: transparent !important;
    color: #076dad !important;
    box-shadow: none !important;
  }

  html:root:root body.municipal-homepage main#main-content .hero .hero-copy
  form.service-search.homepage-service-search > button.service-search-submit::before,
  html:root:root body.municipal-homepage main#main-content .hero .hero-copy
  form.service-search.homepage-service-search > button.service-search-submit::after {
    display: none !important;
    content: none !important;
  }

  html:root:root body.municipal-homepage main#main-content .hero .hero-copy
  form.service-search.homepage-service-search > button.service-search-submit svg {
    width: 19px !important;
    height: 19px !important;
  }

  html:root:root body.municipal-homepage main#main-content .hero
  .emergency-card > a.emergency-action {
    width: fit-content !important;
    max-width: calc(100% - 24px) !important;
    min-height: 44px !important;
    margin: 4px auto 0 !important;
    padding: 11px 19px !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 6px !important;
    background: #b33b45 !important;
    box-shadow: 0 4px 12px rgba(0, 20, 45, .10) !important;
    color: #fff !important;
    font: 600 12px/1.35 "DM Sans", "Segoe UI", sans-serif !important;
    letter-spacing: .015em !important;
  }

  html:root:root body.municipal-homepage main#main-content .hero
  .emergency-card > a.emergency-action:is(:hover, :focus-visible) {
    background: #a3333d !important;
    box-shadow: 0 4px 12px rgba(0, 20, 45, .10) !important;
  }
}
