/* Events page: the 2026 season planner.
   Category colours come from the badge palette: greens, brass and red, each paired with a printed label so colour is
   never the only signal. Surfaces 3px, buttons square. */

.page-events {
  --ev-meet: var(--green-600);
  --ev-cafe: var(--brass);
  --ev-drive: var(--red);
  --ev-show: #6F9A80;   /* racing green lifted towards the concrete */
  --ev-social: #8C6824; /* brass in shadow */
  --ev-lane-w: 52px;
  --ev-gap: clamp(18px, 2.4vw, 34px);
  --ev-plate: 76px;
  --ev-silver: #E2E6E1;
}
.page-events [data-cat="meet"] { --c: var(--ev-meet); }
.page-events [data-cat="cafe"] { --c: var(--ev-cafe); }
.page-events [data-cat="drive"] { --c: var(--ev-drive); }
.page-events [data-cat="show"] { --c: var(--ev-show); }
.page-events [data-cat="social"] { --c: var(--ev-social); }

html.no-js .ev-js { display: none !important; }
.ev-ico { width: 18px; height: 18px; flex: none; }
.ev-ico--star path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; transition: fill .25s var(--ease); }

/* ---------- Hero ---------- */
.ev-hero { min-height: 100vh; min-height: 100svh; }
.ev-hero__media { overflow: clip; }
.phero__media.ev-hero__media img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; object-fit: cover; object-position: center 58%; }
html.motion .ev-hero__media img { transform: scale(1.12); }
.ev-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: end; column-gap: clamp(28px, 4vw, 64px); }
.ev-hero__copy { display: grid; gap: 20px; align-self: end; }
.ev-hero__copy .lede { margin: 0; }

.ev-next {
  position: relative; padding: 22px 24px 24px 32px;
  background: rgba(11, 33, 26, .93); color: var(--on-dark);
  border: 2px solid var(--brass); border-radius: var(--r);
}
.ev-next::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.ev-next p { margin: 0; }
.ev-next__label { color: var(--brass-lt); }
.ev-next__count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 10px !important; }
.ev-next__num { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; font-size: clamp(3rem, 4.6vw, 4.4rem); font-weight: 800; font-stretch: 72%; line-height: .9; color: var(--brass-lt); }
.ev-next__unit { font-family: var(--f-display); font-stretch: 92%; font-weight: 700; font-size: 1.15rem; }
.ev-next__name { font-family: var(--f-ui); font-weight: 800; font-stretch: 100%; font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.12; }
.ev-next__when { margin-top: 6px !important; color: #DCE3DE; font-weight: 500; }
.ev-next__place { color: var(--on-dark-muted); font-size: .95rem; }
.ev-next__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ev-next__btns .btn { flex: 1 1 auto; }

/* ---------- Planner ---------- */
.ev-plan { padding-top: clamp(64px, 7vw, 104px); }
.ev-plan > .wrap { position: relative; }
/* A faint photo under the top of the planner, fading out into the concrete */
.ev-plan__tex {
  position: absolute; left: 0; right: 0; top: 0; height: min(680px, 80vh); overflow: clip; pointer-events: none; opacity: .17;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%);
}
.ev-plan__tex img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: center 60%; filter: grayscale(1) contrast(1.15); }
.ev-plan__head { gap: 12px; margin-bottom: 28px; }
.ev-note { margin: 0; color: var(--muted); }

.ev-tools { display: grid; gap: 14px; margin-bottom: 30px; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chip {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 12px 8px 14px;
  border: 2px solid rgba(17, 22, 20, .18); border-radius: var(--r-btn); background: var(--paper); color: var(--ink);
  font-family: var(--f-display); font-stretch: 92%; font-weight: 700; font-size: .98rem; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.ev-chip:hover { border-color: var(--green-600); }
.ev-chip__n { min-width: 1.9em; padding: 2px 6px; background: var(--concrete); text-align: center; font-size: .9rem; transition: background-color .25s var(--ease); }
.ev-chip[aria-pressed="true"] { background: var(--green-950); border-color: var(--green-950); color: var(--on-dark); }
.ev-chip[aria-pressed="true"] .ev-chip__n { background: var(--brass); color: var(--ink); }
.ev-sw { display: inline-block; flex: none; width: 11px; height: 11px; background: var(--c, var(--ink)); }
.ev-chip[aria-pressed="true"] .ev-sw { box-shadow: 0 0 0 2px var(--paper); }

.ev-past { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.ev-past[hidden] { display: none; }
.ev-past__text { margin: 0; color: var(--muted); }
.ev-past__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 4px;
  background: none; border: 0; color: var(--ink); cursor: pointer;
  font-family: var(--f-display); font-stretch: 92%; font-weight: 700; font-size: 1rem;
  text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.ev-past__box { position: relative; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper); transition: background-color .2s var(--ease); }
.ev-past__btn[aria-pressed="true"] .ev-past__box { background: var(--green-950); border-color: var(--green-950); }
.ev-past__btn[aria-pressed="true"] .ev-past__box::after { content: ''; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid var(--brass-lt); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(28px, 3.5vw, 56px); align-items: start; }
html.no-js .ev-layout { grid-template-columns: minmax(0, 1fr); }

/* The road down the side of the months */
.ev-list { position: relative; padding-left: calc(var(--ev-lane-w) + var(--ev-gap)); min-height: 200px; }
.ev-lane {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--ev-lane-w);
  background: linear-gradient(90deg, rgba(255, 255, 255, .14) 0 2px, transparent 2px calc(100% - 2px), rgba(255, 255, 255, .14) calc(100% - 2px)), var(--green-950);
  border-radius: var(--r);
}
.ev-lane__line {
  position: absolute; z-index: 1; left: 50%; top: 10px; bottom: 10px; width: 4px; margin-left: -2px;
  background: repeating-linear-gradient(180deg, var(--brass) 0 20px, transparent 20px 36px);
  transform-origin: 50% 0;
}
.ev-lane__car { position: absolute; z-index: 3; left: 50%; top: 0; width: 36px; height: 36px; margin-left: -18px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }

.ev-month + .ev-month { margin-top: clamp(28px, 3vw, 40px); }
.ev-month[hidden] { display: none; }
.ev-month__head { position: relative; display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.ev-month__h { font-size: clamp(1.5rem, 2.2vw, 2rem); font-stretch: 106%; line-height: 1.1; }
.ev-month__count { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.ev-month__head::after {
  content: ''; flex: 1 1 auto; align-self: center; height: 2px; background: var(--brass);
  transform-origin: left; transition: transform .7s var(--ease), opacity .5s var(--ease);
}
.ev-stud {
  position: absolute; z-index: 2; top: 50%;
  left: calc(-1 * var(--ev-gap) - var(--ev-lane-w) / 2 - 8px);
  width: 16px; height: 16px; margin-top: -8px; border-radius: 2px; transform: rotate(45deg);
  background: var(--brass-lt); box-shadow: 0 0 0 3px rgba(201, 160, 74, .35), 0 0 16px rgba(232, 207, 138, .85);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
/* With the road running, a month lights up as the badge reaches it */
.ev-list.is-live .ev-month:not(.is-lit) .ev-stud { background: var(--green-800); box-shadow: inset 0 0 0 2px rgba(232, 207, 138, .5); }
.ev-list.is-live .ev-month:not(.is-lit) .ev-month__head::after { transform: scaleX(.08); opacity: .6; }

/* Event rows */
.ev-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-row {
  position: relative; display: grid; grid-template-columns: var(--ev-plate) minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 12px 14px 12px 12px; background: var(--paper); border-radius: var(--r);
  border-left: 5px solid var(--c, var(--brass)); box-shadow: 0 1px 0 rgba(17, 22, 20, .08), 0 8px 22px -18px rgba(17, 22, 20, .5);
  transition: box-shadow .3s var(--ease), translate .3s var(--ease);
}
.ev-row[hidden] { display: none; }
/* Date plate: an old black-and-silver number plate */
.ev-plate {
  display: grid; align-content: center; justify-items: center; width: var(--ev-plate); height: var(--ev-plate);
  background: var(--ink); color: var(--ev-silver); border-radius: var(--r);
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(226, 230, 225, .45);
  text-align: center; line-height: 1; transition: background-color .3s var(--ease);
}
.ev-plate__d { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-lt); }
.ev-plate__n { font-size: 2.05rem; font-weight: 800; font-stretch: 74%; margin-top: 3px; }
.ev-plate__n--tba { font-size: 1.25rem; font-stretch: 80%; margin-top: 7px; letter-spacing: .04em; }
.ev-plate__to { font-size: .72rem; margin-top: 3px; color: var(--ev-silver); }
.ev-row__body { min-width: 0; }
.ev-row__name { font-size: clamp(1.1rem, 1.3vw, 1.28rem); font-weight: 750; font-stretch: 100%; line-height: 1.18; }
.ev-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 6px 0 0; font-size: .95rem; color: var(--muted); }
.ev-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-display); font-stretch: 88%; font-weight: 700; font-size: .9rem; color: var(--ink); }
.ev-tag--sig { padding: 3px 9px; background: var(--red); color: #fff; letter-spacing: .02em; }
.ev-row__where { flex-basis: 100%; }

.ev-row__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ev-act {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 13px;
  background: transparent; color: var(--ink); border: 2px solid rgba(17, 22, 20, .22); border-radius: var(--r-btn);
  font-family: var(--f-display); font-stretch: 92%; font-weight: 700; font-size: .93rem; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.ev-act:hover { border-color: var(--ink); }
.ev-cal:hover { background: var(--ink); color: #fff; }
.ev-save[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.ev-save[aria-pressed="true"] .ev-ico--star path { fill: currentColor; }
.ev-done { display: none; font-size: .9rem; color: var(--muted); font-style: italic; }

/* Past dates, when shown */
.ev-row.is-past { background: rgba(245, 246, 242, .55); box-shadow: inset 0 0 0 1px rgba(17, 22, 20, .12); }
.ev-row.is-past .ev-plate { background: #555E59; box-shadow: inset 0 0 0 3px #555E59, inset 0 0 0 4px rgba(226, 230, 225, .4); }
.ev-row.is-past .ev-plate__d { color: var(--ev-silver); }
.ev-row.is-past .ev-row__name { color: #39423E; }
.ev-row.is-past .ev-done { display: inline; }
.ev-row.is-past .ev-save, .ev-row.is-past .ev-cal { display: none; }

/* The club's own show */
.ev-row--sig {
  min-height: 200px; padding: 22px 22px 22px 20px; overflow: clip; isolation: isolate;
  background: var(--green-950); color: var(--on-dark); border-left-color: var(--red);
}
.ev-row__bg { position: absolute; inset: 0; z-index: -1; }
.ev-row__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ev-row__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 24, 18, .95) 0%, rgba(8, 24, 18, .82) 45%, rgba(8, 24, 18, .55) 100%); }
.ev-row--sig .ev-plate { background: var(--red); box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px rgba(255, 255, 255, .55); color: #fff; }
.ev-row--sig .ev-plate__d { color: #fff; }
.ev-row--sig .ev-row__name { font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-stretch: 108%; color: #fff; }
.ev-row--sig .ev-row__meta, .ev-row--sig .ev-tag:not(.ev-tag--sig) { color: #DCE3DE; }
.ev-row--sig .ev-act { color: var(--on-dark); border-color: rgba(232, 207, 138, .7); background: rgba(11, 33, 26, .82); }
.ev-row--sig .ev-cal:hover, .ev-row--sig .ev-save[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.ev-row--sig .ev-done { color: #DCE3DE; }
.ev-row--sig.is-past { background: var(--green-950); box-shadow: none; }
.ev-row--sig.is-past .ev-row__bg img { filter: grayscale(.45); }
.ev-row--sig.is-past .ev-plate { background: var(--red-dk); box-shadow: inset 0 0 0 3px var(--red-dk), inset 0 0 0 4px rgba(255, 255, 255, .45); }
.ev-row--sig.is-past .ev-row__name { color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .ev-row:not(.is-past):hover { translate: 4px 0; box-shadow: 0 1px 0 rgba(17, 22, 20, .08), 0 14px 28px -16px rgba(17, 22, 20, .55); }
  .ev-row:not(.is-past):not(.ev-row--sig):hover .ev-plate { background: var(--green-950); box-shadow: inset 0 0 0 3px var(--green-950), inset 0 0 0 4px rgba(232, 207, 138, .6); }
  .ev-row--sig:hover .ev-row__bg img { transform: scale(1.04); }
}

.ev-empty { padding: 28px; border: 2px dashed rgba(17, 22, 20, .3); border-radius: var(--r); background: var(--paper); margin-bottom: 20px; }
.ev-empty[hidden] { display: none; }
.ev-empty__text { font-family: var(--f-display); font-stretch: 100%; font-weight: 750; font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.3; margin-bottom: 18px; }
.ev-empty .btn-row [hidden] { display: none; }

/* My dates */
.ev-mine { position: sticky; top: 100px; z-index: 20; }
.ev-mine__bar { display: none; }
.ev-mine__panel {
  max-height: calc(100vh - 124px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: var(--r); border-top: 4px solid var(--brass);
  box-shadow: 0 1px 0 rgba(17, 22, 20, .08), 0 18px 40px -24px rgba(17, 22, 20, .6);
}
.ev-mine__pic { height: 150px; overflow: clip; }
.ev-mine__pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.ev-mine__body { padding: 20px 22px 22px; }
.ev-mine__h { font-size: clamp(1.35rem, 1.7vw, 1.6rem); font-stretch: 104%; margin-bottom: 10px; }
.ev-mine__empty { color: var(--muted); font-size: .98rem; }
.ev-mine__empty[hidden] { display: none; }
.ev-mine__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.ev-mine__list:empty { display: none; }
.ev-mine__item { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 6px 0 6px 12px; border-left: 4px solid var(--c, var(--brass)); background: var(--concrete); border-radius: var(--r); }
.ev-mine__d { display: block; font-size: .86rem; color: var(--muted); }
.ev-mine__t { display: block; font-weight: 600; line-height: 1.3; }
.ev-mine__item.is-past .ev-mine__t { color: var(--muted); }
.ev-mine__x { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: var(--r-btn); color: var(--ink); cursor: pointer; }
.ev-mine__x svg { width: 14px; height: 14px; }
.ev-mine__x:hover { background: rgba(17, 22, 20, .08); }
.ev-mine__tba { font-size: .9rem; color: var(--muted); }
.ev-mine__tba[hidden] { display: none; }
.ev-mine__btns { display: grid; gap: 8px; }
.ev-mine__btns .btn { width: 100%; }
.ev-mine__btns .btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Regular meets ---------- */
.ev-regs { padding: clamp(64px, 7vw, 104px) 0; }
.ev-regs .sec-head { position: relative; }
.ev-regs__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 3.5vw, 56px); }
.ev-reg { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: stretch; }
.ev-reg__pic { min-height: 300px; max-height: var(--media-cap); margin-bottom: 30px; }
.ev-reg__pic .frame__media { overflow: clip; }
.ev-reg__pic img { width: 100%; height: 100%; object-fit: cover; }
.ev-reg__card {
  position: relative; z-index: 2; margin: 30px 0 0 -26px; padding: 26px 26px 24px;
  background: var(--green-800); border-top: 3px solid var(--brass); border-radius: var(--r);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .7);
}
.ev-reg__card p { margin: 0; }
.ev-reg__time { margin-top: 12px !important; font-size: 1.5rem; font-weight: 750; color: var(--brass-lt); }
.ev-reg__place { margin-top: 6px !important; color: var(--on-dark-muted); }
.ev-reg__next { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid rgba(201, 160, 74, .35); font-weight: 600; }
.ev-reg__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 18px; }
.ev-reg__btns .textlink { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Photo strip ---------- */
.ev-reelband { padding: clamp(64px, 7vw, 104px) 0; overflow: clip; }
.ev-reelband .sec-head { position: relative; }
.ev-reel { position: relative; padding: 26px 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--brass) transparent; }
.ev-reel:focus-visible { outline-offset: -3px; }
.ev-reel.is-live { overflow: clip; }
.ev-reel::before, .ev-reel::after {
  content: ''; position: absolute; left: 0; right: 0; height: 4px; opacity: .75;
  background: repeating-linear-gradient(90deg, var(--brass) 0 42px, transparent 42px 72px);
}
.ev-reel::before { top: 0; }
.ev-reel::after { bottom: 0; }
.ev-reel.is-live::before, .ev-reel.is-live::after { position: absolute; }
.ev-reel__track { display: flex; width: max-content; will-change: transform; }
.ev-reel__set { display: flex; gap: 22px; margin: 0; padding: 0 22px 0 var(--gut); list-style: none; }
.ev-reel.is-live .ev-reel__set { padding-left: 0; }
.ev-reel__set--dup { display: none; }
.ev-reel.is-live .ev-reel__set--dup { display: flex; }
.ev-shot { position: relative; flex: none; height: clamp(190px, 34vh, 360px); border-radius: var(--r); overflow: clip; background: var(--green-800); }
.ev-shot img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .9s var(--ease); }
.ev-shot::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); box-shadow: inset 0 0 0 1px rgba(232, 207, 138, .25); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .ev-shot:hover img { transform: scale(1.06); }
}
.ev-reel__foot { position: relative; margin-top: 30px; }

/* ---------- Join or ask ---------- */
.ev-cta { position: relative; isolation: isolate; min-height: min(82vh, 760px); display: flex; align-items: flex-end; color: var(--on-dark); background: var(--green-950); overflow: clip; }
.ev-cta__media { position: absolute; inset: 0; z-index: -1; overflow: clip; }
.ev-cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform-origin: 50% 40%; }
.ev-cta__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 24, 18, .96) 0%, rgba(8, 24, 18, .82) 30%, rgba(8, 24, 18, .2) 62%, rgba(8, 24, 18, .35) 100%); }
.ev-cta__inner { position: relative; padding-top: 180px; padding-bottom: clamp(56px, 7vw, 96px); display: grid; gap: 18px; }
.ev-cta__inner .lede { margin: 0; color: #DCE3DE; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1240px) {
  .ev-regs__grid { grid-template-columns: minmax(0, 1fr); }
  .ev-reg { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
@media (max-width: 1280px) {
  .ev-row { grid-template-columns: var(--ev-plate) minmax(0, 1fr); }
  .ev-row__acts { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 980px) {
  .ev-hero__inner { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }

  /* My dates becomes a bar fixed to the bottom of the screen, shown only while the list is in view (events.js adds
     .is-docked). The list keeps room at its foot so the bar never covers the last date. */
  .ev-layout { display: block; padding-bottom: 84px; }
  html.no-js .ev-layout { padding-bottom: 0; }
  .ev-mine {
    position: fixed; top: auto; left: var(--gut); right: var(--gut); bottom: 12px; z-index: 60;
    display: none; flex-direction: column-reverse; max-height: calc(100vh - 110px);
  }
  /* shown only while docked; the slide-up is a CSS animation, so with reduced motion it simply appears */
  .ev-mine.is-docked { display: flex; animation: ev-dock .35s var(--ease) both; }
  .ev-mine__bar {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 16px;
    background: var(--green-950); color: var(--on-dark); border: 2px solid var(--brass); border-radius: var(--r-btn);
    font-family: var(--f-display); font-stretch: 94%; font-weight: 750; font-size: 1.05rem; cursor: pointer;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55);
  }
  .ev-mine__bar .ev-ico--star path { fill: var(--brass); stroke: var(--brass); }
  .ev-mine__n { min-width: 1.9em; padding: 2px 6px; background: var(--brass); color: var(--ink); text-align: center; }
  .ev-mine__chev { width: 14px; height: 10px; margin-left: auto; transition: transform .3s var(--ease); }
  .ev-mine__bar[aria-expanded="true"] .ev-mine__chev { transform: rotate(180deg); }
  .ev-mine__panel { display: none; max-height: min(62vh, 520px); margin-bottom: 8px; border-top-width: 3px; }
  .ev-mine.is-open .ev-mine__panel { display: block; }
  .ev-mine__pic { display: none; }
}
@media (max-width: 700px) {
  .ev-reg { grid-template-columns: minmax(0, 1fr); }
  .ev-reg__pic { min-height: 0; aspect-ratio: 16 / 10; margin: 0 14px 0 0; }
  .ev-reg__card { margin: -36px 0 0 18px; }
}
@media (max-width: 640px) {
  .page-events { --ev-lane-w: 30px; --ev-gap: 14px; --ev-plate: 60px; }
  .ev-row { gap: 12px; padding: 10px; border-left-width: 4px; }
  .ev-row__acts { grid-column: 1 / -1; }
  .ev-plate__d { font-size: .68rem; }
  .ev-plate__n { font-size: 1.65rem; }
  .ev-plate__n--tba { font-size: 1.02rem; }
  .ev-plate__to { font-size: .64rem; }
  .ev-act { padding: 0 11px; font-size: .88rem; }
  .ev-row--sig { padding: 16px 14px; min-height: 0; }
  .ev-stud { width: 12px; height: 12px; margin-top: -6px; left: calc(-1 * var(--ev-gap) - var(--ev-lane-w) / 2 - 6px); }
  .ev-month__head { gap: 10px; }
  .ev-chip { font-size: .92rem; padding: 6px 10px; }
  .ev-next { padding: 18px 18px 20px 24px; }
  .ev-next__btns .btn { width: 100%; }
  .ev-empty { padding: 20px; }
  /* long button labels wrap rather than push past a narrow card */
  #main .btn { white-space: normal; text-align: center; padding-left: 1.05em; padding-right: 1.05em; }
}
@media (max-width: 380px) {
  .ev-month__count { display: none; }
}
@keyframes ev-dock {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-mine.is-docked { animation: none; }
}
