:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #5c6964;
  --line: #dfe7e3;
  --soft: #f4f8f6;
  --accent: #15735b;
  --accent-strong: #0d5a46;
  --warning: #7a4a12;
  --warning-bg: #fff7e8;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  color: var(--ink);
  font-family:
    Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body {
  margin: 0;
  background: #fff;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.site-header__inner,
.document,
.site-footer__inner {
  width: min(100% - 36px, 820px);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 13px;
}

.document {
  padding: 52px 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.22;
}

.lead {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 13px;
}

.index {
  margin: 36px 0 44px;
  padding: 22px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}

.index strong {
  display: block;
  margin-bottom: 10px;
}

.index ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 0;
  padding-left: 21px;
}

section {
  scroll-margin-top: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.4;
}

section h3 {
  margin: 24px 0 10px;
  font-size: 17px;
}

p,
ul,
ol {
  margin-top: 0;
}

li + li {
  margin-top: 7px;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
}

.table-wrap:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.notice {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #efd9ad;
  background: var(--warning-bg);
  color: var(--warning);
}

.action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.action:hover {
  background: var(--accent-strong);
}

.document-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.document-link {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.document-link strong,
.document-link span {
  display: block;
}

.document-link span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.site-footer__inner {
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 3px 0;
}

@media (max-width: 640px) {
  .site-header__inner {
    min-height: 58px;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .document {
    padding-top: 38px;
  }

  .index ol {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .site-footer {
    display: none;
  }

  .document {
    width: 100%;
    padding: 0;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
