/* Festivals and Theatrical Release: a table filled from the Google Sheet by sheet.js. */
.listing-page { max-width: 72rem; padding-bottom: 18vh; }

/* Same feel as the credits on About the Film: small caps headings, thin lines. */
.listing {
  width: 100%;
  margin-top: 3rem;
  border-collapse: collapse;
}
.listing th {
  padding: 0 1.5rem 0.9rem 0;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(246, 239, 230, 0.35);
}
.listing td {
  padding: 0.85rem 1.5rem 0.85rem 0;
  vertical-align: top;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--ink);
  border-bottom: 1px solid rgba(246, 239, 230, 0.2);
}
.listing .date { width: 1%; white-space: nowrap; } /* as wide as its longest date, on one line */
.listing .location { width: 20%; }
.listing .venue, .listing .city { width: 30%; }

/* Theatrical Release: each row links to its cinema's page, all of it (the link fills
   each cell, padding and all). */
.listing .linked td { padding: 0; }
.listing .linked a {
  display: block;
  padding: 0.85rem 1.5rem 0.85rem 0;
  color: inherit;
  text-decoration: none;
}
.listing .linked td:last-child a { padding-right: 0; }
.listing .linked { transition: background-color 0.2s ease; }
.listing .linked:hover { background: rgba(246, 239, 230, 0.06); }
.listing .linked a:focus-visible { outline: none; }
.listing .linked:focus-within { background: rgba(246, 239, 230, 0.1); }

/* Until the Sheet's rows arrive: a bar in each cell, gently pulsing; then the rows fade in. */
.listing .skeleton span {
  display: block;
  height: 0.9em;
  margin: 0.3em 0;
  width: 70%;
  border-radius: 3px;
  background: rgba(246, 239, 230, 0.12);
  animation: skeleton-pulse 1.4s ease-in-out infinite alternate;
}
.listing .skeleton .selection span { width: 85%; }
.listing .skeleton:nth-child(3n+2) .selection span { width: 60%; }
.listing .skeleton:nth-child(3n) .selection span { width: 72%; }
.listing .filled td { animation: listing-in 0.5s ease both; }
@keyframes skeleton-pulse { to { opacity: 0.45; } }

/* Phones: the same table, smaller, so it fits. */
@media (max-width: 767px) {
  .listing th { padding: 0 0.9rem 0.7rem 0; font-size: 0.68rem; letter-spacing: 0.12em; }
  .listing td { padding: 0.7rem 0.9rem 0.7rem 0; font-size: 0.95rem; line-height: 1.4; }
  .listing .selection { padding-right: 0; }
  .listing .date { width: 22%; white-space: normal; } /* phones: two lines are fine */
  .listing .location { width: 28%; }
  .listing .venue, .listing .city { width: 30%; }
  .listing .linked td { padding: 0; }
  .listing .linked a { padding: 0.7rem 0.9rem 0.7rem 0; }
}
@keyframes listing-in { from { opacity: 0; } }
