/* ─────────────────────────────────────────────────────────────
   Techwish — Mega menu panel (Salient Global Section, Raw HTML).
   Markup: a single .tw-mm wrapper containing .tw-mm__col link columns
   and one .tw-mm__promo card. See mega-menus.wpbakery.md.
   Loaded site-wide (small) so it applies wherever Salient renders the
   global section as a nav dropdown.
   ───────────────────────────────────────────────────────────── */

/* Panel grid: link columns + promo. Desktop = auto columns + wide promo. */
.tw-mm {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr)) 1.4fr;
  gap: 32px;
  align-items: start;
  padding: 28px 4px;
  max-width: var(--tw-container-max, 1320px);
  margin: 0 auto;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
}
/* When a category has 3 link columns the promo still sits last. */
.tw-mm.tw-mm--3col {
  grid-template-columns: repeat(3, minmax(130px, 1fr)) 1.4fr;
}

/* ── Link columns ── */
.tw-mm__col { min-width: 0; }
.tw-mm__heading {
  display: block;
  font-family: var(--tw-mono, "IBM Plex Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tw-mint-600, #1FB37C);
  margin-bottom: 12px;
}
.tw-mm__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tw-mm__links li { margin: 0; padding: 0; }
.tw-mm__links a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--tw-ink-2, #2A2F2C);
  text-decoration: none;
  position: relative;
  transition: color var(--tw-dur-fast, .15s) ease, padding-left var(--tw-dur-fast, .15s) ease;
}
.tw-mm__links a:hover {
  color: var(--tw-mint-600, #1FB37C);
  padding-left: 8px;
}
.tw-mm__links a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1.5px;
  background: var(--tw-mint, #2DCE92);
  transform: translateY(-50%);
  transition: width var(--tw-dur-fast, .15s) ease;
}
.tw-mm__links a:hover::before { width: 4px; }

/* ── Promo card ── */
.tw-mm__promo {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--tw-radius-lg, 18px);
  background: linear-gradient(180deg, #fff 0%, var(--tw-mint-050, #F1FAF5) 100%);
  border: 1px solid var(--tw-line-soft, #ECEFED);
  text-decoration: none;
  color: var(--tw-ink, #0B0F0D);
  transition: box-shadow var(--tw-dur-fast, .15s) ease, border-color var(--tw-dur-fast, .15s) ease;
}
.tw-mm__promo:hover {
  box-shadow: var(--tw-shadow-hover, 0 18px 40px -18px rgba(11,15,13,.18));
  border-color: var(--tw-mint, #2DCE92);
}
.tw-mm__promo-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--tw-radius-md, 10px);
  overflow: hidden;
  margin-bottom: 14px;
  /* Branded placeholder when no <img> supplied. */
  background:
    repeating-linear-gradient(100deg, transparent 0 22px, rgba(45,206,146,.12) 22px 24px),
    linear-gradient(135deg, var(--tw-mint-050, #F1FAF5), var(--tw-mint-100, #DFF6EC));
}
.tw-mm__promo-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.tw-mm__promo-eyebrow {
  font-family: var(--tw-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tw-mint-600, #1FB37C);
  margin-bottom: 6px;
}
.tw-mm__promo-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: var(--tw-ink, #0B0F0D);
  margin-bottom: 6px;
}
.tw-mm__promo-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--tw-mute, #6B7470);
  margin-bottom: 14px;
}
.tw-mm__promo-cta {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  font-size: 14px;
  color: #062319;
  background: var(--tw-mint, #2DCE92);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background var(--tw-dur-fast, .15s) ease;
}
.tw-mm__promo:hover .tw-mm__promo-cta {
  background: var(--tw-mint-600, #1FB37C);
}

/* ── Responsive ── */
@media (max-width: 1000px) {
  .tw-mm,
  .tw-mm.tw-mm--3col {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 0;
  }
  /* Promo spans full width below the columns. */
  .tw-mm__promo {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 16px;
    align-items: center;
  }
  .tw-mm__promo-media {
    width: 180px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
}
@media (max-width: 600px) {
  .tw-mm,
  .tw-mm.tw-mm--3col {
    grid-template-columns: 1fr;
  }
  .tw-mm__promo { flex-direction: column; }
  .tw-mm__promo-media { width: 100%; }
}
