/* K-Biz Visa — kbv-pages.css (R21 T123)
 * 나머지 정적 페이지(소개·문의·정책·이용안내·블로그 목록/글·비자 전체보기·비자 찾기·404) A 토큰 전환.
 * kbv.css(토큰·공통 크롬·범용 부품) 뒤에 얹는다. 시안 A 규칙: 흰색·연회색 + 남색, 금색은 로고만,
 * 그라데이션·세리프·원형 화살표 버튼·넓은 그림자 없음. R5 서브페이지 클래스명(.page-hero·.section 등)은
 * 그대로 두고 이 파일에서 A 톤으로 재정의한다. r5-shared.css는 참조 0을 확인한 뒤 내린다.
 */

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 리빌(스크롤 인) — 토글은 kbv.js(.reveal/.reveal-group), 모션은 여기서 정의 ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-motion .reveal, .no-js .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 브레드크럼: kbv.css .breadcrumb 컴포넌트 재사용, 위쪽 여백만 보강 ---------- */
.breadcrumb { padding-top: 22px; }
/* 경로 표시 바로 뒤에 히어로가 오면 히어로와 같은 연회색 띠로 이어 붙인다(컨테이너 폭 밖까지 배경 확장). */
.breadcrumb:has(+ .page-hero) { background: var(--bg-alt); box-shadow: 0 0 0 100vmax var(--bg-alt); clip-path: inset(0 -100vmax); }

/* ---------- 타이포: 세리프·금색 폐기, kbv 스케일로 ---------- */
main h1 { font-size: var(--fs-h1); line-height: 1.28; font-weight: 800; letter-spacing: -0.035em; max-width: 880px; }
main h1 em, .serif-xl em, .serif-lg em { font-style: normal; font-weight: 800; color: var(--primary); }
.serif-xl { font-size: var(--fs-h2); line-height: 1.3; font-weight: 700; letter-spacing: -0.03em; }
.serif-lg { font-size: var(--fs-h3); line-height: 1.35; font-weight: 700; letter-spacing: -0.02em; }
.serif-lg.left { text-align: left; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--sub); margin-bottom: 14px; }
.section-sub { color: var(--sub); max-width: 640px; margin-top: 14px; font-size: 17px; }
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- 버튼 보강: A에는 2차 버튼(.btn-secondary)이 없으므로 .btn-line과 같은 모양으로 맞춘다 ---------- */
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-circle { display: none; } /* A-5: 원형 화살표 버튼 폐기(마크업에서도 제거) */
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-sub { max-width: 680px; margin-top: 20px; font-size: 17.5px; color: var(--ink-2); }

/* ---------- 섹션 공통 ---------- */
.section { padding: var(--sp-11) 0; }
.section.tint { background: var(--bg-alt); }
.section-head { max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- 페이지 히어로 ---------- */
.page-hero { background: var(--bg-alt); padding: 48px 0 64px; }
.page-hero .hero-note { margin-top: 20px; font-size: 13.5px; color: var(--sub); line-height: 1.8; }
.page-hero .hero-note a { color: var(--primary); font-weight: 600; text-underline-offset: 4px; }
.page-hero .hero-note a:hover { color: var(--primary-hover); }
.page-hero.center { text-align: center; }
.page-hero.center h1 { margin-left: auto; margin-right: auto; }
.page-hero.center .hero-sub { margin-left: auto; margin-right: auto; }
.page-hero.center .hero-actions { justify-content: center; }
.page-hero.not-found { padding: 72px 0 88px; }
/* 히어로와 다음 구간 배경이 같은 연회색이면 여백이 한 띠로 합쳐 보이므로 다음 구간 위 여백을 줄인다. 흰 구간이 이어질 때는 A 시안 간격(72px)으로 맞춘다. */
.page-hero + .dark-section, .page-hero + .section.tint { padding-top: var(--sp-5); }
.page-hero + .section:not(.tint) { padding-top: var(--sp-9); }
.page-hero .notice-banner { max-width: 680px; margin-top: 28px; }

/* ---------- 안내 배너(목업 안내·공개 전 확인) ---------- */
.notice-banner { background: var(--primary-soft); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 18px 22px; font-size: 14.5px; color: var(--ink-2); }
.notice-banner strong { display: block; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; color: var(--primary); }

/* ---------- "일하는 방식" 3열 — A는 본문 중간에 다크 섹션을 쓰지 않으므로 연회색 바탕의 흰 카드로 ---------- */
.dark-section { background: var(--bg-alt); color: var(--ink); padding: var(--sp-10) 0; }
.dark-section .serif-lg { max-width: 760px; }
.dark-sub { margin-top: 14px; color: var(--sub); max-width: 560px; font-size: 17px; }
.dark-section.center { text-align: center; }
.dark-section.center .serif-lg, .dark-section.center .dark-sub { margin-left: auto; margin-right: auto; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; text-align: left; }
.principle-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.principle-card h3 { font-size: 18px; font-weight: 700; }
.principle-card p { color: var(--sub); font-size: 15.5px; }
.principle-card .card-no { font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--primary); }

/* ---------- 카드 그리드(자격·사업자 정보 등) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.content-card h3 { font-size: 17px; font-weight: 700; line-height: 1.4; }
.content-card p { color: var(--sub); font-size: 15px; }
.content-card .underline-link { margin-top: auto; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-lg); background: var(--primary-soft); }

/* ---------- 밑줄 링크(가이드·카드 등에서 공용, r6-visa.js가 className으로 생성) ---------- */
.underline-link { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.underline-link:hover { color: var(--primary-hover); }

/* ---------- 정의 리스트(대표 정보 등) ---------- */
.info-list { margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; }
.info-list > div { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.info-list dt { font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 6px; }
.info-list dd { margin: 0; font-size: 15.5px; color: var(--ink); }

/* ---------- 안내 박스(상담 연락처, 일반 정보 안내 등) ---------- */
.note-box { margin-top: 28px; max-width: 900px; background: var(--bg-alt); border-left: 3px solid var(--primary); border-radius: var(--r-lg); padding: 18px 22px; }
.note-box strong { display: block; font-size: 12.5px; letter-spacing: .04em; color: var(--primary); margin-bottom: 6px; }
.note-box p { font-size: 14.5px; color: var(--ink); }

/* ---------- 문서형 본문(개인정보·이용안내·블로그 글) ---------- */
.prose { max-width: 720px; margin: 0 auto; font-size: 16.5px; }
.prose h1 { font-size: var(--fs-h1); line-height: 1.25; max-width: none; }
.prose h2 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 44px 0 16px; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 32px 0 10px; }
.prose p { margin: 0 0 16px; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; color: var(--ink-2); }
.prose li::marker { color: var(--primary); }
/* 처리방침(R30): 번호 목록·표·조 아래 소제목 */
.policy ol { list-style: decimal; }
.policy h3 { font-size: 19px; margin: 32px 0 12px; }
.policy h4 { font-size: 16.5px; font-weight: 700; margin: 24px 0 10px; color: var(--ink); }
.policy .table-wrap { margin: 0 0 20px; }
.policy .table { font-size: 14.5px; }
.policy .table tbody th { width: 30%; }
.policy .table a { word-break: break-all; }
.prose a:not(.btn) { color: var(--primary); font-weight: 600; text-underline-offset: 4px; }
.prose a:not(.btn):hover { color: var(--primary-hover); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 28px; font-size: 13.5px; color: var(--sub); }
.article-lead { font-size: 18px; color: var(--ink-2); margin-bottom: 8px; }
.article-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.source-note { display: block; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--sub); }

/* ---------- 태그 필(기사·가이드 카드 상단) ---------- */
.tag-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: #fff; color: var(--primary); font-size: 13px; font-weight: 700; }
.tag-pill.small { height: 24px; padding: 0 10px; font-size: 12px; }

/* ---------- 필터 행(블로그·비자 전체보기 공용) ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.filter-pill { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: var(--r-pill); height: 38px; padding: 0 16px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.filter-pill:hover { border-color: var(--primary); }
.filter-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 대표 글 하이라이트: 다크+그라데이션 삽화 제거, 플랫 카드로 ---------- */
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); margin-top: 36px; }
.feature-card-body { padding: 32px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.feature-card-body h3 { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.feature-card-body p { color: var(--sub); font-size: 15.5px; }
.feature-card-art { display: none; } /* 금색·남색 그라데이션 장식 삽화 — A 규칙(그라데이션 없음)으로 제거 */

/* ---------- 가이드 카드(블로그 목록) — A의 .post 카드와 같은 플랫 모양 ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; transition: border-color .15s; }
.guide-card:hover { border-color: var(--primary); }
.guide-card h3 { font-size: 17px; font-weight: 700; line-height: 1.45; }
.guide-meta { font-size: 13px; color: var(--sub); }
.guide-card .underline-link { margin-top: auto; }
.guide-card[hidden] { display: none; }

/* ---------- 폼(상담 문의) — 리프 요소는 kbv .field/.input/.select/.textarea/.check를 그대로 쓴다 ---------- */
/* 문의 폼: Tally 표준 임베드(R29). 높이는 Tally embed.js가 내용에 맞춰 바꾼다 */
.tally-embed { max-width: 760px; margin-top: 8px; }
.tally-embed iframe { display: block; width: 100%; border: 0; }
.form-grid { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin-top: 32px; }
.form-fieldset { border: 0; border-top: 1px solid var(--line); padding: 18px 0 0; margin: 4px 0; }
.form-fieldset legend { padding: 0; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.form-fieldset legend span { color: var(--sub); font-weight: 500; }
.field > label span, .field-label span { color: var(--sub); font-weight: 500; }
.form-status { min-height: 1.4em; font-size: 14.5px; font-weight: 600; color: var(--primary); }
.form-grid .btn { align-self: flex-start; }

/* ---------- 파이널 CTA — A처럼 남색 배경 + 흰 글자 ---------- */
.final-cta { background: var(--primary); color: #fff; padding: var(--sp-10) 0; text-align: center; }
.final-cta .eyebrow { color: rgba(255, 255, 255, .7); }
.final-cta .serif-xl em, .final-cta h2 em { color: #fff; }
.final-cta .hero-sub { color: rgba(255, 255, 255, .78); }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-inner .hero-sub { margin-left: auto; margin-right: auto; }
.final-inner .hero-actions { justify-content: center; }
.final-cta .btn-primary { background: #fff; color: var(--primary); }
.final-cta .btn-primary:hover { background: #EEF0F5; }
.final-cta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.final-cta .btn-secondary:hover { border-color: #fff; }
.info-date { margin-top: 20px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }

/* ---------- 비자 전체보기 ---------- */
.visa-search { width: 100%; max-width: 420px; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.visa-search:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--primary); }
.visa-count { font-size: 13.5px; color: var(--sub); margin-top: 12px; }
.visa-group { margin-top: 40px; }
.visa-group > h2 { font-size: 20px; font-weight: 700; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.visa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.visa-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
.visa-card:hover { border-color: var(--primary); }
.visa-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.visa-code { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--primary); }
.visa-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.visa-card p { font-size: 13.5px; color: var(--sub); line-height: 1.6; }
.visa-card p.visa-official { font-size: 12.5px; color: var(--sub); margin-top: -2px; }
.visa-badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: var(--r-xs); white-space: nowrap; background: var(--primary-soft); color: var(--primary); }
.visa-empty { padding: 32px 0; color: var(--sub); font-size: 15px; }
.visa-empty[hidden] { display: none; }

/* 비자 찾기 유도 배너 */
.finder-promo { display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line-strong); transition: border-color .15s; }
.finder-promo:hover { border-color: var(--primary); }
.finder-promo-text strong { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.finder-promo-text span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--sub); }
.finder-promo-cta { margin-left: auto; flex: none; font-size: 15px; font-weight: 700; color: var(--primary); }

/* ---------- 비자 찾기 진단 ---------- */
.finder-step { max-width: 720px; }
.finder-step[hidden] { display: none; }
.finder-progress { font-size: 13px; letter-spacing: .04em; color: var(--sub); font-weight: 700; margin-bottom: 8px; }
.finder-q { font-size: var(--fs-h3); font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 24px; }
.finder-options { display: grid; gap: 10px; }
.finder-option { text-align: left; width: 100%; cursor: pointer; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 16px 18px; font: inherit; font-size: 15.5px; color: var(--ink); transition: border-color .15s, background .15s; }
.finder-option:hover { border-color: var(--primary); background: var(--bg-alt); }
.finder-option:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.finder-back { margin-top: 20px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; color: var(--sub); text-decoration: underline; }
.finder-result[hidden] { display: none; }
.finder-result-head { margin-bottom: 20px; }
.finder-answers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.finder-answer-chip { font-size: 12.5px; padding: 5px 12px; border-radius: var(--r-xs); background: var(--bg-alt); color: var(--sub); }
.finder-notes { margin-top: 20px; display: grid; gap: 8px; }
.finder-notes li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.finder-notes li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.finder-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 404 ---------- */
.not-found h1 { max-width: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .card-grid, .card-grid.cols-2, .principle-grid, .info-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-hero { padding: 40px 0 48px; }
  .page-hero.not-found { padding: 56px 0 64px; }
  .section { padding: var(--sp-9) 0; }
  .finder-promo { flex-wrap: wrap; }
  .finder-promo-cta { margin-left: 0; }
  .visa-grid, .guide-grid { grid-template-columns: 1fr; }
}
