/* ==============================================
   Foundry Labs Responsive Overhaul — WU-5 Community
   Community page responsive patches only
   ============================================== */

@media (max-width: 768px) {
  /* C-02: Use intrinsic 16:9 sizing for the community video embed on mobile */
  .video-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  /* C-01: Scale the community hero text down and reduce hero padding */
  .community-hero {
    padding-top: calc(var(--nav-height) + var(--space-6));
    padding-bottom: var(--space-6);
  }

  .community-hero h1 {
    font-size: clamp(36px, 10vw, 52px);
    margin-bottom: var(--space-5);
  }

  .community-hero-actions {
    width: 100%;
    gap: var(--space-3);
    margin-top: var(--space-5);
  }

  /* C-03: Reduce event card text size and allow safe wrapping on narrow screens */
  .events-row .card-meta,
  .events-row .card-title,
  .event-featured-body .card-meta,
  .event-featured-body .card-title {
    overflow-wrap: anywhere;
  }

  .events-row .card-meta,
  .event-featured-body .card-meta {
    font-size: var(--text-xs);
    line-height: 1.4;
  }

  .events-row .card-title {
    font-size: var(--text-xl);
  }

  .event-featured-body .card-title {
    font-size: clamp(20px, 6vw, 24px);
  }

  /* C-04: Stack connect links vertically so the label and arrow do not crowd */
  .connect-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    width: 100%;
  }

  /* C-05: Make newsletter fields full-width, stacked, and touch-friendly */
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .newsletter-form .newsletter-input,
  .newsletter-form .btn,
  .newsletter-form .btn-pill,
  .newsletter-form button {
    width: 100%;
    min-height: 44px;
  }
}
