:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #526375;
  --line: #d7dee6;
  --line-strong: #aebbc8;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --navy: #17365d;
  --blue: #005ea8;
  --blue-dark: #00447d;
  --red: #c9362e;
  --green: #18794e;
  --focus: #ffbf47;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: #111;
  color: #fff;
}

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

.government-bar {
  border-bottom: 1px solid #d9e1e8;
  background: #f5f7f9;
  color: #435363;
  font-size: 13px;
}

.government-bar > div,
.site-header-inner,
.content-container,
.site-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.government-bar > div {
  display: flex;
  min-height: 34px;
  align-items: center;
}

.flag-mark {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 7px;
  border: 4px solid var(--red);
  border-right-color: var(--blue);
  border-radius: 50%;
  vertical-align: -2px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  display: grid;
  min-height: 78px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.site-brand > span:last-child {
  display: grid;
}

.site-brand strong {
  font-size: 18px;
  line-height: 1.25;
}

.site-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.brand-emblem {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  padding: 26px 13px 24px;
  color: #2d3d4d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"]::after,
.site-nav a:hover::after {
  position: absolute;
  right: 13px;
  bottom: 15px;
  left: 13px;
  height: 3px;
  background: var(--red);
  content: "";
}

.header-map-link,
.map-action-band > a,
.index-map-band > a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--blue-dark);
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.header-map-link:hover,
.map-action-band > a:hover,
.index-map-band > a:hover {
  background: var(--blue-dark);
}

.content-container {
  padding: 26px 0 88px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  margin-bottom: 32px;
  color: #697a8b;
  font-size: 13px;
  white-space: nowrap;
}

.breadcrumbs a {
  color: #4c5d6d;
}

.breadcrumbs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-header,
.index-header {
  max-width: 880px;
  padding: 30px 0 44px;
}

.article-category,
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.article-header h1,
.index-header h1 {
  margin: 0;
  color: #132941;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.22;
  letter-spacing: 0;
  word-break: keep-all;
}

.article-lead,
.index-header > p:last-child {
  max-width: 820px;
  margin: 22px 0 0;
  color: #405367;
  font-size: 19px;
  line-height: 1.75;
  word-break: keep-all;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  color: #637486;
  font-size: 13px;
}

.key-summary {
  display: grid;
  margin: 0 0 28px;
  padding: 26px 30px;
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-soft);
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.6fr);
  gap: 32px;
}

.key-summary span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.key-summary h2 {
  margin: 5px 0 0;
  font-size: 20px;
}

.key-summary ul {
  margin: 0;
  padding-left: 22px;
}

.key-summary li + li {
  margin-top: 8px;
}

.map-action-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 56px;
  padding: 20px 24px;
  border-left: 5px solid var(--red);
  background: #fff7f5;
}

.map-action-band > div {
  display: grid;
  gap: 3px;
}

.map-action-band span {
  color: var(--muted);
  font-size: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  align-items: start;
  justify-content: space-between;
  gap: 64px;
}

.article-toc {
  position: sticky;
  top: 110px;
  display: grid;
  padding: 18px 0;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--line);
  gap: 1px;
}

.article-toc strong {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 13px;
}

.article-toc a {
  padding: 7px 0;
  color: #536476;
  font-size: 13px;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.article-body {
  min-width: 0;
}

.content-section {
  padding: 0 0 54px;
  scroll-margin-top: 120px;
}

.content-section + .content-section {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.content-section h2,
.faq-section h2,
.source-section h2,
.related-section h2,
.data-section h2,
.index-map-band h2 {
  margin: 0 0 20px;
  color: #15304e;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: 0;
  word-break: keep-all;
}

.content-section p,
.source-section p,
.index-map-band p {
  margin: 0 0 18px;
  color: #35495c;
  font-size: 17px;
  line-height: 1.85;
  word-break: keep-all;
}

.content-section ul {
  display: grid;
  margin: 0;
  padding: 22px 24px 22px 48px;
  border-left: 4px solid var(--green);
  background: #f4f9f6;
  gap: 10px;
}

.content-section li {
  padding-left: 4px;
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.source-actions a {
  padding: 9px 13px;
  border: 1px solid var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.notice-box {
  margin: 4px 0 54px;
  padding: 20px 22px;
  border: 1px solid #e4c786;
  border-left: 5px solid #b77900;
  background: #fff9e8;
}

.notice-box strong {
  color: #684700;
}

.notice-box p {
  margin: 6px 0 0;
  color: #594b2c;
}

.faq-section {
  padding-top: 48px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}

.faq-list {
  border-top: 2px solid var(--navy);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 20px 46px 20px 4px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 17px;
  right: 8px;
  color: var(--blue);
  content: "+";
  font-size: 24px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 34px 20px 4px;
  color: var(--muted);
}

.source-section {
  display: grid;
  margin-top: 72px;
  padding: 36px 0;
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  scroll-margin-top: 120px;
}

.source-section ul {
  display: grid;
  align-content: start;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.source-section li {
  border-bottom: 1px solid var(--line);
}

.source-section a {
  display: block;
  padding: 9px 0;
  font-weight: 700;
}

.related-section {
  padding: 72px 0 0;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.related-grid {
  display: grid;
  border-top: 2px solid var(--navy);
  grid-template-columns: repeat(3, 1fr);
}

.related-grid > a {
  display: grid;
  min-height: 150px;
  align-content: space-between;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.related-grid > a:first-child {
  border-left: 1px solid var(--line);
}

.related-grid > a:hover {
  background: var(--surface-soft);
}

.related-grid span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.data-section {
  margin: 36px 0 64px;
  padding: 34px 0 0;
  border-top: 4px solid var(--green);
}

.stat-grid {
  display: grid;
  margin: 22px 0 34px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  grid-template-columns: repeat(4, 1fr);
}

.stat-grid-compact {
  grid-template-columns: repeat(3, 1fr);
}

.stat-grid > div {
  display: grid;
  min-height: 118px;
  align-content: center;
  padding: 18px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.stat-grid strong {
  color: var(--navy);
  font-size: 25px;
  line-height: 1.2;
}

.stat-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--navy);
}

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  text-align: left;
}

caption {
  padding: 14px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--surface-soft);
  color: var(--navy);
  font-size: 13px;
}

tbody th {
  font-weight: 700;
}

.data-caption {
  color: #667789;
  font-size: 12px;
}

.index-header {
  padding-bottom: 52px;
}

.index-list {
  border-top: 3px solid var(--navy);
}

.index-list article {
  display: grid;
  min-height: 150px;
  grid-template-columns: 56px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.index-list article > span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.index-list h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.35;
}

.index-list h2 a {
  color: var(--ink);
  text-decoration: none;
}

.index-list h2 a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.index-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.index-item-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--blue);
  font-size: 22px;
  text-decoration: none;
}

.index-map-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 72px;
  padding: 32px;
  border-top: 4px solid var(--red);
  background: var(--surface-soft);
}

.index-map-band h2 {
  margin-bottom: 8px;
}

.index-map-band p {
  margin: 0;
  font-size: 15px;
}

.site-footer {
  border-top: 1px solid #31475e;
  background: #1c2f42;
  color: #dce5ed;
}

.site-footer-inner {
  display: grid;
  padding: 42px 0;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px 50px;
}

.site-footer strong {
  color: #fff;
  font-size: 16px;
}

.site-footer p {
  margin: 8px 0 0;
  color: #b8c6d2;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 8px 20px;
}

.site-footer a {
  color: #edf4fa;
  font-size: 13px;
}

.footer-disclaimer {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid #42576b;
}

@media (max-width: 980px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 13px 12px;
  }

  .site-nav a[aria-current="page"]::after,
  .site-nav a:hover::after {
    right: 12px;
    bottom: 4px;
    left: 12px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-toc strong {
    grid-column: 1 / -1;
  }

  .article-body {
    max-width: 800px;
  }
}

@media (max-width: 720px) {
  .government-bar > div,
  .site-header-inner,
  .content-container,
  .site-footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .government-bar {
    font-size: 11px;
  }

  .site-header-inner {
    min-height: 66px;
    gap: 12px;
  }

  .site-brand small,
  .header-map-link {
    display: none;
  }

  .brand-emblem {
    width: 36px;
    height: 36px;
    font-size: 10px;
  }

  .site-brand strong {
    font-size: 16px;
  }

  .site-nav {
    width: calc(100% + 28px);
    margin-left: -14px;
    padding-left: 2px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .content-container {
    padding-top: 18px;
    padding-bottom: 60px;
  }

  .breadcrumbs {
    margin-bottom: 10px;
  }

  .article-header,
  .index-header {
    padding: 24px 0 34px;
  }

  .article-header h1,
  .index-header h1 {
    font-size: 32px;
  }

  .article-lead,
  .index-header > p:last-child {
    font-size: 17px;
  }

  .key-summary {
    padding: 22px 18px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .map-action-band,
  .index-map-band {
    align-items: stretch;
    flex-direction: column;
  }

  .map-action-band > a,
  .index-map-band > a {
    width: 100%;
  }

  .article-toc {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding-bottom: 42px;
  }

  .content-section + .content-section {
    padding-top: 40px;
  }

  .content-section h2,
  .faq-section h2,
  .source-section h2,
  .related-section h2,
  .data-section h2,
  .index-map-band h2 {
    font-size: 23px;
  }

  .content-section p {
    font-size: 16px;
  }

  .content-section ul {
    padding: 18px 16px 18px 38px;
  }

  .source-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .related-grid > a {
    min-height: 120px;
    border-left: 1px solid var(--line);
  }

  .stat-grid,
  .stat-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid strong {
    font-size: 20px;
  }

  .index-list article {
    min-height: 160px;
    grid-template-columns: 32px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .index-list p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .footer-disclaimer {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .stat-grid,
  .stat-grid-compact {
    grid-template-columns: 1fr;
  }

  .article-header h1,
  .index-header h1 {
    font-size: 29px;
  }
}
