/* Events page (#/events, ADR-0049) and the device page's "Hub events" block. Theme A2: white content,
   1px rules, no cards, marks from the kit (statusMark), tokens only: no colour defined here. */

.page-events .ev-chips {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 4px;
}
.page-events .ev-chip {
  height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); font: inherit; font-size: var(--t-12); color: var(--ink-2); cursor: pointer;
}
.page-events .ev-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.page-events .ev-chip.is-on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.page-events .ev-chip:focus-visible { outline: var(--focus); outline-offset: 1px; }
.page-events .ev-note { margin: 4px 16px 8px; font-size: var(--t-12); color: var(--dim); }
.page-events .ev-new:empty { display: none; }
.page-events .ev-list.is-loading { opacity: 0.6; }
.page-events .ev-sentence strong { font-weight: 600; color: var(--ink); }
.page-events .ev-sentence em { font-style: normal; font-family: var(--mono); font-size: 0.95em; }
.page-events td .cell-sub.mono { font-size: var(--t-11, 11px); }

/* The device page's block: a short timeline of rows that open the event drawer. */
.ev-tl { list-style: none; margin: 0; padding: 0; }
.ev-tl li { border-bottom: 1px solid var(--line); }
.ev-tl li:last-child { border-bottom: 0; }
.ev-tl-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; width: 100%;
  padding: 8px 0; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.ev-tl-t { display: grid; gap: 2px; min-width: 0; color: var(--ink); }
.ev-tl-row:hover .ev-sentence { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.ev-tl-row:focus-visible { outline: var(--focus); outline-offset: 2px; }
.ev-tl-row .ev-sentence em { font-style: normal; font-family: var(--mono); }

@media (max-width: 640px) {
  .page-events .ev-chips { padding: 10px 12px 2px; }
  .page-events .ev-note { margin: 4px 12px 8px; }
  .ev-tl-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (forced-colors: active) {
  .page-events .ev-chip.is-on { border-color: Highlight; }
}
