/* Connexions — Events (assets/events.js). Uses the site's colour variables, so a Design theme applies. */
.cxe-loading { color: var(--muted); }
.cxe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.cxe-card { display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: var(--soft); color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.cxe-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 11, 15, .12); }
.cxe-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--ink); }
.cxe-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cxe-card__tone { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--accent); color: #fff; line-height: 1; }
.cxe-card__tone span { font: 800 18px var(--text); letter-spacing: .14em; text-transform: uppercase; }
.cxe-card__tone strong { font: 900 110px var(--display); font-stretch: 70%; }
.cxe-card__tone + .cxe-badge { display: none; }
.cxe-badge { position: absolute; left: 16px; top: 16px; width: 58px; height: 62px; border-radius: 16px; background: #fff; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 6px 18px rgba(11, 11, 15, .18); }
.cxe-badge span { font: 800 11px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cxe-badge strong { font: 900 30px var(--display); font-stretch: 75%; margin-top: 2px; }
.cxe-badge--big { position: static; flex: none; background: var(--ink); color: #fff; box-shadow: none; width: 72px; height: 78px; }
.cxe-badge--big span { color: #FF8A9B; font-size: 12px; }
.cxe-badge--big strong { font-size: 38px; }
.cxe-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; flex: 1; }
.cxe-when { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.cxe-card h3 { margin: 0; font: 900 30px/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.cxe-card p { margin: 0; color: var(--body); line-height: 1.55; }
.cxe-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--muted); }
.cxe-meta > span:first-child:not(.cxe-chip) { margin-right: 4px; }
.cxe-chip { display: inline-block; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; }
.cxe-chip--price { background: var(--ink); color: #fff; }
.cxe-chip--warn { background: var(--blush, #FDEEEF); color: var(--accent); }
.cxe-chip--bad { background: var(--accent); color: #fff; }
.cxe-empty { padding: 48px 28px; border-radius: 28px; background: var(--soft); text-align: center; }
.cxe-empty h2 { margin: 0 0 8px; font: 900 34px/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.cxe-empty p { margin: 0; color: var(--body); }

/* Next event on the home page */
.cxe-next { max-width: 100%; margin: 0 auto; padding: 20px 40px 0; }
.cxe-next[hidden] { display: none; }
.cxe-next__card { display: flex; align-items: center; gap: 20px; padding: 18px 22px; border-radius: 28px; background: var(--ink); color: #fff; }
.cxe-next__card:hover { color: #fff; }
.cxe-next__card .cxe-badge--big { background: #fff; color: var(--ink); }
.cxe-next__card .cxe-badge--big span { color: var(--accent); }
.cxe-next__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cxe-next__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #FF8A9B; }
.cxe-next__text strong { font: 900 30px/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.cxe-next__text span:last-child { color: #B8BECC; font-size: 15px; }
.cxe-next__cta { margin-left: auto; flex: none; padding: 12px 20px; border-radius: 999px; background: var(--accent); font-weight: 700; }

/* One event */
.cxe-back { margin: 0 0 20px; }
.cxe-back a { font-weight: 700; }
.cxe-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 40px; align-items: start; }
.cxe-detail__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; display: block; margin-bottom: 24px; }
.cxe-detail__head { display: flex; gap: 18px; align-items: center; }
.cxe-title { margin: 0 0 6px; font: 900 clamp(38px, 5vw, 64px)/.95 var(--display); font-stretch: 70%; text-transform: uppercase; }
.cxe-facts { display: grid; gap: 10px; margin: 24px 0; padding: 20px 22px; border-radius: 22px; background: var(--soft); }
.cxe-facts div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
.cxe-facts dt { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.cxe-facts dd { margin: 0; font-weight: 600; }
.cxe-facts a { color: var(--accent); }
.cxe-desc { font-size: 17px; line-height: 1.7; color: var(--body); }
.cxe-desc a { color: var(--accent); text-decoration: underline; }
.cxe-detail__side { position: sticky; top: 100px; }
.cxe-panel { padding: 28px; border-radius: 28px; background: #fff; box-shadow: 0 2px 0 rgba(11, 11, 15, .04), 0 18px 50px rgba(11, 11, 15, .1); border: 1px solid #EEF0F4; }
.cxe-panel > h3, .cxe-done h3 { margin: 0 0 14px; font: 900 32px/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.cxe-form { display: flex; flex-direction: column; gap: 16px; }
.cxe-field { display: flex; flex-direction: column; gap: 6px; }
.cxe-field[hidden], .cxe-section[hidden], .cxe-note[hidden] { display: none; }
.cxe-field > label, .cxe-field legend, .cxe-tickets legend { font-weight: 700; font-size: 15px; }
.cxe-field fieldset, .cxe-tickets { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cxe-req { color: var(--accent); }
.cxe-opt { font-weight: 400; color: var(--muted); }
.cxe-help { font-size: 13px; color: var(--muted); }
.cxe-form input:not([type=checkbox]):not([type=radio]), .cxe-form select, .cxe-form textarea { width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid #DDE1EA; font: 400 16px/1.4 var(--text); color: var(--ink); background: #fff; }
.cxe-form input:focus, .cxe-form select:focus, .cxe-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 11, 15, .08); }
.cxe-form [aria-invalid="true"] { border-color: var(--accent) !important; }
.cxe-err { font-size: 13px; font-weight: 600; color: var(--accent); }
.cxe-section { margin: 10px 0 0; padding-top: 16px; border-top: 1px solid #EEF0F4; font: 900 22px/1.1 var(--display); font-stretch: 80%; text-transform: uppercase; }
.cxe-note { font-size: 14px; line-height: 1.6; color: var(--body); }
.cxe-note p { margin: 0 0 8px; }
.cxe-choices { display: flex; flex-direction: column; gap: 6px; }
.cxe-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #E6E8EE; cursor: pointer; font-weight: 500; line-height: 1.4; }
.cxe-choice:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.cxe-choice input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.cxe-ticket { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--soft); }
.cxe-ticket.is-out { opacity: .75; }
.cxe-ticket__name { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cxe-ticket__name span { font-size: 14px; color: var(--body); }
.cxe-qty { display: flex; align-items: center; gap: 4px; flex: none; }
.cxe-qty button { width: 38px; height: 38px; border-radius: 999px; border: 1.5px solid #CDD1DB; background: #fff; font: 700 20px/1 var(--text); color: var(--ink); cursor: pointer; }
.cxe-qty button:hover { border-color: var(--ink); }
.cxe-form .cxe-qty input { width: 52px; padding: 8px 4px; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.cxe-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cxe-people { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cxe-people[hidden] { display: none; }
.cxe-people legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 2px; }
.cxe-person { padding: 12px 14px 14px; border-radius: 16px; border: 1.5px solid #E6E8EE; display: flex; flex-direction: column; gap: 8px; }
.cxe-person__head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.cxe-person__head span { color: var(--muted); }
.cxe-person__fields { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; }
.cxe-person__fields > .cxe-field:only-child { grid-column: 1 / -1; }
.cxe-person .cxe-field > label { font-size: 13px; }
.cxe-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cxe-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid #EEF0F4; }
.cxe-total:empty { display: none; }
.cxe-total span { color: var(--body); }
.cxe-total strong { font: 900 30px var(--display); font-stretch: 75%; }
.cxe-submit { width: 100%; min-height: 54px; font-size: 16px; }
.cxe-small { margin: -6px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.cxe-status { padding: 12px 14px; border-radius: 14px; background: var(--blush, #FDEEEF); color: #8E0B21; font-size: 14px; font-weight: 600; }
.cxe-status[hidden] { display: none; }
.cxe-done { display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; }
.cxe-done p { margin: 0; color: var(--body); line-height: 1.55; }
.cxe-done .cxe-submit { margin-top: 6px; }
.cxe-tick { width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; background: #E7F6EC; color: #1F8A4C; font-size: 30px; font-weight: 900; }
.cxe-tick.is-wait { background: var(--soft); font-size: 26px; }
.cxe-ref { font-size: 14px; color: var(--muted); }
.cxe-ref strong { color: var(--ink); letter-spacing: .06em; }
.cxe-qr__lead { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--body); }
.cxe-qrs { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; justify-items: center; }
.cxe-qrs.is-many { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cxe-qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cxe-qr img { width: 200px; height: 200px; max-width: 100%; border-radius: 16px; border: 1px solid #EEF0F4; image-rendering: pixelated; background: #fff; }
.cxe-qrs.is-many .cxe-qr img { width: 150px; height: 150px; }
.cxe-qr figcaption { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.cxe-qr figcaption span { color: var(--muted); font-size: 13px; }
.cxe-spinner { width: 42px; height: 42px; border-radius: 999px; border: 4px solid var(--soft); border-top-color: var(--accent); animation: cxe-spin .9s linear infinite; }
@keyframes cxe-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cxe-spinner { animation-duration: 3s; } .cxe-card { transition: none; } }
@media (max-width: 900px) {
  .cxe-detail { grid-template-columns: 1fr; gap: 28px; }
  .cxe-detail__side { position: static; }
  .cxe-next { padding: 16px 20px 0; }
  .cxe-next__card { flex-wrap: wrap; }
  .cxe-next__cta { margin-left: 0; }
}
@media (max-width: 560px) {
  .cxe-panel { padding: 22px 18px; }
  .cxe-card h3 { font-size: 26px; }
}
.cxe-small a { color: inherit; text-decoration: underline; }
