*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 2rem;
  color: #111111;
  background-color: #ffffff;
}

h1 {
  margin-bottom: 0.25rem;
}

p.note {
  color: #444444;
  max-width: 70ch;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
}

th,
td {
  border: 1px solid #dddddd;
  padding: 0.5rem;
  vertical-align: top;
}

th {
  background: #f6f8fa;
  text-align: left;
  position: sticky;
  top: 0;
}

code {
  background: #f1f3f5;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

tfoot td {
  font-size: 0.9em;
  color: #666666;
}

a {
  color: #0645ad;
  text-decoration: underline;
}

a:visited {
  color: #0b0080;
}

/* Make wide tables friendlier on small screens */
@media (max-width: 600px) {
  body {
    margin: 1rem;
  }
  table {
    font-size: 0.9rem;
  }
}

/* Print styling */
@media print {
  @page {
    size: letter;
    margin: 0.5in 0.5in 0.5in 0.75in;
  }

  body {
    margin: 0;
    color: #000000;
    background: #ffffff;
  }

  a,
  a:visited {
    color: #000000;
    text-decoration: underline;
  }

  /* Show URLs after links so printed copies retain hyperlink targets */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  /* Sticky table headers can misbehave in print */
  th {
    position: static;
  }
}
