/* 홈 전용 반응형 — 폰 767 이하 · 태블릿 768~1200 · 데스크톱 1201 이상(데스크톱은 손대지 않는다)
   홈(home.html)에만 연결한다. 서브 지면에는 쓰지 않는다 */

/* 키보드 초점은 즉시 보이게 */
html body #s2page.s2 a:focus-visible,
html body #s2page.s2 button:focus-visible,
html body #s2page.s2 summary:focus-visible,
html body #s2page.s2 [tabindex]:focus-visible{outline:2px solid var(--iub-ink,#242424);outline-offset:2px;transition:none}
html body .m-hamburger:focus-visible{outline:2px solid var(--iub-ink,#242424);outline-offset:2px}

/* 터치 기기에서는 호버 효과를 끈다 */
@media (hover:none){
  html body #s2page.s2 .s2-vid__play:hover img{transform:none}
}

/* 움직임 줄이기 설정이면 전부 끈다 */
@media (prefers-reduced-motion:reduce){
  html body #s2page.s2 *,
  html body #s2page.s2 *::before,
  html body #s2page.s2 *::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
  html body #s2page.s2 [data-aos]{opacity:1 !important;transform:none !important}
}

/* 1200 이하 공통 */
@media (max-width:1200px){
  html body #s2page.s2 .s2-h2,
  html body #s2page.s2 .s2-closing__h,
  html body #s2page.s2 .s2-rule__h,
  html body #s2page.s2 .s2-note__h,
  html body #s2page.s2 .s2-vid__h,
  html body #s2page.s2 .s2-faq__item summary{text-wrap:balance}
  html body #s2page.s2 .s2-doctors__grid{display:flex !important;gap:12px !important;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0 0 4px !important}
  html body #s2page.s2 .s2-doctors__grid::-webkit-scrollbar{display:none}
  html body #s2page.s2 .s2-doc{flex:0 0 min(320px,calc(100% - 56px));scroll-snap-align:start}
  html body #s2page.s2 .s2-panel{touch-action:pan-y pinch-zoom}
  html body .dn-footer__pc .foot_logo a,
  html body .dn-footer__pc-legal a{display:inline-flex !important;align-items:center;min-height:44px}
}

/* 태블릿 768~1200 — 본문 폭 720 */
@media (min-width:768px) and (max-width:1200px){
  html body #main #s2page.s2 .s2-sec:not(.s2-hero) > .s2-inner{max-width:768px !important;padding:0 24px !important}
  html body #s2page.s2 .s2-philo__top{max-width:768px !important;padding:0 24px !important;grid-template-columns:1fr !important;gap:40px !important}
  html body #s2page.s2 .s2-visuals img{height:clamp(160px,26vw,240px) !important}
  html body #s2page.s2 .s2-stats{max-width:720px !important;grid-template-columns:repeat(2,1fr) !important}
  html body #s2page.s2 .s2-care__grid{grid-template-columns:repeat(2,1fr) !important}
  html body #s2page.s2 .s2-care__img{height:auto !important;aspect-ratio:424/400}
  html body #s2page.s2 .s2-panel{grid-template-columns:1fr !important}
  html body #s2page.s2 .s2-doc__img,
  html body #s2page.s2 .s2-doc__ph{height:auto !important;aspect-ratio:425/460}
}

/* 폰 767 이하 — 좌우 여백 24 */
@media (max-width:767px){
  html body #s2page.s2 .s2-inner{padding:0 24px !important}
  html body #s2page.s2 .s2-philo__top{padding:0 24px !important}
  html body #s2page.s2 .s2-doc{flex-basis:calc(100% - 64px)}
  html body #s2page.s2 .s2-vid__box--plain .s2-vid__mark{font-size:12px;top:10px;left:12px}
  /* 푸터 아래 흰 띠가 생기지 않게 하단 상담 바 높이만큼 여백 */
  html body.iu-home-qb{padding-bottom:var(--iu-qb,56px) !important}
}
@media (max-width:400px){
  html body #s2page.s2 .s2-vid__box--plain .s2-vid__mark{display:none}
}
