:root {
  /* 터치 · 안전 영역(노치·홈바 — viewport-fit=cover 일 때 값이 생긴다) */
  --tap-min: 44px;
  --tap-gap: 8px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  /* 원본 실측 글자 크기(1440px 값 ↔ 390px 값 사이를 화면 폭에 맞춰 잇는다) */
  --fs-hero: 85.9px;
  --fs-hero-sub: clamp(17px, 15.66px + 0.35vw, 20.57px);
  --fs-subvis: clamp(44px, 37.76px + 1.6vw, 60.8px);
  --fs-page-title: clamp(34.2px, 27.51px + 1.714vw, 52.2px);
  --fs-h2: clamp(30px, 25.18px + 1.235vw, 42.97px);
  --fs-banner: clamp(40px, 25.14px + 3.81vw, 80px);
  --fs-wwd-title: clamp(29.3px, 27.26px + 0.524vw, 34.8px);
  --fs-h3: clamp(22px, 19.03px + 0.762vw, 30px);
  --fs-card-title: clamp(17.6px, 15.7px + 0.486vw, 22.7px);
  --fs-item-title: clamp(19.5px, 19.02px + 0.124vw, 20.8px);
  --fs-news: clamp(14px, 11.4px + 0.667vw, 20.8px);
  --fs-lead: clamp(14px, 12.66px + 0.343vw, 17.4px);
  --fs-btn: clamp(14px, 12.82px + 0.304vw, 17.19px);
  --fs-body: clamp(14px, 13.35px + 0.162vw, 15.7px);
  --fs-nav: 15.7px;
  --fs-small: 14px;
  --fs-label: 14px;
  --fs-badge: 12.5px;
  --fs-util: 12px;

  /* 원본 실측 여백 */
  --gutter: clamp(20px, 14.8px + 1.333vw, 34px);
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --sec-top: clamp(64px, 50.6px + 3.44vw, 102px);
  --sec-bottom: clamp(72px, 50.3px + 5.56vw, 135px);
  --sec-gap: clamp(64px, 44.9px + 4.9vw, 120px);
}

/* 기본 규칙(규칙 B) — :where() 특이도 0 */
:where(html) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* 입력칸 16px 이상(iOS 자동 확대 방지) · 높이 44px 이상 */
:where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="hidden"], [type="file"], [type="image"]), select, textarea) { font-size: max(16px, 1em); min-height: var(--tap-min); }
:where(button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"]) { min-height: var(--tap-min); }
:where(.hm-tap) { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap-min); min-height: var(--tap-min); }
:where(a, button, [role="button"], label, summary) { touch-action: manipulation; }
/* 이미지·영상은 칸을 넘지 않는다(비율 유지) */
:where(img, video) { max-width: 100%; height: auto; }
/* 화면 높이 — 100vh 대신(모바일 주소창 대응) */
:where(.hm-full-h) { min-height: 100vh; min-height: 100svh; min-height: 100dvh; }
/* 움직임 줄이기 설정이면 장식 애니메이션 끄기(규칙 B5) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
