/* =========================================================
   botalk 공통 모바일·가독성 보정 (모든 고객용 페이지에서 불러와요)
   - 한글이 단어 중간에서 끊기지 않게 (keep-all)
   - 휴대폰에서 글자 크기·자간·행간·버튼 크기 정리
   ========================================================= */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  word-break: keep-all;          /* "찾아드/려요" 처럼 단어 중간에서 끊기는 것 방지 */
  overflow-wrap: break-word;     /* 아주 긴 영문·숫자는 넘치지 않게 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, .btn { white-space: nowrap; }

/* 광고 배너: 이미지(1200x400, 3:1)가 잘리지 않고 전체가 보이게 */
.ad-banner.has-slides { height: auto !important; aspect-ratio: 3 / 1; }

@media (max-width: 640px) {
  body { letter-spacing: -0.2px; }

  /* 입력칸 글자가 16px보다 작으면 아이폰에서 누를 때 화면이 확대돼요 → 16px 고정 */
  input, select, textarea { font-size: 16px !important; }

  /* 상단 헤더: 이름은 숨기고 버튼은 한 줄로 작게 */
  header .header-inner { gap: 8px; padding-left: 16px; padding-right: 16px; }
  header .logo { font-size: 22px; flex-shrink: 0; }
  #auth-buttons { gap: 6px; flex-wrap: nowrap; }
  #auth-buttons > span { display: none; }
  #auth-buttons .btn, header .btn { padding: 8px 12px; font-size: 13px; line-height: 1.2; }

  /* 제목·설명 글 행간 */
  .section-title { line-height: 1.35; }
  .section-sub, .page-sub { line-height: 1.55; }

  /* 하단 링크: 두 줄로 자연스럽게 */
  footer .footer-links { flex-wrap: wrap; gap: 10px 16px !important; }
  footer .footer-links span { white-space: nowrap; }
  footer { line-height: 1.6; }

  /* 상단 탭 메뉴가 넘치면 옆으로 밀어서 보기 */
  .top-nav, .top-nav-inner { overflow-x: auto; scrollbar-width: none; }
  .top-nav::-webkit-scrollbar, .top-nav-inner::-webkit-scrollbar { display: none; }
  .top-nav-item { white-space: nowrap; }
}

/* 가로로 삐져나가는 것 방지 (공통) */
img, video { max-width: 100%; height: auto; }
