:root {
  --tee-search-blue: #1a8f0d;
  --tee-search-navy: #12354a;
  --tee-search-border: #d9e1e5;
}

.tee-search-overlay[hidden],
.tee-search-suggestions[hidden] {
  display: none !important;
}

.tee-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: max(5rem, 12vh) 1rem 1rem;
  background: rgba(10, 28, 39, .72);
}

.tee-search-dialog {
  position: relative;
  width: min(46rem, 100%);
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding: 1.25rem;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, .28);
}

.tee-search-close {
  position: absolute;
  top: .5rem;
  right: .6rem;
  border: 0;
  background: transparent;
  color: #334;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.tee-search-title {
  margin: 0 2.5rem 1rem 0;
  color: var(--tee-search-navy);
  font-size: 1.35rem;
}

.tee-search-field {
  display: flex;
  gap: .5rem;
}

.tee-search-input {
  width: 100%;
  min-height: 3rem;
  padding: .7rem 1rem;
  border: 1px solid #aab9c1;
  border-radius: 1.5rem;
  background: #fff;
  color: #111;
  font-size: 1rem;
}

.tee-search-input:focus {
  border-color: var(--tee-search-blue);
  outline: 3px solid rgba(8, 126, 139, .2);
}

.tee-search-submit {
  display: grid;
  flex: 0 0 3rem;
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  align-self: center;
  border: 0;
  border-radius: 50%;
  background: var(--tee-search-blue);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.tee-search-status {
  min-height: 1.5rem;
  margin: .65rem .2rem .2rem;
  color: #56656c;
  font-size: .92rem;
}

.tee-search-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tee-search-item {
  border-top: 1px solid var(--tee-search-border);
}

.tee-search-result {
  display: block;
  padding: .9rem .25rem;
  color: #182d38;
  text-decoration: none;
}

.tee-search-result:hover,
.tee-search-result:focus,
.tee-search-result[aria-selected="true"] {
  background: #f0f7f8;
  outline: none;
}

.tee-search-result-title {
  display: block;
  color: var(--tee-search-navy);
  font-weight: 700;
}

.tee-search-result-meta {
  display: block;
  margin-top: .2rem;
  color: var(--tee-search-blue);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tee-search-result-excerpt {
  display: block;
  margin-top: .3rem;
  color: #4c5d65;
  font-size: .9rem;
}

.tee-search-result-excerpt mark {
  background: #fff2a8;
}

.tee-search-more,
.tee-search-fallback {
  display: inline-block;
  margin-top: 1rem;
  color: var(--tee-search-blue);
  font-weight: 700;
}

.tee-search-page {
  width: min(62rem, calc(100% - 2rem));
  margin: 0 auto;
}

.tee-search-page .tee-search-input {
  min-height: 3.5rem;
  font-size: 1.1rem;
}

.tee-search-page .tee-search-result {
  padding: 1.15rem .5rem;
}

body.tee-search-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  .tee-search-overlay {
    padding-top: 4rem;
  }

  .tee-search-dialog {
    max-height: calc(100vh - 5rem);
    padding: 1rem;
  }
}
