:root {
  --bg-lavender: #ebe3f3;
  --bg-cream: #efe2cf;
  --bg-soft: #f6f1f8;
  --ink: #171d14;
  --muted: #5f5a67;
  --purple: #6b4eb2;
  --purple-dark: #4a2d87;
  --pink: #ef4b78;
  --yellow: #f4cf1f;
  --green: #71ce63;
  --cyan: #28b5d2;
  --orange: #f5a33b;
  --card: rgba(255,255,255,.72);
  --border: rgba(23,29,20,.12);
  --shadow: 0 18px 45px rgba(44, 34, 71, .14);
  --round-xl: 40px;
  --round-lg: 28px;
  --round-md: 20px;
  --max: 1120px;
  --splash: url("/assets/images/rainbow-paint-splash.png");
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 12% 419px, rgba(244,207,31,.3), transparent 18rem), radial-gradient(circle at 88% 350px, rgba(40,181,210,.18), transparent 20rem), linear-gradient(180deg, var(--bg-lavender) 0%, var(--bg-soft) 45%, #f7f2e8 100%);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", "Avenir Next", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.social-groups-hero {
  padding: 40px 0 42px;
  text-align: center;
}

.social-groups-hero-image {
  width: 100%;
  height: auto;
  margin: 0 auto clamp(34px, 5vw, 40px);
  border: 1px solid var(--border);
  border-radius: clamp(24px, 5vw, var(--round-xl));
  box-shadow: var(--shadow);
}

.social-groups-hero h1 {
  margin: 0 auto;
  color: var(--purple-dark);
  font-family: "Luckiest Guy", Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .98;
}

.social-groups-intro {
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
}

.social-groups-search {
  position: relative;
  max-width: 680px;
  margin: 34px auto 0;
}

.social-groups-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.social-groups-search input {
  width: 100%;
  min-height: 58px;
  padding: 14px 52px 14px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

.social-groups-search input:focus {
  border-color: var(--purple);
  outline: none;
}

.social-groups-search::after {
  content: "⌕";
  position: absolute;
  top: 50%;
  right: 21px;
  color: var(--purple-dark);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-54%);
  pointer-events: none;
}

.social-groups-list {
  padding: 0px 0 10px;
  margin-top: -40px;
}

.social-language {
  margin-top: 44px;
}

.social-language[hidden],
.social-card[hidden],
.social-groups-empty[hidden] {
  display: none;
}

.social-language h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: rgb(23, 29, 20);
  font-family: "Luckiest Guy", Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2rem, 4vw, 2.3rem);
  font-weight: 400;
  letter-spacing: .015em;
}

.social-language h2::after {
  content: "";
  height: 3px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--yellow), transparent);
}

.social-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.social-card {
  min-width: 0;
}

.social-card a {
  height: 100%;
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--round-md);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(44,34,71,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.social-card a:hover,
.social-card a:focus-visible {
  border-color: rgba(107,78,178,.45);
  box-shadow: 0 16px 34px rgba(44,34,71,.14);
  transform: translateY(-2px);
}

.social-card-copy {
  min-width: 0;
}

.social-card-name {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  font-weight: 1000;
  line-height: 1.25;
}

.social-card-count {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 800;
}

.social-card-arrow {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 1000;
}

.social-groups-empty {
  margin: 44px 0 0;
  padding: 28px;
  border-radius: var(--round-md);
  background: rgba(255,255,255,.72);
  color: var(--muted);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 900;
}

.social-groups-add-group {
  margin: 56px 0 18px;
  color: var(--muted);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
}

.social-groups-add-group a {
  color: var(--purple-dark);
  font-weight: 1000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .social-card-grid {
    grid-template-columns: 1fr;
  }

  .social-card a {
    min-height: 104px;
  }
}

.social-profile {
  padding: 38px 0 24px;
}

.social-profile-back {
  display: inline-flex;
  align-items: center;
  color: var(--purple-dark);
  font-weight: 900;
}

.social-profile-back:hover,
.social-profile-back:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-profile-hero {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
  padding: 36px 0 72px;
}

.social-profile-photo {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 32px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.social-profile-photo img {
  width: 100%;
  aspect-ratio: 510 / 480;
  border-radius: 23px;
  object-fit: cover;
}

.social-profile-photo.social-profile-photo-portrait {
  width: min(100%, 440px);
  justify-self: center;
}

.social-profile-photo-portrait img {
  aspect-ratio: 3 / 4;
}

.social-profile-photo-landscape-4-3 img {
  aspect-ratio: 4 / 3;
}

.social-profile-photo-landscape-wide img {
  aspect-ratio: 435 / 257;
}

.social-profile-photo-natural img {
  aspect-ratio: var(--profile-image-ratio);
}

.social-profile-kicker {
  margin: 0 0 10px;
  color: var(--purple-dark);
  font-size: .85rem;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.social-profile > .container h1,
.social-profile > .container h2,
.social-profile > .container h3 {
  margin: 0;
  font-family: "Luckiest Guy", Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-weight: 400;
  letter-spacing: .015em;
}

.social-profile > .container h1 {
  color: var(--purple-dark);
  font-size: clamp(2.6rem, 7vw, 3.5rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.social-profile > .container h2 {
  color: var(--ink);
  font-size: clamp(2.35rem, 4.8vw, 2.35rem);
  line-height: 1;
}

.social-profile > .container h3 {
  font-size: 1.35rem;
  line-height: 1.05;
}

.social-profile-lead {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 800;
}

.social-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.social-profile-stats div {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
}

.social-profile-stats dt {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.social-profile-stats dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 1000;
}

.social-profile-facebook {
  display: inline-flex;
}

.social-profile-story {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--border);
  border-radius: var(--round-xl);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}

.social-profile-story p:not(.social-profile-kicker) {
  max-width: 900px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
}

.social-profile-story h3 {
  max-width: 900px;
  margin: 28px 0 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.35;
}

.social-profile-story ul,
.social-profile-story ol {
  max-width: 900px;
  margin: 16px 0 0;
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.65;
}

.social-profile-story li + li {
  margin-top: 8px;
}

.social-profile-story a {
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .social-profile-hero {
    grid-template-columns: 1fr;
  }

  .social-profile-hero {
    padding: 36px 0 52px;
  }
  
  .social-profile-photo {
    width: min(100%, 580px);
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  .social-profile {
    padding-top: 24px;
  }

  .social-profile-stats {
    grid-template-columns: 1fr;
  }

  .social-profile-facebook {
    width: 100%;
  }
}

.social-profile-hero.social-profile-hero-no-image {
  grid-template-columns: minmax(0, 1fr);
}
