* {
  font-family: Avenir, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

input[type='search'], input[type='text'] {
  margin: 10px 0;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

blockquote {
  border-left: var(--theme-foreground-alt) 3pt solid;
  border-radius: 3px;
  padding-left: 20px;
  color: var(--theme-foreground-alt);
}

/* Data credit at the bottom of the page. */
.attribution {
  max-width: none;
  text-align: center;
  font-size: 0.85em;
  color: var(--theme-foreground-muted);
}

/* Info card beside the map. */
.event-info {
  align-self: start;
}

.event-info h2 {
  margin-top: 0;
}

.event-info p {
  margin: 0 0 0.75rem;
}

/* Timeline ruler above the map. Text uses the theme's text colours. */
.timeline-end-labels text {
  font-size: 11px;
  fill: var(--theme-foreground);
  /* A halo in the page colour, so threads passing behind don't cut through the text. */
  stroke: var(--theme-background);
  stroke-width: 3px;
  stroke-linejoin: round;
  paint-order: stroke;
}

/* Year of the event whose thread is hovered. */
.timeline-hover-label {
  font-size: 11px;
  fill: var(--theme-foreground);
}

.timeline-label {
  font-size: 12px;
  font-weight: 600;
  fill: var(--theme-foreground);
}

/* SVG links don't pick up the page's link styles, so style them here. */
.timeline-label a tspan {
  fill: var(--theme-foreground-focus);
  font-weight: 400;
  text-decoration: underline;
}

.timeline-label a:hover tspan {
  text-decoration: none;
}

/* Lead image of the chosen event's Wikipedia page. Images from Wikidata come
   without dimensions, so cap the height rather than relying on them. */
.event-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
