/* Order of the day (core/events/230), INV-25 The Folded Letter · Luxe stage 1 (A3008, D-497): INV-02's approved timeline kept
   (fork of core/events/090): one ink thread through the celebration, each event a stop, the time between stops written along it,
   each day opening with its big date and a pinned strip of dates. New: one letter line under the title, and a crease (not a tear) between two days.
   No crease crosses the timeline itself (owner 2026-11-09 on W1: the cut in the middle "doesnt look great"). Laptop: a day runs across. */
.ev230 { position: relative; padding: var(--k-section-pad) var(--k-gutter); text-align: center; color: var(--k-ink); background: var(--k-light-ground); --ev230-drop: 64px; }
.ev230__head .k-fl-ttl { margin-bottom: .56em; }
.ev230__deck { max-width: 1040px; margin: 0 auto; }
.ev230-card__date { margin-bottom: 0; }
.ev230__letter { max-width: 28ch; margin: -.2em auto 30px; font: 300 calc(20px * var(--k-fl-z) + 2px)/1.45 var(--k-font-body); color: var(--k-ink-soft); text-wrap: balance; }

/* The strip of dates: pinned at the top of the screen, the day being read filled in like the room bar's drop */
.ev230-strip { position: sticky; top: 0; z-index: 3; display: flex; justify-content: center; gap: 4px; margin: 0 calc(var(--k-gutter) * -1) 26px; padding: 10px var(--k-gutter);
  background: var(--k-paper) var(--k-fl-tile) 0 0 / calc(var(--k-fl-strip) * .1616) auto repeat; box-shadow: 0 1px 0 rgb(22 20 18 / .12); }
.ev230-tab { flex: 0 1 58px; min-width: 0; min-height: 58px; display: grid; align-content: center; justify-items: center; gap: 3px; padding: 6px 2px; border: 0; border-radius: 16px; background: none; color: var(--k-ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  font: 300 .75rem/1 var(--k-font-body); letter-spacing: .08em; text-transform: uppercase; transition: background-color .3s ease, color .3s ease; }
.ev230-tab b { font: 300 1.75rem/1 var(--k-font-display); letter-spacing: 0; }
.ev230-tab.is-on { background: var(--k-dark); color: var(--k-on-dark); }

/* A day opens with its big date, in the design's own title device */
.ev230-day__kick { margin-bottom: 8px; }
.ev230-day__big { margin: 0 0 .52em; font-size: calc(clamp(84px, 24vw, 150px) * var(--k-fl-z)); }
.ev230-day__big .k-fl-ttl__s { bottom: -.42em; font-size: .46em; }

/* The fold between two days: a crease edge to edge, with air either side, then how far apart the days are. */
.ev230-rip { position: relative; left: 50%; width: 100vw; height: 150px; margin: 14px 0 0 -50vw; }
.ev230-rip .k-fl-crease { top: calc(50% - 28px); }
.ev230-rip__w { display: block; margin: -20px 0 26px; font-size: 2.1rem; }

/* The thread and its stops */
.ev230-ev { position: relative; padding-top: calc(var(--ev230-drop) + 30px); }
.ev230-ev__line { position: absolute; left: 50%; top: 0; width: 1px; height: var(--ev230-drop); background: var(--k-ink); transform-origin: 50% 0; }
.ev230-ev__dot { position: absolute; left: 50%; top: var(--ev230-drop); width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 3px var(--k-paper), 0 0 0 4px var(--k-ink); }
.ev230-gap { position: absolute; left: calc(50% + 12px); top: 16px; font-size: 1.5rem; line-height: 1; white-space: nowrap; rotate: -2deg; }
.ev230-ev__day { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink-soft); }
.ev230.is-dealt .ev230-ev__day { display: none; }
.ev230-ev__time { font: 300 3rem/1 var(--k-font-display); font-variant-numeric: lining-nums; }
.ev230-ev__what { margin-top: 8px; }
.ev230-ev__name { font: 400 1.1875rem/1.25 var(--k-font-body); letter-spacing: .06em; text-transform: uppercase; text-wrap: balance; }
.ev230-nb { white-space: nowrap; }
.ev230-ev__fact { font-size: .96875rem; line-height: 1.4; color: var(--k-ink-soft); text-wrap: balance; }
.ev230-ev__where { margin-top: 6px; color: var(--k-ink); }
.ev230-ev__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.ev230 .ev230-ev__links .k-btn, .ev230 .kjy-cal__toggle { min-height: 38px; padding: 0 14px; font-size: .75rem; letter-spacing: .12em; }
.ev230 .k-ico { width: 15px; height: 15px; }

@media (min-width: 980px) {
  .ev230-strip { margin-bottom: 40px; }
  .ev230-tab { flex-basis: 66px; }
  .ev230-card__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 24px; margin-top: 46px; }
  .ev230-ev { padding-top: 56px; }
  /* across the page: each stop's piece of thread runs back to the stop before it */
  .ev230-ev__line { left: calc(-50% - 12px); top: 6px; width: calc(100% + 24px); height: 1px; transform-origin: 0 50%; }
  .ev230-ev:first-child > .ev230-ev__line { display: none; }
  .ev230-ev:only-child > .ev230-ev__line { display: block; left: 50%; top: -34px; width: 1px; height: 34px; transform-origin: 50% 0; } /* a day with one stop keeps the thread */
  .ev230-ev__dot { top: 0; }
  .ev230-gap { left: -12px; top: -24px; translate: -50% 0; }
  .ev230-ev__links { flex-direction: column; align-items: center; }
}
