:root {
  --ink: #102039;
  --ink-soft: #43526a;
  --paper: #f7f9fc;
  --white: #ffffff;
  --navy: #07152f;
  --navy-2: #0e2852;
  --blue: #285fba;
  --blue-soft: #e9f1ff;
  --gold: #d6a747;
  --gold-soft: #fff4d8;
  --line: #dce4ef;
  --success: #24775d;
  --shadow: 0 18px 60px rgba(18, 38, 70, .09);
  --radius: 22px;
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  word-break: keep-all;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #17458f; }
button, input { font: inherit; }
code {
  padding: .12rem .4rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: #f2f5f9;
  font-size: .93em;
  word-break: break-all;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(220, 228, 239, .84);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--content), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
}
.brand:hover { color: var(--navy); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(214, 167, 71, .72);
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(145deg, #f4d789, #be8424);
  box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 8px 22px rgba(181, 127, 28, .2);
  color: #17233a;
  font-family: Georgia, serif;
  font-weight: 800;
  line-height: 1;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.02rem; letter-spacing: -.025em; }
.brand small { color: #68768a; font-size: .71rem; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 10px 12px;
  border-radius: 11px;
  color: #33435c;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--blue-soft); color: #164991; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  padding: 8px 12px;
  font-weight: 700;
}

main { min-height: 64vh; }
.container, .breadcrumbs {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}
.breadcrumbs { padding-block: 20px 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { color: #6c788a; font-size: .82rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #adb7c4; }
.breadcrumbs a { color: inherit; text-decoration: none; }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -55% 38%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 112, 207, .34), transparent 66%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 54px;
  width: min(var(--content), calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  padding-block: 68px;
}
.hero-copy { max-width: 610px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #efd58e;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.hero h1, .page-hero h1 {
  margin: 0;
  letter-spacing: -.045em;
  line-height: 1.18;
}
.hero h1 { max-width: 720px; font-size: clamp(2.65rem, 5vw, 4.8rem); }
.hero .lead { max-width: 620px; margin: 24px 0 0; color: #cbd8ed; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, #efcd72, #c99431);
  box-shadow: 0 10px 28px rgba(175, 119, 25, .22);
  color: #16223a;
  font-weight: 800;
  text-decoration: none;
}
.button:hover { color: #07152f; transform: translateY(-1px); }
.button.secondary { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); box-shadow: none; color: var(--white); }
.button.secondary:hover { background: rgba(255, 255, 255, .15); color: var(--white); }
.button.outline { border-color: #bdcce0; background: var(--white); box-shadow: none; color: var(--blue); }
.hero-visual {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 30px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .3);
}
.hero-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.stat-band { position: relative; z-index: 2; margin-top: -36px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.stat { padding: 24px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong, .stat span { display: block; }
.stat strong { color: var(--navy); font-size: 1.5rem; line-height: 1.2; }
.stat span { margin-top: 5px; color: var(--ink-soft); font-size: .82rem; }

.section { padding-block: 86px; }
.section.compact { padding-block: 56px; }
.section.tint { background: #edf3fb; }
.section.dark { background: var(--navy); color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { margin: 0 0 10px; color: var(--blue); font-size: .77rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.section.dark .kicker { color: #eac96d; }
h2, h3 { color: var(--navy); line-height: 1.32; letter-spacing: -.025em; }
.section.dark h2, .section.dark h3 { color: var(--white); }
h2 { margin: 0; font-size: clamp(1.85rem, 3.5vw, 2.7rem); }
h3 { margin: 0 0 10px; font-size: 1.16rem; }
.section-head > p:not(.kicker) { margin: 14px 0 0; color: var(--ink-soft); font-size: 1.03rem; }
.section.dark .section-head > p:not(.kicker), .section.dark p { color: #c6d4e8; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .category-card, .step-card, .service-card, .policy-card, .flow-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 36px rgba(18, 38, 70, .045);
}
.card, .step-card, .policy-card, .flow-card { padding: 26px; }
.card p, .category-card p, .step-card p, .policy-card p, .flow-card p { margin: 0; color: var(--ink-soft); }
.number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: #8a5a0d;
  font-weight: 900;
}
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { position: relative; padding: 25px; }
.category-card .category-count { display: inline-block; margin-bottom: 18px; color: var(--blue); font-size: .76rem; font-weight: 900; }
.category-card a { display: inline-block; margin-top: 18px; font-size: .88rem; font-weight: 800; text-decoration: none; }
.category-card:last-child { grid-column: span 2; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  align-items: center;
  gap: 58px;
}
.split.reverse > :first-child { order: 2; }
.editorial-image { overflow: hidden; border-radius: 26px; box-shadow: var(--shadow); }
.editorial-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.check-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .05em;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e1f4ed;
  color: var(--success);
  font-size: .72rem;
  font-weight: 900;
}
.text-link { display: inline-flex; margin-top: 22px; font-weight: 800; text-decoration: none; }

.page-hero { padding: 66px 0 50px; }
.page-hero .inner { width: min(900px, calc(100% - 40px)); margin: 0 auto; text-align: center; }
.page-hero .eyebrow { color: var(--blue); }
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
.page-hero .lead { margin: 20px auto 0; color: var(--ink-soft); font-size: 1.08rem; }
.page-hero .hero-actions { justify-content: center; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 22px; color: #69778c; font-size: .8rem; }
.article-meta span:not(:last-child)::after { content: "·"; margin-left: 18px; }

.content-wrap { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 90px; }
.prose { color: #263752; }
.prose h2 { margin: 56px 0 16px; font-size: 1.8rem; }
.prose h3 { margin-top: 34px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 16px 0 24px; padding-left: 1.35rem; }
.prose li + li { margin-top: 9px; }
.prose blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: var(--gold-soft);
  color: #563e15;
}
.prose .note, .note {
  padding: 20px 22px;
  border: 1px solid #bfd3ef;
  border-radius: 15px;
  background: var(--blue-soft);
  color: #233e68;
}
.prose figure { margin: 34px 0; }
.prose figcaption { margin-top: 10px; color: #69778c; font-size: .8rem; }

.filter-panel {
  position: sticky;
  z-index: 20;
  top: 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 36px rgba(18, 38, 70, .07);
}
.search-field { flex: 1 1 260px; }
.search-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bdc9d9;
  border-radius: 11px;
  padding: 9px 13px;
  color: var(--ink);
}
.filter-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #42536d;
  padding: 7px 12px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
}
.filter-button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: var(--white); }
.result-count { margin: 0 0 18px; color: #65748a; font-size: .86rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-card { display: flex; flex-direction: column; padding: 25px; }
.service-card[hidden] { display: none; }
.service-card-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.service-card h2 { font-size: 1.35rem; }
.service-domain { display: inline-block; margin-top: 4px; color: #68778c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; }
.slot { flex: 0 0 auto; color: #8b6722; font-size: .75rem; font-weight: 800; }
.service-purpose { min-height: 3.4em; margin: 17px 0 20px; color: var(--ink-soft); }
.facts { display: grid; gap: 10px; margin: 0; }
.facts > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding-top: 10px; border-top: 1px solid #e8edf4; }
.facts dt { color: #69778b; font-size: .78rem; font-weight: 800; }
.facts dd { margin: 0; color: #2b3c56; font-size: .86rem; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; }
.service-actions a { font-weight: 800; text-decoration: none; }
.service-actions small { color: #718096; }

.comparison-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--white); }
.comparison-table th, .comparison-table td { padding: 14px 16px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.comparison-table th { background: #edf3fb; color: var(--navy); font-size: .86rem; }
.table-scroll { overflow-x: auto; border-radius: 16px; }

.timeline { position: relative; margin: 0; padding: 0 0 0 28px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 7px; bottom: 7px; width: 2px; background: #c9d7e8; }
.timeline li { position: relative; padding: 0 0 32px 18px; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 7px; width: 12px; height: 12px; border: 3px solid var(--paper); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.timeline time { color: var(--blue); font-size: .8rem; font-weight: 900; }
.timeline h2 { margin-top: 4px; font-size: 1.35rem; }

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  border-radius: 24px;
  background: linear-gradient(135deg, #132d58, #07152f);
  color: var(--white);
}
.callout h2 { color: var(--white); font-size: 1.65rem; }
.callout p { margin: 8px 0 0; color: #cbd8eb; }

.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding-block: 54px 40px;
}
.footer-grid section > p { max-width: 530px; color: #68768a; font-size: .86rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid nav strong { margin-bottom: 4px; font-size: .88rem; }
.footer-grid nav a { color: #5e6d82; font-size: .84rem; text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  color: #778497;
  font-size: .76rem;
}
.footer-bottom p { margin: 0; }

.not-found { width: min(680px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0; text-align: center; }
.not-found strong { display: block; color: var(--gold); font: 800 5rem/1 Georgia, serif; }
.not-found h1 { margin: 16px 0 10px; font-size: 2rem; }
.not-found p { color: var(--ink-soft); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px;
    right: 20px;
    display: none;
    min-width: 220px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { max-width: 760px; }
  .category-grid, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .category-card:last-child { grid-column: auto; }
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: initial; }
}

@media (max-width: 720px) {
  body { word-break: normal; }
  .header-inner, .container, .breadcrumbs, .hero-grid, .page-hero .inner, .content-wrap, .footer-grid, .footer-bottom { width: min(100% - 28px, var(--content)); }
  .brand small { display: none; }
  .hero-grid { min-height: auto; padding-block: 54px 72px; }
  .hero h1 { font-size: 2.65rem; }
  .stat-band { margin-top: -28px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .section { padding-block: 64px; }
  .grid.two, .grid.three, .grid.four, .category-grid, .service-grid { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .service-purpose { min-height: 0; }
  .callout { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid section { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .article-meta span::after { display: none; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .stat { padding: 18px; }
  .stat strong { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid section { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
