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

:root {
  --primary: #4338CA;
  --primary-light: #EEF2FF;
  --accent: #0EA5E9;
  --accent-light: #E0F2FE;
  --green: #059669;
  --green-light: #ECFDF5;
  --amber: #D97706;
  --amber-light: #FFFBEB;
  --red: #DC2626;
  --red-light: #FEF2F2;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.landing-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.landing-shell {
  width: min(900px, 100%);
}

.landing-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.landing-kicker {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.landing-title {
  text-align: center;
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.55rem;
  background: linear-gradient(135deg, #4338CA 0%, #0EA5E9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary); /* fallback for browsers without background-clip:text */
}

.landing-tagline {
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 500;
  line-height: 1.5;
  margin: 0 auto 2.25rem;
}

.landing-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 620px) {
  .landing-actions { grid-template-columns: 1fr; }
  .landing-card { padding: 1.6rem; }
}

.landing-option {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 190px;
  text-decoration: none;
}

.landing-option:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.landing-option--online {
  background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
  border-color: #C7D2FE;
}

.landing-option--inperson {
  background: linear-gradient(135deg, #ECFDF5 0%, #F8FAFC 100%);
  border-color: #A7F3D0;
}

.landing-option__label {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.landing-option__desc {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Online: platform logos */
.landing-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.landing-logos img {
  height: 34px;
  width: auto;
  max-width: 94px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 5px 8px;
}

/* In Person: mini-map illustration */
.landing-map-visual {
  display: block;
  margin-top: 0.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #A7F3D0;
  box-shadow: var(--shadow);
}
.landing-map-visual svg { display: block; width: 100%; height: 94px; }

/* CTA pinned to bottom of each card */
.landing-option__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
}
.landing-option--online .landing-option__cta { color: var(--primary); }
.landing-option--inperson .landing-option__cta { color: var(--green); }

.section-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.section-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.section-nav-link {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.section-nav-link:hover,
.section-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

.section-nav--online .section-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.section-nav--inperson .section-nav-link.active {
  background: #ECFDF5;
  color: #047857;
}

/* ---- Online "Websites" dropdown ---- */
.section-nav-dropdown { position: relative; display: inline-flex; align-items: center; }
/* The whole "Websites" item is the toggle (text + caret) */
.section-nav-dropdown__toggle {
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.section-nav-dropdown__caret { font-size: 0.6rem; line-height: 1; }
.section-nav-dropdown.open .section-nav-dropdown__toggle {
  background: var(--primary-light);
  color: var(--primary);
}
.section-nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
  z-index: 200;
}
/* open only when toggled via click/tap/keyboard (so a click can also close it) */
.section-nav-dropdown.open .section-nav-dropdown__menu { display: block; }
.section-nav-dropdown__item {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.section-nav-dropdown__item:hover,
.section-nav-dropdown__item:focus {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
  outline: none;
}

/* ---- Pending (not-yet-built) nav items ---- */
.section-nav-link--pending {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  opacity: 0.65;
  cursor: default;
}
.section-nav-link--pending:hover { background: transparent; color: var(--text-muted); }
.pending-tag {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

/* ========== Navigation ========== */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

/* ========== Dropdown ========== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-btn:hover,
.nav-dropdown.active .nav-dropdown-btn {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-dropdown-btn.has-active {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
}

.nav-dropdown.active .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 0;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.nav-dropdown-menu a:last-child { border-bottom: none; }

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, #4338CA 0%, #0EA5E9 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  filter: blur(2px);
  pointer-events: none;
}

.hero::before {
  width: 260px;
  height: 260px;
  top: -80px;
  right: -40px;
}

.hero::after {
  width: 180px;
  height: 180px;
  bottom: -60px;
  left: -40px;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.choice-section {
  margin-top: -1rem;
  margin-bottom: 2.5rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.choice-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.85rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.choice-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -20px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(67, 56, 202, 0.08);
  pointer-events: none;
}

.choice-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.choice-card--online {
  background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
  border-color: #C7D2FE;
}

.choice-card--inperson {
  background: linear-gradient(135deg, #ECFDF5 0%, #F8FAFC 100%);
  border-color: #A7F3D0;
}

.choice-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(67, 56, 202, 0.1);
  color: var(--primary);
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.choice-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.choice-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.choice-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  border: none;
  letter-spacing: 0.01em;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }

.btn-white { background: var(--white); color: var(--primary); }
.btn-outline { background: rgba(255,255,255,0.12); color: var(--white); border: 1.5px solid rgba(255,255,255,0.72); }

.btn-primary { background: var(--primary); color: var(--white); }

/* ========== Page Hero (inner pages) ========== */
.page-hero {
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  color: var(--white);
}

.page-hero-inner { max-width: 700px; margin: 0 auto; }

.page-hero .tag {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.92;
}

.page-hero .visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
}

.page-hero .visit-btn:hover {
  background: rgba(255,255,255,0.3);
  text-decoration: none;
}

/* ========== Main Content ========== */
.main { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }

/* ========== Section ========== */
.section { margin-bottom: 3.5rem; }
.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.02em;
}

.section-title .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ========== Platform Cards (home) ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; flex-grow: 1; }

.card-footer {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}

.badge-blue { background: var(--accent-light); color: #0369A1; }
.badge-green { background: var(--green-light); color: #065F46; }
.badge-purple { background: var(--primary-light); color: var(--primary); }
.badge-amber { background: var(--amber-light); color: #92400E; }

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ========== Info Box ========== */
.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border-top: 4px solid var(--primary);
}

.info-box p, .info-box li { font-size: 0.95rem; color: var(--text); line-height: 1.75; }
.info-box ul { padding-left: 1.5rem; }
.info-box li { margin-bottom: 0.5rem; }

/* ========== Opportunity / Challenge Grid ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

.opps-box, .challenges-box {
  border-radius: var(--radius);
  padding: 1.75rem;
}

.opps-box {
  background: var(--green-light);
  border: 1px solid #A7F3D0;
}

.challenges-box {
  background: var(--amber-light);
  border: 1px solid #FDE68A;
}

.opps-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #065F46;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.challenges-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.opps-box ul, .challenges-box ul {
  list-style: none;
  padding: 0;
}

.opps-box li, .challenges-box li {
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.opps-box li:last-child, .challenges-box li:last-child { border-bottom: none; }

.opps-box li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.challenges-box li::before { content: "!"; color: var(--amber); font-weight: 700; flex-shrink: 0; }

/* ========== Screenshots ========== */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.screenshot-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.screenshot-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.6rem;
  background: var(--white);
}

/* ========== Who is it for ========== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.audience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.audience-card .emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.audience-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.35rem; }
.audience-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ========== Reviews ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-stars { color: #F59E0B; font-size: 1rem; letter-spacing: 1px; }

.review-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  flex-grow: 1;
  font-style: italic;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.review-author { font-size: 0.82rem; font-weight: 600; }
.review-source { font-size: 0.75rem; color: var(--text-muted); }

.review-coming {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ========== Steps ========== */
.steps { display: flex; flex-direction: column; gap: 1rem; }

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.step p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* ========== Stats Row (home) ========== */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.stat-card {
  flex: 0 0 180px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ========== Intro section ========== */
.intro-banner {
  background: var(--primary-light);
  border: 1px solid #C7D2FE;
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.intro-banner .intro-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.intro-banner h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.intro-banner p { font-size: 0.93rem; color: var(--text); line-height: 1.7; }

/* ========== Footer ========== */
footer {
  background: var(--text);
  color: #94A3B8;
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}

footer a { color: #CBD5E1; }
footer .footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
footer .footer-links a { font-size: 0.875rem; font-weight: 500; transition: color 0.15s; }
footer .footer-links a:hover { color: var(--white); text-decoration: none; }
footer p { font-size: 0.8rem; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav-links a { padding: 0.35rem 0.5rem; font-size: 0.8rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
  .two-col { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .main { padding: 2rem 1rem; }
}

@media (max-width: 600px) {
  /* Nav — wrap links instead of hiding them */
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.6rem 1rem;
    gap: 0.4rem;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.2rem;
  }
  .nav-links a {
    font-size: 0.72rem;
    padding: 0.3rem 0.5rem;
  }

  /* Hero split layout (Schoolhouse, UpChieve) — stack vertically */
  .nav-inner > div[style*="flex:1"] { min-width: 100% !important; text-align: center !important; }

  /* Page hero */
  .page-hero { padding: 2.5rem 1rem 2rem; }
  .page-hero h1 { font-size: 1.75rem; }

  /* Home hero */
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero h1 { font-size: 1.75rem; }

  /* Stats */
  .stat-card { flex: 0 0 140px; }

  /* Steps */
  .step { flex-direction: column; gap: 0.75rem; }

  /* Footer links */
  footer .footer-links { gap: 0.75rem; }
  footer .footer-links a { font-size: 0.78rem; }

  /* Table — shrink to fit on mobile */
  table { font-size: 0.65rem; width: 100%; }
  table th, table td { padding: 0.4rem 0.4rem !important; }

  /* Intro banner */
  .intro-banner { flex-direction: column; }

  /* Chat window */
  .chat-window { height: 360px; }
}

/* ========== Map page (In-Person section) ========== */
.map-header { margin-bottom: 1.5rem; }
.map-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.map-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
}

.map-search {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.map-search__input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.map-search__input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}
.map-search__input::placeholder { color: var(--text-muted); }

/* In-Person section button (green to match section identity) */
.btn-inperson { background: var(--green); color: var(--white); }
.map-search__btn { flex: 0 0 auto; }
.map-search__btn:disabled { opacity: 0.65; cursor: default; transform: none; }

.map-message {
  margin-bottom: 1rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}
.map-message--error { background: var(--red-light); color: var(--red); }
.map-message--success { background: var(--green-light); color: var(--green); }
.map-message--info { background: var(--primary-light); color: var(--primary); }

.map-canvas {
  height: clamp(360px, 62vh, 640px);
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 0; /* keep Leaflet panes below the site nav */
}

/* "You are here" home marker — strip Leaflet's default divIcon box */
.home-marker { background: transparent; border: none; }
.home-marker svg { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35)); }

/* Filter controls (radius / age / hours) */
.map-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.map-control { display: flex; align-items: center; gap: 0.6rem; }
.map-control--radius { flex: 1 1 260px; min-width: 220px; }
.map-control--category { flex: 1 1 100%; align-items: flex-start; }
.map-controls label,
.map-controls .map-control__label { font-weight: 700; font-size: 0.9rem; color: var(--text); white-space: nowrap; }
.map-control__label { padding-top: 0.35rem; }

.category-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.category-chip {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.category-chip:hover { border-color: var(--green); color: var(--green); }
.category-chip--active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* Geocoding "loading organizations…" indicator (in the sidebar head) */
.geo-indicator { font-weight: 600; font-size: 0.72rem; text-transform: none; letter-spacing: 0; opacity: 0.9; }
.geo-indicator::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin: 0 0.35rem 0 0.5rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  animation: geo-pulse 1s ease-in-out infinite;
}
@keyframes geo-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* "age not verified" tag (orgs with unknown minimum age) */
.org-agetag {
  display: inline-block;
  margin: 0.2rem 0;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--amber);
  background: var(--amber-light);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.map-controls input[type="range"] {
  flex: 1;
  min-width: 120px;
  accent-color: var(--green);
  cursor: pointer;
}
.map-controls select {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}
.map-controls select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}
.map-controls .radius-value { font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; }
.map-controls .radius-value strong { color: var(--green); font-size: 1rem; }

@media (max-width: 600px) {
  .map-controls { gap: 0.85rem; }
  .map-control--radius { flex: 1 1 100%; }
}

/* Map + sidebar layout */
.map-layout { display: flex; gap: 1.25rem; align-items: stretch; position: relative; }

/* Collapse toggle in the sidebar header (hide list -> enlarge map) */
.sidebar-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 30px;
  padding: 0 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-toggle:hover { background: var(--green-light); }

/* Reopen tab, anchored to the map's right edge, shown only when collapsed */
.sidebar-show {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 500;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: var(--white);
  color: var(--green);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.7rem 0.6rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.sidebar-show:hover { background: var(--green-light); }

/* Collapsed: hide the list, let the map fill the width and grow taller.
   Higher specificity (.map-layout.map-layout--collapsed) so the taller height
   wins over the responsive .map-layout .map-canvas heights at every breakpoint. */
.map-layout--collapsed { gap: 0; }
.map-layout--collapsed .map-sidebar { display: none; }
.map-layout.map-layout--collapsed .map-canvas { height: clamp(480px, 82vh, 1200px); }
.map-layout .map-canvas {
  flex: 1 1 auto;
  height: clamp(420px, 68vh, 680px);
}
.map-sidebar {
  flex: 0 0 330px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-height: clamp(420px, 68vh, 680px);
}
.map-sidebar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 1rem;
  background: var(--green-light);
  color: var(--green);
}
/* Row 1: title (left) + Hide-list button (right). Row 2: search full width. */
.map-sidebar__title { order: 0; flex: 1 1 auto; white-space: nowrap; }
.sidebar-toggle { order: 1; margin-left: auto; }
.org-name-search {
  order: 2;
  flex: 1 1 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.org-name-search:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}
.org-name-search::placeholder { color: var(--text-muted); }

.org-list { overflow-y: auto; padding: 0.6rem; }
.org-list__empty { padding: 1.4rem 1.1rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.org-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.org-card:last-child { margin-bottom: 0; }
.org-card:hover,
.org-card:focus-visible {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  outline: none;
}
.org-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.org-card__name { font-weight: 800; font-size: 0.95rem; color: var(--text); }
.org-card__dist { font-weight: 700; font-size: 0.8rem; color: var(--green); white-space: nowrap; }
.org-card__cat {
  display: inline-block;
  margin: 0.4rem 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.org-card__desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.4rem; }
.org-card__link { font-size: 0.82rem; font-weight: 700; color: var(--green); }
.org-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* "Get Directions" link */
.org-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
}
.org-directions svg { fill: currentColor; }
.org-directions:hover { text-decoration: underline; }

/* Save (bookmark) toggle — neutral by default, yellow when saved */
.org-save {
  margin-left: auto; /* keep it on the right even when there's no link */
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.org-save svg { fill: none; stroke: currentColor; stroke-width: 2; }
.org-save:hover { border-color: #CA8A04; color: #CA8A04; }
.org-save--active {
  background: #FEF9C3;      /* yellow-100 */
  border-color: #EAB308;    /* yellow-500 */
  color: #A16207;           /* yellow-700 */
}
.org-save--active svg { fill: #EAB308; stroke: #EAB308; }

/* Saved Volunteer Ideas page */
.saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.saved-grid .org-card { margin-bottom: 0; cursor: default; }
.saved-grid .org-card:hover { transform: none; box-shadow: var(--shadow); border-color: var(--border); }
.saved-card__meta { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.25rem; }
.saved-empty { text-align: center; }
.saved-card--hours-only { opacity: 0.92; }

/* ===== Service-hours log ===== */
.hours-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #065F46 0%, #059669 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.hours-summary__totals { display: flex; flex-direction: column; }
.hours-summary__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}
.hours-summary__value { font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.hours-summary__value::after { content: ' hrs'; font-size: 1rem; font-weight: 700; opacity: 0.85; }
.hours-summary .btn-inperson { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.55); }
.hours-summary .btn-inperson:hover { background: rgba(255,255,255,0.28); }
.hours-summary .btn-inperson:disabled { opacity: 0.5; cursor: default; }

.hours-empty {
  margin-bottom: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  color: var(--green);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hours-block { margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px dashed var(--border); }
.hours-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.hours-block__title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.hours-block__subtotal { font-size: 0.95rem; font-weight: 800; color: var(--green); }

.hours-entries { list-style: none; padding: 0; margin: 0 0 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; }
.hours-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.hours-entry__info { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; min-width: 0; }
.hours-entry__hrs { font-weight: 800; color: var(--green); font-size: 0.85rem; white-space: nowrap; }
.hours-entry__date { font-size: 0.8rem; color: var(--text); font-weight: 600; white-space: nowrap; }
.hours-entry__note { font-size: 0.8rem; color: var(--text-muted); }
.hours-entry__actions { display: flex; gap: 0.25rem; flex-shrink: 0; }
.hours-entry__actions button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}
.hours-entry__actions button:hover { background: var(--border); color: var(--text); }
.hours-entry__actions .hours-del:hover { background: var(--red-light); color: var(--red); }

/* add / edit forms */
.hours-form, .hours-edit-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.hours-edit-form { width: 100%; }
.hours-form input, .hours-edit-form input {
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text);
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.hours-form input:focus, .hours-edit-form input:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light);
}
.hours-form .hours-date, .hours-edit-form .e-date { flex: 0 0 auto; }
.hours-form .hours-num, .hours-edit-form .e-num { width: 62px; }
.hours-form .hours-note, .hours-edit-form .e-note { flex: 1 1 120px; min-width: 90px; }
.hours-edit-actions { display: flex; gap: 0.4rem; }
.btn-log, .e-cancel {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-log { background: var(--green); color: var(--white); }
.btn-log:hover { background: #047857; }
.e-cancel { background: var(--white); color: var(--text-muted); border-color: var(--border); }
.e-cancel:hover { color: var(--text); }

/* Sidebar "submit an org" prompt */
.map-sidebar__foot {
  border-top: 1px solid var(--border);
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.map-sidebar__foot a { color: var(--text-muted); }
.map-sidebar__foot a strong { color: var(--green); }
.map-sidebar__foot a:hover { text-decoration: none; }
.map-sidebar__foot a:hover strong { text-decoration: underline; }

/* Submit an Organization form */
.submit-form { max-width: 640px; }
.form-field { margin-bottom: 1.1rem; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-field { flex: 1 1 150px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-field .req { color: var(--red); }
.form-field .hint { font-weight: 500; color: var(--text-muted); font-size: 0.82rem; }
.submit-form input,
.submit-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.submit-form textarea { resize: vertical; }
.submit-form input:focus,
.submit-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}
.submit-form input.invalid,
.submit-form textarea.invalid { border-color: var(--red); }
.field-error { color: var(--red); font-size: 0.8rem; margin-top: 0.3rem; }
.field-error:empty { display: none; }
.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}
.form-status--success { background: var(--green-light); color: var(--green); }
.form-status--error { background: var(--red-light); color: var(--red); }

@media (max-width: 820px) {
  .map-layout { flex-direction: column; }
  .map-layout .map-canvas { height: clamp(320px, 52vh, 460px); }
  /* Let the sidebar + list flow with the page instead of scrolling inside a
     small box — no nested scrollbars on touch devices. */
  .map-sidebar { flex: 1 1 auto; max-height: none; }
  .org-list { max-height: none; overflow: visible; }
}

@media (max-width: 600px) {
  .map-search { flex-direction: column; }
  .map-search__btn { width: 100%; justify-content: center; }
  /* Keep the nav on one swipeable row. Wrapping it cost ~90px of a phone
     screen on every page, and the bar is sticky, so that space was gone for
     good. Overflow is hidden from the scrollbar UI but still swipeable. */
  .section-nav-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.7rem 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .section-nav-inner::-webkit-scrollbar { display: none; }
  .section-nav-link { padding: 0.4rem 0.7rem; font-size: 0.85rem; white-space: nowrap; flex: 0 0 auto; }

  /* Same treatment for the category filters: 19 chips wrapped into ten rows
     and pushed the map most of a screen down. One scrollable row instead. */
  /* min-width:0 is required: a flex item defaults to min-width:auto, so the
     nowrap chip row would otherwise refuse to shrink and push the whole page
     sideways instead of scrolling inside its own container. */
  .map-control--category { flex-direction: column; gap: 0.4rem; min-width: 0; }
  .map-control--category .map-control__label { padding-top: 0; }
  .category-chips {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .category-chips::-webkit-scrollbar { display: none; }
  .category-chip { flex: 0 0 auto; }
}

/* On the narrowest phones, stack the name search under the sidebar title so
   neither gets squeezed. */
@media (max-width: 380px) {
  .map-sidebar__head { flex-wrap: wrap; }
  .org-name-search { max-width: 100%; flex-basis: 100%; }
}
