.events-page {
  --event-ink: #172b41;
  --event-teal: #284463;
  --event-sand: #f0e1be;
  --event-paper: #f8f7f1;
  --event-line: #cbcfd4;
  color: var(--event-ink);
}
.event-opening { position: relative; isolation: isolate; background: #132336; color: white; overflow: hidden; }
.event-visit { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 64%; height: 100%; object-fit: cover; object-position: center 55%; }
.event-opening::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #132336 24%, #132336f7 39%, #1323369e 55%, #13233610 77%), linear-gradient(0deg,#13233675,transparent 36%); }
.event-opening-copy { padding-block: clamp(3.25rem, 5.3vw, 5.4rem) clamp(5rem, 7vw, 7.3rem); }
.event-opening .eyebrow { display: flex; align-items: center; gap: .8rem; color: #efd39b; }
.event-opening .eyebrow::before { content: ""; width: 2.6rem; height: 2px; background: currentColor; }
.event-opening h1 { margin-block: .32em; max-width: 15ch; font-size: clamp(3.2rem, 5.65vw, 5.8rem); line-height: 1.02; font-weight: 330; }
.event-opening h1 em { color: #f1d9a8; }
.event-opening-copy > p:not(.eyebrow) { max-width: min(40ch, 47%); color: #e3e9ef; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.55; }
.event-browse { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.35rem; font-weight: 700; border-bottom: 1px solid #bdc3c9; padding: .3rem 0; }
.event-browse span { color: #edce99; }
/* The negative margin here used to lap the card over the .event-opening hero; that hero
   is gone, so it was pulling the card up under the sticky header instead. */
.feature-pass-wrap { position: relative; margin-top: clamp(2rem, 3.5vw, 3rem); }
.feature-pass { display: grid; grid-template-columns: minmax(115px, .55fr) minmax(0, 2.1fr) minmax(155px, .85fr); align-items: stretch; border: 1px solid #bcc3ca; background: var(--event-paper); box-shadow: 0 14px 28px -24px #2434478a; }
.feature-date, .feature-pass-copy, .pass-link { padding: clamp(1.2rem, 2.4vw, 2.2rem); }
.feature-date { display: flex; flex-direction: column; justify-content: center; gap: .7rem; background: #e7eef4; font-size: .85rem; line-height: 1.45; font-weight: 700; }
.feature-date svg { width: 2.25rem; height: 2.25rem; color: var(--event-teal); }
.feature-pass-copy .eyebrow { color: #505a66; }
.feature-pass-copy h2 { font-size: clamp(1.9rem, 3vw, 3rem); font-weight: 640; margin: .12em 0; }
.feature-pass-copy > p:last-child { max-width: 57ch; color: #4a5766; line-height: 1.55; }
.pass-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-inline-start: 1px dashed #a9b0b9; font-weight: 750; line-height: 1.35; }
.pass-link svg { width: 2rem; height: 2rem; flex: none; border-radius: 50%; border: 1px solid #98a3af; padding: .4rem; }
.pass-link:hover { background: #e7eef4; }
.events-page .collection { padding-block: clamp(3rem,5vw,4.8rem); }
.events-page .collection-heading h2 { font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 540; }
.events-page .filter-bar { border-color: var(--event-line); }
.events-page .filter-buttons button[aria-pressed=true] { background: var(--event-ink); }
.programme-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem,1.7vw,1.65rem); }
/* Category coding stays three-way distinct, but on the brand palette:
   shingo = navy-light, bpx = slate, conference = brass. */
.programme-card { min-width: 0; --tint: #edf2f7; --mark: var(--navy-light); }
.programme-card.bpx { --tint: var(--navy-pale); --mark: var(--slate); }
.programme-card.conference { --tint: #f3ead6; --mark: #806737; }
.programme-pass { display: flex; flex-direction: column; height: 100%; border: 1px solid #c6cbd0; background: #fff; transition: box-shadow .2s, border-color .2s; }
.programme-pass:is(:hover,:focus-visible) { box-shadow: 0 8px 24px -14px #29394c78; border-color: var(--mark); }
.programme-art { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; min-height: 6.7rem; gap: 1rem; padding: 1rem clamp(1rem, 1.8vw, 1.65rem); background: var(--tint); border-top: 3px solid var(--mark); color: var(--mark); }
.programme-mark { display: flex; flex-direction: column; justify-content: center; gap: .65rem; }
.programme-mark img { width: auto; max-width: min(100%, 8.4rem); max-height: 3.1rem; object-fit: contain; object-position: left center; }
.bpx .programme-mark img { max-width: 7.1rem; max-height: 1.7rem; }
.events-page .programme-mark img[src$="/event-sys.webp"] { max-width: min(100%, 9rem); max-height: 2.1rem; }
.events-page .programme-mark img[src$="/icg-logo.svg"] { transform: scale(.9); transform-origin: left center; }
.programme-art .programme-pictogram { width: clamp(2.5rem, 3vw, 3.2rem); height: auto; aspect-ratio: 1; flex-shrink: 0; stroke-width: 1.2; }
.programme-info { padding: clamp(1.15rem, 1.8vw, 1.7rem); flex: 1; display: flex; flex-direction: column; }
.programme-info .eyebrow { font-size: .62rem; color: var(--mark); }
.programme-info h3 { margin: .5rem 0 1.15rem; font-size: clamp(1.25rem, 1.65vw, 1.6rem); font-weight: 680; }
.programme-meta { display: grid; gap: .5rem; margin-top: auto; color: #435264; font-size: .92rem; line-height: 1.4; }
.programme-meta p { display: flex; align-items: flex-start; gap: .55rem; }
.programme-meta svg { width: 1rem; height: 1rem; flex: none; margin-top: .15em; }
.programme-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-inline: clamp(1.15rem, 1.8vw, 1.7rem); padding-block: .65rem .85rem; border-top: 1px dashed #bfc4ca; }
.programme-foot .image-label { font-size: .8rem; color: #545e69; }
[data-category="upcoming"] .programme-foot .image-label { font-weight: 800; color: var(--ink); }
.programme-foot > span:last-child { color: var(--mark); font-size: 1.25rem; line-height: 1; }
.events-page .bottom-cta { background: var(--event-paper); }
@media (max-width: 960px) {
  .programme-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .event-opening::before { background: linear-gradient(90deg,#132336fa 12%,#132336eb 44%,#13233670 80%),linear-gradient(0deg,#132336d9,transparent 72%); }
  .event-visit { width: 80%; }
  .event-opening-copy > p:not(.eyebrow) { max-width: min(36ch,85%); }
  .feature-pass { grid-template-columns: minmax(95px,.45fr) minmax(0,1.55fr); }
  .pass-link { grid-column: 1/-1; border-inline-start: 0; border-top: 1px dashed #a9b0b9; padding-block: .75rem; }
  .event-opening h1 { font-size: clamp(2.8rem,8.25vw,3.7rem); }
}
@media (max-width: 540px) {
  .event-opening-copy { padding-bottom: 4rem; }
  .event-opening-copy > p:not(.eyebrow) { max-width: 96%; }
  .event-visit { width: 100%; object-position: 61% 48%; }
  .event-opening::before { background: linear-gradient(90deg,#132336ee,#132336b0 65%,#1323367e),linear-gradient(0deg,#132336f2,transparent 77%); }
  .feature-pass { grid-template-columns: minmax(0,1fr); }
  .feature-date { flex-direction: row; align-items: center; justify-content: flex-start; padding: .65rem 1rem; }
  .feature-date svg { width: 1.4rem; height: 1.4rem; flex: none; }
  .feature-pass-copy { padding: 1rem; }
  .feature-pass-copy > p:last-child { font-size: .93rem; }
  .programme-grid { grid-template-columns: minmax(0,1fr); }
  .programme-art { min-height: 6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .programme-pass { transition: none; }
}
