/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-nav:        #000000;
  --color-accent:     #e84422;
  --color-accent-dark:#c43318;
  --color-bg:         #ffffff;
  --color-bg-alt:     #f5f5f5;
  --color-bg-grid:    #ffffff;
  --color-card:       #ffffff;
  --color-text:       #111111;
  --color-text-muted: #555555;
  --color-tag-bg:     #111111;
  --color-tag-text:   #ffffff;
  --color-border:     #e2e2e2;

  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 6px;
  --shadow: 0 1px 4px rgba(0,0,0,0.07), 0 2px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);

  --nav-height: 58px;
  --max-width: 1100px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a {
  color: var(--color-accent-dark);
  text-decoration: underline;
}
a:hover { color: var(--color-nav); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  line-height: 1.1;
  color: var(--color-text);
}

/* ============================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-nav);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #222;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.nav-brand:hover { color: var(--color-accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.1rem;
  flex-wrap: nowrap;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,85,0,0.2);
  color: var(--color-accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */

/* Graph-paper grid helper (used on hero + bg-alt) */
.hero {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--color-text);
  padding: 5.5rem 1.5rem 5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  color: #000;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
  font-weight: 900;
  line-height: 1.0;
  max-width: 820px;
}

/* Orange highlight on a key word, echoing the "WORKS" highlight in screenshot 2 */
.hero h1 .highlight {
  background: var(--color-accent);
  color: #fff;
  padding: 0 0.12em;
  display: inline;
  border-radius: 4px;
}

.hero .tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 580px;
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero .intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.85rem 2.25rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-cta:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   SECTION LABEL (overline)
   ============================================================ */
.section-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
  display: block;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.section {
  padding: 5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(0,0,0,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.section-alt .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.75rem;
  color: #000;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.section-alt .section-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.75rem;
  color: #000;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 720px;
  margin-bottom: 1rem;
}
.section p:last-child { margin-bottom: 0; }

/* Education section two-column on desktop */
.education-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  border-top: 2px solid #000;
  padding-top: 2rem;
}
.education-body p { max-width: none; }

/* ============================================================
   WHY DONATE — CARD GRID
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-border);
}

.why-card {
  background: var(--color-card);
  padding: 2rem 1.5rem;
  text-align: left;
}

.why-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.why-card h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: #000;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DIRECTORY SECTION
   ============================================================ */
#directory {
  background: var(--color-bg);
  padding: 4rem 1.5rem 6rem;
}

.directory-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.directory-header {
  margin-bottom: 2.5rem;
  border-bottom: 2px solid #000;
  padding-bottom: 1.5rem;
}

.directory-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #000;
  margin-bottom: 0.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.directory-header p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 640px;
}

/* Search */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-bg);
  border: 2px solid #000;
  border-radius: 50px;
  padding: 0.65rem 1.25rem;
  max-width: 440px;
  margin-bottom: 3rem;
  transition: border-color 0.2s;
}
.search-wrap:focus-within { border-color: var(--color-accent); }

.search-icon {
  color: var(--color-text-muted);
  font-size: 1rem;
  flex-shrink: 0;
}

#search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--color-text);
  width: 100%;
  font-family: var(--font-sans);
  font-weight: 500;
}
#search-input::placeholder { color: #aaa; }

.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1rem;
  padding: 0;
  display: none;
  line-height: 1;
}
.search-clear:hover { color: var(--color-nav); }

/* No results */
#no-results {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Region sections */
.region-section {
  margin-bottom: 3.5rem;
}

.region-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid #000;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
  cursor: pointer;
}

.region-header h2 {
  font-size: 1.4rem;
  color: #000;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.region-toggle {
  background: #000;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.region-toggle[aria-expanded="false"] {
  transform: rotate(-90deg);
}

.region-body { /* always visible on desktop */ }

/* State subgroups */
.state-group {
  margin-bottom: 2rem;
}

.state-group h3 {
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1rem;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.state-group h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Fund cards grid */
.fund-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

/* Fund card */
.fund-card {
  background: var(--color-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 0.15s;
}
.fund-card:hover {
  background: #fafafa;
}

.fund-card[data-url-status="unconfirmed"] {
  background: #fafafa;
}

.fund-name {
  font-size: 1rem;
  font-weight: 800;
  color: #000;
  line-height: 1.25;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.fund-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.fund-tag {
  display: inline-block;
  background: #efefef;
  color: #888;
  font-size: 0.65rem;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 50px;
  width: fit-content;
}

.fund-desc-link {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}
.fund-desc-link:hover {
  color: #000;
}

.fund-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}

.fund-notice {
  font-size: 0.78rem;
  color: #999;
  font-style: italic;
}

.fund-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.btn {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn:hover { transform: translateY(-1px); }

.btn-donate {
  background: var(--color-accent);
  color: #fff;
}
.btn-donate:hover { background: var(--color-accent-dark); color: #fff; }


.btn-search {
  background: #f0f0f0;
  color: #555;
  border: 1px solid var(--color-border);
  font-weight: 700;
}
.btn-search:hover { background: #e0e0e0; color: #000; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #000;
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 1.5rem;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-text {
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.footer-text a {
  color: var(--color-accent);
}
.footer-text a:hover { color: #fff; }

.footer-meta {
  font-size: 0.78rem;
  text-align: right;
}
.footer-meta p { margin-bottom: 0.4rem; line-height: 1.5; color: rgba(255,255,255,0.45); }
.footer-meta a { color: rgba(255,255,255,0.6); }
.footer-meta a:hover { color: #fff; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.2s, background 0.15s;
  z-index: 50;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .education-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-meta { text-align: left; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  /* Nav */
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    gap: 0.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
  }

  .site-nav { position: sticky; }

  /* Hero */
  .hero { padding: 3.5rem 1.25rem 3rem; text-align: left; }

  /* Sections */
  .section { padding: 3rem 1.25rem; }
  .section-alt { padding: 3rem 1.25rem; }
  #directory { padding: 2.5rem 1.25rem 3.5rem; }

  /* Region toggle visible */
  .region-toggle { display: flex; }
  .region-body.collapsed { display: none; }

  /* Fund grid single col on narrow */
  .fund-grid { grid-template-columns: 1fr; }

  /* Footer */
  .site-footer { padding: 2.5rem 1.25rem; }
}


/* ============================================================
   HIDDEN (search filter utility)
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   FINDER — Quick Match
   ============================================================ */
#finder {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(0,0,0,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.qm-inner { max-width: var(--max-width); margin: 0 auto; }

.qm-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900; letter-spacing: -0.03em;
  color: #000; margin-bottom: 2rem; line-height: 1.1;
}
.qm-heading .qm-accent { color: var(--color-accent); }

.qm-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 0;
}
.qm-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-sans); font-weight: 800;
  font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 50px; cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.12s;
  min-height: 52px; padding: 0 2rem;
  border: 2px solid transparent;
}
.qm-btn:hover { transform: translateY(-2px); }
.qm-btn--primary {
  background: var(--color-accent); color: #fff; border-color: var(--color-accent);
}
.qm-btn--primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.qm-btn--secondary {
  background: transparent; color: #000; border-color: #000;
}
.qm-btn--secondary:hover { background: #000; color: #fff; }

.qm-result-wrap { margin-top: 2.5rem; display: none; }
.qm-result-wrap.visible { display: block; }

.qm-card {
  background: #fff; border: 2px solid #000;
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: 520px; margin: 0 auto; text-align: left;
  box-shadow: var(--shadow);
}
.qm-fund-name { font-size: 1rem; font-weight: 800; color: #000; line-height: 1.25; letter-spacing: -0.01em; }
.qm-fund-tag {
  display: inline-block; background: #111; color: #fff;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.22rem 0.6rem;
  border-radius: 50px; width: fit-content;
}
.qm-fund-desc { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.6; }
.qm-fund-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }

.qm-pick-another-wrap { margin-top: 1.1rem; }
.qm-pick-another-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700;
  color: var(--color-text-muted); letter-spacing: 0.02em;
  text-decoration: underline; padding: 0;
  transition: color 0.15s;
}
.qm-pick-another-btn:hover { color: #000; }

.qm-context-note {
  font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.6;
  margin-bottom: 1.25rem; max-width: 520px; margin-left: auto; margin-right: auto;
  text-align: left;
  background: #fff8f5; border-left: 3px solid var(--color-accent);
  padding: 0.75rem 1rem; border-radius: 0 var(--radius) var(--radius) 0;
}

/* ============================================================
   FINDER — Map Directory
   ============================================================ */
#map-directory {
  background: #fff; padding: 5rem 1.5rem 4rem;
  border-bottom: 1px solid var(--color-border);
}
.map-dir-inner { max-width: var(--max-width); margin: 0 auto; }
.map-dir-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: #000;
  font-weight: 900; letter-spacing: -0.03em; margin-bottom: 0.4rem; line-height: 1.1;
}
.map-dir-intro { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 2.5rem; }

.map-dir-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

#fund-map svg { width: 100%; height: auto; display: block; }

#fund-map path {
  outline: none;
  fill: #e8e8e8;
  stroke: #c8c8c8;
  stroke-width: 0.5;
  transition: stroke 0.12s, stroke-width 0.12s, fill 0.12s;
}
.map-state--has-funds { cursor: pointer; }
.map-state--has-funds:hover { stroke: #555 !important; stroke-width: 1.5 !important; }
.map-state--selected { fill: var(--color-accent) !important; stroke: #2a9438 !important; stroke-width: 0.75 !important; }
.map-state--no-funds { fill: #f2f2f2 !important; stroke: #ddd !important; cursor: default; opacity: 0.6; }

.map-legend {
  display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1rem;
}
.map-legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: var(--color-text-muted); font-weight: 600; }
.map-legend-swatch { width: 14px; height: 14px; border-radius: 2px; border: 1px solid rgba(0,0,0,0.12); flex-shrink: 0; }
.swatch-has { background: #e8e8e8; }
.swatch-hover { background: #e8e8e8; border-color: #555; outline: 1px solid #555; }
.swatch-selected { background: var(--color-accent); }
.swatch-none { background: #f2f2f2; border-color: #ddd; opacity: 0.6; }

.map-result-panel { min-height: 200px; }
.map-result-placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px; border: 2px dashed var(--color-border);
  border-radius: var(--radius); color: var(--color-text-muted);
  font-size: 0.9rem; text-align: center; padding: 2rem; line-height: 1.6;
}
.state-result-heading {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: #000;
  margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid #000;
}
.state-fund-list {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--color-border); border: 1px solid var(--color-border);
}
.state-fund-card {
  background: #fff; padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: background 0.1s;
}
.state-fund-card:hover { background: #fafafa; }

.btn-search-sm { background: #f0f0f0; color: #555; border: 1px solid var(--color-border); font-size: 0.7rem; font-weight: 700; padding: 0.42rem 0.9rem; }
.btn-search-sm:hover { background: #e0e0e0; color: #000; }

.map-see-all { margin-top: 2rem; font-size: 0.85rem; }
.map-see-all a { color: var(--color-accent-dark); font-weight: 700; text-decoration: underline; }

@media (max-width: 900px) {
  .map-dir-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  #finder { padding: 3rem 1.25rem; }
  #map-directory { padding: 3rem 1.25rem 2.5rem; }
  .qm-btn { font-size: 0.82rem; min-height: 48px; padding: 0 1.5rem; }
}
