.news-archive {
  color: var(--ink);
  font-family: var(--sans);
  padding-bottom: 2rem;
}
.news-archive [hidden] { display: none !important; }
.news-archive :is(a, input):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.news-event-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .17em;
}
.news-year { border-top: 1px solid var(--line); margin: 0; }
.news-year:last-child { border-bottom: 1px solid var(--line); }
.news-year, .news-event { scroll-margin-top: 6rem; }
.news-year > summary h2 { display: flex; align-items: baseline; gap: .8rem; margin: 0; font-size: 1.65rem; line-height: 1.2; }
.news-year-count { color: var(--muted); font-size: 1rem; font-weight: 400; line-height: 1.4; }
.news-events { list-style: none; margin: 0; padding: 0; }
.news-event {
  display: grid;
  grid-template-columns: clamp(8rem, 19%, 12rem) minmax(0, 1fr);
  gap: 1.1rem;
  padding: .95rem .15rem;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.news-event:target, .news-event:focus-visible { background: var(--wash); outline: 2px solid var(--accent); outline-offset: -2px; }
.news-event-meta { display: grid; align-content: start; gap: .2rem; }
.news-date { font-weight: 600; }
.news-kind {
  display: inline-block;
  justify-self: start;
  max-width: 100%;
  padding: .12rem .48rem;
  border-radius: 3px;
  line-height: 1.4;
}
.news-kind.type-publication { background: #d1ecf1; color: #0c5460; }
.news-kind.type-talk { background: #d4edda; color: #155724; }
.news-kind.type-panel { background: #fff3cd; color: #856404; }
.news-kind.type-award { background: #f8d7da; color: #721c24; }
.news-kind.type-participant { background: #e2e3e5; color: #383d41; }
.news-kind.type-workshop { background: #cfe2ff; color: #084298; }
.news-kind.type-teaching { background: #e7d4f5; color: #6f42c1; }
.news-event-body { line-height: 1.5; }
.news-event-place { color: var(--muted); }
.news-event-place::before { content: '·'; padding-right: .3em; }
.news-event-text .scheduled-tag, .news-event-text .canceled-tag { font-style: italic; }
@media (max-width: 44rem) {
  .news-year, .news-event { scroll-margin-top: 5rem; }
  .news-event { grid-template-columns: minmax(0,1fr); gap: .3rem; padding: .78rem .15rem; }
  .news-event-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .7rem; }
}
