/* Project map: used by /projects/ and the homepage. Written for gen_projects.project_map()
   and assets/pmap.js. One file so the two pages cannot drift. */
.pmap{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:clamp(18px,3vw,40px);align-items:start}
@media(max-width:820px){.pmap{grid-template-columns:1fr}}
.pm-svg{width:100%;height:auto;max-height:78vh;display:block;background:var(--soft,#F4F6F8);border:1px solid var(--gray-line);border-radius:var(--r)}
.pm-pin{cursor:pointer}
.pm-town circle{fill:#9FB4C2}.pm-town text{font-size:13px;fill:#5B6B77;pointer-events:none}
.pm-pin circle{fill:#22B8EA;stroke:#fff;stroke-width:2;filter:drop-shadow(0 1px 2px rgba(0,0,0,.2))}
.pm-pin:hover circle,.pm-pin:focus circle{fill:#0E9CCF}
.pm-plabel{font-family:var(--display);font-size:16px;font-weight:700;fill:var(--text);paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.pm-stage{position:relative}
.pm-live{position:absolute;inset:0;border-radius:var(--r);overflow:hidden;opacity:0;pointer-events:none;transition:opacity .35s;
  border:1px solid var(--gray-line);background:#F2F3F0}
.pm-live.on{opacity:1;pointer-events:auto}
.pmp-job:focus:not(:focus-visible){outline:none}
.pm-mk{display:flex;align-items:center;gap:6px;background:none;border:0;padding:0;cursor:pointer;font:inherit}
.pm-mk-dot{width:12px;height:12px;border-radius:50%;background:#22B8EA;border:2px solid #fff;
  box-shadow:0 1px 3px rgba(0,0,0,.35);flex:0 0 auto}
.pm-mk:hover .pm-mk-dot,.pm-mk:focus-visible .pm-mk-dot{background:#0E9CCF}
.pm-mk-lbl{font-family:var(--display);font-weight:700;font-size:15px;color:var(--text);
  text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff}
.pm-live .maplibregl-popup-content{padding:12px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.pm-live .maplibregl-popup-close-button{font-size:20px;width:28px;height:28px;color:var(--text-2)}
.pmp{display:grid;gap:10px;font-family:var(--body)}
.pmp-city{margin:0;font-size:.78rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3)}
.pmp-job{display:grid;gap:4px;color:var(--text);text-decoration:none}
.pmp-job img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:8px;display:block;margin-bottom:4px}
.pmp-tag{justify-self:start;font-size:.72rem;font-weight:600;color:var(--deep);background:var(--cyan-wash,#E8F7FC);border-radius:999px;padding:3px 9px}
.pmp-job b{font-family:var(--display);font-size:.98rem;line-height:1.25}
.pmp-go{font-size:.86rem;font-weight:600;color:var(--deep)}
.pmp-job:hover b{text-decoration:underline}
.pm-note{margin:0;font-size:.88rem;color:var(--text-3)}
/* Homepage "Where we work" map: the same block, in a centered column */
.pmhome{max-width:1120px;margin-inline:auto}
.pmhome .pmap{display:block}
.pmhome .pm-stage{height:clamp(360px,48vw,560px)}
.pmhome .pm-svg{height:100%;max-height:none}
.pmhome .pm-note{margin:12px 0 0;text-align:center}
.pmhome .pm-more{margin:8px 0 0;text-align:center}
/* MapLibre's "Use Ctrl + scroll" hint: darker panel so the white text passes AA over any tile */
.pm-live .maplibregl-cooperative-gesture-screen{background:rgba(15,17,21,.84)}
/* Gray base map. Filters the map canvas only; markers are DOM elements, so the blue pins keep their color. */
.maplibregl-canvas{filter:grayscale(1)}

/* Home "See all <county> cities" links (14 Nov, Miles) */
.county-more{margin:6px 0 0;text-align:left}
.county-more a{display:inline-flex;align-items:center;min-height:44px;font-family:var(--display);font-weight:700;font-size:.93rem;color:var(--deep);text-decoration:none}
.county-more a:hover{text-decoration:underline}
