/* Community: a short welcome, followed by the map and its profiles. */
.community-page .community-intro{display:flex;position:relative;isolation:isolate;overflow:hidden;min-height:210px;margin-bottom:24px;padding:26px 32px;background:#f0eee6;border-radius:6px}
.community-page .community-intro:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(252,250,245,.98),rgba(252,250,245,.93) 38%,rgba(252,250,245,.35) 70%,rgba(252,250,245,.12))}
.community-intro-copy{padding:0;max-width:48%;align-self:center}
.community-page .community-intro h1{font-size:clamp(2.5rem,5vw,3.5rem);margin:8px 0 12px;line-height:1.05}
.community-page .community-intro p{margin:0;max-width:440px;font-size:1.125rem;line-height:1.7}
.community-intro-photo{position:absolute;inset:0;z-index:-2;display:block;width:100%;height:100%;object-fit:cover;object-position:center;opacity:.9}
.community-page #community{padding-top:0;padding-bottom:48px;border-top:0;scroll-margin-top:24px}
.community-page .map-shell{background:#eef5f3;border:1px solid #cedfdc;padding:clamp(20px,3vw,36px);box-shadow:0 14px 45px rgba(13,83,98,.04)}
.community-page .map-lead{display:grid;grid-template-columns:1.2fr 1fr;column-gap:32px;align-items:center;max-width:none}
.community-page .map-lead .eyebrow{grid-column:1;align-self:end}
.community-page .map-lead h2{grid-column:1;grid-row:2;font-size:clamp(2rem,3.5vw,2.65rem);line-height:1.12;margin:8px 0 0}
.community-page .map-lead>p{grid-column:2;grid-row:1/3}
.community-page .map-lead p{margin:12px 0;font-size:1rem;line-height:1.6}
.community-page .map-tools{margin:22px 0;gap:16px}
.community-page .map-tools label{font-size:1rem}
.community-page .map-tools input,.community-page .map-tools select{min-height:50px;border-color:#b9cfcc;font-size:1rem;border-radius:4px}
.community-page .community-layout{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:22px;align-items:stretch}
.community-page .community-map{height:480px;border:1px solid #c3d5d1;border-radius:4px;position:relative;z-index:0}
.community-page .community-results{background:transparent;padding:0;min-height:0;max-height:480px;overflow-y:auto;scrollbar-width:thin}
.community-page .community-results h3{margin:0 0 14px;font-size:1.125rem}
.community-page .member-card{padding:17px 18px;background:var(--white);border:1px solid #d6e1dd;border-radius:4px;margin:0 0 12px}
.community-page .member-card strong{font-size:1rem;line-height:1.6}
.community-page .member-card small{display:inline-block;padding:3px 10px;margin:9px 0 6px;background:#eaf3ef;color:var(--ocean);border-radius:20px;font-size:.875rem}
.community-page .member-card a{display:block;font-size:.95rem;line-height:1.5;padding:6px 0;min-height:36px}
.community-page .fineprint{font-size:.875rem;line-height:1.65;margin:20px 0}
.community-page .join-box{background:var(--white);padding:0;border:1px solid #cddbd5;border-radius:4px;overflow:hidden}
.community-page .join-box summary{padding:20px 22px;min-height:60px;line-height:1.5;font-size:1.125rem;color:var(--ocean);background:#fff7ef;border-left:4px solid #d26748}
.community-page .join-box summary:hover{background:#faeddf}
.community-page .join-box .join-form,.community-page .join-box #request-preview,.community-page .join-box .join-note{margin:22px}
.community-page .leaflet-popup-content{font-family:inherit;font-size:1rem;line-height:1.6;margin:16px 20px}
.community-page .leaflet-popup-content-wrapper{border-radius:4px}
.community-page #people{padding-top:40px;padding-bottom:64px}
.community-page .people-copy p,.community-page .board p{font-size:1rem;line-height:1.7}
.community-page .board{box-shadow:none;border-radius:4px}
.community-page .map-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;padding:24px;text-align:center;gap:14px}
.community-page .map-placeholder p{font-size:1rem;max-width:300px;margin:0}
.community-page .map-loading{width:28px;height:28px;border:3px solid #bed5d0;border-top-color:var(--ocean);border-radius:50%;animation:map-spin 1s linear infinite}
.community-page .map-loading.is-paused{animation:none}
.community-page [hidden]{display:none!important}
.community-page input:focus-visible,.community-page select:focus-visible,.community-page summary:focus-visible,.community-page a:focus-visible,.community-page button:focus-visible{outline:2px solid var(--ocean);outline-offset:3px}
@keyframes map-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.community-page .map-loading{animation:none}}
@media(max-width:900px){
 .community-intro-copy{max-width:60%}
 .community-page .community-layout{grid-template-columns:1fr}
 .community-page .community-results{max-height:none;overflow:visible}
 .community-page #community-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
 .community-page .member-card{margin:0}
}
@media(max-width:650px){
 .community-page .community-intro{min-height:190px;margin-bottom:20px;padding:22px}
 .community-page .community-intro:before{background:linear-gradient(90deg,rgba(252,250,245,.97),rgba(252,250,245,.88) 65%,rgba(252,250,245,.6))}
 .community-intro-copy{padding:0;max-width:100%}
 .community-page .community-intro h1{font-size:2.5rem;margin:8px 0 12px}
 .community-page .community-intro p{font-size:1rem}
 .community-intro-photo{height:100%;aspect-ratio:auto;object-fit:cover;object-position:62% center}
 .community-page .map-shell{padding:20px 14px}
 .community-page .map-lead{display:block}
 .community-page .map-lead h2{font-size:2rem;margin-bottom:14px}
 .community-page .map-tools{gap:14px;margin:20px 0}
 .community-page .community-map{height:340px}
 .community-page #community-list{grid-template-columns:1fr}
 .community-page .member-card a{display:flex;align-items:center;min-height:44px;font-size:1rem}
 .community-page .join-box summary{padding:18px 14px;font-size:1rem}
 .community-page .join-box .join-form,.community-page .join-box #request-preview,.community-page .join-box .join-note{margin:18px 14px}
 .community-page #people{padding:32px 0 44px}
}

/* Existing palette, with an explicit role label as well as marker colour. */
.community-page .map-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.community-page .map-tools label{min-width:0}
.community-page .map-legend{display:flex;flex-wrap:wrap;gap:12px 24px;margin:0 0 18px;font-size:.9rem}
.map-legend span{display:inline-flex;align-items:center;gap:8px}
.map-key{display:inline-block;width:13px;height:13px;border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #b9cfcc}
.member-key{background:#0d5362}.professional-key{background:#a65332}
.community-page .professional-card{border-left:4px solid #a65332}
.community-page .member-card .profile-kind{font-size:.875rem;font-weight:650;line-height:1.5;margin:5px 0 0;color:var(--ocean)}
.community-page .professional-card .profile-kind{color:#a65332}
.community-page #professional-fields>label{max-width:100%}
@media(max-width:650px){.community-page .map-tools{grid-template-columns:1fr}}
/* Multi-choice fields retain the existing spacing, controls and palette. */
.community-page .join-form>*{min-width:0}
.community-page .activity-fieldset{min-width:0;border:0;padding:0;margin:0}
.community-page .activity-fieldset legend{font-size:.87rem;font-weight:700;color:var(--ink);padding:0;margin-bottom:8px}
.community-page .activity-fieldset>.fineprint{margin:6px 0 14px}
.community-page .activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin-bottom:16px}
.community-page .join-form .activity-choice{display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.5;min-height:32px;cursor:pointer}
.community-page .join-form .activity-choice input{width:18px;height:18px;min-height:18px;margin:3px 0 0;flex:none;accent-color:var(--ocean)}
.community-page .work-country-field{margin-top:20px}
.community-page .country-tools{display:flex;align-items:center;gap:10px;margin-top:7px}
.community-page .country-tools select{min-width:0;flex:1;width:auto}
.community-page .country-tools .btn{flex:none;min-height:47px;padding:10px 16px;white-space:normal}
.community-page .country-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.community-page .country-chip{font:inherit;font-size:.9rem;border:1px solid #bdced0;background:#eaf3ef;color:var(--ocean);padding:8px 12px;cursor:pointer;border-radius:4px;min-height:42px}
.community-page .member-card .profile-work-countries{font-size:.875rem;line-height:1.5;margin:8px 0}
.community-page .map-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:650px){.community-page .activity-grid,.community-page .map-tools{grid-template-columns:1fr}.community-page .country-tools{flex-wrap:wrap}.community-page .country-tools select{flex-basis:100%;width:100%}.community-page .country-tools .btn{width:100%}}
