/* 의료진·병원 소개·블로그·예약·개인정보 처리방침·전후사례·이벤트·리얼모델·후기 지면의 1200px 이하 화면 */

/* 키보드 초점은 즉시 보이게 */
html body main :is(.blog-card,.about-hub__service-link,.wune-related__link,.iucg-grid a,.rv-day,.rv-t,.rv-nav):focus-visible{outline:2px solid var(--iub-ink,#242424);outline-offset:2px;transition:none}

/* 터치 기기에서는 호버 효과를 끈다 */
@media (hover:none){
  html body .about-hub__service-link:hover{transform:none}
  html body .rv-day.on:hover{background:transparent}
  html body .rv-day.sel:hover{background:var(--iub-ink,#242424)}
}

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

/* 1200 이하 공통 */
@media (max-width:1200px){
  /* 블로그 분류 버튼·전후사례 분류 칩 — 누르는 곳 44px */
  html body.wds main:not(#iu) :is(a.blog-pillar-btn,.rr-topics a.wds-chip){min-height:44px !important;display:inline-flex;align-items:center;justify-content:center}
  /* 예약 폼 — 입력 라벨도 누르면 입력칸으로 가므로 눌리는 영역을 44px 로(보이는 간격은 그대로) */
  html body .form_card .form_row > label[for]{display:block;box-sizing:border-box;min-height:44px;padding:10px 0 11px;margin:-10px 0 -11px;position:relative;z-index:0}
  html body .form_card .form_row :is(input,select,textarea){position:relative;z-index:1}
  html body.wds main :is(.blog-card__title,.about-hub__card-title,.wune-related__name,.dn-doctor-intro__name,.dn-page-hero__title){text-wrap:balance}
  /* 개인정보 처리방침 표 — 잘리면 감싸서 가로로 넘긴다 */
  html body .pp-doc .pp-table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  html body .pp-doc .pp-table :is(th,td){word-break:keep-all;overflow-wrap:anywhere}
  html body .pp-doc{overflow-wrap:anywhere}
  /* 병원 소개 오시는 길 — 혼자 선 전화번호 링크는 누르는 높이 44(보이는 줄 간격은 그대로) */
  html body.wds main .about-hub__loc-info dd>a:only-child{display:inline-flex;align-items:center;min-height:44px;margin-block:-12px}
}

/* 태블릿 768~1200 — 본문 폭 */
@media (min-width:768px) and (max-width:1200px){
  html body .about-hub__spaces{grid-template-columns:repeat(3,1fr);gap:16px}
}

/* 폰 767 이하 */
@media (max-width:767px){
  /* 병원 둘러보기 사진 — 가로로 넘기는 목록 */
  html body .about-hub__spaces{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px}
  html body .about-hub__spaces::-webkit-scrollbar{display:none}
  html body .about-hub__spaces figure{flex:0 0 min(300px,calc(100% - 56px));scroll-snap-align:start}
  /* 전후사례·이벤트 연관 목록은 한 줄씩 */
  html body .wune-related__grid{grid-template-columns:1fr !important}
}

/* 폰 430 이하 — 예약 달력은 신청 카드 양끝까지 펴서 날짜 칸이 44px 이상이 되게 */
@media (max-width:430px){
  html body .form_card .rv-block .rv-cal.rv-cal{width:auto;max-width:none;box-sizing:border-box;margin-left:-18px !important;margin-right:-18px !important;padding:12px 0 6px !important;border-left:0 !important;border-right:0 !important;border-radius:0 !important}
  html body .rv-cal :is(.rv-grid,.rv-dow){gap:0}
  html body .rv-cal .rv-day{aspect-ratio:auto;min-height:44px}
  html body .rv-cal .rv-nav{flex:0 0 44px}
}
/* 아주 좁은 폰(359 이하) — 카드 안으로는 일곱 칸이 44px 이 안 되므로 화면 끝까지 */
@media (max-width:359px){
  html body .form_card .rv-block .rv-cal.rv-cal{width:100vw;margin-left:calc(50% - 50vw) !important;margin-right:0 !important}
}

/* 블로그 머리말·개인정보 처리방침·리프팅 안내 참고문헌·장비 소개 — 오른쪽 바로가기 막대 자리만큼 오른쪽을 비워 글자가 가려지지 않게 한다 */
@media (min-width:1024px) and (max-width:1200px){
  html body.wds .blog-intro{padding-right:84px !important}
  html body.wds .pp-doc,html body.wds .lg-sec>.wds-container,html body.wds .iu-equip__inner{padding-right:84px !important}
}
@media (min-width:1201px) and (max-width:1440px){
  html body.wds .blog-intro{padding-right:48px !important}
}
