/* Glossy web archive. Email HTML stays on the light palette and does not use .momo-web. */
html:has(body.momo-web),
body.momo-web {
  color-scheme: dark;
}

body.momo-web {
  background:
    radial-gradient(ellipse at 18% 0%, #4a1848 0%, transparent 52%),
    radial-gradient(ellipse at 88% 100%, #2a1030 0%, transparent 48%),
    #0c0810 !important;
  color: #f7eef6 !important;
}

body.momo-web table[style*="#efe8f4"],
body.momo-web td[style*="#efe8f4"] {
  background: transparent !important;
}

body.momo-web table[style*="#fffaf7"],
body.momo-web td[style*="#fffaf7"] {
  background: transparent !important;
}

/* Pick cards and the intro box were authored for a light email palette.
   Their dark inline ink must be overridden once the card is glazed dark. */
body.momo-web table[style*="#ffffff"],
body.momo-web table[style*="background:#fff"],
body.momo-web table[style*="#f6eef8"],
body.momo-web td[style*="#f6eef8"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) !important;
  border-color: rgba(255, 79, 163, 0.45) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

body.momo-web h2,
body.momo-web h2 a,
body.momo-web a[style*="#3b1f4a"] {
  color: #f7eef6 !important;
}

/* Inline blurb/plum/title colors win over a non-important rule, which is
   what made body copy near-black on the dark purple cards. */
body.momo-web p[style*="#2f2a38"],
body.momo-web p[style*="#2a1538"],
body.momo-web p[style*="#3b1f4a"] {
  color: #f7eef6 !important;
}

body.momo-web p[style*="#5a5468"],
body.momo-web p[style*="#6a6478"],
body.momo-web p[style*="#8a8498"] {
  color: #d2bdd0 !important;
}

/* #c45a9a is fine on cream email cards but only ~3.3:1 on the dark glaze. */
body.momo-web p[style*="#c45a9a"],
body.momo-web a[style*="#c45a9a"] {
  color: #ff9ac8 !important;
}

body.momo-web a[href*="vote"],
body.momo-web a[style*="#1f6b3a"],
body.momo-web a[style*="#8a3048"] {
  min-height: 44px;
  min-width: 44px;
}

@media (max-width: 640px) {
  body.momo-web table {
    width: 100% !important;
  }
  body.momo-web img {
    max-width: 100% !important;
    height: auto !important;
  }
}
