/*
 * DocCover product pages (car / health / professional indemnity)
 * ---------------------------------------------------------------
 * Loaded LAST. Fixes the "invisible text" problems:
 *   1. shared premium-shell no longer paints the first section as a dark hero
 *      (see data-cn-product in premium-shell.js)
 *   2. .primary / .secondary (used for the DocCover wordmark in headings) were
 *      being given a solid teal background by doccover-theme.css
 *   3. old red / green brand colours are mapped to the blue + navy palette
 *   4. gradient buttons always have white text
 * Every section stays light with dark, readable text.
 */
body.cn-product {
  --cn-blue: #db8140;
  --cn-navy: #0e0f12;
  --cn-ink: #0e0f12;
  background: #fff7f2 !important;
  color: var(--cn-ink);
}

/* ---------- section canvas: light + readable ---------- */
body.cn-product section { background-color: transparent; }
body.cn-product section.bg-white,
body.cn-product .bg-white { background-color: #fff !important; }
body.cn-product section h1,
body.cn-product section h2,
body.cn-product section h3 { color: var(--cn-navy); }
body.cn-product section h2.text-black,
body.cn-product section h2 .text-black { color: #0e0f12 !important; }
body.cn-product section p { color: #0e0f12; }
body.cn-product section p.text-gray-600,
body.cn-product section .text-gray-600 { color: #bb682d !important; }
body.cn-product section p.text-gray-700 { color: #0e0f12 !important; }
body.cn-product section p.text-gray-800 { color: #0e0f12 !important; }

/* ---------- DocCover wordmark inside headings ---------- */
body.cn-product .primary {
  background: none !important;
  color: var(--cn-blue) !important;
  padding: 0 !important;
}
body.cn-product .secondary {
  background: none !important;
  color: var(--cn-navy) !important;
}

/* ---------- old red / green brand -> blue / navy ---------- */
body.cn-product [class*="text-[#cf6c29]"],
body.cn-product [class*="text-red-"] { color: var(--cn-blue) !important; }
body.cn-product [class*="text-[#db8a43]"],
body.cn-product [class*="text-green-"] { color: #1f8d58 !important; }
body.cn-product [class*="border-[#cf6c29]"] { border-color: var(--cn-blue) !important; }
body.cn-product .bg-\[\#cf6c29\] { background-color: var(--cn-blue) !important; }
body.cn-product [class*="rgba(232,80,91"] {
  background-image: linear-gradient(90deg, rgba(219,129,64,.08) 9%, rgba(219,129,64,.7) 50%, rgba(219,129,64,.08) 84%) !important;
}

/* ---------- buttons: gradient + white text, always ---------- */
body.cn-product a[class*="bg-gradient-to-r"],
body.cn-product button[class*="bg-gradient-to-r"],
body.cn-product .support-trigger,
body.cn-product #openPopup {
  background-image: linear-gradient(135deg,#db8a43,#cf6c29) !important;
  background-color: #0e0f12 !important;
  color: #fff !important;
  border: 0;
  text-decoration: none;
}
body.cn-product a[class*="bg-gradient-to-r"]:hover,
body.cn-product .support-trigger:hover,
body.cn-product #openPopup:hover {
  background-image: linear-gradient(135deg,#db8a43,#cf6c29) !important;
}

/* full-width gradient title bars (comparison tables etc.): blue + white text */
body.cn-product div[class*="bg-gradient-to-r"] {
  background-image: linear-gradient(135deg,#db8a43,#cf6c29) !important;
  color: #fff !important;
}
body.cn-product div[class*="bg-gradient-to-r"] * { color: inherit; }

/* CTA banners: white text on gradient */
body.cn-product [class*="bg-gradient-to-r"] h1,
body.cn-product [class*="bg-gradient-to-r"] h2,
body.cn-product [class*="bg-gradient-to-r"] h3,
body.cn-product [class*="bg-gradient-to-r"] p,
body.cn-product [class*="bg-gradient-to-r"] span { color: #fff !important; }

/* round numbered / icon circles use blue-violet gradient: keep icon visible */
body.cn-product [class*="bg-gradient-to-br"][class*="from-blue-500"] { color: #fff !important; }

/* ---------- hero (first) section of PI / health pages: light, not navy ---------- */
body.cn-product section.bg-gradient-to-br {
  background-image: linear-gradient(135deg, #fff5ee 0%, #ffffff 55%, #fff6f0 100%) !important;
}
body.cn-product section.bg-gradient-to-br p { color: #0e0f12 !important; }

/* note box on car page */
body.cn-product .bg-\[\#FFF8E6\] p { color: #0e0f12 !important; }
body.cn-product .bg-\[\#FFF8E6\] p.text-sm { color: #bb682d !important; }

/* tick-list rows: keep icon + text on one line, no stray centring */
body.cn-product section p { margin-inline: 0; }
body.cn-product section p.text-center,
body.cn-product section .text-center > p { text-align: center; }
body.cn-product section p.mx-auto { margin-inline: auto; }

/* timeline "Benefits" cards: white cards, dark text */
body.cn-product .shadow-lg.rounded-2xl { background: #fff; }
body.cn-product .shadow-lg.rounded-2xl h3 { color: #0e0f12 !important; }
body.cn-product .shadow-lg.rounded-2xl p { color: #bb682d !important; }

/* ---------- PI page: doctor photos ---------- */
.cn-pi-hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}
.cn-pi-hero-art__card {
  position: relative;
  width: min(100%, 460px);
  border-radius: 28px;
  background: linear-gradient(160deg, #ffeee3 0%, #fffaf6 60%, #ffffff 100%);
  box-shadow: 0 30px 60px -28px rgba(46,48,56, .45);
  padding: 22px 22px 0;
  overflow: hidden;
}
.cn-pi-hero-art__card img.cn-team {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px 20px 0 0;
}
.cn-pi-hero-art__badge {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 2;
  background: #0e0f12;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 7px 14px;
  border-radius: 999px;
}
.cn-pi-hero-art__chip {
  position: absolute;
  z-index: 3;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 14px 26px -10px rgba(46,48,56, .5);
  object-fit: cover;
  background: #ffe8db;
}
.cn-pi-hero-art__chip--a { right: -6px; top: 26px; }
.cn-pi-hero-art__chip--b { left: -8px; bottom: 44px; }
.cn-pi-hero-art__shield {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  background: #fff;
  color: #0e0f12;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 14px;
  box-shadow: 0 12px 24px -12px rgba(46,48,56, .55);
  display: flex;
  gap: 8px;
  align-items: center;
}
.cn-pi-hero-art__shield i { color: #db8140; font-style: normal; font-size: 16px; }

img.cn-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px -8px rgba(46,48,56, .5), 0 0 0 3px #fff;
  background: #ffe8db;
}

/* doctors strip on PI page */
.cn-doc-strip { max-width: 1180px; margin: 0 auto; padding: 8px 16px 8px; }
.cn-doc-strip h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: #0e0f12; }
.cn-doc-strip p.lead { text-align: center; max-width: 640px; margin: 8px auto 0; color: #bb682d; }
.cn-doc-strip__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.cn-doc-card {
  background: #fff;
  border-radius: 20px;
  padding: 16px 12px 14px;
  text-align: center;
  box-shadow: 0 16px 34px -20px rgba(46,48,56, .4);
  border: 1px solid #ffe7d9;
}
.cn-doc-card__img {
  height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff1e8, #fffaf7);
  overflow: hidden;
}
.cn-doc-card__img img { max-height: 100%; max-width: 100%; width: auto; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cn-doc-card h3 { margin-top: 12px; font-size: 15px; font-weight: 700; color: #0e0f12 !important; }
.cn-doc-card p { margin-top: 4px; font-size: 13px; color: #bb682d !important; line-height: 1.45; }
@media (max-width: 1024px) { .cn-doc-strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cn-doc-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cn-doc-card__img { height: 150px; }
  .cn-pi-hero-art__chip { width: 70px; height: 70px; }
}

/* car page: keep the first block inside a centred container */
body.cn-product #whyChooseDocCover { max-width: 1240px; margin-inline: auto; }
