/* core/events/014_days_on_the_thread (A1882, fork of ev006; comments on the ev006 rules: docs/inv06_css_notes.md). Luxe: one
   column at every width, day tabs, same-day stacks, a slit + knot pearl per card, the rider (master plan D6 ev014, Amendment 2). */
.ev014 {
  --ev014-cw: min(640px, 100cqw - 12px);
  --ev014-bud: 104px;
  --ev014-tab-top: max(56px, 8svh); --ev014-tab-h: 0px; /* the stuck day ribbon: its top, and its height (section.js) */
  position: relative; container-type: inline-size; overflow-x: hidden; overflow-x: clip;
  padding: 44px 0 var(--k-section-pad); touch-action: pan-y;
  background: var(--k-light-ground); color: var(--k-ink); text-align: center;
}
.ev014__thread { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; }
.ev014__thread-x { position: absolute; top: 0; left: var(--k-thread-x); width: 0; height: 0; visibility: hidden; }
.ev014::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: var(--k-thread-x); width: var(--k-thread-w); margin-left: calc(var(--k-thread-w) / -2); background: var(--k-foil); pointer-events: none; }
.ev014.is-anim::before, .ev014:not(.is-anim) .ev014__thread { display: none; }
.ev014__stage { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.ev014__head { position: relative; z-index: 2; padding: 0 var(--k-gutter); }
.ev014__kicker { margin-bottom: 6px; }
.ev014__orn { width: 170px; }
.ev014__list { position: relative; z-index: 2; display: grid; row-gap: 56px; width: var(--ev014-cw); margin: 64px auto 0; }
.ev014-card { position: relative; }
.ev014-card__in { position: relative; }
.ev014-card__shade { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; transform: translate(4px, 8px); filter: blur(7px); }
.ev014-card__shade path { fill: rgb(47 42 36 / .16); }
.ev014-card__paper { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; filter: drop-shadow(0 1px 1px rgb(47 42 36 / .07)); }
.ev014-card__fill { fill: var(--k-card); }
.ev014-card__rim { fill: none; stroke: var(--k-foil); stroke-width: 1.2px; vector-effect: non-scaling-stroke; }
.ev014-card { --ev014-ex: calc(max(28px, 50cqw - 300px) - (100cqw - var(--ev014-cw)) / 2); }
.ev014-card__eyelet {
  position: absolute; z-index: 1; top: 30px; left: var(--ev014-ex); width: 9px; height: 2.4px; border-radius: 1.2px; transform: translate(-50%, -50%);
  background: rgb(58 44 28 / .58); box-shadow: inset 0 .7px .8px rgb(0 0 0 / .35), 0 .7px 0 rgb(255 255 255 / .75);
}
.ev014-card__eyelet::before {
  content: ""; position: absolute; left: 50%; bottom: 50%; width: var(--k-thread-w); height: 26px; margin-left: calc(var(--k-thread-w) / -2);
  background: var(--k-foil); border-radius: 1px;
}
.ev014 .ev014-card__knot { position: absolute; z-index: 1; top: 21px; left: var(--ev014-ex); width: 8px; height: 8px; margin: -4px 0 0 -4px; opacity: 0; translate: 0 -2px; transition: opacity .22s, translate .22s; }
.ev014 .ev014-card__knot.is-on { opacity: 1; translate: 0 0; }
.ev014 .ev014__rider { position: absolute; z-index: 1; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; opacity: 0; transition: opacity .2s; }
html:not(.kjy-fx) .ev014__rider { display: none; }
/* days (section.js groups the cards): a ribbon tab before each day when there are several; same-day cards stack */
.ev014-day, .ev014-day__stack, .ev014-tab { margin: 0; padding: 0; list-style: none; }
.ev014-day { row-gap: inherit; } /* the list's gap passes down to each day's own list */
.ev014-day__stack { display: grid; row-gap: inherit; }
.ev014-day--stack .ev014-day__stack { row-gap: 24svh; }
.ev014.is-stacked .ev014-day--stack .ev014-card { position: sticky; top: calc(max(72px, 12svh) + var(--i, 0) * 14px); }
/* with day ribbons (W2+W3.1, D-153): while a day stacks, its ribbon sticks at the top and the cards stack under it; the
   last card rests one stack step (the empty ::after row), then the day leaves as one: the ribbon sticks inside its day,
   whose box ends --ev014-tail px early (section.js; the padding gives the space back), so it goes up in the frame the
   last card does */
.ev014.has-tabs .ev014-day--stack .ev014-day__stack::after { content: ""; }
.ev014.is-stacked.has-tabs .ev014-day--stack .ev014-card { top: calc(var(--ev014-tab-top) + var(--ev014-tab-h) + 8px + var(--i, 0) * 12px); }
.ev014.is-stacked.has-tabs .ev014-day--stack .ev014-tab { position: sticky; top: var(--ev014-tab-top); }
.ev014.is-stacked.has-tabs .ev014-day--stack { padding-bottom: var(--ev014-tail, 0px); }
.ev014.is-stacked.has-tabs .ev014-day--stack .ev014-day__stack { margin-bottom: calc(-1 * var(--ev014-tail, 0px)); }
.ev014.has-tabs .ev014-card__date { display: none; }
/* the ribbon sits inside its day now: 36 / 52 px above the first card, as when it was its own row (56 / 72 px gap, -20 px);
   8 px over a stack, where it lies when stuck */
.ev014-tab { position: relative; z-index: 2; display: grid; justify-items: center; margin-bottom: 36px; filter: drop-shadow(1px 4px 6px rgb(60 45 25 / .14)); }
.ev014.has-tabs .ev014-day--stack .ev014-tab { margin-bottom: 8px; }
.ev014-tab__in {
  display: inline-grid; justify-items: center; gap: 2px; min-width: 220px; padding: 10px 40px 12px; background: var(--k-card);
  border-block: 1px solid color-mix(in srgb, var(--k-foil) 70%, transparent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
}
.ev014-tab__k { font: 600 .66rem/1.5 var(--k-font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--k-ink-soft); }
.ev014-tab__d { font: 400 1.6rem/1.2 var(--k-font-script); color: var(--c-primary); }
.ev014-card__body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 76px 44px 80px; }
.ev014-card__name { font: 600 1.28rem/1.25 var(--k-font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--k-ink); overflow-wrap: anywhere; }
.ev014-card__orn { width: 112px; margin: 10px auto 0; }
.ev014-card__date { margin-top: 12px; font: 500 1.08rem/1.4 var(--k-font-body); color: var(--k-ink); }
.ev014-card__time { margin-top: 2px; font: 600 .82rem/1.5 var(--k-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary); }
.ev014-card__venue { display: grid; row-gap: 2px; margin-top: 14px; }
.ev014-card__vname { font: 600 .82rem/1.45 var(--k-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink); }
.ev014-card__vaddr { font: 500 .98rem/1.45 var(--k-font-body); color: var(--k-ink-soft); }
.ev014-card__fact { margin-top: 8px; font: 500 .98rem/1.45 var(--k-font-body); color: var(--k-ink-soft); }
.ev014-card__venue + .ev014-card__fact { margin-top: 12px; }
.ev014-card__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; max-width: 320px; margin-top: 18px; }
.ev014-card__btn, .ev014 .kjy-cal { flex: 1 1 auto; }
.ev014-card__btn, .ev014 .kjy-cal__toggle { min-height: 44px; padding: 0 12px; font-size: .68rem; letter-spacing: .12em; white-space: nowrap; background: var(--k-card); }
.ev014 .kjy-cal { max-width: 100%; }
.ev014 .kjy-cal__toggle { width: 100%; list-style: none; }
.ev014 .kjy-cal__toggle::-webkit-details-marker { display: none; }
.ev014 .kjy-cal[open] { flex-basis: 100%; }
.ev014 .kjy-cal__menu { display: grid; margin-top: 8px; text-align: left; background: var(--k-card); box-shadow: 0 0 0 1px rgb(var(--c-primary-rgb) / .3), 4px 10px 24px rgb(47 42 36 / .12); }
.ev014 .kjy-cal__opt { padding: 12px 14px; font: 500 .95rem/1.3 var(--k-font-body); color: var(--c-primary); text-decoration: none; }
.ev014 .kjy-cal__opt + .kjy-cal__opt { border-top: 1px solid rgb(var(--c-primary-rgb) / .2); }
.ev014__spray { z-index: 3; width: var(--ev014-bud); visibility: hidden; }
.ev014__spray--a { right: -2px; top: -50px; transform: rotate(-7deg); }
.ev014__spray--b { left: -2px; bottom: -44px; transform: rotate(8deg); }
.ev014:not(.is-grouped) .ev014-card:nth-child(6n+1) .ev014__spray--a, .ev014 .ev014-card--s1 .ev014__spray--a, .ev014:not(.is-grouped) .ev014-card:nth-child(6n+2) .ev014__spray--b, .ev014 .ev014-card--s2 .ev014__spray--b,
.ev014:not(.is-grouped) .ev014-card:nth-child(6n+4) .ev014__spray--b, .ev014 .ev014-card--s4 .ev014__spray--b, .ev014:not(.is-grouped) .ev014-card:nth-child(6n+5) .ev014__spray--a, .ev014 .ev014-card--s5 .ev014__spray--a { visibility: visible; }
.ev014:not(.is-grouped) .ev014-card:nth-child(6n+4) .ev014__spray--b, .ev014 .ev014-card--s4 .ev014__spray--b { left: auto; bottom: auto; right: -2px; top: -58px; transform: rotate(9deg); }
.ev014:not(.is-grouped) .ev014-card:nth-child(6n+5) .ev014__spray--a, .ev014 .ev014-card--s5 .ev014__spray--a { right: auto; top: auto; left: -2px; bottom: -46px; transform: rotate(-11deg); }
.ev014.is-near .ev014__spray--a .k-spray__tint--petal, .js.motion-reduce .ev014 .ev014__spray--a .k-spray__tint--petal { -webkit-mask-image: url("assets/bud-a-day-petal.webp"), url("assets/bud-a-day.webp"); -webkit-mask-composite: source-in; mask-image: url("assets/bud-a-day-petal.webp"), url("assets/bud-a-day.webp"); mask-composite: intersect; }
.ev014.is-near .ev014__spray--a :is(.k-spray__tint--boost, .k-spray__tint--deep), .js.motion-reduce .ev014 .ev014__spray--a :is(.k-spray__tint--boost, .k-spray__tint--deep) { -webkit-mask-image: url("assets/bud-a-day-petal.webp"), url("assets/bud-a-day.webp"); -webkit-mask-composite: source-in; mask-image: url("assets/bud-a-day-petal.webp"), url("assets/bud-a-day.webp"); mask-composite: intersect; }
.ev014.is-near .ev014__spray--a .k-spray__tint--leaf, .js.motion-reduce .ev014 .ev014__spray--a .k-spray__tint--leaf { -webkit-mask-image: url("assets/bud-a-day-leaf.webp"), url("assets/bud-a-day.webp"); -webkit-mask-composite: source-in; mask-image: url("assets/bud-a-day-leaf.webp"), url("assets/bud-a-day.webp"); mask-composite: intersect; }
.ev014.is-near .ev014__spray--a .k-spray__tint--gold, .js.motion-reduce .ev014 .ev014__spray--a .k-spray__tint--gold { -webkit-mask-image: url("assets/bud-a-day-gold.webp"), url("assets/bud-a-day.webp"); -webkit-mask-composite: source-in; mask-image: url("assets/bud-a-day-gold.webp"), url("assets/bud-a-day.webp"); mask-composite: intersect; }
.ev014.is-near .ev014__spray--b .k-spray__tint--petal, .js.motion-reduce .ev014 .ev014__spray--b .k-spray__tint--petal { -webkit-mask-image: url("assets/bud-b-day-petal.webp"), url("assets/bud-b-day.webp"); -webkit-mask-composite: source-in; mask-image: url("assets/bud-b-day-petal.webp"), url("assets/bud-b-day.webp"); mask-composite: intersect; }
.ev014.is-near .ev014__spray--b :is(.k-spray__tint--boost, .k-spray__tint--deep), .js.motion-reduce .ev014 .ev014__spray--b :is(.k-spray__tint--boost, .k-spray__tint--deep) { -webkit-mask-image: url("assets/bud-b-day-petal.webp"), url("assets/bud-b-day.webp"); -webkit-mask-composite: source-in; mask-image: url("assets/bud-b-day-petal.webp"), url("assets/bud-b-day.webp"); mask-composite: intersect; }
.ev014.is-near .ev014__spray--b .k-spray__tint--leaf, .js.motion-reduce .ev014 .ev014__spray--b .k-spray__tint--leaf { -webkit-mask-image: url("assets/bud-b-day-leaf.webp"), url("assets/bud-b-day.webp"); -webkit-mask-composite: source-in; mask-image: url("assets/bud-b-day-leaf.webp"), url("assets/bud-b-day.webp"); mask-composite: intersect; }
.ev014.is-near .ev014__spray--b .k-spray__tint--gold, .js.motion-reduce .ev014 .ev014__spray--b .k-spray__tint--gold { -webkit-mask-image: url("assets/bud-b-day-gold.webp"), url("assets/bud-b-day.webp"); -webkit-mask-composite: source-in; mask-image: url("assets/bud-b-day-gold.webp"), url("assets/bud-b-day.webp"); mask-composite: intersect; }
.ev014 .k-spray__tint { display: none; }
.ev014.is-near .k-spray__tint, .js.motion-reduce .ev014 .k-spray__tint { display: block; }
.ev014__spray .k-spray__base { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media (min-width: 768px) {
  .ev014 { --ev014-bud: 132px; padding-top: var(--k-section-pad); }
  .ev014__list { row-gap: 72px; margin-top: 80px; }
  .ev014__spray--a { right: -34px; top: -62px; }
  .ev014__spray--b { left: -34px; bottom: -54px; }
  .ev014:not(.is-grouped) .ev014-card:nth-child(6n+4) .ev014__spray--b, .ev014 .ev014-card--s4 .ev014__spray--b { right: -34px; top: -60px; }
  .ev014:not(.is-grouped) .ev014-card:nth-child(6n+5) .ev014__spray--a, .ev014 .ev014-card--s5 .ev014__spray--a { left: -34px; bottom: -56px; }
  .ev014-card__body { padding: 84px 72px 88px; }
  .ev014-card__name { font-size: 1.45rem; }
  .ev014 .ev014-card__knot { top: 20.5px; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
  .ev014 .ev014__rider { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
  .ev014-card__eyelet { width: 11px; height: 2.6px; border-radius: 1.3px; }
  .ev014-tab { margin-bottom: 52px; }
  .ev014-tab__in { min-width: 260px; padding: 12px 48px 14px; }
  .ev014-tab__d { font-size: 1.9rem; }
}
@media (min-width: 1200px) {
  .ev014 { --ev014-bud: 128px; }
  .ev014 .ev014-card__knot { top: 20px; width: 10px; height: 10px; margin: -5px 0 0 -5px; }
  .ev014 .ev014__rider { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
  .ev014-card__eyelet { width: 12px; height: 2.8px; border-radius: 1.4px; }
  .ev014-tab__k { font-size: .76rem; }
  .ev014-tab__d { font-size: 2.2rem; }
}
