/* Catalog heroes + opportunity grid/list */
.catalog-hero {
  position: relative;
  padding: 1.35rem 0 1.25rem;
  background:
    radial-gradient(1200px 420px at 10% -20%, color-mix(in srgb, var(--vr-primary, #0d9488) 22%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--vr-primary, #0d9488) 10%, #f8fafc) 0%, #fff 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--text-main, #0f172a) 8%, transparent);
}
@media (min-width: 992px) {
  .catalog-hero {
    padding: 1.75rem 0 1.5rem;
  }
}
.catalog-hero--has-search {
  padding-bottom: 1.15rem;
  border-bottom: 1px solid color-mix(in srgb, var(--text-main, #0f172a) 7%, transparent);
}
html[data-bs-theme="dark"] .catalog-hero {
  background:
    radial-gradient(1200px 420px at 10% -20%, color-mix(in srgb, var(--vr-primary, #0d9488) 28%, transparent), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #111827 100%);
  border-bottom-color: rgba(255,255,255,.08);
}

/* Flush under site nav — kill theme spacer / mega-menu gaps */
body.has-catalog-hero .mega-menu-wrapper,
body.has-catalog-hero #sticky-menu-wrapper,
body.has-catalog-hero #mega-menu-wrapper,
body:has(.catalog-hero) .mega-menu-wrapper,
body:has(.catalog-hero) #sticky-menu-wrapper,
body:has(.catalog-hero) #mega-menu-wrapper {
  margin-bottom: 0 !important;
}
body.has-catalog-hero .container-bn-header,
body:has(.catalog-hero) .container-bn-header {
  margin-bottom: 0 !important;
}

/*
 * Mobile: extend hero under the fixed header so teal meets the nav
 * with zero white hairline. Spacer is collapsed; hero owns the offset.
 */
@media (max-width: 991.98px) {
  body.has-catalog-hero .mobile-nav-wrapper .mobile-header-spacer,
  body:has(.catalog-hero) .mobile-nav-wrapper .mobile-header-spacer {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
  }
  body.has-catalog-hero .mobile-nav-wrapper,
  body:has(.catalog-hero) .mobile-nav-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  body.has-catalog-hero .catalog-hero,
  body:has(.catalog-hero) .catalog-hero {
    margin-top: 0;
    /* Clear the fixed mobile header; background runs up underneath it */
    padding-top: calc(var(--header-height, 4.125rem) + 0.45rem);
  }
}

.catalog-hero-crumb .breadcrumb { --bs-breadcrumb-divider-color: #94a3b8; }
.catalog-hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.35rem;
  line-height: 1.15;
  color: var(--catalog-hero-title-color, var(--text-main, #0f172a));
}
.catalog-hero-sub {
  margin: 0;
  color: var(--catalog-hero-sub-color, #64748b);
  font-size: clamp(0.875rem, 2vw, 1.05rem);
  line-height: 1.45;
  max-width: 42rem;
}
.catalog-hero-search {
  margin-top: 0.75rem;
}
@media (max-width: 991.98px) {
  .catalog-hero {
    /* padding-top set above for flush-under-nav; keep bottom compact */
    padding-bottom: 0.7rem;
  }
  .catalog-hero--has-search {
    padding-bottom: 0.7rem;
  }
  .catalog-hero-title {
    margin: 0.05rem 0 0.12rem;
    font-size: clamp(1.2rem, 5.2vw, 1.5rem);
    line-height: 1.2;
  }
  .catalog-hero-sub {
    font-size: clamp(0.75rem, 3.3vw, 0.875rem);
    line-height: 1.4;
  }
  .catalog-hero-search {
    margin-top: 0.5rem;
  }
}
.catalog-hero-count { font-weight: 700; color: var(--text-main, #0f172a); }
.catalog-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}
.catalog-results-section {
  margin-top: 0;
}

/* Search lives inside hero — no second chrome band */
.catalog-hero-search .catalog-opp-search {
  margin: 0;
}
.catalog-hero-search .catalog-sticky-search {
  position: relative;
  top: auto;
  z-index: 1030;
  padding: 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.catalog-hero-search .catalog-sticky-search.is-pinned {
  position: fixed;
  top: 4.125rem;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0.45rem 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid color-mix(in srgb, var(--text-main, #0f172a) 8%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.catalog-hero-search .catalog-sticky-search.is-pinned .catalog-sticky-search-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 576px) {
  .catalog-hero-search .catalog-sticky-search.is-pinned .catalog-sticky-search-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
@media (min-width: 1200px) {
  .catalog-hero-search .catalog-sticky-search.is-pinned .catalog-sticky-search-inner {
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  }
}
html[data-bs-theme="dark"] .catalog-hero-search .catalog-sticky-search.is-pinned {
  background: rgba(11, 18, 32, 0.96);
  border-bottom-color: rgba(255,255,255,.1);
}
.catalog-hero-search .catalog-desktop-filters {
  background: transparent;
  border-bottom: 0;
  padding: 0;
}

/* Opportunities search — printables-style mobile sticky + drawer */
.catalog-opp-search { position: static; }
.catalog-sticky-slot {
  display: block;
}
.catalog-sticky-search {
  position: relative;
  z-index: 1030;
  padding: 0.45rem 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--text-main, #0f172a) 8%, transparent);
}
.catalog-sticky-search.is-pinned {
  position: fixed;
  top: 4.125rem; /* mobile header height */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
html[data-bs-theme="dark"] .catalog-sticky-search {
  background: rgba(11, 18, 32, 0.95);
  border-bottom-color: rgba(255,255,255,.1);
}
.catalog-mobile-search-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.catalog-mobile-search-row .catalog-live-search {
  flex: 1 1 auto;
  min-width: 0;
}
.catalog-live-search .live-search-spinner {
  right: 4.35rem;
  width: 0.85rem;
  height: 0.85rem;
}
.catalog-sticky-search.is-pinned .live-search-dropdown {
  z-index: 1200;
}
.catalog-live-search--desktop {
  width: 100%;
}
.catalog-mobile-search-field {
  --catalog-search-h: 2.35rem;
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  height: var(--catalog-search-h);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: none;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.catalog-mobile-search-field:focus-within {
  background: #fff;
  border-color: color-mix(in srgb, var(--vr-primary, #0d9488) 55%, #e5e7eb);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--vr-primary, #0d9488) 16%, transparent);
}
html[data-bs-theme="dark"] .catalog-mobile-search-field {
  background: #1e293b;
  border-color: rgba(255,255,255,.12);
}
.catalog-mobile-search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  display: flex;
  width: 1rem;
  height: 1rem;
  z-index: 2;
}
.catalog-mobile-search-icon svg {
  width: 1rem;
  height: 1rem;
}
.catalog-mobile-search-field:focus-within .catalog-mobile-search-icon {
  color: var(--vr-primary, #0d9488);
}
.catalog-mobile-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 4.6rem 0 2.15rem;
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--text-main, #0f172a);
  position: relative;
  z-index: 1;
}
.catalog-ph-rotator {
  position: absolute;
  left: 2.15rem;
  right: 4.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8125rem;
  line-height: 1.2;
  color: #9ca3af;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  z-index: 0;
}
.catalog-ph-rotator.has-caret::after {
  content: '';
  display: inline-block;
  width: 1.5px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: -0.1em;
  background: #9ca3af;
  animation: catalogCaretBlink 0.85s steps(1) infinite;
}
@keyframes catalogCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.catalog-ph-rotator.is-hidden {
  opacity: 0 !important;
  visibility: hidden;
}
.catalog-ph-rotator--desktop {
  left: 2.85rem;
  right: 6.5rem;
  font-size: 1rem;
}
.catalog-desktop-search-hero {
  margin-bottom: 0.85rem;
}
.catalog-desktop-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.catalog-desktop-search-wrap:focus-within {
  background: #fff;
  border-color: color-mix(in srgb, var(--vr-primary, #0d9488) 50%, #e5e7eb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vr-primary, #0d9488) 14%, transparent);
}
.catalog-desktop-search-icon {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  display: flex;
  z-index: 2;
}
.catalog-desktop-search-wrap:focus-within .catalog-desktop-search-icon {
  color: var(--vr-primary, #0d9488);
}
.catalog-desktop-search-input.form-control {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  height: 3.25rem;
  padding: 0 6.75rem 0 2.85rem !important;
  font-size: 1rem !important;
}
.catalog-desktop-search-btn {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  height: 2.45rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--vr-primary, #0d9488);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.catalog-desktop-search-btn:hover {
  filter: brightness(1.05);
}
.catalog-live-search--desktop .live-search-spinner {
  right: 6.75rem;
}
html[data-bs-theme="dark"] .catalog-desktop-search-wrap {
  background: #1e293b;
  border-color: rgba(255,255,255,.12);
}

/* Shared horizontal pad so sticky search matches result cards */
.catalog-pad {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
@media (min-width: 576px) {
  .catalog-pad {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}
@media (min-width: 1200px) {
  .catalog-pad {
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
  }
}

/* Type pills with icons */
.opp-type-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}
.opp-type-pills::-webkit-scrollbar { display: none; }
.opp-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.opp-type-pill svg { flex: 0 0 auto; opacity: 0.75; }
.opp-type-pill:hover {
  border-color: color-mix(in srgb, var(--vr-primary, #0d9488) 40%, #e5e7eb);
  color: var(--vr-primary, #0d9488);
  text-decoration: none;
}
.opp-type-pill.is-active {
  background: var(--vr-primary, #0d9488);
  border-color: var(--vr-primary, #0d9488);
  color: #fff;
}
.opp-type-pill.is-active svg { opacity: 1; }
html[data-bs-theme="dark"] .opp-type-pill {
  background: #111827;
  border-color: rgba(255,255,255,.12);
  color: #e5e7eb;
}
.catalog-mobile-search-btn {
  position: absolute;
  right: 0.28rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: var(--vr-primary, #0d9488);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  line-height: 1;
  height: calc(var(--catalog-search-h) - 0.4rem);
}
.catalog-mobile-filters-btn {
  position: relative;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  box-shadow: none;
  padding: 0;
}
.catalog-mobile-filters-btn svg {
  width: 1.05rem;
  height: 1.05rem;
}
html[data-bs-theme="dark"] .catalog-mobile-filters-btn {
  background: #0f172a;
  border-color: rgba(255,255,255,.12);
  color: #cbd5e1;
}
.catalog-mobile-filters-btn.has-filters {
  color: var(--vr-primary, #0d9488);
  border-color: color-mix(in srgb, var(--vr-primary, #0d9488) 35%, transparent);
}
.catalog-mobile-filters-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 0.95rem;
  height: 0.95rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--vr-primary, #0d9488);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.catalog-desktop-filters {
  background: #fff;
  border-bottom: 1px solid color-mix(in srgb, var(--text-main, #0f172a) 8%, transparent);
  padding: 0.85rem 0 1.15rem;
}
html[data-bs-theme="dark"] .catalog-desktop-filters {
  background: #111827;
  border-bottom-color: rgba(255,255,255,.08);
}
.catalog-desktop-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
}
.catalog-filter-field {
  flex: 1 1 9rem;
  min-width: 0;
}
.catalog-filter-field .form-label {
  color: #64748b;
}

/* Filter drawer */
.catalog-filters-drawer {
  position: fixed;
  inset: 0;
  z-index: 1080;
  pointer-events: none;
}
.catalog-filters-drawer.is-open {
  pointer-events: auto;
}
.catalog-filters-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s ease;
}
.catalog-filters-drawer.is-open .catalog-filters-backdrop {
  opacity: 1;
}
.catalog-filters-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100vw, 20rem);
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s ease;
}
.catalog-filters-drawer.is-open .catalog-filters-panel {
  transform: translateX(0);
}
html[data-bs-theme="dark"] .catalog-filters-panel {
  background: #0f172a;
}
.catalog-filters-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 1;
}
html[data-bs-theme="dark"] .catalog-filters-panel-head {
  border-bottom-color: rgba(255,255,255,.08);
}
.catalog-filters-panel-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-main, #0f172a);
}
.catalog-filters-panel-title svg {
  color: var(--vr-primary, #0d9488);
}
.catalog-filters-close {
  border: 0;
  background: transparent;
  color: #94a3b8;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.catalog-filters-close:hover {
  background: #f1f5f9;
  color: #64748b;
}
.catalog-filters-panel-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.catalog-filters-panel-foot {
  display: flex;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
  border-top: 1px solid #e2e8f0;
  background: inherit;
}
html[data-bs-theme="dark"] .catalog-filters-panel-foot {
  border-top-color: rgba(255,255,255,.08);
}
body.catalog-filters-open {
  overflow: hidden;
}

@media (min-width: 992px) {
  .catalog-sticky-slot { display: none !important; }
}

/* Sit flush under main nav */
body:has(.catalog-hero) .mega-menu-wrapper,
body:has(.catalog-hero) #sticky-menu-wrapper {
  margin-bottom: 0 !important;
}

/* Visible outline buttons — theme .btn-outline-secondary uses light gray text */
.catalog-btn-outline,
.btn.catalog-btn-outline {
  --bs-btn-color: var(--text-main, #0f172a);
  --bs-btn-border-color: color-mix(in srgb, var(--text-main, #0f172a) 22%, transparent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--vr-primary, #0d9488);
  --bs-btn-hover-border-color: var(--vr-primary, #0d9488);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--vr-primary, #0d9488);
  --bs-btn-active-border-color: var(--vr-primary, #0d9488);
  color: var(--text-main, #0f172a) !important;
  background: #fff !important;
  border: 1px solid color-mix(in srgb, var(--text-main, #0f172a) 22%, transparent) !important;
}
.catalog-btn-outline:hover,
.catalog-btn-outline:focus,
.btn.catalog-btn-outline:hover,
.btn.catalog-btn-outline:focus {
  color: #fff !important;
  background: var(--vr-primary, #0d9488) !important;
  border-color: var(--vr-primary, #0d9488) !important;
}

.opp-view-toggle {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}
.catalog-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0 !important;
  border-radius: 0.5rem;
  color: var(--text-main, #0f172a) !important;
  background: #fff !important;
  border: 1px solid color-mix(in srgb, var(--text-main, #0f172a) 18%, transparent) !important;
  line-height: 1;
}
.catalog-view-btn:hover,
.catalog-view-btn:focus {
  color: var(--vr-primary, #0d9488) !important;
  border-color: var(--vr-primary, #0d9488) !important;
  background: #fff !important;
}
.catalog-view-btn.is-active {
  color: #fff !important;
  background: var(--vr-primary, #0d9488) !important;
  border-color: var(--vr-primary, #0d9488) !important;
}
html[data-bs-theme="dark"] .catalog-view-btn {
  color: #e2e8f0 !important;
  background: transparent !important;
  border-color: rgba(255,255,255,.28) !important;
}
html[data-bs-theme="dark"] .catalog-view-btn.is-active {
  color: #fff !important;
  background: var(--vr-primary, #0d9488) !important;
  border-color: var(--vr-primary, #0d9488) !important;
}

html[data-bs-theme="dark"] .catalog-btn-outline,
html[data-bs-theme="dark"] .btn.catalog-btn-outline {
  color: #e2e8f0 !important;
  background: transparent !important;
  border-color: rgba(255,255,255,.28) !important;
}

/* Saved opportunity checkmark */
.js-save-opp {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
}
.js-save-opp .opp-saved-check {
  display: none;
  flex-shrink: 0;
}
.js-save-opp.is-saved .opp-saved-check {
  display: inline-flex;
  color: #16a34a;
}
.js-save-opp.is-saved {
  border-color: color-mix(in srgb, #16a34a 45%, transparent) !important;
  color: #15803d !important;
}

.catalog-hero-mode {
  margin-top: 0.85rem;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-main) 6%, transparent);
}
.catalog-hero-mode .mode-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: #64748b;
}
.catalog-hero-mode .mode-btn.is-active {
  background: #fff;
  color: var(--text-main, #0f172a);
  box-shadow: 0 1px 3px rgba(15,23,42,.08);
}
.catalog-hero-mode .mode-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.opp-results.is-grid .opp-list { display: none; }
.opp-results.is-list .opp-grid { display: none; }
.opp-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .opp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .opp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.opp-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.opp-card {
  position: relative;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--text-main, #0f172a) 10%, transparent);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: none !important;
  transition: border-color .15s ease, background-color .15s ease;
}
.opp-card:hover {
  border-color: color-mix(in srgb, var(--day-primary, var(--vr-primary, #0077c8)) 42%, #cbd5e1);
  box-shadow: none !important;
  background: color-mix(in srgb, var(--day-primary, #0077c8) 3%, #fff);
}
html[data-bs-theme="dark"] .opp-card {
  background: #111827;
  border-color: rgba(255,255,255,.08);
}
html[data-bs-theme="dark"] .opp-card:hover {
  background: #152033;
  border-color: color-mix(in srgb, var(--day-primary, #0077c8) 45%, rgba(255,255,255,.2));
}
.opp-card-grid .opp-card-body {
  position: relative;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.opp-card-top {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
  padding-right: 2.75rem;
}
.opp-card--no-logo .opp-card-top {
  padding-right: 2.75rem;
}
.opp-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  object-fit: cover;
  flex-shrink: 0;
}
.opp-card-logo-fallback {
  display: none;
}
.opp-card-employer { font-size: 0.8rem; color: #64748b; font-weight: 600; }
.opp-card-title { font-size: 1.05rem; margin: 0.15rem 0 0; font-weight: 700; line-height: 1.3; }
.opp-card-title a { color: inherit; text-decoration: none; }
.opp-card-title a:hover { color: var(--day-primary, var(--vr-primary, #0077c8)); }
.opp-card-facts {
  list-style: none;
  margin: 0.4rem 0 0.35rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.opp-card-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}
.opp-card-fact-ico {
  flex: 0 0 auto;
  display: inline-flex;
  margin-top: 0.1rem;
  color: #94a3b8;
}
.opp-card-fact-text {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
}
.opp-card-fact-place {
  color: #64748b;
  font-weight: 500;
}
.opp-card-fact-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #64748b;
  background: color-mix(in srgb, var(--day-primary, #0077c8) 8%, #f1f5f9);
  border: 1px solid color-mix(in srgb, var(--day-primary, #0077c8) 12%, #e2e8f0);
}
.opp-card-fact--pay {
  color: #64748b;
  font-weight: 500;
}
.opp-card-fact--pay .opp-card-fact-text {
  color: #475569;
  font-weight: 600;
}
.opp-card-fact--deadline,
.opp-card-fact--deadline .opp-card-fact-text {
  color: #64748b;
  font-weight: 500;
}
html[data-bs-theme="dark"] .opp-card-fact,
html[data-bs-theme="dark"] .opp-card-fact-place,
html[data-bs-theme="dark"] .opp-card-fact--pay .opp-card-fact-text,
html[data-bs-theme="dark"] .opp-card-fact--deadline .opp-card-fact-text {
  color: #94a3b8;
}
html[data-bs-theme="dark"] .opp-card-fact-tag {
  color: #cbd5e1;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
}
html[data-bs-theme="dark"] .opp-card-fact-ico { color: #64748b; }
.opp-card-summary { color: #64748b; font-size: 0.825rem; margin: 0 0 0.65rem; }
.opp-card-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.opp-card-meta { display: none; }
.opp-card-actions { display: flex; gap: 0.5rem; margin-top: auto; align-items: center; }
.opp-card-actions .btn {
  box-shadow: none !important;
}
.opp-card-actions .btn:hover,
.opp-card-actions .btn:focus {
  box-shadow: none !important;
  filter: brightness(0.97);
}
.opp-card-list {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem 1.1rem;
  padding-right: 3.5rem;
  align-items: flex-start;
}
.opp-card-list.opp-card--no-logo {
  gap: 0;
}
.opp-card-list-main { flex: 1 1 auto; min-width: 0; }
.opp-card-list-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  min-width: 0;
}
@media (max-width: 767.98px) {
  .opp-card-list { flex-direction: column; padding-right: 1.1rem; }
  .opp-card-list-side { align-items: stretch; width: 100%; min-width: 0; }
  .opp-card-list-side .opp-card-actions { width: 100%; }
  .opp-card-list-side .btn-custom { flex: 1 1 auto; }
}

/* Match % ring — top-right on cards */
.opp-match-ring {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.opp-match-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.opp-match-ring-track { stroke: #e2e8f0; }
.opp-match-ring-progress { transition: stroke-dashoffset .35s ease; }
.opp-match-ring-value {
  position: relative;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.opp-match-ring-value small {
  font-size: 0.48rem;
  font-weight: 700;
  margin-left: 0.02rem;
}
.opp-match-ring--strong .opp-match-ring-progress { stroke: var(--vr-primary, #0d9488); }
.opp-match-ring--strong .opp-match-ring-value { color: var(--vr-primary, #0d9488); }
.opp-match-ring--mid .opp-match-ring-progress { stroke: #d97706; }
.opp-match-ring--mid .opp-match-ring-value { color: #b45309; }
.opp-match-ring--low .opp-match-ring-progress { stroke: #94a3b8; }
.opp-match-ring--low .opp-match-ring-value { color: #64748b; }
html[data-bs-theme="dark"] .opp-match-ring-track { stroke: rgba(255,255,255,.12); }
html[data-bs-theme="dark"] .opp-match-ring-value { color: #e2e8f0; }
html[data-bs-theme="dark"] .opp-match-ring--strong .opp-match-ring-value { color: #2dd4bf; }
html[data-bs-theme="dark"] .opp-match-ring--mid .opp-match-ring-value { color: #fbbf24; }
html[data-bs-theme="dark"] .opp-match-ring--low .opp-match-ring-value { color: #94a3b8; }
.opp-match-ring-detail .opp-match-ring {
  position: relative;
  top: auto;
  right: auto;
  width: 3.25rem;
  height: 3.25rem;
  pointer-events: auto;
}
.opp-match-ring-detail .opp-match-ring-value {
  font-size: 0.78rem;
}
.opp-match-ring-detail .opp-match-ring-value small {
  font-size: 0.58rem;
}

/* Live search */
.live-search { position: relative; width: 100%; }
.live-search-input-wrap { position: relative; }
.live-search-spinner {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  border: 2px solid #cbd5e1;
  border-top-color: var(--vr-primary, #0d9488);
  border-radius: 50%;
  animation: liveSearchSpin .7s linear infinite;
  display: none;
}
.live-search.is-loading .live-search-spinner { display: block; }
@keyframes liveSearchSpin { to { transform: translateY(-50%) rotate(360deg); } }
.live-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 1100;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  display: none;
}
.live-search.is-open .live-search-dropdown { display: block; }
html[data-bs-theme="dark"] .live-search-dropdown {
  background: #0f172a;
  border-color: rgba(255,255,255,.1);
}
.live-search-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
}
.live-search-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: #64748b;
  white-space: nowrap;
}
.live-search-tab.is-active {
  background: color-mix(in srgb, var(--vr-primary, #0d9488) 14%, transparent);
  color: var(--vr-primary, #0d9488);
}
.live-search-list { max-height: 360px; overflow: auto; }
.live-search-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f1f5f9;
}
.live-search-item:hover { background: #f8fafc; }
.live-search-thumb {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}
.live-search-type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vr-primary, #0d9488);
}
.live-search-title {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
  color: #0f172a;
}
.live-search-item {
  color: inherit;
  text-decoration: none;
}
.live-search-item:hover .live-search-title {
  color: var(--day-primary, var(--vr-primary, #0077c8));
}
html[data-bs-theme="dark"] .live-search-title {
  color: #e2e8f0;
}
.live-search-meta { font-size: 0.75rem; color: #94a3b8; }
.live-search-empty, .live-search-footer {
  padding: 0.85rem;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}
.live-search-footer a { font-weight: 700; color: var(--vr-primary, #0d9488); text-decoration: none; }

/* Free-user “For you” teaser */
.opp-for-you {
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--vr-primary, #0d9488) 22%, #e5e7eb);
  background:
    radial-gradient(600px 180px at 0% 0%, color-mix(in srgb, var(--vr-primary, #0d9488) 12%, transparent), transparent 70%),
    color-mix(in srgb, var(--vr-primary, #0d9488) 4%, #fff);
}
html[data-bs-theme="dark"] .opp-for-you {
  background:
    radial-gradient(600px 180px at 0% 0%, color-mix(in srgb, var(--vr-primary, #0d9488) 18%, transparent), transparent 70%),
    rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.22);
}

.search-results-section { padding: 1.5rem 0 3rem; }
.search-results-section h2 { font-size: 1.15rem; font-weight: 750; margin-bottom: 1rem; }
.search-result-row {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
  color: inherit;
}
.search-result-row:hover .search-result-title { color: var(--vr-primary, #0d9488); }
.search-result-title { font-weight: 700; margin: 0 0 0.15rem; }
.search-result-meta { font-size: 0.8rem; color: #94a3b8; }
.search-result-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--vr-primary, #0d9488);
}

/* =====================================================
   Opportunity Detail Page
   ===================================================== */

/* Hero card */
.day-opp-hero {
  box-shadow: none !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: color-mix(in srgb, var(--day-primary,#0077c8) 4%, #ffffff) !important;
  border-radius: 16px !important;
  padding: 2.25rem !important;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

/* Hero top row: logo + text + match ring */
.day-opp-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 0;
}

/* Sticky sidebar */
.day-opp-side {
  box-shadow: none !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #f8fafc !important;
  border-radius: 16px !important;
  padding: 1.75rem !important;
  position: sticky !important;
  top: 80px !important;
}

.day-opp-employer {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--vr-theme-color, #0d9488) !important;
  margin-bottom: 0.4rem;
}
.day-opp-title {
  font-size: 1.95rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin-bottom: 1rem !important;
}

/* Status pill */
.day-opp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.day-opp-status-badge--open {
  background-color: color-mix(in srgb, var(--vr-theme-color, #0d9488) 10%, #fff);
  color: var(--vr-theme-color, #0d9488);
}
.day-opp-status-badge--closed {
  background-color: #fee2e2;
  color: #b91c1c;
}
.day-opp-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background-color: currentColor;
}

/* Closed banner */
.day-opp-closed-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Facts grid */
.day-opp-facts {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 1.5rem !important;
  margin: 2rem 0 !important;
  padding: 1.5rem 0 !important;
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}
.day-opp-fact {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.8rem !important;
}
.day-opp-fact-icon-wrap {
  color: var(--vr-theme-color, #0d9488);
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 0.1rem;
}
.day-opp-fact-icon-wrap svg { width: 1.2rem; height: 1.2rem; }
.day-opp-fact-content { display: flex; flex-direction: column; }
.day-opp-fact-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b !important;
  margin-bottom: 0.25rem !important;
}
.day-opp-fact-value {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}

/* Action row */
.day-opp-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.day-opp-actions .btn {
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 0.55rem 1.25rem !important;
  font-size: 0.875rem !important;
  box-shadow: none !important;
}
.day-opp-actions .catalog-btn-outline {
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: #fff !important;
  color: #475569 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.day-opp-actions .catalog-btn-outline:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
}

/* Sidebar rows */
.day-opp-side-row {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  margin-bottom: 0.9rem !important;
}
.day-opp-side-row:last-of-type {
  border-bottom: none;
  margin-bottom: 0 !important;
}
.hover-primary:hover { color: var(--vr-theme-color, #0d9488) !important; }

/* ── Mobile: fix nav overlap + layout ── */
@media (max-width: 991.98px) {
  /*
   * The body uses has-catalog-hero which collapses the mobile-header-spacer to 0.
   * We compensate by giving the section itself a padding-top equal to the nav height.
   */
  .day-opp-detail {
    padding-top: calc(var(--header-height, 4.125rem) + 0.75rem) !important;
  }

  /* Hero card: no extra margin-top needed, section padding handles it */
  .day-opp-hero {
    margin-top: 0 !important;
    padding: 1.25rem !important;
  }

  /* Stack hero row vertically */
  .day-opp-hero-main {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
  }

  .day-opp-logo {
    width: 56px !important;
    height: 56px !important;
  }

  .day-opp-title {
    font-size: 1.45rem !important;
  }

  /* Single-column facts */
  .day-opp-facts {
    grid-template-columns: 1fr !important;
    gap: 1.1rem !important;
    padding: 1.1rem 0 !important;
    margin: 1.25rem 0 !important;
  }

  /* Full-width action buttons */
  .day-opp-actions {
    width: 100%;
    gap: 0.5rem !important;
  }
  .day-opp-actions > * {
    flex: 1 1 auto !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Sidebar un-sticks on mobile */
  .day-opp-side {
    position: static !important;
    top: auto !important;
  }
}

