/*
 * Codama branding overlay for the self-hosted Novu dashboard (MIT licensed upstream).
 * Linked from index.html by apply_branding.py. Only hides upstream marketing blocks,
 * never changes layout. The selectors are guarded by "asserts" in manifest.json, so a
 * class rename upstream fails the deploy instead of silently showing the block again.
 */

/* Sign-in page: "TRUSTED BY" strip with Novu's customer logos */
.h-\[87px\].w-\[365px\]:has(img[src$="-customer.svg"]) {
  display: none !important;
}

/* Sign-in page: "Looking for a Managed Solution? Explore Novu Cloud" upsell card */
div.rounded-8.from-blue-50\/80:has(> h3) {
  display: none !important;
}

/* Sidebar header: the product mark next to the organization name is an inline Novu SVG
 * (not a file), so swap it for the Codama mark served at /images/novu.svg by the overlay. */
aside span.h-6.w-6.overflow-hidden.border-gray-200:has(> svg path[fill^="url(#paint0_radial_17616_1826"]) {
  background: url("/images/novu.svg") center / cover no-repeat;
}
aside span.h-6.w-6.overflow-hidden.border-gray-200:has(> svg path[fill^="url(#paint0_radial_17616_1826"]) > svg {
  visibility: hidden;
}

/* Email step preview: the "Powered by Novu" footer image. Real emails no longer carry it
 * (organizations.removeNovuBranding = true in Mongo, see docs/runbook.md "Branding"). */
div.pb-6.pt-4:has(img[src$="/powered-by-novu.png"]) {
  display: none !important;
}
