:root {
  --ink: #1d2420;
  --muted: #617069;
  --line: #dbe4dd;
  --surface: #ffffff;
  --surface-soft: #f4f8f4;
  --green: #118545;
  --green-dark: #096a35;
  --gold: #a66f00;
  --blue: #226e9c;
  --max: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fbfcfa;
  color: var(--ink);
  font-family: Arial, "Noto Sans KR", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  border: 1px solid var(--green);
  border-radius: 6px;
  background: #fff;
  padding: 8px 12px;
  color: var(--green-dark);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.site-bar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-bar__inner,
.page-shell,
.site-footer__inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-bar__inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  display: block;
  width: 190px;
  height: auto;
}

.site-nav,
.footer-nav,
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.site-nav a,
.footer-nav a,
.related-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible,
.related-links a:hover,
.related-links a:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav .is-current { color: var(--green-dark); }

.page-shell { padding: 32px 0 56px; }

.breadcrumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a { color: inherit; }

.guide-article,
.guide-index {
  border-top: 4px solid var(--green);
  background: var(--surface);
}

.article-header,
.index-header {
  border-bottom: 1px solid var(--line);
  padding: 30px clamp(20px, 4vw, 42px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3 { color: var(--ink); }

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.24;
}

h2 {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.35;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: #435049;
  font-size: 17px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.article-body { padding: clamp(20px, 4vw, 42px); }

.article-body section + section { margin-top: 44px; }

.article-body p { margin: 12px 0 0; }

.article-body ul,
.article-body ol { margin: 14px 0 0; padding-left: 22px; }

.article-body li + li { margin-top: 8px; }

.notice {
  border-left: 4px solid var(--gold);
  background: #fff9ec;
  padding: 14px 16px;
}

.notice p { margin: 0; }

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

.check-grid article,
.guide-card,
.policy-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.check-grid article:nth-child(2n),
.guide-card:nth-child(3n + 2) { border-top: 3px solid var(--blue); }

.check-grid article:nth-child(2n + 1),
.guide-card:nth-child(3n + 1) { border-top: 3px solid var(--green); }

.check-grid p,
.guide-card p,
.policy-grid p { color: var(--muted); }

.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.guide-card {
  display: flex;
  min-height: 224px;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.guide-card:hover,
.guide-card:focus-visible {
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(19, 84, 44, 0.11);
}

.guide-card span {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
}

.guide-card strong { font-size: 16px; }

.index-visual {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin: 22px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
  text-align: left;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 14px;
}

tr:last-child td { border-bottom: 0; }

.related {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.article-transparency {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 18px 0 0;
}

.review-list div {
  border-left: 3px solid var(--green);
  padding-left: 12px;
}

.review-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.review-list dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.review-list a,
.reference-list a {
  color: var(--green-dark);
  font-weight: 900;
}

.article-transparency h3 { margin-top: 24px; font-size: 17px; }

.reference-list {
  margin-top: 10px;
  padding-left: 20px;
}

.reference-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  padding: 9px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.button:hover,
.button:focus-visible { background: var(--green-dark); }

.button--secondary {
  background: #fff;
  color: var(--green-dark);
}

.button--secondary:hover,
.button--secondary:focus-visible { background: var(--surface-soft); }

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer__inner {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p { max-width: 500px; margin: 0; }

@media (max-width: 760px) {
  .site-bar__inner { min-height: 64px; align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 0; }
  .brand img { width: 164px; }
  .site-nav { gap: 5px 13px; }
  .site-nav a { font-size: 13px; }
  .page-shell { padding: 20px 0 40px; }
  .article-header, .index-header, .article-body { padding: 22px 18px; }
  .lead { font-size: 16px; }
  .check-grid, .guide-grid, .policy-grid { grid-template-columns: 1fr; }
  .review-list { grid-template-columns: 1fr; }
  .guide-card { min-height: 0; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 20px 0; }
}
