/*
 * The 2026 programme grid — "Your 2026 Elite Pianist Experience".
 *
 * One stylesheet for the one grid the homepage, /experience/ and /join/ all
 * print, so the three cannot drift apart. The card rules are the originals,
 * moved here unchanged from the inline stylesheet the homepage carried until
 * 18 September 2026 (commit 99802d9): darkened artwork, the month in gold
 * small capitals, the title in white serif, the hover zoom and gold border,
 * past evenings dimmed and the next one lit with the gold flag and glow.
 * Three columns from 1000px, two from 620px, one below that.
 *
 * Added alongside the originals, and only these: the composer line (the
 * catalogue keeps composer and repertoire apart, and so does every other
 * surface that prints them), a visually hidden "Past performance" so the
 * dimming is not the only way that is said, and the quiet line shown if the
 * programme cannot be fetched. The cards are built by /assets/ep-programme.js.
 */

.program { display: grid; gap: clamp(0.7rem, 2.4vw, 1rem); }
@media (min-width: 620px) { .program { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .program { grid-template-columns: repeat(3, 1fr); } }
/* Held open while the programme is on its way, so the footer does not jump. */
.program[aria-busy='true'] { min-height: clamp(10rem, 40vw, 15rem); }
.pcard {
  position: relative;
  min-height: clamp(10rem, 40vw, 15rem);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.pcard img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.58;
  z-index: -2;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1), opacity 0.5s ease;
}
.pcard::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5,5,8,0.15) 0%, rgba(5,5,8,0.72) 52%, rgba(5,5,8,0.95) 100%);
}
.pcard:hover img { transform: scale(1.07); opacity: 0.42; }
.pcard:hover { border-color: rgba(212,165,35,0.4); }
.pcard .body { padding: clamp(1.1rem, 4vw, 1.5rem); }
.pcard .mo {
  font-size: clamp(0.62rem, 2.7vw, 0.72rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 500;
}
.pcard h3 { margin-top: 0.45rem; font-size: clamp(1.15rem, 4.9vw, 1.35rem); color: #fff; line-height: 1.15; font-weight: 600; }
.pcard .who {
  margin-top: 0.4rem;
  font-size: clamp(0.6rem, 2.5vw, 0.66rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9c4b8;
}
.pcard .rep { margin-top: 0.25rem; font-size: clamp(0.72rem, 3vw, 0.8rem); color: #a8a49c; letter-spacing: 0.04em; }
.pcard.past { opacity: 0.5; }
/* The next performance is what the membership buys first, so it is the
   one card on the grid that is lit rather than dimmed. */
.pcard.next {
  border-color: rgba(212,165,35,0.65);
  box-shadow: 0 26px 70px -34px rgba(212,165,35,0.8);
}
.pcard.next img { opacity: 0.74; }
.pcard.next::after {
  background: linear-gradient(180deg, rgba(5,5,8,0.1) 0%, rgba(5,5,8,0.62) 48%, rgba(5,5,8,0.94) 100%);
}
.pcard.next h3 { color: var(--gold-100); }
.pcard.next .flag { box-shadow: 0 8px 24px -8px rgba(212,165,35,0.95); }
.pcard .flag {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 1;
  padding: 0.3rem 0.6rem;
  background: var(--gold-500);
  color: #14100a;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
}
.pcard .vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The plan-not-a-promise line under the grid, and the line that stands in
   for the grid if the programme could not be fetched. */
.program-note,
.program-fallback {
  margin: clamp(1.1rem, 4vw, 1.6rem) auto 0;
  max-width: 44rem;
  font-size: clamp(0.66rem, 2.7vw, 0.75rem);
  letter-spacing: 0.05em;
  color: var(--text-faint);
  line-height: 1.65;
}
.program-note a { color: var(--gold-400); }
.program-fallback { grid-column: 1 / -1; text-align: center; font-size: clamp(0.8rem, 3.2vw, 0.9rem); color: var(--text-dim); }
