/* Coordinator cards, built to the approved card design: portrait with a red or blue swoosh and role icon,
   role pill, language chips, red "View profile" button and a chat button. Loaded last. */
html[data-page="coordinators"] body .care-reference .coordinator-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
html[data-page="coordinators"] body .care-reference .coordinator-card { --tone: #c4002a; --tone-bg: #fdecef; --tone-line: #f6cdd5; --tone-a: #a80a26; --tone-b: #e8223f; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 18px 38px -26px rgba(15, 37, 71, .45); transition: border-color .2s, box-shadow .25s, transform .25s; }
html[data-page="coordinators"] body .care-reference .coordinator-card[data-role="blue"] { --tone: #0b5bd3; --tone-bg: #e8f0fc; --tone-line: #cfdef6; --tone-a: #0a4fb8; --tone-b: #2a86f0; }
@media (hover: hover) { html[data-page="coordinators"] body .care-reference .coordinator-card:hover { border-color: #c8d4e5; box-shadow: 0 24px 44px -24px rgba(15, 37, 71, .5); transform: translateY(-3px); } }

/* portrait frame */
html[data-page="coordinators"] body .care-reference .care-portrait-frame { position: relative; aspect-ratio: 1.45; overflow: hidden; background: #dbe8f5; border-radius: 20px 20px 0 0; }
html[data-page="coordinators"] body .care-reference .care-portrait-frame .coordinator-portrait { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; background-size: cover; background-position: center 30%; }
html[data-page="coordinators"] body .care-reference .coordinator-photo-wave { position: absolute; right: 0; bottom: 0; width: 66%; height: 40%; pointer-events: none; }
html[data-page="coordinators"] body .care-reference .coordinator-photo-wave__edge { fill: var(--tone-b); opacity: .55; }
html[data-page="coordinators"] body .care-reference .coordinator-photo-wave__main { fill: var(--tone); }
html[data-page="coordinators"] body .care-reference .coordinator-photo-icon { position: absolute; right: 14px; bottom: 12px; width: 30px; height: 30px; color: #fff; stroke-width: 1.6; }

/* body */
html[data-page="coordinators"] body .care-reference .coordinator-card__body { padding: 18px 20px 20px; }
html[data-page="coordinators"] body .care-reference .coordinator-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
html[data-page="coordinators"] body .care-reference .coordinator-card .network-location { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: 15px; }
html[data-page="coordinators"] body .care-reference .network-location .i { width: 18px; height: 18px; margin: 0; color: var(--red); }
html[data-page="coordinators"] body .care-reference .coordinator-card .coordinator-role { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--tone-line); border-radius: 12px; background: var(--tone-bg); color: var(--navy); font-size: 15px; font-weight: 650; line-height: 1.3; }
html[data-page="coordinators"] body .care-reference .coordinator-role .i { flex: none; width: 24px; height: 24px; color: var(--tone); stroke-width: 1.6; }
html[data-page="coordinators"] body .care-reference .coordinator-card .coordinator-languages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; margin: 0 0 16px; color: var(--muted); font-size: 14px !important; }
html[data-page="coordinators"] body .care-reference .coordinator-languages .i { width: 22px; height: 22px; color: var(--muted); stroke-width: 1.6; }
html[data-page="coordinators"] body .care-reference .language-chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--navy); font-size: 14px; font-weight: 650; }

/* actions */
html[data-page="coordinators"] body .care-reference .coordinator-card__actions { display: flex; gap: 10px; width: 100%; margin-top: auto; }
html[data-page="coordinators"] body .care-reference .directory-profile-button { flex: 1; width: auto; min-height: 48px; margin: 0; padding: 0 16px; border: 1.5px solid #b80a26; border-radius: 10px; background: linear-gradient(135deg, #e01535, #c00b28); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 8px 18px -10px rgba(224, 21, 53, .7); }
html[data-page="coordinators"] body .care-reference .directory-profile-button:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
html[data-page="coordinators"] body .care-reference .coordinator-chat { position: relative; flex: none; width: 48px; height: 48px; border: 1.5px solid var(--navy); border-radius: 10px; background: #fff; color: var(--navy); transition: background .2s, color .2s; }
html[data-page="coordinators"] body .care-reference .coordinator-chat::before { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; background: currentColor; -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.7 7L3 20.5l1.6-5.2A8 8 0 1 1 21 12z'/%3E%3Cpath d='M8.5 12h.01M12 12h.01M15.5 12h.01'/%3E%3C/svg%3E"); mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.7 7L3 20.5l1.6-5.2A8 8 0 1 1 21 12z'/%3E%3Cpath d='M8.5 12h.01M12 12h.01M15.5 12h.01'/%3E%3C/svg%3E"); }
html[data-page="coordinators"] body .care-reference .coordinator-chat:hover, html[data-page="coordinators"] body .care-reference .coordinator-chat:focus-visible { background: var(--navy); color: #fff; }

@media (max-width: 1180px) { html[data-page="coordinators"] body .care-reference .coordinator-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { html[data-page="coordinators"] body .care-reference .coordinator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  html[data-page="coordinators"] body .care-reference .coordinator-grid { grid-template-columns: 1fr; gap: 18px; }
  html[data-page="coordinators"] body .care-reference .care-portrait-frame { aspect-ratio: 1.6; }
}

/* "30 sample profiles · showing 8": hidden visually, still announced to screen readers when filters change. */
html[data-page="coordinators"] body .care-reference .network-filters [data-network-count] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* single, centred "View profile" button */
html[data-page="coordinators"] body .care-reference .coordinator-card__actions { justify-content: center; }
html[data-page="coordinators"] body .care-reference .directory-profile-button { display: flex; align-items: center; justify-content: center; width: 100%; text-align: center; }
html[data-page="coordinators"] body .care-reference .coordinator-chat { display: none; }
