/* Mobile responsive rules extracted from /css/home.css. */
@media (max-width: 900px) {
  .mission-layout,
  .feature-layout,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 320px));
    justify-content: center;
  }

  .join-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 0;
    height: auto;
    padding: calc(var(--mobile-nav-height) + 72px) 18px 52px;
    align-items: center;
    justify-content: center;
    background-color: #111;
    background-size: cover;
    background-position: 50% 42%;
  }

  .hero::before {
    background: rgba(0, 0, 0, 0.52);
  }

  .hero-text {
    width: min(100%, 430px);
    margin-right: 0;
    padding: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .hero-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    display: grid;
    place-items: center;
    padding: 11px 12px;
    box-sizing: border-box;
    text-align: center;
  }

  .join-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .join-actions a {
    text-align: center;
  }

  .home-mission,
  .home-approach,
  .home-activities,
  .home-recent,
  .home-join {
    padding: 64px 16px;
  }

  .home-feature {
    padding: 0 16px 64px;
  }

  .feature-layout {
    padding-top: 64px;
  }

  .mission-copy h2,
  .home-activities h2,
  .home-recent h2,
  .home-join h2,
  .section-heading h2,
  .feature-copy h2 {
    font-size: 28px;
  }

  .section-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
  }

  .section-links {
    justify-content: flex-end;
    gap: 12px;
  }

  .section-heading-row .text-link {
    font-size: 14px;
    white-space: nowrap;
  }

  .work-grid,
  .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 12px;
    margin-top: 28px;
  }

  .work-card,
  .recent-card {
    width: 100%;
    max-width: none;
    border-radius: 12px;
  }

  .work-card img,
  .recent-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .work-card div {
    padding: 14px;
  }

  .work-card h3,
  .recent-card h3 {
    font-size: 17px;
    line-height: 1.4;
  }

  .work-card p {
    min-height: 0;
    margin: 8px 0 12px;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .work-card a {
    font-size: 13px;
  }

  .recent-card span {
    margin: 12px 12px 5px;
    font-size: 11px;
  }

  .recent-card h3 {
    padding: 0 12px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .recent-card p {
    margin: 7px 12px 14px;
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .feature-layout img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .join-inner {
    padding: 30px 22px;
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: 0;
    padding: calc(var(--mobile-nav-height) + 60px) 16px 44px;
    background-position: 50% 42%;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .work-grid,
  .recent-grid {
    gap: 10px;
  }

  .work-card div {
    padding: 12px;
  }

  .work-card h3,
  .recent-card h3 {
    font-size: 16px;
  }

  .work-card p {
    -webkit-line-clamp: 2;
  }

  .recent-card span {
    margin: 10px 10px 4px;
  }

  .recent-card h3 {
    padding: 0 10px;
  }

  .recent-card p {
    margin: 6px 10px 12px;
    -webkit-line-clamp: 2;
  }

  .section-heading-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .section-links {
    justify-content: flex-start;
  }
}
