/* Public support group directory + group detail pages */

/* Hero full-bleed; sections below stay on the site content rail (.wrap) */
.sg-page .sg-hero {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(237, 43, 123, 0.12), transparent 50%),
    linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(0, 43, 95, 0.08);
  padding: clamp(2rem, 5vw, 3.25rem) 0;
}

.sg-page main > .section > .wrap {
  max-width: var(--max, 1120px);
}

.sg-page .sg-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fnd-magenta, #ed2b7b);
}

.sg-page .sg-hero h1 {
  margin: 0 0 0.6rem;
  color: var(--fnd-navy, #002b5f);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.sg-page .sg-hero .lead {
  max-width: 42rem;
  margin: 0 0 1.1rem;
  color: var(--text, #243447);
  font-size: 1.08rem;
  line-height: 1.55;
}

.sg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.sg-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.sg-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 43, 95, 0.06);
  color: var(--fnd-navy, #002b5f);
  font-size: 0.88rem;
  font-weight: 700;
}

.sg-purpose {
  padding-top: 1.5rem;
}

.sg-purpose-card {
  max-width: 48rem;
  background: #fff;
  border: 1px solid rgba(0, 43, 95, 0.1);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 10px 30px rgba(0, 43, 95, 0.04);
}

.sg-purpose-card h2 {
  margin: 0 0 0.5rem;
  color: var(--fnd-navy, #002b5f);
}

.sg-purpose-lead {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--text, #243447);
}

.sg-purpose-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  line-height: 1.55;
  color: var(--text, #243447);
}

.sg-purpose-list li {
  margin-bottom: 0.45rem;
}

.sg-safety {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid rgba(180, 120, 0, 0.2);
  color: #5a4200;
  font-size: 0.92rem;
  line-height: 1.45;
}

.sg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.sg-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 43, 95, 0.1);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.04);
}

.sg-card h3 {
  margin: 0.4rem 0 0.25rem;
  font-size: 1.15rem;
  color: var(--fnd-navy, #002b5f);
}

.sg-card h3 a {
  color: inherit;
  text-decoration: none;
}

.sg-card h3 a:hover {
  color: var(--fnd-magenta, #ed2b7b);
}

.sg-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(237, 43, 123, 0.1);
  color: var(--fnd-magenta, #ed2b7b);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sg-meta,
.sg-muted {
  color: var(--muted, #5b6b7c);
  margin: 0;
}

.sg-facts {
  margin: 0.85rem 0;
  display: grid;
  gap: 0.65rem;
}

.sg-facts dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #5b6b7c);
  margin: 0 0 0.15rem;
}

.sg-facts dd {
  margin: 0;
  color: var(--fnd-navy, #002b5f);
  line-height: 1.4;
}

.sg-excerpt {
  margin: 0 0 1rem;
  color: var(--muted, #5b6b7c);
  font-size: 0.95rem;
  line-height: 1.45;
  flex: 1 1 auto;
}

.sg-card-actions {
  margin-top: auto;
}

.sg-empty,
.sg-empty-inline {
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  background: #f7f9fc;
  border: 1px dashed rgba(0, 43, 95, 0.15);
}

.sg-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.sg-cta-band h2 {
  margin: 0 0 0.35rem;
  color: var(--fnd-navy, #002b5f);
}

.sg-cta-band p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted, #5b6b7c);
}

/* Group detail layout */
.sg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.75rem 2rem;
  align-items: start;
}

.sg-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.sg-main h2 {
  color: var(--fnd-navy, #002b5f);
  margin: 0 0 0.75rem;
}

.sg-prose {
  line-height: 1.6;
  color: var(--text, #243447);
  margin-bottom: 1.25rem;
}

.sg-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

.sg-detail {
  background: #f7f9fc;
  border: 1px solid rgba(0, 43, 95, 0.08);
  border-radius: 14px;
  padding: 1rem 1.05rem;
}

.sg-detail h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--fnd-navy, #002b5f);
}

.sg-detail p {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.sg-section-head {
  margin-bottom: 0.85rem;
}

.sg-section-head p {
  margin: 0.25rem 0 0;
  color: var(--muted, #5b6b7c);
}

.sg-meeting-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.sg-meeting {
  display: grid;
  grid-template-columns: minmax(110px, 140px) 1fr;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(0, 43, 95, 0.1);
  border-radius: 14px;
  background: #fff;
}

.sg-meeting.is-next {
  border-color: rgba(237, 43, 123, 0.35);
  box-shadow: 0 8px 22px rgba(237, 43, 123, 0.08);
}

.sg-meeting-date strong {
  display: block;
  color: var(--fnd-navy, #002b5f);
  margin-bottom: 0.35rem;
}

.sg-meeting-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  color: var(--fnd-navy, #002b5f);
}

.sg-meeting-notes {
  margin: 0.4rem 0 0.5rem;
  color: var(--muted, #5b6b7c);
  font-size: 0.92rem;
}

.sg-inline-link {
  font-weight: 700;
  color: var(--fnd-magenta, #ed2b7b);
  text-decoration: none;
  font-size: 0.92rem;
}

.sg-inline-link:hover {
  text-decoration: underline;
}

.sg-register-card {
  position: sticky;
  top: 6.5rem;
  background: #fff;
  border: 1px solid rgba(0, 43, 95, 0.12);
  border-radius: 18px;
  padding: 1.2rem 1.25rem 1.35rem;
  box-shadow: 0 14px 36px rgba(0, 43, 95, 0.08);
}

.sg-register-card h2 {
  margin: 0 0 0.4rem;
  color: var(--fnd-navy, #002b5f);
  font-size: 1.25rem;
}

.sg-register-card > p,
.sg-join-lead {
  margin: 0 0 0.75rem;
  color: var(--muted, #5b6b7c);
  font-size: 0.95rem;
  line-height: 1.45;
}

.sg-join-lead {
  color: var(--text, #243447);
}

.sg-join-points {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--fnd-navy, #002b5f);
  font-size: 0.9rem;
  line-height: 1.45;
}

.sg-join-points li {
  margin-bottom: 0.3rem;
}

.sg-coordinator {
  margin: 1.75rem 0 1.25rem;
}

.sg-coordinator h2 {
  margin-bottom: 0.75rem;
}

.sg-coordinator-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(0, 43, 95, 0.1);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #f7f9fc 100%);
}

.sg-coordinator-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 43, 95, 0.08);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--fnd-navy, #002b5f);
}

.sg-coordinator-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-coordinator-copy h3 {
  margin: 0 0 0.2rem;
  color: var(--fnd-navy, #002b5f);
  font-size: 1.1rem;
}

.sg-coordinator-copy .sg-prose {
  margin: 0.55rem 0 0;
}

@media (max-width: 640px) {
  .sg-coordinator-card {
    grid-template-columns: 72px 1fr;
  }
  .sg-coordinator-photo {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
  }
}

.sg-form label {
  display: block;
  margin-bottom: 0.75rem;
}

.sg-form label > span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fnd-navy, #002b5f);
}

.sg-form label > span em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted, #5b6b7c);
}

.sg-form input,
.sg-form select,
.sg-form textarea {
  width: 100%;
  border: 1.5px solid rgba(0, 43, 95, 0.14);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
}

.sg-form input:focus,
.sg-form select:focus,
.sg-form textarea:focus {
  outline: none;
  border-color: rgba(0, 43, 95, 0.35);
}

.sg-check {
  display: flex !important;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
}

.sg-check input {
  width: auto !important;
  margin-top: 0.2rem;
}

.sg-form .button {
  width: 100%;
  margin-top: 0.25rem;
}

.sg-fineprint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted, #5b6b7c);
  line-height: 1.4;
}

.sg-aside-links {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  font-size: 0.92rem;
}

.sg-aside-links a {
  color: var(--fnd-navy, #002b5f);
  font-weight: 700;
  text-decoration: none;
}

.sg-aside-links a:hover {
  color: var(--fnd-magenta, #ed2b7b);
}

.sg-flash {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.sg-flash--ok {
  background: #eaf8ef;
  border: 1px solid rgba(20, 130, 60, 0.2);
  color: #145c2e;
}

.sg-flash--err {
  background: #fdecee;
  border: 1px solid rgba(180, 30, 50, 0.2);
  color: #8a1c2c;
}

@media (max-width: 900px) {
  .sg-layout {
    grid-template-columns: 1fr;
  }

  .sg-register-card {
    position: static;
  }

  .sg-detail-grid {
    grid-template-columns: 1fr;
  }

  .sg-meeting {
    grid-template-columns: 1fr;
  }
}
