/*
 * Styles for events, news and the Markdown text (.prose).
 * Tokens only (see site.css); shared components come from site.css.
 *
 *   .content-section   a titled block of items (Coming up, Past events, News) with room above it
 *   .content-item      a .card in a .card-list; .content-title is its h3 link
 *   .content-more      the "All events" / "All news" link under a list
 *   .event-*           parts of the event page: .event-when, .event-where, .event-address, .event-label, .event-signin
 *   .prose             the Markdown output (src/views/fragments/markdown.js)
 */

.content-section { margin-top: var(--space-5); }
.content-section > h2 + * { margin-top: var(--space-3); }
.content-title { font-size: var(--fs-h3); overflow-wrap: anywhere; }
.content-item .meta { margin: 0; }
.content-more { margin: var(--space-3) 0 0; }

.event-when { font-size: var(--fs-h3); font-weight: var(--font-weight-strong); margin: 0; }
.event-where, .event-signin { margin: 0; }
.event-label { font-weight: var(--font-weight-strong); margin: 0; }
.event-address {
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.event-address p { margin: 0; overflow-wrap: anywhere; }
.event-address .event-label { margin-bottom: var(--space-1); }

.prose { max-width: var(--measure); overflow-wrap: anywhere; }
.prose > * + * { margin-top: var(--space-3); }
.prose > :is(h2, h3, h4, h5, h6) { margin-top: var(--space-5); margin-bottom: 0; }
.prose > :is(h2, h3, h4, h5, h6) + * { margin-top: var(--space-2); }
.prose h4, .prose h5, .prose h6 { font-size: var(--fs-body); line-height: var(--lh-heading); }
.prose h4, .prose h5, .prose h6 { font-weight: var(--font-weight-heading); }
.prose p { margin: 0; }
.prose :is(ul, ol) { margin: 0; padding-left: var(--space-4); }
.prose li + li { margin-top: var(--space-1); }
.prose li > :is(ul, ol) { margin-top: var(--space-1); }
.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: var(--space-1) var(--space-3);
  border-left: var(--space-1) solid var(--line);
  color: var(--muted);
}
.prose code {
  padding: 0 var(--space-1);
  border-radius: var(--radius);
  background: var(--chip);
  font-family: ui-monospace, monospace;
  font-size: var(--fs-small);
}
.prose pre {
  margin-left: 0;
  margin-right: 0;
  padding: var(--card-pad);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--chip);
}
.prose pre code { padding: 0; background: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
