.event-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: .75rem 1rem;
  display: flex;
  align-items: stretch;
  gap: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.event-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 3px 14px var(--color-shadow);
}
.event-date-badge {
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  padding: .5rem .65rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.event-weekday {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.event-badge-right {
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.event-date {
  display: block;
  font-size: .7rem;
  letter-spacing: .02em;
  opacity: .9;
  line-height: 1.3;
}
.event-time {
  display: block;
  font-size: .7rem;
  letter-spacing: .02em;
  opacity: .88;
  line-height: 1.3;
}
.event-info { flex-grow: 1; min-width: 0; }
.event-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-text);
  margin: 0 0 .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-desc {
  font-size: .78rem;
  color: var(--color-text-muted);
  margin: 0 0 .3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-meta {
  font-size: .77rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.event-meta > span { display: flex; align-items: center; gap: .2rem; }
.event-meta svg    { width: 12px; height: 12px; flex-shrink: 0; }
@keyframes events-spin { to { transform: rotate(360deg); } }
.events-loading-icon { width: 32px; height: 32px; animation: events-spin 1s linear infinite; }
.events-empty-icon   { width: 48px; height: 48px; opacity: .35; }

.events-json-wrap {
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--navbar-height) - 3rem);
  max-height: 580px;
}
.events-json-title { font-weight: 600; font-size: .85rem; color: var(--color-text); }
.events-json-editor {
  flex: 1;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .76rem;
  line-height: 1.55;
  resize: none;
  background: var(--color-surface);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  border-radius: 10px;
  padding: .75rem;
  outline: none;
  transition: border-color .2s;
}
.events-json-editor:focus { border-color: var(--color-primary); }
.events-json-editor.is-invalid { border-color: #dc3545 !important; }
.events-json-error {
  color: #dc3545;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .74rem;
  margin-top: .35rem;
  word-break: break-all;
}

.events-source-hint code { font-size: .8rem; margin: 0 2px; }

#events-show-me {
  background: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
  color: #1a2e2c;
  font-weight: 600;
  animation: show-me-pulse 1.8s ease-in-out infinite;
}
#events-show-me:hover   { background: #e8a020; border-color: #e8a020; color: #1a2e2c; }
#events-show-me.animating { animation: none; }
@keyframes show-me-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,179,56,.55); }
  50%       { box-shadow: 0 0 0 8px rgba(249,179,56,0); }
}

.json-anatomy { display: flex; flex-direction: column; align-items: center; }
.json-key-sample { color: var(--color-primary); }
.json-val-sample { color: #b45309; }
[data-theme="dark"] .json-val-sample { color: #fbbf24; }
.json-brace { color: var(--color-primary); font-weight: 700; }
.json-specimen {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: 8px;
  padding: .7rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  width: 100%;
}
.json-specimen-line {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
}
.json-specimen-line code { font-size: .8rem; }
.json-specimen-dim code { opacity: .4; }
.json-callout { font-size: .72rem; color: var(--color-text-muted); }
.json-callout-accent { color: var(--color-primary); font-weight: 600; }
.json-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  font-size: .75rem;
  justify-content: center;
}
.events-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 20px;
  padding: 1px 9px 1px 6px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  vertical-align: middle;
  line-height: 1.7;
  margin: 0 3px;
  transition: background .2s;
}
.events-source-badge:hover { background: var(--color-primary-dark); color: #fff; }
.events-source-badge [data-lucide] { width: 12px; height: 12px; }

.json-val-hl {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .76rem;
  background: rgba(249,179,56,.12);
  border: 1.5px solid #F9B338;
  border-radius: 6px;
  padding: .35rem .75rem;
  margin-bottom: .4rem;
}
.json-val-hl-pre { color: var(--color-text-muted); }
.json-val-hl-val { color: #b45309; font-weight: 600; }
[data-theme="dark"] .json-val-hl-val { color: #F9B338; }
