/* Order of the day (core/events/180, fork of core/events/130), INV-19 After Dark · Luxe (A2695, D-400; board screen A3): ORDER of the DAY over a mood photo of
   the couple's (gallery.0) that fades to night as the programme runs on; one hairline thread with a candle-coloured dot at each stop; the start time big in
   Bodoni with a script "pm"; the event in spaced capitals, the venue in italic, quiet Map and Add to calendar links, the wait to the next stop. On two or more
   days a strip of dates is pinned. A day stays one whole line at every size; on a laptop the title stands on one side and the programme on the other. */
.ev180 { position: relative; isolation: isolate; padding: 0 var(--k-gutter) clamp(24px, 4svh, 48px); text-align: center; color: var(--k-ink); --ev180-gap: 56px; }
.ev180__mood { bottom: auto; height: min(100%, max(120svh, 760px)); }
.ev180__mood::after { background: linear-gradient(var(--k-night), rgb(10 9 8 / .66) 16%, rgb(10 9 8 / .8) 46%, rgb(10 9 8 / .93) 74%, var(--k-night)); }
.ev180__date { margin: 22px 0 40px; }
.ev180__deck { max-width: 460px; margin: 0 auto; }

/* The strip of dates, pinned at the top of the screen */
.ev180-strip { position: sticky; top: 0; z-index: 3; display: flex; justify-content: center; gap: 4px; margin: 18px calc(var(--k-gutter) * -1) 26px; padding: 8px var(--k-gutter); background: rgb(10 9 8 / .94); box-shadow: 0 1px 0 var(--k-hair); }
.ev180-tab { flex: 0 1 58px; min-width: 0; min-height: 56px; display: grid; align-content: center; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; border-radius: 0; background: none; color: var(--k-ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  font: 500 .7rem/1 var(--k-font-body); letter-spacing: .14em; text-transform: uppercase; transition: background-color .3s ease, color .3s ease; }
.ev180-tab b { font: 400 1.5rem/1 var(--k-font-display); letter-spacing: 0; font-variant-numeric: lining-nums; }
.ev180-tab.is-on { background: var(--k-ad-fill); color: var(--k-ad-on-fill); }

/* A day opens with its date */
.ev180-day__kick { margin-bottom: 6px; }
.ev180-day__big { margin-bottom: 34px; font: 400 calc(clamp(28px, 8vw, 40px) * var(--k-ad-z))/1.15 var(--k-font-display); letter-spacing: .06em; text-transform: uppercase; text-wrap: balance; }
.ev180-rip { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 64px 0 10px; }
.ev180-rip::before, .ev180-rip::after { content: ""; height: 1px; width: clamp(60px, 20vw, 130px); background: var(--k-hair); }
.ev180-rip .k-ad-ic { width: 36px; height: 36px; }
.ev180-rip__w { display: block; margin-bottom: 18px; font: italic 500 1em/1.4 var(--k-font-body); color: var(--k-ink-soft); }

/* The thread and its stops: time and words on the left of the stop's icon */
.ev180-ev { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 46px; column-gap: 14px; padding-left: 30px; text-align: left; --ev180-top: 0px; }
.ev180-ev + .ev180-ev { padding-top: var(--ev180-gap); --ev180-top: var(--ev180-gap); }
.ev180-ev::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: var(--k-hair); }
.ev180-ev:first-child::before { top: 22px; }
.ev180-ev:last-child::before { bottom: auto; height: calc(var(--ev180-top) + 22px); }
.ev180-ev:only-child::before { display: none; }
.ev180-ev__dot { position: absolute; left: 2px; top: calc(var(--ev180-top) + 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--k-champ); box-shadow: 0 0 10px 2px rgb(216 180 122 / .35); }
.ev180-ev__ic { width: 40px; height: 40px; margin-top: 8px; opacity: .85; }
.ev180-ev__b { min-width: 0; }
.ev180-gap { position: absolute; left: 30px; top: calc(var(--ev180-gap) * .5 - .62em); font: italic 500 .86em/1 var(--k-font-body); color: var(--k-ink-soft); white-space: nowrap; }
.ev180-ev__day { font: 500 .75rem/1.6 var(--k-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--k-ink-soft); }
.ev180.is-dealt .ev180-ev__day { display: none; }
.ev180-ev__time { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; font: 400 calc(30px * (var(--k-ad-z) + .08))/1.1 var(--k-font-display); font-variant-numeric: lining-nums; }
.ev180-ev__time b { font: 400 calc(40px * (var(--k-ad-z) + .08))/1 var(--k-font-display); }
.ev180-ev__time em { font: 400 calc(30px * (var(--k-ad-z) + .08))/.7 var(--k-font-script); font-style: normal; color: var(--k-champ); padding: 0 .2em 0 .05em; }
.ev180-ev__until { flex-basis: 100%; margin-top: 2px; font: italic 500 calc(14px * (var(--k-ad-z) + .08))/1.3 var(--k-font-body); color: var(--k-ink-soft); }
.ev180-ev__name { margin-top: 8px; font: 500 calc(15px * (var(--k-ad-z) + .08))/1.35 var(--k-font-body); letter-spacing: .2em; text-transform: uppercase; text-wrap: balance; }
.ev180-nb { white-space: nowrap; }
.ev180-ev__where { margin-top: 4px; font-style: italic; font-size: .98em; line-height: 1.4; color: var(--k-ink); }
.ev180-ev__fact { font-size: .9em; line-height: 1.4; color: var(--k-ink-soft); text-wrap: pretty; }
.ev180-ev__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 8px; font-size: .92em; }
.ev180-ev__map, .ev180 .kjy-cal__toggle { color: var(--k-ad-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ev180 .kjy-cal__toggle { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; font: italic 500 1em/1.6 var(--k-font-body); letter-spacing: 0; text-transform: none; cursor: pointer; }
.ev180 .kjy-cal__menu { left: 0; translate: 0 0; }

@media (min-width: 1024px) {
  .ev180 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; gap: 0 5vw; max-width: 1240px; margin: 0 auto; }
  .ev180 > .k-ad-gap { grid-column: 1 / -1; }
  .ev180__head { position: sticky; top: 22svh; }
  .ev180__deck { max-width: 540px; margin: 0; }
  .ev180:has(.ev180-strip) .ev180__head { position: static; grid-column: 1 / -1; }
  .ev180-strip { grid-column: 1 / -1; }
  .ev180:has(.ev180-strip) .ev180__deck { grid-column: 1 / -1; margin: 0 auto; }
  .ev180__mood { left: calc(50% - 50vw); right: calc(50% - 50vw); }
}

/* W2 (A2707): the programme lights up. The thread fills stop by stop with the scroll and only grows; each dot lights as the thread reaches it and
   stays lit (section.js). Under kjy-fx and is-armed only: lite, Reduce motion and no script show the whole thread and every dot lit. */
html.kjy-fx:not(.kjy-lite) .ev180.is-armed:not(.is-done) .ev180-ev::before { transform-origin: 50% 0; transform: scaleY(var(--ev180-f, 0)); }
html.kjy-fx:not(.kjy-lite) .ev180.is-armed .ev180-ev__dot { transition: opacity .4s ease, box-shadow .4s ease; }
html.kjy-fx:not(.kjy-lite) .ev180.is-armed .ev180-ev:not(.is-lit) .ev180-ev__dot { opacity: .25; box-shadow: none; }
