/* Activity-led LP. Palette: map.css; spacing and radii: design.ts CSS tokens. */
.hero { min-height: 760px; }
.hero-copy { padding-top: 64px; max-width: 680px; }
.hero-photo { top: 30px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-lg) var(--space-xl); }
.explore-cta { font-size: 18px; min-height: 56px; padding: var(--space-md) var(--space-lg); gap: var(--space-lg); }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 48px; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.hero-actions .text-link { font-size: 13px; }
.groups { padding-top: var(--space-xxl); }
.groups-heading, .recruiting-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-xxl); margin-bottom: var(--space-xxl); }
.groups-heading :is(h1, h2), .recruiting-heading h2 { font-size: clamp(28px, 3.1vw, 40px); }
.groups-heading > p { font-size: 15px; max-width: 350px; padding-bottom: var(--space-xs); }
.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.group-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.group-card figure { position: relative; padding: var(--space-md); background: var(--cream); }
.group-card figure img { aspect-ratio: 3 / 2; object-fit: contain; }
.group-card figcaption { font-size: 12px; color: var(--ink); padding-left: var(--space-sm); }
.group-copy { padding: var(--space-lg); display: flex; flex-direction: column; flex: 1; }
.group-number { display: flex; align-items: center; gap: var(--space-md); font-size: 13px; font-weight: 700; }
.group-number span { font-weight: 400; }
.group-copy h3 { font-size: 24px; margin-top: var(--space-sm); }
.group-copy > p:not(.group-number) { font-size: 15px; line-height: 1.85; margin-top: var(--space-md); }
.group-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); list-style: none; padding: var(--space-lg) 0; margin-top: auto; }
.group-tags li { font-size: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-xs) var(--space-sm); }
.group-copy .text-link { border-top: 1px solid var(--line); padding-top: var(--space-sm); font-size: 13px; }
.groups-note { font-size: 13px; color: var(--muted); margin-top: var(--space-xl); }
.recruiting { background: var(--paper); border-block: 1px solid var(--line); }
.recruiting-heading { margin-bottom: var(--space-lg); }
.recruiting-lead { font-size: 15px; margin-bottom: var(--space-xl); }
.live-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.live-project { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-lg); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); min-width: 0; overflow-wrap: anywhere; }
.live-project .project-badge { align-self: flex-start; font-size: 13px; font-weight: 700; background: var(--aqua); border-radius: var(--radius-sm); padding: var(--space-xs) var(--space-md); }
.live-project h3 { font-size: 24px; }
.live-project dl { display: grid; gap: var(--space-sm); margin: 0; font-size: 13px; }
.live-project dl div { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: var(--space-sm); }
.live-project dt { color: var(--muted); }
.live-project dd { margin: 0; }
.live-project .text-link { margin-top: auto; border-top: 1px solid var(--line); }
.project-state { padding: var(--space-xl) 0; border-top: 1px solid var(--line); }
.project-state p { font-size: 15px; }
.project-state p + p { margin-top: var(--space-sm); font-size: 13px; color: var(--muted); }
.retry-button { font: inherit; font-size: 15px; color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--paper); padding: var(--space-md) var(--space-lg); min-height: 48px; cursor: pointer; }
[hidden] { display: none !important; }
.definition { padding-top: 64px; padding-bottom: 64px; }
.definition > p:not(.eyebrow) { max-width: 760px; }
.flea-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
.flea-story::before { display: none; }
.flea-story article, .flea-story article:nth-child(2) { display: flex; flex-direction: column; gap: var(--space-lg); margin: 0; }
.flea-story .scene, .flea-story .story-copy { width: 100%; }
.flea-story .scene img { aspect-ratio: 3 / 2; object-fit: contain; }
.flea-story .story-copy { padding: 0; }
.flea-story .story-copy h3 { font-size: 24px; margin-bottom: var(--space-md); }
.flea-story .story-copy > p:last-child { font-size: 15px; }
.flea-story .story-copy > p:last-child br { display: none; }
.flea-story .story-number { font-size: 24px; gap: var(--space-md); }
.flea-story .story-number span { font-size: 12px; letter-spacing: 0; }
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-steps li { align-items: flex-start; }
.guide-steps h3 { font-size: 18px; }
.guide-steps p { font-size: 13px; margin-top: var(--space-sm); }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 48px; }
.mobile-nav summary { min-width: 48px; min-height: 48px; padding: var(--space-md); }
.group-card a:hover, .text-link:hover { text-decoration-thickness: 2px; }
@media (min-width: 901px) and (max-width: 1100px) {
  .hero { min-height: 720px; }
  .hero-photo { top: 100px; }
  .group-copy h3 { font-size: 22px; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-copy { padding-top: 0; }
  .hero-photo { top: auto; margin-top: 0; }
  .hero-actions { gap: var(--space-xs) var(--space-lg); }
  .hero .explore-cta { font-size: 16px; }
  .groups-heading, .recruiting-heading { align-items: flex-start; flex-direction: column; gap: var(--space-lg); margin-bottom: var(--space-xl); }
  .groups-heading > p { max-width: none; }
  .group-grid, .live-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .group-card:last-child figure { display: flex; flex-direction: column; justify-content: center; }
  .flea-story { display: flex; flex-direction: column; gap: var(--space-xxl); }
  .flea-story article, .flea-story article:nth-child(2) { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .guide-steps { display: flex; flex-direction: column; gap: var(--space-lg); }
  .guide-steps li { margin: 0; }
  .guide-steps li::after { display: none; }
}
@media (max-width: 680px) {
  .wrap { padding-left: var(--space-lg); padding-right: var(--space-lg); }
  .hero-photo { width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; }
  .hero-kicker { font-size: 12px; }
  .hero-caption, .hero-scroll { display: none; }
  .hero-lead br { display: none; }
  .groups { padding-top: var(--space-lg); }
  .groups-heading :is(h1, h2), .recruiting-heading h2 { font-size: 28px; }
  .group-grid, .live-projects { grid-template-columns: minmax(0, 1fr); }
  .group-card:last-child { display: flex; grid-column: auto; }
  .group-card figure { padding: var(--space-sm) var(--space-md); }
  .group-card figure img { aspect-ratio: 16 / 9; }
  .group-copy h3 { font-size: 24px; }
  .groups-note br { display: none; }
  .definition { padding-top: var(--space-xxl); padding-bottom: var(--space-xxl); }
  .flea-story article, .flea-story article:nth-child(2) { display: flex; }
  .flea-story .scene { max-width: 480px; }
  .faq { padding-inline: var(--space-lg); }
  .hero .cta-note { font-size: 13px; }
}

/* Approved imagegen community section: photos, quiet badges, one link per card. */
.groups-heading { position: relative; isolation: isolate; align-items: center; margin-bottom: var(--space-xl); }
.community-intro, .groups-heading > p { position: relative; z-index: 1; }
.groups-heading :is(h1, h2) { font-size: clamp(36px, 3.8vw, 52px); line-height: 1.45; }
.groups-heading :is(h1, h2)::after { content: ''; display: block; width: 56px; height: 5px; margin-top: var(--space-lg); border-radius: var(--radius-sm); background: var(--coral); }
.groups-heading > p { max-width: 300px; flex-shrink: 0; }
.community-route { position: absolute; left: 52%; top: 0; width: 220px; height: 150px; pointer-events: none; z-index: 0; }
.community-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); margin-bottom: var(--space-lg); }
.community-heading > p { font-size: 16px; font-weight: 700; }
.community-heading .text-link { font-size: 13px; gap: var(--space-sm); }
.community-grid { gap: var(--space-lg); }
.community-card { position: relative; min-width: 0; transition: border-color .18s ease; }
.community-grid .community-card:last-child { display: flex; grid-column: auto; }
.community-photo { aspect-ratio: 16 / 9; object-fit: cover; background: var(--aqua); }
.community-photo--photo { object-position: bottom; }
.community-card .group-copy { gap: var(--space-sm); padding: var(--space-lg); }
.community-title { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); }
.community-title h3 { min-width: 0; margin: 0; font-size: 24px; line-height: 1.4; overflow-wrap: anywhere; }
.community-title > svg { width: 20px; height: 24px; margin-top: var(--space-xs); flex: none; }
.community-card .group-copy > .community-description { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); overflow-wrap: anywhere; }
.community-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); margin-top: auto; padding-top: var(--space-xs); min-height: 48px; }
.community-card .group-copy .community-count { display: inline-flex; align-items: center; gap: var(--space-sm); margin: 0; padding: var(--space-xs) var(--space-md); font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink); background: var(--aqua); border-radius: var(--radius-xl); }
.community-count svg { width: 18px; height: 18px; flex: none; }
.community-card .text-link { margin-left: auto; border: 0; padding: 0; gap: var(--space-sm); min-height: 48px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.community-card .text-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.community-card:focus-within { outline: 2px solid var(--ink); outline-offset: 4px; }
.community-card .text-link:focus-visible { outline: none; }
.community-status { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); margin-top: var(--space-xl); }
.community-status::before, .community-status::after { content: ''; height: 1px; max-width: 100px; flex: 1; background: var(--line); }
.community-status .groups-note { margin: 0; max-width: 760px; text-align: center; font-size: 13px; line-height: 20px; }
.community-note-leaf { width: 20px; height: 20px; flex: none; color: var(--ink); opacity: .3; }
#community-retry { display: block; margin: var(--space-lg) auto 0; }
@media (hover: hover) and (pointer: fine) {
  .community-card:hover { border-color: var(--ink); }
  .community-card:hover .text-link { text-decoration-thickness: 2px; }
}
@media (max-width: 1100px) {
  .community-route { left: 49%; width: 160px; }
  .groups-heading > p { max-width: 270px; }
}
@media (max-width: 900px) {
  .groups-heading { align-items: flex-start; gap: var(--space-lg); }
  .groups-heading :is(h1, h2) { font-size: 36px; }
  .groups-heading > p { max-width: none; }
  .community-route { left: auto; right: 0; top: var(--space-lg); width: 180px; }
}
@media (max-width: 680px) {
  .groups-heading :is(h1, h2) { font-size: 28px; }
  .groups-heading :is(h1, h2)::after { width: 40px; height: 4px; margin-top: var(--space-md); }
  .groups-heading .eyebrow { margin-bottom: var(--space-md); }
  .community-heading > p { font-size: 13px; }
  .community-route { right: 0; top: -12px; width: 100px; height: 80px; opacity: .7; }
  .community-card .group-copy { padding: var(--space-lg); }
  .community-status::before, .community-status::after { display: none; }
  .community-status { align-items: flex-start; }
  .community-status .groups-note { text-align: left; }
}
@media (max-width: 360px) {
  .groups-heading :is(h1, h2) { font-size: 24px; }
  .community-heading { gap: 0 var(--space-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .community-card { transition: none; }
}


/* Standalone directory reuses the approved community section. */
.community-directory .groups { padding-top: var(--space-xl); }
.community-back { margin-bottom: var(--space-xxl); }
.community-intro h1 { margin: 0; letter-spacing: normal; }
