/* AI노무사 디자인 다듬기 2026-11-14 (2단계: 로컬 4114에서 1440·390px 및 1264~700px 틀로 화면 확인 완료)
   기존 CSS 6개 뒤에 마지막으로 불러오는 덧씌움 파일이다. 기존 파일은 고치지 않는다.
   운영 CSP가 style-src 'self' 이므로 인라인 style 은 쓰지 않는다. 번호는 plan.md 5장의 작업 번호. */

/* ── A1. 머리(헤더): 901px 이상에서 메뉴를 흐름 배치로 바꿔 겹침·두 줄 꺾임 해소 ── */
@media(min-width:901px){
  .main-nav{position:static;transform:none;margin-inline:auto;padding-inline:20px;gap:clamp(14px,calc(4.6vw - 28px),40px)}
  .main-nav a{padding-block:10px;white-space:nowrap}
  .header-cta{flex:0 0 auto;margin-left:0}
}
@media(min-width:641px) and (max-width:900px){.menu-toggle{margin-left:0}}   /* A1-b. 태블릿에서 상담 버튼이 가운데 뜨는 것 → 메뉴 단추 옆으로 */

/* ── A2. 본문형 페이지(.prose): 태블릿 좌우 여백 0 해소 + 줄 길이 ── */
.prose{max-width:820px}
@media(min-width:641px){
  .prose{width:calc(100% - 48px);padding:88px 0 112px}
  .prose .journey-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){.prose{padding:52px 0 76px}}
.prose .eyebrow{font-size:14px;line-height:1.4}            /* B6. .prose p(18px)에 눌려 커진 머리표를 다른 화면과 같은 14px로 */
.prose .direct-answer{max-width:none}
.prose a,.answer-body a{text-underline-offset:3px}

/* ── B1. 제목 눈금: 크기를 한 단계 낮추고 자간을 한글에 맞게 푼다 ── */
.hero-copy h1{line-height:1.1;letter-spacing:-.045em}
.directory-hero h1,.prose h1{font-size:clamp(40px,4.2vw,58px);line-height:1.16;letter-spacing:-.04em}
.answer-hero h1{max-width:780px;font-size:clamp(34px,3.5vw,48px);line-height:1.24;letter-spacing:-.035em}
.consult-hero h1{font-size:clamp(40px,4vw,56px);line-height:1.14;letter-spacing:-.04em}
.split-heading h2,.principles-section h2{font-size:clamp(34px,3.4vw,46px);line-height:1.2;letter-spacing:-.04em}
.section-heading h2{font-size:30px;line-height:1.3;letter-spacing:-.03em}
.prose h2{font-size:30px;line-height:1.3;letter-spacing:-.03em}
.prose .regional-guide-link h2{font-size:24px}             /* 본문 안 안내 상자 제목은 구역 제목(30px)보다 한 단계 작게 */
.answer-body h2{font-size:28px;line-height:1.3;letter-spacing:-.03em}
.form-heading h2{font-size:30px;line-height:1.3;letter-spacing:-.035em}
.prose h3{margin:36px 0 10px;font-size:21px;line-height:1.4;letter-spacing:-.02em}   /* B4. 안내(guides) 글의 소제목 */
.prose .muted{margin:-6px 0 0;color:var(--subtle);font-size:14px;line-height:1.5}

/* ── B2. 답변 페이지: 줄 길이(한 줄 약 45자)와 왼쪽 정렬선 통일 ── */
.direct-answer{max-width:780px}
@media(min-width:1001px){.answer-body{grid-template-columns:minmax(0,780px) 320px;justify-content:space-between}}

/* ── B3. 스타일이 빠져 있던 조각 ── */
.answer-body>.answer-disclaimer{grid-column:1;margin:0;padding-top:24px;border-top:1px solid var(--line);color:var(--muted);font-size:15px;line-height:1.75}
.related-answer-links ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.related-answer-links li{margin:0}
.related-answer-links a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:16px;line-height:1.5;font-weight:650;text-decoration:none;transition:border-color .16s ease,color .16s ease}
.related-answer-links a:hover{border-color:#bad3ff;color:var(--blue-ink)}
.ph.ph-printer{display:none}                               /* 아이콘 글꼴 묶음에 프린터 글리프가 없어 빈 칸만 남던 것 */
a.primary-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}   /* 404 화면의 버튼(a 태그) */

/* ── B5. 바닥글 ── */
.site-footer p{font-size:14px}
.site-footer p strong{font-size:inherit}                   /* 문단 속 '대표사무소'만 20px로 커지던 것 */
.footer-grid nav a{font-size:14px}

/* ── A5. 11~12px 보조 글자를 12~15px로 ── */
.guide-row small,.privacy-note,.authority-inner span,.authority-links a,.breadcrumb,.direct-answer>span,.review-line,.measurement-note,.directory-card small,.journey-flow>a small,.process-note{font-size:13px}
.consult-form label small,.consult-form .full-field small,.consent-row small{font-size:13px;line-height:1.6}
.answer-category,.channel-kind,.journey-flow>a>b{font-size:12px}
.prepare-tools p,.source-box>p,.form-submit p{font-size:14px}
.caution-box p{font-size:15px}
.answer-card p,.channel-card p,.network-flow p{color:var(--muted)}   /* C1. 카드 설명 #6b7684(4.6:1) → #55616f(6.0:1) */

/* ── A3·A4. 상담 접수 폼 ── */
.form-grid>label,.full-field{display:flex;flex-wrap:wrap;align-items:baseline;align-content:flex-start;gap:9px 4px}   /* 별표(*)가 혼자 한 줄 차지하던 것 → 항목 이름 옆으로 */
.form-grid>label>small,.full-field>small{flex:0 0 100%}
.consult-form input[type="text"],.consult-form input[type="tel"],.consult-form input[type="email"],.consult-form input[type="date"],.consult-form select,.consult-form textarea{font-size:16px;font-weight:500}   /* 14px이면 아이폰이 입력 때 화면을 확대한다 */
.consult-form>fieldset{padding-top:0}
.consult-form>fieldset>legend{padding:36px 0 20px}         /* 구역 제목이 위 구분선에 붙고 자기 입력칸과는 멀던 것을 뒤집는다 */
.consult-form>fieldset>.form-grid,.consult-form>fieldset>.full-field{margin-top:0}
.contact-choice label{min-height:44px}
.contact-choice input,.sensitive-status input{flex:0 0 auto;width:18px;height:18px}
.sensitive-status label{padding-block:6px}

/* ── 휴대폰(640px 이하) ── */
@media(max-width:640px){
  /* B1. 제목 */
  html body .answer-hero h1{font-size:clamp(27px,7.6vw,32px);line-height:1.28}
  html body .prose h1{font-size:clamp(28px,8vw,34px);line-height:1.22}
  html body .directory-hero h1{font-size:clamp(30px,8.6vw,36px);line-height:1.2}
  html body .consult-hero h1{font-size:clamp(28px,8vw,34px);line-height:1.22}
  .section-heading h2{font-size:26px}
  .prose h2{margin-top:44px;font-size:24px}
  html body .detail-page .regional-guide-link h2{font-size:20px}   /* mobile-layout.css 28px → 구역 제목(24px)보다 작게 */
  .answer-body h2{font-size:23px}
  .form-heading h2{font-size:26px}
  .prose h3{font-size:19px}
  /* A6. 누름 영역 44px */
  html body .hero-actions .text-button{min-height:44px}
  .section-heading>a,.split-heading .inline-cta,.regional-follow,.consent-detail a,.dialog-back{min-height:44px}
  .breadcrumb a{padding:13px 6px;margin:-13px -6px}
  .footer-grid nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
  .footer-grid nav a{padding-block:12px}
  .source-box ol{display:grid;gap:4px}
  .source-box li a{display:inline-block;padding-block:8px}
  /* B8. 카드 목록 길이 줄이기 */
  .answer-card{min-height:0}
}
