/* Phones only: home/news and Media hub; desktop styles unchanged. */
@media (max-width: 640px) {
  /* Section action links must not compete with the headings. */
  .home-section-header {
    align-items: flex-start;
    gap: 8px;
  }

  .home-section-header > .detail-link {
    flex: 0 1 auto;
    max-width: 45%;
    min-width: 0;
    gap: 4px;
    font-size: 0.75rem;
    line-height: 1.25;
    text-align: right;
  }

  .home-section-header > .detail-link .material-symbols-outlined {
    flex: 0 0 auto;
    font-size: 17px;
  }

  .home-section-title {
    min-width: 0;
    gap: 8px;
  }

  /* Secondary news/review cards only; large lead articles stay intact. */
  .media-list-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
  }

  .media-list-card > img {
    width: 92px;
    height: 82px;
  }

  .media-list-card > span {
    display: block;
    min-width: 0;
  }

  .media-list-card .media-card-top {
    gap: 3px;
  }

  .media-list-card .media-card-top > .tag,
  .media-list-card .media-card-top > .topic-chip {
    min-height: 0;
    max-width: 100%;
    padding: 2px 4px;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .media-list-card .media-card-top > .tag:has(+ .topic-chip) {
    margin-right: 0;
  }

  .media-list-card .media-card-top > .tag::after {
    display: none;
  }

  .media-list-card h3 {
    font-size: 0.9375rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  /* Homepage announcements: wrap long regions instead of clipping Details. */
  .listing-grid .listing-card {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
  }

  .listing-grid .listing-card > img {
    width: 80px;
    height: 80px;
    object-fit: cover;
  }

  .listing-grid .listing-card > div {
    min-width: 0;
  }

  .listing-grid .listing-card > div > .flex {
    flex-wrap: wrap;
    min-width: 0;
  }

  .listing-grid .listing-card h3,
  .listing-grid .listing-card .listing-meta {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .listing-grid .listing-card .listing-meta {
    white-space: normal;
    line-height: 1.3;
  }

  .listing-grid .listing-card .listing-card-link {
    margin-left: auto;
    max-width: 100%;
    white-space: nowrap;
  }
}
