/*
 * Element styles with no class: block quotes, code, tables and list links.
 * Rationale: see DESIGN.md.
 */

/* Links in the lists of the content keep a 44 px touch target. */
main ul > li > a,
main ol > li > a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
}

/* Images keep their proportions and never run wider than the page. */
main img {
  max-inline-size: 100%;
  block-size: auto;
}

blockquote {
  margin-inline: 0;
  padding-inline-start: 1rem;
  border-inline-start: 4px solid var(--color-border-strong);
  color: var(--color-text);
}

code {
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: var(--color-surface);
  font-family: var(--font-code);
  font-size: 0.95em;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  line-height: 1.5;
}

pre code {
  padding: 0;
  border-radius: 0;
  background: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.5rem 0.75rem;
  border-block-end: 1px solid var(--color-border);
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  font-weight: 700;
}
