/* Header site search (see js/site-search.js) */
.tc-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1B76C5;
  border: 0;
  border-radius: 20px;
  padding: 7px 16px;
  margin-left: 15px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.tc-search-trigger:hover,
.tc-search-trigger:focus-visible {
  background: #BADFFF;
  outline: none;
}
.tc-search-trigger.tc-search-icon-only {
  padding: 8px 11px;
  margin: 0 12px 0 0;
  font-size: 18px;
}

.tc-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 30, 55, 0.55);
  padding: 80px 16px 16px;
}
.tc-search-overlay.is-open {
  display: block;
}
body.tc-search-lock {
  overflow: hidden;
}

.tc-search-box {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  font-family: inherit;
}
.tc-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e3e8ef;
}
.tc-search-field .fa-search {
  color: #1B76C5;
  font-size: 18px;
}
.tc-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 18px;
  color: #1d2530;
  background: transparent;
}
.tc-search-close {
  background: #f1f4f8;
  border: 0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.tc-search-results {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 60vh;
  overflow-y: auto;
}
.tc-search-results:empty {
  padding: 0;
}
.tc-search-results li a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  color: #1d2530;
  text-decoration: none;
}
.tc-search-results li.is-active a,
.tc-search-results li a:hover {
  background: #EAF4FD;
}
.tc-search-tag {
  flex: none;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1B76C5;
  background: #EAF4FD;
  border-radius: 4px;
  padding: 2px 6px;
}
.tc-search-results li.is-active .tc-search-tag,
.tc-search-results li a:hover .tc-search-tag {
  background: #fff;
}
.tc-search-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tc-search-title {
  font-size: 16px;
  font-weight: 600;
}
.tc-search-title mark {
  background: #FFE7B3;
  color: inherit;
  padding: 0;
}
.tc-search-desc {
  font-size: 13px;
  color: #66707c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-search-empty {
  display: none;
  padding: 16px;
  color: #66707c;
  font-size: 15px;
}
.tc-search-hint {
  padding: 8px 16px;
  font-size: 12px;
  color: #8a94a0;
  background: #f8fafc;
  border-top: 1px solid #e3e8ef;
}

@media (max-width: 767px) {
  .tc-search-overlay {
    padding-top: 16px;
  }
  .tc-search-hint {
    display: none;
  }
}
