/* Events list, empty state (a stopped chess clock) and event detail
   (an entry card on vellum with the facts and the way in). */

/* ---------- Head ---------- */
.page-head .crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .35rem; font-size: .9375rem; color: var(--muted); }
.page-head .crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .3em; }
.page-head .crumbs a:hover { color: var(--fg); text-decoration-color: currentColor; }
.page-head .crumbs a::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .6rem; border-left: 1.25px solid currentColor; border-bottom: 1.25px solid currentColor; transform: rotate(45deg); }

.ev-head { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); overflow-x: clip; }
.ev-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem clamp(2.5rem, 6vw, 6rem); align-items: center; }
.ev-clock-stage { position: relative; }
.ev-clock-stage .drawing { right: -2.5rem; top: -2.5rem; width: 80%; height: 90%; --sq: 3.5rem; }
.clock-sheet { position: relative; z-index: 1; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 4vw, 3rem) clamp(1.75rem, 3.5vw, 2.75rem); }
@media (max-width: 960px) { .ev-hero { grid-template-columns: minmax(0, 1fr); } .clock-sheet { max-width: 22rem; } }
.ev-head h1 { font-size: var(--d-1); line-height: 1.16; }
/* SplitText masks: room for Michroma's deep descenders while the lines rise */
.ev-head h1 > div, .ev-main h1 > div, .empty-copy h2 > div { padding-bottom: .18em; margin-bottom: -.18em; }
.ev-head .lede { margin-top: 1.5rem; color: var(--fg-2); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; max-width: 36ch; }
.ev-sec { padding-bottom: clamp(5.5rem, 12vw, 10rem); overflow-x: clip; }

/* ---------- List ---------- */
.ev-list { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.ev { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: 1.5rem clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem); }
.ev[hidden] { display: none; }
.ev-date time { display: grid; }
.ev-date .d { font-family: var(--display); font-size: clamp(2.75rem, 4.5vw, 3.75rem); line-height: 1; letter-spacing: -.03em; }
.ev-date .my { margin-top: .6rem; font-weight: 500; font-size: .9375rem; }
.ev-date .t { margin-top: .15rem; font-size: .875rem; color: var(--muted); }
.ev .meta { font-size: .875rem; color: var(--muted); }
.ev h2 { margin-top: .4rem; font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.3; }
.ev h2 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.ev h2 a:hover { background-size: 100% 1px; }
.ev .sum { margin-top: .75rem; color: var(--fg-2); max-width: 40rem; }
.ev .elig { margin-top: .5rem; font-size: .9375rem; color: var(--muted); }
.ev-act { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
@media (max-width: 860px) {
  .ev { grid-template-columns: 1fr; align-items: start; gap: 1.25rem; }
  .ev-date time { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .75rem; }
  .ev-date .d { font-size: 2.5rem; }
  .ev-date .my { margin-top: 0; }
  .ev-date .t { flex-basis: 100%; }
  .ev-act { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
}

/* ---------- Empty state: the clock has not started ---------- */
.ev-empty { position: relative; }
.ev-empty[hidden] { display: none; }
/* no workshops: one line and one move under a rule (the clock stands in the hero) */
.empty-panel { padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.empty-copy h2 { font-size: var(--d-2); line-height: 1.2; max-width: 22ch; }
.empty-copy p { margin-top: 1.25rem; color: var(--fg-2); font-size: 1.125rem; max-width: 30rem; }
.empty-copy .note-line { margin-top: .75rem; font-size: 1rem; }
.empty-copy .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 2rem; }

.ev-clock { position: relative; width: min(21rem, 100%); margin-inline: auto; padding: 13% 8% 8%; display: grid; grid-template-columns: 1fr 1fr; gap: 9%;
  border: 1px solid var(--line-2); border-radius: 18px 18px 8px 8px; background: color-mix(in srgb, var(--fg) 4%, var(--bg));
  box-shadow: inset 0 1px 0 var(--vl-hi), 0 30px 60px -40px var(--vl-shadow); }
.ev-clock::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -1px; height: 1px; background: var(--fg); opacity: .5; }
.ev-clock .lever { position: absolute; top: -.55rem; left: 18%; width: 22%; height: .55rem; background: var(--fg); border-radius: 4px 4px 0 0; transform-origin: 50% 100%; transform: rotate(var(--lr, -7deg)); }
.ev-clock .face { display: grid; justify-items: center; gap: .7rem; }
.ev-clock .face b { font-family: var(--display); font-weight: 400; font-size: .75rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.ev-clock .dial { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--fg); background: var(--bg); }
.ev-clock .dial::before { content: ""; position: absolute; inset: 7%; border-radius: 50%;
  background: repeating-conic-gradient(var(--fg) 0 1.6deg, transparent 1.6deg 30deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 80%, #000 81%); mask-image: radial-gradient(closest-side, transparent 80%, #000 81%); transform: rotate(-.8deg); opacity: .8; }
.ev-clock .dial::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7%; height: 7%; border-radius: 50%; background: var(--fg); transform: translate(-50%, -50%); }
.ev-clock .hand { position: absolute; left: 50%; bottom: 50%; width: 2px; height: 36%; margin-left: -1px; background: var(--fg); border-radius: 1px; transform-origin: 50% 100%; transform: rotate(var(--hr, 0deg)); }
.ev-clock .face:last-of-type .hand { transform: rotate(var(--hr2, 0deg)); }
.ev-clock .clock-piece { position: absolute; right: -9%; bottom: 100%; width: 22%; aspect-ratio: 1; transform: translateY(13%); }
.ev-clock .clock-piece [data-piece] { width: 100%; height: 100%; filter: drop-shadow(0 6px 5px rgba(0,0,0,.18)); }
@media (max-width: 960px) { .ev-clock { width: min(16rem, 80%); } }

/* ---------- Event detail ---------- */
.ev-detail { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(5.5rem, 12vw, 9rem); overflow-x: clip; }
.ev-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.ev-main h1 { margin-top: 1.25rem; font-size: var(--d-1); line-height: 1.15; letter-spacing: -.02em; }
.ev-main .lede { margin-top: 1.5rem; max-width: 36rem; color: var(--fg-2); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; }
.ended-note { margin-top: 2rem; padding: 1rem 1.25rem; border: 1px solid var(--line-2); border-left: 2px solid var(--fg); max-width: 36rem; font-weight: 500; }
.ended-note[hidden] { display: none; }
.ev-prose { margin-top: 2.5rem; max-width: 40rem; font-size: 1.0625rem; line-height: 1.75; }
.ev-prose > * + * { margin-top: 1.2em; }
.ev-prose h2, .ev-prose h3 { font-family: var(--display); font-weight: 400; margin-top: 2em; font-size: 1.2rem; line-height: 1.4; }
.ev-prose h4 { margin-top: 1.75em; font-weight: 600; }
.ev-prose ul, .ev-prose ol { display: grid; gap: .5em; }
.ev-prose li { position: relative; padding-left: 1.5em; }
.ev-prose ul > li::before { content: ""; position: absolute; left: .2em; top: .72em; width: .4em; height: .4em; background: var(--fg); opacity: .7; }
.ev-prose ol { counter-reset: n; }
.ev-prose ol > li { counter-increment: n; }
.ev-prose ol > li::before { content: counter(n) "."; position: absolute; left: 0; color: var(--muted); }
.ev-prose a { text-decoration-color: var(--line-2); text-underline-offset: .25em; }
.reg-note { margin-top: 2.5rem; max-width: 34rem; }

.ev-card-wrap { position: sticky; top: calc(var(--nav-h) + 2rem); }
.ev-card-wrap .drawing { right: -2.5rem; top: -2.5rem; width: 70%; height: 60%; --sq: 3.25rem; }
.ev-card { position: relative; z-index: 1; padding: clamp(1.5rem, 3vw, 2.25rem); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.big-date time { display: grid; }
.big-date .d { font-family: var(--display); font-size: clamp(3.25rem, 6vw, 4.75rem); line-height: 1; letter-spacing: -.04em; }
.big-date .my { margin-top: .6rem; font-weight: 500; }
.card-piece { width: 3.25rem; height: 3.25rem; flex: none; }
.card-piece [data-piece] { width: 100%; height: 100%; filter: drop-shadow(0 6px 5px rgba(0,0,0,.16)); }
.facts { margin-top: 1.75rem; }
.facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-block: .8rem; border-top: 1px solid var(--line); }
.facts dt { font-size: .875rem; color: var(--muted); padding-top: .1rem; }
.facts dd { margin: 0; font-size: .96875rem; line-height: 1.5; }
.card-act { display: grid; gap: .75rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); }
.card-act .btn { width: 100%; }
.card-act .btn[hidden], .card-act .soon[hidden] { display: none; }
.card-act .soon { font-size: .9375rem; color: var(--fg-2); }
.is-ended .ev-card .big-date { color: var(--muted); }
@media (max-width: 960px) {
  .ev-grid { grid-template-columns: 1fr; }
  .ev-card-wrap { position: relative; top: 0; }
  .ev-card-wrap .drawing { right: -1rem; }
  .facts > div { grid-template-columns: 6.5rem minmax(0, 1fr); }
}
