:root {
  --ink: #16262E;
  --ink-2: #40555E;
  --muted: #718A92;
  --line: #D3DFE0;
  --surface: #F4F8F7;
  --paper: #FFFFFF;
  --accent: #2E7D6B;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, white);
  --warn: #A65E2E;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Gothic A1", sans-serif;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}
h1 { font-size: 3rem; line-height: 1.15; }
h2 { font-size: 1.9rem; line-height: 1.25; }
h3 { font-size: 1.3rem; line-height: 1.3; }
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
}
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.caption { font-size: 0.85rem; line-height: 1.6; color: var(--muted); }
a { color: var(--accent); }

.sr-title {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 3px;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 720px; }
section { padding: 56px 0; }
@media (min-width: 900px) {
  section { padding: 96px 0; }
}
.surface { background: var(--surface); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px;
  background: var(--paper);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none;
  font-family: "Gothic A1", sans-serif; font-weight: 700; font-size: 1.05rem;
}
.logo svg { color: var(--accent); flex: none; }
.site-header nav {
  display: flex; gap: 4px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.site-header nav a {
  color: var(--ink-2); text-decoration: none; font-size: 0.92rem;
  padding: 8px 12px; border-radius: 3px; white-space: nowrap;
}
.site-header nav a:hover { color: var(--ink); background: var(--surface); }
.site-header nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.header-call {
  flex: none; background: var(--accent); color: #fff; text-decoration: none;
  font-size: 0.9rem; font-weight: 700; padding: 9px 16px; border-radius: 3px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .site-header { padding: 12px; }
  .logo span { display: none; }
  .site-header nav a { padding: 8px 8px; font-size: 0.82rem; }
  .header-call { padding: 8px 12px; font-size: 0.82rem; }
}

/* hero */
.hero { padding: 64px 0 48px; }
@media (min-width: 900px) { .hero { padding: 96px 0 64px; } }
.hero .eyebrow {
  font-family: "IBM Plex Sans KR", sans-serif; font-size: 0.85rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 56ch; margin-top: 16px; }

/* buttons / cta */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 3px; text-decoration: none;
  font-weight: 700; font-size: 1rem; border: 1px solid transparent;
}
.btn svg { flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.cta-block {
  border: 1px solid var(--line); border-radius: 3px; padding: 40px;
  background: var(--surface); text-align: center;
}
.cta-block h2 { margin-bottom: 8px; }
.cta-block .cta-row { justify-content: center; }

/* descent divider */
.descent { display: block; width: 100%; height: auto; margin: 8px 0; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 3px; }
table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 0.95rem; }
caption {
  text-align: left; font-family: "IBM Plex Sans KR", sans-serif; font-weight: 600;
  padding: 12px 16px; background: var(--surface); color: var(--ink-2); font-size: 0.85rem;
}
th, td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: "IBM Plex Sans KR", sans-serif; font-weight: 600; font-size: 0.85rem;
  color: var(--muted); background: var(--paper); border-top: none;
}

/* cards */
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line); border-radius: 3px; padding: 20px; background: var(--paper);
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.card li { margin-bottom: 4px; }

/* svg diagram figure */
.diagram {
  border: 1px solid var(--line); border-radius: 3px; padding: 20px; background: var(--paper);
}
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { margin-top: 12px; }

/* photo figure */
.fig { margin: 0; }
.fig picture, .fig .placeholder { display: block; border-radius: 3px; overflow: hidden; }
.fig img { width: 100%; height: auto; display: block; }
.placeholder {
  aspect-ratio: 16/10; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-family: "IBM Plex Sans KR", sans-serif; font-size: 0.85rem;
  border: 1px dashed var(--line);
}
.fig figcaption { margin-top: 10px; }

/* carousel */
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 0 12px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
@media (max-width: 900px) { .carousel > * { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .carousel > * { flex-basis: 87%; } }
@media (prefers-reduced-motion: reduce) { .carousel { scroll-behavior: auto; } }

.carousel-card { text-decoration: none; color: inherit; display: block; }
.carousel-card h3 { font-size: 1.05rem; margin: 12px 0 4px; }
.carousel-card p { color: var(--ink-2); font-size: 0.92rem; margin-bottom: 6px; }
.carousel-card .more { color: var(--accent); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 4px; }

.carousel-nav { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }
.carousel-nav button {
  border: 1px solid var(--line); background: var(--paper); border-radius: 3px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
}
.carousel-nav button:hover { background: var(--surface); }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0; margin-top: 0; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
footer nav a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
footer nav a:hover { color: var(--ink); }
footer address { font-style: normal; color: var(--muted); font-size: 0.85rem; line-height: 1.9; }
footer address p { margin: 0; }

/* hub grid */
.hub-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-empty { color: var(--muted); border: 1px dashed var(--line); border-radius: 3px; padding: 32px; text-align: center; }

/* sitemap */
.sitemap-tree ul { list-style: none; padding-left: 1.4em; margin: 8px 0; }
.sitemap-tree > ul { padding-left: 0; }
.sitemap-tree a { color: var(--ink-2); text-decoration: none; }
.sitemap-tree a:hover { color: var(--accent); }

/* faq */
.qa dt { font-weight: 700; margin-top: 20px; font-family: "IBM Plex Sans KR", sans-serif; }
.qa dd { margin: 6px 0 0; color: var(--ink-2); }

/* checklist */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: none; }
.check-list svg { flex: none; margin-top: 3px; color: var(--accent); }
