/* Group registration page (site/group.html). Tokens and primitives come from theme.css, shared components from styles.css. */
.group-main { padding-block: 0 4rem; }
.group-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .group-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
}

/* Section headings inside the form: serif, like every other h2 on the site */
.group-h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
 
  margin: 1.25rem 0 0.25rem;
  max-width: none;
}
.group-h2:first-child { margin-top: 0; }
.group-h2 + .note { margin: 0 0 1rem; color: var(--ink-2); }

/* One block per person */
.member {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.75rem;
  margin: 0 0 1rem;
  background: rgb(17 17 17 / .03);
}
.member-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.member-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.78rem;
 
 
  color: var(--champagne);
}
.member-remove { white-space: nowrap; }
.checkbox-inline { font-size: 0.9rem; color: var(--stone); margin-top: 0.15rem; }
.checkbox-inline input { width: 1rem; height: 1rem; margin-top: 0.2rem; }
input[readonly].same { background: rgb(17 17 17 / .02); color: var(--ink-2); border-style: dashed; }

#add-member { margin-bottom: 0.5rem; }

/* Running total: a gold band */
.group-total {
  margin: 1rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
}

/* Aside: numbered steps in the same voice as the site's rows */
.group-aside { display: grid; gap: 1.5rem; }
.group-aside ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.group-aside ol li { position: relative; padding: 0.55rem 0 0.55rem 2.4rem; border-top: 1px solid var(--hair); color: var(--ink-2); }
.group-aside ol li:last-child { border-bottom: 1px solid var(--hair); }
.group-aside ol li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--fs-micro);
 
  color: var(--champagne);
}

/* Distance choice: three radio pills per person (3K / 5K / 10K, each with its fee) */
.field-label { font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 500; color: var(--ink-2); }
.distance-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; border-radius: var(--radius-sm); }
.distance-pills:focus { outline: none; }
.distance-pills[aria-invalid="true"] .distance-pill { border-color: var(--danger); }
.distance-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--hair-hover);
  border-radius: var(--radius-sm);
  background: rgb(17 17 17 / .04);
  cursor: pointer;
  text-align: center;
  font-weight: 400;
 
  text-transform: none;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.distance-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.distance-pill .dp-name { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; line-height: 1; color: var(--ink); }
.distance-pill .dp-sub { font-size: 0.8rem; color: var(--ink-2); }
.distance-pill .dp-fee { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 500; color: var(--gold); }
.distance-pill:hover { border-color: var(--champagne); background: rgb(17 17 17 / .08); }
.distance-pill.is-checked { border-color: var(--gold); background: var(--gold); }
.distance-pill.is-checked .dp-name { color: var(--on-gold); }
.distance-pill.is-checked .dp-sub, .distance-pill.is-checked .dp-fee { color: rgb(17 17 17 / .75); }
.distance-pill.has-focus { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 480px) {
  .distance-pills { grid-template-columns: 1fr; }
  .distance-pill { flex-direction: row; justify-content: space-between; gap: 0.6rem; padding: 0.6rem 0.9rem; text-align: left; }
  .distance-pill .dp-sub { flex: 1; }
}
