/* events: styles for ext/events.js, the Events page at /community/events. Site tokens only.
   Built from the site's own parts: the homepage's event cards, section heads (.h2 with a muted second half and
   .btn-view on the right), white cards with a fine --rule edge as on the region table, the region map's sliding
   switch, .icon-btn and .btn-view for controls (so they take the site's hover sweep), and mono meta labels.
   Observatory events are filled pale red and labelled; external ones are outlined, dashed, and carry ↗, so the
   two read apart without colour. */

/* ---------------------------------------------------------------- sections */
.evx-sec { padding-top: var(--sp-section); }
.evx-last { padding-bottom: var(--sp-section); }
.evx-top { margin-bottom: clamp(var(--sp-3), 3vw, var(--sp-4)); }
.evx-top .h2 { max-width: 16em; }

/* The site's card: white, a fine rule edge and a soft lift */
.evx-card { border-radius: 24px; background: var(--b-surface); box-shadow: inset 0 0 0 1px var(--rule), 0 8px 24px rgba(var(--b-shadow), .06); }

/* ---------------------------------------------------------------- tags */
.evx-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); }
.evx-tag { display: inline-flex; align-items: center; gap: var(--sp-0-5); min-height: 24px; padding: 0 var(--sp-1); border-radius: 999px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.evx-tag.is-obs { background: var(--lime-200); color: var(--b-tag-ink); }
.evx-tag.is-ext { background: var(--b-surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--control); }
.evx-tag.is-when { background: var(--paper); color: var(--ink-2); }
.evx-tag .ico { width: 11px; height: 11px; stroke-width: 2.2; }
.evx-org { font-size: 13.5px; color: var(--ink-3); }
.evx-org a { color: var(--ink-2); font-weight: 500; }

/* ---------------------------------------------------------------- facts */
.evx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-3); margin: 0; }
.evx-facts > div { display: grid; gap: var(--sp-1); min-width: 0; padding: var(--sp-1-5) 0; }
.evx-facts dt { display: flex; align-items: center; gap: var(--sp-1); font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.evx-facts dt .ico { width: 13px; height: 13px; color: var(--b-primary); }
.evx-facts dd { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); }
/* Label beside value, one fact a row */
.evx-facts.is-tight { grid-template-columns: minmax(0, 1fr); }
.evx-facts.is-tight > div { grid-template-columns: 126px minmax(0, 1fr); align-items: baseline; gap: var(--sp-1); padding: var(--sp-1) 0; }
.evx-facts.is-tight dd { font-size: 14px; }

/* ---------------------------------------------------------------- next from the Observatory */
/* The featured card stretches to the column beside it, so the two end on one line */
.evx-feat-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--sp-grid); align-items: stretch; }
.evx-feat { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
/* The homepage card's picture, at the same 8px inset and 16px radius */
.evx-feat-art { position: relative; display: block; min-height: 340px; height: calc(100% - 16px); margin: var(--sp-1); border-radius: 16px; overflow: hidden; background: var(--b-tile); }
.evx-feat-art svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.evx-feat-body { display: flex; flex-direction: column; gap: var(--sp-1-5); padding: var(--sp-3) var(--sp-4) var(--sp-4) var(--sp-2); }
.evx-feat .tp-meta { margin: var(--sp-0-5) 0 0; }
.evx-feat h3 { margin: 0; font: 500 clamp(1.55rem, 2.3vw, 2.05rem)/1.08 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.evx-feat h3 a { color: var(--ink); text-decoration: none; }
.evx-feat h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.evx-sum { margin: 0 0 var(--sp-1); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.evx-note { display: flex; align-items: flex-start; gap: var(--sp-1); margin: 0; padding: var(--sp-1) var(--sp-2); border-radius: 14px; background: var(--paper); font-size: 14px; color: var(--ink-2); }
.evx-note .ico { width: 16px; height: 16px; margin-top: 1px; color: var(--b-primary); }
.evx-acts { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: auto; padding-top: var(--sp-1); }

.evx-side { display: grid; gap: var(--sp-2); min-width: 0; }
.tp-row.evx-one { grid-template-columns: minmax(0, 1fr); margin: 0; }
.evx-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-2); padding: var(--sp-card); color: var(--ink); text-decoration: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.evx-link b { display: block; margin-bottom: var(--sp-0-5); font: 500 18px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.evx-link > span:first-child { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.evx-go { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: var(--b-surface-2); color: var(--ink); transition: background-color .2s, color .2s; }
.evx-go .ico { width: 17px; height: 17px; transition: transform .2s; }
.evx-link:hover { color: var(--ink); transform: translateY(-2px); }
.evx-link:hover .evx-go { background: var(--lime); color: var(--b-accent-ink); }
.evx-link:hover .evx-go .ico { transform: translateX(3px); }

/* ---------------------------------------------------------------- calendar controls */
/* .btn-view drawn on a <button> keeps the link's look */
.evx button.btn-view { border: 0; font: 500 12px/1 var(--font-mono); cursor: pointer; }
.evx-calacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1-5); }
/* The filter is the site's switch (.seg, in styles.css); the calendar file beside it shares its 42px height */
.evx-calacts .btn-view { height: 50px; padding: 0 var(--sp-3); }

/* ---------------------------------------------------------------- the month: its bar, grid and key */
.evx-mbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-1-5); }
.evx-mtitle { margin: 0; font: 500 24px/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.evx-mtitle span { color: var(--ink-3); }
.evx-mnav { display: flex; align-items: center; gap: var(--sp-1); }
.evx-ib .ico { width: 18px; height: 18px; transform: rotate(90deg); }
.evx-ib.is-next .ico { transform: rotate(-90deg); }
.evx-ib:disabled { opacity: .4; cursor: default; }
.evx-today[aria-disabled="true"] { opacity: .5; cursor: default; }
.evx-grid { table-layout: fixed; border-collapse: separate; }
.evx-grid th { font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.evx-grid td { vertical-align: top; }
.evx-mfoot { display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.evx-key { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.evx-key li { display: inline-flex; align-items: center; font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.evx-key .ico { width: 13px; height: 13px; color: var(--b-primary); }
.evx-sw { width: 16px; height: 11px; border-radius: 3px; }
.evx-sw.is-obs { background: var(--lime-200); }
.evx-sw.is-ext { border: 1px dashed var(--control); background: var(--b-surface); }
.evx-keys { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.evx-none { margin: 0; color: var(--ink-3); font-size: 15px; }

/* ---------------------------------------------------------------- elsewhere: rows in one card, like the region table */
.evx-xcard { padding: var(--sp-0-5) var(--sp-3); }
.evx-xl { list-style: none; margin: 0; padding: 0; }
.evx-x { display: grid; grid-template-columns: 96px minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); align-items: start; padding: var(--sp-3) 0; border-bottom: 1px solid var(--rule); }
.evx-x:last-child { border-bottom: 0; }
.evx-x-date { display: grid; gap: var(--sp-1); padding-top: 2px; }
.evx-x-date b { font: 500 28px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.evx-x-date span { font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.evx-x-main { display: grid; gap: var(--sp-1); align-content: start; min-width: 0; }
.evx-x h3 { margin: 2px 0 0; font: 500 19px/1.22 var(--font-display); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.evx-x p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.evx-x .evx-facts > div:first-child { border-top: 0; padding-top: 2px; }

/* ---------------------------------------------------------------- past */
.tp-row.evx-pastrow { margin-top: 0; }
/* Past events: a subtle edge and a quieted look, so they read as done; pointing at one brings it back */
.evx-pastrow .nc { outline: 1px solid var(--rule); outline-offset: -1px; }
.evx-pastrow .evc-art { filter: grayscale(.75); opacity: .6; transition: filter .3s, opacity .3s; }
.evx-pastrow .tp-t { color: var(--ink-2); }
.evx-pastrow .tp-d, .evx-pastrow .tp-meta { color: var(--ink-3); }
.evx-pastrow .nc:hover .evc-art, .evx-pastrow .nc:focus-visible .evc-art { filter: none; opacity: 1; }
.evx-pastrow .nc:hover .tp-t { color: var(--ink); }
.evx-pastext li > b { color: var(--ink-2); }
.evx-after { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.evx-after .ico { width: 15px; height: 15px; color: var(--b-primary); }
.evx-pastext { margin-top: var(--sp-2); padding: var(--sp-2-5) var(--sp-3) var(--sp-1); }
.evx-pastext h3 { margin: 0 0 var(--sp-1-5); font: 500 18px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.evx-pastext ul { list-style: none; margin: 0; padding: 0; }
.evx-pastext li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); padding: var(--sp-1-5) 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.evx-pastext li b { font-weight: 500; color: var(--ink); }
.evx-pastext li > span:last-child { color: var(--ink-3); }
.evx-pastext a { color: var(--ink-2); }

/* ---------------------------------------------------------------- the month beside its list (picked 23 Oct from four)
   The month: numbers in circles, no tiles. A dark circle glides to the chosen day; a multi-day event is one band
   behind its dates (pale red for the Observatory's, the switch's grey for others'); dots and a clock underneath.
   The list beside it matches the month's height and scrolls inside itself, fading at its edges, with a line where
   today falls. Pointing at either side lights the other. A new month slides in from the side it lies on. */
.evx-cal-body.is-d { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--sp-2); align-items: stretch; }
.is-d .evx-month { display: flex; flex-direction: column; padding: var(--sp-3) var(--sp-2) var(--sp-2); }
.is-d .evx-mbar { padding: 0 var(--sp-1) var(--sp-2); }
.evx-gwrap { position: relative; isolation: isolate; }
.is-d .evx-grid { border-spacing: 0 4px; margin: 0; width: 100%; }
.is-d .evx-grid th { padding: 0 0 var(--sp-1-5); border-bottom: 0; text-align: center; font-size: 10.5px; color: var(--ink-3); }
.is-d .evx-grid td { position: relative; padding: 0; }
.is-d .evx-day { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: var(--sp-0-5); width: 100%; padding: 3px 0 var(--sp-0-5); border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.is-d .evx-day:focus-visible { outline: 0; }
.is-d .evx-day:focus-visible .evx-num { outline: 2px solid var(--focus); outline-offset: 2px; }
.evx-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); font: 500 15px/1 var(--font-text); font-variant-numeric: tabular-nums; transition: color .3s ease, background-color .2s ease, box-shadow .2s ease; }
.is-d .evx-day:hover .evx-num { background: var(--b-tile); }
.is-d .is-past .evx-num { color: var(--ink-3); }
.is-d .has-ev .evx-num { font-weight: 600; }
.is-d .evx-day[aria-current="date"] .evx-num { color: var(--b-primary); box-shadow: inset 0 0 0 1.5px var(--b-primary); }
.is-d [aria-selected="true"] .evx-num, .is-d [aria-selected="true"] .evx-day:hover .evx-num { background: transparent; color: var(--b-surface); box-shadow: none; }
.is-d td.is-hl .evx-num { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.is-d td[aria-selected="true"].is-hl .evx-num { box-shadow: none; }
.evx-marks { display: flex; align-items: center; justify-content: center; gap: 3px; height: 8px; }
.evx-marks i { width: 6px; height: 6px; border-radius: 50%; }
.evx-marks i.is-obs { background: var(--b-primary); }
.evx-marks i.is-ext { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.evx-marks .ico { width: 10px; height: 10px; color: var(--b-primary); stroke-width: 2.4; }
/* The chosen day's circle; it moves rather than reappears */
.evx-glide { position: absolute; top: 0; left: 0; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); box-shadow: 0 8px 18px -6px rgba(var(--b-shadow), .55); pointer-events: none; transition: transform .5s cubic-bezier(.3, 1.25, .45, 1), opacity .2s; }
.evx-gwrap.no-anim .evx-glide { transition: none; }
/* A multi-day event: one band behind its dates, rounded where it starts and ends, and at the edges of a week */
.is-d td.rng::before { content: ""; position: absolute; z-index: 0; top: 7px; left: 0; right: 0; height: 40px; background: var(--lime-200); }
.is-d td.rng.is-ext::before { background: var(--b-tile); }
.is-d td.rng-s::before { left: calc(50% - 20px); border-radius: 20px 0 0 20px; }
.is-d td.rng-e::before { right: calc(50% - 20px); border-radius: 0 20px 20px 0; }
.is-d td.rng-m:first-child::before { left: 4px; border-radius: 20px 0 0 20px; }
.is-d td.rng-m:last-child::before, .is-d td.rng-s:last-child::before { right: 4px; border-radius: 0 20px 20px 0; }
.is-d td.rng-s:last-child::before { border-radius: 20px; }
.is-d td.rng-e:first-child::before { left: 4px; border-radius: 20px; }
.is-d td.rng.is-hl::before { box-shadow: inset 0 0 0 1px rgba(var(--b-shadow), .14); }
.is-d .evx-mfoot { flex-direction: column; align-items: flex-start; gap: var(--sp-1); margin-top: auto; padding-top: var(--sp-2); }
.evx-key.is-sum { gap: var(--sp-1); }
.evx-key.is-sum li { gap: var(--sp-1); min-height: 30px; padding: 0 var(--sp-1-5) 0 var(--sp-1); border-radius: 999px; background: color-mix(in srgb, var(--paper) 55%, var(--b-surface)); box-shadow: inset 0 0 0 1px var(--rule); }
.evx-key.is-sum b { font: 600 13px/1 var(--font-text); letter-spacing: 0; color: var(--ink); }

.evx-mlist { display: flex; flex-direction: column; min-height: 0; padding: var(--sp-3) var(--sp-1) var(--sp-1) var(--sp-3); }
.evx-ml-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-1-5); padding-right: var(--sp-1-5); }
.evx-ml-h h3 { margin: 0; font: 500 24px/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.evx-ml-h h3 span { color: var(--ink-3); }
.evx-ml-sel { margin: var(--sp-1) var(--sp-1-5) var(--sp-1-5) 0; padding: var(--sp-1) var(--sp-2); border-radius: 12px; background: color-mix(in srgb, var(--paper) 55%, var(--b-surface)); font-size: 14px; color: var(--ink-2); }
.evx-ml-sel b { font-weight: 500; color: var(--ink); }
/* The list scrolls inside itself and fades at the edges, so it ends where the month ends */
.evx-mll { list-style: none; display: grid; align-content: start; gap: var(--sp-1); flex: 1 1 0; min-height: 0; overflow: auto; margin: 0; padding: var(--sp-1) var(--sp-1-5) var(--sp-2) 2px; scrollbar-width: thin; scrollbar-color: var(--b-tile) transparent;
  -webkit-mask-image: linear-gradient(transparent, #000 12px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(transparent, #000 12px, #000 calc(100% - 22px), transparent); }
.evx-mll.is-empty { display: block; padding-top: var(--sp-1); -webkit-mask-image: none; mask-image: none; }
.evx-ml { position: relative; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-card-nested); border: 1px solid transparent; border-radius: 18px; background: color-mix(in srgb, var(--paper) 55%, var(--b-surface)); transition: background-color .25s, box-shadow .25s, border-color .25s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.evx-ml.is-ext { border: 1px dashed var(--control); background: var(--b-surface); }
.evx-ml.is-hl { background: color-mix(in srgb, var(--b-accent-200) 40%, var(--b-surface)); transform: translateX(2px); }
.evx-ml.is-ext.is-hl { background: color-mix(in srgb, var(--b-tile) 45%, var(--b-surface)); }
.evx-ml.is-on { border-color: transparent; background: var(--b-surface); box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 24px -14px rgba(var(--b-shadow), .4); }
.evx-ml.is-past, .evx-ml.is-ext.is-past { border: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 35%, var(--b-surface)); box-shadow: none; }
.evx-ml.is-past .evx-ml-m { opacity: .55; filter: grayscale(.6); }
.evx-ml.is-past .evx-ml-d, .evx-ml.is-obs.is-past .evx-ml-d { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-3); }
.evx-ml.is-past.is-hl { background: color-mix(in srgb, var(--paper) 60%, var(--b-surface)); transform: none; }
.evx-ml.is-past.is-on { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.evx-ml.is-past.is-on .evx-ml-d { background: var(--ink-3); color: var(--b-surface); }
.evx-ml-d { display: grid; align-content: start; justify-items: center; gap: var(--sp-1); height: fit-content; padding: var(--sp-2) var(--sp-1) var(--sp-1-5); border: 0; border-radius: 16px; background: var(--b-surface); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); text-align: center; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.evx-ml.is-obs .evx-ml-d { background: var(--lime-200); box-shadow: none; color: var(--b-tag-ink); }
.evx-ml.is-on .evx-ml-d { background: var(--ink); color: var(--b-surface); box-shadow: none; }
.evx-ml.is-on .evx-ml-d span { color: var(--b-surface); opacity: .75; }
.evx-ml-d b { font: 500 26px/1 var(--font-display); letter-spacing: -0.03em; }
.evx-ml-d b:has(small) { font-size: 19px; letter-spacing: -0.02em; }
.evx-ml-d b small { font-size: 13px; letter-spacing: -0.01em; }
.evx-ml-d span { font: 500 10px/1 var(--font-mono); letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; color: inherit; opacity: .8; }
.evx-ml-d:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.evx-ml-m { display: grid; gap: var(--sp-1); min-width: 0; }
.evx-ml h4 { margin: 0; font: 500 17px/1.25 var(--font-display); letter-spacing: -0.012em; color: var(--ink); }
.evx-ml h4 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.evx-ml-f { display: flex; flex-wrap: wrap; gap: var(--sp-0-5) var(--sp-2); font-size: 13.5px; color: var(--ink-2); }
.evx-ml-f > span { display: inline-flex; align-items: center; gap: var(--sp-0-5); }
.evx-ml-f .ico { width: 13px; height: 13px; color: var(--b-primary); }
/* Where today falls in the month */
.evx-now { display: flex; align-items: center; gap: var(--sp-1); margin: 2px 0; font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--b-primary); }
.evx-now::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--b-primary); box-shadow: 0 0 0 4px var(--lime-200); }
.evx-now::after { content: ""; flex: 1; height: 1.5px; background: linear-gradient(90deg, var(--b-primary), transparent); }

@media (prefers-reduced-motion: no-preference) {
  /* A new month slides in from the side it lies on; the list's items follow one after another */
  .evx-cal-body.is-in > * { animation: evx-slide .45s cubic-bezier(.2, .8, .2, 1) both; }
  .evx-cal-body.is-in > .evx-mlist { animation-delay: .05s; }
  @keyframes evx-slide { from { opacity: 0; transform: translateX(calc(var(--dir) * 18px)); } }
  .evx-cal-body.is-in .evx-ml { animation: evx-rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.08s + min(var(--k), 8) * .04s); }
  @keyframes evx-rise { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) { .evx-glide, .evx-ml { transition: none; } }
@media (min-width: 981px) {
  /* The month sets the height; the list fills it and scrolls */
  .is-d .evx-mlist { height: 0; min-height: 100%; }
}

/* ---------------------------------------------------------------- narrower */
@media (max-width: 1180px) {
  .evx-feat-grid { grid-template-columns: minmax(0, 1fr); }
  .evx-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .evx-side .evx-one { grid-row: span 2; }
}
@media (max-width: 980px) {
  .evx-x { grid-template-columns: 80px minmax(0, 1fr); }
  .evx-x .evx-facts { grid-column: 2; }
  .evx-x .evx-facts > div:first-child { border-top: 1px solid var(--rule); padding-top: var(--sp-1); }
}
@media (max-width: 760px) {
  .evx-feat { grid-template-columns: minmax(0, 1fr); }
  .evx-feat-art { min-height: 190px; margin: var(--sp-1) var(--sp-1) 0; }
  .evx-feat-body { padding: var(--sp-2-5) var(--sp-2-5) var(--sp-3); }
  .evx-facts { grid-template-columns: minmax(0, 1fr); }
  .evx-side { grid-template-columns: minmax(0, 1fr); }
  .evx-calacts, .evx-who { width: 100%; }
  .evx-who button { flex: 1; min-width: 0; padding: 0 var(--sp-1); }
  .evx-mtitle { font-size: 19px; white-space: nowrap; }
  .evx-mnav { gap: var(--sp-1); }
  .evx-mnav .icon-btn { width: 40px; height: 40px; }
  .evx-mnav .btn-view { height: 40px; padding: 0 var(--sp-1-5); }
  .evx-xcard { padding: 2px var(--sp-2); }
  .evx-x { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); padding: var(--sp-2) 0; }
  .evx-x-date { display: flex; align-items: baseline; gap: var(--sp-1); }
  .evx-x-date b { font-size: 22px; }
  .evx-x .evx-facts { grid-column: auto; }
  .evx-facts.is-tight > div { grid-template-columns: 122px minmax(0, 1fr); }
  .evx-keys { display: none; }
  .is-d .evx-month { padding: var(--sp-2) var(--sp-1) var(--sp-1-5); }
  .evx-num, .evx-glide { width: 36px; height: 36px; }
  .is-d td.rng::before { top: 5px; height: 36px; }
  .is-d td.rng-s::before { left: calc(50% - 18px); }
  .is-d td.rng-e::before { right: calc(50% - 18px); }
  .evx-mll { -webkit-mask-image: none; mask-image: none; }
  .evx-mlist { padding: var(--sp-2) var(--sp-1) var(--sp-1) var(--sp-2); }
  .evx-mll { max-height: none; overflow: visible; }
  .evx-ml { grid-template-columns: 70px minmax(0, 1fr); gap: var(--sp-1-5); }
}
@media (max-width: 980px) {
  .evx-cal-body.is-d { grid-template-columns: minmax(0, 1fr); }
}

/* The side link cards are the site's .nc card: white layer with the notch and corner arrow, the same lift and shadow on hover */
.evx-link.nc { grid-template-columns: minmax(0, 1fr); padding-right: calc(var(--sp-card) + 48px); background: none; box-shadow: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s; }
.evx-link.nc:hover { transform: translateY(-3px); filter: drop-shadow(0 16px 16px rgba(var(--b-shadow), .1)); }
