.mj-body {
  --mj-accent-700: #1e3a8a;
  --mj-accent-600: #1d4ed8;
  --mj-accent-500: #2563eb;
  --mj-accent-300: #93c5fd;
  --mj-ink-on-accent: #eff6ff;
  background:
    radial-gradient(1200px 500px at 0% -5%, rgba(251, 207, 232, 0.35), transparent 55%),
    radial-gradient(1000px 480px at 100% 0%, rgba(196, 181, 253, 0.30), transparent 50%),
    radial-gradient(900px 420px at 50% 100%, rgba(251, 191, 36, 0.22), transparent 60%),
    #f8fafc;
}

/* Re-map frequently used dark utility combinations to a softer accent palette. */
.mj-body a.bg-slate-900.text-white,
.mj-body button.bg-slate-900.text-white,
.mj-body input[type="submit"].bg-slate-900.text-white {
  background: #1e3a8a;
  border: 1px solid #1e40af;
  color: var(--mj-ink-on-accent);
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.18);
  transition: transform 140ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.mj-body a.hover\:bg-slate-800:hover,
.mj-body button.hover\:bg-slate-800:hover,
.mj-body input[type="submit"].hover\:bg-slate-800:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.22);
}

.mj-body a.bg-slate-900.text-white:active,
.mj-body button.bg-slate-900.text-white:active,
.mj-body input[type="submit"].bg-slate-900.text-white:active {
  transform: translateY(1px);
  filter: brightness(0.98);
}

.mj-body a.bg-slate-100.text-slate-700,
.mj-body button.bg-slate-100.text-slate-700 {
  background: #eef4ff;
  border: 1px solid #d4e3ff;
  color: #1f3b77;
}

.mj-body a.bg-slate-100.text-slate-700:hover,
.mj-body button.bg-slate-100.text-slate-700:hover,
.mj-body a.hover\:bg-slate-200:hover,
.mj-body button.hover\:bg-slate-200:hover {
  background: #dbeafe;
  color: #1e40af;
}

.mj-top-ribbon {
  background: linear-gradient(90deg, #111827 0%, #1f2937 45%, #0f172a 100%);
  color: #f9fafb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.mj-top-ribbon-inner {
  margin: 0 auto;
  max-width: 1300px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.mj-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mj-brand-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
  color: #0f172a;
}

.mj-nav-pill {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.mj-nav-pill::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: rgba(255, 255, 255, 0.88);
  transition: transform 180ms ease;
}

.mj-nav-pill:hover::after {
  transform: scaleX(1);
}

.mj-hero-frame {
  position: relative;
  overflow: hidden;
}

.mj-hero-chip {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  color: #0f172a;
}

.mj-gradient-btn {
  background: #1e3a8a;
  border: 1px solid #1e40af;
  color: #ffffff;
}

.mj-gradient-btn:hover {
  background: #1d4ed8;
}

.mj-category-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mj-foot-note {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.mj-foot-chip {
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .mj-top-ribbon-inner {
    font-size: 11px;
    padding: 6px 12px;
  }

  .mj-hero-chip {
    left: 10px;
    top: 10px;
    font-size: 10px;
  }
}
