/* 서브 지면 반응형 — 머리글·메뉴 패널·서브 첫 화면·현재 위치 줄·바닥글·상담 바 공통
   폰 767 이하 · 태블릿 768~1200 · 데스크톱 1201 이상(1920 이상 화면은 손대지 않는다) */

/* 키보드 초점은 즉시 보이게 */
html body.wds .head_wrap a:focus-visible,
html body.wds .head_wrap button:focus-visible,
html body.wds .head_wrap [tabindex]:focus-visible,
html body.wds .head_right_wrap a:focus-visible,
html body.wds .dn-breadcrumb a:focus-visible,
html body.wds footer a:focus-visible,
html body.wds footer button:focus-visible{outline:2px solid var(--iub-ink,#242424);outline-offset:2px;transition:none}

/* 서브 첫 화면 글자 — 작은 제목이 먼저, 큰 제목이 0.14초 뒤에 올라온다 */
@media (prefers-reduced-motion:no-preference){
  html body.wds .iu-subhero .dn-sub-hero__eyebrow,
  html body.wds .iu-subhero .dn-sub-hero__title{animation:iuSubRise .8s cubic-bezier(.23,1,.32,1) both}
  html body.wds .iu-subhero .dn-sub-hero__title{animation-delay:.14s}
}
@keyframes iuSubRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* 움직임 줄이기 설정이면 머리글·메뉴 패널·첫 화면 움직임을 끈다 */
@media (prefers-reduced-motion:reduce){
  html body.wds .head_wrap,
  html body.wds .head_wrap *,
  html body.wds .head_right_wrap,
  html body.wds .head_right_wrap *,
  html body.wds .iu-subhero *,
  html body.wds footer *{animation:none !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
  html body.wds [data-aos]{opacity:1 !important;transform:none !important}
}

/* 메뉴 패널(1439 이하) — 하위 항목도 손가락으로 누르기 쉬운 높이로 */
@media (max-width:1439px){
  html body.wds .head_right_wrap .head_menu .down_menu li > a,
  html body.wds .head_right_wrap .head_menu .down_menu li.iu-nav-sub2 > a{display:flex !important;align-items:center;min-height:44px;box-sizing:border-box}
}

/* 1200 이하 공통 */
@media (max-width:1200px){
  /* 제목 마지막 줄에 두세 글자만 남지 않게 */
  html body.wds .content_wrap h1,
  html body.wds .content_wrap h2,
  html body.wds .content_wrap h3,
  html body.wds .dn-sub-hero__title{text-wrap:balance}
  /* 현재 위치 줄 — 짧은 낱말도 가로 44px */
  html body.wds .dn-breadcrumb a{min-width:44px;text-align:center}
  /* 바닥글 로고·약관 링크 — 누르는 자리 44px */
  html body.wds .dn-footer__pc .foot_logo a,
  html body.wds .dn-footer__pc-legal a{display:inline-flex !important;align-items:center;min-height:44px}
}

/* 서브 첫 화면 소개 글 — 아래 본문과 같은 폭(태블릿 720)·같은 여백(24)으로 맞춘다 */
@media (min-width:768px) and (max-width:1200px){
  html body.wds main:not(#iu):not(#iu-c):not(#iu-c2):not(#iu-c3) .dn-sub-hero__intro{--iu-wrap:720px;--iu-gut:24px}
}
@media (max-width:767px){
  html body.wds main:not(#iu):not(#iu-c):not(#iu-c2):not(#iu-c3) .dn-sub-hero__intro{--iu-gut:24px}
}

/* 1200 이하 — 문장 속 링크는 줄 간격을 그대로 두고 위아래 누르는 자리만 조금 넓힌다 */
@media (max-width:1200px){
  html body.wds main :is(p,li,dd,td)>a:not([class]){padding-block:.25em}
  html body.wds main .iu-leg__duo a:not([class]){padding-block:0}
}

/* 영어 지면 태블릿(768~1023) — 하단 상담 바 입력칸이 좁아지지 않게
   제목 글자는 화면에서만 감추고(읽기 도구는 그대로 읽는다) 동의 문구는 두 줄로 접는다 */
@media (min-width:768px) and (max-width:1023px){
  html[lang^="en"] body #iucb .iucb__lead{position:absolute !important;width:1px !important;height:1px !important;overflow:hidden !important;clip:rect(0 0 0 0) !important;white-space:nowrap !important;margin:0 !important;padding:0 !important}
  html[lang^="en"] body #iucb .iucb__ag{white-space:normal !important;max-width:150px;line-height:1.25}
  html[lang^="en"] body #iucb .iucb__ag *{white-space:normal !important}
}
