/* ---- 사이트 격리 리셋: CMS 공용 globals.css 의 요소 규칙(h1~h6·p 색/글꼴)이 이 사이트에 새어 들어오지 않게.
   :where() 라 특이도 0 → 디자인 규칙이 항상 이긴다. 디자인은 상속 기반이라 color/font-family 만 되돌린다. */
.site-main :where(h1, h2, h3, h4, h5, h6, p) {
  color: inherit;
  font-family: inherit;
}
/* 공용 globals.css 의 p { font-size:18px; line-height:160%; letter-spacing } 도 차단 — 에디터가 감싼 <p>(수치·카드 번호 등)가 부모 크기를 따르게 */
.site-main :where(p) {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

@charset "utf-8";
/* =========================================================
   common.css — 폰트 · 토큰 · 리셋 · 레이아웃 · 공통 컴포넌트
   ========================================================= */

/* ---------- Font ---------- */
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/PretendardVariable.woff2') format('woff2-variations'),
       url('/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --c-primary: #334597;      /* KOIMA main rgb(51,69,151) */
  --c-navy: #1A2560;
  --c-navy-deep: #141D4D;
  --c-red: #D42B27;          /* 접근성: 흰 글자·흰 배경 대비 4.26→5.03 (원 #E73430) */
  --c-cyan: #24B6DE;
  --c-cyan-light: #7FD3EC;

  --c-text: #141A33;
  --c-text-sub: #3F4A6B;
  --c-text-muted: #525B74;
  --c-text-invert: #FFFFFF;
  --c-text-invert-sub: #D8DEF0;
  --c-text-invert-muted: #C9D1EA;

  --c-bg: #FFFFFF;
  --c-bg-soft: #F4F5F9;
  --c-tint: #E3E8F4;
  --c-line: #E3E8F4;
  --c-line-strong: #C9D0E4;

  --font: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --container: 1600px;
  --gutter: clamp(20px, 4.2vw, 80px);
  --section-y: 112px;

  /* Type scale — 본문 16px 기준 */
  --fs-body: 18px;   /* 본문·설명·목록·링크 */
  --fs-sm: 14px;     /* 날짜·분류·메타·저작권 */
  --fs-xs: 13px;     /* 대문자 라벨·배지 */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: var(--fs-body);
  line-height: 1.6;
  word-break: keep-all;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; vertical-align: top; border: 0; }
a { color: var(--c-primary); }
a:hover { color: var(--c-navy); }
button, input, select, textarea, table { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ---------- Utilities ---------- */
.blind {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-nav a {
  position: absolute; top: -100px; left: 0; z-index: 100;
  padding: 12px 20px; background: var(--c-navy); color: #fff; font-weight: 700;
}
.skip-nav a:focus { top: 0; }

/* ---------- Layout ---------- */
.inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: var(--section-y) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--navy { background: var(--c-navy); color: var(--c-text-invert); }

/* ---------- Section head ---------- */
.sec-head {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px;
}
.sec-title {
  font-size: 56px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 300;
}
.sec-title b { font-weight: 800; color: var(--c-navy); }
.sec-title--bold { font-weight: 800; color: var(--c-navy); }
.sec-desc { margin-top: 12px; font-size: 17px; color: var(--c-text-sub); }
.sec-more { font-size: 17px; font-weight: 700; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; color: var(--c-cyan-light);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; background: var(--c-red);
}
.eyebrow--plain::before { display: none; }
.dot { color: var(--c-red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  font-size: 17px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent;
}
.btn--red { background: var(--c-red); color: #fff; }
.btn--red:hover { background: #C8221F; color: #fff; }
.btn--white { background: #fff; color: var(--c-navy); }
.btn--white:hover { background: var(--c-tint); color: var(--c-navy); }
.btn--line-white { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--line-white:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-block; padding: 4px 10px;
  font-size: var(--fs-sm); font-weight: 700; line-height: 1.3;
}
.badge--primary { background: var(--c-primary); color: #fff; }
.badge--tint { background: var(--c-tint); color: var(--c-primary); font-size: var(--fs-xs); padding: 4px 8px; }
.badge--line { border: 1px solid var(--c-primary); color: var(--c-primary); padding: 2px 7px; font-size: var(--fs-xs); }
.badge--line-gray { border: 1px solid var(--c-line-strong); color: var(--c-text-sub); padding: 2px 7px; font-size: var(--fs-xs); }

.chip-code {
  display: inline-block; padding: 3px 7px;
  border: 1px solid var(--c-line-strong); font-size: var(--fs-sm);
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  :root { --section-y: 88px; }
  .sec-title { font-size: 44px; }
}
@media (max-width: 768px) {
  :root { --section-y: 56px; }
  .sec-head { margin-bottom: 28px; }
  .sec-title { font-size: 30px; letter-spacing: -0.02em; }
  .sec-desc, .sec-more { font-size: var(--fs-body); }
  .btn { width: 100%; font-size: 16px; }
}

/* ---------- 접근성 (KWCAG 2.2, 2026-11-02) ----------
   본문 링크는 색만으로 구분하지 않도록 밑줄 (link-in-text-block). 버튼형 링크(.btn)·카드 링크는 제외 */
.site-content p a:not(.btn), .site-content li a:not(.btn), .site-content td a:not(.btn), .site-content dd a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
