/* Shared client-approved watermark, always behind hero content. */
body.site-page main#main section:is(.page-hero, .reference-home-hero, .services-visual-hero, .service-story-hero, .about-hero, .media-tour-hero, .story-detail-hero) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
body.site-page main#main section:is(.page-hero, .reference-home-hero, .services-visual-hero, .service-story-hero, .about-hero, .media-tour-hero, .story-detail-hero)::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    inset: auto 0 0 auto;
    width: min(32%, 360px);
    height: min(58%, 220px);
    background: url("../images/ekuphileni-watermark-transparent.png") right bottom / contain no-repeat;
    opacity: .16;
    pointer-events: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}
body.site-page main#main section:is(.page-hero, .reference-home-hero, .services-visual-hero, .service-story-hero, .about-hero, .media-tour-hero, .story-detail-hero) > .wrap {
    position: relative;
    z-index: 2;
}
body.site-page .reference-home-overlay::after { display: none; }
body.site-page main p, body.site-page main li { font-size: 17px; }
body.site-page .reference-pillar::after { pointer-events: none; }
body.site-page .reference-pillar-link { position: absolute; inset: 0; display: block; color: #fff; }
body.site-page .reference-pillar-link:focus-visible { outline-offset: -5px; }
body.site-page .reference-pillar-caption { position: absolute; z-index: 2; inset: auto 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #fff; font-size: 17px; font-weight: 800; }
body.site-page .reference-pillar-caption svg { flex: 0 0 19px; width: 19px; height: 19px; }
body.site-page #leadership, body.site-page #board, body.site-page .media-page section[id] { scroll-margin-top: 110px; }

/* Restore the compact, icon-led home cards with eight distinct care categories. */
body.site-page .reference-service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
body.site-page .reference-service-card { --card-accent: #a7dd69; min-height: 270px; gap: 16px; padding: 22px; border-top: 4px solid var(--card-accent); border-radius: 8px; background: linear-gradient(125deg, #f0f9e8, #fff 65%); box-shadow: 0 10px 24px rgba(48,60,150,.09); }
body.site-page .reference-service-card.pink { --card-accent: #edb8df; background: linear-gradient(125deg, #fbedf7, #fff 65%); }
body.site-page .reference-service-card.aqua { --card-accent: #72cfcd; background: linear-gradient(125deg, #eaf9f8, #fff 65%); }
body.site-page .reference-service-card.blue { --card-accent: #8f9de0; background: linear-gradient(125deg, #eef0fc, #fff 65%); }
body.site-page .reference-service-icon { border-radius: 8px; box-shadow: 0 5px 14px rgba(48,60,150,.08); }
body.site-page .reference-service-body { display: grid; align-content: start; gap: 10px; }
body.site-page .reference-service-body h3 { margin: 0; font-size: 20px; line-height: 1.3; }
body.site-page .reference-service-body p { font-size: 16px; line-height: 1.55; }
body.site-page .reference-service-link { font-size: 16px; min-height: 36px; }
body.site-page .doctor-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
body.site-page .doctor-card-body { padding: 18px; gap: 10px; }
body.site-page .doctor-card-body h2 { font-size: 22px; }
body.site-page .doctor-card-specialty .badge { font-size: 14px; }
body.site-page .doctor-card-portrait { aspect-ratio: 4 / 5; min-height: 0; }
body.site-page .doctor-card-image { min-height: 0; position: absolute; inset: 0; object-fit: cover; }
body.site-page .doctor-profile-card-anonymous { cursor: default; grid-template-rows: auto 1fr; box-shadow: none; }
body.site-page .doctor-profile-card-anonymous:hover { transform: none; }
body.site-page .doctor-card-specialty-visual { min-height: 130px; display: grid; place-items: center; background: #f0f5f4; color: #398842; }
body.site-page .doctor-card-specialty-visual svg { width: 44px; height: 44px; }
body.site-page .doctor-profile-card-anonymous .text-link { display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-size: 16px; }
body.site-page .doctor-profile-card-anonymous .text-link svg { width: 18px; height: 18px; }
body.site-page .avatar svg { width: 24px; height: 24px; }
@media (max-width: 1050px) {
    body.site-page .reference-service-grid, body.site-page .doctor-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    body.site-page .reference-service-grid { grid-template-columns: unset; grid-auto-flow: column; grid-auto-columns: min(82vw, 310px); overflow-x: auto; padding: 3px 2px 14px; gap: 12px; }
    body.site-page .reference-service-card { min-height: 265px; padding: 22px; gap: 12px; }
    body.site-page .reference-service-body h3 { font-size: 18px; }
    body.site-page .reference-service-body p { font-size: 15px; }
    body.site-page .reference-service-icon { width: 46px; height: 46px; }
    body.site-page .reference-service-icon svg { width: 30px; height: 30px; }
    body.site-page .reference-pillar:not(.primary) { min-height: 160px; }
    body.site-page .reference-pillar-caption { left: 8px; right: 8px; bottom: 12px; font-size: 14px; }
    body.site-page .reference-pillar-caption svg { display: none; }
    body.site-page .doctor-card-grid { grid-template-columns: 1fr; }
    body.site-page main#main section:is(.page-hero, .reference-home-hero, .services-visual-hero, .service-story-hero, .about-hero, .media-tour-hero, .story-detail-hero)::after { width: 42%; height: 140px; }
}
