:root {
  color-scheme: light;
  --ink: #15223b;
  --ink-soft: #4b5a73;
  --muted: #78869b;
  --line: #e3f0e8;
  --surface: #ffffff;
  --canvas: #f7fbf9;
  --primary: #177a48;
  --primary-dark: #125f39;
  --primary-pale: #eaf5ed;
  --green: #177a48;
  --green-pale: #eaf5ed;
  --warning-pale: #fff4df;
  --danger: #b42335;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 14px 40px rgb(18 35 66 / 8%);
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Manrope", "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

.container, .container-xl { width: 100%; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container, .container-xl { max-width: 720px; } }
@media (min-width: 992px) { .container, .container-xl { max-width: 960px; } }
@media (min-width: 1200px) { .container, .container-xl { max-width: 1140px; } }
@media (min-width: 1400px) { .container, .container-xl { max-width: 1320px; } }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .font-heading { font-family: var(--font-heading); letter-spacing: -0.035em; }
h1, h2, h3, p { margin-top: 0; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid #358a58; outline-offset: 3px; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { color: var(--primary); font-size: .75rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.muted { color: var(--muted); }
.surface-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 2px 8px rgb(28 42 67 / 3%); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: inherit; font-size: .84rem; font-weight: 650; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.btn:hover { text-decoration: none; }
.btn:disabled { cursor: not-allowed; opacity: .58; }
.btn-primary { border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 700; }
.btn-primary:hover { border-color: var(--primary-dark); background: var(--primary-dark); color: #fff; }
.btn-outline-primary { border-color: #cff0dd; background: transparent; color: var(--primary); font-weight: 650; }
.btn-outline-primary:hover { border-color: #b3e8ca; background: var(--primary-pale); color: var(--primary-dark); }
.btn-light { border-color: #fff; background: #fff; color: #225437; }
.btn-light:hover { border-color: #ecf8f1; background: #ecf8f1; color: #225437; }
.btn-lg { min-height: 46px; padding: 11px 18px; font-size: .94rem; }
.w-100 { width: 100%; }
.form-label { display: inline-block; margin-bottom: 6px; color: #586780; font-size: .73rem; font-weight: 700; }
.form-control, .form-select { display: block; width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background-color: #fff; color: var(--ink); font: inherit; font-size: .86rem; line-height: 1.45; }
.form-select { padding-right: 28px; }
.form-control:focus, .form-select:focus { border-color: #9ae3b9; box-shadow: 0 0 0 .2rem rgb(23 122 72 / 12%); }
.alert { margin-bottom: 1rem; padding: 12px 15px; border: 0; border-radius: var(--radius-sm); font-size: .85rem; }
.alert-success { background: #ecf4ef; color: #275e3f; }
.alert-danger { background: #fff0f1; color: #9d2534; }
.alert-info { background: #f0fcf5; color: #41825d; }
.h3 { font-size: 1.5rem; }
.pt-3 { padding-top: 1rem; }
.py-5 { padding-block: 3rem; }
.p-4 { padding: 1.5rem; }
.mx-auto { margin-inline: auto; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (min-width: 768px) { .p-md-5 { padding: 3rem !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Public site chrome */
.public-header { position: relative; z-index: 5; background: rgb(255 255 255 / 88%); border-bottom: 1px solid rgb(227 232 240 / 80%); backdrop-filter: blur(14px); }
.public-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-lockup:hover { color: var(--ink); }
.brand-logo { display: block; width: 30px; height: 36px; flex: 0 0 auto; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; gap: 0; font-family: var(--font-heading); font-size: .83rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.brand-name span { color: var(--muted); font-family: var(--font-body); font-size: .69rem; font-weight: 600; letter-spacing: .04em; }
.public-nav { display: flex; align-items: center; gap: 32px; }
.public-nav a { color: #526078; font-size: .88rem; font-weight: 600; text-decoration: none; transition: color .16s ease; }
.public-nav a:hover, .public-nav a[aria-current="page"] { color: var(--ink); }
.public-nav .nav-admin-link { margin-left: 7px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); }
.public-nav .nav-admin-link:hover { border-color: #cce9d9; background: white; }
.public-footer { margin-top: 80px; padding: 23px 0; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .77rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-lockup-small { transform: scale(.88); transform-origin: left center; }

/* Landing page */
.landing-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fcfefd 100%); }
.landing-hero-grid { min-height: 590px; display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: 5%; padding-top: 63px; padding-bottom: 80px; }
.landing-copy { position: relative; z-index: 1; max-width: 600px; }
.landing-copy .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 25px; color: #556882; font-size: .7rem; letter-spacing: .13em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-pale); }
.landing-copy h1 { max-width: 670px; margin-bottom: 22px; font-size: clamp(2.8rem, 5.2vw, 4.65rem); font-weight: 700; line-height: 1.08; letter-spacing: -.065em; }
.landing-copy h1 span { color: var(--primary); }
.landing-lede { max-width: 515px; margin-bottom: 28px; color: #5c6a80; font-size: 1.07rem; line-height: 1.75; }
.landing-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.landing-actions .btn { padding: 13px 19px; border-radius: 10px; font-size: .92rem; }
.landing-actions .btn span { margin-left: 12px; }
.landing-secondary-link { color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.landing-secondary-link span { margin-left: 8px; color: var(--primary); transition: margin .15s ease; }
.landing-secondary-link:hover span { margin-left: 12px; }
.landing-note { display: flex; align-items: center; gap: 8px; margin-top: 25px; color: #77849a; font-size: .76rem; }
.note-check { display: inline-grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: var(--green-pale); color: var(--green); font-size: .68rem; font-weight: 800; }
.landing-visual { position: relative; min-height: 420px; display: grid; place-items: center; isolation: isolate; }
.visual-grid { position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(#dcede3 1px, transparent 1px); background-position: center; background-size: 21px 21px; mask-image: radial-gradient(ellipse at center, #000 22%, transparent 70%); }
.visual-orbit { position: absolute; z-index: -1; border: 1px solid #ddf0e5; border-radius: 50%; }
.orbit-one { width: 425px; height: 250px; transform: rotate(-24deg); }
.orbit-two { width: 340px; height: 370px; transform: rotate(29deg); border-color: #eaf4ee; }
.visual-center-card { position: relative; width: min(365px, 85%); padding: 22px 21px 14px; border: 1px solid #e2f1e8; border-radius: 16px; background: white; box-shadow: 0 23px 65px rgb(32 58 101 / 15%), 0 4px 12px rgb(32 58 101 / 5%); transform: rotate(-2deg); }
.visual-card-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #edf5f0; }
.visual-card-label { color: #8190a6; font-size: .59rem; font-weight: 800; letter-spacing: .12em; }
.visual-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 20px; background: #f0f7f3; color: #3b6d50; font-size: .62rem; font-weight: 700; }
.visual-status i, .visual-unit-footer i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #48986a; }
.visual-card-title { padding: 17px 0 11px; font-family: var(--font-heading); font-size: 1.24rem; font-weight: 750; letter-spacing: -.045em; }
.visual-member-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f2f6; }
.member-avatar { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: .68rem; font-weight: 800; }
.avatar-brand { background: #eaf5ed; color: #17623b; }
.avatar-green { background: #e9f5f0; color: #316949; }
.avatar-sand { background: #f8f0e3; color: #8b6531; }
.avatar-lavender { background: #f0ecfb; color: #684aaf; }
.visual-member-row > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.visual-member-row b { color: #254e35; font-size: .74rem; }
.visual-member-row small { color: #8995a8; font-size: .63rem; }
.visual-member-arrow { color: #9ba7b7; font-size: .8rem; }
.visual-unit-footer { display: flex; justify-content: space-between; gap: 8px; padding-top: 13px; color: #718097; font-size: .62rem; }
.visual-unit-footer > span { display: inline-flex; align-items: center; gap: 6px; }
.visual-unit-footer b { color: var(--primary); font-weight: 700; }
.visual-pin { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #e7f2ec; border-radius: 9px; background: white; box-shadow: 0 8px 22px rgb(36 51 81 / 9%); color: #475873; font-size: .65rem; font-weight: 700; white-space: nowrap; }
.pin-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px #f0fcf5; }
.pin-dot.green { background: #328656; box-shadow: 0 0 0 4px #ecf4ef; }
.pin-dot.slate { background: #75b990; box-shadow: 0 0 0 4px #eff7f2; }
.pin-one { top: 18px; left: 5%; transform: rotate(-6deg); }
.pin-two { right: 0; top: 107px; transform: rotate(4deg); }
.pin-three { bottom: 34px; left: 1%; transform: rotate(4deg); }
.visual-caption { position: absolute; right: 5%; bottom: 5px; color: #8996aa; font-size: .69rem; letter-spacing: .02em; }
.hero-bottom-rule { height: 1px; margin: 0 auto; max-width: 1180px; background: linear-gradient(90deg, transparent, #e4f1e9 12%, #e4f1e9 88%, transparent); }
.landing-proof { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); align-items: center; gap: 30px; padding-top: 34px; padding-bottom: 45px; }
.proof-intro { display: flex; align-items: center; gap: 12px; color: #627087; font-size: .8rem; line-height: 1.5; }
.proof-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #dff0e6; border-radius: 11px; color: var(--primary); font-size: 1.1rem; }
.proof-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.proof-metric { display: flex; flex-direction: column; gap: 2px; padding-left: 28px; border-left: 1px solid var(--line); }
.proof-metric b { color: var(--ink); font-family: var(--font-heading); font-size: 1.45rem; font-weight: 750; letter-spacing: -.04em; }
.proof-metric span { color: #7b8798; font-size: .72rem; }
.landing-how { padding-top: 65px; padding-bottom: 30px; border-top: 1px solid #e8f2ec; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.section-heading-row .eyebrow { margin-bottom: 12px; }
.section-heading-row h2 { margin: 0; font-size: clamp(2rem, 3.2vw, 2.7rem); font-weight: 700; line-height: 1.12; }
.section-heading-row > p { max-width: 385px; margin: 0 0 5px; color: #66758b; font-size: .92rem; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.feature-card { position: relative; min-height: 245px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; }
.feature-card::after { position: absolute; right: -33px; bottom: -64px; width: 155px; height: 155px; border: 1px solid #ecf6f0; border-radius: 50%; content: ""; }
.feature-icon { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 21px; border-radius: 11px; }
.feature-icon svg, .search-control svg, .member-phone svg, .profile-phone svg, .empty-search svg, .stat-icon svg, .action-panel-icon svg, .upload-icon svg, .upload-drop-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.icon-search { background: #f0fdf6; color: #4fa875; }
.icon-unit { background: #edf5f0; color: #377853; }
.icon-contact { background: #fbf3e7; color: #9b7135; }
.feature-number { position: absolute; top: 26px; right: 24px; color: #a5afbe; font-size: .65rem; font-weight: 700; letter-spacing: .08em; }
.feature-card h3 { margin-bottom: 9px; font-size: 1.05rem; font-weight: 750; letter-spacing: -.03em; }
.feature-card p { max-width: 300px; margin-bottom: 16px; color: #718096; font-size: .8rem; line-height: 1.65; }
.feature-card a { color: var(--primary); font-size: .77rem; font-weight: 700; text-decoration: none; }
.feature-card a span { margin-left: 6px; }
.landing-cta { padding-top: 43px; padding-bottom: 30px; }
.cta-panel { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 43px 48px; overflow: hidden; border-radius: 18px; background: #1c432d; color: white; }
.cta-panel::after { position: absolute; top: -100px; right: 28%; width: 300px; height: 300px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 50%; box-shadow: 0 0 0 38px rgb(255 255 255 / 3%), 0 0 0 82px rgb(255 255 255 / 2%); content: ""; }
.cta-panel .eyebrow { color: #b4f3cf; }
.cta-panel h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 650; line-height: 1.2; }
.cta-panel .btn { position: relative; z-index: 1; padding: 12px 17px; border: 0; border-radius: 9px; color: #225437; font-size: .85rem; font-weight: 750; }
.cta-panel .btn span { margin-left: 11px; }

/* Public member directory and profiles */
.directory-page { min-height: 660px; padding-top: 54px; }
.directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 26px; }
.directory-heading .eyebrow { margin-bottom: 9px; }
.directory-heading h1 { margin-bottom: 7px; font-size: clamp(2rem, 3.5vw, 2.65rem); font-weight: 750; }
.directory-heading p { margin-bottom: 0; color: var(--muted); font-size: .91rem; }
.directory-count { display: flex; flex-direction: column; align-items: end; color: var(--muted); font-size: .71rem; text-decoration: none; }
.directory-count strong { color: var(--ink); font-family: var(--font-heading); font-size: 1.4rem; }
.directory-filter-panel { display: grid; grid-template-columns: 1.42fr 1px 1fr 1px 1fr 1px 1fr 46px; align-items: center; gap: 13px; padding: 14px; border: 1px solid #e1eee6; border-radius: 14px; background: white; box-shadow: 0 6px 22px rgb(25 44 79 / 5%); }
.directory-filter-panel label { display: block; margin: 0 0 4px 2px; color: #708097; font-size: .65rem; font-weight: 650; }
.directory-filter-panel .form-control, .directory-filter-panel .form-select { min-height: 36px; padding: 5px 9px; border: 0; border-radius: 7px; background-color: transparent; font-size: .81rem; box-shadow: none; }
.directory-filter-panel .form-select:disabled { color: #a3adba; opacity: 1; }
.search-control { position: relative; }
.search-control svg { position: absolute; top: 8px; left: 8px; color: #8a97a9; pointer-events: none; }
.search-control .form-control { padding-left: 33px; }
.filter-divider { width: 1px; height: 38px; background: #e9edf2; }
.filter-submit { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--primary); color: white; transition: background .16s ease, transform .16s ease; }
.filter-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.filter-submit svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.applied-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 5px; }
.applied-label { margin-right: 2px; color: #77849a; font-size: .71rem; }
.filter-chip { padding: 5px 10px; border: 1px solid #e2eee7; border-radius: 20px; background: #fff; color: #40536f; font-size: .7rem; font-weight: 650; }
.clear-filters { margin-left: 5px; color: var(--primary); font-size: .71rem; font-weight: 700; text-decoration: none; }
.member-list { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.member-card { min-height: 86px; display: flex; align-items: center; gap: 14px; padding: 13px 19px; border-bottom: 1px solid #edf0f4; transition: background .15s ease; }
.member-card:last-child { border-bottom: 0; }
.member-card:hover { background: #fcfefd; }
.member-avatar-large { width: 43px; height: 43px; font-size: .8rem; }
.member-main { min-width: 0; flex: 1; }
.member-name { display: inline-block; margin-bottom: 2px; color: #233f2f; font-size: .87rem; font-weight: 750; text-decoration: none; }
.member-name:hover { color: var(--primary); }
.member-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: #8490a3; font-size: .7rem; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #a3adba; }
.member-phone { display: flex; align-items: center; gap: 7px; min-width: 155px; color: #52617a; font-size: .76rem; text-decoration: none; }
.member-phone svg { width: 15px; height: 15px; color: #8b97a8; }
.member-phone:hover { color: var(--primary); }
.member-open { display: flex; align-items: center; gap: 9px; color: #76849a; font-size: .7rem; font-weight: 650; text-decoration: none; }
.member-open b { color: var(--primary); font-size: .95rem; }
.pagination-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px 2px; }
.pagination-link { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #52617a; font-size: .74rem; font-weight: 700; text-decoration: none; }
.pagination-link:hover { border-color: #c6ebd6; background: #f9fefb; }
.pagination-link.disabled { color: #aab3c0; }
.pagination-status { color: #77849a; font-size: .72rem; }
.pagination-status b { color: var(--ink-soft); }
.directory-workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(275px, .8fr); align-items: start; gap: 14px; margin-top: 24px; }
.directory-results-column { min-width: 0; }
.directory-view-toggle { display: none; }
.directory-map-column { position: sticky; top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 3px 12px rgb(24 41 71 / 4%); }
.directory-map-heading { display: flex; justify-content: space-between; align-items: center; min-height: 63px; padding: 11px 14px; border-bottom: 1px solid #edf0f4; }
.directory-map-heading > div { display: flex; flex-direction: column; }
.directory-map-heading .eyebrow { margin: 0 0 2px; font-size: .57rem; }
.directory-map-heading b { color: #366147; font-size: .75rem; }
.directory-map-heading > a { font-size: .67rem; font-weight: 700; text-decoration: none; }
.directory-map { height: 438px; background: #eaf5ee; }
.directory-map-foot { display: flex; justify-content: space-between; gap: 8px; padding: 10px 13px; color: #95a0ae; font-size: .59rem; }
.directory-map-foot > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.directory-map-foot i { width: 6px; height: 6px; border-radius: 50%; background: #5eb885; }
.directory-map-pending { min-height: 438px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 20px; background: linear-gradient(160deg, #f1f8f4, #fafdfb); text-align: center; }
.directory-map-pending > div:last-child { max-width: 225px; }
.directory-map-pending b { color: #3f506a; font-family: var(--font-heading); font-size: .79rem; }
.directory-map-pending p { margin: 5px 0 8px; color: #8995a5; font-size: .65rem; line-height: 1.6; }
.directory-map-pending a { font-size: .65rem; font-weight: 700; text-decoration: none; }
.pending-map-art { position: relative; width: 120px; height: 100px; overflow: hidden; border: 1px solid #e1efe7; border-radius: 10px; background-color: #eef6f1; background-image: linear-gradient(35deg, transparent 47%, #dcede3 48%, #dcede3 50%, transparent 51%), linear-gradient(135deg, transparent 47%, #e0eee6 48%, #e0eee6 50%, transparent 51%); background-size: 49px 45px; }
.pending-map-art span { position: absolute; width: 10px; height: 10px; border: 2px solid white; border-radius: 50% 50% 50% 0; background: #5cb080; box-shadow: 0 2px 5px rgb(25 54 100 / 25%); transform: rotate(-45deg); }
.pending-map-art span:nth-child(1) { top: 20px; left: 29px; }
.pending-map-art span:nth-child(2) { top: 52px; left: 76px; background: #377d55; }
.pending-map-art span:nth-child(3) { top: 32px; left: 91px; background: #82b898; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 55px 20px; text-align: center; }
.empty-search { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 17px; border-radius: 14px; background: var(--primary-pale); color: var(--primary); }
.empty-search svg { width: 22px; height: 22px; }
.empty-state h2 { margin-bottom: 6px; font-size: 1.15rem; }
.empty-state p { margin-bottom: 18px; color: var(--muted); font-size: .85rem; }
.member-detail-page { min-height: 620px; padding-top: 37px; }
.detail-breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; color: #8a96a7; font-size: .75rem; }
.detail-breadcrumb a { color: #5f6f87; font-weight: 650; text-decoration: none; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(235px, .75fr); align-items: start; gap: 20px; }
.profile-main { padding: 33px; }
.profile-heading { display: flex; align-items: center; gap: 18px; }
.profile-avatar { width: 65px; height: 65px; font-size: 1.15rem; }
.profile-heading .eyebrow { margin-bottom: 5px; font-size: .65rem; }
.profile-heading h1 { margin-bottom: 4px; font-size: 1.75rem; font-weight: 750; }
.profile-context { margin: 0; color: var(--muted); font-size: .82rem; }
.profile-divider { height: 1px; margin: 25px 0; background: #edf0f4; }
.profile-section .eyebrow { margin-bottom: 7px; font-size: .64rem; }
.profile-section h2 { margin-bottom: 12px; font-size: 1rem; font-weight: 750; letter-spacing: -.02em; }
.profile-phone { display: inline-flex; align-items: center; gap: 9px; color: #41825d; font-size: .87rem; font-weight: 700; text-decoration: none; }
.profile-phone svg { color: #71b38b; }
.profile-location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.profile-location-grid div { display: flex; flex-direction: column; gap: 4px; }
.profile-location-grid span { color: #8692a3; font-size: .68rem; }
.profile-location-grid b { color: #356147; font-size: .81rem; }
.back-to-results { display: inline-flex; gap: 8px; margin-top: 25px; color: var(--primary); font-size: .79rem; font-weight: 700; text-decoration: none; }
.profile-side-card { padding: 24px 22px; border: 1px solid #e0f2e7; border-radius: 14px; background: linear-gradient(150deg, #f4fdf8 0%, #fff 90%); }
.profile-side-card .eyebrow { font-size: .62rem; }
.profile-side-card h2 { margin: 12px 0 8px; font-size: 1.2rem; font-weight: 750; line-height: 1.25; }
.profile-side-card p:not(.eyebrow) { color: #6f7d92; font-size: .8rem; line-height: 1.7; }
.profile-side-card a { font-size: .77rem; font-weight: 700; text-decoration: none; }
.profile-side-card a span { margin-left: 5px; }

/* Admin workspace */
.admin-body { background: #f6f7f9; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 23px 15px 17px; border-right: 1px solid #e6e9ee; background: #fff; }
.admin-brand { padding: 2px 7px 25px; }
.admin-brand .brand-logo { width: 28px; height: 34px; }
.admin-nav-label { margin: 10px 10px 9px; color: #9aa4b2; font-size: .62rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.admin-nav, .admin-sidebar-bottom { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a, .admin-sidebar-bottom a, .admin-sidebar-bottom button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: #65738a; font-size: .79rem; font-weight: 600; text-align: left; text-decoration: none; transition: background .14s ease, color .14s ease; }
.admin-nav a:hover, .admin-sidebar-bottom a:hover, .admin-sidebar-bottom button:hover { background: #f5faf7; color: var(--ink); }
.admin-nav a.active { background: #f0fdf6; color: #17623b; font-weight: 750; }
.nav-glyph { width: 17px; display: inline-grid; place-items: center; color: #8491a4; font-family: var(--font-body); font-size: 1rem; }
.nav-glyph svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-nav a.active .nav-glyph { color: var(--primary); }
.admin-sidebar-bottom { margin-top: auto; padding-top: 15px; border-top: 1px solid #edf0f4; }
.admin-sidebar-bottom form { margin: 0; }
.admin-sidebar-bottom button { cursor: pointer; }
.admin-login-note { margin: 0 8px; color: #8b97a8; font-size: .77rem; line-height: 1.6; }
.admin-main { min-width: 0; }
.admin-topbar { height: 61px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid #e7eaf0; background: rgb(255 255 255 / 84%); color: #77849a; font-size: .71rem; }
.crumb-separator { padding: 0 8px; color: #c0c7d1; }
.admin-user-pill { display: flex; align-items: center; gap: 8px; color: #52617a; font-weight: 650; }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; }
.mobile-signout { display: none; margin: 0; }
.mobile-signout button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #52617a; font-size: .65rem; font-weight: 700; }
.admin-avatar { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #edfcf3; color: #46a06d; font-size: .64rem; font-weight: 800; }
.admin-content { max-width: 1320px; margin: 0 auto; padding: 37px 38px 60px; }
.admin-flashes { max-width: 1320px; margin: 18px auto 0; padding: 0 38px; }
.admin-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-page-heading .eyebrow { margin-bottom: 7px; font-size: .64rem; }
.admin-page-heading h1 { margin-bottom: 6px; font-size: 1.8rem; font-weight: 750; letter-spacing: -.05em; }
.admin-page-heading p:not(.eyebrow) { margin: 0; color: #7a879a; font-size: .83rem; }
.admin-page-heading .btn { padding: 10px 14px; border-radius: 8px; font-size: .78rem; }
.admin-page-heading .btn span { margin-right: 7px; font-size: .95rem; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.admin-stat-card { min-height: 135px; padding: 17px 19px; border: 1px solid #e5e9ef; border-radius: 12px; background: #fff; }
.stat-topline { display: flex; justify-content: space-between; align-items: center; color: #758298; font-size: .73rem; font-weight: 650; }
.stat-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; }
.stat-icon svg { width: 17px; height: 17px; }
.stat-icon-brand { background: #eaf5ed; color: #17623b; }
.stat-icon-green { background: #ecf4ef; color: #407758; }
.stat-icon-sand { background: #faf3e9; color: #9d7940; }
.admin-stat-card > strong { display: block; margin-top: 6px; color: #213e2e; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 750; letter-spacing: -.06em; line-height: 1.15; }
.admin-stat-card > small { color: #96a0af; font-size: .67rem; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(245px, .75fr); align-items: stretch; gap: 15px; }
.admin-panel { padding: 20px 21px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.panel-heading .eyebrow { margin-bottom: 5px; font-size: .6rem; }
.panel-heading h2 { margin: 0; font-size: 1.08rem; font-weight: 750; }
.panel-heading > a { color: var(--primary); font-size: .69rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.panel-heading > a span { padding-left: 4px; }
.recent-member-row { display: flex; align-items: center; gap: 10px; min-height: 59px; border-top: 1px solid #f0f2f5; }
.recent-member-name { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.recent-member-name b { overflow: hidden; color: #345d44; font-size: .74rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.recent-member-name small { overflow: hidden; color: #98a2b0; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.recent-member-unit { color: #8b96a6; font-size: .65rem; white-space: nowrap; }
.admin-action-panel { display: flex; flex-direction: column; align-items: flex-start; padding: 21px; border: 1px solid #e0f2e8; border-radius: 12px; background: linear-gradient(150deg, #f6fdf9, #fff 83%); }
.action-panel-icon { display: grid; width: 37px; height: 37px; place-items: center; margin-bottom: 18px; border: 1px solid #e0f2e8; border-radius: 10px; background: white; color: #4aaa73; }
.action-panel-icon svg, .upload-icon svg, .upload-drop-icon svg { width: 19px; height: 19px; }
.admin-action-panel .eyebrow { margin-bottom: 8px; font-size: .61rem; }
.admin-action-panel h2 { max-width: 260px; margin-bottom: 7px; font-size: 1.15rem; font-weight: 750; line-height: 1.28; }
.admin-action-panel p:not(.eyebrow) { color: #77849a; font-size: .74rem; line-height: 1.65; }
.admin-action-panel .btn { margin-top: 5px; padding: 9px 12px; font-size: .72rem; }
.admin-action-panel .btn span { margin-left: 6px; }
.action-panel-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 22px; color: #8995a6; font-size: .62rem; }
.action-check { display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; background: #eaf3ee; color: #336d4c; font-size: .58rem; font-weight: 800; }
.dashboard-empty { display: flex; flex-direction: column; align-items: center; padding: 31px 15px 22px; text-align: center; }
.empty-icon { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 11px; border-radius: 10px; background: #f0fdf6; color: var(--primary); font-size: 1.2rem; }
.dashboard-empty h3 { margin-bottom: 5px; font-size: .92rem; font-weight: 750; }
.dashboard-empty p { margin-bottom: 13px; color: #8390a3; font-size: .72rem; }
.dashboard-empty .btn { font-size: .7rem; }
.admin-login-layout { max-width: 900px; min-height: calc(100vh - 150px); display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: 9%; margin: 0 auto; }
.admin-login-copy .eyebrow { margin-bottom: 13px; }
.admin-login-copy h1 { margin-bottom: 10px; font-size: 2.45rem; font-weight: 750; }
.admin-login-copy > p:not(.eyebrow) { max-width: 320px; color: #7b8799; font-size: .9rem; line-height: 1.7; }
.login-security-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 38px; color: #51617a; font-size: .78rem; font-weight: 700; }
.login-security-note > span:first-child { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: #ecf4ef; color: #31754e; font-size: .7rem; }
.login-security-note small { color: #8995a7; font-size: .67rem; font-weight: 400; }
.admin-login-card { padding: 29px; box-shadow: 0 12px 32px rgb(22 38 68 / 5%); }
.admin-login-card h2 { margin-bottom: 5px; font-size: 1.18rem; font-weight: 750; }
.admin-login-card > p { margin-bottom: 24px; color: #8591a2; font-size: .74rem; }
.admin-login-card .form-label { margin-bottom: 6px; color: #586780; font-size: .73rem; font-weight: 700; }
.admin-login-card .form-control { font-size: .82rem; }
.admin-login-card .btn { min-height: 47px; font-size: .81rem; }
.login-back-link { display: inline-block; margin-top: 20px; color: #78869b; font-size: .72rem; font-weight: 650; text-decoration: none; }
.login-back-link:hover { color: var(--primary); }
.field-error { margin-top: 5px; color: var(--danger); font-size: .7rem; }
.subtle-back-link { color: #718096; font-size: .75rem; font-weight: 650; text-decoration: none; }
.subtle-back-link:hover { color: var(--primary); }
.import-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(245px, .75fr); align-items: start; gap: 16px; }
.import-main-card { padding: 22px; }
.import-card-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.upload-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #f0fcf5; color: #4ca673; }
.import-card-title h2 { margin: 0 0 4px; font-size: .99rem; font-weight: 750; }
.import-card-title p { margin: 0; color: #8a95a5; font-size: .7rem; }
.upload-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 190px; padding: 20px; border: 1px dashed #bde1cb; border-radius: 11px; background: #fbfefc; color: #52617a; cursor: pointer; text-align: center; transition: border-color .16s ease, background .16s ease; }
.upload-dropzone:hover, .upload-dropzone:focus-within { border-color: #86d0a6; background: #f8fefb; }
.upload-drop-icon { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 10px; border-radius: 12px; background: #f0fcf5; color: #52a777; }
.upload-dropzone > b { color: #356046; font-size: .76rem; }
.upload-dropzone > span:not(.upload-drop-icon) { margin-top: 4px; color: #8d98a8; font-size: .65rem; }
.upload-dropzone .selected-file { color: var(--primary) !important; font-weight: 700; }
.import-form-actions { display: flex; align-items: center; gap: 13px; margin-top: 17px; }
.import-form-actions .btn { padding: 10px 14px; font-size: .76rem; }
.import-form-actions .btn span { margin-left: 7px; }
.import-form-actions > span { color: #909bab; font-size: .65rem; }
.import-help-card { padding: 20px; border: 1px solid #e2efe7; border-radius: 12px; background: #fff; }
.import-help-card .eyebrow { margin-bottom: 8px; font-size: .61rem; }
.import-help-card h2 { margin-bottom: 6px; font-size: 1.03rem; font-weight: 750; }
.import-help-card > p:not(.eyebrow) { margin-bottom: 12px; color: #8490a2; font-size: .7rem; }
.csv-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.csv-fields span { padding: 5px 8px; border: 1px solid #e6eaf0; border-radius: 6px; background: #fafdfb; color: #617089; font-size: .61rem; font-weight: 650; }
.import-help-divider { height: 1px; margin: 16px 0; background: #edf0f4; }
.import-help-card h3 { margin-bottom: 9px; font-size: .78rem; font-weight: 750; }
.import-help-card ul { margin: 0; padding-left: 17px; color: #7c899c; font-size: .68rem; line-height: 1.75; }
.import-summary { margin-top: 20px; padding: 15px; border: 1px solid #d7e9df; border-radius: 10px; background: #f4faf6; }
.import-summary h3 { margin-bottom: 10px; color: #305741; font-size: .83rem; font-weight: 750; }
.import-summary-grid { display: flex; flex-wrap: wrap; gap: 18px; color: #5e796d; font-size: .67rem; }
.import-summary-grid b { color: #305741; font-size: .9rem; }
.import-errors { margin-top: 10px; color: #73574a; font-size: .68rem; }
.import-errors summary { cursor: pointer; font-weight: 700; }
.import-errors ul { max-height: 170px; overflow: auto; margin: 7px 0 0; padding-left: 20px; }

/* The homepage is intentionally limited to a centered hero and coverage counts. */
.landing-home .landing-hero-grid {
  min-height: 590px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding-top: 64px;
  padding-bottom: 68px;
}
.landing-home .landing-copy { width: 100%; max-width: 850px; text-align: center; }
.landing-home .landing-copy .eyebrow { justify-content: center; }
.landing-home .landing-copy h1 { max-width: 850px; margin-right: auto; margin-left: auto; }
.landing-home .landing-lede { max-width: 620px; margin-right: auto; margin-left: auto; }
.landing-home .landing-actions { justify-content: center; }
.landing-home .landing-note { justify-content: center; }
.landing-home .landing-proof { margin-top: 0; }

@media (max-width: 1024px) {
  .landing-hero-grid { grid-template-columns: 1fr .85fr; gap: 20px; }
  .landing-copy h1 { font-size: clamp(2.5rem, 5.7vw, 3.8rem); }
  .landing-visual { min-height: 370px; }
  .directory-filter-panel { grid-template-columns: 1.35fr 1px 1fr 1px 1fr 46px; }
  .directory-filter-panel .filter-divider:nth-of-type(6), .filter-select-wrap:last-of-type { display: none; }
  .admin-content { padding-right: 26px; padding-left: 26px; }
  .admin-topbar { padding: 0 26px; }
  .admin-flashes { padding-right: 26px; padding-left: 26px; }
}

@media (max-width: 767px) {
  .public-header-inner { min-height: 65px; }
  .public-nav { gap: 14px; }
  .public-nav a { font-size: .75rem; }
  .public-nav .nav-admin-link { display: none; }
  .landing-hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 19px; padding-top: 47px; padding-bottom: 48px; }
  .landing-copy h1 { max-width: 560px; font-size: clamp(2.45rem, 9vw, 3.6rem); }
  .landing-lede { max-width: 540px; font-size: .96rem; }
  .landing-visual { min-height: 355px; }
  .visual-center-card { width: min(355px, 82%); }
  .pin-one { left: 0; top: 9px; }
  .pin-two { right: -2px; top: 87px; }
  .pin-three { left: 0; bottom: 23px; }
  .landing-proof { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; padding-top: 25px; padding-bottom: 34px; }
  .proof-intro { grid-column: 1 / -1; padding-bottom: 10px; }
  .proof-metric { padding-left: 10px; }
  .proof-metric b { font-size: 1.18rem; }
  .proof-metric span { font-size: .63rem; }
  .landing-how { padding-top: 43px; }
  .section-heading-row { display: block; margin-bottom: 22px; }
  .section-heading-row > p { max-width: 500px; margin-top: 16px; font-size: .83rem; }
  .feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature-card { min-height: 215px; padding: 20px; }
  .cta-panel { display: block; padding: 30px 25px; }
  .cta-panel .btn { margin-top: 22px; }
  .public-footer { margin-top: 55px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 11px; }
  .directory-page { padding-top: 36px; }
  .directory-heading { align-items: flex-start; }
  .directory-count { padding-top: 8px; text-align: right; }
  .directory-heading h1 { font-size: 2rem; }
  .directory-filter-panel { grid-template-columns: 1fr 1fr; gap: 11px 12px; }
  .search-field-wrap { grid-column: 1 / -1; }
  .directory-filter-panel .filter-divider { display: none; }
  .filter-select-wrap:last-of-type { display: block; }
  .filter-submit { grid-column: 1 / -1; width: 100%; }
  .directory-view-toggle { display: flex; gap: 3px; margin-top: 18px; padding: 3px; border: 1px solid #e1eee6; border-radius: 9px; background: #f0f2f6; }
  .directory-view-toggle button { flex: 1; min-height: 37px; border: 0; border-radius: 7px; background: transparent; color: #758198; font-size: .72rem; font-weight: 700; }
  .directory-view-toggle button.active { background: #fff; color: #3b8e5f; box-shadow: 0 1px 4px rgb(28 44 75 / 10%); }
  .directory-view-toggle button span { margin-left: 3px; color: #7182a1; font-size: .65rem; }
  .directory-workspace { display: block; margin-top: 14px; }
  .directory-workspace[data-mobile-view="results"] .directory-map-column { display: none; }
  .directory-workspace[data-mobile-view="map"] .directory-results-column { display: none; }
  .directory-map-column { position: static; margin-top: 8px; }
  .directory-map { height: min(62vh, 480px); min-height: 340px; }
  .directory-map-pending { min-height: 340px; }
  .member-card { align-items: flex-start; flex-wrap: wrap; gap: 9px 11px; padding: 13px; }
  .member-avatar-large { width: 37px; height: 37px; }
  .member-main { width: calc(100% - 50px); flex: initial; }
  .member-meta { gap: 5px; font-size: .65rem; }
  .member-phone { margin-left: 48px; min-width: 0; font-size: .72rem; }
  .member-open { margin-left: auto; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-main { padding: 22px 18px; }
  .profile-heading { align-items: flex-start; gap: 13px; }
  .profile-avatar { width: 52px; height: 52px; }
  .profile-heading h1 { font-size: 1.4rem; }
  .profile-location-grid { grid-template-columns: 1fr; gap: 12px; }
  .profile-side-card { padding: 20px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; padding: 11px 16px; border-right: 0; border-bottom: 1px solid #e6e9ee; }
  .admin-brand { padding: 0; }
  .admin-brand .brand-logo { width: 25px; height: 30px; }
  .admin-nav-label, .admin-sidebar-bottom, .admin-login-note { display: none; }
  .mobile-signout { display: block; }
  .admin-nav { flex-direction: row; gap: 4px; }
  .admin-nav a { width: auto; padding: 8px; font-size: .66rem; }
  .admin-nav .nav-glyph { display: none; }
  .admin-topbar { height: 48px; padding: 0 17px; font-size: .65rem; }
  .admin-user-pill { display: none; }
  .admin-content { padding: 26px 16px 42px; }
  .admin-flashes { padding: 0 16px; }
  .admin-page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 20px; }
  .admin-page-heading h1 { font-size: 1.55rem; }
  .admin-stat-grid { grid-template-columns: 1fr; gap: 9px; }
  .admin-stat-card { min-height: 108px; }
  .admin-dashboard-grid, .import-layout { grid-template-columns: 1fr; }
  .admin-panel, .admin-action-panel, .import-main-card, .import-help-card { padding: 17px; }
  .admin-login-layout { min-height: auto; grid-template-columns: 1fr; gap: 22px; padding: 35px 0; }
  .admin-login-copy h1 { font-size: 2rem; }
  .login-security-note { margin-top: 19px; }
  .admin-login-card { padding: 21px; }
  .import-form-actions { align-items: flex-start; flex-direction: column; }
  .import-page-heading .subtle-back-link { display: none; }
}

@media (max-width: 767px) {
  .landing-home .landing-hero-grid { min-height: auto; padding-top: 54px; padding-bottom: 55px; }
  .landing-home .landing-copy h1 { max-width: 600px; }
  .landing-home .landing-lede { max-width: 540px; }
}

@media (max-width: 420px) {
  .public-header-inner { align-items: center; gap: 10px; }
  .brand-lockup { gap: 7px; }
  .brand-logo { width: 25px; height: 30px; }
  .brand-name { font-size: .73rem; }
  .brand-name span { font-size: .61rem; }
  .public-nav { gap: 11px; }
  .public-nav a { font-size: .69rem; }
  .landing-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .visual-pin { padding: 7px 9px; font-size: .57rem; }
  .pin-two { right: -5px; }
  .visual-caption { right: 1%; }
  .proof-metric { padding-left: 7px; }
  .proof-metric span { font-size: .58rem; }
  .directory-heading p { max-width: 210px; font-size: .78rem; }
  .directory-count { font-size: .62rem; }
  .directory-count strong { font-size: 1.2rem; }
  .member-open span { display: none; }
  .admin-brand .brand-name { font-size: .67rem; }
  .admin-nav a { padding: 7px 6px; font-size: .61rem; }
}

/* Keep the compact homepage controls and metrics aligned on phone screens. */
@media (max-width: 420px) {
  .landing-home .landing-actions {
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 14px;
  }
  .landing-home .landing-actions .btn { padding: 11px 13px; font-size: .82rem; white-space: nowrap; }
  .landing-home .landing-actions .btn span { margin-left: 6px; }
  .landing-home .landing-secondary-link { font-size: .79rem; white-space: nowrap; }
  .landing-home .landing-secondary-link span { margin-left: 5px; }
}
@media (max-width: 360px) {
  .landing-home .landing-actions { flex-direction: column; gap: 13px; }
}
@media (max-width: 767px) {
  .landing-home .landing-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 0; }
  .landing-home .landing-proof .proof-intro { grid-column: 1 / -1; }
  .landing-home .landing-proof .proof-metric {
    align-items: center;
    min-width: 0;
    padding: 0 4px;
    border-left: 0;
    text-align: center;
  }
  .landing-home .landing-proof .proof-metric + .proof-metric { border-left: 1px solid var(--line); }
  .landing-home .landing-proof .proof-metric span { font-size: clamp(.56rem, 2.5vw, .67rem); }
}

/* Ward map */
.map-page { min-height: 620px; padding-top: 45px; }
.map-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 22px; }
.map-heading .eyebrow { margin-bottom: 8px; }
.map-heading h1 { margin-bottom: 7px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 750; }
.map-heading p:not(.eyebrow) { margin-bottom: 0; color: #7b8799; font-size: .85rem; }
.map-heading .btn { padding: 9px 12px; border-radius: 8px; font-size: .74rem; }
.map-heading .btn span { margin-left: 6px; }
.map-workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); min-height: 510px; overflow: hidden; border: 1px solid #dfede5; border-radius: 14px; background: white; box-shadow: 0 8px 24px rgb(24 41 71 / 5%); }
.polling-map { min-height: 510px; background: #eaf5ee; }
.map-list-panel { min-width: 0; padding: 17px 18px 10px; border-left: 1px solid #e8f2ec; }
.map-list-header { display: flex; align-items: center; justify-content: space-between; }
.map-list-header .eyebrow { margin: 0; font-size: .61rem; }
.map-list-header > b { display: grid; min-width: 24px; height: 24px; place-items: center; padding: 0 5px; border-radius: 7px; background: #f0f8f3; color: #5d6c83; font-size: .65rem; }
.map-list-panel > p { margin: 5px 0 12px; color: #8a96a6; font-size: .66rem; }
.map-unit-list { max-height: 440px; overflow: auto; }
.map-unit-item { display: flex; align-items: center; gap: 9px; min-height: 53px; padding: 8px 3px; border-top: 1px solid #eff1f5; color: inherit; text-decoration: none; }
.map-unit-item:hover { background: #fbfefc; }
.map-unit-marker { width: 9px; height: 9px; flex: 0 0 auto; border: 2px solid white; border-radius: 50%; background: #4cb177; box-shadow: 0 0 0 1px #a7d6bb; }
.map-unit-item > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.map-unit-item b { color: #42516a; font-size: .69rem; }
.map-unit-item small { overflow: hidden; color: #8b97a7; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.map-unit-count { display: grid; min-width: 24px; height: 23px; place-items: center; padding: 0 5px; border-radius: 7px; background: #f5faf7; color: #77849a; font-size: .62rem; }
.map-attribution-note { margin: 9px 1px 0; color: #919bab; font-size: .62rem; }
.map-attribution-note a { color: #6b7a91; }
.map-empty-card { overflow: hidden; }
.map-empty-art { position: relative; min-height: 390px; display: grid; place-items: center; overflow: hidden; background: #f0f7f3; }
.map-empty-grid { position: absolute; inset: -30%; transform: rotate(-7deg); background-color: #f4f9f6; background-image: linear-gradient(32deg, transparent 48%, #ddede3 49%, #ddede3 50%, transparent 51%), linear-gradient(145deg, transparent 47%, #e2f0e8 48%, #e2f0e8 49%, transparent 50%); background-size: 138px 82px, 185px 132px; }
.map-empty-pin { position: absolute; width: 13px; height: 13px; border: 3px solid white; border-radius: 50% 50% 50% 0; background: #49b477; box-shadow: 0 4px 9px rgb(40 68 115 / 24%); transform: rotate(-45deg); }
.pin-a { top: 20%; left: 24%; }
.pin-b { top: 28%; right: 22%; background: #31754e; }
.pin-c { bottom: 20%; left: 31%; background: #87bd9d; }
.map-empty-message { position: relative; z-index: 1; width: min(360px, 82%); display: flex; flex-direction: column; align-items: center; padding: 27px 24px; border: 1px solid #e3f0e8; border-radius: 14px; background: rgb(255 255 255 / 95%); box-shadow: 0 16px 45px rgb(34 53 83 / 12%); text-align: center; }
.map-empty-icon { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 12px; background: #f0fcf5; color: #4aa772; }
.map-empty-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.map-empty-message > b { margin-bottom: 6px; color: #315d43; font-family: var(--font-heading); font-size: .9rem; }
.map-empty-message > span:not(.map-empty-icon) { color: #8490a1; font-size: .69rem; line-height: 1.6; }
.map-empty-message > a { margin-top: 9px; color: var(--primary); font-size: .67rem; font-weight: 700; text-decoration: none; }
.map-empty-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; }
.map-empty-bottom > span { display: flex; flex-direction: column; }
.map-empty-bottom b { color: #42516a; font-size: .73rem; }
.map-empty-bottom small { color: #8b97a7; font-size: .64rem; }
.map-empty-bottom .btn { flex: 0 0 auto; padding: 9px 11px; font-size: .69rem; }
.map-popup { min-width: 160px; display: flex; flex-direction: column; gap: 4px; color: #40516b; }
.map-popup b { font-size: .8rem; }
.map-popup span { color: #7c899a; font-size: .69rem; }
.map-popup a { margin-top: 4px; font-size: .69rem; font-weight: 700; text-decoration: none; }
.leaflet-container .leaflet-control-attribution a { color: var(--primary-dark); }
.ward-count-marker, .ward-cluster-marker { display: flex; align-items: center; justify-content: center; border: 0; background: transparent; }
.ward-count-marker > span { display: grid; min-width: 39px; height: 39px; place-items: center; padding: 0 7px; border: 3px solid #fff; border-radius: 24px; background: var(--primary); box-shadow: 0 2px 9px rgb(27 48 91 / 34%); color: #fff; font-size: .69rem; font-weight: 800; line-height: 1; }
.ward-cluster-marker { position: relative; width: 52px; height: 52px; box-sizing: border-box; border: 3px solid #fff; border-radius: 50%; background: #17452e; box-shadow: 0 3px 13px rgb(24 41 71 / 36%); color: #fff; line-height: 1; }
.ward-cluster-marker > .ward-cluster-total { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; margin: 0; padding: 0; color: inherit; font-family: var(--font-body); font-size: .84rem; font-weight: 800; letter-spacing: -.025em; line-height: 1; text-align: center; white-space: nowrap; }
.leaflet-control-fullscreen { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid rgb(35 51 75 / 16%); border-radius: 4px; background: #fff; box-shadow: 0 1px 5px rgb(0 0 0 / 25%); color: #2d4f3c; cursor: pointer; font-family: Arial, sans-serif; font-size: 1.3rem; line-height: 1; }
.leaflet-control-fullscreen:hover { background: #f6faf8; color: var(--primary); }
.polling-map:fullscreen { width: 100vw; height: 100vh; min-height: 100vh; border-radius: 0; }
.polling-map:-webkit-full-screen { width: 100vw; height: 100vh; min-height: 100vh; border-radius: 0; }
.map-coverage-summary { display: flex; align-items: stretch; gap: 12px; margin: -5px 0 20px; }
.map-coverage-summary > span { display: flex; flex-direction: column; gap: 3px; min-width: 145px; padding: 11px 15px; border: 1px solid #e2efe7; border-radius: 10px; background: #fff; color: #7c899d; font-size: .65rem; }
.map-coverage-summary b { color: #2d4f3c; font-family: var(--font-heading); font-size: 1.08rem; font-weight: 800; letter-spacing: -.035em; }
.map-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 12px 2px 3px; color: #758298; font-size: .64rem; }
.map-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend-fill { width: 15px; height: 12px; border: 1px solid #397d50; border-radius: 3px; }
.legend-low { background: #b7d9bf; }
.legend-high { background: #2f9254; }
.legend-cluster { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #17452e; color: #fff; font-size: .75rem; font-style: normal; font-weight: 800; }
.map-workspace { grid-template-columns: minmax(0, 1.7fr) minmax(290px, .72fr); gap: 0; }
.map-list-panel > p { margin-bottom: 13px; }
.map-unit-list { max-height: 320px; }
.unmapped-ward-list { margin-top: 13px; border-top: 1px solid #e9edf2; }
.unmapped-ward-list > summary { padding: 12px 2px 8px; color: #66758b; cursor: pointer; font-size: .66rem; font-weight: 750; }
.unmapped-ward-list > summary span { color: #909bac; font-weight: 500; }
.unmapped-ward-items { max-height: 190px; overflow: auto; }
.unmapped-ward-items > a { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px 2px; border-top: 1px solid #f0f2f6; text-decoration: none; }
.unmapped-ward-items > a > span:first-child { min-width: 0; display: flex; flex-direction: column; }
.unmapped-ward-items b { overflow: hidden; color: #53627a; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.unmapped-ward-items small { color: #98a2b1; font-size: .58rem; }
.map-load-error { display: grid; place-items: center; padding: 25px; color: #64748b; font-size: .8rem; text-align: center; }
.directory-map-unmapped-note { margin: 0; padding: 0 13px 11px; color: #8a95a4; font-size: .59rem; line-height: 1.45; }

@media (max-width: 767px) {
  .map-coverage-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0 0 14px; }
  .map-coverage-summary > span { min-width: 0; padding: 9px 8px; font-size: .57rem; }
  .map-coverage-summary b { font-size: .95rem; }
  .map-workspace { display: grid; gap: 0; }
  .map-list-panel { padding: 15px; }
  .map-list-panel > p { font-size: .65rem; }
  .map-unit-list { max-height: 250px; }
  .directory-map-foot > span:first-child { max-width: 70%; }
  .map-page { padding-top: 34px; }
  .map-heading { align-items: flex-start; flex-direction: column; }
  .map-workspace { grid-template-columns: 1fr; }
  .polling-map { min-height: 360px; }
  .map-list-panel { border-top: 1px solid #e8f2ec; border-left: 0; }
  .map-unit-list { max-height: 255px; }
  .map-empty-art { min-height: 320px; }
  .map-empty-bottom { align-items: flex-start; flex-direction: column; padding: 16px; }
}
