/* events-home.css — the events.oectahw.com home (Events Portal redesign, stage 1 slices 3-5, 2026-11-03 + 2026-11-06; Figma
   OjwnKccen1n3Bsvt1wVkoZ, frames 6:52 / 7:264 / 14:537 / 14:655 / 15:811). Linked only by index-events.html. Tokens only: --oecta-* and
   color-mix() of them (oecta-components.css is admin-synced, so these start here with an ep- prefix and move to the shared
   base later). The design system's 12px tags and date tile are 13px here; nothing on this screen is smaller. */

/* ── The page: it sits beside the Google Site (oectahw.com), so it wears its typeface and its white ground, and the header's
   band tokens become the Site's plain bar. Paul 2026-11-06. ─────────────────────────────────── */
body {
  --oecta-font-display: 'Lato', 'Segoe UI', sans-serif;
  --oecta-font-body: 'Lato', 'Segoe UI', sans-serif;
  --oecta-font-mono: 'Lato', 'Segoe UI', sans-serif;
  background-color: var(--oecta-surface-lowest);
}
.content-wrapper { max-width: none; margin: 0; padding: 0; }
.content-wrapper > .tab-section:not(#tab-home, #tab-tickets, #tab-account) { box-sizing: border-box; max-width: 1100px; margin: 8px auto 15px; padding-inline: 10px; }
@media (max-width: 800px) { .content-wrapper { padding: 0; } }
/* the floating chevron sat over the stream; the list is plainly a list */
#scroll-hint, #scroll-hint.visible { display: none; }
#tab-home .hidden { display: none !important; }
.ep-home {
  --ep-gutter: var(--oecta-space-lg);
  box-sizing: border-box;
  margin-inline: auto;
  max-width: calc(var(--ep-column) + 2 * var(--oecta-space-xl));
  color: var(--oecta-on-surface);
  font-family: var(--oecta-font-body);
}
.ep-home *, .ep-header * { box-sizing: border-box; }
.ep-icon { display: inline-flex; flex-shrink: 0; }

/* ── Header: the Navy Silk mid tone in both themes ────────────────────────────────────────── */
.ep-header {
  --oecta-on-band: var(--oecta-on-surface);
  --oecta-on-band-2: var(--oecta-on-surface-variant);
  --oecta-on-band-fill: var(--oecta-surface-container);
  --oecta-on-band-fill-hover: var(--oecta-surface-high);
  --oecta-on-band-line: var(--oecta-outline-variant);
  --oecta-focus-ring-on-band: var(--oecta-focus-ring);
  position: sticky;
  top: 0;
  z-index: var(--oecta-z-nav);
  background: var(--oecta-surface-lowest);
  box-shadow: var(--oecta-shadow-sm);
  color: var(--oecta-on-band);
  padding-top: env(safe-area-inset-top, 0px);
}
.ep-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--oecta-space-sm);
  height: 56px;
  margin-inline: auto;
  max-width: calc(var(--ep-column) + 2 * var(--oecta-space-xl));
  padding-inline: var(--oecta-space-lg) var(--oecta-space-md);
}
.ep-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  border-radius: var(--oecta-radius-md);
  color: var(--oecta-on-band);
  text-decoration: none;
}
.ep-header__seal { flex-shrink: 0; width: 40px; height: 40px; }
.ep-header__word { display: flex; flex-direction: column; min-width: 0; white-space: nowrap; }
.ep-header__title { font-family: var(--oecta-font-display); font-weight: var(--oecta-weight-bold); font-size: 16px; line-height: 19px; color: var(--oecta-on-band); }
.ep-header__sub { font-weight: var(--oecta-weight-regular); font-size: 13px; line-height: 16px; color: var(--oecta-on-band-2); }
.ep-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-inline-start: auto; }
.ep-header__icon {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--oecta-radius-pill);
  background: var(--oecta-on-band-fill);
  color: var(--oecta-on-band);
  cursor: pointer;
}
.ep-header__icon:hover { background: var(--oecta-on-band-fill-hover); }
.ep-header :is(a, button):focus-visible { outline: none; box-shadow: var(--oecta-focus-ring-on-band); }

/* Sign in: on-band secondary, white on navy (amber stays for the one main action) */
.ep-header .nav-session-wrapper { display: flex; align-items: center; gap: var(--oecta-space-sm); height: auto; padding: 0; }
.ep-header .events-signin-btn {
  appearance: none;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--oecta-radius-md);
  background: var(--oecta-primary-container);
  color: var(--oecta-on-primary-container);
  font-family: var(--oecta-font-body);
  font-weight: var(--oecta-weight-semibold);
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}
.ep-header .events-signin-btn:hover { background: var(--oecta-primary); }
.ep-header .user-indicator-group { display: flex; align-items: center; gap: var(--oecta-space-xs); height: auto; padding: 0; border: 0; }
.ep-header .user-indicator-group:hover { background: none; }   /* style2.css paints it near-white */
.ep-header .user-name-pill {
  appearance: none;
  display: inline-block;
  max-width: 96px;
  min-height: 44px;
  padding: 0 var(--oecta-space-sm);
  border: 0;
  border-radius: var(--oecta-radius-md);
  background: none;
  color: var(--oecta-on-band);
  font-family: var(--oecta-font-body);
  font-weight: var(--oecta-weight-bold);
  cursor: pointer;
  font-size: 14px;
  line-height: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ep-header .user-name-pill:hover { background: var(--oecta-on-band-fill); color: var(--oecta-on-band); }
.ep-header .user-logout-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--oecta-radius-pill);
  background: transparent;
  color: var(--oecta-on-band);
  cursor: pointer;
  transform: none;
}
.ep-header .user-logout-btn:hover { background: var(--oecta-on-band-fill); color: var(--oecta-on-band); transform: none; }
/* Phones: initials open Account, where Sign out lives. From 768px the name and the sign-out button sit in the header. */
.ep-header .user-name-pill:has(.ep-ini) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  max-width: none;
  padding: 0;
  border: 1px solid var(--oecta-on-band-line);
  border-radius: var(--oecta-radius-pill);
  background: var(--oecta-on-band-fill);
  font-size: 15px;
  line-height: 18px;
}
.ep-name { display: none; }
.ep-header .user-logout-btn { display: none; }

/* The search box: over the header on a phone once the button opens it, in the header from 768px */
.ep-header .header-search-zone { display: none; flex: 1; max-width: none; margin: 0; min-width: 0; }
.ep-header__close { display: none; }
.ep-header.is-searching .header-search-zone,
.ep-header.is-searching .ep-header__close { display: flex; }
.ep-header.is-searching :is(.ep-header__brand, .ep-header__actions) { display: none; }
/* #mep-header: header-search-bar.css (linked later) and style2.css's dark-mode input rules are !important */
#mep-header .header-search-bar {
  flex: 1;
  min-width: 0;
  height: 44px !important;
  min-height: 44px !important;
  border-radius: var(--oecta-radius-pill) !important;
  background: var(--oecta-on-band-fill) !important;
  box-shadow: inset 0 0 0 1px var(--oecta-on-band-line);   /* not a border: the input keeps the full 44px */
}
#mep-header .header-search-bar:hover { background: var(--oecta-on-band-fill-hover) !important; }
#mep-header .header-search-bar:focus-within { background: var(--oecta-on-band-fill-hover) !important; box-shadow: var(--oecta-focus-ring-on-band); }
#mep-header .header-search-icon { position: absolute; left: var(--oecta-space-lg); color: var(--oecta-on-band); pointer-events: none; }
#mep-header .header-search-input { padding: 0 var(--oecta-space-3xl) 0 48px !important; border: 0 !important; background: transparent !important; color: var(--oecta-on-band) !important; line-height: 20px !important; box-shadow: none !important; }
#mep-header .header-search-input::placeholder { color: var(--oecta-on-band-2) !important; opacity: 1; }
#mep-header .header-search-clear { right: 0; width: 44px; height: 44px; border-radius: var(--oecta-radius-pill); background: transparent; color: var(--oecta-on-band); }
#mep-header .header-search-clear:hover { background: var(--oecta-on-band-fill); }
#mep-header .header-search-clear.hidden { display: none; }
#mep-header .header-search-clear svg { display: block; }

@media (min-width: 768px) {
  .ep-header__inner { gap: var(--oecta-space-xl); height: 64px; padding-inline: var(--ep-header-gutter); }
  .ep-header__brand { display: none; }
  .ep-header .header-search-zone { display: flex; flex: 1 1 auto; max-width: 720px; }
  .ep-header__actions #ep-search-open, .ep-header__close { display: none !important; }
  .ep-header .user-name-pill:has(.ep-ini) { display: inline-block; width: auto; max-width: 240px; padding: 0 var(--oecta-space-sm); border: 0; border-radius: var(--oecta-radius-md); background: none; font-size: 14px; line-height: 44px; }
  .ep-ini { display: none; }
  .ep-name { display: inline; }
  .ep-header .user-logout-btn { display: inline-flex; }
  .ep-header.is-searching .ep-header__actions { display: flex; }
}

/* The Google Site's banner, as the Site shows it: a picture in the page, never a band across it; from 768px. */
:root {
  --ep-header-gutter: var(--oecta-space-xl);
  --ep-column: 1280px;   /* one column for the banner, the events bar and the content: the banner's own width, so it stays sharp */
}
.ep-banner { display: none; }
@media (min-width: 768px) {
  .ep-banner { display: flex; justify-content: center; padding: var(--oecta-space-xl) var(--ep-header-gutter) var(--oecta-space-lg); }
  .ep-banner img { display: block; width: 100%; max-width: var(--ep-column); height: auto; }
}

/* The events bar, from 768px: Events and My tickets on the left, the search, then the account */
.ep-nav { display: none; }
.ep-nav__link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding-inline: var(--oecta-space-md);
  border-bottom: 3px solid transparent;
  color: var(--oecta-on-band-2);
  font-weight: var(--oecta-weight-regular);
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.ep-nav__link:hover { color: var(--oecta-on-band); }
.ep-nav__link.is-active { border-bottom-color: var(--oecta-accent); color: var(--oecta-on-band); font-weight: var(--oecta-weight-bold); }

/* ── Title row + List / Month ─────────────────────────────────────────────────────────────── */
.ep-titlebar { display: flex; align-items: center; gap: var(--oecta-space-md); padding: 20px var(--ep-gutter) 12px; }
.ep-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--oecta-font-display);
  font-weight: var(--oecta-weight-regular);
  font-size: 32px;
  line-height: 40px;
  color: var(--oecta-primary-text);
  overflow-wrap: anywhere;
}
.ep-switch { display: flex; flex-shrink: 0; border-radius: var(--oecta-radius-pill); background: var(--oecta-surface-container); }
/* a 44px target; the 40px pill Figma draws is the ::before, 2px in */
.ep-switch__seg {
  appearance: none;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: var(--oecta-radius-pill);
  background: transparent;
  color: var(--oecta-on-surface-variant);
  font-family: var(--oecta-font-body);
  font-weight: var(--oecta-weight-medium);
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
}
.ep-switch__seg::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: var(--oecta-radius-pill);
}
.ep-switch__seg.is-active { color: var(--oecta-primary-text); font-weight: var(--oecta-weight-bold); }
.ep-switch__seg.is-active::before { background: var(--oecta-surface-lowest); box-shadow: var(--oecta-shadow-sm); }
.ep-switch__seg:focus-visible, .ep-chip:focus-visible, .ep-fail__retry:focus-visible, .ep-clear:focus-visible, .ep-earlier__sum:focus-visible,
.ep-key:focus-visible, .ep-next:focus-visible, .ep-card__act:focus-visible, .ep-tool:focus-visible, .ep-fopt:focus-visible, .ep-fpanel__clear:focus-visible,
.ep-sortmenu__i:focus-visible, .ep-cell__n:focus-visible { outline: none; box-shadow: var(--oecta-focus-ring); }
@media (max-width: 359px) {
  /* 320px: the icons give way so "Events" and both words fit */
  .ep-switch__seg svg { display: none; }
  .ep-switch__seg { padding-inline: 12px; }
}

.ep-tile {
  position: absolute;
  top: var(--oecta-space-md);
  left: var(--oecta-space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  padding: var(--oecta-space-sm) var(--oecta-space-sm) 10px;
  border-radius: var(--oecta-radius-lg);
  background: var(--oecta-surface-lowest);
  box-shadow: var(--oecta-shadow-md);
  white-space: nowrap;
}
.ep-tile__m, .ep-tile__w {
  font-weight: var(--oecta-weight-bold);
  font-size: 13px;
  line-height: 14px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--oecta-on-surface-variant);
}
.ep-tile__d { font-family: var(--oecta-font-mono); font-variant-numeric: tabular-nums; font-weight: var(--oecta-weight-semibold); font-size: 28px; line-height: 30px; color: var(--oecta-on-surface); }

/* The three kinds' markers, on the chips and the rows */
.ep-kind { display: inline-block; flex-shrink: 0; width: 9px; height: 9px; border-radius: var(--oecta-radius-round); }
.ep-kind--here { background: var(--oecta-primary-container); }
.ep-kind--oecta { background: var(--oecta-channel-violet); }
.ep-kind--dates { border: 2px solid var(--oecta-text-muted); }
/* An Around OECTA item's KIND (2026-11-09: the kind acts the same on both sites) in the members site's colours —
   ao-event-card.css .ao-evc--k-* sets --aoe-kind-bg — on the month's dots and cells and on the row's chip. A Notice is a
   ring (its colour is too pale for a dot), as members' calendar gives it a grey stripe. The word is always printed too. */
.ep-kind--ao { background: var(--aoe-kind-bg); }
.ep-kind--ao.ao-evc--k-notice { background: none; box-shadow: inset 0 0 0 2px var(--oecta-text-muted); }
.ep-aok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: var(--oecta-radius-pill);
  font-family: var(--oecta-font-body);
  font-weight: var(--oecta-weight-semibold);
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  color: var(--oecta-on-surface);
}
.ep-aok { background: color-mix(in srgb, var(--aoe-kind-bg) 14%, var(--oecta-surface-lowest)); }
.ep-aok::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: var(--oecta-radius-round); background: var(--aoe-kind-bg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--oecta-on-surface) 18%, transparent); }
.ep-aok.ao-evc--k-notice::before { background: none; box-shadow: inset 0 0 0 1.5px var(--oecta-text-muted); }

/* ── Filter chips ─────────────────────────────────────────────────────────────────────────── */
.ep-chips {
  display: flex;
  gap: 6px;
  padding: 4px var(--ep-gutter) 6px;
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}
.ep-chips::-webkit-scrollbar { display: none; }
.ep-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 7px;
  min-width: 52px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--oecta-radius-pill);
  background: var(--oecta-surface-container);
  color: var(--oecta-on-surface-variant);
  font-family: var(--oecta-font-body);
  font-weight: var(--oecta-weight-medium);
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
}
.ep-chip:hover { background: var(--oecta-surface-high); }
.ep-chip.is-active { background: var(--oecta-primary-container); color: var(--oecta-on-primary-container); font-weight: var(--oecta-weight-semibold); }
.ep-chip.is-active .ep-kind { display: none; }
.ep-chip[hidden] { display: none; }

/* ── The stream ───────────────────────────────────────────────────────────────────────────── */
#view-list { padding: var(--oecta-space-sm) var(--ep-gutter) 28px; }
.ep-stream, #events-list-container { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ep-month { margin: 0; padding: 14px 0 2px; font-family: var(--oecta-font-display); font-weight: var(--oecta-weight-regular); font-size: 24px; line-height: 30px; color: var(--oecta-primary-text); }
/* ── The card (Paul 2026-11-09, picture QMSm4ENZHp2SHzi7p7bPhk, "ok build"): every event wears the same one — the date with
   its weekday, a picture or a colour, the title and tagline, a clock line and a place line, its tags, its status and ONE
   action. A phone drops the picture; Cards puts it on top; a chosen day drops the date; the Month's side panel keeps words. ── */
.ep-group { display: flex; flex-direction: column; min-width: 0; }
.ep-group__items { display: flex; flex-direction: column; gap: var(--oecta-space-sm); min-width: 0; }
.ep-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas: "date body" "side side";
  gap: var(--oecta-space-md) var(--oecta-space-md);
  align-items: start;
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: var(--oecta-surface-lowest);
  box-shadow: var(--oecta-shadow-md);
}
.ep-card:hover { box-shadow: var(--oecta-shadow-lg); }
.ep-card__date {
  grid-area: date;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: 64px;
  border-radius: var(--oecta-radius-lg);
  background: var(--oecta-surface-container);
  white-space: nowrap;
}
.ep-card__dow, .ep-card__mon { font-weight: var(--oecta-weight-bold); font-size: 13px; line-height: 14px; letter-spacing: 1.04px; color: var(--oecta-on-surface-variant); }
.ep-card__d { font-family: var(--oecta-font-mono); font-variant-numeric: tabular-nums; font-weight: var(--oecta-weight-bold); font-size: 24px; line-height: 28px; color: var(--oecta-primary-text); }
.ep-card__media { display: none; grid-area: media; position: relative; overflow: hidden; border-radius: var(--oecta-radius-lg); background: var(--oecta-surface-container); }
.ep-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* no photo: Hamilton-Wentworth's navy silk, OECTA's violet, an Around OECTA item's kind or the office's own style (the
   showcase's art, events-showcase.css) */
.ep-card__media--art { display: none; align-items: flex-end; padding: 10px 12px; color: var(--oecta-on-primary); }
.ep-card__media--hw { background-color: var(--oecta-silk-mid); background-image: radial-gradient(ellipse 80% 100% at 30% 30%, var(--oecta-silk-light) 0%, var(--oecta-silk-mid) 45%, var(--oecta-silk-navy) 100%); }
.ep-card__media--oecta { background-color: color-mix(in srgb, var(--oecta-channel-violet) 60%, var(--oecta-chip-feedback-fg));   /* white words AA (the plain violet is 4.2) */ background-image: radial-gradient(color-mix(in srgb, var(--oecta-on-primary) 14%, transparent) 1.2px, transparent 1.4px); background-size: 12px 12px; }
.ep-card__media--kind { background-color: var(--aoe-kind-bg, var(--oecta-silk-mid)); background-image: radial-gradient(color-mix(in srgb, currentColor 13%, transparent) 1.2px, transparent 1.4px); background-size: 12px 12px; color: var(--aoe-kind-ink, var(--oecta-on-primary)); }
.ep-card__media--style { background-color: var(--ao-ev-hero, var(--aoe-kind-bg, var(--oecta-silk-mid))); background-image: var(--ao-ev-bg-image, var(--ao-ev-hero, radial-gradient(color-mix(in srgb, currentColor 13%, transparent) 1px, transparent 1.6px))); background-size: var(--ao-ev-bg-size, 16px 16px); background-position: var(--ao-ev-bg-pos, 0 0); color: var(--ao-ev-art-text, var(--ao-ev-datecard-text, var(--aoe-kind-ink, var(--oecta-on-primary)))); }
body.dark-mode .ep-card__media--kind.ao-evc--k-event { --aoe-kind-bg: var(--oecta-silk-mid); }
.ep-card__art { font-family: var(--oecta-font-display); font-weight: var(--oecta-weight-extrabold); font-size: 13px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; overflow-wrap: anywhere; }
.ep-card__body { grid-area: body; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ep-card__title { margin: 0; font-family: var(--oecta-font-display); font-weight: var(--oecta-weight-bold); font-size: 17px; line-height: 22px; color: var(--oecta-on-surface); overflow-wrap: anywhere; }
/* the title is the card's main control; ::after stretches it over the card, the action sits above it */
.ep-card__open {
  appearance: none;
  min-height: 0;   /* style2.css gives every phone button 44px; this one's target is the whole card */
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.ep-card__open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ep-card__open:focus-visible { outline: none; }
.ep-card__open:focus-visible::after { border-radius: 14px; box-shadow: var(--oecta-focus-ring); }
.ep-card__tagline { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: 14px; line-height: 20px; color: var(--oecta-on-surface-variant); }
.ep-card__facts { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ep-card__fact { display: inline-flex; align-items: flex-start; gap: 7px; min-width: 0; font-weight: var(--oecta-weight-medium); font-size: 14px; line-height: 20px; color: var(--oecta-on-surface); }
.ep-card__fact .ep-icon { margin-top: 2px; color: var(--oecta-primary-text); }
.ep-card__fact-t { min-width: 0; overflow-wrap: anywhere; }
.ep-card__tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.ep-ctag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--oecta-radius-pill); font-weight: var(--oecta-weight-semibold); font-size: 13px; line-height: 17px; white-space: nowrap; background: var(--oecta-surface-container); color: var(--oecta-on-surface); }
.ep-ctag--prov { background: var(--oecta-chip-feedback-bg); color: var(--oecta-chip-feedback-fg); }
.ep-ctag--mem { background: color-mix(in srgb, var(--oecta-primary-container) 12%, var(--oecta-surface-lowest)); color: var(--oecta-primary-text); }
.ep-ctag--online { background: color-mix(in srgb, var(--oecta-success) 8%, var(--oecta-surface-lowest)); color: var(--oecta-success-text); }
.ep-ctag--edge { background: var(--oecta-primary-container); color: var(--oecta-on-primary-container); }
.ep-card__side { grid-area: side; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--oecta-space-sm) var(--oecta-space-md); min-width: 0; }
.ep-card__status { display: inline-flex; align-items: center; gap: 7px; font-weight: var(--oecta-weight-semibold); font-size: 14px; line-height: 18px; color: var(--oecta-on-surface-variant); }
.ep-card__dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: var(--oecta-radius-round); background: var(--oecta-text-muted); }
.ep-card__status--open { color: var(--oecta-success-text); }
.ep-card__status--open .ep-card__dot { background: var(--oecta-success); }
.ep-card__status--waitlist { color: var(--oecta-on-surface); }
.ep-card__status--waitlist .ep-card__dot, .ep-card__status--soon .ep-card__dot { background: var(--oecta-warning); }
.ep-card__status--full, .ep-card__status--closed { color: var(--oecta-error-text); }
.ep-card__status--full .ep-card__dot, .ep-card__status--closed .ep-card__dot { background: var(--oecta-error); }
.ep-card__status--going, .ep-card__status--on { color: var(--oecta-primary-text); }
.ep-card__status--going .ep-card__dot, .ep-card__status--on .ep-card__dot { background: var(--oecta-primary-text); }
.ep-card__status--soon { color: var(--oecta-on-surface); }
.ep-card__act {
  appearance: none;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--oecta-radius-pill);
  font-family: var(--oecta-font-body);
  font-weight: var(--oecta-weight-bold);
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.ep-card__act--amber { background: var(--oecta-accent); color: var(--oecta-on-accent); }
.ep-card__act--amber:hover { background: var(--oecta-accent-hover); }
.ep-card__act--navy { background: var(--oecta-primary-container); color: var(--oecta-on-primary-container); }
.ep-card__act--navy:hover { background: var(--oecta-primary); }
.ep-card__act--outline { background: transparent; color: var(--oecta-primary-text); box-shadow: inset 0 0 0 1.5px var(--oecta-primary-text); }
.ep-card__act--outline:hover { background: var(--oecta-surface-low); }
.ep-card__act--outline:focus-visible { box-shadow: inset 0 0 0 1.5px var(--oecta-primary-text), var(--oecta-focus-ring); }
.ep-card__open[aria-busy="true"], .ep-key[aria-busy="true"], .ep-card__act[aria-busy="true"] { opacity: 0.6; }
/* a chosen day (Day by day) and the Month's side panel: no date tile */
.ep-card--day, .ep-card--side { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body" "side"; }
.ep-card--side { padding: var(--oecta-space-md); background: var(--oecta-surface-low); box-shadow: none; }
.ep-card--side:hover { background: var(--oecta-surface-container); box-shadow: none; }

/* Cards: the picture on top, the date over it */
.ep-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--oecta-space-lg); }
.ep-card.ep-card--grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-radius: var(--oecta-radius-xl); }
.ep-card--grid .ep-card__media { display: flex; aspect-ratio: 16 / 9; border-radius: 0; }
.ep-card--grid .ep-card__media--art { padding: 14px 16px; justify-content: flex-end; }
.ep-card--grid .ep-card__date { position: absolute; top: 14px; left: 14px; z-index: 1; width: 60px; height: 72px; background: var(--oecta-surface-lowest); box-shadow: var(--oecta-shadow-md); }
.ep-card--grid .ep-card__body { flex: 1; padding: var(--oecta-space-md) 18px 0; }
.ep-card--grid .ep-card__side { padding: var(--oecta-space-md) 18px 18px; }
.ep-card--grid .ep-card__open:focus-visible::after { border-radius: var(--oecta-radius-xl); }

/* A key date: one slim line — the day, the kind, the title, its countdown */
.ep-key {
  appearance: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px var(--oecta-space-sm);
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--oecta-radius-lg);
  background: var(--oecta-surface-low);
  color: var(--oecta-on-surface);
  font-family: var(--oecta-font-body);
  font-size: 14px;
  line-height: 18px;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.ep-key:hover { background: var(--oecta-surface-container); }
.ep-key__day { flex-shrink: 0; font-weight: var(--oecta-weight-semibold); font-size: 13px; line-height: 17px; color: var(--oecta-on-surface-variant); white-space: nowrap; }
/* a phone: the day, the kind and the countdown on the first line, the title under them */
.ep-key__title { order: 1; flex: 1 1 100%; min-width: 0; font-weight: var(--oecta-weight-medium); font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.ep-key__right { margin-inline-start: auto; font-size: 13px; line-height: 17px; color: var(--oecta-on-surface-variant); white-space: nowrap; }
.ep-key__right.is-soon { color: var(--oecta-on-surface); font-weight: var(--oecta-weight-semibold); }

/* Coming up after that (Day by day) */
.ep-calday__next { margin: var(--oecta-space-md) 0 0; font-family: var(--oecta-font-display); font-weight: var(--oecta-weight-regular); font-size: 20px; line-height: 26px; color: var(--oecta-primary-text); }
.ep-nexts { display: flex; flex-direction: column; gap: var(--oecta-space-sm); }
.ep-next {
  appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px var(--oecta-space-md);
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--oecta-radius-lg);
  background: var(--oecta-surface-lowest);
  box-shadow: var(--oecta-shadow-sm);
  color: var(--oecta-on-surface);
  font-family: var(--oecta-font-body);
  font-size: 14px;
  line-height: 18px;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.ep-next:hover { box-shadow: var(--oecta-shadow-md); }
.ep-next__day { font-weight: var(--oecta-weight-semibold); color: var(--oecta-primary-text); white-space: nowrap; }
.ep-next__time { color: var(--oecta-on-surface-variant); }
.ep-next__title { grid-column: 1 / -1; font-weight: var(--oecta-weight-semibold); font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.ep-next__kind { grid-column: 1 / -1; justify-self: start; }

/* ── The count, the views, Filters and Sort ───────────────────────────────────────────────── */
.ep-titlebar__h { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; }
.ep-titlebar__h .ep-title { flex: 0 1 auto; }
.ep-count { font-weight: var(--oecta-weight-medium); font-size: 15px; line-height: 20px; color: var(--oecta-on-surface-variant); white-space: nowrap; }
.ep-count:empty { display: none; }
.ep-switch__seg--wide, .ep-switch__wide { display: none; }
.ep-tools { position: relative; order: -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--oecta-space-sm); padding: 0 var(--ep-gutter) 6px; }
.ep-tool {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--oecta-space-sm);
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--oecta-radius-pill);
  background: var(--oecta-surface-container);
  color: var(--oecta-on-surface);
  font-family: var(--oecta-font-body);
  font-weight: var(--oecta-weight-medium);
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
}
.ep-tool:hover { background: var(--oecta-surface-high); }
.ep-tool[hidden] { display: none; }
.ep-tool--filters { background: var(--oecta-primary-container); color: var(--oecta-on-primary-container); font-weight: var(--oecta-weight-semibold); }
.ep-tool--filters:hover { background: var(--oecta-primary); }
.ep-tool__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ep-tool__n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--oecta-radius-pill); background: var(--oecta-accent); color: var(--oecta-on-accent); font-weight: var(--oecta-weight-bold); font-size: 13px; line-height: 1; }
.ep-tool__n[hidden] { display: none; }
/* the panel: a sheet from the bottom on a phone */
.ep-fpanel { position: fixed; inset: auto 0 0 0; z-index: var(--oecta-z-modal); display: flex; flex-direction: column; max-height: 88dvh; border-radius: 20px 20px 0 0; background: var(--oecta-surface-lowest); box-shadow: var(--oecta-shadow-xl); color: var(--oecta-on-surface); }
.ep-fpanel[hidden], .ep-sortmenu[hidden], .ep-scrim[hidden] { display: none; }
.ep-fpanel__grab { align-self: center; width: 40px; height: 4px; margin: 10px 0 2px; border-radius: var(--oecta-radius-pill); background: var(--oecta-outline-variant); }
.ep-fpanel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--oecta-space-md); padding: 4px var(--oecta-space-md) 10px var(--ep-gutter, 16px); }
.ep-fpanel__h { margin: 0; font-family: var(--oecta-font-display); font-weight: var(--oecta-weight-bold); font-size: 20px; line-height: 26px; color: var(--oecta-primary-text); }
.ep-fpanel__body { display: flex; flex: 1; flex-direction: column; gap: 18px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--ep-gutter, 16px) var(--oecta-space-md); }
.ep-fgroup { min-width: 0; margin: 0; padding: 0; border: 0; }
.ep-fgroup__name { padding: 0 0 8px; font-weight: var(--oecta-weight-bold); font-size: 13px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--oecta-on-surface-variant); }
.ep-fgroup__opts { display: flex; flex-wrap: wrap; gap: var(--oecta-space-sm); }
.ep-fopt { appearance: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--oecta-radius-pill); background: var(--oecta-surface-container); color: var(--oecta-on-surface); font-family: var(--oecta-font-body); font-weight: var(--oecta-weight-medium); font-size: 15px; line-height: 20px; cursor: pointer; }
.ep-fopt:hover { background: var(--oecta-surface-high); }
.ep-fopt.is-on { background: var(--oecta-primary-container); color: var(--oecta-on-primary-container); font-weight: var(--oecta-weight-semibold); }
.ep-fpanel__foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px var(--ep-gutter, 16px) calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -1px 0 color-mix(in srgb, var(--oecta-primary-container) 8%, transparent); }
.ep-fpanel__clear { appearance: none; min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--oecta-radius-md); background: var(--oecta-surface-container); color: var(--oecta-primary-text); font-family: var(--oecta-font-body); font-weight: var(--oecta-weight-semibold); font-size: 15px; cursor: pointer; }
.ep-fpanel__show { min-height: 48px; }
.ep-scrim { position: fixed; inset: 0; z-index: var(--oecta-z-modal-backdrop); background: color-mix(in srgb, var(--oecta-silk-deep) 45%, transparent); }
body.ep-sheet-open { overflow: hidden; }
/* Sort, from 768px: a menu under its button */
.ep-sortmenu { position: absolute; top: calc(100% + 8px); right: var(--ep-gutter); z-index: var(--oecta-z-dropdown); display: flex; flex-direction: column; width: 300px; padding: 6px; border-radius: 14px; background: var(--oecta-surface-lowest); box-shadow: var(--oecta-shadow-xl); }
.ep-sortmenu__i { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: var(--oecta-space-md); min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--oecta-on-surface); font-family: var(--oecta-font-body); font-weight: var(--oecta-weight-medium); font-size: 15px; line-height: 20px; text-align: start; cursor: pointer; }
.ep-sortmenu__i:hover { background: var(--oecta-surface-low); }
.ep-sortmenu__i .ep-icon { visibility: hidden; color: var(--oecta-primary-text); }
.ep-sortmenu__i.is-on { background: color-mix(in srgb, var(--oecta-primary-container) 10%, var(--oecta-surface-lowest)); color: var(--oecta-primary-text); font-weight: var(--oecta-weight-semibold); }
.ep-sortmenu__i.is-on .ep-icon { visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .ep-fpanel.is-sheet:not([hidden]) { animation: ep-sheet-in var(--oecta-duration-base) var(--oecta-ease-out); }
}
@keyframes ep-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* the Month: a day's number picks it; the chosen cell is ringed */
.ep-cell { cursor: pointer; }
.ep-cell.is-selected { background: color-mix(in srgb, var(--oecta-primary-container) 7%, var(--oecta-surface-lowest)); box-shadow: inset 0 0 0 2px var(--oecta-primary-text); }
.ep-cell__n { appearance: none; padding: 0; border: 0; background: none; font-family: var(--oecta-font-body); cursor: pointer; }
.ep-cell__n:hover { background: var(--oecta-surface-container); }

/* Earlier: folded above Now. .ev-earlier stays on it for app.js _agendaJumpTo; style2.css paints that class, so unpaint it. */
.ep-earlier.ev-earlier, .ep-earlier.ev-earlier[open] { min-width: 0; border-radius: 0; background: none; box-shadow: none; }
.ep-earlier__sum {
  display: flex;
  align-items: center;
  gap: var(--oecta-space-xs);
  min-height: 44px;
  border-radius: var(--oecta-radius-md);
  color: var(--oecta-on-surface-variant);
  font-weight: var(--oecta-weight-semibold);
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
  list-style: none;
}
.ep-earlier__sum::-webkit-details-marker { display: none; }
.ep-earlier__sum .ep-icon { transform: rotate(-90deg); transition: transform var(--oecta-duration-fast) var(--oecta-ease); }
.ep-earlier[open] > .ep-earlier__sum .ep-icon { transform: none; }
.ep-earlier__n { font-weight: var(--oecta-weight-regular); }
.ep-earlier > .ep-stream { padding-block-end: var(--oecta-space-md); }
.is-flash { outline: 2px solid var(--oecta-primary-text); outline-offset: 2px; }

/* Nothing there, or nothing came */
.ep-empty { margin: 0; padding: var(--oecta-space-xl) 0; font-size: 15px; line-height: 22px; color: var(--oecta-on-surface-variant); }
.ep-fail { display: flex; flex-wrap: wrap; align-items: center; gap: var(--oecta-space-sm) var(--oecta-space-lg); padding: var(--oecta-space-md) 14px; border-radius: var(--oecta-radius-lg); background: var(--oecta-surface-low); }
.ep-fail__text { margin: 0; font-size: 15px; line-height: 22px; color: var(--oecta-on-surface); }
.ep-fail__retry, .ep-clear {
  appearance: none;
  min-height: 44px;
  padding: 0 var(--oecta-space-lg);
  border: 0;
  border-radius: var(--oecta-radius-md);
  background: var(--oecta-surface-container);
  color: var(--oecta-primary-text);
  font-family: var(--oecta-font-body);
  font-weight: var(--oecta-weight-semibold);
  font-size: 14px;
  cursor: pointer;
}
.ep-clear { align-self: flex-start; }

/* Skeleton: on the page until the lists answer */
.ep-skel { background: var(--oecta-surface-container); border-radius: var(--oecta-radius-lg); }
.ep-skel-row { height: 92px; margin-inline-start: 60px; }
.ep-skel-row--flat { height: 44px; }
.ep-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ep-skel { animation: ep-pulse 1.4s var(--oecta-ease) infinite alternate; }
}
@keyframes ep-pulse { from { opacity: 1; } to { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
  #tab-home { animation: none; }
  .ep-earlier__sum .ep-icon { transition: none; }
}

/* ── The month ────────────────────────────────────────────────────────────────────────────── */
.ep-controls { display: flex; flex-direction: column; min-width: 0; }
.ep-monthnav { display: flex; align-items: center; gap: var(--oecta-space-xs); padding: var(--oecta-space-sm) var(--oecta-space-md) 0 var(--ep-gutter); }
.ep-monthnav[hidden] { display: none; }
.ep-monthnav__title { flex: 1; min-width: 0; margin: 0; font-family: var(--oecta-font-display); font-weight: var(--oecta-weight-regular); font-size: 24px; line-height: 30px; color: var(--oecta-primary-text); }
.ep-monthnav .ep-monthnav__today { display: none; }
.ep-round {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--oecta-radius-pill);
  background: var(--oecta-surface-container);
  color: var(--oecta-on-surface);
  cursor: pointer;
}
.ep-round:hover { background: var(--oecta-surface-high); }
.ep-btn {
  appearance: none;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--oecta-space-sm);
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--oecta-radius-md);
  background: var(--oecta-surface-container);
  color: var(--oecta-on-surface);
  font-family: var(--oecta-font-body);
  font-weight: var(--oecta-weight-semibold);
  font-size: 15px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.ep-btn:hover { background: var(--oecta-surface-high); }
.ep-btn--primary { background: var(--oecta-primary-container); color: var(--oecta-on-primary-container); }
.ep-btn--primary:hover { background: var(--oecta-primary); }
.ep-round:focus-visible, .ep-btn:focus-visible, .ep-d:focus-visible, .ep-gi:focus-visible, .ep-tab:focus-visible, .ep-acct__row:focus-visible { outline: none; box-shadow: var(--oecta-focus-ring); }

#view-calendar { padding-block-start: var(--oecta-space-sm); }
#events-v2-grid { padding-inline: var(--oecta-space-md); }
.ep-cal { width: 100%; border-collapse: separate; border-spacing: 0 2px; table-layout: fixed; }
.ep-cal th { height: 28px; padding: 0; color: var(--oecta-on-surface-variant); font-weight: var(--oecta-weight-bold); font-size: 13px; line-height: 16px; text-align: center; }
.ep-cal td { padding: 0; }
.ep-d {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  height: 58px;
  padding: 5px 0 0;
  border: 0;
  border-radius: var(--oecta-radius-lg);
  background: none;
  color: var(--oecta-on-surface);
  font-family: var(--oecta-font-body);
  cursor: pointer;
}
.ep-d__n { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--oecta-radius-pill); font-weight: var(--oecta-weight-medium); font-size: 16px; line-height: 20px; }
.ep-d__dots { display: flex; align-items: center; justify-content: center; gap: 3px; height: 7px; }
.ep-d__dots .ep-kind { width: 7px; height: 7px; }
.ep-d__dots .ep-kind--dates { border-width: 1.5px; }
.ep-d__dots .ep-kind--ao.ao-evc--k-notice { box-shadow: inset 0 0 0 1.5px var(--oecta-text-muted); }
.ep-d.is-out .ep-d__n { color: var(--oecta-text-muted); }
.ep-d.is-today .ep-d__n, .ep-d.is-today.is-selected .ep-d__n { background: var(--oecta-accent); color: var(--oecta-on-accent); font-weight: var(--oecta-weight-bold); }
.ep-d.is-selected { background: var(--oecta-surface-lowest); box-shadow: inset 0 0 0 2px var(--oecta-primary-text), var(--oecta-shadow-sm); }
.ep-d.is-selected .ep-d__n { color: var(--oecta-primary-text); font-weight: var(--oecta-weight-bold); }
.ep-legend { display: flex; flex-wrap: wrap; gap: var(--oecta-space-xs) var(--oecta-space-lg); padding: 10px var(--ep-gutter) 6px; color: var(--oecta-on-surface-variant); font-weight: var(--oecta-weight-medium); font-size: 13px; line-height: 16px; }
.ep-legend__i { display: inline-flex; align-items: center; gap: 6px; }
.ep-calday { display: flex; flex-direction: column; gap: var(--oecta-space-sm); margin-block-start: var(--oecta-space-sm); padding: 14px var(--ep-gutter) 28px; border-start-start-radius: 20px; border-start-end-radius: 20px; background: var(--oecta-surface-low); }
.ep-calday[hidden] { display: none; }
.ep-calday__h { display: flex; align-items: baseline; gap: 10px; margin: 0; padding-block-end: var(--oecta-space-xs); font-family: var(--oecta-font-display); font-weight: var(--oecta-weight-regular); font-size: 22px; line-height: 28px; color: var(--oecta-primary-text); }
.ep-calday__n { font-family: var(--oecta-font-mono); font-weight: var(--oecta-weight-medium); font-size: 14px; line-height: 18px; color: var(--oecta-on-surface-variant); }
.ep-empty--day { padding: var(--oecta-space-sm) 0; }
/* a phone's Month frame has no photo row; the desktop one keeps it */
@media (max-width: 767px) { .ep-home.is-month .ep-show { display: none; } }

/* From 768px: the names in the cells */
.ep-calw-wrap { overflow: hidden; border-radius: var(--oecta-radius-xl); background: var(--oecta-surface-container); }
.ep-calw { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.ep-calw th { height: 40px; padding: 0 0 0 var(--oecta-space-md); background: var(--oecta-surface-low); color: var(--oecta-on-surface-variant); font-weight: var(--oecta-weight-bold); font-size: 13px; line-height: 16px; letter-spacing: 1.04px; text-align: start; text-transform: uppercase; }
.ep-cell { height: 132px; padding: var(--oecta-space-sm); background: var(--oecta-surface-lowest); vertical-align: top; }
.ep-cell.is-out { background: var(--oecta-surface-low); }
.ep-cell__n { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--oecta-radius-pill); color: var(--oecta-on-surface); font-weight: var(--oecta-weight-semibold); font-size: 15px; line-height: 18px; }
.ep-cell.is-out .ep-cell__n { color: var(--oecta-on-surface-variant); }   /* the muted token misses AA on this cell's tone */
.ep-cell.is-today .ep-cell__n { background: var(--oecta-accent); color: var(--oecta-on-accent); font-weight: var(--oecta-weight-bold); }
.ep-gi {
  appearance: none;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  margin-block-start: var(--oecta-space-xs);
  padding: var(--oecta-space-xs) var(--oecta-space-sm);
  border: 0;
  border-radius: var(--oecta-radius-sm);
  background: none;
  font-family: var(--oecta-font-body);
  font-weight: var(--oecta-weight-semibold);
  font-size: 13px;
  line-height: 17px;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.ep-gi__t { display: -webkit-box; min-width: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.ep-gi--here { background: var(--oecta-primary-container); color: var(--oecta-on-primary-container); }
.ep-gi--oecta { background: var(--oecta-chip-feedback-bg); color: var(--oecta-chip-feedback-fg); }
.ep-gi--dates { padding-inline-start: var(--oecta-space-xs); color: var(--oecta-on-surface-variant); font-weight: var(--oecta-weight-medium); }
.ep-gi--dates:hover { background: var(--oecta-surface-low); }
.ep-gi--dates .ep-kind { width: 8px; height: 8px; margin-block-start: 4px; }
/* An Around OECTA item in a cell: its kind's tint and a stripe in its colour, as members' calendar bars (style2.css
   .oh-grid-bar--info), 2026-11-09. */
.ep-gi.ep-gi--ao { padding-inline-start: 9px; background: color-mix(in srgb, var(--aoe-kind-bg) 20%, var(--oecta-surface-lowest)); box-shadow: inset 3px 0 0 var(--aoe-kind-bg); color: var(--oecta-on-surface); font-weight: var(--oecta-weight-semibold); }
.ep-gi.ep-gi--ao:hover { background: color-mix(in srgb, var(--aoe-kind-bg) 32%, var(--oecta-surface-lowest)); }
.ep-gi.ep-gi--ao.ao-evc--k-notice { box-shadow: inset 3px 0 0 var(--oecta-text-muted); }
.ep-gi.ep-gi--ao:focus-visible { box-shadow: inset 3px 0 0 var(--aoe-kind-bg), var(--oecta-focus-ring); }

/* ── My tickets + Account ─────────────────────────────────────────────────────────────────── */
.ep-page { padding: 20px var(--ep-gutter) 28px; }
.ep-page .ep-title { flex: none; }
.ep-page__chips { padding: var(--oecta-space-md) 0; }
.ep-page__chips[hidden] { display: none; }
.ep-tix, .ep-acct { display: flex; flex-direction: column; align-items: stretch; gap: var(--oecta-space-md); padding-block-start: var(--oecta-space-xs); }
.ep-tix > .ep-btn, .ep-acct > .ep-btn { align-self: flex-start; }
.ep-tk { position: relative; display: flex; flex-direction: column; gap: var(--oecta-space-md); padding: 14px; border-radius: 14px; background: var(--oecta-surface-lowest); box-shadow: var(--oecta-shadow-md); }
.ep-tk:hover { box-shadow: var(--oecta-shadow-lg); }
.ep-tk__top { display: flex; align-items: flex-start; gap: 14px; }
.ep-tile--flat { position: static; flex-shrink: 0; background: var(--oecta-surface-container); box-shadow: none; }
.ep-tk__text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.ep-tk__title { margin: 0; font-family: var(--oecta-font-display); font-weight: var(--oecta-weight-bold); font-size: 17px; line-height: 22px; color: var(--oecta-on-surface); overflow-wrap: anywhere; }
.ep-tk__open { color: inherit; text-decoration: none; }
.ep-tk__open::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.ep-tk__open:focus-visible { outline: none; }
.ep-tk__open:focus-visible::after { box-shadow: var(--oecta-focus-ring); }
.ep-tk__meta { margin: 0; color: var(--oecta-on-surface-variant); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.ep-tk__who { margin: 0; color: var(--oecta-on-surface-variant); font-size: 13px; line-height: 17px; }
.ep-tk__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--oecta-space-sm); }
.ep-tk__foot .ep-pill { margin-inline-end: auto; }
.ep-tk__acts { display: flex; gap: var(--oecta-space-sm); }
/* Pay and Show ticket share a line of their own on a phone */
.ep-tk__acts:has(.ep-btn + .ep-btn) { flex: 1 1 100%; }
.ep-tk__acts:has(.ep-btn + .ep-btn) .ep-btn { flex: 1 1 0; padding-inline: var(--oecta-space-md); }
.ep-skel-row--tk { height: 148px; margin-inline-start: 0; }
.ep-acct__who { padding: var(--oecta-space-lg); border-radius: 14px; background: var(--oecta-surface-lowest); box-shadow: var(--oecta-shadow-md); }
.ep-acct__name { margin: 0; font-family: var(--oecta-font-display); font-weight: var(--oecta-weight-bold); font-size: 20px; line-height: 26px; color: var(--oecta-on-surface); overflow-wrap: anywhere; }
.ep-acct__mail { margin: 0; color: var(--oecta-on-surface-variant); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.ep-acct__rows { display: flex; flex-direction: column; gap: var(--oecta-space-xs); }
.ep-acct__row {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--oecta-space-sm);
  width: 100%;
  min-height: 52px;
  padding: 0 var(--oecta-space-lg);
  border: 0;
  border-radius: var(--oecta-radius-lg);
  background: var(--oecta-surface-low);
  color: var(--oecta-on-surface);
  font-family: var(--oecta-font-body);
  font-weight: var(--oecta-weight-medium);
  font-size: 16px;
  line-height: 20px;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.ep-acct__row:hover { background: var(--oecta-surface-container); }

/* ── The bottom tabs: glass over the page; a dialog's overlay sits above them ──────────────── */
.ep-tabs {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--oecta-z-nav);
  display: flex;
  padding: 6px var(--oecta-space-sm) calc(6px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--oecta-surface) 94%, transparent);   /* the labels stay readable where a phone draws no blur */
  -webkit-backdrop-filter: blur(var(--oecta-glass-blur));
  backdrop-filter: blur(var(--oecta-glass-blur));
  box-shadow: 0 -4px 8px color-mix(in srgb, var(--oecta-primary-container) 8%, transparent);
}
.ep-tab {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  border-radius: var(--oecta-radius-md);
  color: var(--oecta-on-surface-variant);
  font-family: var(--oecta-font-body);
  font-weight: var(--oecta-weight-medium);
  font-size: 13px;
  line-height: 16px;
  text-decoration: none;
}
.ep-tab__pill { display: flex; align-items: center; justify-content: center; width: 60px; height: 30px; border-radius: var(--oecta-radius-pill); }
.ep-tab.is-active { color: var(--oecta-primary-text); font-weight: var(--oecta-weight-bold); }
.ep-tab.is-active .ep-tab__pill { background: color-mix(in srgb, var(--oecta-primary-container) 10%, var(--oecta-surface-lowest)); }
body:has(.ep-header.is-searching) .ep-tabs { display: none; }
@media (max-width: 767px) {
  body { padding-block-end: calc(60px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-block-end: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .oecta-feedback-fab { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* The footer: the Site's flat navy, in the middle */
.site-footer:not(.mep-app-footer) { border-top: 0; background: var(--oecta-silk-mid); color: var(--oecta-on-band); font-family: var(--oecta-font-body); }
.site-footer .footer-top { flex-direction: column; justify-content: center; text-align: center; }
.site-footer .footer-links-block { justify-content: center; }
.site-footer .footer-bottom { justify-content: center; text-align: center; color: var(--oecta-on-band-2); }
/* The footer at 320px: its uppercase name wrapped past the edge */
.site-footer .footer-brand-block { max-width: 100%; min-width: 0; }
.site-footer .footer-org-name { white-space: normal; overflow-wrap: anywhere; }

/* The footer's Help */
.footer-link.ep-footer-help { appearance: none; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }

/* ── Desktop ──────────────────────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .ep-home { --ep-gutter: var(--oecta-space-xl); }
  .ep-titlebar { padding: 36px var(--ep-gutter) 20px; }
  .ep-title { font-size: 40px; line-height: 48px; }
  .ep-show { padding-top: var(--oecta-space-xl); }
  .ep-chips { padding-block: var(--oecta-space-sm) 4px; }
  #view-list, #view-calendar { padding-block: 20px var(--oecta-space-3xl); }
  .ep-tabs { display: none; }
  .ep-nav { display: flex; gap: var(--oecta-space-xs); margin-inline-start: auto; }
  .ep-header__actions { margin-inline-start: 0; }
  /* chips left, ‹ November 2026 › Today right, on one line (Figma 15:891) */
  .ep-controls { flex-direction: row; align-items: center; gap: var(--oecta-space-md); }
  .ep-controls .ep-chips { flex: 1; min-width: 0; padding-inline-end: 32px; -webkit-mask-image: linear-gradient(to right, var(--oecta-on-surface) calc(100% - 32px), transparent); mask-image: linear-gradient(to right, var(--oecta-on-surface) calc(100% - 32px), transparent); }   /* more chips than fit: the last fades out, and scrolls clear of the fade */
  .ep-monthnav { flex-shrink: 0; gap: 6px; padding: var(--oecta-space-sm) var(--ep-gutter) 4px 0; }
  .ep-monthnav__title { flex: none; order: 1; padding-inline: 10px; font-size: 24px; line-height: 30px; }
  .ep-monthnav__prev { order: 0; }
  #ep-month-next { order: 2; }
  .ep-monthnav .ep-monthnav__today { display: inline-flex; order: 3; }
  #events-v2-grid { padding-inline: var(--ep-gutter); }
  #view-calendar .ep-legend { gap: 20px; padding: 24px var(--ep-gutter) 0; font-size: 14px; line-height: 18px; }
  .ep-legend__i { gap: var(--oecta-space-sm); }
  .ep-legend .ep-kind { width: 10px; height: 10px; }
  .ep-page { padding-block: 36px var(--oecta-space-3xl); }
  .ep-tix { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); align-items: stretch; }
  .ep-tix > .ep-btn, .ep-tix > .ep-empty { grid-column: 1 / -1; justify-self: start; }
  .ep-tk { justify-content: space-between; }
  .ep-acct { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: start; }
  .ep-acct > .ep-btn { justify-self: start; }
  .site-footer:not(.mep-app-footer) .footer-inner { max-width: var(--ep-column); }
  .ep-tk__acts:has(.ep-btn + .ep-btn) { flex: 0 0 auto; }
  .ep-tk__acts:has(.ep-btn + .ep-btn) .ep-btn { flex: 0 0 auto; padding-inline: 20px; }
  /* the whole width: the card's four columns (date, picture from 1024px, words, status + action), the Site's larger size */
  .ep-switch__seg--wide { display: inline-flex; }
  .ep-switch__wide { display: inline; }
  .ep-switch__narrow { display: none; }
  .ep-tools { order: 0; display: flex; flex-shrink: 0; padding: var(--oecta-space-sm) var(--ep-gutter) 4px 0; }
  .ep-tool { font-size: 15px; }
  .ep-controls:has(.ep-monthnav:not([hidden])) .ep-tools { padding-inline-end: 0; }
  .ep-fpanel { position: absolute; inset: calc(100% + 8px) var(--ep-gutter) auto auto; width: min(620px, calc(100vw - 2 * var(--ep-gutter))); max-height: none; padding: 22px 24px 18px; border-radius: 18px; gap: 18px; z-index: var(--oecta-z-dropdown); }
  .ep-fpanel__grab, .ep-fpanel__head, .ep-fgroup--sort { display: none; }
  .ep-fpanel__body { overflow: visible; padding: 0; }
  .ep-fpanel__foot { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 0; box-shadow: none; }
  .ep-fpanel__clear { min-height: 44px; padding: 0 12px; background: none; text-decoration: underline; }
  .ep-fpanel__show { min-height: 44px; border-radius: var(--oecta-radius-pill); padding-inline: 22px; }
  .ep-count { font-size: 16px; }
  .ep-group + .ep-group { padding-top: var(--oecta-space-sm); }
  .ep-group__items { gap: 12px; }
  .ep-card { grid-template-columns: 72px minmax(0, 1fr) minmax(180px, 240px); grid-template-areas: "date body side"; gap: 20px; align-items: center; padding: var(--oecta-space-md) 20px var(--oecta-space-md) var(--oecta-space-md); }
  .ep-card__date { height: 80px; }
  .ep-card__d { font-size: 28px; line-height: 30px; }
  .ep-card__title { font-size: 19px; line-height: 24px; }
  .ep-card__tagline { font-size: 15px; line-height: 22px; }
  .ep-card__facts { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
  .ep-card__fact { font-size: 15px; }
  .ep-card__side { flex-direction: column; align-items: flex-end; justify-content: center; gap: 10px; }
  .ep-card__act { padding-inline: 16px; white-space: nowrap; }   /* "Register on OECTA's site" on one line, as the picture */
  .ep-card--day { grid-template-columns: minmax(0, 1fr) minmax(180px, 240px); grid-template-areas: "body side"; }
  .ep-card--side { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body" "side"; gap: var(--oecta-space-sm); align-items: start; }
  .ep-card--side .ep-card__title { font-size: 17px; line-height: 22px; }
  .ep-card--side .ep-card__facts { flex-direction: column; }
  .ep-card--side .ep-card__side { flex-direction: row; align-items: center; justify-content: space-between; }
  .ep-card--grid .ep-card__side { flex-direction: row; align-items: center; justify-content: space-between; }
  .ep-card--grid .ep-card__facts { flex-direction: column; }
  .ep-key { flex-wrap: nowrap; gap: var(--oecta-space-md); padding: 10px 20px 10px var(--oecta-space-md); font-size: 15px; }
  .ep-key__day { width: 72px; text-align: center; font-size: 14px; }
  .ep-key__title { order: 0; flex: 1 1 auto; font-size: 16px; line-height: 22px; }
  .ep-key__right { margin-inline-start: 0; font-size: 14px; }
  /* the Month's side list is phone-narrow: a key date wraps as on a phone (its title on its own line) */
  .ep-calday--side .ep-key { flex-wrap: wrap; gap: 6px var(--oecta-space-sm); padding: 10px 14px; font-size: 14px; }
  .ep-calday--side .ep-key__day { width: auto; text-align: start; font-size: 13px; }
  .ep-calday--side .ep-key__title { order: 1; flex: 1 1 100%; font-size: 15px; line-height: 20px; }
  .ep-calday--side .ep-key__right { margin-inline-start: auto; font-size: 13px; }
  .ep-next { grid-template-columns: 110px 120px minmax(0, 1fr) auto; gap: var(--oecta-space-md); padding: 14px 18px; font-size: 15px; }
  .ep-next__title, .ep-next__kind { grid-column: auto; }
  .ep-next__title { font-size: 16px; }
  .ep-calday__next { font-size: 22px; line-height: 28px; }
  /* Day by day: the small month on the left, the chosen day and what comes after on the right */
  #view-calendar.is-day, #view-calendar.is-month { display: grid; align-items: start; column-gap: 40px; padding-inline: var(--ep-gutter); }
  #view-calendar.is-day { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
  #view-calendar.is-day #events-v2-grid, #view-calendar.is-month #events-v2-grid { grid-column: 1; grid-row: 1; padding-inline: 0; }
  #view-calendar.is-day #events-v2-grid { padding: 18px; border-radius: var(--oecta-radius-xl); background: var(--oecta-surface-lowest); box-shadow: var(--oecta-shadow-md); }
  #view-calendar.is-day .ep-legend, #view-calendar.is-month .ep-legend { grid-column: 1; grid-row: 2; padding-inline: 0; }
  #view-calendar.is-day .ep-calday, #view-calendar.is-month .ep-calday { display: flex; grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; border-radius: 0; background: none; }
  #view-calendar.is-day .ep-calday[hidden], #view-calendar.is-month .ep-calday[hidden] { display: none; }
  #view-calendar.is-day .ep-calday__h { font-size: 28px; line-height: 34px; }
  /* the Month: the grid, and the chosen day's list beside it */
  #view-calendar.is-month { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); column-gap: 28px; }
  #view-calendar.is-month .ep-calday { position: sticky; top: 72px; padding: 20px; border-radius: var(--oecta-radius-xl); background: var(--oecta-surface-lowest); box-shadow: var(--oecta-shadow-md); }
}
@media (min-width: 1024px) {
  .ep-card { grid-template-columns: 72px 168px minmax(0, 1fr) minmax(180px, 240px); grid-template-areas: "date media body side"; }
  .ep-card__media, .ep-card__media--art { display: flex; height: 96px; }
  .ep-card--day { grid-template-columns: 168px minmax(0, 1fr) minmax(180px, 240px); grid-template-areas: "media body side"; }
  .ep-card--side { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body" "side"; }
  .ep-card--grid .ep-card__media { height: auto; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  /* the Month needs the width for its seven days: its day list goes under it */
  #view-calendar.is-month { grid-template-columns: minmax(0, 1fr); }
  #view-calendar.is-month .ep-calday { position: static; grid-column: 1; grid-row: 3; margin-top: var(--oecta-space-lg); }
}
