/* css/event-view.css — one event page (events/view.php): hero, registration ticket, sections, gallery, comments. Tokens, buttons, dialog and toasts: events-shared.css. */

.ev-page { --ev-hdr: calc(var(--gn-header-h, 84px) + .75rem); }
.ev-page.hdr-hidden { --ev-hdr: .75rem; }          /* the site header slides away on scroll-down: sticky pieces move up with it */
.ev-wrap { max-width: 1100px; margin-inline: auto; padding-inline: 20px; }
@media (prefers-reduced-motion: no-preference) { html:has(.ev-vhero) { scroll-behavior: smooth; } }

/* ---------- Hero: navy stage lit by a blurred copy of the poster; the crisp poster sits beside the text ---------- */
.ev-vhero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 2.2rem 0 9.5rem;
  background: var(--ev-ink); color: #fff;
}
.ev-vhero__bg { position: absolute; inset: -12%; z-index: -2; }
.ev-vhero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(46px) saturate(1.3); opacity: .6; transform: scale(1.1); }
.ev-vhero::before {                          /* keeps the text readable whatever the poster looks like */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46rem 20rem at 90% -10%, rgba(201, 164, 107, .28), transparent 62%),
    linear-gradient(180deg, rgba(8, 19, 31, .5), rgba(10, 35, 66, .9) 78%);
}
.ev-vhero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, transparent, var(--ev-gold) 20%, var(--ev-gold) 80%, transparent); }
.ev-vhero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 3rem; align-items: center; }

.ev-crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; font-size: .88rem; }
.ev-crumbs li + li::before { content: "/"; margin-right: .5rem; color: rgba(255, 255, 255, .55); }
.ev-crumbs a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.ev-crumbs a:hover { color: #fff; text-decoration: underline; }
.ev-crumbs [aria-current] { color: #fff; font-weight: 700; }

.ev-vhero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: 0 0 .9rem; }
.ev-vhero .ev-status { position: static; }
.ev-vhero__type { color: #e7cf9f; font: 700 .76rem/1 var(--body-font, Lato, sans-serif); letter-spacing: .2em; text-transform: uppercase; }
.ev-vhero__soon { padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .84rem; font-weight: 700; }
.ev-vhero__soon:empty { display: none; }
.ev-vhero h1 {
  margin: 0 0 1.2rem; color: #fff; text-wrap: balance;
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.8rem); line-height: 1.08; letter-spacing: -.015em;
}
.ev-vhero__spots { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; background: #ffedd5; color: #7c2d12; font-size: .82rem; font-weight: 700; }
.ev-vhero__spots i { color: #ea580c; }
.ev-vhero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.ev-vhero__cta:empty { display: none; }
.ev-btn--hero { min-height: 52px; padding-inline: 1.5rem; font-size: 1rem; }
.ev-btn--ghost-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); color: #fff; }
.ev-btn--ghost-light:hover { background: #fff; color: var(--ev-ink); border-color: #fff; }
.ev-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: .75rem; max-width: 48rem; margin: 0; }
.ev-fact {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .1rem .85rem; padding: .85rem 1rem;
  border-radius: 16px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ev-fact__icon { grid-row: 1 / 3; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: rgba(201, 164, 107, .2); color: var(--ev-gold); font-size: 1.05rem; }
.ev-fact dt { color: #e7cf9f; font: 700 .68rem/1.1 var(--body-font, Lato, sans-serif); letter-spacing: .18em; text-transform: uppercase; }
.ev-fact dd { margin: 0; color: #fff; font-weight: 700; font-size: 1.04rem; line-height: 1.3; overflow-wrap: anywhere; }

.ev-vhero__poster { position: relative; justify-self: end; width: fit-content; max-width: 100%; margin: 0; }
.ev-vhero__poster img {
  display: block; width: auto; height: auto; max-width: min(23rem, 100%); max-height: 28rem;
  border-radius: 18px; box-shadow: 0 34px 70px -26px rgba(0, 0, 0, .8), 0 0 0 1px rgba(231, 207, 159, .35);
}
.ev-vhero__poster--blank { width: min(20rem, 100%); aspect-ratio: 4 / 5; border-radius: 16px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .12); }
.ev-vhero__poster--blank .ev-blank { border-radius: 16px; overflow: hidden; }
.ev-vhero .ev-plate { left: -1rem; bottom: -1.2rem; }

@media (prefers-reduced-motion: no-preference) {
  .ev-vhero__text > * { animation: ev-rise .7s var(--ev-ease) both; }
  .ev-vhero__text > :nth-child(2) { animation-delay: .06s; } .ev-vhero__text > :nth-child(3) { animation-delay: .12s; } .ev-vhero__text > :nth-child(4) { animation-delay: .18s; }
  .ev-vhero__poster { animation: ev-rise .9s .1s var(--ev-ease) both; }
}

/* ---------- Layout: content + sticky ticket that overlaps the hero ---------- */
.ev-vlayout { display: grid; grid-template-columns: minmax(0, 1fr) 22.5rem; gap: 2.5rem; align-items: start; }
.ev-vmain { min-width: 0; padding-bottom: 3rem; }
.ev-vside { position: sticky; top: var(--ev-hdr); margin-top: -5.5rem; z-index: 3; transition: top .3s var(--ev-ease); }

/* The contents strip: sticky under the site header, every section one tap away. All of it fits on a desktop column; on a phone it slides sideways
   (no scroll bar), fades at the edge that has more, and the script keeps the section you are in centred. The one you are in is inked, with a gold bar. */
.ev-snav {
  position: sticky; top: var(--ev-hdr); z-index: 15; margin: 1.1rem 0 .4rem; transition: top .3s var(--ev-ease);
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--ev-line); border-radius: 16px; box-shadow: var(--ev-shade);
}
.ev-snav ul {
  --fade-l: 0px; --fade-r: 0px;                                   /* the script sets data-edge on the strip only when it can scroll */
  display: flex; gap: .15rem; margin: 0; padding: .3rem; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
.ev-snav ul::-webkit-scrollbar { display: none; }
.ev-snav[data-edge="start"] ul { --fade-r: 2rem; }
.ev-snav[data-edge="middle"] ul { --fade-l: 2rem; --fade-r: 2rem; }
.ev-snav[data-edge="end"] ul { --fade-l: 2rem; }
.ev-snav li { flex: 1 0 auto; }
.ev-snav a {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .3rem .8rem; border-radius: 11px;
  color: var(--ev-ink); font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s;
}
.ev-snav a::after {                                              /* the gold bar under the current section: transform only */
  content: ""; position: absolute; left: 50%; bottom: .22rem; width: 1.7rem; height: 3px; margin-left: -.85rem; border-radius: 3px; background: var(--ev-gold);
  transform: scaleX(0); transition: transform .3s var(--ev-ease);
}
.ev-snav a:hover { background: rgba(10, 35, 66, .06); }
.ev-snav a[aria-current="true"] { background: rgba(201, 164, 107, .2); }
.ev-snav a[aria-current="true"]::after { transform: scaleX(1); }

/* ---------- Ticket (registration card) ---------- */
.ev-ticket {
  position: relative; background: var(--ev-card); border: 1px solid var(--ev-line); border-top: 5px solid var(--ev-gold);
  border-radius: 20px; box-shadow: var(--ev-shade-hi);
}
.ev-ticket[data-status="registered"] { border-top-color: #16a34a; }
.ev-ticket[data-status="ended"], .ev-ticket[data-status="closed"] { border-top-color: #94a3b8; }
.ev-ticket__head { padding: 1.3rem 1.4rem .4rem; }
.ev-ticket__eyebrow { margin: 0 0 .35rem; color: var(--ev-gold-deep); font: 700 .72rem/1 var(--body-font, Lato, sans-serif); letter-spacing: .2em; text-transform: uppercase; }
.ev-ticket__title { margin: 0; color: var(--ev-ink); font-size: 1.5rem; line-height: 1.2; }
.ev-ticket__title:focus { outline: none; }
.ev-ticket__sub { margin: .4rem 0 0; color: var(--ev-muted); font-size: .95rem; line-height: 1.5; }
.ev-ticket .ev-meter { margin: 1rem 1.4rem 0; }
.ev-ticket__deadline { display: flex; gap: .6rem; align-items: baseline; margin: .9rem 1.4rem 0; color: var(--ev-muted); font-size: .9rem; line-height: 1.45; }
.ev-ticket__deadline i { color: var(--ev-gold-deep); }
.ev-ticket__left { display: block; color: var(--ev-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.ev-ticket__left:empty { display: none; }
.ev-ticket__action { display: grid; gap: .5rem; padding: 1.1rem 1.4rem 0; }
.ev-ticket__alt { margin: .2rem 0 0; color: var(--ev-muted); font-size: .86rem; text-align: center; }
.ev-ticket__alt a { color: var(--ev-ink); font-weight: 700; }
.ev-ticket__msg { min-height: 1.2rem; margin: .5rem 1.4rem 0; font-size: .9rem; font-weight: 700; }
.ev-ticket__msg.is-ok { color: var(--ev-ok); }
.ev-ticket__msg.is-err { color: var(--ev-bad); }
.ev-ticket__foot { position: relative; margin-top: .6rem; padding: 1.1rem 1.4rem 1.3rem; border-top: 2px dashed var(--ev-line); }
.ev-ticket__foot::before, .ev-ticket__foot::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--ev-paper); box-shadow: inset 0 0 0 1px var(--ev-line); }
.ev-ticket__foot::before { left: -11px; clip-path: inset(0 0 0 50%); }
.ev-ticket__foot::after { right: -11px; clip-path: inset(0 50% 0 0); }
.ev-ticket__tools { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ev-ticket__tools [hidden] { display: none; }
.ev-ticket__tools > :last-child:nth-child(odd) { grid-column: 1 / -1; }   /* no orphan tool on its own half-row */
.ev-tool {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .4rem .8rem;
  border: 1.5px solid var(--ev-line); border-radius: 12px; background: #fff; color: var(--ev-ink);
  font: 700 .86rem/1.1 var(--body-font, Lato, sans-serif); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.ev-tool:hover { border-color: var(--ev-ink); background: #f8fafc; }
.ev-tool i { width: 1rem; text-align: center; color: var(--ev-gold-deep); }
.ev-tool.is-done { background: var(--ev-ok-bg); border-color: #86efac; color: var(--ev-ok); }
.ev-tool.is-done i { color: var(--ev-ok); }
.ev-going { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.ev-going__faces { display: flex; margin: 0; padding: 0; list-style: none; }
.ev-going__faces li + li { margin-left: -.55rem; }
.ev-going__faces img { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #e2e8f0; }
.ev-going__text { margin: 0; color: var(--ev-muted); font-size: .9rem; }
.ev-going__text strong { color: var(--ev-ink); }

/* ---------- Sticky mobile call-to-action ---------- */
.ev-vbar { display: none; }

/* ---------- Sections ---------- */
.ev-sec { padding-block: 2.6rem 2.2rem; border-top: 1px solid var(--ev-line); scroll-margin-top: calc(var(--ev-hdr) + 4rem); }
.ev-sec:first-of-type { border-top: 0; padding-top: 1.6rem; }
.ev-sec__eyebrow { margin: 0 0 .4rem; color: var(--ev-gold-deep); font: 700 .74rem/1 var(--body-font, Lato, sans-serif); letter-spacing: .22em; text-transform: uppercase; }
.ev-sec__title { margin: 0 0 1.4rem; color: var(--ev-ink); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); letter-spacing: -.01em; }
.ev-sec__title::after { content: ""; display: block; width: 2.6rem; height: 3px; margin-top: .55rem; border-radius: 2px; background: var(--ev-gold); }
.ev-muted { color: var(--ev-muted); }

.ev-prose { max-width: 66ch; color: #1f2937; font-size: 1.06rem; line-height: 1.78; }
.ev-prose p { margin: 0 0 1.15em; }
.ev-prose__lede { color: var(--ev-ink); font-size: 1.22rem; line-height: 1.65; }

.ev-timeline { margin: 0; padding: 0; list-style: none; }
.ev-timeline__item { position: relative; display: grid; grid-template-columns: 6.8rem minmax(0, 1fr); gap: 0 1.5rem; padding-bottom: 1.6rem; }
.ev-timeline__item::before { content: ""; position: absolute; left: calc(6.8rem + .75rem - 1px); top: .5rem; bottom: -.3rem; width: 2px; background: var(--ev-line); }
.ev-timeline__item:last-child::before { display: none; }
.ev-timeline__item::after { content: ""; position: absolute; left: calc(6.8rem + .75rem - 6px); top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--ev-gold); box-shadow: 0 0 0 4px var(--ev-paper); }
.ev-timeline__time { display: grid; align-content: start; gap: .1rem; text-align: right; color: var(--ev-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.ev-timeline__time span { color: var(--ev-muted); font-size: .85rem; font-weight: 400; }
.ev-timeline__body { padding-left: 1.4rem; }
.ev-timeline__body h3 { margin: 0 0 .3rem; color: var(--ev-ink); font-size: 1.2rem; }
.ev-timeline__body p { margin: 0; color: var(--ev-muted); line-height: 1.6; }

.ev-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.ev-person { display: grid; justify-items: center; gap: .3rem; padding: 1.3rem 1rem; text-align: center; background: var(--ev-card); border: 1px solid var(--ev-line); border-radius: 16px; box-shadow: var(--ev-shade); }
.ev-person img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ev-gold); background: #e2e8f0; }
.ev-person h3 { margin: .5rem 0 0; color: var(--ev-ink); font-size: 1.1rem; }
.ev-person p { margin: 0; color: var(--ev-muted); font-size: .9rem; }

/* winners: podium + confetti stage */
.ev-celebrate { position: relative; isolation: isolate; padding-top: 3.6rem; }
.ev-confetti { position: absolute; top: 0; left: -1rem; width: calc(100% + 2rem); height: 100%; pointer-events: none; z-index: 6; }   /* js/event-confetti.js trims the height to the podium area */
.ev-podium { display: flex; align-items: flex-end; justify-content: center; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.ev-place { flex: 1 1 0; min-width: 0; max-width: 15.5rem; display: flex; flex-direction: column; }
.ev-place--first { order: 2; max-width: 18.5rem; flex-grow: 1.25; }
.ev-place--second { order: 1; }
.ev-place--third { order: 3; }
.ev-place__people { display: grid; gap: 4.2rem; padding-bottom: .9rem; }
.ev-place--first .ev-place__people { gap: 4.8rem; }

.ev-champ { position: relative; padding: 3.1rem 1rem 1.15rem; text-align: center; background: var(--ev-card); border: 1px solid var(--ev-line); border-radius: 20px; box-shadow: var(--ev-shade); }
.ev-place--first .ev-champ { padding-top: 3.9rem; box-shadow: var(--ev-shade-hi); border-color: rgba(201, 164, 107, .6); background: linear-gradient(180deg, #fffaf0, #fff 55%); }
.ev-champ__avatar { position: absolute; left: 50%; top: 0; translate: -50% -50%; width: 88px; height: 88px; }
.ev-place--first .ev-champ__avatar { width: 112px; height: 112px; }
.ev-avatar { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #e2e8f0; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--ring, #cbd5e1), 0 14px 26px -12px rgba(10, 35, 66, .55); }
.ev-avatar--initial { display: grid; place-items: center; background: linear-gradient(150deg, #123a6b, var(--ev-ink)); color: #f3e9d6; font: 700 2rem/1 var(--heading-font, Georgia, serif); }
.ev-place--first .ev-avatar--initial { font-size: 2.6rem; }
.ev-place--first { --ring: #e0a526; --medal-a: #f6d575; --medal-b: #c9962c; --medal-ink: #3b2a05; }
.ev-place--second { --ring: #94a3b8; --medal-a: #e2e8f0; --medal-b: #94a3b8; --medal-ink: #1e293b; }
.ev-place--third { --ring: #c2703a; --medal-a: #e8a96c; --medal-b: #b3612a; --medal-ink: #3a1d0a; }
.ev-champ__medal { position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(150deg, var(--medal-a), var(--medal-b)); color: var(--medal-ink); border: 3px solid #fff; font-size: .85rem; box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .4); }
.ev-champ__name { margin: 0; color: var(--ev-ink); font: 700 1.15rem/1.25 var(--heading-font, Georgia, serif); text-wrap: balance; }
.ev-place--first .ev-champ__name { font-size: 1.42rem; }
.ev-champ__name a { color: inherit; text-decoration-color: var(--ev-gold); text-underline-offset: 4px; }
.ev-champ__award { margin: .3rem 0 0; color: var(--ev-gold-deep); font-weight: 700; font-size: .92rem; }
.ev-champ__desc { margin: .4rem 0 0; color: var(--ev-muted); font-size: .88rem; line-height: 1.5; }

.ev-place__step { display: grid; justify-items: center; align-content: center; gap: .1rem; border-radius: 14px 14px 0 0; text-align: center; color: var(--medal-ink); background: linear-gradient(165deg, var(--medal-a), var(--medal-b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.ev-place__step i { font-size: .95rem; opacity: .75; }
.ev-place__step b { font: 700 2.7rem/1 var(--heading-font, Georgia, serif); }
.ev-place__step span { font: 700 .68rem/1.2 var(--body-font, Lato, sans-serif); letter-spacing: .16em; text-transform: uppercase; }
.ev-place--first .ev-place__step { height: 8.6rem; }
.ev-place--second .ev-place__step { height: 6.2rem; }
.ev-place--third .ev-place__step { height: 4.8rem; }
.ev-place--third .ev-place__step i, .ev-place--third .ev-place__step span { display: none; }

.ev-honours { margin-top: 2.2rem; }
.ev-honours__title { margin: 0 0 .8rem; color: var(--ev-gold-deep); font: 700 .76rem/1 var(--body-font, Lato, sans-serif); letter-spacing: .2em; text-transform: uppercase; }
.ev-honours__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.ev-honour { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; background: var(--ev-card); border: 1px solid var(--ev-line); border-radius: 16px; }
.ev-honour .ev-avatar { width: 48px; height: 48px; flex: none; border-width: 2px; box-shadow: 0 0 0 2px #cbd5e1; font-size: 1.1rem; }
.ev-honour > div > strong { display: block; color: var(--ev-ink); line-height: 1.25; }
.ev-honour strong a { color: inherit; text-underline-offset: 3px; }
.ev-honour > div > span { display: block; color: var(--ev-gold-deep); font-size: .85rem; font-weight: 700; }   /* the award line, not the avatar's initial */
.ev-celebrate__tools { display: flex; justify-content: center; margin: 1.4rem 0 0; }
.ev-celebrate__tools [hidden] { display: none; }

.ev-sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ev-sponsor a, .ev-sponsor > div { display: grid; gap: .6rem; justify-items: center; align-content: center; min-height: 8.5rem; padding: 1rem; background: var(--ev-card); border: 1px solid var(--ev-line); border-radius: 16px; color: var(--ev-ink); text-decoration: none; transition: border-color .2s, transform .3s var(--ev-ease); }
.ev-sponsor a:hover { border-color: var(--ev-ink); transform: translateY(-3px); }
.ev-sponsor__logo img { display: block; max-width: 100%; max-height: 56px; object-fit: contain; }
.ev-sponsor__name { font-family: var(--heading-font, Georgia, serif); font-weight: 700; }
.ev-sponsor__tier { margin: 0; color: var(--ev-gold-deep); font: 700 .7rem/1 var(--body-font, Lato, sans-serif); letter-spacing: .16em; text-transform: uppercase; }

.ev-gallery { columns: 3 14rem; column-gap: .8rem; margin: 0; padding: 0; list-style: none; }
.ev-gallery li { break-inside: avoid; margin-bottom: .8rem; }
.ev-gallery__item { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #e2e8f0; cursor: zoom-in; }
.ev-gallery__item img { display: block; width: 100%; height: auto; transition: transform .6s var(--ev-ease), filter .3s; }
.ev-gallery__item:hover img { transform: scale(1.04); filter: brightness(.92); }

.ev-lightbox { position: fixed; inset: 0; z-index: 10001; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: 1rem; background: rgba(5, 12, 22, .94); animation: ev-fade .2s ease-out; }
.ev-lightbox[hidden] { display: none; }
.ev-lightbox__figure { display: grid; justify-items: center; gap: .7rem; margin: 0; min-width: 0; }
.ev-lightbox__figure img { max-width: 100%; max-height: 80vh; border-radius: 10px; object-fit: contain; }
.ev-lightbox__figure figcaption { color: #e5e7eb; text-align: center; max-width: 60ch; }
.ev-lightbox__close, .ev-lightbox__nav { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.1rem; cursor: pointer; transition: background-color .2s; }
.ev-lightbox__close:hover, .ev-lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.ev-lightbox__close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.ev-lightbox__count { position: absolute; left: 0; right: 0; bottom: 1rem; margin: 0; text-align: center; color: #cbd5e1; font-size: .9rem; }
body.ev-lock { overflow: hidden; }

/* comments: one prompt or composer, a quiet sort control, the list. The empty state is a small invitation, not a blank box. */
.ev-cprompt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem 1.2rem; margin-bottom: 1.5rem; padding: 1.15rem 1.35rem;
  background: linear-gradient(135deg, #fffaf0, #fff 66%); border: 1px solid rgba(201, 164, 107, .5); border-radius: 18px; box-shadow: var(--ev-shade);
}
.ev-cprompt__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ev-ink); color: var(--ev-gold); font-size: 1.15rem; box-shadow: 0 0 0 4px rgba(201, 164, 107, .22); }
.ev-cprompt__text { margin: 0; color: var(--ev-text); line-height: 1.55; max-width: 44ch; }

.ev-composer { margin-bottom: 1.5rem; padding: .8rem .9rem .75rem; background: #fff; border: 1.5px solid #d4d9e2; border-radius: 18px; box-shadow: var(--ev-shade); transition: border-color .2s, box-shadow .25s; }
.ev-composer:hover { border-color: #aeb7c6; }
.ev-composer:focus-within { border-color: var(--ev-gold); box-shadow: 0 0 0 4px rgba(201, 164, 107, .28), var(--ev-shade); }
.ev-composer textarea { display: block; width: 100%; min-height: 5.4rem; padding: .35rem .45rem; resize: vertical; border: 0; outline: 0; background: transparent; font: 400 1rem/1.55 var(--body-font, Lato, sans-serif); color: var(--ev-text); }
.ev-composer__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; padding-top: .65rem; border-top: 1px solid var(--ev-line); }
.ev-composer__bar .ev-muted { font-size: .84rem; font-variant-numeric: tabular-nums; }
.ev-composer__msg { min-height: 1.2rem; margin: .5rem .2rem 0; font-size: .9rem; font-weight: 700; }
.ev-composer__msg:empty { min-height: 0; margin: 0; }
.ev-composer__msg.is-ok { color: var(--ev-ok); }
.ev-composer__msg.is-err { color: var(--ev-bad); }

.ev-comments__bar { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin: 0 0 .9rem; color: var(--ev-muted); font-size: .86rem; font-weight: 700; }
.ev-comments__bar select {
  min-height: 40px; padding: .3rem 2rem .3rem .95rem; border: 1.5px solid var(--ev-line); border-radius: 999px; background-color: #fff; color: var(--ev-ink); font: 700 .86rem/1 var(--body-font, Lato, sans-serif); cursor: pointer;
  transition: border-color .2s;
}
.ev-comments__bar select:hover { border-color: var(--ev-ink); }
.ev-comments { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.ev-comment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .95rem; padding: 1.05rem 1.2rem; background: var(--ev-card); border: 1px solid var(--ev-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(10, 35, 66, .05); }
.ev-comment.is-pinned { border-color: rgba(201, 164, 107, .85); background: linear-gradient(135deg, #fffaf0, #fff 62%); box-shadow: 0 0 0 3px rgba(201, 164, 107, .2); }
.ev-comment__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ev-ink); color: #f3e9d6; font: 700 1.05rem/1 var(--heading-font, Georgia, serif); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(201, 164, 107, .75); }
.ev-comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.ev-comment__meta strong { color: var(--ev-ink); }
.ev-comment__meta time { color: var(--ev-muted); font-size: .84rem; }
.ev-comment__badge { padding: .12rem .55rem; border-radius: 999px; background: #fef3c7; color: #78350f; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ev-comment__text { margin: .35rem 0 0; color: #1f2937; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.ev-comment__actions { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.ev-link-btn { min-height: 44px; padding: .25rem .8rem; border: 0; border-radius: 8px; background: transparent; color: var(--ev-muted); font: 700 .82rem/1 var(--body-font, Lato, sans-serif); cursor: pointer; }
.ev-link-btn:hover { background: #f1f5f9; color: var(--ev-ink); }
.ev-link-btn--danger:hover { background: var(--ev-bad-bg); color: var(--ev-bad); }
.ev-comment textarea { width: 100%; margin-top: .5rem; padding: .6rem .8rem; border: 1.5px solid #cbd5e1; border-radius: 12px; font: 400 .98rem/1.5 var(--body-font, Lato, sans-serif); }
.ev-comments__more { display: flex; justify-content: center; margin-top: 1.1rem; }
.ev-empty-note {
  display: grid; justify-items: center; gap: .6rem; padding: 2.1rem 1.2rem; text-align: center; color: var(--ev-muted); line-height: 1.5;
  border: 1.5px dashed rgba(10, 35, 66, .2); border-radius: 18px; background: rgba(255, 255, 255, .7);
}
.ev-empty-note::before {                                         /* a speech bubble in gold, drawn as a mask so it needs no icon font */
  content: ""; width: 2.6rem; height: 2.6rem; background: var(--ev-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-8l-5 4v-4H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-8l-5 4v-4H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* related: poster cards. The poster fills the top (a chip says past or upcoming), the date and title sit under it, and an arrow says where it goes. */
.ev-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.ev-mini a {
  position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; color: inherit; text-decoration: none;
  background: var(--ev-card); border: 1px solid var(--ev-line); border-radius: 18px; box-shadow: var(--ev-shade);
  transition: transform .35s var(--ev-ease), box-shadow .35s, border-color .2s;
}
@media (hover: hover) { .ev-mini a:hover { transform: translateY(-4px); box-shadow: var(--ev-shade-hi); border-color: rgba(201, 164, 107, .8); } }
.ev-mini__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ev-ink); }
.ev-mini__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .8s var(--ev-ease); }
@media (hover: hover) { .ev-mini a:hover .ev-mini__media img { transform: scale(1.05); } }
.ev-mini__media::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(to top, rgba(10, 35, 66, .5), transparent); pointer-events: none; }
.ev-mini__media--blank { aspect-ratio: 16 / 9; display: grid; place-items: center; background: radial-gradient(24rem 10rem at 80% 0, rgba(201, 164, 107, .3), transparent 60%), linear-gradient(160deg, #0f2f57, var(--ev-ink) 70%); }
.ev-mini__media--blank .ev-blank__mark { font-size: 1.6rem; }
.ev-mini__tag {
  position: absolute; left: .75rem; top: .75rem; z-index: 1; padding: .28rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ev-ink);
  font: 700 .66rem/1 var(--body-font, Lato, sans-serif); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35);
}
.ev-mini__tag--soon { background: var(--ev-gold); }
.ev-mini__body { position: relative; display: grid; align-content: start; gap: .3rem; padding: .95rem 1.1rem 1.1rem; }
.ev-mini__when { color: var(--ev-gold-deep); font: 700 .72rem/1.2 var(--body-font, Lato, sans-serif); letter-spacing: .14em; text-transform: uppercase; }
.ev-mini__title { color: var(--ev-ink); font: 700 1.1rem/1.3 var(--heading-font, Georgia, serif); text-wrap: balance; overflow-wrap: anywhere; }
.ev-mini__go {
  position: absolute; right: .85rem; top: .75rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgba(201, 164, 107, .2); color: var(--ev-ink); font-size: .72rem;
  transition: background-color .2s, color .2s, transform .3s var(--ev-ease);
}
@media (hover: hover) { .ev-mini a:hover .ev-mini__go { background: var(--ev-ink); color: var(--ev-gold); transform: translateX(3px); } }

/* ---------- Tablet and below ---------- */
@media (max-width: 960px) {
  .ev-vhero { padding-bottom: 5.5rem; }
  .ev-vhero__cta { display: none; }   /* the ticket sits right below the hero on small screens, and the sticky bar follows */
  .ev-vhero__grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }   /* minmax(0, …): three fact tiles at 11.5rem must not push the title wider than the screen */
  .ev-vhero__poster { justify-self: start; }
  .ev-vhero__poster img { max-width: min(17rem, 80vw); max-height: 22rem; }
  .ev-vhero__poster--blank { display: none; }
  .ev-vlayout { grid-template-columns: 1fr; gap: 0; }
  .ev-vside { position: static; order: -1; margin-top: -3.5rem; }
  .ev-snav { top: var(--ev-hdr); }
  .ev-page.has-bar { padding-bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); }
  .ev-vbar {
    position: fixed; inset: auto 0 0 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--ev-line); box-shadow: 0 -12px 30px -14px rgba(10, 35, 66, .35);
    transform: translateY(0); transition: transform .3s var(--ev-ease);
  }
  .ev-vbar.is-hidden { transform: translateY(110%); pointer-events: none; visibility: hidden; transition: transform .3s var(--ev-ease), visibility 0s .3s; }   /* out of the tab order and the accessibility tree while hidden */
  .ev-vbar__info { display: grid; line-height: 1.25; min-width: 0; }
  .ev-vbar__info strong { color: var(--ev-ink); }
  .ev-vbar__info span { color: var(--ev-muted); font-size: .82rem; }
  .ev-vbar__action { flex: 0 1 12rem; }
  body:has(.ev-vbar:not(.is-hidden)) #backToTopBtn { bottom: 5.8rem !important; }
}
@media (max-width: 720px) {
  .ev-celebrate { padding-top: 0; }
  .ev-podium { flex-direction: column; align-items: stretch; gap: 1rem; }
  .ev-place, .ev-place--first { order: 0; max-width: none; flex-direction: row-reverse; flex-grow: 1; }
  .ev-place__people, .ev-place--first .ev-place__people { flex: 1; gap: .8rem; padding: 0; min-width: 0; }
  .ev-champ, .ev-place--first .ev-champ { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: .1rem 1rem; padding: .9rem 1rem; text-align: left; border-radius: 0 18px 18px 0; }
  .ev-champ__avatar, .ev-place--first .ev-champ__avatar { position: relative; left: auto; top: auto; translate: none; width: 64px; height: 64px; grid-row: 1 / 5; }
  .ev-place--first .ev-avatar--initial { font-size: 1.8rem; }
  .ev-champ__medal { width: 26px; height: 26px; font-size: .68rem; border-width: 2px; }
  .ev-champ__name, .ev-place--first .ev-champ__name { font-size: 1.1rem; }
  .ev-place__step, .ev-place--first .ev-place__step, .ev-place--second .ev-place__step, .ev-place--third .ev-place__step { flex: none; width: 3.4rem; height: auto; align-self: stretch; border-radius: 18px 0 0 18px; }
  .ev-place__step i, .ev-place__step span { display: none; }
  .ev-place__step b { font-size: 1.8rem; }
}
@media (max-width: 560px) {
  .ev-cprompt { grid-template-columns: auto minmax(0, 1fr); } .ev-cprompt .ev-btn { grid-column: 1 / -1; }
  .ev-related { grid-template-columns: 1fr; gap: .9rem; }                                  /* on a phone a related event is a short row: poster left, words right */
  .ev-mini a { grid-template-rows: none; grid-template-columns: 9.5rem minmax(0, 1fr); }
  .ev-mini__media, .ev-mini__media--blank { aspect-ratio: auto; min-height: 8.5rem; }
  .ev-mini__media::after { display: none; }
  .ev-mini__tag { left: .5rem; top: .5rem; padding: .22rem .5rem; font-size: .6rem; }
  .ev-mini__body { align-content: center; padding: .8rem 3rem .8rem 1rem; }
  .ev-mini__go { top: auto; bottom: .75rem; }
}
@media (max-width: 640px) {
  .ev-vhero { padding-top: .6rem; }
  .ev-crumbs ol { margin-bottom: .3rem; }
  .ev-crumbs a, .ev-crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }   /* comfortable tap targets for the trail */
  .ev-timeline__item { grid-template-columns: 1fr; padding-left: 1.6rem; }
  .ev-timeline__item::before { left: .35rem; top: .5rem; }
  .ev-timeline__item::after { left: 0; top: .35rem; }
  .ev-timeline__time { text-align: left; grid-auto-flow: column; justify-content: start; gap: .6rem; }
  .ev-timeline__body { padding-left: 0; margin-top: .2rem; }
  .ev-lightbox { grid-template-columns: 1fr; padding: .5rem; }
  .ev-lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; }
  .ev-lightbox__nav--prev { left: .5rem; }
  .ev-lightbox__nav--next { right: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-snav a, .ev-snav a::after, .ev-composer, .ev-mini a, .ev-mini__media img, .ev-mini__go { transition: none !important; }
  .ev-mini a:hover, .ev-mini a:hover .ev-mini__go, .ev-mini a:hover .ev-mini__media img { transform: none !important; }
  .ev-vbar, .ev-lightbox, .ev-confetti { transition: none !important; animation: none !important; }
  .ev-confetti { display: none; }
}

/* Plain statement of who organises the event (and where), printed in the page text so it is not only in markup. */
.ev-organiser { margin: 1rem 0 0; padding: .75rem 1rem; border-left: 3px solid var(--ev-gold, #c9a46b); background: rgba(10, 35, 66, .04); color: var(--ev-muted, #4f5b73); font-size: .95rem; line-height: 1.55; }
.ev-organiser strong { color: var(--ev-navy, #0a2342); }

/* ---------- Mode chip (in person / online / hybrid) and the cancelled poster ---------- */
.ev-vhero__mode { display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .75rem; border: 1px solid rgba(255, 255, 255, .38); border-radius: 999px; color: #fff; font-size: .8rem; font-weight: 700; }
.ev-vhero__mode i { color: var(--ev-gold); font-size: .78rem; }
.ev-vhero__poster.is-cancelled img { filter: grayscale(.75) brightness(.72); }
.ev-vhero__poster.is-cancelled .ev-plate { opacity: .9; }
.ev-vhero__poster.is-cancelled .ev-stamp__word { font-size: 2rem; }
@media (max-width: 960px) { .ev-vhero__poster.is-cancelled .ev-stamp__word { font-size: 1.5rem; } }
