/* Sitewide responsive polish. Mobile-only overrides for secondary routes.
   Keep desktop typography, artwork and approved home hero unchanged. */
@media (max-width: 760px) {
  .org-hero,
  .page-hero,
  .program-detail-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .org-hero__media,
  .page-hero__media,
  .program-detail-hero__media {
    order: -1;
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  .org-hero__media > img,
  .page-hero__media > img,
  .program-detail-hero__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
  }
  .org-hero__copy,
  .page-hero__copy,
  .program-detail-hero__copy {
    width: 100%;
    min-width: 0;
    padding: clamp(1.6rem, 5vw, 2.25rem) 1.15rem 2.4rem;
  }
  .org-hero h1,
  .page-hero h1,
  .program-detail-hero h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 10vw, 3.65rem);
    line-height: .98;
    overflow-wrap: break-word;
    text-wrap: balance;
  }
  .org-hero .breadcrumbs,
  .page-hero .breadcrumbs,
  .program-detail-hero .breadcrumbs {
    margin-bottom: 1rem;
  }
  .org-hero .eyebrow,
  .page-hero .eyebrow,
  .program-detail-hero .eyebrow {
    font-size: clamp(.85rem, 3.4vw, 1rem);
    line-height: 1.2;
  }
  .org-hero__copy > p:not(.eyebrow),
  .page-hero__copy > p:not(.eyebrow),
  .program-detail-hero__copy > p:not(.eyebrow) {
    max-width: 58ch;
    font-size: 1rem;
    line-height: 1.5;
  }
  .org-hero__copy > .action-button,
  .page-hero__copy > .action-button {
    max-width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }
  .program-detail-hero .hero-actions,
  .program-next-step__actions,
  .workflow-band__actions,
  .volunteer-interest__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    width: 100%;
  }
  .program-detail-hero .hero-actions .action-button,
  .program-next-step__actions .action-button,
  .workflow-band__actions .action-button,
  .volunteer-interest__actions .action-button {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }
  /* Avoid the stacked 280px image + 285px body in every program card. */
  .program-directory-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .program-directory-card__media {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .program-directory-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--ink);
  }
  .program-directory-card__body {
    min-height: 0;
    padding: 1.5rem 1.15rem 1.75rem;
  }
  .program-directory-card__body h3 {
    overflow-wrap: break-word;
  }
  .related-programs__grid {
    grid-template-columns: 1fr;
  }
  /* Compact conversion and directory cards; preserve natural content height. */
  .giving-card,
  .workflow-card,
  .impact-card,
  .enrollment-card,
  .person-card {
    min-height: 0;
  }
  .giving-card,
  .workflow-card,
  .impact-card {
    padding: 1.5rem 1.15rem;
  }
  .enrollment-card {
    display: flex;
    flex-direction: column;
  }
  .enrollment-card__number {
    min-height: 0;
    padding: .8rem 1.15rem;
    font-size: 3rem;
  }
  .enrollment-card__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    padding: 1.35rem 1.15rem 1.75rem;
  }
  .enrollment-card__content .action-button {
    width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }
  .people-grid {
    grid-template-columns: 1fr;
  }
  .person-card {
    grid-template-columns: minmax(74px, 25%) minmax(0, 1fr);
  }
  .person-card__copy {
    min-width: 0;
    padding: 1.25rem;
  }
  .person-card__copy h3 {
    overflow-wrap: anywhere;
  }
  /* The brand gold must not be used as foreground on the same gold background. */
  .program-next-step .section-kicker,
  .programs-manifesto .section-kicker,
  .value-strip .section-kicker {
    color: var(--ink);
  }
  .intake-section-nav {
    scroll-margin-top: 5rem;
  }
  .intake-section-nav a,
  .mobile-nav a,
  .mobile-nav button,
  .breadcrumbs a {
    min-height: 44px;
  }
  .intake-fieldset,
  .online-intake,
  .resume-panel {
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 360px) {
  .org-hero h1,
  .page-hero h1,
  .program-detail-hero h1 {
    font-size: clamp(2.2rem, 10vw, 2.6rem);
  }
  .person-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }
  .person-card__copy {
    padding: 1rem;
  }
}
