/* V108 · one discovery density across projects and exhibitions.
 *
 * Multi-day projects and exhibitions are both browseable, long-running
 * destinations.  Letting the former expand to half-width while the latter
 * stayed on a three-card shelf made one page look like two unrelated design
 * systems.  Keep the same scan rhythm at the user's real desktop content
 * width. Mobile deliberately keeps the existing one-card rail.
 *
 * V111 adds the fourth tier.  Past ~1360px the fluid page track is wide enough
 * to carry four discovery cards on one row, so the day's fixed activities read
 * as one shelf instead of a three-card stack that pushes everything below it
 * under the fold.  Multiday projects move to the same four-card rhythm, and
 * the event card gives up the empty band it used to hold between the title
 * block and the action row: narrower evidence bay, shorter card, smaller
 * type.  The exhibition shelf keeps its own three-card rail — those cards are
 * wide poster destinations, not part of the day's scan index.  Below 1360px
 * nothing here applies.
 *
 * Selectors mirror the V99 declarations they have to outrank (same shape,
 * later layer) so the tier is decided by this file and not by cascade luck. */

@media (min-width: 901px) {
  .home-screen .home-project-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(14px, 1.15vw, 18px);
  }

  .home-screen .home-project,
  .home-screen .flex-field .home-exhibition {
    min-width: 0;
  }

  .home-screen .home-project > .home-exhibition__content {
    padding-inline: 2px;
  }
}

@media (min-width: 1100px) {
  .home-screen .home-project-list,
  .home-screen main[data-home-layout="grid"] .home-event-list,
  .home-screen--week main[data-home-layout="grid"] .week-day .home-event-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-screen main[data-home-layout="grid"] .home-event-list .home-event:not(.home-event--text-only) {
    grid-template-columns: clamp(118px, 10vw, 148px) minmax(0, 1fr);
  }
}

@media (min-width: 1360px) {
  .home-screen .home-project-list,
  .home-screen main[data-home-layout="grid"] .home-event-list,
  .home-screen--week main[data-home-layout="grid"] .week-day .home-event-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-screen main[data-home-layout="grid"] .home-event-list,
  .home-screen--week main[data-home-layout="grid"] .week-day .home-event-list {
    gap: 12px 14px;
  }

  .home-screen main[data-home-layout="grid"] .home-event-list .home-event:not(.home-event--text-only),
  .home-screen main[data-home-layout="grid"] .home-event-list .home-event--landscape-artwork {
    height: 236px;
    min-height: 236px;
    grid-template-columns: clamp(100px, 7vw, 124px) minmax(0, 1fr);
    padding: 8px;
  }

  .home-screen main[data-home-layout="grid"] .home-event-list .home-event:not(.home-event--text-only) .home-event__media,
  .home-screen main[data-home-layout="grid"] .home-event-list .home-event--landscape-artwork .home-event__media {
    height: auto;
    max-height: 202px;
  }

  .home-screen main[data-home-layout="grid"] .home-event-list .home-event:not(.home-event--text-only) .home-event__content,
  .home-screen main[data-home-layout="grid"] .home-event-list .home-event--text-only .home-event__content {
    min-height: 220px;
    padding: 12px 11px 9px 12px;
  }

  /* The shelf is narrower here, so a headline that used to finish in three
   * lines on the three-card shelf needs four.  Keep the same evidence-safe
   * clamp shape, one line taller, so the tier does not silently truncate
   * titles the wider shelf used to show in full. */
  .home-screen main[data-home-layout="grid"] .home-event-list .home-event:not(.home-event--text-only) .home-event__title,
  .home-screen main[data-home-layout="grid"] .home-event-list .home-event--text-only .home-event__title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.34;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .home-screen main[data-home-layout="grid"] .home-event-list .home-event:not(.home-event--text-only) .home-event__venue {
    font-size: 11.5px;
    line-height: 1.4;
  }

  .home-screen main[data-home-layout="grid"] .home-event-list .home-event:not(.home-event--text-only) .home-event__actions {
    padding-top: 4px;
  }
}
