.events-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto 88px; --events-accent: #c74921; }
.events-shell h1, .events-shell h2, .events-shell h3 { font-family: var(--public-heading-font); letter-spacing: -.025em; }
.events-shell button, .events-shell input, .events-shell select { font: inherit; }
.events-shell button, .events-shell a { -webkit-tap-highlight-color: transparent; }
.events-shell :focus-visible { outline: 3px solid var(--public-orange); outline-offset: 4px; }
.events-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.6; }
.events-intro { display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 48px; padding: 64px 0 52px; border-bottom: 1px solid var(--public-line); }
.events-intro h1 { font-size: clamp(4rem, 8.5vw, 8rem); line-height: .92; margin: 22px 0; font-weight: 900; }
.events-intro h1 > span { color: var(--events-accent); }
.events-intro__copy { line-height: 1.8; color: var(--public-muted); font-size: 1rem; }
.events-intro__aside { justify-self: end; width: min(100%, 330px); padding: 32px; background: var(--public-ink); color: #fff; border-top: 5px solid var(--public-orange); }
.events-intro__aside > span { font-size: .65rem; letter-spacing: .13em; }
.events-intro__aside strong { display: block; font-family: var(--public-heading-font); font-size: 2rem; line-height: 1.1; margin: 26px 0 34px; }
.events-intro__aside a { font-size: .8rem; text-underline-offset: 5px; }
.events-controls { margin-top: 28px; padding: 24px; border: 1px solid var(--public-line); border-radius: 12px; background: rgba(255,255,255,.8); }
.events-days { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--public-line); }
.events-days button { border: 1px solid var(--public-line); border-radius: 30px; padding: 11px 18px; background: transparent; color: var(--public-ink); cursor: pointer; font-size: .78rem; font-weight: 700; min-height: 44px; }
.events-days button[aria-pressed="true"] { background: var(--public-ink); color: #fff; border-color: var(--public-ink); }
.events-days button:hover { border-color: var(--events-accent); }
.events-search { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 20px; align-items: end; margin-top: 22px; }
.events-search label { display: grid; gap: 9px; font-size: .75rem; font-weight: 700; min-width: 0; }
.events-search input, .events-search select { width: 100%; min-width: 0; min-height: 46px; padding: 12px; color: var(--public-ink); background: #fff; border: 1px solid var(--public-line); border-radius: 5px; font-size: .85rem; }
.events-search button { background: transparent; border: 0; color: var(--public-muted); text-decoration: underline; text-underline-offset: 4px; padding: 12px 0; cursor: pointer; font-size: .8rem; min-height: 44px; }
.events-result-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 0 20px; color: var(--public-muted); font-size: .72rem; }
.events-day { margin-bottom: 46px; }
.events-day__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--public-ink); }
.events-day__heading h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.events-day__heading > span { flex-shrink: 0; font-size: .72rem; color: var(--public-muted); }
.events-day__list { display: grid; gap: 14px; }
.events-card { display: grid; grid-template-columns: 190px 90px minmax(0, 1fr) 140px; gap: 24px; padding: 18px; background: #fff; border: 1px solid var(--public-line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.events-card:hover { border-color: var(--public-green); box-shadow: 0 8px 24px rgba(18,32,51,.06); }
.events-card__image { display: block; aspect-ratio: 16/11; border-radius: 5px; overflow: hidden; background: var(--public-ink); }
.events-card__image img, .event-detail__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.events-card__time { padding-top: 4px; display: flex; flex-direction: column; gap: 7px; }
.events-card__time time { font-size: 1rem; font-weight: 800; }
.events-card__time > span { font-size: .65rem; color: var(--public-muted); }
.events-card__body { min-width: 0; }
.events-card__body .events-eyebrow { margin: 0 0 8px; color: var(--events-accent); font-size: .65rem; }
.events-card h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.12; margin: 0; overflow-wrap: anywhere; }
.events-card h3 a { text-decoration: none; }
.events-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.events-card__description { font-size: .8rem; line-height: 1.65; color: var(--public-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.events-card__films { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .7rem; line-height: 1.5; color: var(--public-muted); margin-bottom: 0; }
.events-card__action { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 22px; text-align: right; font-size: .7rem; padding: 5px 0; }
.events-link { display: inline-flex; align-items: center; gap: 12px; color: var(--events-accent); font-size: .8rem; font-weight: 800; text-decoration: none; min-height: 44px; background: none; border: 0; padding: 0; cursor: pointer; }
.events-art { height: 100%; min-height: 120px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; background: radial-gradient(ellipse at 100% 0, #436950, transparent 65%), linear-gradient(125deg, #182a39, #0b1925); }
.events-art > span:first-child { font-family: var(--public-heading-font); font-weight: 900; font-size: clamp(2rem, 5vw, 5rem); letter-spacing: -.04em; }
.events-art > span:last-child { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.events-empty { padding: 64px 24px; text-align: center; background: rgba(255,255,255,.75); border: 1px solid var(--public-line); border-radius: 12px; margin-top: 32px; }
.events-empty h2 { font-size: 2rem; margin-top: 0; }
.events-empty p { color: var(--public-muted); line-height: 1.8; }
.events-breadcrumb { padding: 32px 0; display: flex; gap: 10px; font-size: .75rem; color: var(--public-muted); }
.events-breadcrumb > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.events-breadcrumb a { flex-shrink: 0; text-underline-offset: 4px; }
.event-detail__header { max-width: 960px; margin-bottom: 32px; }
.event-detail__header h1 { font-size: clamp(2.7rem, 6vw, 5.8rem); line-height: 1; margin: 14px 0 22px; overflow-wrap: anywhere; }
.event-detail__header > p:last-child { line-height: 1.8; color: var(--public-muted); }
.event-detail__image { height: clamp(220px, 40vw, 560px); overflow: hidden; border-radius: 10px; background: var(--public-ink); }
.event-detail__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; margin-top: 40px; }
.event-detail__content h2 { font-size: 2rem; margin-top: 0; }
.event-detail__description { white-space: pre-line; line-height: 1.9; font-size: .95rem; overflow-wrap: anywhere; }
.event-films { margin-top: 48px; border-top: 1px solid var(--public-line); padding-top: 28px; }
.event-films__grid { display: grid; gap: 16px; }
.event-films article { display: flex; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--public-line); }
.event-films img { width: 130px; height: 85px; object-fit: cover; border-radius: 5px; }
.event-films h3 { margin: 4px 0 10px; font-size: 1.4rem; }
.event-films h3 a { text-decoration: none; }
.event-films p { font-size: .75rem; color: var(--public-muted); }
.event-booking { padding: 28px; background: #fff; border: 1px solid var(--public-line); border-top: 4px solid var(--public-orange); border-radius: 5px; }
.event-booking h2 { font-size: 1.8rem; margin: 12px 0; }
.event-booking__time { font-size: .9rem; line-height: 1.6; }
.event-booking__venue { border-top: 1px solid var(--public-line); border-bottom: 1px solid var(--public-line); margin: 24px 0; padding: 20px 0; font-size: .85rem; line-height: 1.7; }
.event-booking__venue p { white-space: pre-line; }
.event-booking__venue a { text-underline-offset: 4px; }
.event-booking .eventive-button { min-height: 46px; margin: 12px 0; }
.event-booking__unavailable { color: var(--public-muted); font-size: .85rem; line-height: 1.7; }
.events-share { width: 100%; padding: 13px 16px; border: 1px solid var(--public-line); background: #fff; color: var(--public-ink); border-radius: 5px; cursor: pointer; margin-top: 16px; font-size: .8rem !important; }
.events-share-status { display: block; min-height: 24px; font-size: .7rem; margin-top: 8px; }
@media (max-width: 1050px) {
  .events-card { grid-template-columns: 145px 78px minmax(0, 1fr); gap: 18px; }
  .events-card__action { grid-column: 3; flex-direction: row; text-align: left; align-items: center; }
  .event-detail__layout { gap: 28px; grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 720px) {
  .events-shell { width: calc(100% - 32px); }
  .events-intro { grid-template-columns: 1fr; padding: 32px 0; gap: 20px; }
  .events-intro__aside { justify-self: stretch; width: 100%; padding: 22px; }
  .events-intro__aside strong { font-size: 1.65rem; margin: 16px 0; }
  .events-intro__aside strong br { display: none; }
  .events-controls { padding: 16px; }
  .events-days { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 16px; }
  .events-days button { flex-shrink: 0; }
  .events-search { grid-template-columns: 1fr; gap: 16px; }
  .events-search button { justify-self: start; }
  .events-card { grid-template-columns: 75px minmax(0, 1fr); gap: 16px; padding: 14px; }
  .events-card__image { grid-column: 1 / -1; aspect-ratio: 16/8; }
  .events-card__action { grid-column: 2; flex-wrap: wrap; gap: 6px; }
  .events-card__description { -webkit-line-clamp: 3; }
  .event-detail__layout { display: flex; flex-direction: column; gap: 32px; }
  .event-booking { order: -1; width: 100%; }
  .event-detail__content { width: 100%; min-width: 0; }
  .event-films img { width: 95px; height: 70px; }
}
@media (prefers-reduced-motion: reduce) { .events-card { transition: none; } }

/* The editable introduction is isolated from the generated calendar. */
.events-editor { margin: 28px 0 22px; }
.events-editor:not(:has(> :not([hidden]))) { display: none; }
.events-editor.public-page-builder { width: 100%; max-width: none; padding: 0; }
.events-editor .public-feature { width: 100%; margin: 0; }
.events-calendar-section { min-width: 0; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin: 30px 0 16px; }
.calendar-toolbar h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin: 3px 0 0; line-height: 1; }
.calendar-toolbar .events-eyebrow { margin: 0; }
.calendar-paging { display: flex; align-items: center; gap: 12px; font-size: .85rem; font-weight: 700; }
.calendar-paging button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--public-line); background: #fff; color: var(--public-ink); cursor: pointer; }
.calendar-paging button:disabled { opacity: .35; cursor: default; }
.events-calendar-section .events-controls { margin-top: 20px; }
.calendar-scroll { overflow: auto; max-height: 85vh; border: 1px solid var(--public-line); border-radius: 12px; background: #fafbf8; overscroll-behavior-inline: contain; }
.festival-calendar { display: grid; grid-template-columns: 60px repeat(var(--calendar-days), minmax(240px, 1fr)); min-width: 1060px; position: relative; isolation: isolate; }
.festival-calendar--single { grid-template-columns: 60px minmax(0, 1fr); min-width: 0; }
.calendar-corner, .calendar-day-heading { position: sticky; top: 0; z-index: 5; background: #f4f6f1; border-bottom: 1px solid var(--public-line); padding: 16px 12px; }
.calendar-corner { left: 0; z-index: 6; font-size: .55rem; line-height: 1.6; display: flex; align-items: center; }
.calendar-day-heading { display: grid; gap: 4px; border-left: 1px solid var(--public-line); }
.calendar-day-heading > span { font-size: .7rem; color: var(--public-muted); text-transform: uppercase; letter-spacing: .08em; }
.calendar-day-heading strong { font-family: var(--public-heading-font); font-size: 1.7rem; line-height: 1.1; }
.calendar-day-heading small { font-size: .65rem; color: var(--public-muted); }
.calendar-times, .calendar-day { position: relative; height: var(--calendar-height); }
.calendar-times { position: sticky; left: 0; background: #f4f6f1; z-index: 4; }
.calendar-times > span { position: absolute; left: 6px; transform: translateY(-50%); font-size: .6rem; color: var(--public-muted); white-space: nowrap; }
.calendar-times > span:first-child { transform: translateY(4px); }
.calendar-times > span:last-child { transform: translateY(-100%); }
.calendar-day { border-left: 1px solid var(--public-line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 41px, rgba(18,32,51,.035) 41px, rgba(18,32,51,.035) 42px, transparent 42px, transparent 83px, rgba(18,32,51,.1) 83px, rgba(18,32,51,.1) 84px); }
.calendar-day-empty { padding: 16px; color: var(--public-muted); font-size: .75rem; }
.calendar-event { position: absolute; top: var(--event-top); left: calc(100% / var(--event-lanes) * var(--event-lane) + 4px); width: calc(100% / var(--event-lanes) - 8px); height: var(--event-height); min-height: 110px; display: flex; align-items: flex-end; border-radius: 7px; overflow: hidden; background: #1b3843; color: #fff; text-decoration: none; box-shadow: 0 3px 10px #0002; isolation: isolate; transition: transform .18s, box-shadow .18s; }
.calendar-event::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.45) 25%, rgba(0,0,0,.94)); z-index: -1; }
.calendar-event > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .3s; }
.calendar-event:hover, .calendar-event:focus-visible { z-index: 3; box-shadow: 0 6px 20px #0005; outline-offset: -3px; }
.calendar-event:hover > img { transform: scale(1.06); }
.calendar-event__fallback { position: absolute; inset: 0; display: grid; place-items: start end; padding: 18px; color: #ffffff35; font-size: 2.6rem; font-weight: 900; font-family: var(--public-heading-font); background: radial-gradient(ellipse at top right, #658251, transparent), #204756; z-index: -2; }
.calendar-event__copy { min-width: 0; width: 100%; display: grid; gap: 6px; padding: 12px; text-shadow: 0 1px 4px #000; }
.calendar-event__time { font-size: .62rem; font-weight: 800; line-height: 1.4; }
.calendar-event__copy strong { font-family: var(--public-heading-font); font-size: clamp(.9rem, 1.35vw, 1.25rem); line-height: 1.12; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.calendar-event__venue { font-size: .62rem; line-height: 1.35; padding-right: 10px; }
.calendar-event__arrow { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 22px; height: 22px; background: #0007; border-radius: 50%; font-size: .85rem; }
.events-online { margin-top: 36px; }
.events-online .events-day__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.events-online .events-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 24px; overflow: hidden; background: #122033; color: white; isolation: isolate; }
.events-online .events-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0001, #000e); z-index: -1; pointer-events: none; }
.events-online .events-card__image { position: absolute; inset: 0; aspect-ratio: auto; z-index: -2; }
.events-online .events-card__time { flex-direction: row; }
.events-online .events-card__body .events-eyebrow, .events-online .events-card__description, .events-online .events-card__films, .events-online .events-link { color: inherit; }
.events-online .events-card__body .events-eyebrow, .events-online .events-card__films { display: none; }
.events-online .events-card__action { flex-direction: row; align-items: center; }
.event-feature { margin-top: 36px; border-top: 1px solid var(--public-line); padding-top: 26px; }
.event-feature__art { position: relative; margin-bottom: 30px; padding-bottom: 30px; }
.event-feature__still { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: var(--public-ink); }
.event-feature__poster { display: block; width: clamp(100px, 28%, 190px); aspect-ratio: 2/3; object-fit: contain; background: #17232d; border: 5px solid #fff; border-radius: 5px; box-shadow: 0 8px 24px #0004; position: relative; margin: -100px 0 0 24px; }
.event-feature__art--poster-only { padding: 0; }
.event-feature__art--poster-only .event-feature__poster { margin: 0; }
.event-feature h3 { font-size: 2rem; margin: 6px 0 12px; }
.event-feature h3 a { text-decoration: none; }
.event-feature__meta { color: var(--public-muted); font-size: .8rem; line-height: 1.7; }
.event-feature__credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; padding-top: 24px; margin-top: 28px; border-top: 1px solid var(--public-line); }
.event-feature__credits div { min-width: 0; }
.event-feature__credits dt { color: var(--public-muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.event-feature__credits dd { margin: 0; font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .calendar-toolbar { align-items: flex-start; }
  .calendar-paging { width: 100%; justify-content: space-between; }
  .calendar-scroll { max-height: 78vh; }
  .calendar-event__copy strong { font-size: 1.05rem; }
  .festival-calendar--single .calendar-event__copy strong { font-size: 1.2rem; }
  .event-feature__poster { margin-left: 16px; margin-top: -65px; border-width: 3px; }
  .event-feature__credits { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .calendar-event, .calendar-event > img { transition: none; } }
