:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: #292a2e;
  background: #fff;
  font-size: 16px;
  line-height: 1.714;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 48px 24px;
}

main,
footer {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.25;
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  margin: 32px 0 0;
  font-size: 23px;
}

h3 {
  margin: 24px 0 0;
  font-size: 18px;
}

p,
ul {
  margin: 12px 0 0;
}

ul {
  padding-inline-start: 24px;
}

li + li {
  margin-top: 8px;
}

.document-meta {
  color: #505258;
}

.document-meta strong {
  color: #292a2e;
  font-weight: 600;
}

a {
  color: #1868db;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #124da4;
}

a:focus-visible {
  outline: 2px solid #1868db;
  outline-offset: 4px;
  border-radius: 2px;
}

footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  color: #505258;
  font-size: 14px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 4px;
}

footer nav a,
.document-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

footer nav a[aria-current="page"] {
  color: #292a2e;
  font-weight: 600;
  text-decoration: none;
}

footer p {
  margin-top: 8px;
}

@media (max-width: 600px) {
  body {
    padding: 24px 20px 32px;
  }

  h1 {
    font-size: 26px;
    line-height: 1.25;
  }

  h2 {
    margin-top: 28px;
    font-size: 22px;
  }

  footer nav {
    column-gap: 20px;
  }
}

@media (max-width: 360px) {
  body {
    padding-inline: 16px;
  }
}

@media print {
  body {
    padding: 0;
  }

  main {
    max-width: none;
  }

  footer {
    display: none;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
  }
}
