/* Support Groups Across the Region (/support-groups) — circles you can join, by area
   (rebuild, 2026-09-29). Under the opening painting, a two-stop map: Murfreesboro and
   the region, joined by a dotted path. Each area is its own panel marked with the same
   round marker; our Thursday group sits in the warm window at the front, and every
   other group is a circle card that opens for its details (native <details>).
   Everything is scoped to body.p-groups. No page script. */

.p-groups main h2, .p-groups main h3 { color: var(--navy); }
.p-groups .sg-main { padding-top: clamp(10px, 2vw, 24px); padding-bottom: clamp(50px, 6vw, 90px); }
.p-groups .sg-main > .container { max-width: 1120px; }
.p-groups { --marker: var(--gold); --marker-soft: var(--gold-soft); }

/* ---------- the map: two stops and the path between them ---------- */
.p-groups .sg-map {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 6vw, 120px);
  max-width: 820px; margin: 0 auto clamp(40px, 5vw, 70px); padding-top: 6px;
}
.p-groups .sg-map-path { position: absolute; left: 12%; right: 12%; top: clamp(40px, 6vw, 80px); width: 76%; height: clamp(40px, 6vw, 60px); overflow: visible; z-index: 0; pointer-events: none; }
.p-groups .sg-map-path path { fill: none; stroke: #d7a43e; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 12; vector-effect: non-scaling-stroke; opacity: .75; }
.p-groups .sg-map-stop {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  color: var(--navy); text-decoration: none; border-radius: 28px; padding: 6px 4px 10px;
}
.p-groups .sg-map-plot {
  position: relative; display: grid; place-items: center; width: clamp(128px, 20vw, 184px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 60%, #fffaf0, var(--gold-soft) 78%);
  box-shadow: inset 0 0 0 8px var(--paper), 0 0 0 2px var(--gold-soft), 0 18px 30px -18px rgba(60, 40, 10, .55);
}
.p-groups .sg-map-stop:nth-of-type(2) .sg-map-plot { background: radial-gradient(circle at 50% 60%, #fbfcff, var(--blue-soft) 78%); box-shadow: inset 0 0 0 8px var(--paper), 0 0 0 2px var(--blue-soft), 0 18px 30px -18px rgba(29, 44, 76, .5); }
.p-groups .sg-map-plot img { width: 86%; height: auto; mix-blend-mode: multiply; }
.p-groups .sg-map-name { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line), 0 4px 0 rgba(29, 44, 76, .1); font: 600 clamp(15.5px, 1.6vw, 19px)/1.2 var(--f-display); }
.p-groups .sg-map-name .arrow { color: var(--gold-dark); }
.p-groups .sg-map-stop:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 4px; }
@media (max-width: 420px) { .p-groups .sg-map-name { padding: 8px 12px; font-size: 14.5px; } }

/* ---------- an area ---------- */
.p-groups .sg-area {
  position: relative; margin: 0 0 clamp(36px, 5vw, 60px); padding: clamp(28px, 4vw, 52px) clamp(16px, 4vw, 52px) clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(243, 229, 192, .55), rgba(255, 252, 245, .9) 260px), var(--paper);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  scroll-margin-top: calc(var(--osv-header-h) + 16px);
}
.p-groups .sg-area--regional { --marker: var(--blue-ink); --marker-soft: var(--blue-soft); background: linear-gradient(180deg, rgba(228, 233, 242, .8), rgba(255, 252, 245, .9) 260px), var(--paper); }
.p-groups .sg-area > h2 {
  display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(22px, 3vw, 32px);
  font-size: clamp(27px, 3.3vw, 40px); line-height: 1.1; letter-spacing: -.02em;
  scroll-margin-top: calc(var(--osv-header-h) + 30px);
}
/* the area's marker: a circle within a circle, the page's one symbol */
.p-groups .sg-area > h2::before {
  content: ""; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle, var(--marker) 0 7px, transparent 7.5px), var(--marker-soft);
  box-shadow: inset 0 0 0 3px var(--marker), 0 0 0 5px var(--paper);
}
@media (max-width: 560px) {
  .p-groups .sg-area { border-radius: 28px; margin-inline: -4px; }
  .p-groups .sg-area > h2 { gap: 12px; }
  .p-groups .sg-area > h2::before { width: 34px; height: 34px; }
}

/* ---------- our group: the warm window at the front ---------- */
.p-groups .feature-card.sg-featured {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 4vw, 48px); align-items: center;
  margin: 0 0 clamp(26px, 3vw, 36px); padding: clamp(26px, 3.6vw, 44px); border: 0; border-radius: var(--r-lg);
  background: radial-gradient(600px 300px at 88% 40%, rgba(143, 165, 198, .18), transparent 70%), var(--navy-deep);
  color: var(--on-dark);
  box-shadow: 0 30px 50px -30px rgba(20, 32, 58, .8);
}
.p-groups .sg-featured .eyebrow { color: var(--gold); }
.p-groups .sg-featured h3 { color: var(--paper); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; margin: 4px 0 14px; }
.p-groups .sg-featured p { color: var(--on-dark); font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 1.6; margin: 0; max-width: 34em; }
.p-groups .sg-featured .card-actions { gap: 12px; padding-top: 22px; }
.p-groups .sg-featured .btn { min-height: 50px; }
.p-groups .sg-featured-window { display: grid; place-items: center; }
.p-groups .sg-featured-glass {
  display: grid; place-items: center; width: min(100%, 240px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, #fff4d8 0%, #f8e2ab 55%, #e9c27a 100%);
  box-shadow: 0 0 0 10px #d9a650, 0 0 0 11px rgba(255, 230, 170, .4), 0 0 90px 18px rgba(247, 200, 100, .22);
}
.p-groups .sg-featured-glass img { width: 70%; height: auto; mix-blend-mode: multiply; }
@media (max-width: 760px) {
  .p-groups .feature-card.sg-featured { grid-template-columns: 1fr; }
  .p-groups .sg-featured-window { order: -1; justify-self: start; }
  .p-groups .sg-featured-glass { width: 118px; box-shadow: 0 0 0 6px #d9a650, 0 0 50px 10px rgba(247, 200, 100, .22); }
}

/* ---------- a group: a circle card that opens ---------- */
.p-groups .sg-circles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px clamp(14px, 2vw, 22px); align-items: start; }
@media (min-width: 860px) { .p-groups .sg-circles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.p-groups .listing-card {
  margin: 0; border: 0; border-radius: 22px; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 10px 22px -16px rgba(29, 44, 76, .35);
}
.p-groups .listing-card > summary {
  grid-template-columns: 38px minmax(0, 1fr); gap: 4px 14px; min-height: 76px;
  padding: 16px 64px 16px 16px; border-radius: 22px;
}
.p-groups .listing-card > summary > span { grid-column: 2; }
.p-groups .listing-card > summary::before {
  content: ""; grid-column: 1; grid-row: 1; align-self: start; margin-top: 2px; width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle, var(--marker) 0 5px, transparent 5.5px), var(--marker-soft);
  box-shadow: inset 0 0 0 2.5px var(--marker);
}
.p-groups .listing-card > summary::after {
  content: "+"; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold-soft); color: var(--navy); font: 500 24px/1 var(--f-display);
}
.p-groups .listing-card[open] > summary::after { content: "\2212"; transform: translateY(-50%); background: var(--gold); }
.p-groups .listing-card > summary:hover::after { background: var(--gold); }
.p-groups .listing-card > summary:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.p-groups .listing-title { font: 600 18px/1.28 var(--f-display); color: var(--navy); }
.p-groups .listing-meta { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--muted); }
.p-groups .listing-body { margin: 0 16px; padding: 14px 0 18px 52px; border-top: 1px dashed rgba(166, 122, 44, .4); font-size: 16.5px; line-height: 1.6; color: var(--text); }
.p-groups .listing-body p { margin: 0; }
.p-groups .listing-body .card-actions { gap: 10px; padding-top: 14px; }
.p-groups .listing-facts { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: 15.5px; }
@media (max-width: 560px) {
  .p-groups .listing-body { padding-left: 0; }
  .p-groups .listing-card > summary { grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; padding: 14px 58px 14px 14px; }
  .p-groups .listing-card > summary::before { width: 30px; height: 30px; background: radial-gradient(circle, var(--marker) 0 4px, transparent 4.5px), var(--marker-soft); }
  .p-groups .listing-facts div { grid-template-columns: 1fr; gap: 0; }
}
.p-groups .listing-card[open] { box-shadow: 0 0 0 2px var(--marker-soft), 0 0 0 3px var(--marker), 0 18px 30px -18px rgba(29, 44, 76, .4); }

/* the young-adult circle: a small clearing of its own */
.p-groups .sg-sub { margin-top: clamp(28px, 3.4vw, 40px); padding-top: clamp(22px, 3vw, 30px); border-top: 2px dotted rgba(166, 122, 44, .45); }
.p-groups .sg-sub > h3 { margin: 0 0 16px; font-size: clamp(21px, 2vw, 25px); display: flex; align-items: center; gap: 12px; scroll-margin-top: calc(var(--osv-header-h) + 30px); }
.p-groups .sg-sub > h3::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 4px var(--marker-soft); }

/* ---------- movement ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* the path between the two areas walks itself in */
  .p-groups .sg-map-path path { animation: sg-walk 2.4s .3s var(--ease) both; }
  @keyframes sg-walk { from { stroke-dashoffset: 260; opacity: 0; } to { stroke-dashoffset: 0; opacity: .75; } }
  /* a stop lifts as you reach for it; its painting settles a little closer */
  .p-groups .sg-map-plot { transition: transform .45s var(--spring), box-shadow .45s var(--ease); }
  .p-groups .sg-map-plot img { transition: transform .6s var(--spring); }
  .p-groups .sg-map-stop:hover .sg-map-plot { transform: translateY(-6px); }
  .p-groups .sg-map-stop:hover .sg-map-plot img { transform: scale(1.06); }
  /* our window glows up when you come near */
  .p-groups .sg-featured-glass { transition: box-shadow .8s var(--ease); }
  .p-groups .sg-featured:hover .sg-featured-glass { box-shadow: 0 0 0 10px #d9a650, 0 0 0 11px rgba(255, 230, 170, .5), 0 0 120px 30px rgba(247, 200, 100, .34); }
  /* a circle opens: its marker pulses once, its details unfold */
  .p-groups .listing-card > summary::after { transition: background-color .2s, transform .3s var(--spring); }
  .p-groups .listing-card[open] > summary::before { animation: sg-ping .7s var(--ease); }
  @keyframes sg-ping { 40% { transform: scale(1.18); } }
  .p-groups .listing-card[open] > .listing-body { animation: sg-unfold .45s var(--ease); }
  @keyframes sg-unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .p-groups .listing-card { transition: box-shadow .3s var(--ease), translate .35s var(--spring); }
  @media (hover: hover) and (pointer: fine) { .p-groups .listing-card:not([open]):hover { translate: 0 -3px; box-shadow: 0 0 0 1px var(--line), 0 18px 30px -18px rgba(29, 44, 76, .45); } }
}

@media print {
  .p-groups .sg-map { display: none; }
  .p-groups .feature-card.sg-featured { background: none; color: var(--text); box-shadow: none; border: 1px solid #ccc; }
  .p-groups .sg-featured h3, .p-groups .sg-featured p { color: var(--text); }
}

/* an open circle takes the whole row, so its details and buttons sit side by side, never beside a hole */
@media (min-width: 860px) { .p-groups .sg-circles > .listing-card[open] { grid-column: 1 / -1; } }
/* the opening's long introduction keeps clear of the treeline behind it */
@media (min-width: 900px) { .p-groups main > .has-hills .page-hero-grid > :first-child { padding-bottom: 64px; } }
@media (max-width: 560px) {
  .p-groups .sg-area { padding: 24px 10px 20px; }
  .p-groups .sg-area > h2 { padding-inline: 8px; }
  .p-groups .sg-sub > h3 { padding-inline: 6px; }
  .p-groups .feature-card.sg-featured { padding: 24px 20px; }
}
