/* ============================================================
   GW2 입문 가이드 — Mobile Responsive
   styles/mobile.css

   960px 이하에서만 적용. 데스크톱에는 영향 없음.
   ============================================================ */

/* ── 햄버거 버튼 (데스크톱 숨김) ─────────── */
.mobile-menu-btn { display: none; }
.mobile-menu { display: none; }

@media (max-width: 960px) {

  /* ============================================================
     BASE
     ============================================================ */
  body {
    min-width: 0;
  }

  .container,
  .container--wide {
    padding: 0 var(--sp-4);
  }

  h1 { font-size: 28px; line-height: 1.2; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  /* ============================================================
     HEADER
     ============================================================ */

  /* 유틸리티 스트립 숨김 */
  .util-strip { display: none; }

  /* 메인 네비 높이 축소 */
  .nav-inner {
    height: 56px;
    gap: var(--sp-3);
  }

  /* 로고 텍스트 축소 */
  .nav-logo__text { font-size: 16px; }

  /* 데스크톱 메뉴 + CTA 숨김 */
  .top-nav { display: none; }
  .nav-cta { display: none; }

  /* 햄버거 버튼 표시 */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-body);
    padding: 0;
    border-radius: var(--r-sm);
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-menu-btn:hover { background: var(--bg-alt); }
  .mobile-menu-btn svg { width: 22px; height: 22px; }

  /* 드롭다운 레이어 비활성 */
  .dropdown-layer { display: none !important; }

  /* 헤더 sticky 유지 */
  .site-header { z-index: 500; }

  /* ============================================================
     MOBILE MENU OVERLAY
     ============================================================ */
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 800;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .mobile-menu.is-open {
    pointer-events: auto;
    opacity: 1;
  }
  .mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31,36,41,0.45);
  }
  .mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--bg-surface);
    box-shadow: -4px 0 24px rgba(31,36,41,0.15);
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
  }
  .mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--line-soft);
    flex-shrink: 0;
  }
  .mobile-menu__title {
    font-family: var(--ff-head);
    font-size: 16px;
    font-weight: var(--fw-bold);
    color: var(--deep);
  }
  .mobile-menu__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    color: var(--text-soft);
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-menu__close:hover { background: var(--line-soft); color: var(--text-strong); }
  .mobile-menu__close svg { width: 16px; height: 16px; }

  .mobile-menu__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-4) 0;
    -webkit-overflow-scrolling: touch;
  }

  /* 모바일 메뉴 섹션 */
  .mobile-menu__section {
    border-bottom: 1px solid var(--line-soft);
  }
  .mobile-menu__section-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-3) var(--sp-5);
    font-size: var(--text-base);
    font-weight: var(--fw-bold);
    font-family: var(--ff-body);
    color: var(--text-strong);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-menu__section-btn:hover { color: var(--bronze); }
  .mobile-menu__section-btn svg {
    width: 10px;
    height: 6px;
    transition: transform 0.2s;
    flex-shrink: 0;
    color: var(--text-soft);
  }
  .mobile-menu__section.is-open .mobile-menu__section-btn svg {
    transform: rotate(180deg);
  }
  .mobile-menu__section.is-open .mobile-menu__section-btn {
    color: var(--bronze);
  }

  .mobile-menu__links {
    display: none;
    padding: 0 var(--sp-5) var(--sp-3);
  }
  .mobile-menu__section.is-open .mobile-menu__links {
    display: block;
  }
  .mobile-menu__group-title {
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    color: var(--text-soft);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: var(--sp-2) 0;
    margin-top: var(--sp-2);
  }
  .mobile-menu__group-title:first-child { margin-top: 0; }
  .mobile-menu__link {
    display: block;
    padding: 8px var(--sp-3);
    font-size: var(--text-sm);
    color: var(--text-body);
    text-decoration: none;
    border-radius: var(--r-sm);
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-menu__link:hover,
  .mobile-menu__link:active {
    background: var(--bg-alt);
    color: var(--bronze);
  }

  /* 모바일 메뉴 하단 CTA */
  .mobile-menu__footer {
    padding: var(--sp-4) var(--sp-5);
    border-top: 1px solid var(--line-soft);
    flex-shrink: 0;
  }
  .mobile-menu__footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* ============================================================
     SIDEBAR — 숨김
     ============================================================ */
  .detail-layout__sidebar { display: none; }

  .detail-layout {
    flex-direction: column;
    gap: 0;
    padding-top: var(--sp-6);
    padding-bottom: var(--sp-10);
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }

  .detail-layout__body {
    max-width: 100%;
  }

  /* ============================================================
     INTRO BAND
     ============================================================ */
  .intro-band {
    padding: var(--sp-6) 0;
  }
  .intro-band__title {
    font-size: 26px;
    line-height: 1.25;
  }
  .short-answer {
    max-width: 100%;
  }
  .short-answer__text {
    font-size: var(--text-base);
  }

  /* ============================================================
     HOMEPAGE
     ============================================================ */

  /* 히어로 */
  .hero { padding: var(--sp-10) 0; }
  .hero::before { display: none; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .hero__title { font-size: 32px; }
  .hero__sub { max-width: 100%; font-size: var(--text-base); }
  .hero__actions { flex-wrap: wrap; }

  /* 퀵 그리드 */
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }
  .quick-card { padding: var(--sp-4); }
  .quick-card__icon { font-size: 22px; margin-bottom: var(--sp-3); }

  /* 로드맵 밴드 */
  .roadmap-band { padding: var(--sp-10) 0; }
  .roadmap-band__header { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .roadmap-steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: var(--sp-6);
  }
  .roadmap-steps::before { display: none; }
  .roadmap-steps__dot { width: 36px; height: 36px; font-size: 14px; }

  /* 피처드 그리드 */
  .featured-grid {
    grid-template-columns: 1fr;
  }

  /* 카테고리 그리드 */
  .cat-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .cat-card { padding: var(--sp-6); }

  /* ============================================================
     DETAIL PAGE COMPONENTS
     ============================================================ */

  /* Do Now / Can Wait */
  .now-later {
    grid-template-columns: 1fr;
  }

  /* 본문 섹션 여백 축소 */
  .body-section {
    margin: var(--sp-6) 0;
  }
  .body-section p {
    max-width: 100%;
  }

  /* 테이블 가로 스크롤 */
  .body-section table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ============================================================
     FOOTER
     ============================================================ */
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
  }
  .footer-bottom__inner {
    flex-direction: column;
    gap: var(--sp-2);
    text-align: center;
  }
  .footer-ext {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* ============================================================
     SECTION 간격 축소
     ============================================================ */
  .section {
    padding: var(--sp-10) var(--sp-4);
  }
  .section__head {
    margin-bottom: var(--sp-6);
  }

  /* ============================================================
     PROFESSION PAGES — 추가 조정
     ============================================================ */
  .profession-skill-flow-step {
    grid-template-columns: 24px 1fr;
  }
  .skill-flow-icon {
    width: 24px;
    height: 24px;
  }

} /* end @media (max-width: 960px) */


/* ── 작은 화면 추가 조정 (480px 이하) ──── */
@media (max-width: 480px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-nav {
    grid-template-columns: 1fr;
  }
  .hero__title { font-size: 26px; }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    justify-content: center;
  }
}
