:root {
  color-scheme: light;
  --ink: #24292c;
  --muted: #5b646a;
  --line: #dce0e3;
  --soft: #f5f6f7;
  --accent: #126b5c;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
html { background: #fff; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: 24px; top: -100px; padding: 10px 16px; background: white; z-index: 10; }
.skip-link:focus { top: 10px; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 25px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; border-radius: 8px; }
header nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
header nav a { text-decoration: none; padding-block: 7px; color: var(--muted); border-bottom: 2px solid transparent; }
header nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.page-title { padding-block: 32px 28px; }
.document-label { color: var(--accent); font-size: 14px; font-weight: 600; margin: 0 0 6px; }
h1 { font-size: 32px; line-height: 1.4; margin: 0; font-weight: 700; }
.document-date { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.document-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); column-gap: 48px; padding-bottom: 48px; }
.contents nav { position: sticky; top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.contents h2 { font-size: 15px; margin: 0 0 12px; }
.contents ol { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.6; }
.contents li + li { margin-top: 12px; }
.contents a { color: var(--muted); text-decoration: none; }
.contents a:hover { color: var(--accent); text-decoration: underline; }
main { min-width: 0; }
article h2 { font-size: 22px; line-height: 1.5; padding-top: 24px; margin: 32px 0 16px; border-top: 1px solid var(--line); }
article h3 { font-size: 18px; line-height: 1.5; margin: 24px 0 12px; }
p { margin: 0 0 18px; }
ul, ol { padding-left: 24px; }
li + li { margin-top: 8px; }
table { border-collapse: collapse; width: 100%; table-layout: fixed; margin: 20px 0; font-size: 14px; line-height: 1.8; }
th, td { text-align: left; vertical-align: top; padding: 13px 14px; border: 1px solid var(--line); }
th { background: var(--soft); font-weight: 600; }
th:first-child, td:first-child { width: 30%; }
footer { border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--muted); font-size: 14px; }
footer p { margin: 0 0 6px; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .document-layout { grid-template-columns: minmax(0, 1fr); }
  .contents nav { position: static; padding-block: 18px 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
  .contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
  .contents li + li { margin-top: 0; }
}
@media (max-width: 460px) {
  .wrap { width: calc(100% - 32px); }
  header { gap: 14px; padding-block: 18px; }
  header nav { width: 100%; gap: 6px 17px; font-size: 14px; }
  .page-title { padding-block: 24px; }
  h1 { font-size: 28px; }
  article h2 { font-size: 21px; }
  .contents ol { grid-template-columns: minmax(0, 1fr); }
  th, td { padding: 10px; }
  th:first-child, td:first-child { width: 32%; }
}
@media print {
  .wrap { width: 100%; }
  header, .contents, .skip-link { display: none; }
  .document-layout { display: block; }
  article h2 { break-after: avoid; }
  tr { break-inside: avoid; }
  a { color: inherit; }
}
