@charset "utf-8";
/* 아이만 가는(/content/prep) 모바일 전용 재배치 — 사이클 9 (mobile 프로젝트)
   확정 목업 「나안」: 짧은 상단 · 바로가기 6칸 · 비용 3종 한 카드 안 행 · 교육청 옆으로 넘기는 띠 · 보딩스쿨 한 줄 행 · 순위 행 · 관리형 상자 · 자료 행 · FAQ.
   폭 767px 이하에서만 적용 — PC·태블릿(768px~)은 style.css 그대로. 마크업·스크립트·링크 무변경.
   감추는 것은 장식·중복 3종뿐: .hero-badge · .section-label · 본문(#container) 안 아이콘 글꼴 글자(.material-symbols-outlined).
   이 화면 아래쪽 조각(_prep_footer_sections.php · study_resources_cards.php)은 보딩·홈스테이·관리형 목록과 /content/mt 도 쓰므로
   모든 규칙은 body.page-prep(이 화면에만 붙는 클래스) 로 시작한다. */
@media (max-width: 767px) {

  body.page-prep {
    --mp-teal: #0b4f54; --mp-teal2: #0e6a70; --mp-ink: #13232b; --mp-sub: #5d6c73; --mp-line: #e3e9ea;
    --mp-bg: #f4f8f7; --mp-mint: #e4f1f0; --mp-yel: #ffd24a; --mp-blue: #164eb6; --mp-mono: ui-monospace, Menlo, monospace;
  }

  /* ── 공통 구간: 여백·제목 규격, 장식 3종 감춤 ── */
  body.page-prep .hero .container, body.page-prep .sub-nav .container, body.page-prep .section .container,
  body.page-prep .study-cards-section .container-narrow, body.page-prep .uni-cta-band .container-narrow { max-width: none; padding-left: 14px !important; padding-right: 14px !important; }
  body.page-prep .section, body.page-prep .section.section-warm { padding: 12px 0 2px; background: var(--mp-bg); }
  body.page-prep .section-header { margin-bottom: 6px; }
  body.page-prep .section-label { display: none; }
  body.page-prep #container .material-symbols-outlined { display: none; }
  body.page-prep .section-title { font-size: 16px; line-height: 1.35; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 3px; color: var(--mp-ink); }
  body.page-prep .section-desc { font-size: 12.5px; line-height: 1.5; max-width: none; color: var(--mp-sub); }
  body.page-prep #prep-cost-overview, body.page-prep #prep-homestay, body.page-prep #prep-boarding,
  body.page-prep #prep-cost-ranking, body.page-prep #prep-totalcare, body.page-prep #prep-university { scroll-margin-top: 64px; }

  /* ── 상단: 소개 한 줄 위, 제목, 숫자 3개 한 줄 ── */
  body.page-prep .hero { min-height: 0; display: block; padding: 0; border-top: 0; background: linear-gradient(135deg, #0b3a44, #0b4f54); }
  body.page-prep .hero::before, body.page-prep .hero::after { display: none; }
  body.page-prep .hero .container.hero-inner { display: flex; flex-direction: column; text-align: left; padding: 14px 16px 12px !important; }
  body.page-prep .hero .hero-badge { display: none; }
  body.page-prep .hero .hero-lead { order: -1; font-size: 11.5px; line-height: 1.5; color: #bcd9da; margin: 0 0 3px; max-width: none; }
  body.page-prep .hero .hero-title { font-size: 18px; line-height: 1.35; letter-spacing: -0.02em; margin: 0 0 4px; }
  body.page-prep .hero .hero-title em { color: var(--mp-yel); }
  body.page-prep .hero .hero-stats { display: flex; justify-content: flex-start; gap: 14px; margin-top: 8px; }
  body.page-prep .hero .hero-stat { flex-direction: row; align-items: baseline; gap: 4px; }
  body.page-prep .hero .hero-stat .num { font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--mp-yel); }
  body.page-prep .hero .hero-stat .lbl { font-size: 12px; color: #e8f3f3; margin: 0; }

  /* ── 바로가기 6칸(3열×2줄) ── */
  body.page-prep .sub-nav { position: static; background: var(--mp-bg); border: 0; box-shadow: none; }
  body.page-prep .sub-nav .container { padding-top: 12px; padding-bottom: 4px; }
  body.page-prep .sub-nav .sub-nav-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; justify-content: stretch; overflow: visible; }
  body.page-prep .sub-nav .sub-nav-list li { display: block; min-width: 0; }
  body.page-prep .sub-nav .sub-nav-chip { display: grid; place-items: center; align-content: center; gap: 2px; min-height: 52px; padding: 7px 2px; background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; font-size: 12px; font-weight: 800; line-height: 1.4; color: var(--mp-ink); text-align: center; white-space: normal; }
  body.page-prep .sub-nav .sub-nav-chip::before { font-size: 18px; line-height: 1; font-weight: 400; }
  body.page-prep .sub-nav .sub-nav-chip[href="#prep-cost-overview"]::before { content: "💰"; }
  body.page-prep .sub-nav .sub-nav-chip[href="#prep-homestay"]::before { content: "🏠"; }
  body.page-prep .sub-nav .sub-nav-chip[href="#prep-boarding"]::before { content: "🏫"; }
  body.page-prep .sub-nav .sub-nav-chip[href="#prep-cost-ranking"]::before { content: "📊"; }
  body.page-prep .sub-nav .sub-nav-chip[href="#prep-totalcare"]::before { content: "🛡️"; }
  body.page-prep .sub-nav .sub-nav-chip[href="#prep-university"]::before { content: "🎓"; }
  body.page-prep .sub-nav .sub-nav-chip:hover, body.page-prep .sub-nav .sub-nav-chip.is-active, body.page-prep .sub-nav .sub-nav-chip.active { background: var(--mp-teal); border-color: var(--mp-teal); color: #fff; }

  /* ── 유학 형태별 연간 비용: 한 카드 안 3행 ── */
  body.page-prep .prep-cost-overview .cost-cards-row { display: block; margin-top: 0; background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; overflow: hidden; }
  body.page-prep .prep-cost-overview .cost-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 11px; row-gap: 0; align-items: center; width: 100%; min-width: 0; max-width: none; padding: 11px 12px; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--mp-line); border-radius: 0; box-shadow: none; transform: none; }
  body.page-prep .prep-cost-overview .cost-card:last-child { border-bottom: 0; }
  body.page-prep .prep-cost-overview .cost-card:hover { transform: none; box-shadow: none; }
  body.page-prep .prep-cost-overview .cost-icon { grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mp-mint); font-size: 20px; margin: 0; }
  body.page-prep .prep-cost-overview .cost-card h3 { grid-column: 2; grid-row: 1; font-size: 14px; line-height: 1.3; margin: 0; }
  body.page-prep .prep-cost-overview .cost-desc { grid-column: 2; grid-row: 2; font-size: 11.5px; line-height: 1.4; margin: 0; }
  body.page-prep .prep-cost-overview .cost-cad { grid-column: 3; grid-row: 1; font-family: var(--mp-mono); font-size: 12.5px; line-height: 1.3; margin: 0; text-align: right; white-space: nowrap; color: var(--mp-teal2); }
  body.page-prep .prep-cost-overview .cost-krw { grid-column: 3; grid-row: 2; font-size: 11px; line-height: 1.4; margin: 0; text-align: right; white-space: nowrap; color: #d9822b; }

  /* ── 홈스테이: 요약 카드 · 참고사항 · 교육청 띠 · 버튼 2개 ── */
  body.page-prep .homestay-overview { grid-template-columns: 1fr; gap: 8px; margin-bottom: 0; }
  body.page-prep .cost-summary { padding: 2px 14px 12px; border-radius: 14px; border: 1px solid var(--mp-line); }
  body.page-prep .cost-summary h3 { font-size: 14px; margin: 10px 0 0; }
  body.page-prep .cost-summary h3::before { content: "💰"; font-size: 14px; }
  body.page-prep .cost-summary .cost-row { padding: 9px 0; gap: 8px; align-items: baseline; }
  body.page-prep .cost-summary .cost-row-label { font-size: 12.5px; line-height: 1.4; }
  body.page-prep .cost-summary .cost-row-value { font-size: 12.5px; white-space: nowrap; }
  body.page-prep .cost-summary .cost-row.total { margin-top: 2px; padding-top: 9px; }
  body.page-prep .cost-summary .cost-row.total .cost-row-value { font-size: 14px; }
  body.page-prep .cost-summary .cost-calc-link { margin-top: 10px; padding: 11px 12px; justify-content: center; font-size: 12.5px; font-weight: 800; border-radius: 10px; text-align: center; min-height: 44px; }
  body.page-prep .cost-summary .cost-calc-link::before { content: "🧮"; }
  body.page-prep .cost-note { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--mp-line); justify-content: flex-start; }
  body.page-prep .cost-note h3 { font-size: 14px; margin-bottom: 4px; }
  body.page-prep .cost-note p { font-size: 12.5px; line-height: 1.55; margin-bottom: 4px; }
  body.page-prep .cost-note .cost-note-highlight { display: block; margin-top: 8px; padding: 9px 11px; border-radius: 10px; font-size: 12px; line-height: 1.5; }
  body.page-prep .cost-note .cost-note-highlight::before { content: "💡 "; }
  body.page-prep .cost-note .cost-note-link { display: inline; margin-top: 0; white-space: nowrap; }
  body.page-prep .featured-label { font-size: 13.5px; margin: 12px 0 6px; gap: 6px; }
  body.page-prep #prep-homestay .featured-label::before { content: "📍"; }
  body.page-prep #prep-homestay .featured-label::after { content: "옆으로 넘기면 8곳을 모두 볼 수 있어요 →"; margin-left: auto; font-size: 11px; font-weight: 400; color: var(--mp-sub); }
  body.page-prep #prep-boarding .featured-label::before { content: "⭐"; }
  body.page-prep .districts-grid { display: flex; gap: 9px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 8px; scroll-snap-type: x proximity; scroll-padding-left: 14px; scrollbar-width: none; }
  body.page-prep .districts-grid::-webkit-scrollbar { display: none; }
  body.page-prep .districts-grid .district-card-v2 { flex: 0 0 150px; width: 150px; scroll-snap-align: start; border-radius: 12px; transform: none; }
  body.page-prep .districts-grid .district-card-v2:hover { transform: none; box-shadow: none; }
  body.page-prep .districts-grid .dc-banner { min-height: 0; padding: 20px 10px 8px; }
  body.page-prep .districts-grid .dc-banner h4 { font-size: 12.5px; line-height: 1.3; }
  body.page-prep .districts-grid .dc-province-badge { top: 6px; right: 7px; font-size: 10px; padding: 1px 8px; }
  body.page-prep .districts-grid .dc-body { padding: 9px 10px 10px; }
  body.page-prep .districts-grid .dc-name { font-size: 12.5px; line-height: 1.4; margin-bottom: 5px; }
  body.page-prep .districts-grid .dc-fee-row { font-size: 11.5px; padding: 1px 0; }
  body.page-prep .districts-grid .dc-total { font-size: 13.5px; padding: 6px 0 4px; margin-top: 6px; }
  body.page-prep .districts-grid .dc-type-tag { font-size: 10.5px; padding: 2px 7px; margin-top: 4px; }

  /* ── 버튼 2개: 가로 나란히 (모든 구역 공통) ── */
  body.page-prep .section-cta { flex-direction: row; flex-wrap: nowrap; gap: 8px; margin-top: 12px; }
  body.page-prep .section-cta .btn { flex: 1 1 0; min-width: 0; width: auto; justify-content: center; min-height: 44px; padding: 6px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 800; line-height: 1.35; text-align: center; }
  body.page-prep .section-cta .btn-outline { background: #fff; border: 1px solid var(--mp-blue); color: var(--mp-blue); }
  body.page-prep .section-cta .btn::before { content: "→"; }
  body.page-prep .section-cta .btn[href*="cost-calculator"]::before { content: "🧮"; }
  body.page-prep #prep-cost-ranking .section-cta { margin-top: 12px !important; }

  /* ── 기숙학교: 유형 3 · 추천 보딩스쿨 한 줄 행 ── */
  body.page-prep .boarding-types { grid-template-columns: 1fr; gap: 7px; margin-bottom: 0; }
  body.page-prep .boarding-types .type-card { padding: 10px 12px; border-radius: 12px; }
  body.page-prep .boarding-types .type-card::before { height: 3px; }
  body.page-prep .boarding-types .type-card:hover { transform: none; box-shadow: none; }
  body.page-prep .boarding-types .type-card-label { font-size: 10px; margin-bottom: 2px; }
  body.page-prep .boarding-types .type-card h3 { font-size: 14.5px; margin-bottom: 3px; }
  body.page-prep .boarding-types .type-card p { font-size: 12px; line-height: 1.5; }
  body.page-prep .boarding-types .type-card-cost { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 6px; padding-top: 6px; }
  body.page-prep .boarding-types .tc-cost-label { font-size: 11px; text-transform: none; letter-spacing: 0; }
  body.page-prep .boarding-types .tc-cost-val { font-family: var(--mp-mono); font-size: 13px; }
  body.page-prep .boarding-types .tc-cost-krw { font-size: 11.5px; }
  body.page-prep .featured-schools { display: block; background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; overflow: hidden; margin-bottom: 0; }
  body.page-prep .featured-schools .school-card { display: grid; grid-template-columns: 48px auto minmax(0, 1fr) auto; column-gap: 0; row-gap: 2px; align-items: center; padding: 8px 11px; background: #fff; border: 0; border-bottom: 1px solid var(--mp-line); border-radius: 0; box-shadow: none; transform: none; }
  body.page-prep .featured-schools .school-card:last-child { border-bottom: 0; }
  body.page-prep .featured-schools .school-card:hover { transform: none; box-shadow: none; }
  body.page-prep .featured-schools .school-card-photo { grid-column: 1; grid-row: 1 / span 2; width: 38px; height: 38px; margin: 0; border-radius: 10px; overflow: hidden; font-size: 0; line-height: 0; }
  body.page-prep .featured-schools .school-card-body, body.page-prep .featured-schools .school-card-top, body.page-prep .featured-schools .school-card-bottom { display: contents; }
  body.page-prep .featured-schools .school-card h4 { grid-column: 2 / 4; grid-row: 1; display: block; margin: 0; font-size: 13px; line-height: 1.3; letter-spacing: -0.02em; white-space: normal; overflow: visible; text-overflow: clip; -webkit-line-clamp: unset; }
  body.page-prep .featured-schools .school-card-badges { grid-column: 2; grid-row: 2; display: flex; flex-wrap: nowrap; gap: 4px; margin-right: 6px; }
  body.page-prep .featured-schools .school-badge { font-size: 10px; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
  body.page-prep .featured-schools .school-card-loc { grid-column: 3; grid-row: 2; font-size: 10.5px; line-height: 1.3; white-space: normal; overflow: visible; text-overflow: clip; }
  body.page-prep .featured-schools .school-card-cost { grid-column: 4; grid-row: 1 / span 2; margin-left: 10px; font-size: 12.5px; white-space: nowrap; align-self: center; }

  /* ── 비용 순위: 칩 3 + 행 5 ── */
  body.page-prep .prep-cost-tabs { margin-bottom: 9px !important; gap: 8px !important; }
  body.page-prep .prep-cost-tabs .prep-cost-tab { min-height: 44px; padding: 9px 18px; font-size: 12.5px; font-weight: 800; }
  body.page-prep .prep-cost-tabs .prep-cost-tab.active { background: var(--mp-teal); border-color: var(--mp-teal); }
  body.page-prep #prep-cost-cards { display: block; }
  body.page-prep #prep-cost-cards .compare-card { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 1px; align-items: center; padding: 9px 11px; margin-bottom: 6px; border-radius: 12px; transform: none; }
  body.page-prep #prep-cost-cards .compare-card:hover { transform: none; box-shadow: none; }
  body.page-prep #prep-cost-cards .compare-rank { grid-column: 1; grid-row: 1 / span 3; width: 26px; height: 26px; margin: 0; font-size: 12px; align-self: center; }
  body.page-prep #prep-cost-cards .compare-card h4 { grid-column: 2; grid-row: 1; font-size: 13px; line-height: 1.3; margin: 0; }
  body.page-prep #prep-cost-cards .compare-province { grid-column: 2; grid-row: 2; font-size: 10.5px; margin: 0; }
  body.page-prep #prep-cost-cards .compare-breakdown { grid-column: 2; grid-row: 3; font-size: 11px; line-height: 1.4; }
  body.page-prep #prep-cost-cards .compare-total { grid-column: 3; grid-row: 1; font-size: 13.5px; margin: 0; text-align: right; white-space: nowrap; }
  body.page-prep #prep-cost-cards .compare-tags { grid-column: 3; grid-row: 2 / span 2; margin: 0; justify-content: flex-end; align-self: start; }
  body.page-prep #prep-cost-cards .compare-tag { font-size: 10.5px; padding: 2px 7px; }

  /* ── 관리형 · 신뢰 수치 ── */
  body.page-prep .totalcare { display: block; }
  body.page-prep .totalcare .totalcare-visual { min-height: 0; padding: 16px; border-radius: 16px; }
  body.page-prep .totalcare .totalcare-visual h3 { font-size: 16.5px; line-height: 1.4; margin-bottom: 8px; letter-spacing: -0.02em; }
  body.page-prep .totalcare .totalcare-visual p { font-size: 12.5px; line-height: 1.6; }
  body.page-prep .totalcare .totalcare-content { margin-top: 12px; }
  body.page-prep .totalcare .totalcare-content h3 { font-size: 15px; margin-bottom: 4px; }
  body.page-prep .totalcare .tc-features { margin-bottom: 0; }
  body.page-prep .totalcare .tc-features li { gap: 8px; padding: 6px 0; font-size: 12.5px; line-height: 1.55; }
  body.page-prep .totalcare .tc-features li::before { content: "✓"; color: #0d9488; font-weight: 900; }
  body.page-prep .ige-trust-bar { margin: 12px 14px 0; border-radius: 14px; }
  body.page-prep .ige-trust-bar .trust-item { padding: 12px 8px; }
  body.page-prep .ige-trust-bar .trust-num { font-size: 21px; margin-bottom: 2px; color: var(--mp-teal2); }
  body.page-prep .ige-trust-bar .trust-label { font-size: 11px; margin-bottom: 0; }
  body.page-prep .ige-trust-bar .trust-desc { font-size: 11.5px; line-height: 1.4; }

  /* ── 학업·대입 자료 카드 3 ── */
  body.page-prep .study-cards-section { padding: 18px 0 14px; margin: 12px 0 0; }
  body.page-prep .study-cards-section .study-h2 { font-size: 16px; margin-bottom: 2px; }
  body.page-prep .study-cards-section .study-sub { font-size: 12px; margin-bottom: 10px; }
  body.page-prep .study-cards-section .cross-cards { gap: 8px; }
  body.page-prep .study-cards-section .cross-card { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; min-height: 0; padding: 8px 12px; border-radius: 12px; }
  body.page-prep .study-cards-section .cross-card:hover { transform: none; box-shadow: none; }
  body.page-prep .study-cards-section .study-badge-free, body.page-prep .study-cards-section .study-badge-lock { position: static; grid-column: 2; grid-row: 1; justify-self: start; margin-bottom: 3px; font-size: 10.5px; padding: 2px 7px; }
  body.page-prep .study-cards-section .cross-icon { grid-column: 1; grid-row: 1 / 4; font-size: 24px; margin: 0; align-self: center; }
  body.page-prep .study-cards-section .cross-card h3 { grid-column: 2; font-size: 14px; margin-bottom: 2px; }
  body.page-prep .study-cards-section .cross-desc { grid-column: 2; font-size: 12px; line-height: 1.45; padding-bottom: 4px; margin-bottom: 0; }
  body.page-prep .study-cards-section .cross-link { grid-column: 2; font-size: 12px; }
  body.page-prep .study-cards-section .study-footer { margin-top: 10px; padding: 10px 12px; font-size: 11.5px; border-radius: 12px; }

  /* ── 대학 진학 사례 버튼 · 유학 참고자료 · FAQ ── */
  body.page-prep .uni-cta-band { padding: 4px 0 8px; margin-bottom: 0; background: transparent; }
  body.page-prep .uni-cta-band .uni-cta-link { display: flex; justify-content: center; width: 100%; min-height: 44px; padding: 12px; border-radius: 99px; font-size: 12.5px; font-weight: 800; }
  body.page-prep .footer-sections { margin: 0; gap: 0; }
  body.page-prep .footer-sections .prep-university, body.page-prep .footer-sections .prep-faq { margin: 0; max-width: none; padding: 14px 14px 0; }
  body.page-prep .footer-sections h2 { font-size: 16px; line-height: 1.35; margin: 0 0 8px; text-align: left; }
  body.page-prep .prep-university .uni-h2-with-badge { flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
  body.page-prep .prep-university .uni-header-badge { margin-top: 0; padding: 3px 10px; font-size: 11px; font-weight: 800; border: 1px solid #bfe0dd; background: #effaf8; color: var(--mp-teal2); }
  body.page-prep .prep-university .university-list { gap: 0; margin: 0; border: 1px solid var(--mp-line); border-radius: 14px; overflow: hidden; background: #fff; }
  body.page-prep .prep-university .university-item { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 3px; min-height: 0; padding: 11px 12px; border-bottom: 1px solid var(--mp-line); background: #fff; }
  body.page-prep .prep-university .university-item:last-child { border-bottom: 0; }
  body.page-prep .prep-university .university-title { margin-right: 0; font-size: 13px; line-height: 1.4; font-weight: 700; }
  body.page-prep .prep-university .university-meta { font-size: 11px; color: #8a97a0; white-space: normal; }
  body.page-prep .prep-faq .faq-item { margin-bottom: 7px; border-radius: 12px; }
  body.page-prep .prep-faq .faq-q { min-height: 44px; padding: 11px 14px 11px 13px; font-size: 13px; font-weight: 800; line-height: 1.45; }
  body.page-prep .prep-faq .faq-q::after { font-size: 20px; margin-left: 8px; }
  body.page-prep .prep-faq .faq-a { padding: 12px 13px 14px; font-size: 12.5px; line-height: 1.7; }
}
