.event-index-main { max-width: 860px; padding: 46px 0 76px; }
.event-index h1 { margin: 0; font-size: clamp(44px, 7vw, 62px); line-height: 1.02; font-weight: 650; }
.event-index-intro { margin: 10px 0 27px; font-size: 19px; max-width: 62ch; }
.event-index-form { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.event-index-form label { display: grid; gap: 4px; min-width: 0; font-weight: 600; }
.event-index input, .event-index select, .event-index button {
  width: 100%; min-width: 0; min-height: 40px; padding: 6px 9px;
  border: 1px solid #777; border-radius: 2px; background: #fff; color: var(--ink); font: inherit;
}
.event-index button { width: auto; background: var(--ink); color: #fff; padding-inline: 16px; cursor: pointer; }
.event-index a:focus-visible, .event-index input:focus-visible, .event-index select:focus-visible,
.event-index button:focus-visible, .event-index summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.event-index-note { color: #515151; font-size: 14px; margin: 12px 0 18px; max-width: 80ch; }
.event-index .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.event-index-results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; align-items: center; margin: 8px 0 12px; }
.event-index-count { font-family: var(--mono); font-weight: 600; margin: 0; }
.event-index-sort { display: flex; gap: 5px; }
.event-index .event-index-sort button { min-height: 34px; padding: 3px 9px; background: #fff; color: var(--ink); border-color: transparent; }
.event-index .event-index-sort button[aria-pressed="true"] { border-color: #777; text-decoration: underline; text-underline-offset: 3px; }
.event-index-results { list-style: none; margin: 0; padding: 0; }
.event-index-result { border-top: 1px solid var(--rule); padding: 17px 0; overflow-wrap: anywhere; }
.event-index-result h2 { font-size: clamp(23px, 4vw, 30px); line-height: 1.12; font-weight: 620; margin: 7px 0; }
.event-index-result h2 a { text-decoration: none; }
.event-index-result h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.event-index-dates { color: #515151; font-size: 14px; margin: 0; }
.event-index-source { margin: 3px 0; }
.event-index-match { margin: 3px 0 7px; color: #515151; }
.event-index-result summary { cursor: pointer; width: fit-content; }
.event-index-result details ul { margin: 4px 0 8px; padding-left: 21px; }
.event-index-result details li { margin-block: 5px; }
.event-index-pagination form { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.event-index-error { border-left: 3px solid #861d1d; padding: 6px 12px; }
@media (max-width: 720px) {
  .event-index-main { padding-top: 33px; }
  .event-index-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-index-query { grid-column: 1 / -1; }
}
