/* Madbax Home DSS Pro preview — fonts / shapes / icons from designsystems.surf/pro
 * Scoped to body.mbx-home-dss-preview so live `/` stays unchanged.
 * Hero / banner: untouched (keep original dark CGLTG look).
 */
@import url("https://rsms.me/inter/inter.css");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap");

body.mbx-home-dss-preview {
  --mbx-font-display: "Inter Display", InterDisplay, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mbx-font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mbx-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --md-sys-typescale-brand: var(--mbx-font-display);
  --md-sys-typescale-plain: var(--mbx-font-body);
  --md-sys-typescale-mono: var(--mbx-font-mono);
  --jl-title-font: var(--mbx-font-display) !important;
  --jl-body-font: var(--mbx-font-body) !important;
  --jl-menu-font: var(--mbx-font-body) !important;
  --mn-font: var(--mbx-font-body) !important;
  --mn-font-display: var(--mbx-font-display) !important;

  /* DSS Pro tokens */
  --dss-paper: #ffffff;
  --dss-paper-2: #ffffff;
  --dss-card: #ffffff;
  --dss-ink: #000000;
  --dss-ink-soft: rgba(0, 0, 0, 0.6);
  --dss-ink-mute: rgba(0, 0, 0, 0.45);
  --dss-line: rgba(0, 0, 0, 0.08);
  --dss-line-soft: rgba(0, 0, 0, 0.06);
  --dss-radius-pill: 100px;
  --dss-radius-card: 16px;
  --dss-radius-media: 20px;
  --dss-radius-control: 10px;
  --dss-radius-icon: 8px; /* Color Foundation soft square */
  --dss-accent: #ff5500;
  --dss-brand: #00e599;

  background: var(--dss-paper) !important;
  color: var(--dss-ink);
  font-family: var(--mbx-font-body) !important;
  font-feature-settings: "ss01" on, "ss02" on, "cv01" on;
  -webkit-font-smoothing: antialiased;
}

/* Fonts only below hero — do not restyle banner chrome */
body.mbx-home-dss-preview,
body.mbx-home-dss-preview *:not(script):not(style) {
  font-family: var(--mbx-font-body) !important;
}

body.mbx-home-dss-preview h1,
body.mbx-home-dss-preview h2,
body.mbx-home-dss-preview h3,
body.mbx-home-dss-preview .mbx-tab__brand,
body.mbx-home-dss-preview .mbx-home-banner__title,
body.mbx-home-dss-preview .mbx-home-banner__title *,
body.mbx-home-dss-preview .mbx-home-section-head__title,
body.mbx-home-dss-preview .mbx-home-membership__title,
body.mbx-home-dss-preview .mbx-home-membership__plan h3,
body.mbx-home-dss-preview .mbx-home-series__panel-title,
body.mbx-home-dss-preview .mbx-home-series__side-title,
body.mbx-home-dss-preview .mbx-home-proof strong,
body.mbx-home-dss-preview .elementor-heading-title {
  font-family: var(--mbx-font-display) !important;
}

body.mbx-home-dss-preview .mbx-home [class*="__eyebrow"],
body.mbx-home-dss-preview .mbx-home [class*="__label"],
body.mbx-home-dss-preview .mbx-home [class*="__more"],
body.mbx-home-dss-preview .mbx-home-chip,
body.mbx-home-dss-preview .mbx-home-section-head__eyebrow,
body.mbx-home-dss-preview .mbx-home-section-head__more,
body.mbx-home-dss-preview .mbx-home-banner__side,
body.mbx-home-dss-preview .mbx-home-explore__icon-label {
  font-family: var(--mbx-font-mono) !important;
}

/* Preview strip */
body.mbx-home-dss-preview .mbx-home-dss-banner {
  position: sticky;
  top: var(--mbx-chrome-offset, 64px);
  z-index: 50;
  margin: 0;
  padding: 10px 16px;
  background: #111;
  color: #f5f5f5;
  font-family: var(--mbx-font-mono) !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Page shell tokens — ONLY explore-page wrapper (banner also has .mbx-home) */
body.mbx-home-dss-preview .mbx-home-explore-page {
  --mbx-surface: var(--dss-paper);
  --mbx-card: var(--dss-card);
  --mbx-on-surface: var(--dss-ink);
  --mbx-on-surface-variant: var(--dss-ink-soft);
  --mbx-label: var(--dss-ink-mute);
  --mbx-outline: var(--dss-line);
  --mbx-primary: var(--dss-brand);
  --mbx-accent: var(--dss-accent);
  --mbx-radius: var(--dss-radius-pill);
  --mbx-radius-card: var(--dss-radius-card);
  --mbx-radius-control: var(--dss-radius-control);
  --mbx-paper: var(--dss-paper);
  --mbx-paper-2: var(--dss-card);
  --mbx-ink: var(--dss-ink);
  --mbx-line: var(--dss-line);
  --mbx-section-accent: transparent;
  --md-sys-shape-corner-small: var(--dss-radius-control);
  --md-sys-shape-corner-medium: var(--dss-radius-media);
  --md-sys-shape-corner-extra-large: var(--dss-radius-card);
  --md-sys-shape-corner-full: var(--dss-radius-pill);
  --mbx-font-display: "Inter Display", InterDisplay, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mbx-font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mbx-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  background-color: var(--dss-paper) !important;
  color: var(--dss-ink);
  padding-bottom: 96px;
}

body.mbx-home-dss-preview .mbx-home-band,
body.mbx-home-dss-preview .mbx-home-band--trending,
body.mbx-home-dss-preview .mbx-home-band--series,
body.mbx-home-dss-preview .mbx-home-band--updated,
body.mbx-home-dss-preview .mbx-home-band--catalogue,
body.mbx-home-dss-preview .mbx-home-band--catalogue-alt,
body.mbx-home-dss-preview .mbx-home-band--member {
  background-color: transparent !important;
  background-image: none !important;
  border-top: none !important;
  padding: 72px 0 48px;
}

body.mbx-home-dss-preview .mbx-home-explore-page__recent {
  gap: 24px;
}

body.mbx-home-dss-preview .mbx-home-band--member {
  padding: 48px 0 24px;
}

/* —— Section heads (not hero) —— */
body.mbx-home-dss-preview .mbx-home-section-head {
  align-items: flex-end;
  margin-bottom: 28px;
  padding-left: 0;
  gap: 24px;
}

body.mbx-home-dss-preview .mbx-home-section-head__text::before {
  display: none !important;
}

body.mbx-home-dss-preview .mbx-home-section-head__eyebrow {
  color: var(--dss-ink-mute) !important;
  letter-spacing: 0.06em;
  font-size: 11px !important;
}

body.mbx-home-dss-preview .mbx-home-section-head__title,
body.mbx-home-dss-preview .mbx-home .mbx-home-section-head__title {
  /* Match live `/` measured size (Popular / Houdini / catalogues) */
  margin-top: 6px;
  font-size: 28px !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  color: var(--dss-ink) !important;
  max-width: none;
}

body.mbx-home-dss-preview .mbx-home-section-head__more {
  border-bottom: none !important;
  background: transparent;
  color: var(--dss-ink-soft) !important;
  padding: 8px 14px;
  border-radius: var(--dss-radius-pill);
  border: 1px solid var(--dss-line) !important;
  font-size: 12px !important;
}

body.mbx-home-dss-preview .mbx-home-section-head__more:hover {
  color: var(--dss-ink) !important;
  background: var(--dss-card);
}

/* —— Proof strip —— */
body.mbx-home-dss-preview .mbx-home-nav-panel {
  background: var(--dss-card) !important;
  border: 1px solid var(--dss-line) !important;
  border-radius: var(--dss-radius-card) !important;
  margin-top: 16px;
  margin-bottom: 46px;
  box-shadow: none;
  overflow: hidden;
}

body.mbx-home-dss-preview .mbx-home-proof {
  border-bottom: 1px solid var(--dss-line-soft);
}

body.mbx-home-dss-preview .mbx-home-proof > div {
  min-height: 88px;
  padding: 20px 24px;
  border-right: 1px solid var(--dss-line-soft);
}

body.mbx-home-dss-preview .mbx-home-proof strong {
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  color: var(--dss-ink) !important;
}

body.mbx-home-dss-preview .mbx-home-proof span {
  color: var(--dss-ink-soft) !important;
  font-size: 14px !important;
  line-height: 1.4;
  margin-top: 4px;
}

/* —— Icons: Color Foundation soft square + mono glyph —— */
body.mbx-home-dss-preview .mbx-home-explore__icons,
body.mbx-home-dss-preview .mbx-home-nav-panel .mbx-home-explore__icons {
  background: transparent !important;
  border: none !important;
  padding: 20px 16px 24px;
}

body.mbx-home-dss-preview .mbx-home-explore__icon-mark,
body.mbx-home-dss-preview .mbx-home-nav-panel .mbx-home-explore__icon-mark {
  width: 40px !important;
  height: 40px !important;
  border-radius: var(--dss-radius-icon) !important;
  background: #f5f5f5 !important;
  color: #000 !important;
  box-shadow: none !important;
}

body.mbx-home-dss-preview .mbx-home-explore__icon-mark.has-logo img,
body.mbx-home-dss-preview .mbx-home-explore__icon-mark.has-logo svg {
  width: 18px !important;
  height: 18px !important;
  filter: brightness(0) !important;
}

body.mbx-home-dss-preview .mbx-home-explore__icon:focus-visible {
  border-radius: calc(var(--dss-radius-icon) + 4px) !important;
}

body.mbx-home-dss-preview .mbx-home-explore__icon:hover .mbx-home-explore__icon-mark,
body.mbx-home-dss-preview .mbx-home-explore__icon:focus-visible .mbx-home-explore__icon-mark {
  background: #eeeeee !important;
  outline: none !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px);
}

body.mbx-home-dss-preview .mbx-home-explore__icon-label {
  color: var(--dss-ink-mute) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* —— Cards (same as neon related / More downloads) —— */
body.mbx-home-dss-preview .mbx-card__media,
body.mbx-home-dss-preview .mbx-home-explore__card-media,
body.mbx-home-dss-preview .mbx-cs__media {
  border-radius: 16px !important;
  overflow: hidden;
  background: #111 !important;
}

body.mbx-home-dss-preview .mbx-card__body {
  padding-top: 12px;
  gap: 8px;
}

body.mbx-home-dss-preview .mbx-card__title,
body.mbx-home-dss-preview .mbx-card__title a,
body.mbx-home-dss-preview .mbx-home-explore__card-title {
  font-family: var(--mbx-font-body) !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  color: #000 !important;
  font-size: 16px !important;
  line-height: 24px !important;
}

body.mbx-home-dss-preview .mbx-card__cat,
body.mbx-home-dss-preview a.mbx-card__cat,
body.mbx-home-dss-preview .mbx-home-explore__card-cat,
body.mbx-home-dss-preview .mbx-card__date {
  font-family: var(--mbx-font-body) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 21px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(0, 0, 0, 0.45) !important;
}

body.mbx-home-dss-preview .mbx-home-trending,
body.mbx-home-dss-preview .mbx-home-grid,
body.mbx-home-dss-preview .mbx-home-updated__grid {
  gap: 32px 24px !important;
}

/* —— Membership (dark + /price themes) —— */
body.mbx-home-dss-preview .mbx-home-membership {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(0, 229, 153, 0.12), transparent 55%),
    linear-gradient(160deg, #121212 0%, #0a0a0a 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--dss-radius-card) !important;
  padding: 40px !important;
  gap: 40px;
  color: #f5f5f5 !important;
}

body.mbx-home-dss-preview .mbx-home-membership__eyebrow {
  color: rgba(245, 245, 245, 0.5) !important;
  letter-spacing: 0.06em;
}

body.mbx-home-dss-preview .mbx-home-membership__title {
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
  font-size: clamp(28px, 3.2vw, 40px) !important;
  color: #ffffff !important;
}

body.mbx-home-dss-preview .mbx-home-membership__subtitle {
  color: rgba(245, 245, 245, 0.65) !important;
}

body.mbx-home-dss-preview .mbx-home-membership__feat-icon {
  background: #f5f5f5 !important;
  border-radius: var(--dss-radius-icon) !important;
  color: #000 !important;
}

body.mbx-home-dss-preview .mbx-home-membership__feat-text strong {
  font-weight: 500 !important;
  color: #fff !important;
}

body.mbx-home-dss-preview .mbx-home-membership__feat-text small {
  font-family: var(--mbx-font-mono) !important;
  color: rgba(245, 245, 245, 0.55) !important;
  text-transform: uppercase;
}

body.mbx-home-dss-preview .mbx-home-membership__check {
  background: #f5f5f5 !important;
  color: #0a0a0a !important;
}

body.mbx-home-dss-preview .mbx-home-membership__cta {
  background: #00e599 !important;
  color: #0a0a0a !important;
  -webkit-text-fill-color: #0a0a0a !important;
  border-radius: var(--dss-radius-pill) !important;
  border: none !important;
}

body.mbx-home-dss-preview .mbx-home-membership__cta:hover {
  background: #33ebab !important;
}

body.mbx-home-dss-preview .mbx-home-membership__plan {
  border-radius: var(--dss-radius-media) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5f5f5 !important;
}

/* —— Series / catalogues —— */
body.mbx-home-dss-preview .mbx-home-series,
body.mbx-home-dss-preview .mbx-home-catalogue {
  border-radius: var(--dss-radius-card);
}

body.mbx-home-dss-preview .mbx-home-series__panel-title,
body.mbx-home-dss-preview .mbx-home-series__side-title {
  font-weight: 600 !important;
  letter-spacing: -0.025em;
}

@media (max-width: 720px) {
  body.mbx-home-dss-preview .mbx-home-band,
  body.mbx-home-dss-preview .mbx-home-band--trending,
  body.mbx-home-dss-preview .mbx-home-band--updated,
  body.mbx-home-dss-preview .mbx-home-band--catalogue,
  body.mbx-home-dss-preview .mbx-home-band--catalogue-alt {
    padding: 48px 0 32px;
  }

  body.mbx-home-dss-preview .mbx-home-section-head__title,
  body.mbx-home-dss-preview .mbx-home .mbx-home-section-head__title {
    font-size: 20px !important;
  }

  body.mbx-home-dss-preview .mbx-home-membership {
    padding: 24px 20px !important;
  }

  body.mbx-home-dss-preview .mbx-home-proof {
    grid-template-columns: 1fr 1fr;
  }

  body.mbx-home-dss-preview .mbx-home-proof > div:nth-child(2n) {
    border-right: none;
  }
}
