:root {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  color: #292d29;
  background: #ecece7;
  line-height: 1.85;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  padding: 10px 16px;
  transform: translateY(-200%);
  background: #ffffff;
  z-index: 1;
}

.skip-link:focus {
  transform: none;
}

a {
  color: #614411;
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #614411;
  outline-offset: 3px;
}

main,
.page-footer {
  width: min(100% - 32px, 800px);
  margin-inline: auto;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 16px max(24px, calc((100vw - 800px) / 2));
  color: #f5f6f3;
  background: #242725;
}

.brand {
  color: inherit;
  font-size: 18px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.3px;
}

.page-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
}
.page-header nav a {
  color: #e7e9e4;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.page-header [aria-current='page'],
.page-footer [aria-current='page'] {
  font-weight: 650;
  text-decoration-thickness: 2px;
}

main {
  margin-block: 32px 0;
  padding: 36px clamp(20px, 5vw, 48px) 44px;
  background: #ffffff;
  border: 1px solid #c8cdc3;
  border-radius: 12px;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-wrap: balance;
  line-height: 1.35;
}

h2 {
  margin: 36px 0 12px;
  border-top: 1px solid #dce0d7;
  padding-top: 24px;
  font-size: 19px;
  line-height: 1.4;
}

h3 {
  margin: 22px 0 8px;
  font-size: 17px;
  line-height: 1.5;
}

.contents {
  margin-block: 24px;
  padding: 16px 20px;
  background: #f2eee5;
  border-left: 1px solid #b9a581;
  border-radius: 0;
}

.contents ul {
  margin-bottom: 0;
}

:target {
  scroll-margin-top: 20px;
}

p,
ul {
  margin: 8px 0;
}

ul {
  padding-left: 1.5em;
}

ol {
  padding-left: 1.5em;
}

.lead {
  color: #62665e;
  font-size: 17px;
}

.fact-grid,
.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-block: 24px;
}

.fact-grid > *,
.related-links > a {
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid #d2cec3;
  background: #f6f4ef;
}

.fact-grid h3 {
  margin-top: 0;
}

.fact-grid dt {
  font-weight: 650;
}

.fact-grid dd {
  margin: 6px 0 0;
  font-size: 14px;
}

.example-panel {
  margin-block: 20px;
  padding: 20px;
  border-left: 1px solid #b9a581;
  background: #f2eee5;
}

.related-links > a {
  display: block;
  text-decoration: none;
}

.related-links strong {
  display: block;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related-links span {
  display: block;
  margin-top: 6px;
  color: #62665e;
  font-size: 14px;
}

.related-links > a:hover {
  border-color: #614411;
}

.example-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-block: 20px;
  font-size: 14px;
}

.example-table caption {
  margin-bottom: 8px;
  text-align: left;
  color: #62665e;
}

.example-table th,
.example-table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #dce0d7;
}

.example-table th {
  background: #f2eee5;
}

.qa-group details {
  border-bottom: 1px solid #dce0d7;
  padding-block: 4px;
}

.qa-group summary {
  cursor: pointer;
  min-height: 44px;
  padding-block: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.qa-group details[open] {
  padding-bottom: 16px;
}

.qa-group details:target {
  border-left: 1px solid #b9a581;
  padding-left: 12px;
}

.qa-group details > p,
.qa-group details > ul {
  margin-left: 20px;
}

.qa-group summary:hover {
  color: #614411;
}

del {
  color: #8b3b30;
  background: #fae8e4;
}

ins {
  color: #25583a;
  background: #e2f0e5;
}

.primary-action {
  display: inline-block;
  margin-block: 12px;
  padding: 10px 18px;
  border-radius: 6px;
  background: #614411;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.primary-action:hover {
  background: #4d350e;
}

.updated,
.page-footer {
  color: #62665e;
  font-size: 13px;
}

.page-footer {
  padding-block: 22px 36px;
}

.page-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 12px;
}

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

.page-footer p {
  margin: 0;
}

::selection {
  color: #292d29;
  background: #f2ddb3;
}

.page-header :focus-visible {
  outline-color: #f2ddb3;
}

@media (max-width: 560px) {
  main {
    margin-top: 20px;
    padding: 24px 20px 32px;
  }

  h1 {
    font-size: 26px;
  }
  .page-header {
    gap: 8px;
    padding-block: 16px;
  }

  .page-header nav {
    width: 100%;
  }

  .fact-grid,
  .related-links {
    grid-template-columns: 1fr;
  }

  .example-table th,
  .example-table td {
    padding: 8px;
  }
}
