/* Mini Mac campus events: the pill, the drawer (Today + Month), and the badges on the map */
.ev-open { position: fixed; top: 60px; left: 14px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; color: var(--ink); font: 500 14px 'DM Sans', system-ui, sans-serif; cursor: pointer; z-index: 3; }
.ev-open .ev-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--mute); }
.ev-open.live .ev-dot { background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: ev-ping 1.8s infinite; }
.ev-open.hide { opacity: 0; pointer-events: none; }
@keyframes ev-ping { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.ev-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(380px, 100vw); z-index: 6; display: flex; flex-direction: column; background: rgba(28, 29, 36, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); box-shadow: 8px 0 30px rgba(0, 0, 0, .25); transform: translateX(-104%); transition: transform .28s ease; font-family: 'DM Sans', system-ui, sans-serif; }
.ev-drawer.on { transform: none; }
.ev-drawer header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; font-size: 17px; }
.ev-x { border: 0; background: rgba(255, 255, 255, .08); color: var(--ink); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 14px; }
.ev-sample { margin: 0 16px 8px; padding: 7px 10px; border-radius: 9px; background: rgba(253, 191, 87, .14); color: var(--gold); font-size: 12.5px; }
.ev-tabs { display: flex; gap: 4px; margin: 4px 16px 8px; padding: 4px; background: rgba(255, 255, 255, .06); border-radius: 11px; }
.ev-tabs button { flex: 1; border: 0; background: transparent; color: var(--mute); font: 600 13.5px inherit; font-family: inherit; padding: 7px; border-radius: 8px; cursor: pointer; }
.ev-tabs button.on { background: rgba(255, 255, 255, .12); color: var(--ink); }
.ev-chips { display: flex; gap: 6px; padding: 2px 16px 10px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.ev-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .12); background: transparent; color: #d7d6dc; font: 500 12.5px inherit; font-family: inherit; padding: 5px 10px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.ev-chip i { display: block; width: 8px; height: 8px; border-radius: 50%; }
.ev-chip.on { background: rgba(255, 255, 255, .14); color: #fff; border-color: transparent; }
.ev-chip.place { background: rgba(253, 191, 87, .18); color: var(--gold); }
.ev-pulse { background: #4ade80; }
.ev-body { flex: 1; overflow-y: auto; padding: 0 12px 16px; }
.ev-h { margin: 14px 4px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); font-weight: 600; }
.ev-empty { color: var(--mute); padding: 10px 4px; margin: 0; }
.ev-card { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 2px 10px; padding: 10px 10px 10px 14px; margin: 6px 0; border-radius: 12px; background: rgba(255, 255, 255, .05); cursor: pointer; transition: background .15s; }
.ev-card::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--c); }
.ev-card:hover { background: rgba(255, 255, 255, .09); }
.ev-when { font-size: 13.5px; font-weight: 600; color: #f1efea; font-variant-numeric: tabular-nums; line-height: 1.3; }
.ev-when small { display: block; font-weight: 400; font-size: 12px; color: var(--mute); }
.ev-when .ev-live { display: table; margin: 0 0 3px; }
.ev-live { display: inline-block; margin-right: 5px; padding: 0 6px; border-radius: 99px; background: #16a34a; color: #fff; font-size: 11px; font-weight: 700; }
.ev-what b { display: block; font-size: 14.5px; line-height: 1.3; }
.ev-what span { color: var(--mute); font-size: 12.5px; }
.ev-more { grid-column: 1 / -1; display: none; }
.ev-card.open .ev-more { display: block; }
.ev-more p { margin: 8px 0 4px; color: #d9d8de; font-size: 13.5px; white-space: pre-line; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-actions button, .ev-actions a { border: 0; background: rgba(255, 255, 255, .1); color: var(--ink); font: 600 12.5px inherit; font-family: inherit; padding: 7px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.ev-actions .ev-go { background: var(--gold); color: #222; }
.ev-mhead { display: flex; align-items: center; justify-content: space-between; margin: 6px 4px 8px; }
.ev-mhead button { border: 0; background: rgba(255, 255, 255, .08); color: var(--ink); width: 32px; height: 32px; border-radius: 9px; font-size: 18px; cursor: pointer; }
.ev-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ev-dow { text-align: center; font-size: 11px; color: var(--mute); padding-bottom: 2px; }
.ev-day { aspect-ratio: 1 / 1.05; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .04); color: #cfced5; font: 500 13px inherit; font-family: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; }
.ev-day.has { background: rgba(255, 255, 255, .08); color: #fff; }
.ev-day.today span { color: var(--gold); font-weight: 700; }
.ev-day.sel { outline: 2px solid var(--gold); outline-offset: -2px; }
.ev-day i { display: flex; gap: 2px; height: 6px; align-items: center; }
.ev-day i b { width: 5px; height: 5px; border-radius: 50%; }
.ev-day i em { font-style: normal; font-size: 9px; color: var(--mute); }
.ev-drawer footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); }
.ev-submit { color: var(--gold); text-decoration: none; font-weight: 600; font-size: 13.5px; }
/* clubs: the standing invitation at the bottom of the drawer */
.ev-promo { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(253, 191, 87, .14), rgba(253, 191, 87, .04)); }
.ev-promo div { flex: 1; min-width: 0; }
.ev-promo b { display: block; font-size: 14px; }
.ev-promo span { color: #c9c8cf; font-size: 12.5px; }
.ev-add { flex-shrink: 0; padding: 9px 13px; border-radius: 10px; background: var(--gold); color: #222; font-weight: 700; font-size: 13px; text-decoration: none; }
.ev-add:hover { filter: brightness(1.06); }
/* an empty day or week invites clubs in */
.ev-invite { margin: 10px 2px; padding: 14px; border-radius: 12px; border: 1px dashed rgba(253, 191, 87, .45); background: rgba(253, 191, 87, .06); }
.ev-invite b { display: block; font-size: 14.5px; }
.ev-invite span { display: block; margin: 2px 0 8px; color: #c9c8cf; font-size: 13px; }
.ev-invite a { color: var(--gold); font-weight: 700; font-size: 13px; text-decoration: none; }

/* badge on the map: a little pin with a coloured dot, the count when several, and a ripple when something is on now */
.ev-pin { position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 24px; height: 24px; padding: 0 6px; border: 2px solid #fff; border-radius: 99px; background: rgba(30, 31, 38, .92); color: #fff; font: 700 11px 'DM Sans', system-ui, sans-serif; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); transform: translateY(-6px); pointer-events: auto; }
.ev-pin::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 2px; height: 6px; background: #fff; transform: translateX(-50%); }
.ev-pin i { display: block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ev-pin span:empty { display: none; }
.ev-pin.live::before { content: ''; position: absolute; inset: -4px; border-radius: 99px; border: 2px solid #4ade80; animation: ev-ring 1.8s infinite; }
@keyframes ev-ring { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(1.45); } }
.ev-in { margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; color: #e9e7e2; }
.ev-in span { color: var(--mute); }
.ev-in div + div { margin-top: 3px; }
.ev-in em { font-style: normal; font-weight: 600; color: var(--gold); margin-right: 2px; }
.ev-in .ev-live { margin-right: 3px; }
@media (prefers-reduced-motion: reduce) { .ev-pin.live::before, .ev-open.live .ev-dot { animation: none; } }
@media (max-width: 640px) {
  .ev-open { top: auto; bottom: calc(var(--credit-h, 44px) + 10px); left: 14px; }
  .ev-drawer { top: auto; width: 100vw; height: 78vh; border-radius: 18px 18px 0 0; transform: translateY(104%); }
}
