:root {
  color-scheme: light;
  --page: #ffffff;
  --text: #111111;
  --muted: #444444;
  --border: #cfcfcf;
  --surface: #f7f7f7;
  --accent: #0645ad;
  --accent-visited: #551a8b;
  --code-bg: #f5f5f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font: 18px/1.5 Georgia, "Times New Roman", Times, serif;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

a:visited {
  color: var(--accent-visited);
}

a:hover {
  text-decoration: underline;
}

code,
pre {
  font-family: "Courier New", Courier, monospace;
}

code {
  font-size: 0.92em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 16px 32px;
}

.header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: 38px;
  font-weight: 700;
}

h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.summary {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 18px;
}

.links a {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 5px 11px;
  font-size: 17px;
  font-weight: 400;
}

.links a:first-child {
  border-color: var(--border);
  background: var(--page);
  color: var(--text);
}

.links a:hover {
  text-decoration: none;
}

.notice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

.notice div {
  padding: 16px;
}

.notice div + div {
  border-left: 1px solid var(--border);
}

.notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.notice span,
.muted {
  color: var(--muted);
}

.section {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  table-layout: fixed;
}

th:nth-child(1),
td:nth-child(1) {
  width: 34%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 44%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 22%;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
  font-size: 15px;
}

tr:last-child td {
  border-bottom: 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 28px;
}

.file-list {
  margin: 0;
  padding-left: 20px;
}

.file-list li + li {
  margin-top: 10px;
}

pre {
  margin: 0 0 14px;
  padding: 14px;
  overflow: auto;
  background: var(--code-bg);
  border: 1px solid var(--border);
  white-space: pre-wrap;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .page {
    max-width: 390px;
    margin: 0;
    padding: 32px 18px;
  }

  h1 {
    font-size: 30px;
  }

  .summary {
    font-size: 17px;
    max-width: calc(100vw - 36px);
  }

  .notice,
  .two-column {
    grid-template-columns: 1fr;
  }

  .notice div + div {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .links {
    flex-direction: column;
  }

  .links a {
    text-align: center;
  }

  .footer {
    flex-direction: column;
  }

  table {
    display: block;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  th:nth-child(1),
  th:nth-child(2),
  th:nth-child(3),
  td:nth-child(1),
  td:nth-child(2),
  td:nth-child(3) {
    width: 100%;
  }

  tr {
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }

  tr:last-child {
    border-bottom: 0;
  }

  th,
  td {
    padding: 0;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }

  td + td {
    margin-top: 6px;
  }
}

@media (max-width: 430px) {
  .page {
    padding-inline: 16px;
  }

  h1 {
    font-size: 28px;
  }

  .table-wrap {
    margin-inline: 0;
  }
}
