:root {
  --paper: #f5f0e6;
  --paper-line: #ded5c4;
  --card: #fffdf7;
  --ink: #25231f;
  --muted: #6f695e;
  --trail: #bc5f37;
  --trail-dark: #7a3920;
  --moss: #476c50;
  --moss-soft: #e2ecdf;
  --sand: #f3dfb8;
  --warning: #fff0dc;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(222, 213, 196, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(222, 213, 196, 0.28) 1px, transparent 1px);
  background-size: 30px 30px;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: var(--trail-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--moss);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 36px, 960px);
  min-height: 62px;
  margin: 0 auto;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 50% 44% 47% 42%;
  background: var(--sand);
  box-shadow: 2px 2px 0 rgba(37, 35, 31, 0.16);
  font-size: 13px;
  transform: rotate(-4deg);
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.topnav a {
  padding: 5px 10px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.topnav a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--sand);
  color: var(--ink);
}

main {
  width: min(100% - 36px, 960px);
  margin: 0 auto;
  padding: 46px 0 78px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: 18px 13px 16px 12px;
  background: var(--sand);
  box-shadow: 5px 5px 0 rgba(37, 35, 31, 0.14);
}

.hero::after {
  position: absolute;
  right: -48px;
  bottom: -54px;
  width: 190px;
  height: 118px;
  border: 5px solid rgba(71, 108, 80, 0.28);
  border-radius: 50%;
  content: "";
  transform: rotate(-15deg);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--moss);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(31px, 6vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.effective-date {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 18px 0 0;
  font-size: 17px;
}

.summary {
  margin: 25px 0 29px;
  padding: 20px 22px;
  border: 2px solid var(--ink);
  border-radius: 11px 14px 10px 16px;
  background: var(--moss-soft);
  box-shadow: 3px 3px 0 rgba(37, 35, 31, 0.13);
}

.summary strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.summary ul {
  margin: 0;
}

.toc,
.section-card {
  border: 1.7px solid var(--ink);
  background: var(--card);
  box-shadow: 3px 3px 0 rgba(37, 35, 31, 0.11);
}

.toc {
  margin-bottom: 18px;
  padding: 19px 22px;
  border-radius: 11px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  columns: 2;
  margin: 0;
  padding-left: 22px;
}

.toc li {
  break-inside: avoid;
  margin: 3px 0;
}

.section-card {
  margin-top: 18px;
  padding: 25px 26px;
  border-radius: 10px 15px 11px 13px;
  scroll-margin-top: 80px;
}

h2 {
  margin: 0 0 13px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

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

p {
  margin: 9px 0;
}

ul,
ol {
  padding-left: 22px;
}

li + li {
  margin-top: 5px;
}

.table-wrap {
  margin: 14px 0;
  overflow-x: auto;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

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

th {
  background: #f3eee4;
  color: var(--ink);
  font-weight: 900;
}

.notice,
.warning {
  margin: 14px 0;
  padding: 14px 16px;
}

.notice {
  border-left: 5px solid var(--moss);
  background: #f0f6ee;
}

.warning {
  border-left: 5px solid var(--trail);
  background: var(--warning);
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.contact div {
  padding: 12px 14px;
  border: 1px solid var(--paper-line);
  background: #f7f3eb;
}

.contact dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.contact dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.sources {
  color: var(--muted);
  font-size: 13px;
}

footer {
  padding: 24px 18px 34px;
  border-top: 2px solid var(--ink);
  background: var(--card);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .topbar-inner {
    align-items: flex-start;
    padding: 11px 0;
  }

  .brand {
    padding-top: 4px;
    font-size: 16px;
  }

  .topnav {
    gap: 3px;
  }

  .topnav a {
    padding: 4px 7px;
    font-size: 11px;
  }

  main {
    padding-top: 24px;
  }

  .hero,
  .section-card {
    padding: 21px 19px;
  }

  .toc ol {
    columns: 1;
  }

  .contact {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .toc,
  footer {
    display: none;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .hero,
  .summary,
  .section-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
