/* Cancer nonprofits map + list (mounted into #np-root by nonprofits-map.js).
   Everything is prefixed "np-" so it can sit inside any page. Uses the page's colour variables. */
.np-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 20px; }
.np-tools input { width: auto; margin: 0; flex: 1 1 260px; max-width: 360px; font: inherit; font-size: 15px; padding: 11px 18px; border: 1px solid var(--c-line); border-radius: 100px; background: #fff; color: var(--c-ink); }
.np-tools input:focus-visible, .np-tools select:focus-visible, .np-card a:focus-visible { outline: 3px solid rgba(234,90,87,.4); outline-offset: 2px; }
/* Own chevron (the browser's sits hard against the text and the pill's edge) with room around it */
.np-tools select { width: auto; flex: 0 1 auto; margin: 0; font: inherit; font-size: 15px; line-height: 1.3; appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: 11px 42px 11px 18px; border: 1px solid var(--c-line); border-radius: 100px; color: var(--c-ink); max-width: 100%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238C7E77' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 18px center; }
.np-count { font-size: 13px; color: var(--c-stone); margin-bottom: 12px; }

.np-map-card { background: #fff; border: 1px solid var(--c-line); border-radius: 20px; padding: 12px; position: relative; }
.np-map-card svg { display: block; width: 100%; height: auto; }
.np-state { fill: var(--c-bg-alt); stroke: #fff; stroke-width: 1; }
.np-pin { cursor: pointer; outline: none; }
.np-pin circle.dot { fill: var(--c-coral); stroke: #fff; stroke-width: 2; transition: r .15s, fill .15s; }
.np-pin circle.halo { fill: var(--c-coral); opacity: 0; transition: opacity .15s; }
.np-pin:hover circle.dot, .np-pin:focus-visible circle.dot, .np-pin.on circle.dot { fill: var(--c-burg); r: 9; }
.np-pin:hover circle.halo, .np-pin:focus-visible circle.halo, .np-pin.on circle.halo { opacity: .22; }
.np-pin.local circle.dot, .np-pin.local circle.halo { fill: var(--c-burg); }
.np-pin.local:hover circle.dot, .np-pin.local:focus-visible circle.dot, .np-pin.local.on circle.dot { fill: var(--c-coral); }
.np-pin.dim { opacity: .18; pointer-events: none; }
.np-tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); background: var(--c-ink); color: #fff; font-size: 12.5px; line-height: 1.35; padding: 7px 11px; border-radius: 8px; white-space: nowrap; z-index: 2; }
.np-tip small { display: block; opacity: .7; font-size: 11.5px; }

.np-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 28px; list-style: none; padding: 0; }
.np-card { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 90px; transition: border-color .2s, box-shadow .2s; }
.np-card.on { border-color: var(--c-coral); box-shadow: 0 0 0 3px rgba(234,90,87,.18); }
.np-card h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.015em; font-size: 19px; line-height: 1.25; color: var(--c-ink); margin: 0; }
.np-card .where { font-size: 13px; color: var(--c-stone); }
.np-card .tag { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-burg); background: var(--c-blush); padding: 3px 10px; border-radius: 100px; }
.np-card p { font-size: 14.5px; color: var(--c-stone); flex: 1; margin: 0; max-width: none; }
.np-card a.go { font-size: 14px; font-weight: 600; color: var(--c-coral); margin-top: 6px; text-decoration: none; }
.np-card a.go:hover { color: var(--c-burg); text-decoration: underline; }
.np-empty { margin-top: 28px; color: var(--c-stone); }
.np-note { margin-top: 28px; font-size: 13px; color: var(--c-stone); max-width: 80ch; }
.np-note a { color: var(--c-coral); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.np-loading { color: var(--c-stone); font-size: 14px; padding: 24px 0; }
