/**
 * /private-schools/family/ — 모바일(폭 ≤ 767px) 컨셉 재구성 (확정 목업 「나안」)
 * @task mobile-c6-family-20261002
 *
 * 범위: 마크업·스크립트·링크는 그대로 두고 모양만 바꾼다. PC·태블릿(≥ 768px)은 이 파일의 어떤 규칙도 닿지 않는다.
 * 이기는 방법: 구간 id 접두(#psf-…)로 mt_main/style.css(공용)·family/css/style.css 를 이긴다.
 * 숨기는 것(display:none): 장식 도형 · 구간 소개 문장 · 구간 장식선 · 학교 목록 줄의 사진 · 추천 띠 카드의 태그 — DOM 은 그대로다.
 */
@media (max-width: 767px) {

  /* ===== 1. 상단 + 바로가기 3칸 ===== */
  #psf-hero { min-height: 0; }
  #psf-hero .container { padding: 0 16px !important; }
  #psf-hero .mt-hero-content { padding: 16px 0 14px; }
  #psf-hero .mt-hero-badge { padding: 4px 12px; margin-bottom: 8px; font-size: 0.72rem; gap: 6px; }
  #psf-hero .mt-hero-badge svg { width: 12px; height: 12px; }
  #psf-hero h1 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 4px; }
  #psf-hero .mt-hero-sub { font-size: 0.75rem; line-height: 1.5; margin-bottom: 12px; max-width: none; }
  #psf-hero .mt-hero-shapes { display: none; }
  #psf-hero .mt-hero-ctas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex-direction: row; }
  #psf-hero .mt-hero-cta { flex-direction: column; justify-content: flex-start; text-align: center; gap: 4px; padding: 8px 4px; min-width: 0; min-height: 68px; border-radius: 12px; }
  #psf-hero .mt-hero-cta:hover { transform: none; box-shadow: none; }
  #psf-hero .mt-hero-cta-icon { width: 28px; height: 28px; border-radius: 8px; }
  #psf-hero .mt-hero-cta-icon svg { width: 16px; height: 16px; }
  #psf-hero .mt-hero-cta-text b { font-size: 0.72rem; line-height: 1.3; margin-bottom: 1px; }
  #psf-hero .mt-hero-cta-text span { font-size: 0.62rem; line-height: 1.25; }

  /* ===== 구간 머리 공통(추천·전체) ===== */
  #psf-recommended, #psf-filters { padding-top: 12px; padding-bottom: 4px; }
  #psf-all { padding-top: 0; padding-bottom: 20px; }
  #psf-recommended .container, #psf-filters .container, #psf-all .container { padding: 0 14px !important; }
  #psf-recommended .mt-section-head, #psf-filters .mt-section-head { margin-bottom: 8px; }
  #psf-recommended .mt-section-head h2, #psf-filters .mt-section-head h2 { font-size: 1.05rem; margin: 0; letter-spacing: -0.01em; }
  #psf-recommended .mt-section-head p, #psf-filters .mt-section-head p { display: none; }
  #psf-recommended .mt-accent-line, #psf-filters .mt-accent-line { display: none; }

  /* ===== 2. IGE 추천 7개 — 옆으로 넘기는 사진 띠 ===== */
  #psf_recommended_grid { display: flex; grid-template-columns: none; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; margin: 0 -14px; padding: 0 14px 6px; scrollbar-width: none; }
  #psf_recommended_grid::-webkit-scrollbar { display: none; }
  #psf_recommended_grid .mt-school-card { flex: 0 0 140px; scroll-snap-align: start; border-radius: 12px; }
  #psf_recommended_grid .mt-school-card:hover { transform: none; box-shadow: none; }
  #psf_recommended_grid .mt-school-card-img { height: 84px; }
  #psf_recommended_grid .mt-school-card-body { padding: 6px 8px 8px; }
  #psf_recommended_grid .mt-school-card-name { font-size: 0.78rem; line-height: 1.3; margin-bottom: 2px; min-height: 2.6em; overflow-wrap: anywhere; } /* 긴 학교명은 줄을 늘려 전부 보인다(자르지 않음) */
  #psf_recommended_grid .mt-school-card-location { font-size: 0.68rem; margin-bottom: 0; }
  #psf_recommended_grid .mt-school-card-location svg { width: 11px; height: 11px; }
  #psf_recommended_grid .mt-school-card-tags { display: none; }

  /* ===== 3. 프리셋 칩 + 선택 상자 3열 ===== */
  #psf-filters .psf-preset-bar { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 2px 0 8px; margin-bottom: 0; border-bottom: 0; scrollbar-width: none; }
  #psf-filters .psf-preset-bar::-webkit-scrollbar { display: none; }
  #psf-filters .psf-preset-chip { flex: 0 0 auto; min-height: 34px; padding: 7px 13px; font-size: 0.78rem; font-weight: 700; border-radius: 999px; white-space: nowrap; }
  #psf-filters .psf-filters { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; flex-direction: row; margin-bottom: 4px; }
  #psf-filters .psf-filter-group { min-width: 0; gap: 3px; }
  #psf-filters .psf-filter-label { font-size: 0.68rem; }
  #psf-filters .psf-filters select { width: 100%; min-width: 0; min-height: 40px; padding: 9px 6px; font-size: 0.78rem; border-radius: 10px; text-overflow: ellipsis; }
  #psf-filters { padding-bottom: 0; }

  /* ===== 4. 결과 줄 + 학교 글자 줄 목록 ===== */
  #psf-all .psf-result-bar { padding: 4px 2px 6px; font-size: 0.78rem; }
  #psf-all .psf-section { margin-bottom: 14px; }
  #psf-all .psf-section-head-compact { margin-bottom: 6px !important; gap: 8px; }
  #psf-all .psf-section-head-compact .mt-accent-line { display: none; }
  #psf-all .psf-section-head-compact h2 { font-size: 1.05rem !important; }
  #psf-all .psf-section-count { padding: 2px 9px; font-size: 0.72rem; }
  #psf-all .mt-school-grid { display: block; grid-template-columns: none; gap: 0; background: #fff; border: 1px solid var(--warm-200, #e8e5df); border-radius: 14px; overflow: hidden; }
  #psf-all .mt-school-card { display: block; border: 0; border-bottom: 1px solid var(--warm-200, #e8e5df); border-radius: 0; padding: 10px 12px; box-shadow: none; }
  #psf-all .mt-school-card:last-child { border-bottom: 0; }
  #psf-all .mt-school-card:hover { transform: none; box-shadow: none; }
  #psf-all .mt-school-card-img { display: none; }
  #psf-all .mt-school-card-body { padding: 0; }
  #psf-all .mt-school-card-name { font-size: 0.88rem; line-height: 1.3; margin-bottom: 2px; }
  #psf-all .mt-school-card-location { font-size: 0.7rem; margin-bottom: 4px; }
  #psf-all .mt-school-card-location svg { width: 11px; height: 11px; }
  #psf-all .mt-school-card-tags { gap: 4px; }
  #psf-all .mt-school-tag { font-size: 0.66rem; padding: 2px 8px; }

  /* ===== 5. 더 보기 · 불러오는 중 · 빈 상태 ===== */
  #psf-all .psf-loadmore { margin-top: 8px; }
  #psf-all .psf-loadmore button { width: 100%; min-height: 44px; padding: 10px 16px; font-size: 0.82rem; font-weight: 800; border-radius: 12px; }
  #psf-all .psf-loading, #psf-all .psf-empty { padding: 28px 16px; }
}
