/* ============================================================
   base.css — Pretendard 14px 기본 + reset + a11y
   ============================================================ */
/*@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");*/
/* Urbanist — GNB / Megamenu title (Figma 시안 영문 메뉴 라벨) */
/*@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700&display=swap");*/

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  color: var(--color-text);
  /* 1920×1080 FHD 기준 — 1920 보다 넓은 viewport 에서는 회색 외곽 표시 */
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
}

/* 페이지 컨테이너 — 최대 1920 (FHD), 가운데 정렬 (사용자 지침 2026-05-24)
 * topbar 가 position:fixed (ez 방식) 라 flow 에서 빠짐 → 페이지 콘텐츠 시작점 보정
 * index.html .hero 는 margin-top:calc(--gnb-h * -1) 로 보정 (자체 흡수)
 * business/exhibit .page-hero 는 padding-top 으로 헤더 영역만큼 밀어내기
 */
.site-wrap {
  margin: 0 auto;
  background: var(--color-bg);     /* 페이지 본문 배경 (흰색) */
  position: relative;
  overflow-x: clip;                /* 1920 초과 콘텐츠 잘림 */
  padding-top: var(--gnb-h);       /* fixed 헤더 100px 영역 확보 */
}

img, svg, video { max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--color-primary); }

button {
  font: inherit; color: inherit;
  background: none; border: 0; padding: 0;
  cursor: pointer;
}

input, textarea, select { font: inherit; color: inherit; }
select {border-radius: 10px;border: 1px solid var(--color-primary); }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 {
  margin: 0; font-weight: var(--fw-bold);
  line-height: var(--lh-tight); letter-spacing: var(--letter-tight);
}
p { margin: 0; }

::selection { background: var(--color-primary-soft); color: var(--color-primary-hover); }

/* ── 접근성 ─────────────────────────────────────── */
:focus-visible {
    /*border: 2px solid var(--color-primary);*/
  /*outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);*/
}

/* 스크린리더 전용 (시각적으로 숨김, AT에 노출) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Skip to content — 키보드 포커스 시 노출 */
.skip-link {
  position: absolute;
  left: 0; top: 0;
  transform: translateY(-100%);
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  font-weight: var(--fw-bold);
  text-decoration: none;
  border-bottom-right-radius: var(--r-md);
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--color-text);
  outline-offset: 2px;
}

/* main:focus 시 outline 제거 (skip-link 로 진입 후 자연스럽게) */
main:focus { outline: none; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* 스크롤바 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }
::-webkit-scrollbar-track { background: transparent; }

/* pre — 지침: 배경 #1e2a3a, 하이라이트 미적용 */
pre {
  background: #1e2a3a;
  color: #E6EAF2;
  padding: var(--space-4);
  border-radius: var(--r-md);
  overflow-x: auto;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: var(--fs-13);
  line-height: 1.55;
}
pre code { background: none !important; color: inherit !important; }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    /* 기존 배경색을 지우고 투명하게 덮어씌움 */
    box-shadow: 0 0 0 1000px #ffffff inset !important;

}