/* Chapters — region groups and the chapter tile wall. */

/* region group heading (same rhythm as month-sec) */
.region-sec { padding-top: var(--section-gap); }
.region-sec .rhead { display: flex; align-items: baseline; gap: 14px; margin-bottom: var(--head-gap); }
.region-sec .rhead .count { font-family: 'Space Grotesk', sans-serif; font-feature-settings: "tnum"; font-weight: 500; font-size: 0.875rem; color: var(--text-muted); }

/* chapter wall — circular-mark tiles */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 22px 14px 18px; text-align: center; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: border-color 200ms ease-out;
}
.tile:hover { border-color: var(--orange); }
.tile img, .tile .tmark { width: 88px; height: 88px; border-radius: 50%; margin-bottom: 10px; transition: transform 200ms ease-out; }
.tile img { object-fit: contain; }
.tile .tmark {
  display: flex; align-items: center; justify-content: center;
  font: 650 1.2rem 'Space Grotesk', sans-serif; letter-spacing: 0.02em;
  background: var(--blue-tint); color: var(--blue-deep);
}
.tile .tmark.warm { background: var(--orange-tint); color: var(--orange-deep); }
.tile .tmark.cream { background: linear-gradient(135deg, var(--cream), var(--blue-tint)); color: var(--blue-deep); }
.tile:hover img, .tile:hover .tmark { transform: scale(1.07); }
.tile h3 { font-size: 1.02rem; }
.tile .sub { font-size: 0.8125rem; color: var(--text-muted); }

/* "start a chapter" ghost tile */
.tile.ghost {
  border-style: dashed; border-width: 1.5px; background: transparent; justify-content: center;
  color: var(--text-muted); font-weight: 600; min-height: 180px;
}
.tile.ghost:hover { border-color: var(--orange); color: var(--orange-deep); }
.tile.ghost .plus {
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px dashed var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 10px;
  transition: all 200ms ease-out;
}
.tile.ghost:hover .plus { border-color: var(--orange); }

/* chapters listing — banner-card grid + filter bar (chapters-map.js drives filtering) */
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.chapter-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); color: var(--ink); transition: border-color 200ms ease-out; }
.chapter-tile:hover { border-color: var(--orange); }
.chapter-tile .ct-banner { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cream); border-bottom: 1px solid var(--border); }
.chapter-tile .ct-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.chapter-tile h3 { font-size: 1.1rem; margin: 0; }
.chapter-tile .ct-loc { font-size: 0.9rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 7px; }
.chapter-tile .ct-loc svg { width: 15px; height: 15px; flex: none; stroke: var(--orange); fill: none; stroke-width: 1.6; }
.chapter-tile .ct-foot { margin-top: auto; padding-top: 6px; }
.chapters-empty { text-align: center; color: var(--text-muted); padding: 44px 0; }

/* chapter detail — centred header, stats, socials, collapsible description, event tabs */
.chapter-head { text-align: center; }
.chapter-head .chapter-icon { height: 96px; width: auto; margin: 0 auto 14px; display: block; }
.chapter-head h1 { margin: 0 auto 12px; }
.chapter-head .sub { max-width: 62ch; margin-left: auto; margin-right: auto; }
.chapter-stats { display: inline-flex; gap: 40px; justify-content: center; margin: 6px 0 18px; }
.chapter-stats > div { display: flex; flex-direction: column; }
.chapter-stats b { font: 700 1.6rem 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
.chapter-stats .stat-star { color: var(--orange); font-size: 0.72em; margin-left: 2px; vertical-align: 0.05em; }
.chapter-stats span { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.chapter-social { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.chapter-desc { display: none; text-align: left; max-width: 62ch; margin: 16px auto 0; }
.chapter-desc.open { display: block; }
.evtabs-wrap { text-align: center; margin-bottom: var(--head-gap); }
.evtabs { display: inline-flex; gap: 6px; background: var(--cream); border-radius: var(--r-pill); padding: 5px; }
.evtabs button { font: 600 0.9rem 'Space Grotesk', sans-serif; border: none; background: none; color: var(--text-muted); padding: 9px 20px; border-radius: var(--r-pill); cursor: pointer; transition: all 200ms ease-out; }
.evtabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.evtabs .cnt { font-feature-settings: "tnum"; opacity: 0.7; margin-left: 4px; }
