body.ir-site .site-search-control {
  position: relative;
  z-index: 0;
  flex: 0 0 auto;
}

body.ir-site .run-navigation .site-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #cbd8d4 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #17332e !important;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 52, 46, .08);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

body.ir-site .run-navigation .site-search-trigger svg,
body.ir-site .site-search-field svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

body.ir-site .run-navigation .site-search-trigger svg { color: #147b75; }

body.ir-site .run-navigation .site-search-trigger:hover,
body.ir-site .run-navigation .site-search-trigger:focus-visible {
  border-color: #147b75 !important;
  background: #f5faf8 !important;
  box-shadow: 0 0 0 3px rgba(20, 123, 117, .12);
}

.site-search-control :focus-visible { outline: 2px solid #c44932; outline-offset: 2px; }
.site-search-control [hidden] { display: none !important; }

/* The search field takes the trigger's place in the header; it never floats below it. */
body.ir-site .site-search-inline {
  position: relative;
  display: flex;
  align-items: center;
  width: 224px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.ir-site .site-search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #147b75;
  border-radius: 8px;
  background: #fff;
  color: #147b75;
}

body.ir-site .site-search-field:focus-within { box-shadow: 0 0 0 3px rgba(20, 123, 117, .12); }

body.ir-site .site-search-field input,
body.ir-site .site-search-field input:hover,
body.ir-site .site-search-field input:focus,
body.ir-site .site-search-field input:focus-visible {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #1c3336 !important;
  font: inherit;
  font-size: 14px;
}

body.ir-site .site-search-field input::placeholder { color: #73837f; opacity: 1; }
body.ir-site .site-search-close { width: 28px; height: 30px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #536a66; font-size: 21px; line-height: 1; cursor: pointer; }
body.ir-site .site-search-close:hover { background: #edf5f1; color: #a7352a; }

/* Keep search feedback available to assistive technology without showing a popup. */
body.ir-site .site-search-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.ir-site .search-result-focus {
  position: relative;
  z-index: 1;
  scroll-margin-top: 126px;
  scroll-margin-bottom: 24px;
  outline: 3px solid #c44932;
  outline-offset: 5px;
  border-radius: 6px;
  background-color: rgba(255, 244, 215, 0.72);
}

@media (max-width: 700px) {
  body.ir-site .run-navigation .site-search-trigger { width: 44px; min-width: 44px; padding: 0; }
  body.ir-site .run-navigation .site-search-trigger span { display: none; }
  body.ir-site .site-search-inline { width: 190px; }
}

@media (max-width: 540px) {
  body.ir-site .site-header.run-navigation .header-actions { gap: 7px; }
  body.ir-site .site-header.run-navigation .header-actions .menu-toggle { min-width: 108px !important; min-height: 44px !important; gap: 7px !important; padding: 8px 10px !important; font-size: 13px !important; }
  body.ir-site .site-header.run-navigation .header-actions .menu-toggle .menu-label { font-size: 13px !important; }
  body.ir-site .site-header.run-navigation .header-actions .menu-toggle .nav-icon { width: 20px !important; height: 20px !important; flex-basis: 20px !important; }
  body.ir-site .run-navigation .site-search-trigger { width: 42px; min-width: 42px; min-height: 44px; }
  body.ir-site .site-search-inline { width: min(180px, calc(100vw - 178px)); }
  body.ir-site .site-header.run-navigation:has(.site-search-control.is-open) .brand-event-wordmark { display: none; }
}

/* Keep both sponsor and event identities fully visible beside mobile actions. */
@media (max-width: 540px) {
  body.ir-site .site-header.run-navigation {
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 7px !important;
    padding-inline: 10px !important;
  }
  body.ir-site .site-header.run-navigation #siteBrand {
    min-width: 0 !important;
    gap: 4px !important;
  }
  body.ir-site #siteBrand .header-kohinoor-logo {
    flex-basis: 76px !important;
    width: 76px !important;
    height: 32px !important;
    padding: 4px !important;
  }
  body.ir-site #siteBrand .header-kohinoor-logo img { max-height: 23px; }
  body.ir-site #siteBrand .header-brand-divider { flex-basis: 1px; height: 27px; }
  body.ir-site #siteBrand .india-rises-mark {
    flex-basis: 22px !important;
    width: 22px !important;
    height: 28px !important;
  }
  body.ir-site #siteBrand .brand-event-wordmark {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    overflow: visible;
  }
  body.ir-site #siteBrand .brand-event-wordmark b {
    font-size: 12px !important;
    letter-spacing: -.035em !important;
    white-space: nowrap !important;
  }
  body.ir-site .site-header.run-navigation .header-actions { gap: 5px !important; }
  body.ir-site .site-header.run-navigation .header-actions .menu-toggle {
    min-width: 94px !important;
    padding-inline: 8px !important;
  }
  body.ir-site .run-navigation .site-search-trigger { width: 38px; min-width: 38px; }
}

@media (max-width: 380px) {
  body.ir-site #siteBrand .header-kohinoor-logo { flex-basis: 68px !important; width: 68px !important; }
  body.ir-site #siteBrand .india-rises-mark { flex-basis: 20px !important; width: 20px !important; }
  body.ir-site .site-header.run-navigation .header-actions .menu-toggle { min-width: 86px !important; }
  body.ir-site #siteBrand .brand-event-wordmark b { font-size: 11px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.ir-site .run-navigation .site-search-trigger { transition: none; }
}

/* Reserve the full logo width and let desktop links wrap inside their own column. */
@media (min-width: 1101px) {
  body.ir-site .site-header.run-navigation {
    grid-template-columns: max-content minmax(0, 1fr) auto !important;
    column-gap: 16px !important;
  }
  body.ir-site .site-header.run-navigation #siteBrand {
    min-width: max-content !important;
    margin: 0 !important;
    padding-inline: 0 !important;
  }
  body.ir-site .site-header.run-navigation .main-nav {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2px !important;
    margin: 0 !important;
  }
  body.ir-site .site-header.run-navigation .main-nav > :is(.nav-group, .nav-result) {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
}@media (min-width: 1101px) and (max-width: 1400px) {
  body.ir-site .site-header.run-navigation .main-nav :is(.nav-group > button, .nav-result) {
    padding-inline: 6px !important;
    gap: 6px !important;
    font-size: 12px !important;
  }
}
@media (max-width: 1100px) {
  body.ir-site .site-header.run-navigation .header-actions > :is(.header-login, .header-register) {
    display: none !important;
  }
}
@media (min-width: 541px) and (max-width: 1100px) {
  body.ir-site .site-header.run-navigation {
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 14px !important;
    padding-inline: 20px !important;
  }
  body.ir-site .site-header.run-navigation #siteBrand {
    min-width: max-content !important;
    margin: 0 !important;
    padding-inline: 0 !important;
  }
}