/* ASAP Smart Finder — scoped. Tokens from the build spec. */
.asap-sf {
  --asap-ink: #0f2a1c;
  --asap-green1: #2c7a4f;
  --asap-green2: #1c5236;
  --asap-deep: #0e4229;
  --asap-red: #e5352a;
  --asap-red-d: #c62c22;
  --asap-gold: #eabb44;
  --asap-cream: #fffdf8;
  --asap-muted: #5f6f65;
  --asap-line: #e7e1d3;
  --asap-shadow: 0 24px 60px rgba(9, 40, 26, 0.28);
  --asap-display: Montserrat, system-ui, sans-serif;
  --asap-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
  font-family: var(--asap-body);
  color: var(--asap-ink);
  -webkit-font-smoothing: antialiased;
}
.asap-sf *,
.asap-sf *::before,
.asap-sf *::after { box-sizing: border-box; }

.asap-sf .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Homepage band ---- */
.asap-sf--home[hidden] { display: none !important; }
.asap-sf--home {
  position: relative;
  z-index: 5;
  padding: 26px 0 22px;
  background: radial-gradient(120% 130% at 82% 8%, #2f8455 0%, var(--asap-green1) 40%, var(--asap-green2) 100%);
  color: #fff;
}
.asap-sf--home .asap-sf__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}
.asap-sf__lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--asap-display);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: #d7ecdf;
}
.asap-sf__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--asap-gold);
  box-shadow: 0 0 0 4px rgba(234, 187, 68, 0.25);
}

.asap-sf__searchwrap { position: relative; }
.asap-sf__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 8px 8px 8px 20px;
  box-shadow: var(--asap-shadow);
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.asap-sf__bar:focus-within { border-color: var(--asap-gold); }
.asap-sf__icon { flex: none; color: #7f8c84; }
.asap-sf__input,
.asap-sf input.asap-sf__input,
.asap-sf input[type="search"],
.asap-sf input[type="search"]:hover,
.asap-sf input[type="search"]:focus,
.asap-sf input[type="search"]:focus-visible {
  flex: 1;
  border: 0 !important;
  outline: none !important;
  font-family: var(--asap-body);
  font-size: 18px;
  color: var(--asap-ink);
  background: transparent !important;
  padding: 14px 0;
  min-width: 0;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.asap-sf__input::-webkit-search-decoration,
.asap-sf__input::-webkit-search-cancel-button,
.asap-sf__input::-webkit-search-results-button,
.asap-sf__input::-webkit-search-results-decoration { display: none; }
.asap-sf__input::placeholder { color: #9aa69d; }
.asap-sf__go {
  font-family: var(--asap-display);
  font-weight: 800;
  background: var(--asap-deep);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.asap-sf__go:hover { background: #0a381f; }
.asap-sf__icon-btn:focus-visible,
.asap-sf__go:focus-visible,
.asap-sf__close:focus-visible,
.asap-sf__row:focus-visible,
.asap-sf__chip:focus-visible,
.asap-sf__card:focus-visible {
  outline: 2px solid var(--asap-gold);
  outline-offset: 2px;
}

.asap-sf__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ticker */
.asap-sf__ticker {
  position: relative;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.asap-sf__ticker-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--asap-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #123a26;
  background: var(--asap-gold);
  padding: 8px 13px;
  border-radius: 999px;
  z-index: 3;
}
.asap-sf__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--asap-red);
  animation: asap-sf-pulse 1.4s infinite;
}
@keyframes asap-sf-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}
.asap-sf__ticker-view {
  position: relative;
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent);
}
.asap-sf__ticker-track {
  display: inline-flex;
  gap: 10px;
  white-space: nowrap;
  animation: asap-sf-scroll 44s linear infinite;
  will-change: transform;
}
.asap-sf__ticker-view:hover .asap-sf__ticker-track { animation-play-state: paused; }
@keyframes asap-sf-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.asap-sf__pill {
  flex: none;
  font-family: var(--asap-body);
  font-weight: 600;
  font-size: 14px;
  color: #eafaf0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
}
.asap-sf__pill:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}
.asap-sf__pill b { color: #fff; font-weight: 700; }

/* results — fixed so Elementor overflow cannot clip */
.asap-sf__results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--asap-shadow);
  overflow: hidden;
  z-index: 10080;
  border: 1px solid var(--asap-line);
  text-align: left;
  color: var(--asap-ink);
}
.asap-sf__results[hidden] { display: none !important; }
.asap-sf__results.is-fixed {
  position: fixed;
  right: auto;
  top: auto;
}
.asap-sf__results.is-open {
  display: block;
  animation: asap-sf-pop 0.16s ease-out;
}
@keyframes asap-sf-pop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.asap-sf__head {
  padding: 13px 20px;
  font-size: 13px;
  color: var(--asap-muted);
  border-bottom: 1px solid #f0ece0;
  font-weight: 600;
}
.asap-sf__list { max-height: 376px; overflow-y: auto; }
.asap-sf__row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  cursor: pointer;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid #f4f1e8;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}
.asap-sf__row:last-child { border-bottom: 0; }
.asap-sf__row:hover,
.asap-sf__row.is-active { background: #f4f9f5; }
.asap-sf__ic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eaf4ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.asap-sf__body { flex: 1; min-width: 0; }
.asap-sf__name {
  font-family: var(--asap-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--asap-ink);
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.asap-sf__tag {
  font-family: var(--asap-body);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3a6b4e;
  background: #e4f1e8;
  padding: 3px 8px;
  border-radius: 6px;
}
.asap-sf__tag--resource { color: #9a6a10; background: #faf0d6; }
.asap-sf__checks {
  font-size: 13.5px;
  color: var(--asap-muted);
  margin-top: 3px;
  line-height: 1.4;
}
.asap-sf__cta {
  flex: none;
  font-family: var(--asap-display);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: var(--asap-red);
  padding: 10px 16px;
  border-radius: 10px;
  white-space: nowrap;
}
.asap-sf__cta--g { background: var(--asap-deep); }
.asap-sf__row:hover .asap-sf__cta { filter: brightness(1.06); }
.asap-sf__cross {
  padding: 8px 20px 12px;
  font-size: 13px;
  color: var(--asap-muted);
  background: #faf8f1;
  border-top: 1px solid #f0ece0;
}
.asap-sf__cross a {
  font-family: var(--asap-display);
  font-weight: 800;
  color: var(--asap-deep);
  text-decoration: none;
}
.asap-sf__cross a:hover { text-decoration: underline; }
.asap-sf__foot {
  padding: 12px 20px;
  background: #faf8f1;
  border-top: 1px solid #f0ece0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.asap-sf__disc {
  font-size: 12px;
  color: #8a9187;
  line-height: 1.4;
  max-width: 66%;
}
.asap-sf__foot a {
  font-family: var(--asap-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--asap-deep);
  white-space: nowrap;
  text-decoration: none;
}
.asap-sf__foot a:hover { text-decoration: underline; }
.asap-sf__empty { padding: 22px 20px; text-align: center; }
.asap-sf__empty p {
  color: var(--asap-muted);
  font-size: 14px;
  margin: 0 0 14px;
}
.asap-sf__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.asap-sf__chip {
  font-weight: 600;
  font-size: 13px;
  color: var(--asap-deep);
  background: #eaf4ee;
  border: 1px solid #d6e8dc;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.asap-sf__chip:hover { background: #dcefe3; }

/* ---- Header compact ---- */
.asap-sf--header {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10090;
}
.asap-sf--header[hidden] { display: none !important; }

/*
 * B2: icon is out of the CTA flex flow so Log In / Sign Up / Request Demo
 * keep their original width. Open state grows left over the nav.
 */
.asap-sf-cta-host {
  position: relative !important;
  overflow: visible !important;
}
.asap-sf-cta-host > .elementor-widget-button {
  flex-shrink: 0 !important;
}
.asap-sf-cta-host .elementor-button,
.asap-sf-cta-host .elementor-button-text {
  white-space: nowrap !important;
}
.asap-sf-overflow-lift {
  overflow: visible !important;
}

.asap-sf__icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--asap-deep);
  background: #fff;
  color: var(--asap-deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 1px 4px rgba(9, 40, 26, 0.12);
  flex: none;
}
.asap-sf__icon-btn:hover { background: #fff; border-color: var(--asap-green1); }
.asap-sf--header.is-open .asap-sf__icon-btn { display: none; }

.asap-sf__panel { display: none; }
.asap-sf--header.is-open .asap-sf__panel,
.asap-sf--header-bar .asap-sf__panel { display: block; }
.asap-sf--header-bar .asap-sf__icon-btn,
.asap-sf--header-bar .asap-sf__close { display: none; }

.asap-sf__minibar {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f2f5f2;
  border: 1.5px solid #e4e8e3;
  border-radius: 999px;
  padding: 9px 15px;
  width: 290px;
  transition: width 0.22s ease, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.asap-sf__minibar:focus-within,
.asap-sf--header.is-open .asap-sf__minibar {
  width: 340px;
  border-color: var(--asap-green1);
  background: #fff;
  box-shadow: 0 8px 24px rgba(9, 40, 26, 0.12);
}
.asap-sf__minibar .asap-sf__input,
.asap-sf__minibar input[type="search"] {
  font-size: 14.5px;
  padding: 4px 0;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/*
 * Overlay B2 after minibar width rules so 100% wins over 340px.
 * Live header is .header_top — do not require .elementor-location-header.
 */
.asap-sf--header-icon:not(.asap-sf--fallback),
.asap-sf--overlay:not(.asap-sf--fallback) {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  margin: 0 12px 0 0;
  flex: none;
  overflow: hidden;
  z-index: 10095;
  transform-origin: right center;
  transition: width 0.22s ease;
}
.asap-sf--header-icon.is-open:not(.asap-sf--fallback),
.asap-sf--overlay.is-open:not(.asap-sf--fallback) {
  width: min(540px, 52vw);
  background: transparent;
  overflow: hidden;
}
.asap-sf--header-icon:not(.asap-sf--fallback) .asap-sf__panel,
.asap-sf--overlay:not(.asap-sf--fallback) .asap-sf__panel {
  width: 100%;
}
.asap-sf--header-icon:not(.asap-sf--fallback) .asap-sf__minibar,
.asap-sf--header-icon.is-open:not(.asap-sf--fallback) .asap-sf__minibar,
.asap-sf--header-icon.is-open:not(.asap-sf--fallback) .asap-sf__minibar:focus-within,
.asap-sf--overlay:not(.asap-sf--fallback) .asap-sf__minibar,
.asap-sf--overlay.is-open:not(.asap-sf--fallback) .asap-sf__minibar,
.asap-sf--overlay.is-open:not(.asap-sf--fallback) .asap-sf__minibar:focus-within {
  width: 100%;
}

.asap-sf__close {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--asap-muted);
  padding: 0;
}
.asap-sf--header .asap-sf__results { left: auto; right: 0; width: 100%; min-width: 320px; }

/* When header inject fails, sit as a strip under the nav */
.asap-sf--header.asap-sf--fallback {
  display: flex;
  justify-content: flex-end;
  padding: 10px 24px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 70;
}
.asap-sf--header.asap-sf--fallback[hidden] { display: none; }

/* ---- Browse cards ---- */
.asap-sf--browse { padding: 8px 0 24px; }
.asap-sf__browse-title {
  font-family: var(--asap-display);
  font-weight: 900;
  font-size: 26px;
  color: var(--asap-ink);
  margin: 0;
}
.asap-sf__browse-lead {
  color: var(--asap-muted);
  margin: 6px 0 0;
  font-size: 15px;
}
.asap-sf__cards {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.asap-sf__card {
  border: 1px solid var(--asap-line);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.12s, border-color 0.15s;
  background: #fff;
  text-align: left;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.asap-sf__card:hover {
  box-shadow: 0 16px 40px rgba(9, 40, 26, 0.1);
  transform: translateY(-2px);
  border-color: #d6e8dc;
}
.asap-sf__card-ic { font-size: 26px; }
.asap-sf__card-name {
  font-family: var(--asap-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--asap-ink);
  margin-top: 12px;
}
.asap-sf__card-checks {
  font-size: 13.5px;
  color: var(--asap-muted);
  margin-top: 6px;
  line-height: 1.45;
}
.asap-sf__card-cta {
  margin-top: 14px;
  font-family: var(--asap-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--asap-red);
}

@media (max-width: 940px) {
  .asap-sf__cards { grid-template-columns: 1fr 1fr; }
  .asap-sf--header-bar .asap-sf__minibar { width: 210px; }
  .asap-sf--header-bar.is-open .asap-sf__minibar,
  .asap-sf--header-bar .asap-sf__minibar:focus-within { width: 230px; }
  .asap-sf--header .asap-sf__results { width: min(92vw, 440px); }
  .asap-sf--header-icon.is-open:not(.asap-sf--fallback) {
    width: min(420px, 62vw);
  }
}
@media (max-width: 640px) {
  .asap-sf--home .asap-sf__inner { padding-left: 18px; padding-right: 18px; }
  .asap-sf__bar { padding: 8px 8px 8px 16px; }
  .asap-sf__input { font-size: 16px; padding: 12px 0; }
  .asap-sf__go { display: none; }
  .asap-sf__ticker-tag { display: none; }
  .asap-sf--home { padding-top: 18px; }
  .asap-sf__cta { padding: 9px 12px; font-size: 12px; }
  .asap-sf__disc { max-width: 100%; }
  .asap-sf__cards { grid-template-columns: 1fr; }
  .asap-sf--header-bar .asap-sf__minibar,
  .asap-sf--header-bar.is-open .asap-sf__minibar,
  .asap-sf--header-bar .asap-sf__minibar:focus-within { width: 100%; }
  .asap-sf--header-bar { flex: 1; min-width: 0; }
  .asap-sf--header-bar .asap-sf__panel { flex: 1; }
  .asap-sf--header .asap-sf__results { width: min(94vw, 440px); }
  .asap-sf--header-icon:not(.asap-sf--fallback) {
    flex: none;
  }
  .asap-sf--header-icon.is-open:not(.asap-sf--fallback) {
    width: min(92vw, 420px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .asap-sf__ticker-track,
  .asap-sf__pulse,
  .asap-sf__results.is-open { animation: none; }
  .asap-sf--header-icon:not(.asap-sf--fallback),
  .asap-sf__minibar {
    transition: none;
  }
}
