/* ─────────────────────────────────────────────────────────────
   Techwish — rich mega menu panel (matches Wellness mockup).
   Layout (desktop):
     ┌─────────────────────────────────────────────────────────┐
     │ HERO (left)  │ CATEGORIES grid 3×2  │ BESTSELLERS (right) │
     ├─────────────────────────────────────────────────────────┤
     │ GUIDES (left ~60%)              │ USP icons (right ~40%) │
     └─────────────────────────────────────────────────────────┘
   ───────────────────────────────────────────────────────────── */

/* Dropdown wrappers (GP / Techwish header) — full width, no clip. */
.tw-megamenu-dropdown,
.tw-megamenu-dropdown__panel {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}
.tw-megamenu-dropdown .tw-mm {
  max-height: calc(100vh - var(--tw-megamenu-top, var(--tw-chrome-top, 76px)) - 32px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Baseline reset inside the panel — parent nav CSS must not leak in. */
.tw-mm,
.tw-mm * {
  box-sizing: border-box;
}
.tw-mm ul,
.tw-mm ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  border: 0 !important;
  background: none !important;
}
/* Default ul/ol to block, but allow `.tw-mm__guides-list` (grid) and any
   future flex/grid lists declared explicitly in their own rules. */
.tw-mm ul:not([class*="-list"]):not([class*="-links"]),
.tw-mm ol {
  display: block;
}
/* Salient adds a 1px bottom border on some mega-menu list wrappers
   (.sf-mega-section ul, .menu-item) — strip every variant inside our
   panel. The intentional separator stays on .tw-mm__cat-head only. */
.tw-mm ul.sub-menu,
.tw-mm .sf-mega-section,
.tw-mm .sf-mega-section ul,
.tw-mm li.menu-item,
.tw-mm .menu-item-mega-block {
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.tw-mm li:not(.tw-mm__best-item) {
  display: block !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  line-height: normal;
  list-style: none !important;
}
.tw-mm a:not(.tw-mm__btn):not(.tw-mm__best-viewall) {
  display: inline-block;
  float: none !important;
  text-decoration: none !important;
  background: none !important;
  border: 0 !important;
  padding: 0;
  margin: 0;
  color: inherit;
  line-height: 1.4;
  white-space: normal;
  font-size: inherit;
  text-transform: none;
  letter-spacing: 0;
}
/* Sub-links use the compact stack above — not generic anchor spacing. */
.tw-mm .tw-mm__cat-links a {
  display: block !important;
  line-height: 1.2 !important;
}
.tw-mm a::before,
.tw-mm a::after {
  /* Kill Salient's animated underline pseudos that bleed into our links. */
  display: none !important;
  content: none !important;
  background: none !important;
}

.tw-mm {
  /* Symmetric paddings — top/bottom = left/right. Kept small (10px)
     so the whole panel fits in a 13" MacBook viewport (~800px) under
     the sticky Salient header. */
  --tw-mm-pad: 10px;
  --tw-mm-card-bg: #FFFFFF;
  --tw-mm-line: var(--tw-line-soft, #ECEFED);
  --tw-mm-radius: 12px;

  position: relative;       /* anchor the bottom fade hint */
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--tw-mm-pad);
  font-family: var(--tw-display, "Space Grotesk", system-ui, sans-serif);
  color: var(--tw-ink, #0B0F0D);
  background: #ffffff;
  /* Use almost the full Salient mega width — header on 13"+ is wider
     than 1180. Cap a touch under 1400 so it sits under typical 1440px
     viewports without horizontal scroll. */
  max-width: 1360px;
  margin: 0 auto;

  /* For tall panels (6+ categories) cap to viewport height minus the
     sticky Salient header. Without this, Pets / Smart Home overflow
     and the bottom strip (guides + USPs) sits below the fold. */
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  /* Mask out the bottom edge with a soft fade so users see the panel
     is scrollable. Works in tandem with the ::after gradient below. */
  scrollbar-gutter: stable;
}
/* Mint scrollbar — narrow, branded. */
.tw-mm::-webkit-scrollbar       { width: 8px; }
.tw-mm::-webkit-scrollbar-track { background: transparent; }
.tw-mm::-webkit-scrollbar-thumb {
  background: var(--tw-mint-050, #F1FAF5);
  border-radius: 999px;
}
.tw-mm:hover::-webkit-scrollbar-thumb {
  background: var(--tw-mint, #2DCE92);
}
/* Bottom fade-out hint — always visible if content overflows because
   we paint inside a sticky pseudo-element pinned to the panel's
   visible bottom edge (position: sticky on a flex column). */
.tw-mm__scroll-hint {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  margin: -36px 0 0;          /* pull it up to overlay the last row */
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 60%, #fff 100%);
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}
.tw-mm__scroll-hint::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--tw-mint, #2DCE92);
  /* down-arrow icon as a CSS mask */
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062319' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat center / 14px 14px,
            linear-gradient(#000, #000);
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062319' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat center / 14px 14px,
        linear-gradient(#000, #000);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  box-shadow: 0 4px 12px rgba(45,206,146,.35);
  animation: tw-mm-bounce 1.4s ease-in-out infinite;
}
@keyframes tw-mm-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}
/* Hide the hint once user has scrolled to the bottom — done via JS
   adding `is-bottom` to the panel; falls back to always-visible if
   JS is off. */
.tw-mm.is-bottom .tw-mm__scroll-hint { opacity: 0; }

/* ── TOP ROW: hero | cats | bestsellers ─────────────────────────── */
.tw-mm__top {
  display: grid;
  /* Hero | categories | bestsellers — third column wide enough for names + price. */
  grid-template-columns: 320px minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: stretch;
}
/* With 4 or fewer subcategories the center grid leaves spare room — widen hero,
   keep bestsellers column at 300px. */
.tw-mm__top--wide-hero {
  grid-template-columns: 420px minmax(0, 1fr) 300px;
}

/* ===== HERO — compact version, hugs panel height ===== */
.tw-mm__hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--tw-mm-radius);
  background: #2b3a30;
  color: #fff;
  /* No fixed min-height: let the row stretch-align match the central
     categories column so hero is as tall as the content next to it. */
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tw-mm__hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.tw-mm__hero-media--placeholder {
  background:
    /* mint vlines pattern (signature Techwish motif) */
    repeating-linear-gradient(100deg,
      transparent 0 18px,
      rgba(45, 206, 146, 0.12) 18px 20px),
    /* soft mint glow top-left */
    radial-gradient(120% 80% at 20% 20%, rgba(45,206,146,.28), transparent 50%),
    /* dark base */
    linear-gradient(180deg, #1a2520 0%, #0b0f0d 100%);
}
.tw-mm__hero-media::after {
  content: "";
  position: absolute; inset: 0;
  /* Strong, smooth scrim — text sits in the bottom 60%, so we keep the
     top ~20% mostly clean and ramp aggressively in the middle. */
  background:
    linear-gradient(180deg,
      rgba(11,15,13, 0)    0%,
      rgba(11,15,13, 0)    20%,
      rgba(11,15,13, 0.45) 50%,
      rgba(11,15,13, 0.82) 75%,
      rgba(11,15,13, 0.95) 100%);
}
.tw-mm__hero-body {
  position: relative;
  padding: 14px 16px 14px;
}
.tw-mm__eyebrow {
  display: inline-block;
  font-family: var(--tw-mono, "IBM Plex Mono", monospace);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tw-mint, #2DCE92);
  margin-bottom: 8px;
}
.tw-mm__hero-title {
  font-size: 20px;
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
}
.tw-mm__hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--tw-mint, #2DCE92);
}
.tw-mm__hero-lede {
  font-size: 12px;
  line-height: 1.4;
  color: #cfd9d4;
  margin: 0 0 10px;
  max-width: 36ch;
}
.tw-mm__hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 4px;
}

/* Buttons — scoped, don't inherit GP nav link resets above. */
.tw-mm a.tw-mm__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none !important;
  white-space: normal;
  transition: background var(--tw-dur-fast, .15s) ease, color var(--tw-dur-fast, .15s) ease;
}
.tw-mm a.tw-mm__btn.is-mint  { background: var(--tw-mint, #2DCE92) !important; color: #062319 !important; border: 0 !important; }
.tw-mm a.tw-mm__btn.is-mint:hover { background: var(--tw-mint-600, #1FB37C) !important; color: #062319 !important; }
.tw-mm a.tw-mm__btn.is-ghost { background: rgba(255,255,255,.08) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.18) !important; }
.tw-mm a.tw-mm__btn.is-ghost:hover { background: rgba(255,255,255,.16) !important; color: #fff !important; }

.tw-mm__social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.tw-mm__avatars {
  display: inline-flex;
}
.tw-mm__avatars span {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #cdd6cf, #6b7470);
  border: 2px solid #1a2520;
  margin-left: -8px;
}
.tw-mm__avatars span:first-child { margin-left: 0; }
.tw-mm__social-proof-text {
  font-size: 12px;
  line-height: 1.3;
  color: #b9c4be;
}

/* ===== CATEGORIES GRID — clean sections, no boxy borders ===== */
.tw-mm__cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 32px;
  padding: 2px 12px;
}
/* Smart-Home & Pets have 6 categories → 3×2; Lifestyle has 4 → 2×2.
   Detect Lifestyle (4 children) and switch to 2 cols for breathing room. */
.tw-mm__cats:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 48px;
}
.tw-mm__cat {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
}

/* — HEAD: ikona + tytuł obok, separator pod całością. Subtitle/blurb
   ukryte, żeby zmniejszyć wysokość panelu. — */
.tw-mm__cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--tw-line-soft, #ECEFED);
}
.tw-mm__cat-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--tw-mint-050, #F1FAF5);
  color: var(--tw-mint-600, #1FB37C);
}
.tw-mm__cat-icon svg { width: 22px; height: 22px; display: block; }
.tw-mm__cat-icon:empty {
  display: none;
}
.tw-mm__cat-headtext {
  display: flex;
  align-items: center;
  min-width: 0;
}
.tw-mm__cat-title {
  display: block;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--tw-ink, #0B0F0D);
  text-decoration: none;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
}
.tw-mm__cat-title:hover { color: var(--tw-mint-600, #1FB37C); }
/* Subtitle hidden — design decision, panel must fit 13" without scroll. */
.tw-mm__cat-blurb { display: none !important; }

/* — Subcategory links: tight stack (overrides generic .tw-mm a / li / tokens). — */
.tw-mm__cat-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  row-gap: 1px !important;
}
.tw-mm__cat-links li {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  line-height: 1 !important;
}
.tw-mm__cat-links a {
  display: block !important;
  padding: 1px 0 !important;
  margin: 0 !important;
  font-family: var(--tw-display, "Space Grotesk", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  color: var(--tw-ink-2, #2A2F2C) !important;
  text-decoration: none !important;
  letter-spacing: -0.003em;
  white-space: normal !important;
  transition: color var(--tw-dur-fast, .15s) ease;
}
.tw-mm__cat-links a:hover {
  color: var(--tw-mint-600, #1FB37C) !important;
  transform: translateX(2px);
}
/* "Zobacz wszystkie" — clear gap after the last sub-link, then dashed rule. */
.tw-mm__cat-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--tw-line, #DDE3E0);
  font-family: var(--tw-mono, "IBM Plex Mono", monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tw-mint-600, #1FB37C);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;      /* keep label + arrow on a single row */
}
.tw-mm__cat-all > span {
  /* the arrow wrapper — keep tight to the right side */
  display: inline-flex;
  flex-shrink: 0;
}
.tw-mm__cat-all:hover { color: var(--tw-mint, #2DCE92); }
.tw-mm__cat-all svg {
  display: block;
  width: 18px; height: 18px;
  padding: 4px;
  background: var(--tw-mint-050, #F1FAF5);
  border-radius: 999px;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: transform var(--tw-dur-fast, .15s) ease, background var(--tw-dur-fast, .15s) ease;
}
.tw-mm__cat-all:hover svg {
  background: var(--tw-mint, #2DCE92);
  color: #062319;
  transform: translateX(2px);
}

/* ===== BESTSELLERS ===== */
.tw-mm__best {
  background: var(--tw-paper-2, #F4F7F5);
  border: 0;
  border-radius: var(--tw-mm-radius);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;            /* equal visual weight with hero */
  min-width: 0;
}
.tw-mm__best-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 24px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--tw-mute, #6B7470);
  margin: 0;
}
.tw-mm__best-empty::before {
  content: "○";
  display: block;
  font-size: 28px;
  color: var(--tw-mute-2, #98A09B);
  margin-bottom: 8px;
  opacity: .4;
}
.tw-mm__best-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  min-width: 0;
}
.tw-mm__best-icon {
  color: var(--tw-mint-600, #1FB37C);
  display: inline-flex;
  flex: none;
}
.tw-mm__best-title {
  /* Mirror .tw-mm__eyebrow exactly — it renders cleanly with the same mono +
     letter-spacing, so keep this identical to avoid the smearing seen before. */
  display: inline-block;
  font-family: var(--tw-mono, "IBM Plex Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tw-ink-2, #2A2F2C);
  font-weight: 400;
}
.tw-mm__best-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Horizontal row: thumb | (name → price → omnibus) — mockup layout. */
.tw-mm li.tw-mm__best-item {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 6px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(11, 15, 13, 0.06);
  transition: background var(--tw-dur-fast, .15s) ease;
}
.tw-mm__best-item:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}
.tw-mm__best-item:hover {
  background: var(--tw-paper, #fff);
}
.tw-mm a.tw-mm__best-thumb {
  display: block !important;
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tw-paper, #fff);
  border: 1px solid rgba(11, 15, 13, 0.06);
  flex-shrink: 0;
  padding: 0 !important;
}
.tw-mm__best-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.tw-mm__best-badge {
  position: absolute;
  top: 4px; left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--tw-mint, #2DCE92);
  color: #062319;
  font-family: var(--tw-mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tw-mm__best-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding-top: 1px;
  text-align: left;
}
.tw-mm a.tw-mm__best-name {
  display: -webkit-box !important;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tw-ink, #0B0F0D);
  text-decoration: none;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  margin: 0 0 6px;
  padding: 0 !important;
}
.tw-mm__best-name:hover { color: var(--tw-mint-600, #1FB37C); }
.tw-mm__best-rating {
  font-size: 11px;
  margin-top: 2px;
}
.tw-mm-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--tw-mute, #6B7470);
}
.tw-mm-rating__icon { color: #F5B400; display: inline-flex; }
.tw-mm-rating__value { font-weight: 600; color: var(--tw-ink-2, #2A2F2C); }
.tw-mm-rating__count { color: var(--tw-mute-2, #98A09B); }

.tw-mm__best-price {
  display: block !important;
  margin: 0 0 2px;
  padding: 0 !important;
  font-family: var(--tw-mono, "IBM Plex Mono", monospace);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tw-ink, #0B0F0D);
  width: 100%;
  text-align: left;
}
/* Current price — mint when on sale (mockup). No strikethrough in this column. */
.tw-mm__best-price.is-sale,
.tw-mm__best-price.is-sale .woocommerce-Price-amount { color: var(--tw-mint-600, #1FB37C); }
.tw-mm__best-price .woocommerce-Price-amount {
  white-space: nowrap;
  display: inline-block;
  margin: 0;
  padding: 0;
  text-indent: 0;
  vertical-align: baseline;
}
.tw-mm__best-price .woocommerce-Price-amount bdi { margin: 0; padding: 0; }
/* Omnibus — small grey line directly under the price, left-aligned with name. */
.tw-mm__best-omnibus {
  display: block !important;
  margin: 0;
  padding: 0 !important;
  text-indent: 0;
  font-family: var(--tw-mono, "IBM Plex Mono", monospace);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--tw-mute, #6B7470);
  white-space: normal;
  max-width: 100%;
  text-align: left;
}
.tw-mm__best-omnibus .woocommerce-Price-amount {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.tw-mm__best-cart {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--tw-paper-2, #F4F7F5);
  color: var(--tw-ink, #0B0F0D);
  transition: background var(--tw-dur-fast, .15s) ease, color var(--tw-dur-fast, .15s) ease;
}
.tw-mm__best-cart:hover {
  background: var(--tw-mint, #2DCE92);
  color: #062319;
}

.tw-mm__best-viewall {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px 12px;
  background: var(--tw-mint-050, #F1FAF5);
  border-radius: 12px;
  text-decoration: none;
  color: var(--tw-ink, #0B0F0D);
  transition: background var(--tw-dur-fast, .15s) ease;
}
.tw-mm__best-viewall:hover { background: var(--tw-mint-100, #DFF6EC); }
.tw-mm__best-viewall-icon {
  color: var(--tw-mint-600, #1FB37C);
  display: inline-flex;
}
.tw-mm__best-viewall-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tw-mm__best-viewall-label {
  font-size: 13px;
  font-weight: 600;
}
.tw-mm__best-viewall-sub {
  font-size: 11px;
  color: var(--tw-mute, #6B7470);
}
.tw-mm__best-viewall-arrow {
  margin-left: auto;
  color: var(--tw-mint-600, #1FB37C);
  display: inline-flex;
}

/* ── BOTTOM STRIP — compact, no boxed card ───────────────────── */
.tw-mm__bottom {
  display: grid;
  /* Left = 2 guide cards; right = 4 USP tiles in a row.
     USP needs ~60% of the strip so labels like "Wsparcie ekspertów" +
     "7 dni w tygodniu" fit without truncation. */
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
  gap: 18px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--tw-line-soft, #ECEFED);
  border-radius: 0;
  padding: 12px 12px 4px;
}

/* GUIDES (left) */
.tw-mm__guides-title {
  display: block;
  font-family: var(--tw-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tw-mute, #6B7470);
  margin-bottom: 10px;
}
.tw-mm__guides-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 16px;
}
.tw-mm__guides-list > li {
  display: block !important;     /* prevent flex children stretching */
  margin: 0; padding: 0;
}
.tw-mm__guide a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 0;
}
.tw-mm__guide-thumb {
  position: relative !important;
  display: block !important;
  flex: 0 0 78px !important;       /* fixed width — non-shrinking */
  width: 78px !important;
  height: 52px !important;
  border-radius: 8px;
  overflow: hidden;
  /* Default branded "video card" — mint diagonal stripes + dark base.
     Visible even when no thumb is uploaded yet. */
  background-color: #0e1513;
  background-image:
    linear-gradient(135deg, rgba(45,206,146,.25) 0%, transparent 60%),
    repeating-linear-gradient(100deg,
      transparent 0 10px,
      rgba(45,206,146, 0.12) 10px 11px),
    linear-gradient(135deg, #0e1311 0%, #1b221e 100%);
  background-size: cover, auto, cover;
  background-position: center;
  background-repeat: no-repeat, repeat, no-repeat;
}
.tw-mm__guide-play {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(11,15,13,.25);
  pointer-events: none;
}
.tw-mm__guide-play svg { width: 16px; height: 16px; opacity: .95; }

/* ── ARTICLE variant — no play overlay, light mint brand thumb. ── */
.tw-mm__guide--article .tw-mm__guide-thumb {
  /* Override the dark video thumb gradient. Soft mint paper feel with
     diagonal stripes that match the hero placeholder pattern. */
  background-color: var(--tw-mint-050, #F1FAF5);
  background-image:
    repeating-linear-gradient(100deg,
      transparent 0 10px,
      rgba(45,206,146, 0.12) 10px 11px),
    linear-gradient(135deg, var(--tw-mint-050, #F1FAF5) 0%, #ffffff 100%);
  background-size: auto, cover;
  background-repeat: repeat, no-repeat;
  background-position: center, center;
}
.tw-mm__guide-readicon {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: var(--tw-mint-600, #1FB37C);
  pointer-events: none;
}
.tw-mm__guide-readicon svg { width: 18px; height: 18px; }
/* When the article has its own uploaded thumb, hide the book icon — the
   image should speak for itself. */
.tw-mm__guide--article .tw-mm__guide-thumb[style*="background-image"] .tw-mm__guide-readicon {
  display: none;
}
.tw-mm__guide-readtime {
  position: absolute;
  left: 4px; bottom: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,.95);
  color: var(--tw-ink, #0B0F0D);
  font-family: var(--tw-mono, monospace);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  z-index: 2;
}
.tw-mm__guide-dur {
  position: absolute;
  left: 4px; bottom: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(11,15,13,.78);
  color: #fff;
  font-family: var(--tw-mono, monospace);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  z-index: 2;
}
.tw-mm__guide-body {
  display: flex !important;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
}
.tw-mm__guide-title {
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--tw-ink, #0B0F0D);
  letter-spacing: -0.005em;
  /* clamp to 2 lines so layout doesn't break on long titles */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tw-mm__guide-cta {
  font-family: var(--tw-mono, "IBM Plex Mono", monospace);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tw-mint-600, #1FB37C);
}

/* USP (right) — single-line "title sub" pattern (matches mockup).
   Force 4 equal columns so all USPs stay in a single row regardless
   of label length. */
.tw-mm__usp {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
  border-left: 1px dashed var(--tw-line, #DDE3E0);
  padding-left: 16px;
  align-items: center;
}
.tw-mm__usp-item {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 8px;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
}
.tw-mm__usp-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--tw-mint-050, #F1FAF5);
  color: var(--tw-mint-600, #1FB37C);
}
.tw-mm__usp-icon svg { width: 15px; height: 15px; }
.tw-mm__usp-text {
  display: flex;
  flex-direction: column;       /* stack: title on top, sub under it */
  gap: 1px;
  line-height: 1.25;
  min-width: 0;
}
.tw-mm__usp-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--tw-ink, #0B0F0D);
  letter-spacing: -0.005em;
  /* allow natural wrap — never truncate the brand promise */
}
.tw-mm__usp-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--tw-mute, #6B7470);
  letter-spacing: 0;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
/* Salient sometimes renders the mega dropdown narrower than the
   viewport (contained-width setting + container padding). We push the
   breakpoints down so the panel keeps its 3-column shape on real
   menus, only stacking when there's truly no room. */
@media (max-width: 1200px) {
  .tw-mm__top { grid-template-columns: 280px minmax(0, 1fr) 300px; }
  .tw-mm__top--wide-hero { grid-template-columns: 360px minmax(0, 1fr) 300px; }
  .tw-mm__cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  /* Drop bestsellers below; keep hero+cats side-by-side as long as we can. */
  .tw-mm__top {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .tw-mm__best { grid-column: 1 / -1; }
  .tw-mm__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .tw-mm__top { grid-template-columns: 1fr; }
  .tw-mm__hero { min-height: 280px; }
  .tw-mm__bottom { grid-template-columns: 1fr; }
  .tw-mm__usp {
    border-left: 0;
    padding-left: 0;
    border-top: 1px dashed var(--tw-line, #DDE3E0);
    padding-top: 12px;
  }
}
@media (max-width: 560px) {
  .tw-mm__cats {
    grid-template-columns: 1fr;
    gap: 10px 0;
  }
  .tw-mm__usp-item { flex: 1 1 calc(50% - 6px); }
}
