/* Events (inc/events.php), after Apple Calendar: homepage card, /events/ list + calendar, the pop-up sheet, the event page.
   Same neutrals, radii and shadows as ProaNews (proanews.css) and the Instagram box, NMC red for accents. */
.ev { --ink: #1d1d1f; --muted: #6e6e73; --gray: #f5f5f7; --gray2: #e8e8ed; --line: #d2d2d7; --red: #a22631; --red-ink: #791c25;
  --tile-m: #e0262f; --tile-d: #3d1a1c;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --card-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 4px 24px rgba(0,0,0,.07);
  --card-shadow-hi: 0 0 0 1px rgba(0,0,0,.04), 0 10px 34px rgba(0,0,0,.13);
  font-family: var(--font); color: var(--ink); font-size: 17px; line-height: 1.47; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
.ev *, .ev *::before, .ev *::after { box-sizing: border-box; }
:where(.ev) :where(h1, h2, h3, h4, p, ul, ol, dl, dt, dd, figure) { margin: 0; padding: 0; font-family: var(--font); color: inherit;
  text-transform: none; letter-spacing: inherit; }
:where(.ev) :where(ul) { list-style: none; }
.ev a { color: inherit; text-decoration: none; }
.ev button { font-family: var(--font); }
.ev-i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-i-fill { fill: currentColor; stroke: none; }
.ev-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ev-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--red)); }
.ev-muted { color: var(--muted); }
.ev a:focus-visible, .ev button:focus-visible, .ev summary:focus-visible, .ev select:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---- the Apple Calendar tile (white, red month, big day) ---- */
.ev-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 56px; height: 58px;
  border-radius: 14px; background: #fff; line-height: 1; font-family: var(--font);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05), 0 6px 16px rgba(0,0,0,.09); }
.ev-tile-m { font-size: 14px; font-weight: 500; color: var(--tile-m); letter-spacing: -.01em; margin-bottom: 2px; }
.ev-tile-d { font-size: 27px; font-weight: 600; color: var(--tile-d); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ev-tile-lg { width: 84px; height: 86px; border-radius: 20px; }
.ev-tile-lg .ev-tile-m { font-size: 19px; margin-bottom: 3px; }
.ev-tile-lg .ev-tile-d { font-size: 42px; }

.ev-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 980px; font-size: 12px; font-weight: 600;
  letter-spacing: 0; line-height: 1.5; white-space: nowrap; background: var(--gray2); color: var(--ink); }
.ev-badge-now { background: #e3f6e8; color: #1c7a35; }
.ev-badge-today { background: #fde8ea; color: #b3202c; }
.ev-badge-tomorrow { background: #e6f0ff; color: #0a5bc4; }
.ev-badge[hidden] { display: none; }
.ev-badge-soon { background: #fff0e0; color: #b45309; }
.ev-badge-ended, .ev-badge-past { background: var(--gray2); color: var(--muted); }
.ev-badge-now[data-ev-s]::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor;
  animation: ev-pulse 1.6s ease-in-out infinite; }
@keyframes ev-pulse { 50% { opacity: .25; } }

.ev-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0; border: 0; border-radius: 980px; cursor: pointer; white-space: nowrap;
  font: 600 15px/1.2 var(--font); letter-spacing: -.01em; padding: 11px 18px; background: var(--gray2); color: var(--ink) !important;
  transition: background .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.ev-btn:hover { background: #dcdce1; }
.ev-btn:active { transform: scale(.97); }
.ev-btn .ev-i { width: 18px; height: 18px; }
.ev-btn-primary { background: var(--red); color: #fff !important; }
.ev-btn-primary:hover { background: var(--red-ink); }
.ev-btn-sm { padding: 8px 14px; font-size: 14px; }

/* ---- homepage: heading row like ProaNews, the events in one rounded card like the ProaNews cards / Instagram box ---- */
.wp-block-group.row:has(> .wp-block-group > .ev-home) { display: flex; flex-wrap: wrap; }
.wp-block-group.row:has(> .wp-block-group > .ev-home)::before, .wp-block-group.row:has(> .wp-block-group > .ev-home)::after { display: none; }
.wp-block-group:has(> .ev-home) { display: flex; flex-direction: column; }
.ev-home { display: flex; flex-direction: column; flex: 1; margin: 0 0 48px; }
.ev-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 26px; }
.ev-home-title { font-size: clamp(32px, 4vw, 48px) !important; font-weight: 700 !important; letter-spacing: -.03em !important; line-height: 1.08 !important;
  color: var(--ink) !important; margin: 22px 0 11px !important; }   /* the theme's h2 margins, as on "ProaNews": the two headings stay level */
.ev-more-link { display: inline-flex; align-items: center; gap: 2px; font-size: 17px; color: var(--red) !important; white-space: nowrap; }
.ev-more-link:hover { text-decoration: underline !important; }
.ev-more-link .ev-i { width: 14px; height: 14px; stroke-width: 2.2; }
.ev-home-card { flex: 1; display: flex; flex-direction: column; background: #fff; border-radius: 28px; padding: 10px; box-shadow: var(--card-shadow); }
.ev-hlist { display: flex; flex-direction: column; }
.ev-hlist li + li { position: relative; }
.ev-hlist li + li::before { content: ""; position: absolute; top: 0; left: 88px; right: 16px; height: 1px; background: var(--gray2); }
.ev-hrow { display: flex; align-items: center; gap: 16px; padding: 14px 14px; border-radius: 20px; transition: background .2s; }
.ev-hrow:hover { background: var(--gray); }
.ev-hrow:hover .ev-tile { transform: translateY(-1px); }
.ev-hrow .ev-tile { transition: transform .25s; }
.ev-hrow-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ev-hrow-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.ev-hrow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.ev-hrow-meta > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.ev-hrow-meta .ev-i { width: 14px; height: 14px; }
.ev-hrow-where { align-items: flex-start !important; }
.ev-hrow-where .ev-i { margin-top: 1px; }
.ev-home-empty { margin: auto; padding: 40px 20px; text-align: center; color: var(--muted); font-size: 16px; }
.ev-home-empty .ev-i { display: block; width: 36px; height: 36px; margin: 0 auto 10px; stroke-width: 1.4; }
.ev-home-empty a { color: var(--red) !important; }
@media (max-width: 991px) { .ev-home { flex: none; } }
@media (max-width: 599px) { .ev-home-card { border-radius: 22px; } }

/* ---- the pop-up: a sheet over the blurred page (like Go Further's .dp-modal); a bottom sheet on phones ---- */
.ev-modal { width: min(760px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0;
  border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.28); overflow: hidden; }
.ev-modal::backdrop { background: rgba(20,20,24,.38); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.ev-modal[open] { display: flex; animation: ev-in .45s cubic-bezier(.16,1,.3,1); }
.ev-modal[open]::backdrop { animation: ev-fade .35s ease; }
.ev-modal.is-closing { animation: ev-out .22s ease forwards; }
.ev-modal.is-closing::backdrop { animation: ev-fade .22s ease reverse forwards; }
@keyframes ev-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }
@keyframes ev-out { to { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes ev-fade { from { opacity: 0; } }
html.ev-locked { overflow: hidden; }
.ev-modal-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; max-height: calc(100dvh - 48px); }
.ev-close { position: absolute; top: 16px; right: 16px; z-index: 3; display: grid; place-items: center; width: 38px; height: 38px; margin: 0;
  padding: 0; border: 0; border-radius: 50%; background: rgba(232,232,237,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); cursor: pointer; transition: background .2s; }
.ev-close:hover { background: #dcdce1; }
.ev-close .ev-i { width: 18px; height: 18px; stroke-width: 2.2; }
@media (max-width: 599px) {
  .ev-modal { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .ev-modal-scroll { max-height: 92dvh; }
  .ev-modal[open] { animation: ev-up .42s cubic-bezier(.16,1,.3,1); }
  .ev-modal.is-closing { animation: ev-down .25s ease forwards; }
  .ev-modal::after { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(0,0,0,.18); }
  @keyframes ev-up { from { transform: translateY(100%); } }
  @keyframes ev-down { to { transform: translateY(100%); } }
}

/* ---- the sheet (pop-up content and the event page) ---- */
.ev-photo { aspect-ratio: 16 / 9; background: var(--gray); overflow: hidden; }
.ev-photo-img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.ev-sheet-in { padding: 48px clamp(22px, 5.5vw, 52px) 44px; }
.ev-sheet.has-photo .ev-sheet-in { padding-top: 30px; }
.ev-sheet-head { display: flex; gap: 22px; align-items: flex-start; padding-right: 30px; }
.ev-sheet.has-photo .ev-sheet-head { padding-right: 0; }
.ev-sheet-titles { min-width: 0; padding-top: 2px; }
.ev .ev-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--c, var(--red)); }
.ev-sheet-title { font-size: clamp(26px, 3.6vw, 36px) !important; font-weight: 700 !important; letter-spacing: -.03em !important; line-height: 1.1 !important;
  color: var(--ink) !important; margin: 0 !important; overflow-wrap: anywhere; }
.ev .ev-sheet-sum { margin-top: 10px; font-size: 19px; line-height: 1.38; color: var(--muted); }
.ev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.ev-facts { margin: 22px 0 0; border-top: 1px solid var(--gray2); }
.ev-fact { display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray2); }
.ev-fact > .ev-i { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; color: var(--c, var(--red)); stroke-width: 1.7; }
.ev .ev-fact dt { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.ev .ev-fact dd { font-size: 16px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.ev .ev-fact dd strong { font-weight: 600; }
.ev .ev-fact a { color: var(--red); }
.ev .ev-fact a:hover { text-decoration: underline; }
/* a repeating event's next dates */
.ev-next { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ev .ev-fact .ev-next-date { display: inline-flex; padding: 5px 12px; border-radius: 980px; background: var(--gray); color: var(--ink);
  font-size: 14px; font-weight: 500; transition: background .2s; }
.ev .ev-fact .ev-next-date:hover { background: var(--gray2); text-decoration: none; }
.ev-body { margin-top: 26px; font-size: 17px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.ev .ev-body p, .ev .ev-body ul, .ev .ev-body ol { margin: 0 0 1em; color: var(--ink); font-size: 17px; }
.ev .ev-body ul, .ev .ev-body ol { padding-left: 1.3em; list-style: revert; }
.ev .ev-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.ev .ev-body img { max-width: 100%; height: auto; border-radius: 14px; }
.ev .ev-body table { width: 100%; max-width: 100%; display: block; overflow-x: auto; }
.ev-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 24px; }
.ev-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--gray); }
.ev-gallery img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .4s; }
.ev-gallery a:hover img { transform: scale(1.04); }
.ev .ev-sheet-foot { margin-top: 28px; }
.ev-sheet-foot a { display: inline-flex; align-items: center; gap: 2px; font-size: 16px; color: var(--red) !important; }
.ev-sheet-foot a:hover { text-decoration: underline; }
.ev-sheet-foot .ev-i { width: 13px; height: 13px; stroke-width: 2.2; }
@media (max-width: 599px) {
  .ev-sheet-in { padding: 40px 20px 34px; }
  .ev-sheet-head { gap: 16px; padding-right: 34px; }
  .ev-tile-lg { width: 64px; height: 66px; border-radius: 16px; }
  .ev-tile-lg .ev-tile-m { font-size: 15px; }
  .ev-tile-lg .ev-tile-d { font-size: 31px; }
  .ev .ev-sheet-sum { font-size: 17px; }
  .ev-actions .ev-btn { flex: 1 1 calc(50% - 5px); justify-content: center; }
  .ev-actions .ev-btn-primary { flex-basis: 100%; }
}

/* ---- /events/ ---- */
.ev-page { max-width: 1111px; margin: 0 auto; padding: 0 26px 72px; }
.ev-hero { padding: 44px 0 30px; text-align: center; }
.ev-hero-ico { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; color: #fff;
  background: linear-gradient(160deg, #c23542, var(--red) 55%, var(--red-ink)); box-shadow: 0 10px 30px rgba(162,38,49,.25); }
.ev-hero-ico .ev-i { width: 44px; height: 44px; stroke-width: 1.5; }
.ev-hero-title { font-size: clamp(42px, 5vw, 64px) !important; line-height: 1.05 !important; font-weight: 700 !important; letter-spacing: -.035em !important;
  color: var(--ink) !important; margin: 0 !important; }
.ev .ev-hero-lede { margin: 12px auto 0; max-width: 640px; font-size: clamp(19px, 2vw, 22px); line-height: 1.32; color: var(--muted); }

.ev-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 0 14px; border-top: 1px solid var(--gray2); }
.ev-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--gray2); }
.ev-seg-btn { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 8px 16px; border: 0; border-radius: 9px; background: transparent;
  font: 500 15px/1.2 var(--font); color: var(--ink); cursor: pointer; transition: background .2s, box-shadow .2s; }
.ev-seg-btn .ev-i { width: 17px; height: 17px; }
.ev-seg-btn.is-on { background: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
.ev-select { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 0 6px 0 14px; height: 40px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; font-weight: 500; background: #fff; cursor: pointer; }
.ev-select[hidden] { display: none; }
.ev-select select { border: 0; background: transparent; font: 600 15px var(--font); color: var(--ink); padding: 0 6px; height: 38px; cursor: pointer;
  box-shadow: none; outline-offset: 0; width: auto; }
.ev-search { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; max-width: 320px; height: 40px; margin: 0; padding: 0 14px;
  border-radius: 12px; background: var(--gray2); font-weight: 400; cursor: text; }
.ev-search .ev-i { width: 16px; height: 16px; color: var(--muted); }
.ev-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; box-shadow: none; padding: 0; margin: 0; height: 38px;
  font: 400 15px var(--font); color: var(--ink); -webkit-appearance: none; appearance: none; }
.ev-search:focus-within { box-shadow: 0 0 0 2px var(--red); }
.ev-sub { position: relative; margin-left: auto; }
.ev-sub summary { list-style: none; }
.ev-sub summary::-webkit-details-marker { display: none; }
.ev-sub-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 290px; padding: 14px; border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 18px 50px rgba(0,0,0,.18); }
.ev .ev-sub-menu p { font-size: 14px; line-height: 1.4; color: var(--muted); margin: 2px 6px 10px; }
.ev-sub-menu a, .ev-sub-menu button { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 10px 10px; border: 0; border-radius: 11px;
  background: transparent; font: 500 15px/1.2 var(--font); color: var(--ink); text-align: left; cursor: pointer; }
.ev-sub-menu a:hover, .ev-sub-menu button:hover { background: var(--gray); }
.ev-sub-menu .ev-i { width: 18px; height: 18px; color: var(--red); }

.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 8px; }
.ev-chip { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 14px; border: 1px solid var(--line); border-radius: 980px;
  background: #fff; font: 500 14px/1.2 var(--font); color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.ev-chip:hover { border-color: #a1a1a6; }
.ev-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ev-chip.is-on .ev-dot { box-shadow: 0 0 0 1.5px #fff; }

/* "This week": a shelf of cards that scrolls sideways */
.ev-week { margin: 0 0 30px; }
.ev-week-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.ev-week-title { font-size: 28px !important; font-weight: 700 !important; letter-spacing: -.03em !important; line-height: 1.1 !important;
  color: var(--ink) !important; margin: 0 !important; }
.ev-week-range { font-size: 17px; color: var(--muted); }
.ev-week-list { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 26px;
  margin: 0 -26px; padding: 6px 26px 22px; scrollbar-width: none; overscroll-behavior-x: contain; }
.ev-week-list::-webkit-scrollbar { display: none; }
.ev-week-list > li { flex: none; width: 272px; scroll-snap-align: start; }
.ev-wk { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px 20px; border-radius: 22px; background: #fff;
  box-shadow: var(--card-shadow); transition: box-shadow .3s, transform .3s; }
.ev-wk:hover { box-shadow: var(--card-shadow-hi); transform: translateY(-2px); }
.ev-wk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ev-wk-cal { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c); }
.ev-wk-cal .ev-dot { width: 7px; height: 7px; }
.ev-wk-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.ev-wk-meta { display: flex; flex-direction: column; gap: 3px; margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--muted); }
.ev-wk-meta > span { display: flex; align-items: flex-start; gap: 6px; }
.ev-wk-meta .ev-i { width: 14px; height: 14px; margin-top: 2px; }
@media (max-width: 734px) {
  .ev-week-title { font-size: 24px !important; }
  .ev-week-list { margin: 0 -16px; padding: 6px 16px 20px; scroll-padding: 0 16px; gap: 12px; }
  .ev-week-list > li { width: 78vw; max-width: 290px; }
}

/* list (the reference screenshot): grey date block beside the day's cards, a coloured bar per calendar */
.ev-month { margin-top: 26px; }
.ev-month[hidden], .ev-day[hidden], .ev-card-li[hidden], .ev-list[hidden], .ev-empty[hidden], .ev-view[hidden] { display: none; }
.ev-month-title { font-size: 24px !important; font-weight: 700 !important; letter-spacing: -.025em !important; line-height: 1.2 !important;
  color: var(--ink) !important; margin: 0 0 14px !important; }
.ev-day { display: grid; grid-template-columns: 150px 1fr; gap: 12px; margin: 0 0 12px; }
.ev-date { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 18px; background: var(--gray); }
.ev-date-md { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.ev-date-wd { font-size: 15px; color: var(--muted); }
.ev-date.is-today .ev-date-md, .ev-date.is-today .ev-date-wd { color: var(--tile-m); }
.ev-cards { display: flex; flex-direction: column; gap: 10px; }
.ev-card { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 20px 18px 34px; border-radius: 18px; background: #fff;
  box-shadow: var(--card-shadow); transition: box-shadow .3s, transform .3s; }
.ev-card::before { content: ""; position: absolute; left: 16px; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--c, var(--red)); }
.ev-card:hover { box-shadow: var(--card-shadow-hi); transform: translateY(-2px); }
.ev-card-text { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.ev-card-title { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.ev-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 14.5px; line-height: 1.3; color: var(--muted); }
.ev-card-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ev-card-meta .ev-i { width: 15px; height: 15px; }
.ev-card-cal .ev-dot { width: 7px; height: 7px; }
.ev-card-media { flex: none; width: 132px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--gray); }
.ev-card-media img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.ev-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.ev-empty .ev-i { width: 42px; height: 42px; stroke-width: 1.3; margin-bottom: 10px; }
.ev .ev-empty p { font-size: 17px; }
.ev-empty button { margin-top: 12px; }
@media (max-width: 734px) {
  .ev-page { padding: 0 16px 56px; }
  .ev-hero { padding: 30px 0 22px; }
  .ev-hero-ico { width: 76px; height: 76px; margin-bottom: 16px; }
  .ev-hero-ico .ev-i { width: 38px; height: 38px; }
  .ev-search { order: 5; flex-basis: 100%; max-width: none; }
  .ev-chips { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; margin: 0 -16px; padding: 0 16px 10px; scrollbar-width: none; }
  .ev-chips::-webkit-scrollbar { display: none; }
  .ev-chip { flex: none; }
  .ev-day { grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }
  .ev-date { flex-direction: row; align-items: baseline; gap: 8px; padding: 0 4px; background: none; }
  .ev-date-md { font-size: 17px; }
  .ev-card { padding: 15px 16px 15px 28px; gap: 12px; }
  .ev-card::before { left: 12px; top: 15px; bottom: 15px; }
  .ev-card-title { font-size: 17px; }
  .ev-card-media { width: 84px; aspect-ratio: 1; }
}

/* calendar: a month grid like Apple Calendar; a day's events under it */
.ev-cal { margin-top: 18px; }
.ev-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.ev-cal-title { font-size: 28px !important; font-weight: 700 !important; letter-spacing: -.03em !important; line-height: 1.1 !important; color: var(--ink) !important; margin: 0 !important; }
.ev-cal-title span { color: var(--tile-m); }
.ev-cal-nav { display: flex; align-items: center; gap: 6px; }
.ev-cal-nav button { display: inline-grid; place-items: center; min-width: 36px; height: 36px; margin: 0; padding: 0 12px; border: 0; border-radius: 10px;
  background: var(--gray2); font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.ev-cal-nav button:hover { background: #dcdce1; }
.ev-cal-nav .ev-i { width: 16px; height: 16px; stroke-width: 2.2; }
.ev-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: var(--card-shadow); }
.ev-cal-wd { padding: 10px 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted);
  text-align: right; border-bottom: 1px solid var(--gray2); }
.ev-cal-day { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 118px; margin: 0; padding: 6px 6px 8px; border: 0;
  border-bottom: 1px solid var(--gray2); border-right: 1px solid var(--gray2); background: #fff; text-align: left; cursor: pointer;
  font-family: var(--font); color: var(--ink); transition: background .15s; }
.ev-cal-day:nth-child(7n) { border-right: 0; }
.ev-cal-day:hover { background: #fafafc; }
.ev-cal-day.is-out { background: #fbfbfd; }
.ev-cal-day.is-out .ev-cal-n { color: #b0b0b5; }
.ev-cal-day.is-sel { background: #f3f3f6; }
.ev-cal-n { align-self: flex-end; display: grid; place-items: center; min-width: 28px; height: 28px; margin: 0; padding: 0 4px; border: 0 !important;
  border-radius: 14px; background: transparent; box-shadow: none !important; outline-offset: 1px; font: 500 15px/1 var(--font); color: var(--ink);
  font-variant-numeric: tabular-nums; cursor: pointer; }
.ev-cal-day.is-today .ev-cal-n { background: var(--tile-m); color: #fff; font-weight: 600; }
.ev-cal-ev { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 2px 6px; border-radius: 6px; font-size: 12.5px; line-height: 1.35;
  color: var(--ink); cursor: pointer; }
.ev-cal-ev > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ev-cal-ev > u { flex: none; display: inline-flex; text-decoration: none; opacity: .7; }
.ev-cal-ev > u .ev-i { width: 11px; height: 11px; stroke-width: 2.2; }
.ev-cal-ev > i { flex: none; margin-left: auto; font-style: normal; color: var(--muted); font-size: 11.5px; }
.ev-cal-ev.is-allday { background: color-mix(in srgb, var(--c) 16%, #fff); color: color-mix(in srgb, var(--c) 62%, #000); }
.ev-cal-ev.is-allday > b { font-weight: 600; }
.ev-cal-ev:hover { filter: brightness(.96); background-color: color-mix(in srgb, var(--c) 10%, #fff); }
.ev-cal-ev.is-allday:hover { background: color-mix(in srgb, var(--c) 24%, #fff); }
.ev-cal-more { padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ev-cal-dots { display: none; }
.ev-agenda { margin-top: 26px; }
.ev-agenda-title { font-size: 21px !important; font-weight: 700 !important; letter-spacing: -.02em !important; margin: 0 0 12px !important; color: var(--ink) !important; }
.ev-agenda .ev-empty { padding: 28px 10px; }
@media (max-width: 734px) {
  .ev-cal-title { font-size: 22px !important; }
  .ev-cal-grid { border-radius: 16px; }
  .ev-cal-wd { padding: 8px 0 6px; text-align: center; font-size: 11px; }
  .ev-cal-day { min-height: 56px; align-items: center; padding: 5px 2px 6px; border-right: 0; }
  .ev-cal-n { align-self: center; font-size: 15px; }
  .ev-cal-day.is-sel:not(.is-today) .ev-cal-n { background: var(--ink); color: #fff; }
  .ev-cal-day.is-sel { background: #fff; }
  .ev-cal-ev, .ev-cal-more { display: none; }
  .ev-cal-dots { display: flex; justify-content: center; gap: 3px; min-height: 6px; }
  .ev-cal-dots .ev-dot { width: 6px; height: 6px; }
}

/* ---- an event's own page ---- */
.ev-single { max-width: 860px; margin: 0 auto; padding: 0 22px 72px; }
.ev-back { padding: 30px 0 18px; }
.ev-back a { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; color: var(--red) !important; }
.ev-back a:hover { text-decoration: underline; }
.ev-back .ev-i { width: 15px; height: 15px; stroke-width: 2.2; }
.ev-single .ev-sheet { background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--card-shadow); }
.ev-single .ev-sheet-head { padding-right: 0; }
.ev-more { margin-top: 48px; }
.ev-more-title { font-size: 24px !important; font-weight: 700 !important; letter-spacing: -.025em !important; margin: 0 0 16px !important; color: var(--ink) !important; }
.ev-more .ev-home-card { padding: 10px; }
@media (max-width: 599px) {
  .ev-single { padding: 0 12px 56px; }
  .ev-single .ev-sheet { border-radius: 22px; }
}

/* ---- "Link copied" ---- */
.ev-toast { position: fixed; left: 50%; bottom: 28px; z-index: 100000; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 980px;
  background: rgba(29,29,31,.92); color: #fff; font: 500 15px/1.2 var(--font); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ev-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .ev-modal[open], .ev-modal.is-closing, .ev-modal[open]::backdrop, .ev-modal.is-closing::backdrop { animation: none; }
  .ev-card, .ev-hrow .ev-tile, .ev-gallery img { transition: none; }
}
