/* 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 .sg-hero--compact {
  padding: 0.85rem 0 1rem;
}
.sg-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}
.sg-hero--compact h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.sg-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0;
  color: var(--muted, #5b6b7c);
  font-weight: 650;
}
.sg-hero-facts span + span::before {
  content: "·";
  margin-right: 0.9rem;
  color: #b7c2d0;
}
.sg-body { padding-top: 1.25rem; }
.sg-next {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 2px solid rgba(237, 43, 123, 0.28);
  background: #fff8fb;
  margin: 0 0 1rem;
}
.sg-next h2 { margin: 0.1rem 0 0.25rem; }
.sg-next p { margin: 0 0 0.75rem; color: var(--muted, #5b6b7c); }
.sg-next-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sg-fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0 0 1.15rem;
}
.sg-fact {
  background: #fff;
  border: 1px solid rgba(0, 43, 95, 0.1);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}
.sg-fact h2 {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fnd-magenta, #ed2b7b);
}
.sg-fact p { margin: 0; color: var(--fnd-navy, #002b5f); font-weight: 700; line-height: 1.35; }
.sg-routine { margin: 0 0 1.15rem; }
.sg-routine-lead { margin: 0 0 0.65rem; color: var(--muted, #5b6b7c); }
.sg-routine-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.sg-routine-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #f7f9fc;
}
.sg-routine-list strong { color: var(--fnd-navy, #002b5f); }
.sg-routine-list span { color: var(--muted, #5b6b7c); }
.sg-host {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  margin: 0 0 1rem;
}
.sg-host img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.sg-host h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.sg-host p { margin: 0; color: var(--muted, #5b6b7c); }
.sg-later { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.45rem; }
.sg-later li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(0, 43, 95, 0.08);
  border-radius: 12px;
}
.sg-later a { font-weight: 700; color: var(--fnd-magenta, #ed2b7b); }

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

.sg-page .hub-hero__inner {
  align-items: start;
}
.sg-page .hub-aside {
  align-self: start;
}
.sg-page .hub-aside .hub-aside__body {
  flex: none;
}

.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-grid--directory {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767px) {
  .sg-grid--directory {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.sg-card-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: #eef3f8;
  overflow: hidden;
}
.sg-card-cover picture {
  display: block;
  width: 100%;
  height: 100%;
}
.sg-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sg-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.05rem 1.15rem 1.15rem;
  flex: 1 1 auto;
}
.sg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}
.sg-miles {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--fnd-navy, #002b5f);
  white-space: nowrap;
}
.sg-card-next {
  margin: 0.35rem 0 0.7rem;
  color: var(--fnd-navy, #002b5f);
  font-weight: 650;
}
.sg-card-actions .button {
  width: 100%;
  text-align: center;
}

.sg-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: end;
}
.sg-search input[type="search"] {
  min-width: min(100%, 16rem);
  flex: 1 1 14rem;
  border: 1.5px solid rgba(0, 43, 95, 0.14);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
}
.sg-search--bar {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  background: #f7f9fc;
  border-radius: 16px;
  border: 1px solid rgba(0, 43, 95, 0.08);
}
.sg-search--bar label {
  flex: 1 1 16rem;
  display: grid;
  gap: 0.3rem;
}
.sg-search--bar label span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fnd-navy, #002b5f);
}
.sg-search--aside {
  flex-direction: column;
  align-items: stretch;
  margin: 0.35rem 0 0;
}
.sg-search--aside input[type="search"] {
  flex: none;
  width: 100%;
  min-width: 0;
  min-height: 2.85rem;
}
.sg-search--aside .button {
  width: 100%;
  min-width: 0;
}
.sg-search-hint {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--muted, #5b6b7c);
}
.sg-search-result {
  margin: 0 0 1rem;
  color: var(--text, #243447);
}
.sg-region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
}
.sg-chip.is-active {
  background: var(--fnd-navy, #002b5f);
  color: #fff;
}
.sg-subhead {
  margin: 1.25rem 0 0.7rem;
  color: var(--fnd-navy, #002b5f);
  font-size: 1.05rem;
}

.sg-network-map {
  margin: 0 0 1.25rem;
}

.sg-network-map__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 0 0 0.8rem;
}

.sg-network-map__head .sg-kicker,
.sg-group-list__head .sg-kicker {
  margin-bottom: 0.25rem;
}

.sg-network-map__head h3,
.sg-group-list__head h3 {
  margin: 0;
  color: var(--fnd-navy, #002b5f);
  font-size: clamp(1.25rem, 2.7vw, 1.75rem);
}

.sg-network-map__head h3 span {
  color: var(--muted, #5b6b7c);
  font-weight: 650;
}

.sg-network-map__head p:last-child {
  max-width: 44rem;
  margin: 0.35rem 0 0;
  color: var(--muted, #5b6b7c);
}

.sg-network-map__list-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fnd-navy, #002b5f);
  font-weight: 800;
  white-space: nowrap;
  text-underline-offset: 0.2em;
}

.sg-network-map__frame {
  position: relative;
  min-height: clamp(390px, 54vw, 560px);
  overflow: hidden;
  border: 1px solid rgba(0, 43, 95, 0.16);
  border-radius: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at 60% 35%, rgba(237, 43, 123, 0.18), transparent 32%),
    #06162c;
  box-shadow: 0 22px 55px rgba(0, 35, 75, 0.16);
}

#support-groups-map {
  position: absolute;
  inset: 0;
}

#support-groups-map.is-unavailable {
  opacity: 0.25;
}

.sg-network-map__loading,
.sg-network-map__fallback {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(80%, 30rem);
  margin: 0;
  color: #fff;
  font-weight: 750;
  text-align: center;
}

.sg-network-map__loading[hidden] {
  display: none;
}

.sg-network-map__loading.is-error,
.sg-network-map__fallback {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(0, 24, 55, 0.88);
}

.sg-network-map__note {
  margin: 0.65rem 0 0;
  color: var(--muted, #5b6b7c);
  font-size: 0.84rem;
}

.sg-map-pin {
  position: absolute;
  display: grid;
  place-items: end center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* Show the heart from the transparent brand logo, preserving its original artwork.
   The crop omits the wordmark and the three heads above the heart. */
.sg-map-pin span {
  position: relative;
  display: block;
  width: 42px;
  height: 34px;
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
  opacity: 0;
  transform: translateY(-8px) scale(0.504);
  transform-origin: center bottom;
  transition: opacity 240ms ease var(--sg-pin-delay, 0ms), transform 300ms cubic-bezier(.2,.8,.2,1) var(--sg-pin-delay, 0ms), filter 170ms ease;
}

.sg-map-pin span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/fnd-connect-logo-header.png") -6.6px -14.4px / 126px 54.6px no-repeat;
  clip-path: polygon(0 0, 34% 0, 50% 24%, 66% 0, 100% 0, 100% 100%, 0 100%);
}

.sg-map-pin.is-visible span {
  opacity: 1;
  transform: scale(0.7);
}

.sg-map-pin:hover span,
.sg-map-pin:focus-visible span,
.sg-map-pin.is-active span,
.sg-map-pin.is-list-active span {
  transform: scale(0.812);
  filter: drop-shadow(1px 0 0 #ffd36a) drop-shadow(-1px 0 0 #ffd36a) drop-shadow(0 1px 0 #ffd36a) drop-shadow(0 -1px 0 #ffd36a) drop-shadow(0 3px 7px rgba(255, 211, 106, 0.5));
}

.sg-map-pin:focus-visible {
  outline: 3px solid #ffd36a;
  outline-offset: 2px;
  border-radius: 14px;
}

.sg-map-pin--generic {
  width: 32px;
  height: 32px;
}

.sg-map-pin--generic span {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 2px;
  background: var(--fnd-magenta, #c9005a);
  transform: rotate(-45deg) translateY(-6px) scale(0.72);
  transform-origin: center bottom;
  filter: none;
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 24, 55, 0.45);
}

.sg-map-pin--generic span::before {
  content: none;
}

.sg-map-pin--generic.is-visible span {
  transform: rotate(-45deg) scale(1);
}

.sg-map-pin--generic:hover span,
.sg-map-pin--generic:focus-visible span,
.sg-map-pin--generic.is-active span,
.sg-map-pin--generic.is-list-active span {
  transform: rotate(-45deg) scale(1.18);
  filter: none;
  box-shadow: 0 0 0 2px #ffd36a, 0 2px 5px rgba(255, 211, 106, 0.45);
}

.sg-map-pin__count {
  position: absolute;
  right: -0.45rem;
  top: -0.45rem;
  z-index: 2;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--fnd-magenta, #c9005a);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

.sg-map-pin--generic .sg-map-pin__count {
  transform: rotate(45deg);
  right: -0.55rem;
  top: -0.55rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.18rem;
  background: var(--fnd-navy, #002b5f);
  font-size: 0.62rem;
  line-height: 1rem;
}

.sg-map-popup--cluster ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.sg-map-popup--cluster li {
  display: grid;
  gap: 0.1rem;
}

.sg-map-popup--cluster li span {
  color: var(--muted, #5b6b7c);
  font-size: 0.84rem;
}

.sg-map-popup__operator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.sg-map-popup__operator img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.sg-network-map .maplibregl-popup-content {
  min-width: 220px;
  padding: 1rem 1rem 0.95rem;
  border: 1px solid rgba(0, 43, 95, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 24, 55, 0.25);
}

.sg-network-map .maplibregl-popup-close-button {
  width: 36px;
  height: 36px;
  color: var(--fnd-navy, #002b5f);
  font-size: 1.35rem;
}

.sg-map-popup {
  display: grid;
  gap: 0.25rem;
  padding-right: 1.25rem;
}

.sg-map-popup__place {
  color: var(--fnd-magenta, #c9005a);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sg-map-popup strong {
  color: var(--fnd-navy, #002b5f);
  font-size: 1rem;
  line-height: 1.3;
}

.sg-map-popup__meta {
  color: var(--muted, #5b6b7c);
  font-size: 0.8rem;
}

.sg-map-popup a {
  min-height: 40px;
  margin-top: 0.25rem;
  color: var(--fnd-navy, #002b5f);
  font-weight: 800;
  line-height: 40px;
  text-underline-offset: 0.18em;
}

.sg-network-map .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
}

.sg-network-map .maplibregl-ctrl-attrib {
  max-width: min(88vw, 22rem);
  margin: 0 7px 7px 0 !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(5, 14, 31, 0.84) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  font-size: 0.62rem !important;
  line-height: 1.35 !important;
}

.sg-network-map .maplibregl-ctrl-attrib.maplibregl-compact {
  min-width: 26px;
  min-height: 26px;
  padding: 0 !important;
}

.sg-network-map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) {
  width: 26px !important;
  height: 26px !important;
  overflow: hidden;
}

.sg-network-map .maplibregl-ctrl-attrib.maplibregl-compact-show {
  padding: 5px 8px 5px 29px !important;
  white-space: normal;
}

.sg-network-map .maplibregl-ctrl-attrib a {
  color: #ffd2e5 !important;
}

.sg-group-list {
  scroll-margin-top: 7rem;
}

.sg-group-list__head {
  margin: 1.35rem 0 0.8rem;
}

@media (max-width: 640px) {
  .sg-network-map__head {
    align-items: start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .sg-network-map__frame {
    min-height: 430px;
    border-radius: 18px;
  }

  .sg-network-map__list-link {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-map-pin span {
    transition: none;
  }
}
.sg-how { padding-top: 1.5rem; }
.sg-how-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.sg-how-grid li {
  padding: 1.05rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 43, 95, 0.08);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.04);
}
.sg-how-grid span {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(237, 43, 123, 0.12);
  color: var(--fnd-magenta, #ed2b7b);
  font-weight: 800;
  margin-bottom: 0.55rem;
}
.sg-how-grid h3 {
  margin: 0 0 0.3rem;
  color: var(--fnd-navy, #002b5f);
  font-size: 1.05rem;
}
.sg-how-grid p { margin: 0; color: var(--muted, #5b6b7c); line-height: 1.45; }
.sg-promise {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.sg-promise li {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #f7f9fc;
}
.sg-promise strong {
  display: block;
  color: var(--fnd-navy, #002b5f);
  margin-bottom: 0.25rem;
}
.sg-promise span { color: var(--muted, #5b6b7c); font-size: 0.92rem; line-height: 1.4; }
.sg-related { padding-top: 0.5rem; }
.sg-related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}
.sg-related-head h2 { margin: 0.1rem 0 0; color: var(--fnd-navy, #002b5f); }
.sg-related-all { margin: 1rem 0 0; font-weight: 700; }
.sg-search--inline { align-items: stretch; }
@media (max-width: 800px) {
  .sg-how-grid,
  .sg-promise { grid-template-columns: 1fr; }
}

.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(280px, 400px) minmax(0, 1fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.sg-cover-frame {
  margin: 0.65rem 0 0;
  padding: 0.55rem;
  background: #f4f7fb;
  border: 1px solid rgba(0, 43, 95, 0.08);
  border-radius: 16px;
  text-align: center;
}

.sg-cover {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  object-fit: contain;
  object-position: center top;
  border-radius: 10px;
  margin: 0 auto;
  display: block;
  background: #fff;
}

.sg-poster {
  margin: 0 0 1.15rem;
  padding: 0.15rem 0.2rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 43, 95, 0.08);
}

.sg-poster summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--fnd-navy, #002b5f);
  padding: 0.75rem 0.9rem;
  list-style: none;
}

.sg-poster summary::-webkit-details-marker { display: none; }
.sg-poster summary::after {
  content: "Show";
  float: right;
  font-size: 0.82rem;
  color: var(--fnd-magenta, #ed2b7b);
}
.sg-poster[open] summary::after { content: "Hide"; }

.sg-success {
  background: #eaf8ef;
  border: 1px solid rgba(20, 130, 60, 0.22);
  border-radius: 18px;
  padding: 1.2rem 1.25rem 1.35rem;
  color: #145c2e;
  margin: 0 0 0.5rem;
}
.sg-success h2 {
  margin: 0.15rem 0 0.35rem;
  color: var(--fnd-navy, #002b5f);
}
.sg-success p { margin: 0 0 0.75rem; }
.sg-success-note {
  margin: 0.85rem 0 0 !important;
  font-weight: 600;
  color: #145c2e;
}

.sg-date-chosen {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #f7f9fc;
  color: var(--fnd-navy, #002b5f);
  font-weight: 650;
}

.sg-kin,
.sg-carer {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.8rem 0.2rem;
  border: 1px solid rgba(0, 43, 95, 0.1);
  border-radius: 12px;
}
.sg-kin legend,
.sg-carer legend {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--fnd-navy, #002b5f);
  padding: 0 0.25rem;
}

.sg-carer {
  padding-bottom: 0.75rem;
  background: linear-gradient(145deg, rgba(237, 43, 123, 0.035), rgba(0, 43, 95, 0.025));
}

.sg-carer-choice {
  min-height: 44px;
  margin: 0 !important;
  align-items: center;
}

.sg-carer-choice strong,
.sg-carer-choice small {
  display: block;
}

.sg-carer-choice small,
.sg-carer-help,
.sg-fieldset-help {
  color: var(--muted, #5b6b7c);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
}

.sg-carer-details {
  margin-top: 0.7rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 43, 95, 0.1);
}

.sg-carer-details[hidden] {
  display: none;
}

.sg-carer-same {
  min-height: 44px;
  align-items: center;
  margin-bottom: 0.2rem !important;
}

.sg-carer-help,
.sg-fieldset-help,
.sg-copy-status {
  margin: 0 0 0.65rem;
}

.sg-copy-status {
  min-height: 1.2em;
  color: #145c2e;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.sg-fineprint a {
  color: var(--fnd-navy, #002b5f);
  font-weight: 700;
}

.sg-more {
  margin: 0 0 0.9rem;
  border: 1px dashed rgba(0, 43, 95, 0.16);
  border-radius: 12px;
  padding: 0.15rem 0.75rem 0.35rem;
}
.sg-more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--fnd-navy, #002b5f);
  padding: 0.65rem 0;
}
.sg-more summary em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted, #5b6b7c);
}

.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.8rem 0.85rem;
  font: inherit;
  font-size: 1.02rem;
  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-check input:focus-visible {
  outline: 3px solid rgba(237, 43, 123, 0.32);
  outline-offset: 3px;
}

.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;
}

.sg-hero-register { white-space: nowrap; }

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

  .sg-hero-row .sg-hero-register {
    width: 100%;
    text-align: center;
  }

  .sg-fact-grid,
  .sg-routine-list li {
    grid-template-columns: 1fr;
  }

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

  .sg-form .button {
    min-height: 3rem;
    font-size: 1.05rem;
  }

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

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

/* Local support group locator. Keep these rules separate from group detail pages. */
.sg-directory-page { background: #fff; }
.sg-directory-page main { color: #143353; }
.sg-directory-page main .wrap {
  box-sizing: border-box;
  width: min(calc(100% - 48px), 1180px);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.sg-directory-page main :is(h1, h2, h3, p) { overflow-wrap: break-word; }
.sg-directory-page main :is(a, button, input, select):focus-visible {
  outline: 3px solid #ffd36a;
  outline-offset: 3px;
}
.sg-directory-page .sg-kicker {
  margin: 0 0 10px;
  color: #a6004b;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .1em;
}
.sg-locator {
  padding: 28px 0 0;
  background: linear-gradient(180deg, #f4f6fa, #fff);
  border-top: 3px solid #c9005a;
  scroll-margin-top: 120px;
}
.sg-locator__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}
.sg-locator__heading > div:first-child { max-width: 770px; min-width: 0; }
.sg-locator__heading h1 {
  margin: 0;
  color: #002b5f;
  font-size: clamp(2.1rem, 3.3vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.sg-locator__heading h1 span { color: #b80053; }
.sg-locator__heading p:last-child {
  max-width: 660px;
  margin: 14px 0 0;
  color: #516278;
  line-height: 1.55;
}
.sg-locator__network {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
  padding-left: 26px;
  border-left: 1px solid #d5dce5;
  color: #53657a;
  font-size: .85rem;
  line-height: 1.5;
}
.sg-locator__network-count {
  color: #002b5f;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
}
.sg-locator__workspace {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d2dce8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px #002b5f0a;
}
.sg-locator__search {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border-right: 1px solid #d2dce8;
}
.sg-locator__search h2 {
  margin: 0 0 18px;
  color: #002b5f;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.sg-locator-form { display: grid; gap: 8px; min-width: 0; }
.sg-locator-form label { font-size: .86rem; font-weight: 800; color: #183a60; }
.sg-locator-form input,
.sg-locator-form select {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 50px;
  padding: 12px;
  border: 1px solid #b7c5d6;
  border-radius: 9px;
  color: #183a60;
  background: #fff;
  font: inherit;
  font-size: 1rem;
}
.sg-locator-form input::placeholder { color: #65748a; }
.sg-locator-form #sg-search-help { margin: 0 0 18px; color: #5b6b7c; font-size: .8rem; line-height: 1.45; }
.sg-locator-form .button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  min-height: 50px;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 9px;
  white-space: normal;
}
.sg-locator__reset { display: inline-flex; align-items: center; min-height: 44px; color: #002b5f; font-size: .85rem; font-weight: 700; }
.sg-locator__browse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  font-size: .8rem;
}
.sg-locator__browse a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #002b5f; font-weight: 800; }
.sg-locator__browse > span { color: #617287; }
.sg-locator .sg-network-map { min-width: 0; margin: 0; background: #f4f6f8; }
.sg-locator .sg-network-map__head { align-items: center; min-height: 75px; box-sizing: border-box; padding: 16px 22px; margin: 0; gap: 12px; background: #fff; }
.sg-locator .sg-network-map__head h2 { margin: 0; color: #002b5f; font-size: 1rem; line-height: 1.3; }
.sg-locator .sg-network-map__head p { margin: 4px 0 0; color: #617287; font-size: .8rem; }
.sg-locator__map-count { flex-shrink: 0; font-size: .75rem; font-weight: 750; color: #50627a; }
.sg-locator .sg-network-map__frame { height: 360px; min-height: 0; border: 0; border-top: 1px solid #e2e7ee; border-radius: 0; background: #eef0f3; box-shadow: none; }
.sg-locator .sg-network-map__note { margin: 0; padding: 10px 22px; color: #5b6b7c; font-size: .72rem; line-height: 1.45; }
.sg-locator .sg-network-map__loading { color: #183a60; }
.sg-locator .sg-network-map__loading.is-error,
.sg-locator .sg-network-map__fallback { color: #fff; }
.sg-locator .maplibregl-ctrl-group button,
.sg-locator .maplibregl-popup-close-button { width: 44px; height: 44px; }
.sg-locator .maplibregl-ctrl-attrib { background: rgba(255,255,255,.94) !important; color: #45576b !important; box-shadow: none; }
.sg-locator .maplibregl-ctrl-attrib a { color: #002b5f !important; }
.sg-locator .sg-map-popup { padding-right: 24px; }
.sg-locator .sg-map-popup a { min-height: 44px; line-height: 1.35; display: flex; align-items: center; }
.sg-locator__map-empty { display: flex; flex-direction: column; justify-content: center; align-items: start; gap: 16px; padding: 36px; background: #f1f4f8; }
.sg-locator__map-empty h2 { margin: 0; color: #002b5f; font-size: 1.7rem; }
.sg-locator__map-empty p { margin: 0; max-width: 420px; color: #53657a; }
.sg-locator__map-empty a { display: inline-flex; align-items: center; min-height: 44px; color: #a6004b; font-weight: 800; }
.sg-locator__alternatives { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 20px; padding: 10px 0; color: #53657a; font-size: .82rem; }
.sg-locator__alternatives p { margin: 0; }
.sg-locator__alternatives a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #a6004b; font-weight: 750; }

.sg-directory { padding: 30px 0 48px; scroll-margin-top: 130px; }
.sg-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.sg-results-heading h2 { margin: 0; color: #002b5f; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; letter-spacing: -.035em; }
.sg-results-heading p:last-child { margin: 10px 0 0; color: #617287; font-size: .9rem; }
.sg-results-count { flex-shrink: 0; color: #52647a; font-size: .8rem; font-weight: 750; }
.sg-directory .sg-search-result { padding: 12px 16px; margin-bottom: 24px; border-left: 3px solid #c9005a; background: #f4f6fa; }
.sg-directory .sg-grid--directory { gap: 22px; }
.sg-directory .sg-card { min-width: 0; border: 1px solid #d8e0e9; border-radius: 14px; box-shadow: none; transition: border-color 180ms ease, box-shadow 180ms ease; }
.sg-directory .sg-card:hover,
.sg-directory .sg-card:focus-within { border-color: #b883a0; box-shadow: 0 8px 24px #002b5f0d; }
.sg-directory .sg-card-cover { position: relative; height: 164px; aspect-ratio: auto; }
.sg-directory .sg-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sg-directory .sg-card-body { padding: 18px; gap: 5px; }
.sg-directory .sg-tag { padding: 0; background: none; color: #a6004b; font-size: .68rem; letter-spacing: .05em; }
.sg-directory .sg-card h3 { margin: 6px 0 2px; font-size: 1.06rem; line-height: 1.35; }
.sg-directory .sg-meta { font-size: .85rem; }
.sg-directory .sg-card-next { margin: 12px 0 10px; padding-top: 12px; border-top: 1px solid #e3e9ef; font-size: .83rem; }
.sg-directory .sg-card-actions { margin-top: auto; }
.sg-directory .sg-card-actions .button { box-sizing: border-box; min-height: 46px; border-radius: 8px; }
.sg-directory .sg-empty { padding: 24px; }
.sg-directory .sg-empty h3 { margin-top: 0; }

.sg-first-visit { padding: 36px 0; border-block: 1px solid #e0e6ed; background: #f6f8fb; }
.sg-first-visit__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 48px; margin-bottom: 24px; }
.sg-first-visit__intro .sg-kicker { grid-column: 1; }
.sg-first-visit h2 { grid-column: 1; margin: 0; color: #002b5f; font-size: 1.8rem; letter-spacing: -.035em; }
.sg-first-visit__intro > p:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; color: #5b6b7c; line-height: 1.5; font-size: .9rem; }
.sg-visit-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.sg-visit-steps li { display: flex; gap: 12px; align-items: start; min-width: 0; }
.sg-visit-steps li > span { color: #b60051; font-weight: 850; font-size: .8rem; line-height: 1.5; border-top: 2px solid #c9005a; padding-top: 3px; }
.sg-visit-steps h3 { margin: 3px 0 8px; color: #002b5f; font-size: 1rem; }
.sg-visit-steps p { margin: 0; color: #5b6b7c; font-size: .85rem; line-height: 1.55; }
.sg-locator-safety { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid #dce3ec; color: #5b6b7c; font-size: .78rem; line-height: 1.6; }
.sg-locator-safety a { color: #002b5f; font-weight: 750; }
.sg-start-local { padding: 34px 0; background: #00254f; color: #fff; }
.sg-start-local .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.sg-start-local .sg-kicker { color: #ffabcf; }
.sg-start-local h2 { margin: 0 0 10px; color: #fff; font-size: 1.8rem; letter-spacing: -.035em; }
.sg-start-local p:last-child { max-width: 720px; margin: 0; color: #d3dfed; font-size: .86rem; line-height: 1.6; }
.sg-start-local__actions { flex-shrink: 0; display: grid; gap: 6px; }
.sg-start-local__actions a { display: flex; justify-content: center; align-items: center; min-height: 46px; color: #fff; font-size: .9rem; font-weight: 750; }
.sg-start-local__actions .button { gap: 12px; border-radius: 9px; }

@media (max-width: 767px) {
  .sg-directory-page main .wrap { width: calc(100% - 32px); }
  .sg-locator { padding-top: 24px; scroll-margin-top: 100px; }
  .sg-locator__heading { display: block; margin-bottom: 20px; }
  .sg-locator__heading h1 { font-size: clamp(1.9rem, 7.7vw, 2.5rem); }
  .sg-locator__heading p:last-child { font-size: .9rem; margin-top: 12px; }
  .sg-locator__network { display: none; }
  .sg-locator__workspace { grid-template-columns: minmax(0, 1fr); border-radius: 14px; }
  .sg-locator__search { padding: 20px; border-right: 0; }
  .sg-locator__search h2 { font-size: 1.15rem; margin-bottom: 18px; }
  .sg-locator-form #sg-search-help { margin-bottom: 10px; }
  .sg-locator__browse { padding-top: 8px; }
  .sg-locator .sg-network-map__head { min-height: 0; padding: 14px 18px; border-top: 1px solid #d2dce8; flex-direction: row; }
  .sg-locator .sg-network-map__frame { height: 300px; }
  .sg-locator .sg-network-map__note { padding: 10px 18px; }
  .sg-locator__alternatives { display: block; padding-block: 8px; }
  .sg-locator__alternatives p { padding-top: 6px; }
  .sg-directory { padding: 22px 0 32px; scroll-margin-top: 110px; }
  .sg-results-heading { display: block; margin-bottom: 18px; }
  .sg-results-heading h2 { font-size: 1.6rem; }
  .sg-results-count { display: block; margin-top: 12px; }
  .sg-first-visit { padding: 28px 0; }
  .sg-first-visit__intro { display: block; margin-bottom: 22px; }
  .sg-first-visit__intro > p:last-child { margin-top: 12px; }
  .sg-visit-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sg-start-local .wrap { display: block; }
  .sg-start-local__actions { margin-top: 20px; }
}
@media (max-width: 380px) {
  .sg-directory-page .site-header .header-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-directory .sg-card { transition: none; }
}

.sg-coming-page .sg-coming {
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}
.sg-coming-card {
  background: #fff;
  border: 1px solid rgba(0, 43, 95, 0.1);
  border-top: 4px solid #d50058;
  border-radius: 16px;
  padding: 1.45rem 1.35rem 1.5rem;
  box-shadow: 0 12px 32px rgba(0, 43, 95, 0.07);
}
.sg-coming-card h1 {
  margin: 0.15rem 0 0.35rem;
  color: var(--fnd-navy, #002b5f);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
}
.sg-coming-lead,
.sg-coming-group {
  margin: 0 0 1rem;
  color: var(--muted, #5b6b7c);
  line-height: 1.5;
}
.sg-coming-group { font-weight: 700; color: var(--fnd-navy, #002b5f); }
.sg-coming-card .sg-fact-grid { margin-top: 0.2rem; }
.sg-coming-directions {
  display: inline-block;
  margin: 0.15rem 0 0;
  color: var(--fnd-navy, #002b5f);
  font-weight: 750;
}
.sg-coming-form { margin: 1.15rem 0 0; }
.sg-coming-submit {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
}
.sg-coming-note {
  margin: 0.75rem 0 0;
  color: var(--muted, #5b6b7c);
  font-size: 0.92rem;
}
.sg-coming-card .sg-success { margin: 0; }
.sg-coming-card .sg-next-actions { margin-top: 0.4rem; }
.sg-coming-card .sg-next-actions .button { min-width: 11rem; }
@media (max-width: 640px) {
  .sg-coming-card { padding: 1.15rem 1rem 1.25rem; }
  .sg-coming-card .sg-fact-grid { grid-template-columns: 1fr; }
  .sg-coming-card .sg-next-actions .button { width: 100%; }
}
