:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #202b45;
  background: #f7f9fd;
  font-synthesis: none;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #284da7;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid #3a61c4;
  outline-offset: 4px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 2;
  background: white;
  padding: 0.6rem 1rem;
}
.skip-link:focus {
  top: 0.5rem;
}
.site-header,
.draft-notice,
.documents,
.reading-layout,
footer {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  color: #56637c;
  font-size: 0.9rem;
}
.wordmark {
  color: #253b6c;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-decoration: none;
}
.wordmark span {
  color: #3a61c4;
}
.draft-notice {
  border: 1px solid #c4d1ef;
  border-left: 4px solid #3a61c4;
  background: #edf2ff;
  border-radius: 8px;
  padding: 1rem 1.3rem;
}
.draft-notice strong {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  color: #294eaa;
}
.draft-notice p {
  margin: 0.25rem 0 0;
  font-size: 0.94rem;
}
.documents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-block: 1.5rem 2rem;
}
.documents a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid #c7d1e5;
  border-radius: 8px;
  background: white;
  text-decoration: none;
  font-size: 0.9rem;
}
.documents a[aria-current] {
  background: #3a61c4;
  border-color: #3a61c4;
  color: white;
}
.documents span {
  font-size: 0.7rem;
  font-weight: 700;
}
.reading-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.contents {
  position: sticky;
  top: 1.5rem;
  font-size: 0.88rem;
}
.contents h2 {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: #56637c;
}
.contents ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contents li + li {
  margin-top: 0.65rem;
}
.contents a {
  display: block;
  text-decoration: none;
  padding: 0.15rem 0;
}
main {
  min-width: 0;
  background: white;
  border: 1px solid #e1e7f1;
  border-radius: 14px;
  padding: clamp(1.25rem, 4vw, 3rem);
}
article {
  overflow-wrap: anywhere;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #1c315e;
  line-height: 1.3;
  scroll-margin-top: 1.5rem;
}
article h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.65rem);
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
}
article h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e7ecf5;
}
p {
  margin: 0 0 1.2rem;
}
li {
  padding-left: 0.15rem;
}
li + li {
  margin-top: 0.55rem;
}
blockquote {
  border-left: 3px solid #aabde9;
  margin: 1rem 0 1.8rem;
  padding: 1rem 1.25rem;
  background: #f4f7fd;
  font-size: 0.93rem;
}
blockquote p:last-child {
  margin-bottom: 0;
}
code {
  font-size: 0.85em;
  background: #f0f3f9;
  padding: 0.12em 0.3em;
  border-radius: 3px;
}
.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #d7dfed;
  border-radius: 6px;
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.6;
}
th,
td {
  padding: 0.8rem;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid #dfe6f1;
}
th {
  background: #edf2fc;
  color: #233f7d;
  font-weight: 650;
}
tr:last-child td {
  border-bottom: 0;
}
td + td,
th + th {
  border-left: 1px solid #e6ebf4;
}
footer {
  padding-block: 2rem;
  text-align: center;
  color: #56637c;
  font-size: 0.85rem;
}
@media (max-width: 820px) {
  .reading-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .contents {
    position: static;
  }
  .contents ol {
    columns: 2;
    column-gap: 1.5rem;
  }
  .contents li {
    break-inside: avoid;
  }
}
@media (max-width: 480px) {
  .site-header,
  .draft-notice,
  .documents,
  .reading-layout,
  footer {
    width: calc(100% - 2rem);
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
  .documents {
    gap: 0.5rem;
  }
  .documents a {
    flex: 1 1 45%;
    justify-content: space-between;
    padding-inline: 0.65rem;
  }
  .contents ol {
    columns: 1;
  }
  .contents a {
    padding-block: 0.35rem;
  }
  main {
    padding: 1.1rem;
  }
}
@media print {
  .contents,
  .documents,
  .skip-link {
    display: none;
  }
  .reading-layout {
    display: block;
  }
  main {
    border: 0;
    padding: 0;
  }
  .table-scroll {
    overflow: visible;
  }
  table {
    min-width: 0;
  }
}
