/* ===================================================================
   GROUPS — /groups/

   The step panel is the same idea as .visit-steps--flow on
   /plan-your-visit/ and .kids-steps--flow on /kids/: one divided
   panel, numbered badges in normal flow rather than absolutely
   positioned, so a badge can never collide with copy that wraps.

   It is duplicated here rather than shared because those rules live in
   visit.css and kids.css, which this page does not load — the same
   trap that left the sermon cards unstyled when .msg-grid lived only
   in watch.css. Worth folding all three into style.css as one
   `.step-flow` after launch; not worth the regression risk this week.
   =================================================================== */

.grp-steps {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 18px 40px -32px rgba(18, 19, 19, 0.5);
}
.grp-steps > li {
  counter-increment: step;
  padding: 0 clamp(1.25rem, 2.2vw, 2rem);
  border-left: 1px solid var(--line);
}
.grp-steps > li:first-child { border-left: 0; }
.grp-steps > li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  margin-bottom: 0.9rem;
  background: var(--red); color: #fff;
  font-size: 0.95rem; font-weight: 800;
}
.grp-step-title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem; font-weight: 800; color: var(--navy);
}
.grp-step-copy { margin: 0; font-size: 0.98rem; line-height: 1.7; color: var(--slate); }
.grp-step-copy a { color: var(--red); text-underline-offset: 3px; }

.grp-find { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* --- FAQs --------------------------------------------------------- */

/* One column, full width, at a comfortable reading measure. Not the 2-up grid
   the other pages use for questions: three of these answers are a sentence and
   the fourth is three paragraphs, and a grid row is only as short as its
   tallest cell. */
.grp-faq {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 48rem;
  display: grid; gap: 0.9rem;
}
.grp-faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.25rem, 2.2vw, 1.75rem);
}
.grp-q {
  /* list-style removes the default disclosure triangle in Safari/Firefox;
     the ::after below is the marker, so it can be positioned and animated. */
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem); font-weight: 800; line-height: 1.3;
  color: var(--navy);
}
.grp-q::-webkit-details-marker { display: none; }
.grp-q::after {
  content: "+";
  flex: none;
  font-size: 1.5rem; font-weight: 400; line-height: 1;
  color: var(--red);
  transition: transform 0.2s ease;
}
.grp-faq-item[open] .grp-q::after { transform: rotate(45deg); }
.grp-q:hover { color: var(--red); }
.grp-q:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }

.grp-a { padding-top: 1rem; }
.grp-a p {
  margin: 0 0 0.9rem;
  font-size: 0.98rem; line-height: 1.75; color: var(--slate);
}
.grp-a p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .grp-q::after { transition: none; }
}

/* --- leadership band --------------------------------------------- */

/* The statement beside the photo. An <h3> because the section now carries
   its own <h2> ("Curious about group leadership?"), but it is still the line
   people read first in this block, so it keeps heading size. */
.grp-lead-head { margin: 0; }
.grp-lead-copy {
  margin: 1.1rem 0 0;
  font-size: 1rem; line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}
.grp-lead-copy + .btn { margin-top: clamp(1.5rem, 2.6vw, 2rem); }

@media (max-width: 62rem) {
  .grp-steps { grid-template-columns: 1fr; row-gap: clamp(1.5rem, 3vw, 2rem); }
  .grp-steps > li { border-left: 0; }
}
