/* 2026-11-27 모바일(≤767px) 전용 보정. PC 영향 없음(F13b nowrap 1줄 제외). F1~F13 */

@media (max-width: 767px) {
  /* F1. 장식선·음수 여백이 문서 폭을 밀지 않게 가둠.
     hidden 만 주면 반대 축이 auto 가 되어 이 상자가 스크롤 영역이 되고 sticky 가 갇힌다.
     clip 을 지원하면 그쪽을 써서 세로 스크롤·sticky 는 뷰포트에 둔다. */
  .conWrap,
  .conBox4,
  .conBox8 {
    overflow-x: hidden;
  }
  @supports (overflow-x: clip) {
    .conWrap,
    .conBox4,
    .conBox8 {
      overflow-x: clip;
      overflow-y: visible;
    }
  }

  /* F2. 메인 "All in one!" 문단이 1000px 고정 폭으로 잘리지 않게 */
  .sec6_txt {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
  }
  .sec6_txt p,
  .sec6_txt span {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  /* F3. 고객사 로고 한 장(7열) — 가로 스크롤은 유지하되 폭을 줄이고 오른쪽이 더 있음을 보여 줌 */
  .sec6_logo_section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
  }
  .sec6_logo_inner {
    min-width: 720px;
  }

  /* F4. 소개 카드만 2열. 다른 페이지 .feature-grid(1열)는 선택자에서 빠짐 */
  .presentation-feature .feature-grid,
  .presentation-feature .feature-grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 16px;
  }
  .presentation-feature .feature-card {
    padding: 24px 12px;
    min-width: 0;
  }
  .presentation-feature .icon-wrap {
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
  }
  .presentation-feature .feature-card h4 {
    font-size: 16px;
    word-break: keep-all;
  }
  .presentation-feature .feature-card p {
    font-size: 13px;
    word-break: keep-all;
  }

  /* F6. 긴 영문 버튼이 화면 밖으로 나가지 않게. 헤더·사이드 메뉴 버튼은 원복 */
  .btn {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
  }
  header .btn,
  #cbp-spmenu-s2 .btn {
    max-width: none;
    white-space: normal;
  }
  .btn.btn-large,
  .btn.btn-rounded.btn-large {
    font-size: 16px;
    line-height: 25px;
    height: auto;
    padding-left: 24px;
    padding-right: 24px;
  }
  .btn.btn-medium,
  .btn.btn-rounded.btn-medium {
    height: auto;
    padding-left: 18px;
    padding-right: 18px;
  }

  /* F7. 우측 고정 문의 버튼을 오른쪽 아래 구석으로. .gs-sticky 스타일은 바꾸지 않음 */
  .top-btn {
    width: 32px;
    height: 99px;
    right: 8px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  html:has(.gs-sticky) .top-btn {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .ac-sec .ac-wrap,
  .ac-hero .ac-wrap {
    padding-right: 24px;
  }

  /* F8. 아카데미 4열 이상 표만 가로 스크롤. 감싸는 .ac-table-wrap 은 이미 overflow:auto */
  .ac-step {
    padding-left: 14px;
    padding-right: 14px;
  }
  .ac-step table:has(th:nth-child(4)),
  .ac-step table:has(td:nth-child(4)) {
    table-layout: auto;
    min-width: 560px;
  }
  .ac-step table:has(th:nth-child(4)) a,
  .ac-step table:has(td:nth-child(4)) a {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  /* F9. 보이는 크기는 그대로 두고 누를 수 있는 영역만 키움 */
  button.navbar-toggle {
    position: relative;
  }
  button.navbar-toggle::after {
    content: "";
    position: absolute;
    inset: -15px;
  }
  .se-lang-btn {
    position: relative;
  }
  .se-lang-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 44px;
    transform: translateY(-50%);
  }
  footer li > a {
    display: inline-block;
    padding: 5px 0;
  }

  /* F11. 뉴스룸 공유 글자·칼럼 본문 긴 단어 */
  .share-row .share-btn {
    min-width: max-content;
  }
  #post_area {
    overflow-wrap: anywhere;
  }

  /* F12. 숏폼 히어로 휴대폰 목업. 가로 스크롤 영상 목록(.aisf-video-grid)은 그대로.
     기존 767·420 규칙의 width:112~118% · margin-left 음수는 오른쪽을 잘라 내므로 같이 되돌림 */
  .aisf-hero img,
  .aisf-hero__visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-left: 0;
  }

  /* F13a. 햄버거 메뉴가 화면 폭을 다 쓰고, 긴 하위 메뉴가 한 줄 높이에 잘리지 않게.
     .alt-font 전역 규칙은 바꾸지 않음 */
  nav.navbar.bootsnav .navbar-nav.alt-font {
    width: 100%;
    margin: 0;
  }
  nav.navbar.bootsnav .navbar-nav .dropdown-menu a {
    height: auto;
    min-height: 34px;
    padding-top: 7px;
    padding-bottom: 7px;
    overflow: visible;
    white-space: normal;
    word-break: keep-all;
    line-height: 20px;
  }
}

/* F5. 375 이하에서 준비 단계 원 3개 + 화살표가 화면을 넘음 */
@media (max-width: 420px) {
  .amazon-prep-circle {
    width: 84px;
    height: 84px;
    border-width: 4px;
  }
  .amazon-prep-circle img {
    width: 36px;
  }
  .amazon-prep-label {
    font-size: 16px;
  }
  .amazon-prep-flow {
    gap: 4px;
  }
}

/* F13b. PC 가로 메뉴만. 이미 한 줄인 화면은 픽셀이 그대로여야 함 */
@media (min-width: 992px) {
  header nav.navbar .navbar-nav > li > a { white-space: nowrap; }
}
