/* Family stories complement the map. Large, single-column actions on phones. */
.community-intro {
  max-width: 670px;
  margin: 12px 0 20px;
  color: #625651;
  font-size: 15px;
  line-height: 1.65;
}
.community-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.community-section {
  padding-block: 48px;
}
.community-section + .community-section {
  border-top: 1px solid var(--line);
}
.community-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.community-heading p {
  color: var(--muted);
  margin-top: 9px;
  max-width: 550px;
}
.family-grid,
.giving-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.family-tile,
.giving-tile,
.community-empty {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}
.family-tile {
  display: flex;
  flex-direction: column;
}
.family-tile > img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.family-tile-copy {
  padding: 22px;
  display: grid;
  gap: 12px;
  flex: 1;
}
.family-tile h3 {
  font-size: 22px;
}
.family-tile p {
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.family-tile a {
  align-self: end;
}
.family-placeholder {
  height: 150px;
  background: var(--blush);
  display: grid;
  place-items: center;
  font-size: 46px;
  color: var(--rose-dark);
}
.giving-tile {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.giving-tile .gift-icon {
  font-size: 29px;
  color: var(--rose-dark);
}
.giving-tile p {
  color: var(--muted);
  flex: 1;
}
.giving-tile .button {
  margin-top: 6px;
}
.community-empty {
  padding: 30px;
  display: grid;
  gap: 12px;
  background: linear-gradient(140deg, #fff, #fff2f0);
}
.community-empty p {
  color: var(--muted);
  max-width: 560px;
}
.community-empty .button {
  justify-self: start;
}
.community-form {
  display: grid;
  gap: 18px;
}
.community-form label {
  display: grid;
  min-width: 0;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
}
.community-form input:not([type='checkbox']):not([type='radio']),
.community-form select,
.community-form textarea {
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid #cfc4bc;
  border-radius: 12px;
  padding: 12px 13px;
  font:
    400 16px/1.5 'DM Sans',
    sans-serif;
  color: var(--ink);
}
.community-form textarea {
  min-height: 145px;
  resize: vertical;
}
.community-form input:focus-visible,
.community-form textarea:focus-visible,
.community-form select:focus-visible {
  outline: 3px solid var(--rose-dark);
  outline-offset: 2px;
}
.community-form .choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.choice input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--rose-dark);
}
.community-form fieldset {
  border: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.community-form legend {
  font-weight: 650;
  margin-bottom: 12px;
}
.choice-box {
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 14px;
  background: #fff;
}
.choice-box:has(input:checked) {
  border-color: #b65b70;
  background: #fff4f4;
}
.choice small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}
.form-help {
  font-size: 13px;
  color: var(--muted);
}
.form-help a,
.community-fine a {
  text-decoration: underline;
}
.community-fine {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0;
}
.form-message {
  padding: 14px 16px;
  background: var(--blush);
  border-radius: 12px;
  color: #542d39;
  overflow-wrap: anywhere;
}
.form-message.error {
  background: #fff0eb;
  color: #8f2519;
}
.honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.community-form button:disabled,
.button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.community-form .button {
  width: 100%;
}
.community-form .secondary-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.community-form .secondary-row .button {
  width: auto;
}
.community-page {
  width: min(680px, calc(100% - 40px));
  margin: 40px auto 70px;
}
.community-page.wide {
  width: min(950px, calc(100% - 40px));
}
.community-page h1 {
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -1.2px;
  margin: 12px 0;
}
.community-page h2 {
  font-size: 26px;
  margin-bottom: 14px;
}
.community-page > .lead {
  color: var(--muted);
  margin: 0 0 26px;
}
.community-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  margin: 22px 0;
}
.community-panel p + p {
  margin-top: 12px;
}
.community-panel .community-form {
  margin-top: 20px;
}
.profile-photo {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
}
.profile-story {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 19px;
  line-height: 1.7;
}
.profile-preview {
  border: 1px dashed #be8f90;
  border-radius: 18px;
  padding: 20px;
  background: #fff9f6;
  margin: 20px 0;
}
.profile-preview p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.profile-preview img {
  max-height: 220px;
  max-width: 100%;
  border-radius: 14px;
  margin: 12px 0;
}
.profile-preview h3 {
  font-size: 24px;
}
.status-tag {
  display: inline-flex;
  border-radius: 99px;
  background: var(--blush);
  color: var(--rose-dark);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 650;
}
.price {
  font-size: 32px;
  font-weight: 700;
}
.text-link {
  border: 0;
  background: none;
  text-decoration: underline;
  font: inherit;
  padding: 10px 0;
  min-height: 44px;
  cursor: pointer;
}
.split-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.community-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
}
.community-dialog {
  width: min(520px, calc(100% - 24px));
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 24px;
}
.community-dialog > h2 {
  margin-bottom: 12px;
}
.community-dialog > p {
  margin-bottom: 20px;
  color: var(--muted);
}
.community-dialog > .close-button {
  float: right;
  margin: -8px -8px 8px 10px;
}
.community-dialog .community-form {
  clear: both;
}
.trip-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
}
.trip-row p {
  color: var(--muted);
  margin: 7px 0;
}
.load-more {
  margin-top: 22px;
}
@media (max-width: 700px) {
  .community-intro {
    font-size: 14px;
  }
  .community-actions {
    gap: 8px;
    margin-bottom: 17px;
  }
  .community-actions .button {
    padding: 11px 16px;
    min-height: 48px;
    flex: 1;
  }
  .family-grid,
  .giving-grid {
    grid-template-columns: 1fr;
  }
  .community-heading {
    display: block;
  }
  .community-heading h2 {
    font-size: 29px;
  }
  .community-section {
    padding-block: 33px;
  }
  .community-panel {
    padding: 21px;
  }
  .community-page {
    margin-top: 25px;
  }
  .community-heading .text-link {
    margin-top: 8px;
  }
  .community-page .nav {
    position: static;
  }
  .split-fields {
    grid-template-columns: 1fr;
  }
  .trip-row {
    align-items: start;
    flex-direction: column;
  }
  .family-tile > img {
    height: 270px;
  }
  .community-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 12px);
    padding: 22px 20px max(22px, env(safe-area-inset-bottom));
  }
  .community-form .secondary-row .button {
    width: 100%;
  }
  .community-form {
    gap: 19px;
  }
}

/* Secondary signup fields stay available without lengthening the first step. */
.optional-details{border-block:1px solid var(--line);padding-block:12px}
.optional-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:10px;font-weight:600}
.optional-details[open] summary{margin-bottom:12px}
.optional-details label+label{margin-top:16px}

/* Native phone pickers can truncate labels; keep the full selection readable below. */
.community-form .package-summary {
  display: grid;
  gap: 2px;
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.community-form .package-summary strong {
  font-weight: 600;
}
