/* Festival template (templates/sites/festival.html). Tokens and layout only;
 * every color is a palette token, so light and dark both work. Dark is its
 * default; the secondary color is the loud one (stickers, ticker, shadows). */

.t-festival {
  --heading-weight: 900;
  --heading-case: uppercase;
  --r-card: 14px;
  --r-tile: 14px;
  --r-thumb: 16px;
  --r-button: 20px;
  --gutter: 16px;
  --gallery-gap: 8px;
  --title-size: 30px;
  --hero-min: 380px;
}

/* No overflow clipping here: the gallery and its chips grow past the page from
   900px (site.css, "Wide"); the tilted hero clips its own photos (.hero). */
.festival { max-width: var(--page-max); margin: 0 auto; }

/* The hero's stickers: festival.hero.css. The logo top right (the tagline's sticker is top left). */
.t-festival .hero__logo { z-index: 1; left: auto; right: 16px; width: auto; max-width: 160px; }
/* --- The chunky pill ------------------------------------------------------------ */

.fest-cta { padding: 14px var(--gutter) 0; }
.fest-cta .cta { padding: 0; }
.t-festival .fest-cta .cta__button {
  min-height: 64px;
  background: var(--ink);
  color: var(--bg);
  font: 900 17px/1.1 var(--display);
  text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--accent);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.t-festival .fest-cta .cta__button:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--accent); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .t-festival .fest-cta .cta__button { transition: none; } }

/* --- Sections ------------------------------------------------------------------ */

.fest-blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 24px var(--gutter) 32px; }
.t-festival .block-title { margin: 0 0 12px; font-size: 20px; line-height: 1.1; color: var(--accent-text); }

/* The programme as big cards: the act on the left, its time on the right. */
.t-festival .schedule__rows { gap: 8px; }
.t-festival .schedule__row {
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-card);
  background: var(--card);
  font-size: 15px;
}
.t-festival .schedule__text { font-weight: 600; color: var(--ink); }
.t-festival .schedule__time { width: auto; font-weight: 400; color: var(--muted); }
.t-festival .schedule__time::after { content: " →"; }

.t-festival .linkcard, .t-festival .wall-link, .t-festival .text-block, .t-festival .countdown,
.t-festival .map, .t-festival .social {
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--card);
}
.t-festival .countdown__unit { background: var(--accent); }
.t-festival .countdown__value, .t-festival .countdown__label { color: var(--on-accent); }
.t-festival .wall-link__icon { color: var(--accent-text); }
.t-festival .social__link { border-width: 2px; }

/* Partners as pills. */
.t-festival .sponsors__title { color: var(--muted); }
.t-festival .sponsors__row { gap: 8px; }
.t-festival .sponsors__item { flex: 0 0 auto; min-width: 0; }
.t-festival .sponsor {
  height: 40px;
  padding: 0 16px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  background: none;
  color: var(--muted);
}
.t-festival .sponsor img { max-height: 22px; }

.t-festival .chip { border-radius: 999px; }
.fest-block--moments:not(:has(.moments)),
.fest-block--sessions:not(:has(.sessions, .moments)) { display: none; }
.fest-block--highlights:not(:has(.highlights)) { display: none; }
.t-festival .highlight { border: 2px solid var(--accent); }
.t-festival .moment-chip { border-width: 2px; font-weight: 700; }
.t-festival .moment-chip.is-on, .t-festival .moment-chip.is-on:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.t-festival .moment-head__name { font-size: 20px; color: var(--accent-text); }
.t-festival .credit { border-top: 2px dashed var(--border-strong); }

@media (min-width: 600px) {
  .t-festival { --title-size: 44px; --hero-min: 460px; --gutter: 24px; }
  .fest-cta .cta__button { max-width: 420px; }
}

@media (min-width: 900px) {
  .t-festival { --title-size: 64px; --hero-min: 560px; --gutter: 32px; }
  .fest-cta { display: flex; justify-content: center; padding-top: 24px; }
  .fest-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .fest-block--gallery, .fest-block--wall, .fest-block--image, .fest-block--map, .fest-block--sponsors,
  .fest-block--sessions, .fest-block--moments, .fest-block--highlights { grid-column: 1 / -1; }
}
