
/* Layout: 기관 소개형. 상단 메뉴, 깊은 보라 히어로 슬라이드, 핵심 문구 3줄, 6개 영역 목록, 정의 배너, 로드맵, 푸터. */
:root {
  --bg: #f7f5fb;
  --surface: #ffffff;
  --fg: #231a35;
  --muted: #6a5f80;
  --line: #ddd5ec;
  --violet: #4b2e83;
  --violet-soft: #e9e1f7;
  --spark: #c47f00;
  --on-violet: #ffffff;
  --hero-bg: #3a2270;
  --hero-fg: #ffffff;
  --hero-sub: #d9ccf3;
  --logo-plate: transparent;
  --logo-pad: 0;
  --hero-spark: #f2b544;
  --font-display: "Gowun Batang", "Noto Serif KR", serif;
  --font-body: "Noto Sans KR", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17111f; --surface: #20182c; --fg: #f0ecf8; --muted: #b3a8c9;
    --line: #382c4d; --violet: #b9a0f0; --violet-soft: #2c2142; --spark: #f2b544;
    --on-violet: #17111f; --hero-bg: #2a1d46; --logo-plate: #ffffff; --logo-pad: 6px 12px; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17111f; --surface: #20182c; --fg: #f0ecf8; --muted: #b3a8c9;
  --line: #382c4d; --violet: #b9a0f0; --violet-soft: #2c2142; --spark: #f2b544;
  --on-violet: #17111f; --hero-bg: #2a1d46; --logo-plate: #ffffff; --logo-pad: 6px 12px; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  margin: 0; padding-block: 0;
  word-break: keep-all;
}
.gutter { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1080px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; }
.todo { color: var(--spark); font-weight: 500; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--violet); }
.brand img { height: 46px; width: auto; display: block; border-radius: 8px; background: var(--logo-plate); padding: var(--logo-pad); flex: none; }
.brand .name { display: flex; flex-direction: column; line-height: 1.2; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand .name small { font-family: var(--font-body); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.menu { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.menu a { text-decoration: none; color: var(--fg); }
.menu a:hover { color: var(--violet); }
.menu .pill { padding: 8px 18px; border-radius: 999px; background: var(--violet); color: var(--on-violet); font-weight: 500; }
.menu .pill:hover { color: var(--on-violet); opacity: 0.9; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--violet); color: var(--violet); border-radius: 8px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
@media (max-width: 820px) {
  .brand img { height: 38px; }
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-left, 0px)) 16px; z-index: 5; }
  .menu.open { display: flex; }
  .menu a { padding: 10px 0; width: 100%; }
  .menu .pill { width: auto; margin-top: 8px; }
  .top { position: relative; }
}

/* hero */
.hero { background: var(--hero-bg); color: var(--hero-fg); position: relative; overflow: hidden; }
.hero-in { position: relative; padding-block: 72px 56px; }
.hero-art { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: min(420px, 56vw); opacity: 0.14; pointer-events: none; }
.hero-art img { width: 100%; height: auto; display: block; }
.slides { display: grid; position: relative; max-width: 640px; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s; }
.slide.on { opacity: 1; visibility: visible; }
.hero .eyebrow { font-size: 13px; letter-spacing: 0.08em; color: var(--hero-sub); margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5.6vw, 54px); }
.hero .lead { margin-top: 20px; color: var(--hero-sub); font-size: 16.5px; max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; border: 1.5px solid var(--hero-fg); color: var(--hero-fg); }
.btn.solid { background: var(--hero-fg); color: #3a2270; border-color: var(--hero-fg); }
.dots { display: flex; gap: 8px; margin-top: 36px; position: relative; }
.dots button { width: 28px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,0.35); cursor: pointer; padding: 0; }
.dots button[aria-current="true"] { background: var(--hero-spark); }
@media (max-width: 820px) { .hero-art { opacity: 0.1; right: -90px; width: 320px; } .hero-in { padding-block: 48px 40px; } }

/* key phrases */
.keys { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.keys div { padding: 28px 20px 28px 0; font-family: var(--font-display); font-size: clamp(17px, 2.4vw, 22px); color: var(--violet); line-height: 1.5; }
.keys div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.keys small { display: block; font-family: var(--font-body); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 700px) { .keys { grid-template-columns: 1fr; } .keys div, .keys div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); } .keys div:last-child { border-bottom: 0; } }

/* sections */
section { padding-block: 64px; }
.sec-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.sec-title .tag { font-size: 13px; letter-spacing: 0.08em; color: var(--spark); font-weight: 700; }
.sec-title h2 { font-size: clamp(24px, 3.6vw, 34px); flex-basis: 100%; }
.lead-p { max-width: 40em; color: var(--fg); }

/* six areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.area { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; display: block; min-width: 0; }
.area:nth-child(3n+2), .area:nth-child(3n) { padding-left: 24px; border-left: 1px solid var(--line); }
.area h3 { font-size: 19px; color: var(--violet); }
.area p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.area .go { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--spark); font-weight: 700; }
.area:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .areas { grid-template-columns: repeat(2, 1fr); } .area:nth-child(n) { padding: 22px 16px 22px 0; border-left: 0; } .area:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); } }
@media (max-width: 560px) { .areas { grid-template-columns: 1fr; } .area:nth-child(n) { padding: 20px 0; border-left: 0; } }

/* definition banner */
.define { background: var(--violet-soft); border-radius: 20px; padding: 40px clamp(22px, 4vw, 48px); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.define h2 { font-size: clamp(22px, 3.2vw, 30px); color: var(--violet); }
.define p { margin-top: 12px; color: var(--fg); }
.values { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.values li { padding: 6px 14px; border-radius: 999px; background: var(--surface); color: var(--violet); font-size: 14px; font-weight: 500; border: 1px solid var(--line); }
@media (max-width: 760px) { .define { grid-template-columns: 1fr; } }

/* program table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 540px; font-size: 15px; }
th { text-align: left; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; padding: 0 12px 10px 0; border-bottom: 1.5px solid var(--violet); }
td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--violet); }

/* cert band */
.cert { background: var(--violet); color: var(--on-violet); border-radius: 20px; padding: 36px clamp(20px, 4vw, 44px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cert h2 { font-size: clamp(22px, 3vw, 28px); }
.cert p { margin-top: 10px; opacity: 0.9; font-size: 15px; max-width: 34em; }
.cert .no { font-size: 13px; border: 1px solid currentColor; border-radius: 10px; padding: 12px 16px; line-height: 1.5; }
.cert .no b { display: block; font-size: 16px; letter-spacing: 0.02em; }
@media (max-width: 700px) { .cert { grid-template-columns: 1fr; } }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.road li { padding: 20px 20px 0 0; border-top: 3px solid var(--line); position: relative; counter-increment: step; }
.road li::before { content: counter(step); position: absolute; top: -15px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--violet); color: var(--on-violet); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.road li.goal { border-top-color: var(--spark); }
.road li.goal::before { background: var(--spark); color: #231a35; }
.road .when { display: block; margin-top: 10px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.road h3 { font-size: 18px; color: var(--violet); margin-top: 2px; }
.road p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 820px) { .road { grid-template-columns: 1fr; gap: 28px; } .road li { padding-right: 0; } }

/* partners */
.partners { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; list-style: none; margin: 0; }
.partners li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.contact-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0; }
.contact-item .k { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.contact-item .v { margin-top: 4px; font-weight: 500; overflow-wrap: anywhere; }
.contact-note { margin-top: 20px; color: var(--muted); font-size: 14px; }

/* footer */
footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 40px 56px; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.foot .info { font-size: 13px; color: var(--muted); line-height: 1.9; }
.foot .info b { color: var(--fg); font-weight: 500; }
.foot .links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.foot .links a { text-decoration: none; color: var(--violet); }
.foot .brand { margin-bottom: 14px; }
.foot .brand img { height: 56px; }
.copy { margin-top: 20px; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .slide { transition: none; } }

/* ---- multi-page additions ---- */
:root { color-scheme: light; }
.menu a[aria-current="page"] { color: var(--violet); font-weight: 700; }
.pagehead { background: var(--hero-bg); color: var(--hero-fg); }
.pagehead-in { padding-block: 44px 40px; }
.crumb { font-size: 13px; color: var(--hero-sub); margin-bottom: 10px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.pagehead h1 { font-size: clamp(28px, 4.6vw, 42px); }
.pagehead .lead { margin-top: 12px; color: var(--hero-sub); max-width: 36em; }
.foot .links a.foot-kakao { display: inline-block; margin-top: 8px; padding: 10px 18px; border-radius: 999px; background: #FEE500; color: #191919; font-weight: 700; text-align: center; }
.qrbox { display:flex; align-items:center; gap:18px; margin:0 0 20px; padding:16px; background:var(--surface); border:1px solid var(--line); border-radius:14px; max-width:460px; }
.qrbox img { width:132px; height:132px; border-radius:8px; flex:none; }
.btn.kakao { background: #FEE500; color: #191919; border-color: #FEE500; }
.btn.violet { background: var(--violet); color: var(--on-violet); border-color: var(--violet); }
.btn.line { color: var(--violet); border-color: var(--violet); }
.facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.row h3 { font-size: 19px; color: var(--violet); }
.row p { color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: 6px; } }
.quote { border-left: 4px solid var(--spark); padding: 6px 0 6px 20px; font-family: var(--font-display); font-size: clamp(18px, 2.6vw, 22px); line-height: 1.6; color: var(--violet); max-width: 34em; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: f; }
.flow li { padding: 20px 20px 0 0; border-top: 3px solid var(--violet); counter-increment: f; position: relative; }
.flow li::before { content: counter(f); position: absolute; top: -15px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--violet); color: var(--on-violet); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.flow h3 { font-size: 18px; color: var(--violet); margin-top: 4px; }
.flow p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; gap: 28px; } }
.group { margin-top: 28px; }
.group h3 { font-size: 15px; color: var(--muted); font-family: var(--font-body); font-weight: 500; letter-spacing: 0.06em; margin-bottom: 10px; }
.cta-band { border: 1.5px solid var(--violet); border-radius: 16px; padding: 28px clamp(20px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.cta-band h2 { font-size: clamp(20px, 2.6vw, 26px); color: var(--violet); }
.cta-band p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.cta-band .cta { margin-top: 0; }
.checklist { margin: 16px 0 0; padding-left: 20px; color: var(--fg); }
.checklist li { margin-top: 6px; }
.sitemap { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
.foot .links a { white-space: nowrap; }
section.tight { padding-top: 40px; }
.hero-in { max-width: 1120px; }
.slides { max-width: none; }
.slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.slide-photo { margin: 0; }
.slide-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; background: rgba(255,255,255,0.08); box-shadow: 0 10px 32px rgba(0,0,0,0.28); }
.slide-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--hero-sub); }
.hero-art { display: none; }
@media (max-width: 820px) { .slide { grid-template-columns: 1fr; gap: 22px; } .slide-photo { order: -1; } .slide-photo img { aspect-ratio: 16 / 10; } }

@media (min-width: 901px) { .area:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
.row h3 .note { display:block; font-family: inherit; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.note { display:block; margin-top:6px; font-size:.9em; color:var(--muted, #666); font-weight:400; }
