/**
 * Homepage AI search bar panel, per the client-approved expanded mockup.
 */
.brn-search {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin: 0 0 24px;
  padding: 20px 24px;
  scroll-margin-top: 96px;
}

.brn-search__headline {
  color: #114B93;
  font-size: 34px;
  margin: 0 0 12px;
}

.brn-search__row {
  display: flex;
  gap: 10px;
}

.brn-search__field {
  flex: 1;
  position: relative;
}

.brn-search__input {
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 10px center / 18px 18px no-repeat;
  border: 1px solid #9fb3c8;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 15px;
  padding: 10px 36px 10px 36px;
  width: 100%;
}

/* The panel renders its own clear control. */
.brn-search__input::-webkit-search-cancel-button {
  display: none;
}

.brn-search__clear {
  background: none;
  border: 0;
  color: #486581;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.brn-search__clear:hover {
  color: #243b53;
}

.brn-search__submit {
  background: #0056b3;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  text-transform: uppercase;
}

.brn-search__submit:disabled {
  opacity: 0.6;
}

.brn-search__examples {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.brn-search__try {
  color: #486581;
  font-size: 13px;
}

.brn-search__chip {
  background: #f0f4f8;
  border: 1px solid #bcccdc;
  border-radius: 14px;
  color: #243b53;
  cursor: pointer;
  font-size: 13px;
  padding: 4px 12px;
}

.brn-search__chip:hover {
  background: #e1eaf3;
}

.brn-search__results {
  margin-top: 14px;
}

.brn-search__message {
  color: #334e68;
  margin: 0 0 6px;
}

.brn-search__fallback {
  margin: 0;
}

.brn-search__fallback-link {
  color: #0056b3;
}

.brn-search__cards {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  max-height: 420px;
  max-height: min(420px, 55vh);
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.brn-search__card {
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 12px 14px;
  position: relative;
}

.brn-search__card--has-logo {
  padding-right: 70px;
}

.brn-search__card-content {
  min-width: 0;
}

.brn-search__card-title {
  color: #0056b3;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.brn-search__card-logo-link {
  align-items: center;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  display: flex;
  height: 52px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 12px;
  transition: opacity 0.15s ease;
  width: 52px;
}

.brn-search__card-logo-link[hidden] {
  display: none;
}

.brn-search__card-logo-link:hover,
.brn-search__card-logo-link:focus {
  opacity: 0.82;
}

.brn-search__card-logo-link:focus-visible {
  border-radius: 50%;
  outline: 2px solid rgba(0, 86, 179, 0.55);
  outline-offset: 2px;
}

.brn-search__card-logo {
  display: block;
  height: 40px;
  object-fit: contain;
  width: 40px;
}

.brn-search__card-org {
  color: #486581;
  font-size: 13px;
  margin-top: 2px;
}

.brn-search__card-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 13px;
  margin-top: 3px;
}

.brn-search__card-contact a {
  color: #486581;
  text-decoration: none;
}

.brn-search__card-contact a:hover {
  text-decoration: underline;
}

.brn-search__card-contact-sep {
  color: #486581;
}

.brn-search__card-summary {
  font-size: 14px;
  margin: 6px 0 0;
}

.brn-search__view-all {
  color: #0056b3;
  font-weight: 700;
}

@media (max-width: 768px) {
  .brn-search__headline {
    font-size: 26px;
  }

  .brn-search__card--has-logo {
    padding-right: 60px;
  }

  .brn-search__card-logo-link {
    height: 46px;
    width: 46px;
  }

  .brn-search__card-logo {
    height: 36px;
    width: 36px;
  }
}

.brn-search__dots span {
  animation: brn-search-dot 1.2s infinite ease-in-out;
  display: inline-block;
}

.brn-search__dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.brn-search__dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes brn-search-dot {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brn-search__dots span {
    animation: none;
  }
}
