/* Subject colours are shared by health cards and service cards. */
[data-icon-tone="teal"]   { --icon-ink: #00645e; --icon-surface: #dcf6ef; --icon-border: #96d7c6; }
[data-icon-tone="blue"]   { --icon-ink: #184fa6; --icon-surface: #e2efff; --icon-border: #a7c8fb; }
[data-icon-tone="rose"]   { --icon-ink: #a32c50; --icon-surface: #ffe5ed; --icon-border: #edb0c2; }
[data-icon-tone="purple"] { --icon-ink: #6536a1; --icon-surface: #f0e6ff; --icon-border: #cbb2f1; }
[data-icon-tone="green"]  { --icon-ink: #2d6b2a; --icon-surface: #e7f5d9; --icon-border: #b3d891; }
[data-icon-tone="amber"]  { --icon-ink: #854000; --icon-surface: #fff0d3; --icon-border: #edc986; }
[data-icon-tone="navy"]   { --icon-ink: #36527d; --icon-surface: #e8effd; --icon-border: #b9c9eb; }
[data-icon-tone="plum"]   { --icon-ink: #8e367e; --icon-surface: #f8e7f5; --icon-border: #e3b6d9; }

main .clinic-line-icon[data-icon-tone],
main .cards .card.servicecard .clinic-line-icon[data-icon-tone],
main .featured-topic-icon[data-icon-tone] {
  box-sizing: border-box;
  border: 1px solid var(--icon-border) !important;
  border-radius: 11px;
  background: var(--icon-surface) !important;
  color: var(--icon-ink) !important;
  box-shadow: inset 0 1px 0 #fffc;
}

main .health-information-hub .compact-box-heading .clinic-line-icon[data-icon-tone] {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
}

main .clinic-line-icon[data-icon-tone] svg {
  width: 70% !important;
  height: 70% !important;
  color: inherit !important;
}

main .featured-health-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

main .featured-topic-icon[data-icon-tone] {
  display: inline-flex;
  width: 33px;
  height: 33px;
  align-items: center;
  justify-content: center;
  flex: 0 0 33px;
}

.site-search-button > svg {
  color: #5b378f;
}

footer a.footer-contact-link > svg,
main a.contact-social-card > svg,
main a.clinic-action > svg,
main a.contact-method > svg {
  color: var(--contact-icon, #425c85);
}

footer a.footer-contact-link[href*="facebook.com"],
main a.contact-social-card[href*="facebook.com"] {
  --contact-icon: #1d59b8;
}
footer a.footer-contact-link[href*="instagram.com"],
main a.contact-social-card[href*="instagram.com"] {
  --contact-icon: #a73574;
}
footer a.footer-contact-link[href*="wa.me"],
main a[href*="wa.me"].clinic-action,
main a[href*="wa.me"].contact-method {
  --contact-icon: #285778;
}
footer a.footer-contact-link[href^="tel:"],
main a[href^="tel:"].clinic-action,
main a[href^="tel:"].contact-method {
  --contact-icon: #135b9e;
}
footer a.footer-contact-link[href^="mailto:"],
main a[href^="mailto:"].contact-method {
  --contact-icon: #98501b;
}

/* These filled actions keep one high-contrast colour for the icon and label. */
.clinic-contact-float > a.float-phone {
  background: #244f72;
}
.clinic-contact-float > a.float-whatsapp {
  background: #234f72;
}

@media (max-width: 760px) {
  main .featured-health-card h3 { gap: 6px; }
  main .featured-topic-icon[data-icon-tone] {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  main .featured-topic-icon svg { width: 18px; height: 18px; }
  main .health-information-hub .compact-box-heading .clinic-line-icon[data-icon-tone] {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
  }
}


/* Use blue for the clinic's contact controls; the channel remains in the label and icon. */
main a.hero-wa-v261 {
  background: #35668b !important;
  border-color: #35668b !important;
  color: #fff !important;
}

.clinic-contact-float > a.float-whatsapp,
.clinic-whatsapp-float > summary {
  background: #e5f3e9 !important;
  border-color: #a1c7ac !important;
  color: #24583b !important;
}

.clinic-contact-float > a.float-whatsapp span,
.clinic-whatsapp-float > summary span {
  color: inherit !important;
}

main a.hero-phone-v261,
.clinic-contact-float > a.float-phone {
  background: #eaf2f9 !important;
  border-color: #9eb8cf !important;
  color: #193e60 !important;
}

main a.hero-phone-v261 span,
.clinic-contact-float > a.float-phone span {
  color: inherit !important;
}

footer a.footer-contact-link[href*="wa.me"],
main a[href*="wa.me"].clinic-action,
main a[href*="wa.me"].contact-method {
  --contact-icon: #285778;
}

a.whatsapp-contact,
a.whatsapp-contact > svg.whatsapp-brand-icon,
main .denovo-whatsapp-link,
main .unified-branch-contacts > a.unified-whatsapp,
main a[href*="wa.me"].clinic-action,
[data-page="home"] .home-contact-number-row > a.home-number-whatsapp,
.clinic-whatsapp-float .wa-float-panel a {
  color: #244f72 !important;
}

a.whatsapp-contact.btn,
main .denovo-whatsapp-link,
main .unified-branch-contacts > a.unified-whatsapp,
main a[href*="wa.me"].clinic-action,
[data-page="home"] .home-contact-number-row > a.home-number-whatsapp,
.clinic-whatsapp-float .wa-float-panel a {
  background: #edf4fa !important;
  border-color: #a8bfd3 !important;
}

.clinic-whatsapp-float .wa-float-panel {
  border-color: #a8bfd3 !important;
  color: #193e60 !important;
}

main .about-clinic-contact .contact-method::before,
main .contact-method:has(> svg)::before {
  display: none !important;
  content: none !important;
}
