.wae-explorer {
  --wae-ink: #172034;
  --wae-muted: #586274;
  --wae-navy: #15203a;
  --wae-blue: #456de4;
  --wae-border: #e5e9f1;
  color: var(--wae-ink);
  max-width: 1240px;
  margin: 0 auto 70px;
  padding: 0 20px;
}

.wae-explorer--width-wide { max-width: 1600px; }

.wae-explorer *, .wae-menu-root * { box-sizing: border-box; }

.wae-explorer__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 18px;
  scrollbar-width: thin;
}

.wae-explorer__tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--wae-border);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--wae-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.wae-explorer__tab:hover, .wae-explorer__tab:focus-visible, .wae-explorer__tab.is-active {
  color: #fff;
  background: var(--wae-navy);
  border-color: var(--wae-navy);
}

.wae-explorer__hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 245px;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(26px, 5vw, 56px);
  color: #fff;
  background: radial-gradient(circle at 90% 20%, #4152aa 0, transparent 35%), linear-gradient(125deg, #111a32, #293b68);
}

.wae-explorer__hero::after {
  position: absolute;
  z-index: -1;
  inset: auto -45px -125px auto;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  content: '';
}

.wae-explorer__eyebrow {
  margin: 0 0 10px;
  color: #bdd0ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wae-explorer__hero h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(31px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.wae-explorer__hero p:not(.wae-explorer__eyebrow) {
  max-width: 560px;
  margin: 0;
  color: #e1e8fb;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.55;
}

.wae-explorer__back {
  display: inline-flex;
  margin-top: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.wae-explorer__back:hover, .wae-explorer__back:focus-visible { color: #d7e4ff; }

.wae-explorer--hero-plain .wae-explorer__hero {
  min-height: 0;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--wae-border);
  border-radius: 0;
  color: var(--wae-ink);
  background: transparent;
}
.wae-explorer--hero-plain .wae-explorer__hero::after { display: none; }
.wae-explorer--hero-plain .wae-explorer__eyebrow,
.wae-explorer--hero-plain .wae-explorer__back { color: var(--wae-blue); }
.wae-explorer--hero-plain .wae-explorer__hero h2 { color: var(--wae-ink); }
.wae-explorer--hero-plain .wae-explorer__hero p:not(.wae-explorer__eyebrow) { color: var(--wae-muted); }
.wae-explorer--hero-plain .wae-explorer__hero-image { border-color: var(--wae-border); background: #f3f6ff; }

.wae-explorer__hero-image {
  flex: 0 0 168px;
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.25);
  border-radius: 24px;
  background: rgba(255,255,255,.12);
}

.wae-explorer__hero-image img { width: 100%; height: 100%; object-fit: cover; }

.wae-explorer__intro { margin: 34px 0 18px; }
.wae-explorer__intro h3 { margin: 0 0 5px; font-size: clamp(22px, 2.8vw, 30px); letter-spacing: -.02em; }
.wae-explorer__intro p { margin: 0; color: var(--wae-muted); font-size: 15px; }

.wae-explorer__grid {
  display: grid;
  grid-template-columns: repeat(var(--wae-cols-desktop, 4), minmax(0, 1fr));
  gap: 18px;
}

.wae-explorer__card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--wae-border);
  border-radius: 18px;
  color: var(--wae-ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(20,31,54,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.wae-explorer__card:hover, .wae-explorer__card:focus-visible {
  color: var(--wae-ink);
  transform: translateY(-3px);
  border-color: #b7c8ff;
  box-shadow: 0 14px 28px rgba(20,31,54,.13);
}

.wae-explorer__card:focus-visible, .wae-explorer__tab:focus-visible,
.wae-menu-root a:focus-visible, .wae-explorer__footer a:focus-visible {
  outline: 3px solid #88a8ff;
  outline-offset: 3px;
}

.wae-explorer__card-image {
  display: grid;
  place-items: center;
  aspect-ratio: var(--wae-card-ratio, 1.2);
  overflow: hidden;
  background: linear-gradient(135deg, #e8eeff, #f3f6ff);
}

.wae-explorer__card-image img { width: 100%; height: 100%; object-fit: cover; }

.wae-image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #667bd3;
  font-size: clamp(30px, 5vw, 68px);
  font-weight: 800;
  line-height: 1;
}

.wae-explorer__card-copy { display: block; padding: 16px 18px 18px; }
.wae-explorer__card-copy strong { display: block; font-size: 17px; line-height: 1.3; }
.wae-explorer__card-copy > span { display: flex; justify-content: space-between; margin-top: 7px; color: var(--wae-blue); font-size: 13px; font-weight: 700; }

.wae-explorer--compact .wae-explorer__grid { gap: 12px; }
.wae-explorer--compact .wae-explorer__card { display: flex; align-items: center; min-height: 96px; }
.wae-explorer--compact .wae-explorer__card-image { flex: 0 0 96px; width: 96px; height: 96px; aspect-ratio: auto; }
.wae-explorer--compact .wae-explorer__card-copy { flex: 1 1 auto; min-width: 0; padding: 12px; }
.wae-explorer--compact .wae-explorer__card-copy strong { overflow-wrap: anywhere; font-size: 15px; }

.wae-explorer--gallery .wae-explorer__card { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.wae-explorer--gallery .wae-explorer__card:hover,
.wae-explorer--gallery .wae-explorer__card:focus-visible { box-shadow: none; }
.wae-explorer--gallery .wae-explorer__card-image { border-radius: 16px; }
.wae-explorer--gallery .wae-explorer__card-copy { padding: 12px 2px; }
.wae-explorer--gallery .wae-explorer__card-copy strong { font-size: 18px; }
.wae-explorer__empty { margin: 32px 0; padding: 24px; border-radius: 14px; background: #f5f7fc; color: var(--wae-muted); }

.wae-explorer__products { margin-top: 16px; }
.wae-explorer__pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.wae-explorer__pagination a, .wae-explorer__pagination .current {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--wae-border); border-radius: 10px; text-decoration: none;
}
.wae-explorer__pagination .current { color: #fff; background: var(--wae-navy); }

.wae-explorer__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding: 24px; border-radius: 16px; background: #f3f6ff;
}
.wae-explorer__footer p { margin: 0; font-weight: 700; }
.wae-explorer__footer a { color: #2149c0; font-weight: 800; }

.wae-menu-root .wae-term-item > a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  line-height: 1.25;
  white-space: normal;
}
.wae-menu__image { flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 10px; background: #e9edfa; }
.wae-menu__image img { width: 100%; height: 100%; object-fit: cover; }
.wae-menu__image .wae-image-fallback { font-size: 18px; }

@media (min-width: 850px) {
  .wae-menu-root { position: relative; }
  .wae-menu-size-1 { --wae-menu-width: 320px; }
  .wae-menu-size-2 { --wae-menu-width: 410px; }
  .wae-menu-size-3 { --wae-menu-width: 590px; }
  .wae-menu-size-4 { --wae-menu-width: 775px; }
  .wae-menu-size-5 { --wae-menu-width: 960px; }
  .wae-menu-size-6 { --wae-menu-width: 1145px; }
  .wae-menu-root > .sub-menu {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
    gap: 4px 10px;
    width: min(var(--wae-menu-width, 585px), calc(100vw - 32px));
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #e9edfa;
    border-radius: 16px;
    box-shadow: 0 24px 54px rgba(14, 24, 50, .18);
  }
  .wae-menu-root:hover > .sub-menu,
  .wae-menu-root:focus-within > .sub-menu,
  .wae-menu-root.current-dropdown > .sub-menu { display: grid; }
  .wae-menu-root > .sub-menu > li { min-width: 0; width: auto; }
  .wae-menu-root > .sub-menu > li > a { border: 0; border-radius: 10px; padding: 8px; }
  .wae-menu-root > .sub-menu > li > a:hover { background: #f3f6ff; }

  /* Flatsome may write geometry inline for any Design mode. Keep its reveal
     behavior, while limiting the dynamic dropdown to the viewport. */
  .wp-theme-flatsome .header-wrapper .wae-menu-root > .sub-menu {
    position: absolute !important;
    left: var(--wae-left) !important;
    top: var(--wae-top) !important;
    right: auto !important;
    bottom: auto !important;
    width: min(var(--wae-menu-width, 585px), calc(100vw - 32px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(70vh, var(--wae-max-height, 560px)) !important;
    margin: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 1100px) {
  .wae-explorer__grid { grid-template-columns: repeat(var(--wae-cols-tablet, 2), minmax(0, 1fr)); }
}

@media (max-width: 849px) {
  .wae-explorer { padding: 0 15px; margin-bottom: 45px; }
  .wae-explorer__hero { min-height: 210px; border-radius: 18px; padding: 28px 22px; }
  .wae-explorer__hero-image { flex-basis: 92px; width: 92px; height: 92px; border-radius: 16px; }
  .wae-explorer__grid { gap: 12px; }
  .wae-explorer__card { border-radius: 14px; }
  .wae-explorer__card-copy { padding: 13px; }
  .wae-explorer__card-copy strong { font-size: 15px; }
  .wae-explorer__footer { align-items: flex-start; flex-direction: column; margin-top: 28px; }
}

@media (max-width: 600px) {
  .wae-explorer__grid { grid-template-columns: repeat(var(--wae-cols-mobile, 2), minmax(0, 1fr)); }
  .wae-explorer--compact .wae-explorer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .wae-explorer__hero-image { display: none; }
  .wae-explorer__card-copy > span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .wae-explorer__card { transition: none; }
  .wae-explorer__card:hover { transform: none; }
}
