/* ============================================================
   The Wealth Mosaic, Marketplace directory (Technology & Data)
   Layered on top of styles.css. Page-scoped pieces only.
   ============================================================ */

.mp-page {
  --green: #24A84A;
  --lime: #8BBC3F;
  --teal: #35C0CC;
  --orange: #ED6E23;
  --purple: #6851A2;
  --rose: #DC2467;
  --pale-bg: #FBFBFB;
  --panel: #F6F7F9;
  --soft-line: #ECEEF2;
}

.btn-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--magenta);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease, gap .15s ease;
}
.btn-text:hover {
  color: var(--magenta-2);
  gap: 10px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 14.5px;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 22px;
}
.eyebrow__chev {
  display: inline-block;
  width: 14px; height: 20px;
  background: url("../assets/logos/chevron-mark.svg") center/contain no-repeat;
  flex-shrink: 0;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.crumb {
  background: #fff;
  border-bottom: 1px solid var(--rule-soft);
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
}
.crumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.crumb li + li::before {
  content: "›";
  color: #c0c4cc;
  margin-right: 8px;
}
.crumb a {
  color: var(--muted);
  transition: color .15s ease;
}
.crumb a:hover { color: var(--magenta); }
.crumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   HERO
   ============================================================ */
.mp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 115% at 88% 34%, color-mix(in srgb, var(--mp-accent, #24A84A) 14%, transparent), transparent 58%),
    linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 100%);
  padding: 34px 0 40px;
}
.mp-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 360px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.mp-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.mp-hero__copy h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0 0 18px;
  color: var(--ink);
}
.mp-hero__copy h1 .mp-hero__green,
.mp-hero__copy h1 em {
  font-style: normal;
  color: var(--mp-accent, var(--green));
}
.mp-hero__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 500;
  max-width: 620px;
}
.mp-hero__sub {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 600px;
}
.mp-hero__ctas {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ============================================================
   Category icon, the per-marketplace isometric illustration that
   replaces the old brand wheel in the hero's top-right. Sits as a
   flex item to the right of the copy; floats gently like the wheel did.
   ============================================================ */
.mp-hero__art {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: min(380px, 36vw);
  margin: 0 0 0 auto;
  filter: drop-shadow(0 22px 38px rgba(16, 21, 36, .14));
  animation: mark-float 6s ease-in-out infinite;
}
.mp-hero__art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  .mp-hero__art { animation: none; }
}

/* Mini wheel */
.mp-hero__mark {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  filter: drop-shadow(0 22px 38px rgba(16, 21, 36, .14));
  animation: mark-float 6s ease-in-out infinite;
}
.mp-hero__mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.mp-hero__mark-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 41%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(16, 21, 36, .12), inset 0 0 0 1px rgba(16, 21, 36, .04);
}
.mp-hero__mark-label {
  font-family: var(--font);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.01em;
}
.mp-hero__mark-meta {
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
}
@keyframes mark-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ============================================================
   Marketplace hero, full TWM wheel as background atmosphere.
   The wheel is intentionally oversized and anchored to the right
   side of the hero, not the content grid, so it reads as a page
   context marker rather than a separate illustration.
   ============================================================ */
.mp-hero__wheel {
  position: absolute;
  z-index: 0;
  width: min(700px, 50vw);
  aspect-ratio: 1 / 1;
  right: clamp(-170px, -8vw, -90px);
  top: 53%;
  transform: translateY(-50%);
  overflow: visible;
  opacity: .92;
  pointer-events: none;
}
.mp-hero__wheel .wheel-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  transform: translate(-50%, -50%) rotate(0deg);
  pointer-events: none;
}
.mp-hero__wheel .wheel-brand-host {
  opacity: 1;
  filter: saturate(1.05) contrast(1.02);
}
/* Hide the white center disc, wheel itself is the focal element here,
   and the marketplace title + stats live in the hero copy on the left. */
.mp-hero__wheel .wheel-center {
  display: none !important;
}
/* Keep the rest of the map visible. The green Tech & Data wedge is the
   current marketplace, but the surrounding categories should still read. */
.mp-hero__wheel .wheel-stage.has-selection .wheel-brand-host .brand-marker {
  opacity: .58;
  filter: saturate(.75) contrast(.96);
  transition: opacity .35s ease, filter .35s ease;
}
.mp-hero__wheel .wheel-stage.has-selection .wheel-brand-host .brand-marker.is-selected {
  opacity: 1;
  filter: brightness(1.08) saturate(1.35)
          drop-shadow(0 16px 28px rgba(36, 168, 74, .34));
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.mp-stats {
  background: var(--navy);
  color: #fff;
  padding: 0;
}
.mp-stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.mp-stat {
  padding: 22px 28px;
  border-left: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mp-stat:first-child { border-left: 0; }
.mp-stat__num {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: #fff;
}
.mp-stat__label {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .68);
  letter-spacing: .005em;
}

/* ============================================================
   CONTROLS + FILTER BAR (merged single row)
   ============================================================ */
.mp-bar {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 22;
}
.mp-bar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.mp-bar__sep {
  width: 1px;
  height: 22px;
  background: var(--rule);
  margin: 0 2px;
  flex-shrink: 0;
}
.mp-bar .mp-search { flex: 1 1 220px; max-width: none; }
.mp-bar .mp-sort  { margin-left: auto; }
.mp-bar .mp-filters__clear { padding: 8px 12px; }

/* Showing-dropdown variant inside the merged bar */
.mp-fb--view .mp-fb__kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 2px;
}
.mp-fb__menu--view {
  display: grid;
  gap: 4px;
  min-width: 240px;
}
.mp-fb__menu--view .mp-view {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 12px;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}
.mp-fb__menu--view .mp-view:hover { background: var(--panel); }
.mp-fb__menu--view .mp-view.is-active {
  background: var(--ink);
  color: #fff;
}
.mp-fb__menu--view .mp-view.is-active .mp-view__count {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

/* legacy aliases kept so other rules don't break */
.mp-controls {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  display: none; /* replaced by .mp-bar */
}
.mp-controls__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}
.mp-views {
  display: inline-flex;
  background: var(--panel);
  padding: 4px;
  border-radius: 100px;
}
.mp-view {
  background: transparent;
  border: 0;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s ease, color .15s ease;
}
.mp-view:hover { color: var(--ink); }
.mp-view__count {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  background: rgba(16, 21, 36, .04);
  padding: 2px 8px;
  border-radius: 100px;
  transition: background .15s ease, color .15s ease;
}
.mp-view.is-active {
  background: var(--ink);
  color: #fff;
}
.mp-view.is-active .mp-view__count {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.mp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 8px 18px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  transition: background .15s ease, border-color .15s ease;
  color: var(--muted);
}
.mp-search:focus-within {
  background: #fff;
  border-color: var(--magenta);
  color: var(--ink);
}
.mp-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.mp-search input::placeholder { color: var(--muted); }

.mp-sort label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}
.mp-sort select {
  border: 1px solid var(--rule);
  background: #fff var(--select-caret) right 14px center / 10px 6px no-repeat;
  appearance: none;
  -webkit-appearance: none;
  min-height: 34px;
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  line-height: 1.2;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(16, 21, 36, .02);
}
.mp-sort select:hover {
  border-color: #d5dae3;
}
.mp-sort select:focus {
  outline: 2px solid rgba(44, 86, 224, .16);
  outline-offset: 2px;
  border-color: #b9c2d2;
}

/* ============================================================
   MAIN, sidebar + content
   ============================================================ */
.mp-main {
  background: var(--pale-bg);
  padding: 32px 0 60px;
}
.mp-main__inner {
  display: block;
}

/* ============================================================
   Horizontal filter bar (replaces the old sidebar), sticky strip
   with details/summary dropdowns, one per filter group.
   ============================================================ */
/* legacy, merged into .mp-bar; keep selectors so any leftover markup
   on other pages still has reasonable layout. */
.mp-filterbar {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  display: none;
}
.mp-filterbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.mp-filterbar__groups {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mp-fb {
  position: relative;
}
.mp-fb > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 7px 14px 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  letter-spacing: -.005em;
  transition: background .15s ease, border-color .15s ease;
}
.mp-fb > summary::-webkit-details-marker { display: none; }
.mp-fb > summary::after {
  content: "";
  width: 8px; height: 5px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  margin-left: 2px;
  opacity: .55;
  transition: transform .15s ease;
}
.mp-fb[open] > summary::after { transform: rotate(180deg); }
.mp-fb > summary:hover { background: #fff; border-color: #c5cad3; }
.mp-fb[open] > summary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.mp-fb[open] > summary::after { background: #fff; }
.mp-fb__count {
  font-size: 10.5px;
  font-weight: 700;
  background: var(--magenta);
  color: #fff;
  padding: 1px 7px;
  border-radius: 100px;
  margin-left: -2px;
}
.mp-fb[open] .mp-fb__count {
  background: #fff;
  color: var(--ink);
}
.mp-fb__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px;
  min-width: 280px;
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  box-shadow: 0 20px 40px -12px rgba(16, 21, 36, .16);
}
.mp-fb__menu label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--ink);
}
.mp-fb__menu label:hover { background: var(--panel); }
.mp-fb__menu label span {
  margin-left: auto;
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.mp-fb__menu input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--magenta);
  flex-shrink: 0;
  position: relative;
  top: 2px;
}
.mp-fb__menu--pills {
  flex-direction: row;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mp-fb__menu--pills button {
  background: var(--panel);
  border: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  font-family: inherit;
}
.mp-fb__menu--pills button:hover { border-color: #c5cad3; color: var(--ink); }
.mp-fb__menu--pills button.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.mp-filters__clear {
  background: transparent;
  border: 0;
  color: var(--magenta);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
}
.mp-filters__clear:hover { text-decoration: underline; }

/* Hide the (now-unused) old sidebar markup if it still exists somewhere. */
.mp-filters {
  display: none;
}

.mp-filter-group {
  border-top: 1px solid var(--soft-line);
  padding: 16px 0;
}
.mp-filter-group:first-of-type { border-top: 0; }
.mp-filter-group h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.mp-filter-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mp-filter-group label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  transition: color .15s ease;
}
.mp-filter-group label:hover { color: var(--magenta); }
.mp-filter-group label span {
  margin-left: auto;
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.mp-filter-group input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--magenta);
  flex-shrink: 0;
  position: relative;
  top: 2px;
}
.mp-filter-more a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--magenta);
}
.mp-filter-more a:hover { text-decoration: underline; }
.mp-theme-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mp-theme-pills li { margin: 0; }
.mp-theme-pills button {
  background: var(--panel);
  border: 1px solid var(--rule);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.mp-theme-pills button:hover { border-color: #c5cad3; color: var(--ink); }
.mp-theme-pills button.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Content area */
.mp-content {
  min-width: 0;
}
.mp-active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  font-size: 12.5px;
}
.mp-active-filters__label {
  font-weight: 600;
  color: var(--ink-soft);
}
.mp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 5px 6px 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}
.mp-chip button {
  background: var(--ink);
  color: #fff;
  border: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.mp-chip button:hover { background: var(--magenta); }

/* Section heads (reusable) */
.mp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 18px;
  gap: 16px;
}
.mp-section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.mp-section-head__chev {
  display: inline-block;
  width: 14px; height: 20px;
  background: url("../assets/logos/chevron-mark.svg") center/contain no-repeat;
  flex-shrink: 0;
}
.mp-section-head .view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--magenta);
}
.mp-section-head .view-all:hover { color: var(--magenta-2); }
.mp-section-head__meta {
  font-size: 12.5px;
  color: var(--muted);
}
.mp-section-head__meta strong { color: var(--ink); font-weight: 700; }

.solutions-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: -4px 0 18px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.solutions-alpha__link {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: background .15s ease, color .15s ease, opacity .15s ease;
}
a.solutions-alpha__link:hover {
  background: var(--ink);
  color: #fff;
}
.solutions-alpha__link.is-empty {
  color: var(--muted);
  opacity: .34;
}

/* Featured row */
.featured-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}

/* ============================================================
   Featured Businesses CAROUSEL, shows 3 cards at a time, with
   prev/next arrows and dots beneath. Viewport hides overflow;
   track translates by -33.333% per page.
   ============================================================ */
.featured-carousel {
  position: relative;
  margin-bottom: 12px;
}
.featured-viewport {
  overflow: hidden;
  border-radius: 12px;
  padding: 2px;
  margin: 0 -2px;
}
.featured-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 28px) / 3); /* 3 cards visible, 14px gap × 2 */
  gap: 14px;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.featured-track .featured-card {
  height: 100%;
}
.featured-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -10px rgba(16, 21, 36, .18);
  z-index: 2;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  padding-bottom: 3px;
}
.featured-nav:hover {
  background: var(--magenta);
  color: #fff;
  border-color: var(--magenta);
}
.featured-nav--prev { left: -16px; }
.featured-nav--next { right: -16px; }
.featured-nav[disabled] {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}
.featured-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.featured-card:hover {
  border-color: #c5cad3;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -16px rgba(16, 21, 36, .14);
}
.featured-card__logo {
  min-height: 42px;
  display: flex;
  align-items: center;
  margin: 0 96px 8px 0;
}
.featured-card__logo img {
  max-height: 34px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}
.featured-card__logo--wordmark span {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
}
.featured-card__pins {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.featured-card__pin {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--magenta);
  background: rgba(230, 23, 90, .08);
  padding: 3px 8px;
  border-radius: 4px;
}
.featured-card__pin--sponsored {
  color: #fff;
  background: var(--ink);
}

/* Tier badges, FREE / PREMIUM. Used on featured cards + listing cards. */
.tier-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.tier-badge--free {
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--rule);
}
.tier-badge--premium {
  color: #fff;
  background: linear-gradient(135deg, #b8893a 0%, #d6a64a 55%, #8e6926 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset;
}

/* Premium featured card gets a thin gold rule + faint glow */
.featured-card--premium {
  border-color: rgba(184, 137, 58, .35);
  background:
    linear-gradient(180deg, rgba(214, 166, 74, .04), transparent 80px),
    #fff;
}
.featured-card--premium:hover {
  border-color: rgba(184, 137, 58, .55);
  box-shadow: 0 16px 36px -18px rgba(184, 137, 58, .25);
}
.featured-card h3 {
  display: none;
}
.featured-card__cats {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
  letter-spacing: .005em;
}
.featured-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}
.featured-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--soft-line);
}
.featured-card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

/* Solutions grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.solutions-grid--alpha {
  display: block;
}
.solutions-letter {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--rule-soft);
}
.solutions-letter:first-child {
  padding-top: 8px;
  border-top: 0;
}
.solutions-letter__marker {
  align-self: start;
  position: sticky;
  top: 88px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding-top: 2px;
}
.solutions-letter__marker img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(16, 21, 36, .08));
}
.solutions-letter__fallback {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 18px 32px -24px rgba(16, 21, 36, .24);
}
.solutions-letter__count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}
.solutions-letter__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sol-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
  position: relative;
}
.sol-card:hover {
  border-color: var(--magenta);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(16, 21, 36, .14);
}

/* Per-card tier indicator (FREE / PREMIUM), top-right corner */
.sol-card__tier {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 3px 7px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.sol-card__tier--free {
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--rule);
}
.sol-card__tier--premium {
  color: #fff;
  background: linear-gradient(135deg, #b8893a 0%, #d6a64a 55%, #8e6926 100%);
}

/* Premium listing card: gold-tinted border + faint inner accent */
.sol-card--premium {
  border-color: rgba(184, 137, 58, .35);
  background:
    linear-gradient(180deg, rgba(214, 166, 74, .035), transparent 60px),
    #fff;
}
.sol-card--premium::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #d6a64a, #8e6926);
  border-radius: 10px 0 0 10px;
  opacity: .85;
}
.sol-card--premium:hover {
  border-color: rgba(184, 137, 58, .65);
  box-shadow: 0 12px 28px -16px rgba(184, 137, 58, .25);
}
.sol-card__logo {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
  background: #6b7280;       /* default; per-hue overrides below */
  letter-spacing: -.01em;
  flex-shrink: 0;
}
/* Per-hue placeholder backgrounds, cycles through brand palette */
.sol-card__logo[data-hue="0"] { background: linear-gradient(135deg, #2c56e0, #1d3fa8); }
.sol-card__logo[data-hue="1"] { background: linear-gradient(135deg, #e6175a, #b81247); }
.sol-card__logo[data-hue="2"] { background: linear-gradient(135deg, #24A84A, #178737); }
.sol-card__logo[data-hue="3"] { background: linear-gradient(135deg, #6851A2, #4d3a85); }
.sol-card__logo[data-hue="4"] { background: linear-gradient(135deg, #ED6E23, #c25510); }
.sol-card__logo[data-hue="5"] { background: linear-gradient(135deg, #35C0CC, #2596a0); }
.sol-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.sol-card__desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.sol-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.sol-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--ink-soft);
  background: var(--panel);
  padding: 4px 9px;
  border-radius: 100px;
}
.sol-card__by {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: auto;
}
.sol-card__by strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   PROFILE TEMPLATES, 2×2 demo grid (Free/Premium × Business/Solution)
   ============================================================ */
.tpl-intro {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 0 18px;
}
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}
.tpl-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tpl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -18px rgba(16, 21, 36, .18);
}
.tpl-card--free:hover { border-color: #c5cad3; }
.tpl-card--premium:hover { border-color: rgba(184, 137, 58, .55); }
.tpl-card--premium {
  background:
    linear-gradient(180deg, rgba(214, 166, 74, .05), transparent 100px),
    #fff;
  border-color: rgba(184, 137, 58, .35);
}
.tpl-card--premium::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #d6a64a, #8e6926);
}
.tpl-card__head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tpl-card__tier {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.tpl-card__tier--free {
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--rule);
}
.tpl-card__tier--premium {
  color: #fff;
  background: linear-gradient(135deg, #b8893a 0%, #d6a64a 55%, #8e6926 100%);
}
.tpl-card__kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tpl-card h3 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.005em;
}
.tpl-card > p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.tpl-card__feats {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.tpl-card__feats li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.tpl-card__feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 1.8px solid var(--magenta);
  border-bottom: 1.8px solid var(--magenta);
  transform: rotate(-45deg);
}
.tpl-card--premium .tpl-card__feats li::before {
  border-color: #b8893a;
}
.tpl-card__sample {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--magenta);
  transition: gap .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tpl-card:hover .tpl-card__sample {
  gap: 10px;
}
.tpl-card--premium .tpl-card__sample {
  color: #8e6926;
}

/* Pager (mp-scoped) */
.mp-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 36px;
}
.mp-pager__num, .mp-pager__nav {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.mp-pager__num:hover, .mp-pager__nav:hover {
  border-color: #c5cad3;
  background: var(--panel);
}
.mp-pager__num.is-active {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #fff;
}
.mp-pager__num.is-active:hover {
  background: var(--magenta-2);
  border-color: var(--magenta-2);
}
.mp-pager__ellipsis {
  padding: 0 4px;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================================
   RELATED MARKETPLACES
   ============================================================ */
.mp-related {
  padding: 70px 0;
  background: #fff;
  border-top: 1px solid var(--rule-soft);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.related-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.related-card:hover {
  border-color: #c5cad3;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -14px rgba(16, 21, 36, .12);
}
.related-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 4px;
}
/* Illustration variant — replaces the small colored dot with a tinted
   square block holding the marketplace illustration. Uses --accent on
   the card to color-mix the tile background. */
.related-card--illus {
  padding-top: 0;
  overflow: hidden;
}
.related-card--illus .related-card__illus {
  margin: 0 -20px 14px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent, var(--magenta)) 14%, white),
    #fff);
  display: grid;
  place-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--soft-line);
}
.related-card--illus .related-card__illus img {
  max-width: 70%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(16, 21, 36, .12));
  transition: transform .3s ease;
}
.related-card--illus:hover {
  border-color: var(--accent, var(--magenta));
}
.related-card--illus:hover .related-card__illus img {
  transform: scale(1.05);
}

/* Logo block — replaces the small colored dot. White card with the
   provider's logo, soft border and lift on hover. */
.related-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  padding: 8px;
  margin-bottom: 8px;
  box-shadow: 0 6px 14px -8px rgba(16, 21, 36, .14);
}
.related-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.related-card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  align-self: center;
}
.related-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.related-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1;
}
.related-card__meta {
  display: flex;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--soft-line);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   STUCK?, sticky help bubble + panel
   ============================================================ */
.stuck {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  background: var(--magenta);
  color: #fff;
  border: 0;
  border-radius: 100px;
  padding: 14px 22px 14px 18px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  box-shadow: 0 16px 36px -10px rgba(230, 23, 90, .45);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.stuck:hover {
  background: var(--magenta-2);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(230, 23, 90, .55);
}
.stuck__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  margin-right: 6px;
  display: inline-block;
  box-shadow: 0 0 8px rgba(255, 255, 255, .8);
  animation: stuckPulse 1.8s ease-in-out infinite;
}
@keyframes stuckPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(.85); }
}
.stuck__sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: .85;
}
.stuck.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.stuck-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--rule);
  padding: 22px 22px 24px;
  box-shadow: 0 30px 60px -20px rgba(16, 21, 36, .35);
  z-index: 61;
  transform-origin: bottom right;
  animation: stuckPanelIn .22s ease;
}
.stuck-panel[hidden] { display: none; }
@keyframes stuckPanelIn {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.stuck-panel__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  background: var(--panel);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
}
.stuck-panel__close:hover {
  background: var(--ink);
  color: #fff;
}
.stuck-panel h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.stuck-panel > p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.stuck-form {
  display: grid;
  gap: 12px;
}
.stuck-form label {
  display: grid;
  gap: 6px;
}
.stuck-form span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.stuck-form input,
.stuck-form textarea {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  outline: 0;
  resize: vertical;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.stuck-form input:focus,
.stuck-form textarea:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(230, 23, 90, .15);
}
.stuck-form button {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}
.stuck-form__small {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.stuck-form__small a {
  color: var(--magenta);
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .mp-hero {
    padding: 34px 0 38px;
  }
  .mp-hero__copy {
    max-width: 690px;
  }
  .mp-hero__wheel {
    max-width: none;
    width: min(600px, 68vw);
    right: -210px;
    top: 60%;
    opacity: .45;
  }
  .mp-hero__art { width: min(300px, 40vw); }
  .mp-stats__grid { grid-template-columns: repeat(3, 1fr); }
  .mp-stat:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .mp-stat:nth-child(4) { border-left: 0; }
  .mp-main__inner { grid-template-columns: 1fr; }
  .mp-filters { position: static; max-height: none; }
  .featured-row { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-letter { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; }
  .solutions-letter__marker img { width: 64px; height: 64px; }
  .solutions-letter__fallback { width: 62px; height: 62px; font-size: 36px; }
  .solutions-letter__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-controls__inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mp-search { max-width: none; }
  .mp-sort { align-self: end; }
}
@media (max-width: 640px) {
  .mp-hero {
    padding: 32px 0 36px;
  }
  .mp-hero__inner {
    min-height: auto;
  }
  .mp-hero__art { display: none; }
  .mp-hero__copy h1 {
    font-size: clamp(34px, 11vw, 44px);
  }
  .mp-hero__wheel {
    width: 520px;
    right: -370px;
    top: 76%;
    opacity: .28;
  }
  .mp-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .mp-stat:nth-child(3) { border-left: 0; }
  .mp-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .featured-row { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solutions-alpha { gap: 4px; padding: 7px; }
  .solutions-alpha__link { width: 25px; height: 25px; font-size: 11px; }
  .solutions-letter {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 0;
  }
  .solutions-letter__marker {
    position: static;
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    gap: 10px;
  }
  .solutions-letter__marker img { width: 58px; height: 58px; }
  .solutions-letter__fallback { width: 54px; height: 54px; font-size: 32px; }
  .solutions-letter__count { text-align: left; }
  .solutions-letter__cards { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: 1fr; }
  .mp-pager__num:nth-of-type(n+4) { display: none; }
  .stuck { right: 12px; bottom: 12px; padding: 12px 18px; }
  .stuck-panel { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .stuck__dot, .mw__pointer { animation: none; }
  .featured-card, .sol-card, .related-card { transition: none; }
}

/* ====================================================================
   LISTING REDESIGN
   - Solutions ↔ Businesses segmented toggle
   - Category-grouped, paid-first large tiles (sponsored = navy)
   - "Wealth Mosaic Verified" accreditation badge
   - Product-Hunt-style sponsored ad slots
   - Compact free listings collected at the bottom
   ==================================================================== */

/* Segmented Solutions ↔ Businesses toggle (primary view control) */
.mp-toggle {
  display: inline-flex;
  background: #f1f3f7;
  border: 1px solid var(--rule, #e6e8ee);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.mp-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.mp-toggle__btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 21, 36, .12);
}
.mp-toggle__count { font-size: 11px; font-weight: 700; color: var(--muted); }
.mp-toggle__btn.is-active .mp-toggle__count { color: var(--mp-accent, var(--green)); }

/* View panes */
.mp-view-pane[hidden] { display: none; }

/* Category section */
.mp-cat { margin: 0 0 30px; }
.mp-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.mp-cat__head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-cat__meta { font-size: 12.5px; color: var(--muted); }

/* Category grid — paid tiles in 2–3 rows (no horizontal scroll) so the
   featured/sponsored block fills the prime space. Sponsored tiles (navy)
   sit mixed into the same grid, not as a separate banner. */
.mp-cat__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Paid listing tile (featured / sponsored) — large + prominent */
.mp-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--rule, #e6e8ee);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.mp-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -16px rgba(16, 21, 36, .18);
  border-color: #c9ced8;
}
.mp-tile__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.mp-tile__pins {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.mp-tile__name { margin: 2px 0 0; font-size: 16px; font-weight: 700; line-height: 1.25; }
.mp-tile__desc { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); flex: 1; }
.mp-tile__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-tile__by { font-size: 12px; color: var(--muted); }
.mp-tile__by strong { color: var(--ink); font-weight: 600; }
.mp-tile__logo {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--rule, #e6e8ee);
  display: grid;
  place-items: center;
  padding: 6px;
}
.mp-tile__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Featured: white card with an accent top edge + faint accent wash so paid
   listings clearly outrank the free ones below. */
.mp-tile--featured {
  border-top: 3px solid var(--mp-accent, var(--green));
  background: linear-gradient(180deg, color-mix(in srgb, var(--mp-accent, var(--green)) 5%, #fff), #fff);
}
/* Sponsored: navy tile that dominates the grid. */
.mp-tile--sponsored {
  background: var(--navy);
  border-color: transparent;
  color: #fff;
}
.mp-tile--sponsored .mp-tile__desc { color: rgba(255, 255, 255, .74); }
.mp-tile--sponsored .mp-tile__by { color: rgba(255, 255, 255, .58); }
.mp-tile--sponsored .mp-tile__by strong { color: #fff; }
.mp-tile--sponsored .sol-cat { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); border-color: transparent; }
.mp-tile--sponsored:hover { box-shadow: 0 18px 40px -16px rgba(8, 13, 26, .55); }
.mp-tile--sponsored .mp-verified,
.mp-tile--sponsored .mp-verified svg { color: #7ed3f0; }

/* Tier + accreditation badges */
.mp-pin {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.mp-pin--featured {
  background: color-mix(in srgb, var(--mp-accent, var(--green)) 15%, #fff);
  color: var(--mp-accent, var(--green));
}
.mp-pin--sponsored { background: #ffd84d; color: #3a2d00; }
.mp-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--verify, #1487b8);
}
.mp-verified svg { color: var(--verify, #1487b8); flex: 0 0 auto; }

/* Product-Hunt-style sponsored ad slot, interspersed between rows */
.mp-ad {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 26px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--mp-accent, var(--green)) 10%, #fff), #fff);
  border: 1px dashed color-mix(in srgb, var(--mp-accent, var(--green)) 38%, #d8dbe3);
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mp-ad:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(16, 21, 36, .16); }
.mp-ad__tag {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mp-ad .sol-card__logo { width: 48px; height: 48px; flex: 0 0 auto; }
.mp-ad__body { flex: 1; min-width: 0; }
.mp-ad__body h4 { margin: 0 0 2px; font-size: 15px; font-weight: 700; }
.mp-ad__body p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.mp-ad__cta { font-size: 13px; font-weight: 700; color: var(--mp-accent, var(--green)); white-space: nowrap; }

/* Free listings, compact, collected at the bottom */
.mp-more {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--soft-line, #eef0f4);
}
.mp-more__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mp-mini {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--rule, #e6e8ee);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.mp-mini:hover { border-color: #c9ced8; transform: translateY(-2px); }
.mp-mini .sol-card__logo { width: 38px; height: 38px; font-size: 17px; flex: 0 0 auto; }
.mp-mini__body { min-width: 0; }
.mp-mini__name { margin: 0 0 2px; font-size: 14px; font-weight: 700; }
.mp-mini__desc { margin: 0 0 4px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.mp-mini__by { font-size: 11.5px; color: var(--muted); }
.mp-mini__cat { color: var(--mp-accent, var(--green)); font-weight: 600; }

/* Explore other directories — CTA strip */
.mp-related__cta {
  margin-top: 26px;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.mp-related__cta-copy h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.mp-related__cta-copy p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .72); max-width: 560px; }
.mp-related__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .mp-cat__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mp-cat__grid { grid-template-columns: 1fr; }
  .mp-more__grid { grid-template-columns: 1fr; }
  .mp-ad { flex-wrap: wrap; }
  .mp-toggle { width: 100%; }
  .mp-toggle__btn { flex: 1; justify-content: center; }
  .mp-related__cta { flex-direction: column; align-items: flex-start; }
}
