/* GDS Home hero: compact, genuinely useful unified search (Home only). */
/* Hide the retired M Developer search before JS runs to prevent CLS. */
body.home [data-id="gdsHomeS01"] .gds-home-search{display:none!important}

body.home [data-id="gdsHomeS01"] .gds-hero-smart-search{
  position:relative!important;isolation:isolate;z-index:30!important;
  display:block!important;align-self:flex-start!important;
  width:min(850px,100%)!important;max-width:100%!important;min-width:0!important;
  margin:36px 0 0!important;padding:18px 20px 20px!important;box-sizing:border-box!important;
  direction:rtl!important;text-align:right!important;
  font-family:Alexandria,Arial,sans-serif!important;
  border:1px solid rgba(255,255,255,.25)!important;border-radius:16px!important;
  background:rgba(2,20,24,.56)!important;
  box-shadow:0 14px 38px rgba(0,0,0,.13)!important;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
body.home [data-id="gdsHomeS01"].gds-hero-search-open{
  overflow:visible!important;z-index:auto!important;
}
body.home .gds-hero-smart-search *{box-sizing:border-box!important}
body.home .gds-hero-smart-search__head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  margin:0 0 12px!important;
}
body.home .gds-hero-smart-search__head strong{
  color:#fff!important;font:700 15px/1.6 Alexandria,Arial,sans-serif!important;
}
body.home .gds-hero-smart-search__head span{
  color:rgba(255,255,255,.68)!important;font:400 12px/1.5 Alexandria,Arial,sans-serif!important;
}
body.home .gds-hero-smart-search__tabs{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  gap:7px!important;margin:0 0 14px!important;padding:0!important;
}
body.home .gds-hero-smart-search__tab{
  appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:35px!important;min-width:0!important;width:auto!important;padding:7px 13px!important;
  border:1px solid rgba(255,255,255,.28)!important;border-radius:999px!important;
  background:rgba(255,255,255,.08)!important;
  color:rgba(255,255,255,.93)!important;font:600 12px/1.35 Alexandria,Arial,sans-serif!important;
  cursor:pointer!important;white-space:nowrap!important;
  box-shadow:none!important;transition:background-color .18s,border-color .18s!important;
}
body.home .gds-hero-smart-search__tab:hover,
body.home .gds-hero-smart-search__tab:focus-visible{
  border-color:#fff!important;background:rgba(255,255,255,.18)!important;
}
body.home .gds-hero-smart-search__tab[aria-pressed="true"],
body.home .gds-hero-smart-search__tab[aria-pressed="true"]:hover{
  border-color:#EE6F00!important;background:#EE6F00!important;color:#fff!important;
}
body.home .gds-hero-smart-search__form{
  display:flex!important;align-items:stretch!important;min-width:0!important;gap:9px!important;margin:0!important;
}
body.home .gds-hero-smart-search__field{
  position:relative!important;display:flex!important;align-items:center!important;flex:1 1 auto!important;
  min-width:0!important;min-height:54px!important;border:1px solid #fff!important;
  border-radius:9px!important;background:#fff!important;color:#17324D!important;
}
body.home .gds-hero-smart-search__field:focus-within{
  border-color:#EE6F00!important;box-shadow:0 0 0 3px rgba(238,111,0,.16)!important;
}
body.home .gds-hero-smart-search__field-icon{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:44px!important;flex:0 0 44px!important;color:#EE6F00!important;
}
body.home .gds-hero-smart-search__field-icon svg{width:21px!important;height:21px!important;display:block!important}
body.home .gds-hero-smart-search__input{
  flex:1 1 auto!important;min-width:0!important;width:100%!important;min-height:52px!important;height:52px!important;
  padding:0 0 0 12px!important;margin:0!important;border:0!important;outline:0!important;
  border-radius:9px!important;background:transparent!important;color:#172B3A!important;
  font:500 14px/1.5 Alexandria,Arial,sans-serif!important;box-shadow:none!important;
  text-align:right!important;direction:rtl!important;
}
body.home .gds-hero-smart-search__input::placeholder{color:#8293A1!important;opacity:1!important}
body.home .gds-hero-smart-search__submit{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 144px!important;width:144px!important;min-height:54px!important;
  padding:12px 18px!important;border:1px solid #EE6F00!important;border-radius:9px!important;
  background:#EE6F00!important;color:#fff!important;
  font:700 14px/1.4 Alexandria,Arial,sans-serif!important;
  cursor:pointer!important;white-space:nowrap!important;
  box-shadow:none!important;transition:background-color .18s,border-color .18s!important;
}
body.home .gds-hero-smart-search__submit:hover,
body.home .gds-hero-smart-search__submit:focus-visible{background:#CE5E00!important;border-color:#CE5E00!important}
body.home .gds-hero-smart-search__results{
  position:absolute!important;z-index:500!important;
  top:calc(100% - 7px)!important;left:20px!important;right:20px!important;
  width:auto!important;max-height:min(360px,55vh)!important;overflow-y:auto!important;
  border:1px solid #E3EAF0!important;border-radius:0 0 12px 12px!important;
  background:#fff!important;box-shadow:0 16px 34px rgba(0,0,0,.22)!important;color:#17324D!important;
}
body.home .gds-hero-smart-search__results[hidden]{display:none!important}
body.home .gds-hero-smart-search__result{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:10px!important;min-height:52px!important;padding:10px 15px!important;
  border:0!important;border-bottom:1px solid #EDF0F3!important;
  text-decoration:none!important;color:#17324D!important;background:#fff!important;
  font:600 13px/1.5 Alexandria,Arial,sans-serif!important;
}
body.home .gds-hero-smart-search__result:hover,
body.home .gds-hero-smart-search__result.is-active,
body.home .gds-hero-smart-search__result:focus-visible{background:#FFF2E8!important;color:#A84800!important;outline:0!important}
body.home .gds-hero-smart-search__result small{
  color:#718090!important;font:500 11px/1.4 Alexandria,Arial,sans-serif!important;white-space:nowrap!important;
}
body.home .gds-hero-smart-search__result strong{
  display:block!important;min-width:0!important;overflow-wrap:anywhere!important;
  font:600 13px/1.5 Alexandria,Arial,sans-serif!important;
}
body.home .gds-hero-smart-search__result mark{background:#FFE1C5!important;color:#693308!important}
body.home .gds-hero-smart-search__no-results{
  padding:17px!important;color:#4F6170!important;font:500 13px/1.8 Alexandria,Arial,sans-serif!important;
}
body.home .gds-hero-smart-search__no-results a{color:#CE5E00!important;font-weight:700!important}
body.home .gds-hero-smart-search__results-header{
  padding:9px 15px!important;background:#F6F9FC!important;
  color:#617385!important;font:600 11px/1.5 Alexandria,Arial,sans-serif!important;
}
body.home .gds-hero-smart-search__tab:focus-visible,
body.home .gds-hero-smart-search__submit:focus-visible,
body.home .gds-hero-smart-search__result:focus-visible{outline:2px solid #FFB16C!important;outline-offset:2px!important}
@media(max-width:767px){
  body.home [data-id="gdsHomeS01"] .gds-hero-smart-search{
    width:100%!important;margin-top:24px!important;padding:14px!important;border-radius:13px!important;
  }
  body.home .gds-hero-smart-search__head span{display:none!important}
  body.home .gds-hero-smart-search__tabs{
    flex-wrap:nowrap!important;overflow-x:auto!important;overscroll-behavior-inline:contain;
    scrollbar-width:thin;gap:7px!important;padding-bottom:4px!important;
  }
  body.home .gds-hero-smart-search__tab{flex:0 0 auto!important}
  body.home .gds-hero-smart-search__results{left:14px!important;right:14px!important}
}
@media(max-width:550px){
  body.home .gds-hero-smart-search__form{flex-direction:column!important;gap:9px!important}
  body.home .gds-hero-smart-search__field{width:100%!important;flex:0 0 52px!important;min-height:52px!important}
  body.home .gds-hero-smart-search__submit{flex:0 0 46px!important;width:100%!important;min-height:46px!important}
  body.home .gds-hero-smart-search__input{font-size:13px!important}
  body.home .gds-hero-smart-search__results{max-height:300px!important}
}
@media(prefers-reduced-motion:reduce){
  body.home .gds-hero-smart-search__tab,
  body.home .gds-hero-smart-search__submit{transition:none!important}
}


/* Oct 2026 — Home autocomplete is attached to the search input, not to the
   outer panel or the orange submit button. Keep all other search controls. */
body.home .gds-hero-smart-search__field > .gds-hero-smart-search__results{
  position:absolute!important;
  top:calc(100% - 1px)!important;
  inset-inline:0!important;
  left:-1px!important;
  right:-1px!important;
  width:calc(100% + 2px)!important;
  max-width:none!important;
  margin:0!important;
  border:1px solid #E3EAF0!important;
  border-top:0!important;
  border-radius:0 0 9px 9px!important;
  background:#fff!important;
  box-shadow:0 16px 30px rgba(0,0,0,.20)!important;
}
body.home .gds-hero-smart-search.is-open .gds-hero-smart-search__field{
  border-bottom-left-radius:0!important;
  border-bottom-right-radius:0!important;
}
/* Keep the hero background underneath the floating quick-services section
   (z-index:20). Only the search panel (z-index:30) and its dropdown overlay
   those cards; the hero itself must NOT become a higher stacking context. */
body.home [data-id="gdsHomeS01"].gds-hero-search-open{
  overflow:visible!important;
  z-index:auto!important;
}
