.dm-header .dm-site-search {
  --search-ink: #102f4b;
  --search-muted: #4b6576;
  --search-accent: #b85718;
  --search-focus: #d56616;
  position: relative;
  flex: 0 1 clamp(220px, 21vw, 320px);
  min-width: 0;
  margin: 0;
}

.dm-search-field {
  display: flex;
  align-items: stretch;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #e9eff5;
  color: var(--search-ink);
}

.dm-search-field:focus-within {
  border-color: var(--search-focus);
  box-shadow: 0 0 0 1px var(--search-focus);
}

.dm-search-field input,
.dm-search-field button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.dm-search-field input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding-right: 12px;
  border-radius: 0 999px 999px 0;
  font: inherit;
  font-size: 16px;
}

.dm-search-field input::placeholder { color: var(--search-muted); opacity: 1; }
.dm-search-field input::-webkit-search-cancel-button { appearance: none; }

.dm-search-field button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 50%;
  cursor: pointer;
}

.dm-search-field .dm-search-submit { order: -1; }
.dm-search-field button:hover { background: #dce6ef; }
.dm-search-field svg { width: 19px; height: 19px; }
.dm-search-field input:focus { outline: none; }

.dm-search-field button:focus-visible,
.dm-search-results a:focus-visible {
  outline: 2px solid var(--search-accent);
  outline-offset: -2px;
}

.dm-search-panel {
  position: absolute;
  z-index: 112;
  top: calc(100% + 10px);
  right: 0;
  box-sizing: border-box;
  width: min(410px, calc(100vw - 32px));
  max-height: min(440px, 52dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid #d7e1ea;
  border-radius: 12px;
  background: #fff;
  color: var(--search-ink);
  box-shadow: 0 12px 28px #0c2f4b26;
}

.dm-search-panel[hidden] { display: none; }
.dm-search-status { margin: 0; padding: 9px 12px; color: var(--search-muted); font-size: 13px; }
.dm-search-results { margin: 0; padding: 0; list-style: none; }
.dm-search-results li + li { border-top: 1px solid #e1e9ed; }

.dm-search-results a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 8px;
  color: var(--search-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.dm-search-results a:hover,
.dm-search-results a:focus-visible { background: #f2f6f8; }
.dm-search-result-copy span { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; }
.dm-search-result-copy small { display: block; margin-top: 4px; color: var(--search-muted); font-size: 14px; line-height: 1.45; }
.dm-search-results a > svg { width: 20px; height: 20px; color: var(--search-accent); }

.dm-header .dm-header-staff-login {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #163e58;
  border-radius: 6px;
  background: #fff;
  color: #163e58;
  font: 700 13px/1.4 var(--dx-text);
  text-decoration: none;
  white-space: nowrap;
}

.dm-header .dm-header-staff-login:hover { background: #eef4f7; color: #0d2e45; }
.dm-header .dm-header-staff-login:focus-visible { outline: 3px solid #ed9145; outline-offset: 3px; }

@media (min-width: 901px) {
  .dm-header .header-inner { column-gap: 16px; }
  .dm-header .dm-main-nav > a.dm-staff-login { display: none; }
  .dm-header .dm-header-staff-login { display: inline-flex; }
}

@media (max-width: 1200px) {
  .site-header.dm-header { height: auto; }
  .dm-header .header-inner { flex-wrap: wrap; row-gap: 8px; padding-block: 10px; }
  .dm-header .dm-site-search { flex: 1 0 70%; }
  .dm-search-panel { width: min(410px, 100%); }
  #our-offices,
  #agricultural-projects { scroll-margin-top: 144px; }
}

@media (max-width: 900px) {
  .dm-header .dm-site-search { flex-basis: 100%; }
  .dm-search-panel { width: 100%; }
}

@media (max-width: 420px) {
  .dm-header .brand { width: min(52vw, 200px); }
}
