/** Events: a calendar made of discs. Geist tokens. Theme key sb-home-theme, light by default. The wall is shared/flip-board.js. */
html.ev-doc { --ds-link: #0761d1; --ev-edge: #8a8a8a; --ev-hue: #cef54a; --ev-empty: #efefef; --ev-ease: cubic-bezier(0.22, 1, 0.36, 1); --ev-head: var(--nv-head); scroll-padding-top: 90px; }
html.ev-doc[data-sb-theme="dark"] {
  color-scheme: dark;
  --ds-primary: #ededed; --ds-on-primary: #0a0a0a; --ds-ink: #ededed; --ds-body: #b4b4b4; --ds-mute: #a0a0a0;
  --ds-hairline: #2a2a2a; --ds-canvas: #0a0a0a; --ds-canvas-elevated: #121212; --ds-link: #52a8ff; --ev-edge: #777; --ev-empty: #1a1a1a;
}
.ev-doc body { background: var(--ds-canvas); color: var(--ds-ink); line-height: 24px; -webkit-font-smoothing: antialiased; }
.ev-doc :where(h1, h2, h3, p, ul, dl, dd, table) { margin: 0; padding: 0; }
.ev-doc :where(ul) { list-style: none; }
.ev-doc [hidden] { display: none !important; }
.ev-doc :focus-visible { outline: 2px solid var(--ds-link); outline-offset: 2px; }
.ev-doc main:focus { outline: 0; }
.ev-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ev-skip { position: absolute; left: 16px; top: -80px; z-index: 60; padding: 12px 16px; border-radius: var(--ds-radius-sm); background: var(--ds-primary); color: var(--ds-on-primary); }
.ev-skip:focus { top: 8px; }
.ev-wrap { max-width: var(--ds-container-max); margin: 0 auto; padding-inline: 24px; }
.ev-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--ds-radius-pill); background: var(--ds-primary); color: var(--ds-on-primary); font: 500 16px/20px var(--ds-font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.ev-btn:hover { background: color-mix(in srgb, var(--ds-primary) 86%, var(--ds-canvas)); text-decoration: none; }
.ev-btn[aria-pressed="true"] { background: #cef54a; color: #171717; }
.ev-btn[disabled] { background: var(--ev-empty); color: var(--ds-body); cursor: default; }
.ev-btn--quiet { border-color: var(--ev-edge); background: transparent; color: var(--ds-ink); }
.ev-btn--quiet:hover { border-color: var(--ds-ink); background: transparent; }
.ev-doc :is(.ev-lede, .ev-error, .ev-mine, .ev-sub, .ev-note) a { color: var(--ds-link); text-decoration: underline; text-underline-offset: 3px; }

.ev { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
.ev-side { position: sticky; top: var(--ev-head); display: flex; flex-direction: column; height: calc(100svh - var(--ev-head)); border-right: 1px solid var(--ds-hairline); }
.ev-wall { position: relative; flex: 1; min-height: 110px; overflow: hidden; background: var(--ev-hue); transition: background-color 0.6s; touch-action: pan-y; }
.ev-wall .bd-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev-word { position: absolute; inset: 0; display: grid; place-content: center; font-size: 9vw; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #171717; }
.ev-wall.is-live .ev-word { display: none; }

/* —— The event you picked —— */
.ev-detail { display: flex; flex-direction: column; justify-content: center; min-height: clamp(360px, 54svh, 480px); padding: 18px clamp(24px, 3.4vw, 56px); overflow-y: auto; }
.ev-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; font-size: 14px; color: var(--ds-body); }
.ev-kind i { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; background: var(--hue); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); vertical-align: -1px; }
.ev-detail h2 { margin-top: 6px; font-size: clamp(26px, 2.9vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -0.05em; text-wrap: balance; }
.ev-by { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ev-by img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; background: var(--hue); }
.ev-by a { font-weight: 500; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ev-edge); }
.ev-by span { color: var(--ds-body); }
.ev-facts { margin-top: 12px; }
.ev-facts p:first-child { font-weight: 500; }
.ev-sub { color: var(--ds-body); }
.ev-text { margin-top: 8px; color: var(--ds-body); }
.ev-seats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.ev-seats i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ev-edge); transition: transform 0.5s var(--ev-ease), background-color 0.2s; }
.ev-seats .is-taken { border-color: transparent; background: var(--ev-edge); }
.ev-seats .is-you { border-color: #171717; background: #cef54a; transform: rotateY(180deg) scale(1.25); }
html[data-sb-theme="dark"] .ev-seats .is-you { border-color: #cef54a; }
.ev-left { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--ds-body); }
.ev-left b { color: var(--ds-ink); font-weight: 600; }
.ev-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ev-note { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--ds-body); }
.ev-close { display: none; }

/* —— The calendar —— */
.ev-main { padding: clamp(36px, 6svh, 64px) max(24px, calc((100vw - 1152px) / 2)) 88px clamp(24px, 4.4vw, 72px); }
.ev-doc h1 { font-size: clamp(48px, 7vw, 108px); font-weight: 700; line-height: 0.92; letter-spacing: -0.062em; }
.ev-lede { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--ds-body); }
.ev-tools { margin-top: 24px; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--ev-edge); border-radius: var(--ds-radius-pill); background: var(--ds-canvas-elevated); color: var(--ds-ink); font: 500 14px/20px var(--ds-font-sans); cursor: pointer; }
.ev-chips button:hover { border-color: var(--ds-ink); }
.ev-chips button[aria-pressed="true"] { background: var(--ds-ink); border-color: var(--ds-ink); color: var(--ds-canvas); }
.ev-chips i { width: 12px; height: 12px; border-radius: 50%; background: var(--hue); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.ev-count { min-height: 20px; margin-top: 14px; font-size: 14px; line-height: 20px; color: var(--ds-body); }
.ev-mine { margin-top: 20px; padding: 18px 20px; border-radius: var(--ds-radius-lg); background: #cef54a; color: #171717; }
.ev-mine h2 { font-size: 16px; font-weight: 600; line-height: 24px; }
.ev-doc .ev-mine a { color: #171717; }
.ev-mine li a { display: inline-block; min-height: 24px; }
.ev-mine p { margin-top: 8px; font-size: 14px; line-height: 20px; }
.ev-mine :focus-visible { outline-color: #171717; }
.ev-more { margin-top: 24px; }
.ev-month { padding: 36px 0 28px; border-top: 1px solid var(--ds-hairline); }
[data-months] > .ev-month:first-child { margin-top: 20px; }
.ev-month h2 { font-size: clamp(32px, 3.8vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.ev-month h2 span { color: var(--ds-body); font-weight: 400; }
.ev-cal { width: 100%; max-width: 560px; margin-top: 18px; border-collapse: separate; border-spacing: 6px; table-layout: fixed; margin-left: -6px; }
.ev-cal th { padding-bottom: 2px; font-size: 14px; font-weight: 400; line-height: 20px; color: var(--ds-body); }
.ev-cal td { padding: 0; }
.ev-day { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: var(--ev-empty); color: var(--ds-body); font: 400 16px/20px var(--ds-font-sans); font-variant-numeric: tabular-nums; }
button.ev-day { background: var(--g); color: #171717; font-weight: 700; cursor: pointer; transition: transform 0.35s var(--ev-ease); }
button.ev-day:is(:hover, :focus-visible) { transform: scale(1.1); }
button.ev-day[aria-pressed="true"]::before { content: ""; position: absolute; inset: -5px; border: 2px solid var(--ds-ink); border-radius: 50%; }
.ev-day.is-today { box-shadow: inset 0 0 0 2px var(--ds-ink); color: var(--ds-ink); font-weight: 600; }
button.ev-day.is-today { color: #171717; }
.ev-day.is-going::after { content: ""; position: absolute; right: 2%; top: 2%; width: 28%; height: 28%; border: 2px solid var(--ds-canvas); border-radius: 50%; background: #171717; }
html[data-sb-theme="dark"] .ev-day.is-going::after { background: #fff; }
button.ev-day.is-past { background: linear-gradient(color-mix(in srgb, var(--ds-canvas) 58%, transparent) 0 0), var(--g); color: var(--ds-ink); font-weight: 600; }
.ev-list { margin-top: 18px; }
.ev-list a { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 0 18px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--ds-hairline); color: var(--ds-body); text-decoration: none; }
.ev-list li:last-child a { border-bottom: 1px solid var(--ds-hairline); }
.ev-list a:hover { text-decoration: none; }
.ev-list time { font-weight: 500; color: var(--ds-ink); }
.ev-list b { display: block; font-size: 20px; font-weight: 600; line-height: 26px; letter-spacing: -0.02em; color: var(--ds-ink); }
.ev-list a[aria-current] { box-shadow: inset 5px 0 0 var(--hue); padding-left: 16px; }
.ev-list em { font-style: normal; font-size: 14px; white-space: nowrap; }
.ev-none { margin-top: 12px; color: var(--ds-body); }
.ev-error { padding: 32px 0; font-size: 18px; line-height: 28px; }

/* —— Every month —— */
.ev-rhythm { border-top: 1px solid var(--ds-hairline); background: var(--ds-canvas-elevated); }
.ev-rhythm > div { padding-block: clamp(56px, 8vw, 96px); }
.ev-rhythm h2 { font-size: clamp(36px, 5.2vw, 76px); font-weight: 700; line-height: 0.96; letter-spacing: -0.055em; }
.ev-rhythm ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; margin-top: 36px; }
.ev-rhythm li { display: flex; flex-direction: column; }
.ev-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 168px; margin-bottom: 18px; }
.ev-mini i { aspect-ratio: 1; border-radius: 50%; background: var(--ev-empty); }
.ev-mini .is-on { background: var(--hue); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22); transform: scale(1.28); }
.ev-rhythm h3 { font-size: 22px; font-weight: 600; line-height: 26px; letter-spacing: -0.03em; }
.ev-rhythm li p { margin-top: 6px; color: var(--ds-body); }
.ev-rhythm li p.ev-rule { color: var(--ds-ink); font-weight: 500; }
.ev-rhythm .ev-go { margin-top: auto; padding-top: 16px; }
.ev-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 32px; max-width: var(--ds-container-max); margin: 0 auto; padding: 24px; font-size: 14px; color: var(--ds-body); }

.ev.is-failed .ev-main > .ev-lede { display: none; }
html:not(.js) .ev { display: block; }
html:not(.js) .ev-side { display: none; }

@media (max-width: 1000px) {
  .ev { display: block; }
  .ev-side { display: contents; }
  .ev-wall { position: sticky; top: var(--ev-head); z-index: 10; height: clamp(120px, 20svh, 190px); }
  .ev-word { font-size: 20vw; }
  .ev-main { padding: 36px 24px 64px; }
  html.ev-doc { scroll-padding-top: calc(var(--ev-head) + clamp(120px, 20svh, 190px) + 16px); }
  .ev-cal { max-width: 620px; }
  .ev-detail { position: fixed; z-index: 20; inset: auto 0 0; min-height: 0; max-height: 72svh; justify-content: flex-start; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ds-hairline); background: var(--ds-canvas); box-shadow: 0 -16px 40px -20px rgba(0, 0, 0, 0.3); transform: translateY(105%); visibility: hidden; transition: transform 0.35s var(--ev-ease), visibility 0.35s; }
  .ev-detail.is-up { transform: none; visibility: visible; }
  .ev-close { position: absolute; right: 14px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ds-hairline); border-radius: 50%; background: var(--ds-canvas-elevated); color: var(--ds-ink); cursor: pointer; }
  .ev-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .ev-kind, .ev-detail h2 { padding-right: 48px; }
  .ev-rhythm { position: relative; z-index: 11; }
  .ev-rhythm ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ev-main, .ev-wrap { padding-inline: 16px; }
  .ev-cal { border-spacing: 4px; margin-left: -4px; width: calc(100% + 8px); }
  .ev-list a { grid-template-columns: 60px minmax(0, 1fr); gap: 0 12px; }
  .ev-list em { grid-column: 2; }
  .ev-rhythm ul { grid-template-columns: minmax(0, 1fr); }
  .ev-go .ev-btn { flex: 1 1 auto; }
}
@media (max-height: 520px) and (max-width: 1000px) { .ev-wall { position: relative; top: 0; } }
@media (min-width: 1001px) and (max-height: 700px) { .ev-detail { min-height: 0; padding-block: 12px; } .ev-text { display: none; } }
@media (prefers-reduced-motion: reduce) { html.ev-doc { scroll-behavior: auto; } .ev-doc * { transition: none !important; } }
@media (forced-colors: active) { .ev-day, .ev-mini i, .ev-seats i { border: 1px solid; } button.ev-day[aria-pressed="true"] { background: Highlight; } }
@media print { .ev { display: block; } .ev-side, .ev-tools { display: none; } }

.ev-said { margin-top: 12px; color: #c50000; font-size: 14px; line-height: 20px; }
html[data-sb-theme="dark"] .ev-said { color: #ff8f8f; }
.ev-said:empty { display: none; }
