/*
 * Static-export behavior overrides. The original theme styles remain intact;
 * only controls that require WordPress/AJAX are hidden.
 */
.td_ajax_load_more,
.td-login-button,
.td-login-modal-wrap {
  display: none !important;
}

a[href="#"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

:root {
  --search-surface: #fff;
  --search-ink: #222;
  --search-muted: #777;
  --search-accent: #76d4c7;
  --search-border: #e5e5e5;
  --search-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

#td-aj-search {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 9999;
  width: min(380px, calc(100vw - 32px));
}

.static-search-results {
  max-height: 420px;
  overflow-y: auto;
  color: var(--search-ink);
  background: var(--search-surface);
  border: 1px solid var(--search-border);
  box-shadow: var(--search-shadow);
}

.static-search-result {
  display: block;
  padding: 12px 16px;
  color: var(--search-ink);
  border-bottom: 1px solid var(--search-border);
  text-decoration: none;
}

.static-search-result:last-child {
  border-bottom: 0;
}

.static-search-result:hover,
.static-search-result:focus-visible {
  color: var(--search-ink);
  background: rgba(118, 212, 199, 0.14);
  outline: 2px solid var(--search-accent);
  outline-offset: -2px;
}

.static-search-result strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.35;
}

.static-search-result span,
.static-search-state {
  color: var(--search-muted);
  font-size: 12px;
  line-height: 1.5;
}

.static-search-state {
  padding: 16px;
  text-align: center;
}

.static-search-retry {
  margin-top: 8px;
  padding: 8px 12px;
  color: var(--search-ink);
  background: var(--search-accent);
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.static-search-skeleton {
  height: 12px;
  margin: 8px 0;
  background: linear-gradient(90deg, #eee 25%, #f7f7f7 50%, #eee 75%);
  background-size: 200% 100%;
  animation: static-search-loading 1.1s linear infinite;
}

.static-search-skeleton:nth-child(2) {
  width: 82%;
}

.static-search-skeleton:nth-child(3) {
  width: 64%;
}

.static-search-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  max-width: 320px;
  padding: 12px 16px;
  color: var(--search-surface);
  background: var(--search-ink);
  box-shadow: var(--search-shadow);
  font-size: 13px;
}

@keyframes static-search-loading {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 767px) {
  #td-aj-search-mob {
    padding: 0 20px 24px;
  }

  #td-aj-search-mob .static-search-results {
    max-height: 52vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .static-search-skeleton {
    animation: none;
  }
}
