/* ============================================================
   CEA-HOW Wireframe Mockup — Style Sheet
   ============================================================ */

/* --- Skip to Content --- */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--teal, #1A7A6E);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-to-content:focus {
  left: 0;
}

/* --- CSS Variables --- */
:root {
  --coral:        #C43E3E;
  --teal:         #157060;
  --bg:           #FAF8F5;
  --surface:      #FFFFFF;
  --text:         #2D2D2D;
  --text-sec:     #595959;
  --amber:        #8B5D00;
  --amber-text:   #866A10;
  --green:        #2E7D55;
  --coral-light:  #FFF0EE;
  --navy:         #374785;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg:    0 8px 30px rgba(0,0,0,0.09);
  --transition:   0.25s ease;
}

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: clamp(15px, 1vw + 12px, 17px); }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
.section p a, .section li a, .section dd a,
.card-base a, .card-accent a, .card-elevated a,
.legal-section a, .pro-section a { text-decoration: underline; }
a:hover { color: #145f55; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
code { font-family: var(--font-mono); font-size: 0.88em; background: #f3f0ed; padding: 2px 6px; border-radius: 4px; }
input, select { font-family: var(--font-body); }

/* Accessibility: focus-visible outlines (G3) */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex]:focus-visible,
.mtg-chip:focus-visible,
.mtg-view-btn:focus-visible,
.mtg-expand-btn:focus-visible,
.mtg-cal-day:focus-visible,
.mtg-cal-item:focus-visible,
.mtg-nearme-btn:focus-visible,
.mtg-now-btn:focus-visible,
.mtg-advanced-toggle:focus-visible,
.nav-link:focus-visible,
.nav-dropdown-toggle:focus-visible,
.hamburger:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Utility Bar --- */
.utility-bar {
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.utility-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 36px;
}
.utility-links a { color: rgba(255,255,255,0.85); transition: color var(--transition); }
.utility-links a:hover { color: #fff; }
.utility-divider { color: rgba(255,255,255,0.3); margin: 0 12px; }
.lang-toggle[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* --- Main Header --- */
.main-header {
  background: var(--surface);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 12px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark { color: var(--coral); }
.logo-how { color: var(--text); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 16px;
}
.nav-link {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-link:hover, .nav-link.active { background: var(--coral-light); color: var(--coral); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle svg { opacity: 0.5; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 0.88rem;
  transition: background var(--transition);
}
.nav-dropdown-menu a:hover { background: var(--coral-light); color: var(--coral); }

.header-cta { flex-shrink: 0; }
.btn-coral {
  background: var(--coral);
  color: #fff;
}
.btn-coral:hover { background: #a83535; color: #fff; }
.header-cta-help { margin-right: 8px; }
.mobile-help-link { color: var(--coral) !important; font-weight: 600; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  z-index: 999;
  padding-top: 110px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu-inner { padding: 24px; }
.mobile-nav-link {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mobile-divider { border: none; border-top: 2px solid var(--coral-light); margin: 16px 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.3;
}
.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-teal:hover { background: #145f55; border-color: #145f55; color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline-teal:hover { background: var(--teal); color: #fff; }
.btn-sm { font-size: 0.82rem; padding: 8px 16px; }
.btn:hover:not(.btn-disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn:active:not(.btn-disabled) { transform: translateY(0); }

/* --- Badges --- */
.badge { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 5px 14px; border-radius: 50px; letter-spacing: 0.03em; }
.badge-coral { background: var(--coral-light); color: var(--coral); }

/* --- Links --- */
.link-arrow { font-weight: 600; font-size: 0.9rem; color: var(--teal); }
.link-arrow:hover { color: #145f55; }
.link-subtle { color: var(--text-sec); font-size: 0.82rem; text-decoration: underline; }
.link-subtle:hover { color: var(--text); }

/* --- Pages --- */
/* In multi-page production build, each page is its own HTML file */

/* --- Sections --- */
.section { padding: 72px 0; }
.section-white { background: var(--surface); padding: 48px 0 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 40px;
  text-align: center;
}
.section-link { text-align: center; margin-top: 36px; }
.section-intro { text-align: center; color: var(--text-sec); max-width: 680px; margin: -16px auto 40px; font-size: 1.05rem; line-height: 1.7; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}
.page-subtitle { color: var(--text-sec); font-size: 1.1rem; max-width: 600px; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--text-sec); margin-bottom: 16px; }
.breadcrumb a { color: var(--teal); text-decoration: underline; }
.bc-sep { margin: 0 6px; }
.breadcrumb-section { padding-bottom: 32px; }

/* Optimal reading measure for prose-heavy pages (HI-7) */
.prose-measure p,
.legal-section p,
.pro-section p { max-width: 680px; }

/* ===================== Crisis Banner (global component) ===================== */
.crisis-banner {
  background: #C43E3E;
  color: #fff;
  padding: 18px 0;
  border-bottom: 3px solid #a83535;
}
.crisis-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.crisis-banner-main {
  display: flex;
  align-items: center;
  gap: 14px;
}
.crisis-icon {
  flex-shrink: 0;
  color: #fff;
  opacity: 0.9;
}
.crisis-headline {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.crisis-detail {
  font-size: 0.95rem;
}
.crisis-988 {
  color: #fff;
  font-weight: 900;
  font-size: 1.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}
.crisis-988:hover {
  color: #ffe0e0;
}
.crisis-label {
  font-size: 0.88rem;
  color: #fff;
}
.crisis-meeting-link {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 18px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition);
}
.crisis-meeting-link:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}
@media (max-width: 600px) {
  .crisis-banner-inner { flex-direction: column; align-items: flex-start; }
  .crisis-meeting-link { align-self: stretch; text-align: center; }
}

/* ===================== HOME: Hero ===================== */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, #FFF5F3 60%, var(--bg) 100%);
  padding: 80px 0 72px;
  overflow: hidden;
  position: relative;
}
.hero-inner { display: flex; align-items: center; gap: 48px; }
.hero-content { flex: 0 0 58%; position: relative; z-index: 2; }
.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.18;
  color: var(--text);
  margin: 16px 0 18px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

/* Mobile Hero Actions (hidden on desktop, shown on mobile) */
.mobile-hero-actions { display: none; }
.mobile-hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius);
  min-height: 56px;
}
.mobile-hero-links {
  text-align: center;
  font-size: 0.88rem;
  padding-top: 4px;
}
.mobile-hero-links a { color: var(--teal); font-weight: 500; }
.mobile-hero-links .dot { margin: 0 8px; color: #ccc; }

/* Hero Search Widget */
.hero-search-widget {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 520px;
}
.search-input-row { display: flex; gap: 10px; }
.search-input-wrap {
  flex: 1;
  position: relative;
}
.search-icon-pin { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid #e0dcd8;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}
.search-input:focus { border-color: var(--teal); }
.search-btn { white-space: nowrap; }
.search-quick-links { margin-top: 14px; font-size: 0.82rem; }
.search-quick-links a { color: var(--teal); font-weight: 500; }
.search-quick-links .dot { margin: 0 8px; color: #ccc; }

/* Hero Art */
.hero-art {
  flex: 0 0 40%;
  position: relative;
  height: 380px;
}
.art-circle {
  position: absolute;
  border-radius: 50%;
}
.art-circle-1 { width: 240px; height: 240px; background: rgba(224,80,80,0.13); top: 20px; right: 20px; }
.art-circle-2 { width: 180px; height: 180px; background: rgba(26,122,110,0.12); top: 80px; right: 120px; }
.art-circle-3 { width: 120px; height: 120px; background: rgba(200,134,10,0.14); top: 180px; right: 30px; }
.art-circle-4 { width: 80px; height: 80px; background: rgba(224,80,80,0.18); top: 10px; right: 200px; }
.art-circle-5 { width: 160px; height: 160px; background: rgba(26,122,110,0.08); top: 220px; right: 160px; }

/* ===================== Card System Tokens (CM-1, HI-4)
   -------------------------------------------------------
   Three core card variants used across the site:
   1. card-base:     .surface bg, shadow, radius (router-card, event-card, FAQ, etc.)
   2. card-accent:   card-base + left border-accent (question-card: coral, meeting-card: format-color)
   3. card-elevated: card-base + stronger shadow or border-top accent (contact-info-card, donate-card)
   Shared tokens: border-radius: var(--radius), box-shadow: var(--shadow), padding: 24-32px
   ======================================================= */

/* ===================== HOME: Questions ===================== */
.section-questions { background: var(--bg); }
.question-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.question-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 20px;
  border-left: 4px solid var(--coral);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.question-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.question-card p { font-size: 0.95rem; font-weight: 500; color: var(--text); line-height: 1.5; }
.questions-cta { text-align: center; margin-top: 40px; }
.questions-cta p { color: var(--text-sec); margin-bottom: 18px; font-size: 1.05rem; }

/* ===================== HOME: Router ===================== */
.section-router { background: var(--surface); }
.router-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.router-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.router-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.router-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.4rem;
  color: var(--coral);
}
.router-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.router-card p { color: var(--text-sec); font-size: 0.88rem; line-height: 1.55; margin-bottom: 16px; }

/* ===================== HOME: Events ===================== */
.section-events { background: var(--coral-light); }
.event-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.event-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.event-date-badge {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  background: var(--coral-light);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.event-month { font-size: 0.72rem; font-weight: 700; color: var(--coral); letter-spacing: 0.08em; text-transform: uppercase; }
.event-day { font-family: var(--font-display); font-size: 1.3rem; color: var(--text); margin-top: 2px; }
.event-info h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }
.event-theme { color: var(--amber-text); font-weight: 600; font-size: 0.88rem; font-style: italic; margin-bottom: 6px; }
.event-meta { color: var(--text-sec); font-size: 0.85rem; margin-bottom: 14px; }

/* ===================== HOME: News ===================== */
.section-news { background: var(--surface); }
.news-items { max-width: 700px; margin: 0 auto; }
.news-item { padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 0.78rem; color: var(--text-sec); font-weight: 500; display: block; margin-bottom: 4px; }
.news-item h3 { font-size: 1rem; font-weight: 500; }
.news-item h3 a { color: var(--text); }
.news-item h3 a:hover { color: var(--teal); }

/* ===================== MEETINGS PAGE ===================== */

/* -- Purple variable for hybrid -- */
:root {
  --purple: #6B4F96;
}

/* A) Next Meeting Hero Banner */
.mtg-next-banner {
  background: linear-gradient(135deg, #1a6b60 0%, var(--teal) 50%, #20897a 100%);
  color: #fff;
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}
.mtg-next-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.mtg-next-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.mtg-next-left { flex: 1; min-width: 240px; }
.mtg-next-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 8px;
}
.mtg-next-pulse {
  width: 10px;
  height: 10px;
  background: #7CFC00;
  border-radius: 50%;
  display: inline-block;
  animation: mtgPulse 1.5s infinite;
}
@keyframes mtgPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(124,252,0,0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(124,252,0,0); }
}
.mtg-next-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 10px;
  line-height: 1.2;
}
.mtg-next-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mtg-next-meta .mc-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.mtg-next-time {
  font-size: 0.92rem;
  opacity: 0.9;
}
.mtg-next-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.mtg-next-countdown {
  text-align: center;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 12px 20px;
  min-width: 80px;
}
.countdown-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 2px;
}
.countdown-unit {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.btn-join-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--teal);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-join-now:hover {
  background: #e8f5ee;
  color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* B) Main meetings section */
.mtg-main {
  background: var(--bg);
  padding: 0 0 80px;
}

/* Page heading */
.mtg-page-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 24px 0 6px;
}
.mtg-page-intro {
  color: var(--text-sec);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 4px;
}

/* Quick filters — always visible above More Filters toggle */
.mtg-quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* No-join info text (replaces disabled buttons) */
.mtg-no-join {
  font-size: 0.85rem;
  color: var(--text-sec);
  font-style: italic;
}

/* Filter Bar */
.mtg-filter-bar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  margin-top: 28px;
  margin-bottom: 16px;
}
.mtg-filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.mtg-filter-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.mtg-filter-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.mtg-filter-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid #e0dcd8;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}
.mtg-filter-input:focus { border-color: var(--teal); }

/* Near Me button inside search input */
.mtg-nearme-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  min-height: 36px;
  border: none;
  border-radius: 4px;
  background: var(--teal);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.mtg-nearme-btn:hover { background: #15665C; }
.mtg-nearme-btn.loading { opacity: 0.6; cursor: wait; }

/* Distance filter bar */
.mtg-distance-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 16px;
  background: rgba(26,122,110,0.06);
  border: 1px solid rgba(26,122,110,0.15);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text);
}
.mtg-distance-bar svg { color: var(--teal); flex-shrink: 0; }
.mtg-distance-select { min-width: 150px; padding: 6px 10px; font-size: 0.82rem; }

/* Distance badge on meeting cards */
.mtg-card-distance {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
}
.mtg-filter-select {
  padding: 10px 14px;
  border: 1.5px solid #e0dcd8;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  min-width: 120px;
  outline: none;
  transition: border-color var(--transition);
}
.mtg-filter-select:focus { border-color: var(--teal); }
.mtg-search-btn {
  padding: 10px 20px;
  white-space: nowrap;
}

/* Quick-filter chips */
/* Advanced Filters toggle — hidden by default, click to reveal */
.mtg-advanced-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sec);
  cursor: pointer;
  transition: background var(--transition);
}
.mtg-advanced-toggle:hover { background: rgba(0,0,0,0.03); }
.mtg-advanced-toggle .mtg-advanced-arrow {
  transition: transform 0.2s;
}
.mtg-advanced-toggle[aria-expanded="true"] .mtg-advanced-arrow {
  transform: rotate(180deg);
}
.mtg-advanced-body {
  display: none;
}
.mtg-advanced-filters.expanded .mtg-advanced-body {
  display: block;
}
/* Sheet header/footer — hidden on desktop, shown on mobile */
.mtg-sheet-header,
.mtg-sheet-footer {
  display: none;
}
/* Category labels */
.mtg-chip-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.mtg-chip-group:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.mtg-chip-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-sec);
  margin-bottom: 8px;
}
/* Bottom sheet backdrop */
.mtg-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}
.mtg-sheet-backdrop.visible {
  display: block;
}
.mtg-quick-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.mtg-quick-chips + .mtg-quick-chips {
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}
.mtg-chips-justify {
  justify-content: space-between;
}
.mtg-chips-justify .mtg-chip {
  flex: 1;
  justify-content: center;
}
.mtg-chip-format.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.mtg-chip-format:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.mtg-chip-format.active:hover {
  color: #fff;
}
.mtg-chip {
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  border: 1.5px solid #e0dcd8;
  background: var(--bg);
  color: var(--text-sec);
  cursor: pointer;
  transition: all var(--transition);
}
.mtg-chip-divider {
  width: 1px;
  height: 28px;
  background: rgba(0,0,0,0.12);
  align-self: center;
  flex-shrink: 0;
}
.mtg-chip:hover {
  border-color: var(--coral);
  color: var(--coral);
}
.mtg-chip-type.active {
  background: var(--teal);
  border-color: var(--teal);
}
.mtg-chip-type:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.mtg-chip:active { transform: scale(0.96); }
.mtg-chip.active {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

/* Active filters */
.mtg-active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.mtg-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(26,122,110,0.1);
  color: var(--teal);
}
.mtg-active-chip .remove-filter {
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}
.mtg-active-chip .remove-filter:hover { opacity: 1; }

/* Timezone bar */
.mtg-timezone-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-sec);
  padding: 10px 0;
}
.mtg-tz-change {
  background: none;
  border: none;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.mtg-tz-select {
  padding: 4px 10px;
  border: 1.5px solid #e0dcd8;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
}

/* C) Results bar */
.mtg-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.mtg-results-count {
  font-size: 0.88rem;
  color: var(--text-sec);
  font-weight: 500;
}
.mtg-results-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mtg-sort-select {
  padding: 6px 12px;
  border: 1.5px solid #e0dcd8;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.mtg-view-toggle {
  display: flex;
  gap: 0;
  border: 1.5px solid #e0dcd8;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mtg-view-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-sec);
  background: var(--bg);
  border: none;
  border-right: 1px solid #e0dcd8;
  cursor: pointer;
  transition: all var(--transition);
}
.mtg-view-btn:last-child { border-right: none; }
.mtg-view-btn:hover { color: var(--text); background: #f0edea; }
.mtg-view-btn.active {
  background: var(--teal);
  color: #fff;
}

/* D) Meeting Cards */
.mtg-list-view {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mtg-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.mtg-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

/* Border accent by format */
.mtg-card[data-format="online"] { border-left: 4px solid var(--teal); }
.mtg-card[data-format="in-person"] { border-left: 4px solid var(--coral); }
.mtg-card[data-format="phone"] { border-left: 4px solid var(--amber); }
.mtg-card[data-format="hybrid"] { border-left: 4px solid var(--purple); }

/* Meeting table: widen container */
.mtg-main > .container { max-width: 1600px; }

/* Table header */
.mtg-table-header {
  display: grid;
  grid-template-columns: 80px 1.2fr 1.8fr 1fr 0.8fr 24px;
  gap: 8px;
  padding: 8px 16px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-sec);
  border-bottom: 2px solid rgba(0,0,0,0.08);
}

/* Collapsed row (MA-style compact table view) */
.mtg-row {
  display: grid;
  grid-template-columns: 80px 1.2fr 1.8fr 1fr 0.8fr 24px;
  gap: 8px;
  padding: 7px 16px;
  align-items: center;
  cursor: pointer;
  font-family: system-ui, -apple-system, sans-serif;
  transition: background var(--transition);
}
.mtg-row:hover { background: rgba(0,0,0,0.03); }
.mtg-row-time {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.3;
}
.mtg-row-time small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-sec);
}
.mtg-row-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mtg-row-group {
  font-size: 0.78rem;
  color: var(--text-sec);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.mtg-row-group[title] { cursor: help; }
.mtg-row-addr {
  font-size: 0.78rem;
  color: var(--text-sec);
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.mtg-row-addr span,
.mtg-row-addr a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mtg-row-addr svg { flex-shrink: 0; }
.mtg-row-region {
  font-size: 0.78rem;
  color: var(--text-sec);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Format badge in collapsed row */
.mtg-row-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
}
/* Language badge on meeting rows */
.mtg-lang-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 3px;
}
.mc-badge-lang-en {
  background: rgba(26,122,110,0.1);
  color: var(--teal);
}
.mc-badge-lang-es {
  background: rgba(200,134,10,0.12);
  color: var(--amber-text);
}
/* Expand chevron on collapsed row */
.mtg-row-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-sec);
  opacity: 0.5;
  transition: opacity var(--transition);
  flex-shrink: 0;
  width: 24px;
}
.mtg-row:hover .mtg-row-chevron { opacity: 1; }

/* LIVE badge on happening-now meetings */
.mtg-live-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 3px;
  background: #e74c3c;
  color: #fff;
  margin-left: 6px;
  vertical-align: middle;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Banner "showing live first" state */
.mtg-now-active {
  background: var(--teal) !important;
  color: #fff !important;
}
.mtg-now-active .mtg-now-text { color: #fff; }

/* Two-state card: collapsed hides card content, shows row */
.mtg-card.collapsed .mtg-card-headline,
.mtg-card.collapsed .mtg-card-body,
.mtg-card.collapsed .mtg-card-tags,
.mtg-card.collapsed .mtg-expand-btn,
.mtg-card.collapsed .mtg-card-details {
  display: none;
}
.mtg-card.collapsed {
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mtg-card.collapsed:hover {
  transform: none;
  box-shadow: none;
}
/* When NOT collapsed, hide the row */
.mtg-card:not(.collapsed) .mtg-row {
  display: none;
}
/* Expanded cards get spacing to stand out from the table */
.mtg-card:not(.collapsed) { margin-top: 6px; margin-bottom: 6px; }

.mtg-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 20px 6px;
  gap: 16px;
  flex-wrap: wrap;
}
.mtg-card-left { flex: 1; min-width: 220px; }
.mtg-card-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 20px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 10px;
}
.mtg-card-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  text-align: center;
  min-width: 0;
}
.mtg-card-time {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.mtg-card-headline .mc-badge {
  font-size: 0.68rem;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .mtg-card-headline { padding: 10px 16px 8px; gap: 6px; }
  .mtg-card-time { font-size: 0.85rem; }
  .mtg-card-name { font-size: 0.95rem; }
  .mtg-card-headline .mc-badge { font-size: 0.62rem; padding: 2px 6px; }

  /* Table row: hide Region column on tablet, keep chevron */
  .mtg-table-header { grid-template-columns: 80px 1.2fr 1.5fr 1fr 24px; }
  .mtg-table-header span:nth-child(5) { display: none; }
  .mtg-row { grid-template-columns: 80px 1.2fr 1.5fr 1fr 24px; }
  .mtg-row-region { display: none; }
}
.mtg-card-tz-alt {
  font-size: 0.78rem;
  color: var(--text-sec);
  margin-bottom: 8px;
  font-style: italic;
}
.mtg-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-sec);
}
.mtg-card-num {
  font-size: 0.78rem;
  color: #767676;
  font-family: var(--font-mono);
}
.mtg-card-quickjoin {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-sec);
  margin-top: 4px;
}
.mtg-card-quickjoin code {
  font-size: 0.78rem;
  background: rgba(0,0,0,0.04);
  padding: 1px 6px;
  border-radius: 3px;
}
.mtg-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

/* Badge styles (shared with banner) */
.mc-badge {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}
.mc-badge-online { background: rgba(26,122,110,0.1); color: var(--teal); }
.mc-badge-inperson { background: rgba(224,80,80,0.1); color: var(--coral); }
.mc-badge-phone { background: rgba(200,134,10,0.12); color: var(--amber-text); }
.mc-badge-hybrid { background: rgba(123,97,164,0.12); color: var(--purple); }

/* Join buttons */
.btn-join {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-join-zoom {
  background: var(--teal);
  color: #fff;
}
.btn-join-zoom:hover { background: #145f55; color: #fff; }
.btn-join-skype {
  background: #00AFF0;
  color: #fff;
  font-size: 0.78rem;
}
.btn-join-directions {
  background: var(--coral);
  color: #fff;
}
.btn-join-directions:hover { background: #c04040; color: #fff; }
.btn-join-phone {
  background: var(--amber);
  color: #fff;
}
.btn-join-phone:hover { background: #a87008; color: #fff; }

/* Tags row */
.mtg-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 24px 10px;
}
.mc-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0,0,0,0.04);
  color: var(--text-sec);
}

/* Expand button */
.mtg-expand-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 24px;
  background: none;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.mtg-expand-btn:hover { background: rgba(26,122,110,0.03); color: #145f55; }
.mtg-expand-arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.mtg-card.expanded .mtg-expand-arrow { transform: rotate(180deg); }

/* Card details (expandable with animation) */
.mtg-card-details {
  max-height: 0;
  overflow: hidden;
  background: var(--bg);
  padding: 0 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.mtg-card.expanded .mtg-card-details {
  max-height: 800px;
  padding: 20px 24px;
}
dl.mtg-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  margin: 0 0 18px;
  padding: 0;
}
dt.mtg-detail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 2px;
}
dd.mtg-detail-value {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}
dd.mtg-detail-value a { text-decoration: underline; }
.mtg-detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.mtg-detail-actions .btn svg { vertical-align: -2px; margin-right: 4px; }

/* Calendar dropdown inside details */
.mtg-cal-dropdown {
  position: relative;
  display: inline-block;
}
.mtg-cal-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  padding: 6px 0;
  z-index: 50;
  margin-bottom: 4px;
}
.mtg-cal-dropdown.open .mtg-cal-menu { display: block; }
.mtg-cal-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.84rem;
  color: var(--text);
  transition: background var(--transition);
}
.mtg-cal-menu a:hover { background: var(--coral-light); color: var(--coral); }

/* E) Map View Placeholder */
.mtg-map-placeholder {
  background: linear-gradient(135deg, #e8e5e1 0%, #d8d4cf 100%);
  border-radius: var(--radius);
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mtg-map-pins {
  position: absolute;
  inset: 0;
}
.mtg-pin {
  position: absolute;
  opacity: 0.3;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}
.mtg-pin.p1 { top: 20%; left: 25%; }
.mtg-pin.p2 { top: 35%; left: 55%; }
.mtg-pin.p3 { top: 60%; left: 35%; }
.mtg-pin.p4 { top: 45%; left: 70%; }
.mtg-pin.p5 { top: 70%; left: 60%; }
.mtg-map-overlay {
  text-align: center;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mtg-map-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 16px 0 8px;
  color: var(--text);
}
.mtg-map-overlay p {
  color: var(--text-sec);
  font-size: 0.92rem;
}

/* Map Popup */
.mtg-map-popup { font-family: var(--font-body); font-size: 0.85rem; line-height: 1.5; }
.mtg-map-popup-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.mtg-map-popup-name { font-size: 0.95rem; }
.mtg-map-popup-header .mc-badge { font-size: 0.65rem; padding: 2px 8px; flex-shrink: 0; }
.mtg-map-popup-time { color: var(--text-sec); margin-bottom: 2px; }
.mtg-map-popup-location { color: var(--text-sec); margin-bottom: 6px; }
.mtg-map-popup-location svg { vertical-align: -2px; }
.mtg-map-popup-detail { font-size: 0.8rem; color: var(--text-sec); margin-bottom: 2px; }
.mtg-map-popup-label { font-weight: 600; color: var(--text); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.03em; }
.mtg-map-popup-detail code { font-size: 0.78rem; background: rgba(0,0,0,0.04); padding: 1px 5px; border-radius: 3px; }
.mtg-map-popup-detail a { color: var(--teal); text-decoration: none; }
.mtg-map-popup-detail a:hover { text-decoration: underline; }
.mtg-map-popup-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.mtg-map-popup-tags .mc-tag { font-size: 0.68rem; padding: 2px 8px; }
.mtg-map-popup-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.mtg-map-popup-actions .btn-join { font-size: 0.78rem; padding: 5px 14px; color: #fff !important; }
.mtg-map-popup-viewdetails { font-size: 0.8rem; color: var(--teal); text-decoration: none; font-weight: 500; }
.mtg-map-popup-viewdetails:hover { text-decoration: underline; }

/* F) Calendar View */
.mtg-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.mtg-cal-day {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 12px;
  min-height: 180px;
}
.mtg-cal-day.today {
  border: 2px solid var(--teal);
}
.mtg-cal-day-header {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-sec);
  margin-bottom: 4px;
}
.mtg-cal-day-date {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 12px;
}
.mtg-cal-day.today .mtg-cal-day-date { color: var(--teal); }
.mtg-cal-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 8px;
}
.mtg-cal-item {
  font-size: 0.76rem;
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: rgba(26,122,110,0.06);
  color: var(--text);
  line-height: 1.35;
}
.mtg-cal-item .cal-item-time {
  font-size: 0.68rem;
  color: var(--text-sec);
  display: block;
}
.mtg-cal-item .cal-item-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mtg-cal-item.cal-fmt-online { border-left: 3px solid var(--teal); padding-left: 6px; }
.mtg-cal-item.cal-fmt-in-person { border-left: 3px solid var(--coral); padding-left: 6px; }
.mtg-cal-item.cal-fmt-phone { border-left: 3px solid var(--amber); padding-left: 6px; }
.mtg-cal-item.cal-fmt-hybrid { border-left: 3px solid var(--navy); padding-left: 6px; }

/* Meeting Loading State */
.mtg-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sec);
}
.mtg-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: mtg-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes mtg-spin {
  to { transform: rotate(360deg); }
}

/* Data freshness indicator */
.mtg-freshness {
  font-size: 0.76rem;
  color: var(--text-sec);
  padding: 0 0 6px;
}

/* Newcomer help box */
.mtg-newcomer-box {
  margin-top: 16px;
  background: #e8f5ee;
  border: 1px solid #b8dfc8;
  border-radius: var(--radius);
  overflow: hidden;
}
.mtg-newcomer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--teal);
  cursor: pointer;
}
.mtg-newcomer-toggle:hover { background: rgba(26,122,110,0.05); }
.mtg-newcomer-content {
  padding: 0 20px 16px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}
.mtg-newcomer-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Helpline bar */
.mtg-helpline {
  padding: 10px 16px;
  margin-bottom: 16px;
  background: #fef3e2;
  border: 1px solid #f0d9a8;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text);
  text-align: center;
}
.mtg-helpline a { color: var(--coral); font-weight: 600; }

/* Phone Bridge Banner */
.mtg-phone-banner {
  background: rgba(200,134,10,0.1);
  border: 1.5px solid rgba(200,134,10,0.3);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 16px;
}
.mtg-phone-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.88rem;
  color: var(--text);
}
.mtg-phone-banner-inner strong {
  color: var(--amber-text);
}
.mtg-phone-banner-numbers a {
  font-weight: 600;
  color: var(--amber-text);
}
.mtg-phone-banner-numbers a:hover {
  color: #6B5510;
}
.mtg-phone-banner-backup {
  font-size: 0.82rem;
  color: var(--text-sec);
}
.mtg-phone-banner-backup a {
  color: var(--teal);
  font-weight: 600;
}

/* Happening Now banner */
.mtg-now-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(26,122,110,0.08);
  border: 1.5px solid rgba(26,122,110,0.25);
  border-radius: var(--radius-sm);
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--teal);
}
.mtg-now-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2E7D55;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.mtg-now-text { flex: 1; }
.mtg-now-btn {
  padding: 6px 16px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.mtg-now-btn:hover { background: #156b60; }

/* Show More pagination button */
.mtg-show-more-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

/* Empty state */
.mtg-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mtg-empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}
.mtg-empty-state p {
  color: var(--text-sec);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 16px;
}
.mtg-empty-state .btn {
  margin-top: 8px;
}
.mtg-empty-hint {
  color: var(--amber-text);
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.85rem;
  max-width: 480px;
  margin: 0 auto 12px;
}
.mtg-empty-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 16px;
}
.mtg-map-empty-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}
.mtg-map-empty-content {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  max-width: 380px;
  box-shadow: var(--shadow);
  pointer-events: auto;
}
.mtg-map-empty-content strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}
.mtg-map-empty-content p {
  color: var(--text-sec);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.link-btn {
  background: none;
  border: none;
  color: var(--teal);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.link-btn:hover { color: var(--teal-dark, #14897a); }

/* Disabled join button */
.btn-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ===================== NEWCOMERS PAGE ===================== */

/* Newcomer Hero */
.newcomer-hero {
  background: linear-gradient(135deg, var(--bg) 0%, #FFF5F3 50%, #F0FAF8 100%);
  padding: 32px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.newcomer-hero-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.newcomer-hero .page-title { text-align: center; }
.newcomer-hero .page-subtitle { text-align: center; max-width: 600px; margin: 0 auto 28px; }
.newcomer-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.newcomer-hero-art { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.art-nc-1 { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(224,80,80,0.07); top: -40px; right: 80px; }
.art-nc-2 { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: rgba(26,122,110,0.06); bottom: -20px; left: 60px; }
.art-nc-3 { position: absolute; width: 100px; height: 100px; border-radius: 50%; background: rgba(200,134,10,0.08); top: 60px; left: 120px; }

/* Pathway */
.section-pathway { background: var(--surface); }
.pathway {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.pathway-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.pathway-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  position: relative;
  z-index: 2;
}
.pathway-connector {
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: #d0e8e4;
  z-index: 1;
}
.pathway-step:last-child .pathway-connector { display: none; }
.pathway-step h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; }
.pathway-step p { color: var(--text-sec); font-size: 0.88rem; line-height: 1.5; margin-bottom: 12px; }

/* Expect */
.section-expect { background: var(--bg); }
.expect-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 800px; margin: 0 auto; }
.expect-col h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 20px; text-align: center; }
.expect-col ul li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.expect-col ul li:last-child { border-bottom: none; }
.check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(46,125,85,0.12);
  color: var(--green);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xmark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(224,80,80,0.1);
  color: var(--coral);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Different */
.section-different { background: var(--coral-light); }
.different-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.different-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.different-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.different-icon { margin-bottom: 16px; }
.different-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 10px; }
.different-card p { color: var(--text-sec); font-size: 0.9rem; line-height: 1.55; }
.different-quote { text-align: center; color: var(--text-sec); font-size: 1.05rem; line-height: 1.7; max-width: 600px; margin: 0 auto; }

/* Stories */
.section-stories { background: var(--surface); }
.story-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto; }
.story-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-left: 4px solid var(--amber);
  transition: transform var(--transition);
}
.story-card:hover { transform: translateY(-2px); }
.story-card blockquote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 14px;
  font-style: italic;
}
.story-card cite { font-style: normal; font-weight: 600; color: var(--text-sec); font-size: 0.88rem; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 10px 0;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-newsletter {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 28px 0;
  text-align: center;
}
.footer-newsletter p {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.footer-newsletter-form {
  display: inline-flex;
  gap: 8px;
  max-width: 420px;
  width: 100%;
}
.footer-newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.88rem;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter-form input:focus { outline: none; border-color: var(--teal); }
.footer-newsletter-form button {
  padding: 10px 20px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.footer-newsletter-form button:hover { background: var(--teal-dark, #156b60); }

.footer-cta-row {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 28px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background var(--transition);
  min-height: 44px;
}
.footer-cta-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.footer-cta-btn svg { flex-shrink: 0; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-left: 8px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: background var(--transition), color var(--transition);
  padding: 0;
}
.footer-social a:hover { background: rgba(255,255,255,0.2); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 24px 0;
}
.footer-bottom-inner { text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.7); line-height: 1.7; }
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }
.anonymity-statement { margin-top: 8px; font-style: italic; font-size: 0.75rem !important; }

/* ===================== Toast ===================== */
.lang-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  pointer-events: none;
}
.lang-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================== Animations ===================== */
.anim-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .anim-fade { transition: none; opacity: 1; transform: none; }
}

/* --- Mobile Filter Toggle Button (hidden on desktop, shown on mobile via media query) --- */
.mtg-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 1.5px solid #e0dcd8;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.mtg-filter-toggle:hover { border-color: var(--teal); }
.mtg-filter-toggle svg { flex-shrink: 0; }
.mtg-filter-toggle-label { flex: 1; text-align: left; }
.mtg-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.mtg-filter-badge:empty { display: none; }
.mtg-filter-toggle .mtg-filter-arrow {
  transition: transform var(--transition);
  font-size: 0.7rem;
}
.mtg-filter-bar.filters-expanded .mtg-filter-toggle .mtg-filter-arrow {
  transform: rotate(180deg);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .question-cards { grid-template-columns: repeat(3, 1fr); }
  .router-cards { grid-template-columns: repeat(2, 1fr); }
  .pathway { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .pathway-connector { display: none; }
}

@media (max-width: 768px) {
  .utility-bar { display: none; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-inner { justify-content: space-between; }
  .header-cta { display: none; }
  .mtg-verify-btn { display: none; }

  /* --- Mobile hero: clean, focused, action-oriented --- */
  .hero { padding: 36px 0 40px; }
  .hero-inner { flex-direction: column; gap: 24px; }
  .hero-content { flex: none; width: 100%; }
  .hero-title { font-size: 2rem; }
  .hero-art { display: none; }
  /* Hide desktop hero elements on mobile */
  .badge { display: none; }
  .hero-subtitle { display: none; }
  .hero-search-widget { display: none; }
  /* Show mobile hero actions */
  .mobile-hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

  /* --- Hide heavy sections on mobile homepage --- */
  .section-questions { display: none; }
  .section-news { display: none; }
  .section-events { display: none; }

  /* --- Simplify router cards on mobile --- */
  .section-router { padding: 32px 0; }
  .section-router .section-title { font-size: 1.3rem; margin-bottom: 16px; }
  .router-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .router-card { padding: 16px 12px; }
  .router-card p { display: none; }
  .router-icon { width: 40px; height: 40px; margin-bottom: 10px; font-size: 1.1rem; }
  .router-card h3 { font-size: 0.9rem; margin-bottom: 6px; }
  .link-arrow { font-size: 0.82rem; }

  /* --- Compact events section on mobile --- */
  .section-events { padding: 28px 0; }
  .section-events .section-title { font-size: 1.3rem; margin-bottom: 14px; }
  .event-cards { grid-template-columns: 1fr; gap: 10px; }
  .event-card { padding: 16px; gap: 14px; }
  .event-date-badge { width: 60px; padding: 10px 6px; }
  .event-info h3 { font-size: 1rem; color: var(--text); }
  .event-theme { color: var(--coral); }
  .event-meta { font-size: 0.82rem; margin-bottom: 10px; color: var(--text); }
  .section-events .section-link { margin-top: 12px; }

  /* --- Slim footer on mobile --- */
  .footer-newsletter { display: none; }
  .site-footer { padding-top: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 24px; }
  .footer-col h4 { font-size: 0.92rem; margin-bottom: 10px; }
  .footer-col a { padding: 6px 0; font-size: 0.82rem; }
  .footer-cta-row { flex-direction: column; gap: 8px; padding: 16px 0; }
  .footer-cta-btn { width: 100%; justify-content: center; padding: 10px 16px; font-size: 0.85rem; }
  .footer-social { margin-left: 0; justify-content: center; }
  .footer-bottom { padding: 16px 0; }

  .section { padding: 48px 0; }
  .section-title { margin-bottom: 28px; }

  .story-cards { grid-template-columns: 1fr; }
  .different-cards { grid-template-columns: 1fr; }
  .expect-columns { grid-template-columns: 1fr; }

  .pathway { grid-template-columns: 1fr; gap: 32px; }
  .pathway-connector { display: none; }

  /* --- Meetings page: compact mobile layout --- */
  /* Hide clutter above filters */
  .breadcrumb-section .breadcrumb { display: none; }
  .breadcrumb-section .page-subtitle { display: none; }
  .breadcrumb-section { padding: 16px 0 12px; }
  .breadcrumb-section .page-title { font-size: 1.5rem; margin-bottom: 0; }
  .mtg-newcomer-box { display: none; }
  .mtg-helpline { display: none; }
  /* Compact next-meeting banner */
  .mtg-next-banner { padding: 16px 0; }
  .mtg-next-inner { flex-direction: column; text-align: center; gap: 12px; }
  .mtg-next-right { justify-content: center; }
  .mtg-next-meta { justify-content: center; }
  .mtg-next-name { font-size: 1.1rem; }
  /* Compact "happening now" bar */
  .mtg-now-banner { font-size: 0.85rem; padding: 10px 16px; }
  /* Filter bar */
  .mtg-filter-row { flex-direction: column; }
  .mtg-filter-input-wrap { min-width: 100%; }
  .mtg-filter-select { width: 100%; }
  .mtg-main { padding-top: 8px; }
  /* Results */
  .mtg-results-bar { flex-direction: column; align-items: flex-start; }
  .mtg-results-right { width: 100%; justify-content: space-between; }
  .mtg-details-grid { grid-template-columns: 1fr; }
  .mtg-card-body { flex-direction: column; }
  .mtg-card-right { flex-direction: row; align-items: center; }
  .mtg-cal-week { grid-template-columns: repeat(4, 1fr); }


  .newcomer-hero { padding: 24px 0 56px; }

  /* Mobile filter progressive disclosure:
     Search input + quick-filter chips stay visible;
     only dropdowns & search button hide behind the toggle. */
  .mtg-filter-toggle { display: flex; }
  .mtg-filter-bar .mtg-filter-row .mtg-filter-select,
  .mtg-filter-bar .mtg-filter-row .mtg-search-btn {
    display: none;
  }
  .mtg-filter-bar .mtg-quick-chips {
    display: flex;
    flex-wrap: wrap;
  }
  .mtg-filter-bar.filters-expanded .mtg-filter-row .mtg-filter-select,
  .mtg-filter-bar.filters-expanded .mtg-filter-row .mtg-search-btn {
    display: flex;
  }

  /* Join button full-width on mobile */
  .mtg-card-right .btn-join { width: 100%; text-align: center; justify-content: center; }

  /* ---- Bottom sheet for advanced filters on mobile ---- */
  .mtg-advanced-filters.expanded .mtg-advanced-body {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 75vh;
    background: var(--surface);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    animation: sheetSlideUp 0.3s ease-out;
  }
  @keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .mtg-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
    position: relative;
  }
  .mtg-sheet-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0,0,0,0.15);
  }
  .mtg-sheet-header span {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
  }
  .mtg-sheet-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--text-sec);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mtg-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    -webkit-overflow-scrolling: touch;
  }
  .mtg-sheet-footer {
    display: block;
    padding: 12px 20px 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
  }
  .mtg-sheet-apply {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
  }
  /* Chip layout inside bottom sheet */
  .mtg-sheet-content .mtg-quick-chips {
    justify-content: flex-start;
  }
  .mtg-sheet-content .mtg-chip {
    flex: none;
  }
}

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

@media (max-width: 480px) {
  .event-card { flex-direction: column; gap: 12px; }
  /* Mobile calendar: horizontal day strip + detail panel below */
  .mtg-cal-week {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    position: relative;
  }
  .mtg-cal-day {
    min-height: auto;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    transition: background var(--transition);
  }
  .mtg-cal-day .mtg-cal-item { display: none; }
  .mtg-cal-day-header { font-size: 0.7rem; margin-bottom: 2px; }
  .mtg-cal-day-date { font-size: 1rem; margin-bottom: 2px; }
  .mtg-cal-count { font-size: 0.65rem; margin-bottom: 0; }
  .mtg-cal-day.cal-selected {
    background: var(--teal);
    color: #fff;
    border-radius: var(--radius);
  }
  .mtg-cal-day.cal-selected .mtg-cal-day-header,
  .mtg-cal-day.cal-selected .mtg-cal-day-date,
  .mtg-cal-day.cal-selected .mtg-cal-count { color: #fff; }
  .mtg-cal-detail-panel {
    grid-column: 1 / -1;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mtg-cal-detail-panel .mtg-cal-item {
    display: block;
    margin-bottom: 6px;
  }

  .header-inner { gap: 6px; }
  .logo { font-size: 1.4rem; }

  /* Hero: tighter on small phones */
  .hero { padding: 28px 0 32px; }
  .hero-title { font-size: 1.75rem; }

  /* Footer: keep 2-column, compact */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Chips: keep touch-friendly on phone (44px min per WCAG 2.5.8) */
  .mtg-chip { padding: 8px 12px; font-size: 0.78rem; min-height: 44px; }
  .mtg-quick-chips { gap: 6px; }

  /* Advanced Filters: already hidden by default at all sizes, mobile adjustments */
  .mtg-advanced-toggle {
    font-size: 0.8rem;
    padding: 8px;
  }
  /* Collapsed row: responsive layout on mobile */
  .mtg-table-header { display: none; }
  .mtg-row {
    grid-template-columns: 1fr 1fr 20px;
    gap: 4px 10px;
    padding: 10px 14px;
  }
  .mtg-row-time { font-size: 0.85rem; }
  .mtg-row-name {
    font-size: 0.85rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .mtg-row-badge {
    display: block;
    margin-left: 0;
    margin-top: 3px;
    width: fit-content;
  }
  .mtg-row-group { display: none; }
  .mtg-row-addr { font-size: 0.8rem; }
  .mtg-row-region { display: none; }
  .mtg-row-chevron { grid-row: 1 / 3; grid-column: 3; }
  .mtg-page-heading { font-size: 1.4rem; margin-top: 16px; }
  .mtg-page-intro { font-size: 0.88rem; }
}

/* --- Map view full-height --- */
#mtgMapContainer {
  height: max(500px, 70vh) !important;
}

/* Snapshot overlay lightbox */
.mtg-snapshot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mtg-snapshot-inner {
  position: relative;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.mtg-snapshot-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-sec);
  cursor: pointer;
  line-height: 1;
}
.mtg-snapshot-close:hover { color: var(--text); }
.mtg-snapshot-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.08);
}
.mtg-snapshot-caption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-sec);
  margin-top: 8px;
}

/* --- Print Stylesheet --- */
@media print {
  .utility-bar, .main-header, .mobile-menu, .skip-to-content,
  .mtg-next-banner, .mtg-now-banner, .mtg-filter-bar, .mtg-quick-chips,
  .mtg-active-filters, .mtg-timezone-bar, .mtg-distance-bar, .mtg-freshness,
  .mtg-phone-banner, .mtg-results-bar, .mtg-view-toggle, .mtg-sort-select,
  .mtg-show-more-btn, .mtg-map-view, .mtg-calendar-view,
  .mtg-newcomer-box, .mtg-helpline, .mtg-expand-btn, .mtg-detail-actions,
  .site-footer, .btn-join, .mc-badge, .breadcrumb-section { display: none !important; }

  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  .container { max-width: 100%; padding: 0; }
  .mtg-main { padding: 0; }
  .section { padding: 0; }

  .page-title { font-size: 18pt; margin-bottom: 8pt; }
  .page-title::after { content: " — CEA-HOW Meeting List"; font-size: 11pt; font-weight: normal; }

  .mtg-list-view { gap: 0; }
  .mtg-card {
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    border-radius: 0 !important;
    page-break-inside: avoid;
    transform: none !important;
  }
  .mtg-card-body { padding: 8pt 0 4pt; }
  .mtg-card-tags { padding: 0 0 6pt; }
  .mtg-card-details { max-height: none !important; padding: 4pt 0 8pt !important; display: block !important; background: transparent; border-top: none; }
  .mtg-details-grid { grid-template-columns: 1fr 1fr 1fr; gap: 4pt 16pt; }
  .mtg-card-quickjoin code, .mtg-detail-value code { background: none; padding: 0; }
  .mc-tag { border: 1px solid #999; }
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: none; }
}

/* --- Snapshot Verification Modal --- */
.snapshot-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.snapshot-modal.visible { opacity: 1; }

.snapshot-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.snapshot-modal-content img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.snapshot-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #333;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.snapshot-modal-close:hover { background: #eee; }

@media print {
  .snapshot-modal { display: none !important; }
}

/* ============================================================
   Meeting Editor — Modal, Toast, Edit/Delete Buttons
   ============================================================ */

/* Edit/Delete buttons in card actions */
.mtg-edit-btn { color: var(--teal); }
.mtg-delete-btn { color: var(--coral); border-color: var(--coral) !important; }
.mtg-delete-btn:hover { background: var(--coral-light); }

/* ---- Toast notification ---- */
.mtg-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--teal);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  text-align: center;
}
.mtg-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.mtg-toast-error {
  background: var(--coral);
}

/* ---- Edit modal overlay ---- */
.mtg-edit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mtg-edit-overlay.mtg-edit-visible {
  display: flex;
}

/* ---- Edit dialog ---- */
.mtg-edit-dialog {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  animation: mtgEditSlideIn 0.25s ease;
}
@keyframes mtgEditSlideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.mtg-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mtg-edit-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
}
.mtg-edit-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-sec);
  line-height: 1;
  padding: 4px 8px;
}
.mtg-edit-close:hover { color: var(--text); }

/* ---- Edit form ---- */
.mtg-edit-form {
  padding: 16px 24px 24px;
}
.mtg-edit-form fieldset {
  border: none;
  margin: 0 0 16px;
  padding: 0;
}
.mtg-edit-form legend {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-sec);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  width: 100%;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group-full {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sec);
  margin-bottom: 4px;
}
.form-group input,
.form-group select {
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(26, 122, 110, 0.15);
}
.form-group-check {
  justify-content: flex-end;
}
.form-group-check label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}
.form-group-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

/* ---- Modal actions ---- */
.mtg-edit-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.mtg-edit-actions .btn-teal {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition);
}
.mtg-edit-actions .btn-teal:hover { background: #15665B; }
.mtg-edit-actions .btn-teal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Mobile responsive ---- */
@media (max-width: 600px) {
  .mtg-edit-overlay { padding: 16px 8px; }
  .mtg-edit-dialog { max-height: calc(100vh - 32px); }
  .mtg-edit-header { padding: 16px 16px 10px; }
  .mtg-edit-form { padding: 12px 16px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 8px; }
  .mtg-edit-actions { flex-direction: column; }
}