/* Events tab (app/js/screens/events.js). Look C · Studio Line: reuses the
   tokens, cards, chips, status pills and list rows from studio.css. */

.ev-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ev-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 18px; border: 2px solid var(--line2); background: #fff; border-radius: 999px; font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.ev-tabs a .num { font-family: var(--body); font-weight: 800; font-size: 12px; background: var(--mint); color: var(--teal-dd); border-radius: 999px; padding: 1px 8px; }
.ev-tabs a[aria-current="page"] { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }
.ev-tabs a[aria-current="page"] .num { background: #fff; }

.ev-h2 { margin: 18px 0 10px; font-size: 22px; }

.ev { padding: 16px 20px; margin-bottom: 12px; }
.ev-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.ev-date { width: 64px; height: 70px; border-radius: 18px; background: var(--meddle-bg); color: var(--meddle-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; font-size: 12px; font-weight: 800; }
.ev-date .d { font-size: 26px; font-weight: 500; }
.ev-main { min-width: 0; }
.ev-main h3 { margin: 0; font-size: 20px; font-weight: 500; }
.ev-when { font-size: 14px; font-weight: 700; color: var(--ink2); margin-top: 2px; }
.ev-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ev-cap { background: var(--mint); color: var(--teal-dd); }
.ev-cap.ev-full { background: var(--warn-bg); color: var(--warn); }
.ev-tag { background: var(--note-bg); color: var(--note); }
.ev-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.ev-none { margin-top: 10px; }

.ev-past .ev-date { background: #EAEFED; color: #45524F; }
.ev-past h3 { color: var(--ink2); }

.ev-who { margin-top: 10px; }
details.ev-who summary { cursor: pointer; font-size: 13px; font-weight: 800; color: var(--teal-d); padding: 6px 0; }

.bk { display: grid; grid-template-columns: 44px minmax(0, 1.6fr) 150px 130px auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 2px dotted var(--line); }
.bk .grow { min-width: 0; }
.bk .name { font-weight: 800; font-size: 15px; }
.bk .name span { font-weight: 600; font-size: 13px; color: var(--ink3); }
.bk .note { font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk .next { font-size: 14px; font-weight: 600; }
.bk .next.due { color: var(--warn); font-weight: 800; }
.bk .acts { display: flex; gap: 8px; justify-content: flex-end; }
.bk-off .name, .bk-off .note { color: var(--ink3); text-decoration: line-through; }
.bst-booked { background: #E5ECFB; color: #1F3B73; }
.bst-confirmed { background: var(--teal-d); color: #fff; }
.bst-cancelled { background: #EAEFED; color: #45524F; }

.ev-track { padding: 18px 20px 10px; margin-bottom: 8px; }
.ev-track h2 { font-size: 22px; }
.ev-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.ev-stats > div { background: var(--ground); border-radius: 18px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ev-stats .d { font-size: 26px; color: var(--teal-d); line-height: 1; }
.ev-stats span:last-child { font-size: 13px; font-weight: 800; color: var(--ink2); }
.ev-track .hint { margin: 6px 0; }

@media (max-width: 760px) {
  .ev-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .ev { padding: 14px; }
  .ev-head { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 12px; }
  .ev-date { width: 56px; height: 62px; }
  .ev-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .bk { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 12px; padding: 12px 0; }
  .bk > :nth-child(n+3) { grid-column: 2; }
  .bk .next:empty { display: none; }
  .bk .acts { justify-content: flex-start; flex-wrap: wrap; }
  .ev-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
