.health-type--hospital_public{
  --health-accent:#8b2530;--health-tint:#f8e9e9;
  --health-pin:image-set(url('/assets/health/pins/public-hospital.webp') 1x,url('/assets/health/pins/public-hospital@2x.webp') 2x)
}
.health-type--hospital_private{
  --health-accent:#234d80;--health-tint:#eaf1fa;
  --health-pin:image-set(url('/assets/health/pins/private-hospital.webp') 1x,url('/assets/health/pins/private-hospital@2x.webp') 2x)
}
.health-type--sub_district_hpo{
  --health-accent:#23604a;--health-tint:#e8f2eb;
  --health-pin:image-set(url('/assets/health/pins/subdistrict-health.webp') 1x,url('/assets/health/pins/subdistrict-health@2x.webp') 2x)
}
.health-type--clinic{--health-accent:#595867;--health-tint:#efedf2}

.health-type-icon,.health-map-pin{
  display:inline-grid;place-items:center;flex:none;background:var(--health-accent);color:white;
  border-radius:50%;line-height:1
}
.health-type-icon{width:26px;height:26px;font-size:15px}
.health-types a{gap:8px}
.health-types a[aria-current=page]{border-color:#34542b;background:#eaf2e8;font-weight:700}

.health-card{border-inline-start:5px solid var(--health-accent)}
.health-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:0 0 8px;font-size:.8rem;color:#414a3d}
.health-type-badge{
  display:inline-flex;align-items:center;gap:8px;padding:4px 8px;border-radius:8px;
  background:var(--health-tint);color:var(--health-accent);font-weight:700
}
.health-card.health-type--hospital_public .health-type-badge,
.health-card.health-type--hospital_private .health-type-badge{font-size:.9rem;padding:6px 10px}
.health-card.health-type--sub_district_hpo{padding-block:14px}
.health-card.health-type--sub_district_hpo h2{font-size:1rem}
.health-card.health-type--sub_district_hpo>p:not(.health-card-meta){margin-block:6px}
.health-card .gov-actions{gap:6px}

.health-map-frame{position:relative}
.health-map-frame #gov-map{z-index:0}
.health-map-pin{border:2px solid white;box-shadow:0 2px 5px #16221e80;font-size:13px}
.health-map-pin:focus-visible{outline:3px solid #182c23;outline-offset:2px}
.health-type-icon:not(.health-type--clinic),.health-map-pin:not(.health-type--clinic){
  background:var(--health-pin) center/contain no-repeat;border:0;box-shadow:none;border-radius:0
}
.health-type-icon:not(.health-type--clinic)>span,.health-map-pin:not(.health-type--clinic)>span{visibility:hidden}

.health-map-legend{
  display:none;position:absolute;z-index:2;bottom:24px;right:8px;max-width:calc(100% - 64px);
  border:1px solid #d9dcd3;border-radius:9px;padding:6px 8px;background:#fffdf9;
  color:#263b2f;pointer-events:none
}
.health-map-frame:has(#gov-map:not([hidden])) .health-map-legend{display:block}
.health-map-legend ul{list-style:none;padding:0;margin:0;display:grid;gap:4px}
.health-map-legend li{display:flex;align-items:center;gap:7px;margin:0;font-size:.75rem}
.health-map-legend .health-type-icon{width:20px;height:20px;font-size:12px}
