/* Dubai Exiles: events.css (templates/events/event.html, one template for every club event).
   Tokens from core.css only. Mobile-first; breakpoints 600, 880, 1080. Every animation is
   inside prefers-reduced-motion:no-preference, and nothing here changes layout after load:
   the countdown and its static date share one grid cell, so swapping them never moves the page. */

/* ------------------------------------------------------------------ draft */
.ev-draft{background:var(--gold);color:var(--ink);--focus:var(--ink)}
.ev-draft__inner{display:flex;align-items:flex-start;gap:12px;padding-block:10px;font-size:.92rem;font-weight:500;line-height:1.45}
.ev-draft__tag{flex:none;padding:5px 9px 4px;background:var(--ink);color:var(--gold);font-family:var(--ff-disp);font-weight:800;font-size:.8rem;line-height:1;letter-spacing:.16em;text-transform:uppercase}

/* ------------------------------------------------------------------- hero */
.ev-hero{--win:236px;position:relative;isolation:isolate;overflow:hidden;background:var(--ink);color:var(--sand);
  --heading:var(--white);--fg:var(--sand);--fg-strong:var(--sand)}
.ev-hero__media{position:absolute;inset:0 0 auto 0;height:var(--win);z-index:-2;overflow:hidden}
.ev-hero__media picture{display:block;height:100%}
.ev-hero__img{width:100%;height:100%;object-fit:cover;object-position:var(--pos,50% 50%)}
/* the photo fades into ink under the copy; deep red only as a glow in a gradient (brand rule) */
.ev-hero__media::after{content:"";position:absolute;inset:0;background:
  radial-gradient(70% 120px at 100% 0%,rgba(163,15,28,.45),rgba(163,15,28,0)),
  linear-gradient(180deg,rgba(18,18,18,.25) 0,rgba(18,18,18,0) 70px,rgba(18,18,18,.55) calc(var(--win) - 96px),rgba(18,18,18,.92) calc(var(--win) - 40px),var(--ink) 100%)}
.ev-hero__inner{padding-top:calc(var(--win) - 52px);padding-bottom:var(--s5)}
.ev-hero--plain{--win:0px;background:
  radial-gradient(circle at 92% 0%,rgba(163,15,28,.5),rgba(163,15,28,0) 52%),
  linear-gradient(115deg,var(--ink) 0%,var(--ink-2) 58%,#2a1215 100%)}
.ev-hero--plain .ev-hero__inner{padding-top:72px}
.ev-hero .crumbs{position:absolute;top:12px;left:var(--gutter);z-index:2;max-width:calc(100% - 2 * var(--gutter) - 92px)}
.ev-hero .crumbs a{color:var(--white)}
@supports selector(:has(a)){@media (max-width:879px){
  .ev-hero:not(.ev-hero--plain) .crumbs__up a{min-height:var(--tap);padding:0 14px 0 12px;background:rgba(18,18,18,.78);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
}}
.ev-hero__badge{position:absolute;top:10px;right:var(--gutter);z-index:1;width:76px;filter:drop-shadow(0 2px 10px rgba(0,0,0,.5))}
.ev-hero__badge img{width:100%;height:auto}
.ev-hero__copy{position:relative;display:flex;flex-direction:column;align-items:flex-start}
.ev-hero__copy>.eyebrow{margin-bottom:var(--s2)}
.ev-pill{display:inline-flex;align-items:center;gap:8px;padding:9px 14px 8px 12px;background:var(--red);color:var(--white);
  font-family:var(--ff-disp);font-weight:800;font-size:.95rem;line-height:1.1;letter-spacing:.1em;text-transform:uppercase;
  clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px)}
.ev-pill .icon{width:16px;height:16px}
.ev-hero__title{margin-top:var(--s2);font-family:var(--ff-disp);font-weight:900;font-size:clamp(3.4rem,17vw,4.75rem);line-height:.88;letter-spacing:-.012em;color:var(--white);text-transform:uppercase;text-wrap:balance}
.ev-hero__title .accent{display:inline;color:var(--red-bright)}
.ev-page--ball .ev-hero__title{font-size:clamp(2.6rem,12vw,3.6rem)}
.ev-hero__lead{margin-top:var(--s3);max-width:52ch;font-size:1.05rem;line-height:1.5;color:var(--sand)}

/* countdown: static date and live cells stacked in one cell */
.ev-count{display:grid;margin-top:var(--s4);width:100%;max-width:420px}
.ev-count>*{grid-area:1/1;min-width:0}
.ev-count__k{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-family:var(--ff-disp);font-weight:700;font-size:.8rem;line-height:1;letter-spacing:.2em;text-transform:uppercase;color:var(--gold)}
.ev-count__static{align-self:center;display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-left:3px solid var(--red);background:rgba(255,255,255,.04);font-size:1rem;line-height:1.45;color:var(--sand)}
.ev-count__static .ev-count__k{margin-bottom:6px}
.ev-count__static b{font-family:var(--ff-disp);font-weight:800;font-size:1.35rem;line-height:1.1;letter-spacing:.02em;text-transform:uppercase;color:var(--white)}
.ev-count__togo:not(:empty){margin-top:2px;font-weight:600;color:var(--sand)}
.ev-count__cells{visibility:hidden}
.js .ev-count__cells{visibility:visible}
.js .ev-count__static{visibility:hidden}
.js .is-live .ev-count__static,.js .is-over .ev-count__static,.ev-count.is-done .ev-count__static{visibility:visible}
.js .is-live .ev-count__cells,.js .is-over .ev-count__cells{visibility:hidden}
@media (prefers-reduced-motion:reduce){.js .ev-count__cells{visibility:hidden}.js .ev-count__static{visibility:visible}}
.ev-cells{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ev-cell{display:flex;flex-direction:column;padding:10px 12px 10px;background:rgba(255,255,255,.05);border:1px solid var(--line-strong);border-top:3px solid var(--red);overflow:hidden}
.ev-cell__n{display:block;font-family:var(--ff-disp);font-weight:900;font-size:2.6rem;line-height:1;color:var(--white);font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
.ev-cell__l{margin-top:6px;font-family:var(--ff-disp);font-weight:700;font-size:.75rem;line-height:1;letter-spacing:.16em;text-transform:uppercase;color:var(--steel-lt)}

/* status and actions */
.ev-actions{display:flex;flex-direction:column;gap:12px;width:100%;margin-top:var(--s4)}
.ev-status{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;font-family:var(--ff-disp);font-weight:700;font-size:.88rem;line-height:1.2;letter-spacing:.14em;text-transform:uppercase;color:var(--white)}
.ev-status__dot{flex:none;display:inline-block;width:10px;height:10px;margin-right:10px;border-radius:50%;background:var(--gold)}
.ev-status--closed .ev-status__dot,.ev-status--full .ev-status__dot,.ev-status--over .ev-status__dot{background:var(--steel)}
.ev-status__extra{margin-left:.45em;color:var(--steel-lt)}
.ev-actions__btns{gap:8px}

@media (max-width:599px){
  .ev-actions__btns .btn{flex:1 1 auto;min-height:48px;padding:12px 10px;font-size:.92rem;letter-spacing:.05em;white-space:nowrap}
  .ev-actions__btns .btn .icon{display:none}
}
@media (min-width:600px){
  .ev-hero{--win:340px}
  .ev-hero__badge{width:104px;top:14px}
  .ev-cell__n{font-size:3rem}
}
/* a laptop's short first screen (650 to 800px tall): less padding and a title sized by height, so the
   main button ("Enter now") is on it. The rules follow the desktop block below. */
/* desktop: copy on the left, the photo as a tall panel on the right that fades into ink */
@media (min-width:880px){
  .ev-hero{display:flex;align-items:center;min-height:clamp(600px,74vh,780px)}
  .ev-hero__media{inset:0 0 0 auto;width:54%;height:auto;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 26%);mask-image:linear-gradient(90deg,transparent 0,#000 26%)}
  .ev-hero__img{object-position:var(--pos-lg,50% 40%)}
  .ev-hero__media::after{background:
    radial-gradient(60% 60% at 100% 100%,rgba(163,15,28,.55),rgba(163,15,28,0) 70%),
    linear-gradient(180deg,rgba(18,18,18,.35) 0,rgba(18,18,18,0) 22%,rgba(18,18,18,0) 70%,rgba(18,18,18,.4) 100%)}
  .ev-hero__inner{width:100%;padding-block:96px 72px}
  .ev-hero--plain .ev-hero__inner{padding-top:96px}
  .ev-hero .crumbs{top:22px;left:max(var(--gutter),calc((100% - var(--maxw)) / 2 + var(--gutter)))}
  .ev-hero__copy{max-width:min(600px,calc(46vw - var(--gutter)))}
  .ev-hero__badge{top:auto;bottom:32px;right:max(var(--gutter),calc((100% - var(--maxw)) / 2 + var(--gutter)));width:132px}
  .ev-hero--plain .ev-hero__badge{top:50%;bottom:auto;right:max(var(--gutter),calc((100% - var(--maxw)) / 2 + 6%));width:min(300px,26vw);transform:translateY(-50%);filter:drop-shadow(0 0 40px rgba(163,15,28,.45))}
  .ev-hero__title{font-size:clamp(4.5rem,7.6vw,7.25rem)}
  .ev-page--ball .ev-hero__title{font-size:clamp(3.5rem,5.6vw,5.25rem)}
  .ev-hero__lead{font-size:1.2rem}
  .ev-count{max-width:460px;margin-top:var(--s5)}
  .ev-cell{padding:12px 16px}
  .ev-cell__n{font-size:3.6rem}
  .ev-actions{margin-top:var(--s5)}
}
@media (min-width:880px) and (max-height:860px){
  .ev-hero{min-height:0}
  .ev-hero__inner{padding-block:64px 40px}
  .ev-hero__title{font-size:clamp(3.4rem,11vh,6rem)}
  .ev-page--ball .ev-hero__title{font-size:clamp(3rem,8.5vh,5.25rem)}
  .ev-count,.ev-actions{margin-top:var(--s4)}
}
@media (min-width:880px) and (max-height:700px){   /* the shortest laptops: 1366 by 768 with the browser's bars */
  .ev-hero__inner{padding-block:52px 28px}
  .ev-hero__title{font-size:clamp(3.2rem,9.5vh,4.5rem)}
  .ev-count,.ev-actions{margin-top:var(--s3)}
  .ev-cell{padding:8px 14px}
  .ev-cell__n{font-size:2.8rem}
}

/* ------------------------------------------------------------- facts band */
.ev-facts{background:var(--ink-2);border-block:1px solid var(--line);color:var(--steel-lt)}
.ev-facts__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-block:0}
.ev-fact{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0;padding:16px 12px 16px 0;border-bottom:1px solid var(--line)}
.ev-fact:nth-child(even){padding-left:14px;border-left:1px solid var(--line)}
.ev-fact:last-child:nth-child(odd){grid-column:1/-1}
.ev-fact:last-child,.ev-fact:nth-last-child(2):nth-child(odd){border-bottom:0}
.ev-fact dt{font-family:var(--ff-disp);font-weight:700;font-size:.78rem;line-height:1;letter-spacing:.18em;text-transform:uppercase;color:var(--steel-lt)}
.ev-fact dt::before{content:"";display:block;width:18px;height:2px;margin-bottom:8px;background:var(--red-bright)}
.ev-fact dd{margin:0;font-family:var(--ff-disp);font-weight:800;font-size:1.3rem;line-height:1.1;letter-spacing:.01em;text-transform:uppercase;color:var(--white);overflow-wrap:anywhere}
.ev-fact dd small{display:block;margin-top:3px;font-family:var(--ff-body);font-weight:500;font-size:.85rem;letter-spacing:0;text-transform:none;color:var(--steel-lt)}
@media (min-width:880px){
  .ev-facts__list{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
  .ev-fact,.ev-fact:nth-child(even){padding:26px 20px;border-bottom:0;border-left:1px solid var(--line)}
  .ev-fact:first-child{padding-left:0;border-left:0}
  .ev-fact:last-child:nth-child(odd){grid-column:auto}
  .ev-fact dd{font-size:1.55rem}
}

/* --------------------------------------------------------- before the day */
.ev-before__grid{display:grid;gap:var(--s3);grid-template-columns:minmax(0,1fr)}
.ev-card{display:flex;flex-direction:column;background:var(--card-bg);border:1px solid var(--line);overflow:hidden}
.ev-card__media{position:relative;aspect-ratio:3/2;overflow:hidden;background:var(--sand)}
.ev-card__media picture{display:block;height:100%}
.ev-card__img{width:100%;height:100%;object-fit:cover;object-position:var(--pos,50% 50%);transition:transform .8s var(--ease)}
.ev-card__body{display:flex;flex-direction:column;gap:var(--s2);padding:var(--s4)}
.ev-card__k{color:var(--red)}
.ev-card__link{align-self:flex-start}
.ev-mini{display:grid;margin:var(--s1) 0 0}
.ev-mini>div{display:grid;grid-template-columns:96px minmax(0,1fr);gap:var(--s3);padding:10px 0;border-top:1px solid var(--line)}
.ev-mini>div:last-child{border-bottom:1px solid var(--line)}
.ev-mini dt{font-family:var(--ff-disp);font-weight:700;font-size:.82rem;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-muted);padding-top:2px}
.ev-mini dd{margin:0;font-weight:600;color:var(--ink)}
.ev-checks{display:grid;gap:10px;margin-top:var(--s1)}
.ev-checks li{display:flex;align-items:flex-start;gap:10px;line-height:1.45;color:var(--ink);font-weight:500}
.ev-checks .icon{flex:none;margin-top:2px;padding:2px;background:var(--red);color:var(--white);border-radius:50%}
.ev-credit{margin-top:var(--s3);color:var(--fg-muted)}
@media (min-width:600px){
  .ev-before__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ev-card--venue,.ev-before__grid>.ev-card:last-child:nth-child(even){grid-column:1/-1}
}
@media (min-width:880px){
  .ev-before__grid{gap:var(--s4)}
  .ev-card--venue:not(.ev-card--noimg){display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
  .ev-card--venue .ev-card__media{aspect-ratio:auto;min-height:380px}
  .ev-card--venue .ev-card__body{justify-content:center;gap:var(--s3);padding:var(--s5) var(--s6)}
  .ev-card__body{padding:var(--s5)}
  .ev-before__grid>.ev-card:last-child:nth-child(even) .ev-checks{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s4)}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.ev-card--venue:hover .ev-card__img{transform:scale(1.03)}}

/* ----------------------------------------------------------- how to enter */
/* One bone section holds the details (.ev-main__body), the steps (.ev-enter) and the entry box
   (.ev-main__aside). Phones: one column, the box after the steps. 880px: the steps and the box side
   by side under the details. 1080px: the box is a column beside the details and the steps, holds the
   key facts (the facts band under the hero steps aside while it shows) and sticks while it fits. */
.ev-main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"body" "enter" "aside";column-gap:var(--s7)}
.ev-main__body{grid-area:body;min-width:0}
.ev-enter{grid-area:enter;min-width:0;margin-top:var(--s6);padding-top:var(--s5);border-top:1px solid var(--line)}
.ev-main__aside{grid-area:aside;min-width:0;margin-top:var(--s5)}
.ev-steps{display:grid;gap:0;counter-reset:none}
.ev-step{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);gap:var(--s3);padding-bottom:var(--s4)}
.ev-step:not(:last-child)::before{content:"";position:absolute;left:23px;top:52px;bottom:4px;width:2px;background:linear-gradient(var(--red),rgba(209,26,42,.15))}
.ev-step__n{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;background:var(--red);color:var(--white);font-family:var(--ff-disp);font-weight:900;font-size:1.6rem;line-height:1;clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px)}
.ev-step__body{padding-top:4px}
.ev-step__body h3{color:var(--heading);font-size:1.3rem;letter-spacing:.03em}
.ev-step__body p{margin-top:6px;color:var(--fg-muted)}
.ev-step__body a{color:var(--heading);font-weight:600;text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.2em;overflow-wrap:anywhere}
.ev-step:last-child{padding-bottom:0}
.ev-enter__note{display:flex;align-items:center;gap:8px;color:var(--ink);font-weight:600}
.ev-enter__note .icon{color:var(--red)}

/* the entry box: an ink card on bone, so it takes the dark tokens back */
.ev-box{--bg:var(--ink);--fg:var(--steel-lt);--fg-strong:var(--sand);--fg-muted:var(--steel);--heading:var(--white);--eyebrow:var(--bone);
  --accent-text:var(--gold);--line:rgba(255,255,255,.10);--line-strong:rgba(255,255,255,.18);--card-bg:var(--ink-2);--field-bg:var(--ink-2);
  --field-line:rgba(255,255,255,.36);--error-text:#FF8A8A;--focus:var(--gold);--tint:rgba(255,255,255,.06);
  display:flex;flex-direction:column;gap:var(--s2);padding:var(--s4);background:var(--ink);color:var(--fg);border-top:4px solid var(--red);
  box-shadow:0 24px 48px -24px rgba(18,18,18,.55)}
.surface-bone .ev-box .btn--ghost{--btn-ring:rgba(255,255,255,.45);--btn-bg-h:rgba(255,255,255,.06);--btn-fg-h:var(--white)}
.surface-bone .ev-box .btn--ghost:active{--btn-bg:rgba(255,255,255,.1)}
@media (hover:hover){.surface-bone .ev-box .btn--ghost:hover{--btn-ring:var(--red-bright)}}
.ev-box__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s1) var(--s3);padding-bottom:var(--s3);border-bottom:1px solid var(--line)}
.ev-box__price{color:var(--steel-lt);font-size:.95rem;line-height:1.2}
.ev-box__price b{margin-right:4px;font-family:var(--ff-disp);font-weight:800;font-size:1.75rem;line-height:1;letter-spacing:.01em;color:var(--white)}
.ev-box__facts{display:none}
.ev-box__k{margin-top:var(--s1);color:var(--gold)}
.ev-mail__addr{font-family:var(--ff-disp);font-weight:800;font-size:clamp(1.45rem,6.4vw,2.1rem);line-height:1.1;letter-spacing:.005em;overflow-wrap:anywhere}
.ev-mail__addr a{display:inline-block;padding-block:10px;color:var(--white);text-decoration:underline;text-decoration-color:var(--red-bright);text-decoration-thickness:2px;text-underline-offset:.16em}
@media (hover:hover){.ev-mail__addr a:hover{color:var(--gold)}}
.ev-mail__ask{color:var(--sand)}
.ev-mail__btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:var(--s1)}
.ev-mail__btns .btn{flex:1 1 auto}
.ev-mail__btns [data-copy].is-copied{--btn-bg:var(--gold);--btn-fg:var(--ink);--btn-ring:var(--gold);--btn-bg-h:var(--gold);--btn-fg-h:var(--ink)}
.ev-mail__note{color:var(--steel-lt)}
.ev-box--form .ev-form{margin-top:var(--s1)}
.ev-form .field__hint{display:inline;text-transform:none;letter-spacing:0;font-family:var(--ff-body);font-weight:500}
.ev-form__row{display:grid;gap:var(--s4)}
@media (min-width:600px){.ev-form__row{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* the event's own entry form (templates/events/_entry_form.html): a golfer to a row, name then
   handicap. Its sending, sent and "not switched on" states come from join.js, whose own styles are
   in join.css (not loaded here), so they are repeated for the box. */
.ev-form--entry .textarea{min-height:96px}
.ev-golfers{gap:var(--s3)}
.ev-golfers legend{padding:0;margin-bottom:var(--s3)}
.ev-golfer{display:grid;grid-template-columns:minmax(0,1fr) 6.5rem;gap:var(--s2);align-items:start}
.ev-form__pay{color:var(--sand)}
.ev-form__off{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-left:3px solid var(--gold);background:var(--tint);color:var(--fg-strong);font-size:.92rem;line-height:1.45}
.ev-form__off svg{flex:none;margin-top:2px;color:var(--gold)}
.ev-form__off a{color:var(--heading);text-decoration-color:var(--red-bright);text-decoration-thickness:2px;overflow-wrap:anywhere}
.ev-form__alt a{overflow-wrap:anywhere}
.ev-honey{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ev-form .join-offline__actions{margin-top:var(--s3)}
.ev-form[aria-busy="true"] [type="submit"]{opacity:.7;cursor:progress}
.ev-box .join-sent{display:grid;gap:10px;padding:var(--s4);background:var(--card-bg);border:1px solid var(--line);border-left:4px solid var(--gold)}
.ev-box .join-sent:focus{outline:3px solid var(--gold);outline-offset:2px}
.ev-box .join-sent__title{font-family:var(--ff-disp);font-weight:800;font-size:1.5rem;line-height:1.05;text-transform:uppercase;color:var(--heading)}
@media (min-width:880px){
  .ev-main--box{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);grid-template-areas:"body body" "enter aside";align-items:start}
  .ev-main--box .ev-main__aside{margin-top:var(--s6)}
  .ev-box{padding:var(--s5)}
}
@media (min-width:1080px){
  .ev-main--box{grid-template-columns:minmax(0,1fr) minmax(340px,400px);grid-template-rows:auto 1fr;grid-template-areas:"body aside" "enter aside"}
  .ev-main--box .ev-main__aside{align-self:stretch;margin-top:0}
  .ev-box__facts{display:grid;margin:0}
  .ev-box__facts>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:var(--s2);padding:10px 0;border-bottom:1px solid var(--line)}
  .ev-box__facts dt{padding-top:3px;font-family:var(--ff-disp);font-weight:700;font-size:.78rem;line-height:1.2;letter-spacing:.16em;text-transform:uppercase;color:var(--steel-lt)}
  .ev-box__facts dd{margin:0;font-weight:600;line-height:1.4;color:var(--white)}
  .ev-mail__addr{font-size:1.7rem}
  .ev-box--form .ev-form__row{grid-template-columns:minmax(0,1fr)}
  /* the facts are in the box now: no facts band under the hero, no repeat of them on the venue card */
  .ev-page:has(.ev-main__aside:not([hidden])) .ev-facts,
  .ev-main--box:has(>.ev-main__aside:not([hidden])) .ev-card--venue .ev-mini{display:none}
  .ev-main--box:has(>.ev-main__aside:not([hidden])) .ev-card--noimg .ev-card__body{display:flex}
  .ev-main--box:has(>.ev-main__aside:not([hidden])) .ev-card--noimg .ev-card__link{align-self:flex-start}
  .ev-main--box .ev-card--venue .ev-card__media{min-height:340px}
  /* on the day, once the entry box has gone (events.js), the details take the full width again */
  .ev-main--box:has(>.ev-main__aside[hidden]){grid-template-columns:minmax(0,1fr);grid-template-areas:"body"}
}
/* sticky beside the details only where the whole box fits under the header */
@media (min-width:1080px) and (min-height:760px){.ev-mail{position:sticky;top:calc(var(--header-h) + var(--s4))}}
/* the entry form is taller than the steps beside it, so there the steps are the ones that stay in view */
@media (min-width:880px) and (min-height:600px){.ev-main--form .ev-enter{position:sticky;top:var(--header-h);align-self:start}}

/* --------------------------------------------------------------- sponsors */
.ev-spons__head{max-width:760px;margin-bottom:var(--s5)}
.ev-spons__head .section-head{margin-bottom:var(--s3)}
.ev-spons__thanks a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.2em}
.ev-spons__k{margin-bottom:var(--s2);color:var(--fg-muted)}
.ev-spons__lead{max-width:340px;margin-bottom:var(--s5)}
.ev-spons__lead .logo-tile__frame{--pad:24px;aspect-ratio:2/1;border-top:3px solid var(--red)}
@media (min-width:1080px){.ev-spons__lead .logo-tile__frame{--pad:32px;aspect-ratio:4/3}}
.ev-spons__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ev-spons__grid .logo-tile__frame{--pad:10px}
@media (min-width:600px){.ev-spons__grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--s3)}.ev-spons__grid .logo-tile__frame{--pad:16px}}
@media (min-width:1080px){
  .ev-spons .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);grid-template-areas:"head head" "lead k" "lead grid";column-gap:var(--s6);align-items:start}
  .ev-spons__head{grid-area:head}
  .ev-spons__lead{grid-area:lead;max-width:none;margin:0}
  .ev-spons .wrap>.ev-spons__k{grid-area:k}
  .ev-spons__grid{grid-area:grid}
}

/* --------------------------------------------------- add to calendar, share */
.ev-save{background:var(--ink);border-top:1px solid var(--line)}
.ev-save__grid{display:grid;gap:var(--s5);grid-template-columns:minmax(0,1fr)}
.ev-save__col{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s2);padding-top:var(--s3);border-top:3px solid var(--red)}
.ev-save__k{display:flex;align-items:center;gap:8px;color:var(--gold)}
.ev-save__text{color:var(--sand);max-width:46ch}
.ev-save__col .btn-row{margin-top:var(--s1);gap:8px}
.ev-save .share__label{display:none}
.ev-save__native+.share{margin-top:var(--s1)}
@media (min-width:880px){.ev-save__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s7)}}

/* ---------------------------------------------------------------- tagline */
.ev-tag{position:relative;isolation:isolate;overflow:hidden;padding-block:var(--s6);background:var(--ink);border-top:1px solid var(--line)}
/* a soft corner glow (deep red only in a gradient); the wide ellipse and middle stop keep its edge from reading as a hard band on phones */
.ev-tag::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(120% 100% at 100% 100%,rgba(163,15,28,.36) 0%,rgba(163,15,28,.22) 22%,rgba(163,15,28,.11) 46%,rgba(163,15,28,.04) 70%,rgba(163,15,28,0) 100%)}
.ev-tag__inner{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"crest sixty" "line line";align-items:center;gap:var(--s4)}
.ev-tag__crest{grid-area:crest;width:56px;height:auto}
.ev-tag__line{grid-area:line;font-size:clamp(2.6rem,12vw,4.5rem)}
.ev-tag__sixty{grid-area:sixty;justify-self:end;width:84px}
.ev-tag__sixty img{width:100%;height:auto}
@media (min-width:880px){
  .ev-tag{padding-block:var(--s7)}
  .ev-tag__inner{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"crest line sixty";gap:var(--s6)}
  .ev-tag__crest{width:96px}
  .ev-tag__line{font-size:clamp(3.5rem,6vw,5.5rem)}
  .ev-tag__sixty{width:150px}
}

/* ------------------------------------------------------ phone action bar */
.ev-dock{position:sticky;bottom:0;z-index:40;padding:10px var(--gutter) calc(10px + env(safe-area-inset-bottom,0px));background:rgba(18,18,18,.95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--line)}
.ev-dock__inner{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);max-width:var(--maxw);margin-inline:auto}
.ev-dock__t{display:flex;flex-direction:column;gap:2px;min-width:0;font-family:var(--ff-disp);font-weight:700;font-size:.82rem;line-height:1.2;letter-spacing:.1em;text-transform:uppercase;color:var(--sand)}
.ev-dock__t>span:last-child{display:flex;align-items:center}
.ev-dock__t .ev-status__dot{width:8px;height:8px;margin-right:8px}
.ev-dock__k{font-weight:800;font-size:1.02rem;letter-spacing:.04em;color:var(--white);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev-dock .btn{flex:none;padding-inline:18px}
/* events.js: out of the way while the hero buttons or the entry section show. `translate` composes with
   the scroll-driven `transform` animation below; visibility keeps the hidden bar out of the tab order. */
.ev-dock{transition:translate .3s var(--ease),visibility 0s linear 0s}
.ev-dock.is-away{translate:0 110%;visibility:hidden;transition:translate .3s var(--ease),visibility 0s linear .3s}
html:has(.ev-dock){scroll-padding-bottom:84px}
@media (min-width:880px){.ev-dock{display:none}html:has(.ev-dock){scroll-padding-bottom:0}}
@media print{.ev-dock,.ev-save,.ev-hero__media{display:none}}

/* ----------------------------------------------------------------- motion */
@media (prefers-reduced-motion:no-preference){
  .ev-hero__img{animation:ev-drift 22s cubic-bezier(.2,.6,.2,1) both}
  .ev-hero__copy>*{animation:ev-rise .6s var(--ease) both}
  .ev-hero__copy>:nth-child(2){animation-delay:.06s}
  .ev-hero__copy>:nth-child(3){animation-delay:.12s}
  .ev-hero__copy>:nth-child(4){animation-delay:.18s}
  .ev-hero__copy>:nth-child(5){animation-delay:.24s}
  .ev-hero__copy>:nth-child(n+6){animation-delay:.3s}
  /* attention pings stop after a few beats (WCAG 2.2.2; --pulse-count is core.css's token) */
  .ev-status--open .ev-status__dot,.ev-status--interest .ev-status__dot{animation:ev-ping 2.4s var(--ease) both;animation-iteration-count:var(--pulse-count, 3)}
  .ev-count__cells .ev-count__k::before{animation:ev-ping-red 2.4s var(--ease) both;animation-iteration-count:var(--pulse-count, 3)}
  .ev-cell__n.is-tick{animation:ev-tick .45s var(--ease)}
  @supports (animation-timeline:scroll()){
    .ev-dock{animation:ev-dock-in linear both;animation-timeline:scroll(root);animation-range:160px 420px}
  }
}
.ev-count__cells .ev-count__k::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--red-bright)}
@keyframes ev-drift{from{transform:scale(1.08)}to{transform:none}}
@keyframes ev-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes ev-ping{0%{box-shadow:0 0 0 0 rgba(216,180,90,.55)}70%,100%{box-shadow:0 0 0 7px rgba(216,180,90,0)}}
@keyframes ev-ping-red{0%{box-shadow:0 0 0 0 rgba(238,28,37,.55)}70%,100%{box-shadow:0 0 0 7px rgba(238,28,37,0)}}
@keyframes ev-tick{from{opacity:0;transform:translateY(-40%)}to{opacity:1;transform:none}}
@keyframes ev-dock-in{from{transform:translateY(100%)}to{transform:none}}
/* a venue card with no photo (the Ball): name and directions on the left, the details on the right */
@media (min-width:880px){
  .ev-card--noimg .ev-card__body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);grid-template-rows:auto auto 1fr;column-gap:var(--s7);row-gap:var(--s2)}
  .ev-card--noimg .ev-card__k{grid-area:1/1}
  .ev-card--noimg .ev-card__body>.t-h3{grid-area:2/1}
  .ev-card--noimg .ev-card__link{grid-area:3/1;align-self:end}
  .ev-card--noimg .ev-mini{grid-area:1/2/4/3;margin:0}
}
