/* Phase 7 — shared mobile entity page structure (not identical layouts).
   hero → identity → CTAs → info → entity-specific content → updates */

:root {
  --mv-entity-gutter: var(--mv-shell-gutter, 1rem);
  --mv-entity-radius: var(--mv-shell-radius-card, 0.875rem);
  --mv-entity-gap: var(--mv-shell-section-gap, 1rem);
}

@media (max-width: 1279px) {
  body.mv-mobile-shell-on .mv-entity-page,
  body.mv-mobile-shell-on .mv-listing-detail.mv-entity-page {
    background: var(--mv-shell-bg, #fff);
  }

  body.mv-mobile-shell-on .mv-entity-page__section {
    padding-left: var(--mv-entity-gutter);
    padding-right: var(--mv-entity-gutter);
    margin-bottom: var(--mv-entity-gap);
  }

  body.mv-mobile-shell-on .mv-entity-page__identity {
    padding: 0.85rem var(--mv-entity-gutter) 0.5rem;
  }

  body.mv-mobile-shell-on .mv-entity-page__name {
    font-size: 1.35rem;
    font-weight: 750;
    line-height: 1.2;
    color: var(--mv-shell-fg, #1f2a24);
    letter-spacing: -0.02em;
  }

  body.mv-mobile-shell-on .mv-entity-page__meta {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--mv-shell-muted, #5b6b62);
  }

  body.mv-mobile-shell-on .mv-entity-page__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.35rem var(--mv-entity-gutter) 0.85rem;
  }

  body.mv-mobile-shell-on .mv-entity-page__ctas a,
  body.mv-mobile-shell-on .mv-entity-page__ctas button {
    min-height: 2.75rem;
    border-radius: 9999px;
    font-weight: 650;
  }

  /* Listing already uses sticky CTA bar — keep entity CTAs clear of bottom nav */
  body.mv-mobile-shell-on .mv-listing-detail__cta {
    bottom: calc(var(--mv-shell-bottom-h, 4.25rem) + env(safe-area-inset-bottom, 0px));
  }

  /* Club: keep branded hero, tighten mobile chrome under shell */
  body.mv-mobile-shell-on .mv-entity-page--club .mv-club-hero {
    border-radius: 0;
  }

  body.mv-mobile-shell-on .mv-entity-page--club .mv-club-hero .max-w-6xl {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }

  /* School front: keep school branding; align gutters with shell */
  body.mv-mobile-shell-on .mv-entity-page--school.school-front-page,
  body.mv-mobile-shell-on .school-front-page.mv-entity-page--school {
    padding-bottom: 0.5rem;
  }

  /* Messages — conversation-first list under shell */
  body.mv-mobile-shell-on .mv-messages-page {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }

  body.mv-mobile-shell-on .mv-messages-page__title {
    font-size: 1.35rem;
    color: var(--mv-shell-fg, #1f2a24);
    letter-spacing: -0.02em;
  }

  body.mv-mobile-shell-on .mv-messages-page__row.card {
    border-radius: var(--mv-shell-radius-card, 0.875rem);
    box-shadow: none;
    border-color: var(--mv-shell-border, rgba(31, 42, 36, 0.12));
  }

  body.mv-mobile-shell-on .mv-messages-page__list {
    gap: 0.35rem;
  }
}
