.global-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.global-search-toggle {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--teal, #005c65);
  cursor: pointer;
}

.global-search-toggle:hover,
.global-search-toggle[aria-expanded="true"] {
  background: var(--grey, #f4f6fa);
}

.global-search-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.global-article-search[hidden] {
  display: none;
}

.global-article-search {
  position: fixed;
  top: 70px;
  right: 0;
  left: 0;
  z-index: 124;
  border-top: 1px solid var(--line, #cfe0dd);
  border-bottom: 1px solid var(--line, #cfe0dd);
  background: #fff;
  box-shadow: 0 18px 34px rgba(0, 50, 60, .12);
  color: var(--slate, #314d5c);
  font-family: var(--sans, "Oldschool Grotesk", Tahoma, system-ui, sans-serif);
}

.global-search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
  width: 100%;
  max-width: 1280px;
  max-height: calc(100vh - 70px);
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 52px) 20px;
  overflow-y: auto;
}

.global-search-main {
  min-width: 0;
}

.global-search-form {
  display: grid;
  gap: 8px;
}

.global-search-label {
  color: var(--teal, #005c65);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.global-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.global-search-input {
  width: 100%;
  height: 48px;
  min-width: 0;
  padding: 0 16px;
  border: 1.5px solid var(--field-border, #9db6bb);
  border-radius: 10px;
  background: #fff;
  color: var(--teal, #005c65);
  font: inherit;
  font-size: 16px;
}

.global-search-input::placeholder {
  color: #718a91;
}

.global-search-input:focus {
  border-color: var(--teal, #005c65);
  outline: 2px solid var(--teal, #005c65);
  outline-offset: 2px;
}

.global-search-submit {
  min-width: 88px;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--teal, #005c65);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.global-search-submit:hover {
  background: var(--teal-hover, #0a4347);
}

.global-search-close {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line, #cfe0dd);
  border-radius: 10px;
  background: #fff;
  color: var(--teal, #005c65);
  cursor: pointer;
}

.global-search-close:hover {
  background: var(--grey, #f4f6fa);
}

.global-search-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.global-search-status {
  min-height: 18px;
  margin: 8px 0 2px;
  color: var(--slate, #314d5c);
  font-size: 12px;
  line-height: 1.4;
}

.global-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
}

.global-search-result {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 0 8px;
  border-top: 1px solid var(--line, #cfe0dd);
  color: var(--teal, #005c65);
  text-decoration: none;
}

.global-search-result:hover .global-search-result__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.global-search-result__category {
  overflow: hidden;
  color: var(--slate, #314d5c);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .075em;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.global-search-result__title {
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 0;
  color: var(--slate, #314d5c);
  font-size: 14px;
}

.global-search-cta {
  display: flex;
  min-height: 0;
  align-self: start;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--blue-tint, #e7f3ff);
}

.global-search-cta__body {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.global-search-cta__title {
  margin: 0;
  color: var(--teal, #005c65);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.global-search-cta a {
  display: inline-flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--teal, #005c65);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.global-search-cta a:hover {
  background: var(--teal-hover, #0a4347);
}

@media (max-width: 720px) {
  .global-search-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 14px;
  }

  .global-search-results {
    grid-template-columns: 1fr;
  }

  .global-search-result:nth-child(n + 4) {
    display: none;
  }

  .global-search-cta {
    min-height: 0;
    padding: 12px 14px;
  }

}

@media (max-width: 420px) {
  .global-header-actions {
    gap: 5px;
  }

  .global-search-toggle {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .global-search-row {
    gap: 6px;
  }

  .global-search-input {
    padding-inline: 12px;
    font-size: 15px;
  }

  .global-search-submit {
    min-width: 64px;
    padding-inline: 10px;
    font-size: 14px;
  }

  .global-search-close {
    width: 42px;
  }
}
