/* Events (/events-and-announcements, /event-details, /event-details/{slug}): a programme. The list is a
   timetable grouped by month (a sticky month label beside dated rows); a detail page is a programme sheet:
   the photo with its date stub, the text, and a ticket of particulars beside the contact card. Shared: ../wcu.css. */

/* phead: the <em> accent is yellow on navy (DESIGN.md); wcu.css leaves it crimson (proposed shared fix) */
.w-phead__title em { color: var(--w-yellow); }

/* ---------- programme ---------- */
.w-ev-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: clamp(28px, 4vw, 48px); border-bottom: 4px double var(--w-line-2); }
.w-ev-top .w-h2 { margin: 0; }
.w-ev-top__facts { display: flex; margin: 0; border-left: 1px solid var(--w-line-2); }
.w-ev-top__facts div { padding: 0 clamp(16px, 2vw, 28px); border-right: 1px solid var(--w-line-2); }
.w-ev-top__facts dt { font: 700 10.5px/1.2 var(--w-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--w-mute); margin-bottom: 6px; }
.w-ev-top__facts dd { margin: 0; font: 400 clamp(24px, 2.4vw, 34px)/1 var(--w-serif); color: var(--w-ink); white-space: nowrap; }
.w-ev-month { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.w-ev-month + .w-ev-month { padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--w-ink); }
.w-ev-month__sticky { position: sticky; top: calc(var(--w-head-h) + 24px); display: grid; }
.w-ev-month__sticky b { font: 400 clamp(36px, 3.6vw, 54px)/1 var(--w-serif); color: var(--w-ink); letter-spacing: -.03em; font-style: italic; }
.w-ev-month__sticky span { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--w-serif); color: var(--w-crimson); }
.w-ev-month__sticky small { margin-top: 12px; font: 700 11px/1.2 var(--w-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--w-mute); }
.w-ev-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--w-line-2); }
.w-ev-row { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr) 150px; gap: clamp(16px, 2.4vw, 36px); align-items: start; padding: 26px 0; border-bottom: 1px solid var(--w-line-2); }
.w-ev-row::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 3px; background: var(--w-crimson); transition: width .7s var(--w-ease); }
.w-ev-row:hover::before { width: 100%; }
.w-ev-row__date { display: grid; justify-items: start; padding: 14px 12px; background: var(--w-navy); color: #fff; border-top: 4px solid var(--w-crimson); }
.w-ev-row__day { font: 400 52px/.9 var(--w-serif); letter-spacing: -.04em; }
.w-ev-row__mon { font: 800 12px/1.2 var(--w-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--w-yellow); margin-top: 6px; }
.w-ev-row__wd { font-size: 12.5px; color: rgba(255, 255, 255, .65); }
.w-ev-row__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; font: 600 13px/1.4 var(--w-sans); color: var(--w-mute); }
.w-ev-row__meta i { color: var(--w-crimson); margin-right: 6px; }
.w-ev-status { padding: 2px 8px; font: 800 10.5px/1.5 var(--w-sans); letter-spacing: .14em; text-transform: uppercase; background: var(--w-yellow); color: var(--w-night); }
.is-held .w-ev-status { background: var(--w-paper-2); color: var(--w-mute); }
.w-ev-row__t { font-size: clamp(21px, 2vw, 28px); margin: 0 0 8px; }
.w-ev-row__t a:hover { color: var(--w-crimson); }
.w-ev-row__main p { font-size: 15px; margin-bottom: 14px; }
.w-ev-row__img { aspect-ratio: 4 / 4.6; }
.w-ev-row__img img { transition: transform 1.2s var(--w-ease); }
.w-ev-row:hover .w-ev-row__img img { transform: scale(1.06); }
.is-held .w-ev-row__date { background: var(--w-ink); border-top-color: var(--w-line-2); }

/* ticker icons */
.w-ev-tick__ic { width: clamp(30px, 3vw, 44px) !important; height: clamp(30px, 3vw, 44px) !important; border-radius: 0 !important; object-fit: contain !important; }

/* ---------- detail: programme sheet ---------- */
.w-ev-d__hero { position: relative; margin-bottom: clamp(36px, 5vw, 64px); }
.w-ev-d__img { aspect-ratio: 1072 / 460; box-shadow: var(--w-shadow); }
.w-ev-d__tag { position: absolute; left: clamp(16px, 3vw, 40px); bottom: -26px; z-index: 2; display: grid; justify-items: center; margin: 0; padding: 14px 20px 12px; background: var(--w-crimson); color: #fff; font: 800 12px/1 var(--w-sans); letter-spacing: .18em; text-transform: uppercase; box-shadow: 0 14px 30px -14px rgba(8, 25, 51, .6); }
.w-ev-d__tag span { font: 400 46px/1 var(--w-serif); letter-spacing: -.03em; margin-bottom: 4px; }
.w-ev-d__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.w-ev-d__body.w-prose h2:first-child, .w-ev-d__body .w-prose > :first-child { margin-top: 0; }
.w-ev-d__body .w-checks { margin: 0 0 1.3em; }
.w-ev-d__side .w-sticky { display: grid; gap: 18px; }
.w-ev-ticket { position: relative; background: var(--w-white); border: 1px solid var(--w-line-2); padding: 24px 24px 18px; }
.w-ev-ticket::before, .w-ev-ticket::after { content: ""; position: absolute; top: 66px; width: 22px; height: 22px; border-radius: 50%; background: var(--w-paper); border: 1px solid var(--w-line-2); }
.w-ev-ticket::before { left: -12px; clip-path: inset(0 0 0 50%); }
.w-ev-ticket::after { right: -12px; clip-path: inset(0 50% 0 0); }
.w-ev-ticket__t { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 2px dashed var(--w-line-2); font-size: 24px; }
.w-ev-ticket dl { margin: 0; }
.w-ev-ticket dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--w-line); }
.w-ev-ticket dl div:last-child { border-bottom: 0; }
.w-ev-ticket dt { font: 700 11px/1.5 var(--w-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--w-mute); }
.w-ev-ticket dd { margin: 0; font-weight: 700; color: var(--w-ink); font-size: 15px; overflow-wrap: anywhere; }
.w-ev-info { padding: 24px; background: var(--w-navy); color: rgba(255, 255, 255, .78); border-top: 4px solid var(--w-yellow); }
.w-ev-info__t { font-size: 22px; margin: 0 0 14px; }
.w-ev-info ul { list-style: none; margin: 0; padding: 0; }
.w-ev-info li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.w-ev-info li i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .22); color: var(--w-yellow); font-size: 13px; }
.w-ev-info span { display: block; font: 700 10.5px/1.3 var(--w-sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 2px; }
.w-ev-info a, .w-ev-info p { margin: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.w-ev-info a:hover { color: var(--w-yellow); }
.w-ev-info__social { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
.w-ev-info__social span { margin: 0 auto 0 0; }
.w-ev-info__social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; }
.w-ev-info__social a:hover { background: var(--w-yellow); color: var(--w-night); border-color: var(--w-yellow); }
.w-ev-gal { margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--w-ink); }
.w-ev-gal__t { font-size: clamp(24px, 2.2vw, 30px); }
.w-ev-gal__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.w-ev-gal__grid a { position: relative; display: block; aspect-ratio: 4 / 3; }
.w-ev-gal__eye { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(211, 34, 77, .7); color: #fff; font-size: 20px; opacity: 0; transition: opacity .4s; }
.w-ev-gal__grid a:hover .w-ev-gal__eye, .w-ev-gal__grid a:focus-visible .w-ev-gal__eye { opacity: 1; }

@media (max-width: 991px) {
    .w-ev-month { grid-template-columns: minmax(0, 1fr); }
    .w-ev-month__sticky { position: static; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 12px; }
    .w-ev-month__sticky small { margin: 0; }
    .w-ev-d__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .w-ev-row { grid-template-columns: 88px minmax(0, 1fr); }
    .w-ev-row__img { display: none; }
    .w-ev-row__day { font-size: 40px; }
    .w-ev-top__facts { border-left: 0; }
    .w-ev-top__facts div:first-child { padding-left: 0; }
    .w-ev-gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .w-ev-d__img { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
    .w-ev-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .w-ev-row__date { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; padding: 10px 14px; }
    .w-ev-top__facts { flex-wrap: wrap; row-gap: 12px; }
    .w-ev-ticket dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
