/* Schedule content grows with real titles, locations and editorial notes. */
.agrft-event-schedule, .agrft-related { padding: 24px; overflow-wrap: anywhere; }
.agrft-related { padding-top: 0; }
.agrft-event-schedule h2, .agrft-related h2 { font-size: 1.35rem; line-height: 1.3; }
.agrft-event__content:has(+ .agrft-event-schedule) { padding-bottom: 0; }
.agrft-event__content + .agrft-event-schedule { padding-top: 0; }
.agrft-event-schedule > h2 { margin: 0; font-family: "Eric Machat", sans-serif; font-size: 1rem; font-weight: 400; line-height: 1.2rem; }
.agrft-event-schedule--alternatives > h2 { padding-top: 23px; border-top: 1px solid var(--agrft-grey); font-size: 1.35rem; font-weight: 600; line-height: 1.3; }
.agrft-related h2 { padding-top: 23px; border-top: 1px solid var(--agrft-grey); }
.agrft-related ul { margin: 0; padding: 0; list-style: none; }
.agrft-related li { margin: 0; }
.agrft-related li + li { border-top: 1px solid var(--agrft-grey); }
.agrft-related a { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; min-height: 48px; padding-block: 16px; color: var(--agrft-violet); text-decoration: none; }
.agrft-related a span { text-decoration: underline; text-underline-offset: .12em; }
.agrft-related a::after { justify-self: end; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--agrft-icon-arrow-external) center / 18px 18px no-repeat; mask: var(--agrft-icon-arrow-external) center / 18px 18px no-repeat; content: ""; }
.agrft-related a:focus-visible { outline: 3px solid var(--agrft-violet); outline-offset: -3px; }
@media (max-width: 389px) {
  .agrft-related { padding-right: 20px; padding-left: 20px; }
}
.agrft-schedule-slot { padding: 20px 0; border-bottom: 1px solid var(--agrft-lavender); scroll-margin-top: 110px; }
.agrft-schedule-slot p { margin: 0 0 12px; }
.agrft-schedule-slot__venue { font-size: 1rem; line-height: 1.2rem; }
.agrft-event-schedule--alternatives .agrft-schedule-slot > p:first-child a { color: var(--agrft-pink); }
.agrft-event-schedule--alternatives .agrft-schedule-slot p { line-height: 1.1; }
.agrft-event-schedule--alternatives .agrft-schedule-slot > p:first-child { margin-bottom: 8px; }
.agrft-event-schedule--alternatives .agrft-schedule-slot { border-bottom: 0; }
.agrft-event-schedule--alternatives.agrft-event-schedule--has-note .agrft-schedule-slot:last-of-type { border-bottom: 1px solid var(--agrft-grey); }
.agrft-event-schedule { scroll-margin-top: var(--agrft-sticky-offset); }
.agrft-card__badge:disabled, .agrft-reserve-trigger:disabled { opacity: .6; cursor: default; }
.agrft-card h3, .agrft-event h1, .agrft-dialog h2, .agrft-card__venue, .agrft-card__type { overflow-wrap: anywhere; }
.agrft-dialog__slot { align-items: center; }
.agrft-dialog__slot time { max-width: 100%; }
.agrft-gallery figure { min-width: 0; flex-basis: min(var(--agrft-gallery-width, 330px), calc(100vw - 48px)); }

/* XD: photographs immediately after the introduction; compact fixed date strip. */
.agrft-gallery { scroll-snap-type: x mandatory; }
.agrft-gallery figure { flex-basis: min(var(--agrft-gallery-width, 330px), calc(100vw - 48px)); }
.agrft-gallery > figure:first-child { margin-inline-start: auto; }
.agrft-gallery > figure:last-child { margin-inline-end: auto; }
.agrft-gallery img { display: block; width: 100%; height: auto; max-height: 204px; object-fit: contain; object-position: center; }
.agrft-gallery-carousel { position: relative; }
.agrft-gallery-carousel .agrft-carousel-arrow {
  position: absolute;
  z-index: 1;
  top: 78px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--agrft-pink);
  cursor: pointer;
}
.agrft-gallery-carousel .agrft-carousel-arrow--previous { left: 0; }
.agrft-gallery-carousel .agrft-carousel-arrow--next { right: 0; }
.agrft-gallery-carousel .agrft-carousel-arrow svg {
  display: block;
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
/* A single photo needs a normal text gap, not space for absent carousel controls. */
.agrft-gallery:has(+ .agrft-carousel-controls[hidden]) { margin-bottom: 24px; }
/* The safe-area inset belongs inside the opaque dock, never below it. */
.agrft-js .agrft-occurrence-dock { bottom: 0; border: 2px solid var(--agrft-violet); border-bottom: 0; }
.agrft-occurrence-dock .agrft-event__slot { padding-bottom: 24px; }
.agrft-occurrence-dock .agrft-event__date-row { gap: 4px; padding-inline: 16px; }
.agrft-occurrence-dock .agrft-event__date-row time { color: var(--agrft-violet); }
.agrft-event__date-row time { line-height: 1.2; }
.agrft-event__date-row .agrft-event__time { margin-left: auto; line-height: 1.2; }
.agrft-occurrence-dock .agrft-event__date-row .agrft-event__time { color: var(--agrft-violet); }
.agrft-occurrence-dock .agrft-event__actions { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; padding: 0 16px; }
@media print {
  .agrft-occurrence-dock .agrft-event__actions { display: none !important; }
}
.agrft-source-note { margin-top: 24px; }

.agrft-reservation .agrft-button { padding-inline: 10px; font-family: "Eric Machat", sans-serif; letter-spacing: .04em; text-indent: .04em; }
/* Center the capital bodies; J keeps its natural descender below their baseline.
   Keep total padding unchanged and balance the trailing letter-spacing. */
.agrft-card__badge[data-agrft-reserve] {
  padding-block: calc(10px - .083333em) calc(10px + .083333em);
  text-indent: .12em;
}
.agrft-reserve-trigger[data-agrft-reserve] {
  text-indent: .06em;
}
.agrft-reservation[data-agrft-preview] .agrft-button:disabled { opacity: 1; }
.agrft-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
a[data-agrft-reserve] { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.agrft-ticket-numbers { display: inline-block; color: var(--agrft-pink); font-family: "Eric Machat Headline", sans-serif; font-size: 2rem; font-style: italic; font-weight: 600; letter-spacing: .02em; line-height: 1.1; }
.agrft-reservation__confirmation { padding: 24px; overflow-wrap: anywhere; background: var(--agrft-grey); }
.agrft-reservation__confirmation p { margin: 0 0 12px; }
.agrft-reservation__confirmation a { color: inherit; text-decoration: underline; }
.agrft-reservation__confirmation .agrft-confirmation-status { display: block; margin: 0 0 18px; padding: 18px; color: var(--agrft-white); background: var(--agrft-violet); font-size: 1.333333rem; line-height: 1.15; text-transform: uppercase; }
.agrft-reservation__confirmation .agrft-reservation-quantity,
.agrft-reservation__confirmation .agrft-reservation-arrival { color: var(--agrft-pink); font-weight: 600; }
.agrft-reservation__confirmation .agrft-reservation-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.agrft-reservation__confirmation .agrft-reservation-number-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; min-height: 62px; padding: 8px 10px; color: var(--agrft-white); background: var(--agrft-pink); }
.agrft-reservation__confirmation .agrft-reservation-number-card span { min-width: 0; font-size: .722222rem; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.agrft-reservation__confirmation .agrft-reservation-number-card strong { font-size: 2rem; line-height: 1; }
.agrft-reservation__confirmation .agrft-reservation-rule { height: 1px; margin: 14px 0 18px; border: 0; background: var(--agrft-violet); }
.agrft-reservation__confirmation .agrft-receipt-link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 18px 0; padding: 10px 16px; border: 2px solid var(--agrft-violet); font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; }
.agrft-editor-savebar label { flex-basis: 100%; }

/* Public programme refinements: status text uses the existing card text size. */
.agrft-no-reservation,
.agrft-no-reservation.is-not-required,
.agrft-occurrence-dock .agrft-event__actions > .agrft-no-reservation {
  justify-content: flex-end; text-align: right; background: transparent; border: 0;
  color: var(--agrft-violet); box-shadow: none;
}
.agrft-card__badge.is-unavailable { color: var(--agrft-pink); }
.agrft-no-reservation[data-booking-state="closed"], .agrft-no-reservation[data-booking-state="full"] { color: var(--agrft-pink); }
a.agrft-no-reservation[href] { pointer-events: auto; cursor: pointer; }
.agrft-card__badge.agrft-no-reservation,
.agrft-card__badge[data-agrft-reserve].is-unavailable {
  padding: 4px 0; font: 600 .75rem/1rem "Eric Machat", sans-serif;
  letter-spacing: .02em; text-indent: 0;
}
.agrft-reserve-trigger.agrft-no-reservation { font-size: .833333rem; line-height: 1rem; }
.agrft-occurrence-dock .agrft-event__actions > .agrft-reserve-trigger {
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 8px 12px;
  font-size: 1.333334rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}
.agrft-occurrence-dock .agrft-event__actions > .agrft-no-reservation {
  padding-inline: 8px;
  font-size: clamp(.777778rem, 6.9cqi, 1.333334rem);
}
.agrft-occurrence-dock .agrft-event__actions > .agrft-no-reservation.is-not-required {
  font-size: clamp(.777778rem, 4.9cqi, 1.333334rem);
}
.agrft-occurrence-dock .agrft-event__actions > .agrft-no-reservation.is-unavailable {
  font-size: clamp(.777778rem, 5.8cqi, 1.333334rem);
}
.agrft-occurrence-dock .agrft-event__actions > .agrft-no-reservation:is([data-booking-state="closed"], [data-booking-state="full"]) {
  font-size: clamp(.777778rem, 6.7cqi, 1.333334rem);
}
.agrft-occurrence-dock .agrft-event__actions > .agrft-no-reservation {
  color: var(--agrft-violet);
  background: var(--agrft-grey);
  border: 0;
  box-shadow: none;
}
.agrft-occurrence-dock .agrft-event__actions > .agrft-no-reservation.is-unavailable {
  color: var(--agrft-pink);
  background: var(--agrft-grey);
}
.agrft-search { outline: 0; outline-offset: 0; }
.agrft-search:focus-within {
  outline: 0;
  outline-offset: 0;
  box-shadow: none;
}
.agrft-search input:focus-visible { outline: none; box-shadow: none; }
.agrft-days a.is-active { color: var(--agrft-white); background: var(--agrft-violet); }
.agrft-days a.is-active::after { content: none; }
.agrft-days[hidden] { display: none; }
.agrft-program__date-title { margin: 0 0 12px; padding: 20px 24px; min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 12px; background: transparent; color: var(--agrft-violet); font-weight: 600; border: 0; text-transform: uppercase; text-align: center; }
.agrft-program__date-title:not(.screen-reader-text)::before, .agrft-program__date-title:not(.screen-reader-text)::after { flex: 1 1 0; min-width: 0; height: 2px; background: currentColor; content: ""; }
.agrft-program__date-title.screen-reader-text { display: block; height: 1px; min-height: 1px; margin: 0; padding: 0; }
.agrft-program__list .agrft-empty-state { background: var(--agrft-white); }
.agrft-all-events { padding-block: calc(10px - .083333em) calc(10px + .083333em); text-indent: .12em; }
.agrft-secondary-action,
.agrft-reservation__confirmation .agrft-secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; color: var(--agrft-violet); background: var(--agrft-white); border: 2px solid var(--agrft-violet); text-decoration: none; }
.agrft-confirmation-actions { display: flex; align-items: stretch; gap: 12px; margin-top: 12px; }
.agrft-confirmation-actions > :first-child:not(:last-child) { flex: 1 1 auto; font-weight: 600; }
.agrft-reservation__confirmation .agrft-confirmation-close { flex: 0 0 48px; width: 48px; margin: 0 0 0 auto; padding: 0; border-radius: 0; font: 600 1.75rem/1 "Eric Machat", sans-serif; cursor: pointer; }
.agrft-reservation__confirmation .agrft-confirmation-calendar-question { margin-top: 18px; }
.agrft-reservation__confirmation .agrft-confirmation-actions .agrft-secondary-action { margin: 0; background: var(--agrft-grey); }
html:is([data-agrft-contrast="light"], [data-agrft-contrast="dark"]) .agrft-ticket-numbers { color: var(--agrft-foreground); }
html:is([data-agrft-contrast="light"], [data-agrft-contrast="dark"]) .agrft-reservation__confirmation { color: var(--agrft-foreground); background: var(--agrft-background); outline: 2px solid var(--agrft-foreground); }
html:is([data-agrft-contrast="light"], [data-agrft-contrast="dark"]) .agrft-reservation__confirmation :is(.agrft-confirmation-status, .agrft-reservation-number-card) { color: var(--agrft-background); background: var(--agrft-foreground); }
html:is([data-agrft-contrast="light"], [data-agrft-contrast="dark"]) .agrft-reservation__confirmation :is(.agrft-reservation-quantity, .agrft-reservation-arrival) { color: var(--agrft-foreground); }
html:is([data-agrft-contrast="light"], [data-agrft-contrast="dark"]) .agrft-reservation__confirmation .agrft-confirmation-actions .agrft-secondary-action { background: var(--agrft-background); }
html:is([data-agrft-contrast="light"], [data-agrft-contrast="dark"]) .agrft-no-reservation { color: var(--agrft-foreground); background: transparent; }
html:is([data-agrft-contrast="light"], [data-agrft-contrast="dark"]) .agrft-occurrence-dock .agrft-event__actions > .agrft-reserve-trigger:not(.agrft-no-reservation) {
  color: var(--agrft-background); background: var(--agrft-foreground); border: 2px solid var(--agrft-foreground);
}
html:is([data-agrft-contrast="light"], [data-agrft-contrast="dark"]) .agrft-occurrence-dock .agrft-event__actions > .agrft-no-reservation {
  color: var(--agrft-foreground); background: var(--agrft-background); border: 2px solid var(--agrft-foreground);
}
html:is([data-agrft-contrast="light"], [data-agrft-contrast="dark"]) .agrft-days a.is-active { color: var(--agrft-background); background: var(--agrft-foreground); }
@media (forced-colors: active) {
  .agrft-search { outline: 2px solid ButtonText; outline-offset: 0; }
  .agrft-search:focus-within { outline: 3px solid Highlight; outline-offset: 3px; box-shadow: none; }
  .agrft-days a.is-active { color: HighlightText; background: Highlight; forced-color-adjust: none; }
}

.agrft-gallery figure > a { display: block; }
.agrft-lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 16px; border: 0; background: var(--agrft-grey); color: var(--agrft-violet); }
.agrft-lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; }
.agrft-lightbox[open].has-caption { grid-template-rows: minmax(0, 1fr) auto auto; }
.agrft-lightbox::backdrop { background: var(--agrft-grey); }
.agrft-lightbox__stage { display: grid; place-items: center; min-height: 0; min-width: 0; touch-action: pan-y pinch-zoom; }
.agrft-lightbox__stage img { display: block; width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: contain; object-position: center; }
.agrft-lightbox__error { position: absolute; padding: 12px; background: var(--agrft-white); }
.agrft-lightbox__caption { justify-self: center; width: 100%; max-width: 812px; margin: 0; color: var(--agrft-violet); font-family: "Eric Machat", sans-serif; font-size: 16px; font-weight: 400; line-height: 1.4; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; }
.agrft-lightbox__controls { display: flex; justify-content: center; gap: 16px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.agrft-lightbox__controls button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--agrft-pink); cursor: pointer; }
.agrft-lightbox__controls button:focus { outline: 0; outline-offset: 0; box-shadow: none; }
.agrft-lightbox__controls button:focus-visible { outline: 3px solid var(--agrft-violet); outline-offset: 2px; box-shadow: 0 0 0 2px var(--agrft-white); }
.agrft-lightbox__controls svg { display: block; width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.agrft-lightbox__zoom-mark { stroke-width: 1.5; }
html:is([data-agrft-contrast="light"], [data-agrft-contrast="dark"]) .agrft-lightbox__controls button {
  color: var(--agrft-foreground);
  background: var(--agrft-background);
}
html:is([data-agrft-contrast="light"], [data-agrft-contrast="dark"]) .agrft-lightbox__controls button:focus-visible {
  outline-color: var(--agrft-foreground);
  box-shadow: 0 0 0 2px var(--agrft-background);
}
.agrft-lightbox.is-zoomed { padding: 0; overflow: hidden; }
.agrft-lightbox[open].is-zoomed { display: block; }
.agrft-lightbox.is-zoomed .agrft-lightbox__caption { display: none; }
.agrft-lightbox.is-zoomed .agrft-lightbox__stage { position: absolute; inset: 0; display: block; overflow: hidden; touch-action: none; cursor: grab; }
.agrft-lightbox.is-zoomed.is-panning .agrft-lightbox__stage { cursor: grabbing; }
.agrft-lightbox.is-zoomed .agrft-lightbox__stage img { position: absolute; max-width: none; max-height: none; object-fit: fill; object-position: initial; user-select: none; will-change: transform; }
.agrft-lightbox.is-zoomed .agrft-lightbox__controls { position: absolute; z-index: 2; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); padding-bottom: 0; }
@media (forced-colors: active) {
  .agrft-lightbox__controls button { color: ButtonText; border: 2px solid ButtonText; background: Canvas; forced-color-adjust: none; }
  .agrft-lightbox__controls button:focus-visible { outline: 3px solid Highlight !important; outline-offset: 3px; box-shadow: none; }
}
@media print { .agrft-lightbox { display: none !important; } }
