/* ==========================================================================
   소상공인 바우처 & 사업자 정책자금 안내센터 - 표준 디자인 시스템 (Vanilla CSS)
   - 전 기기(PC·모바일) 1컬럼 중앙 정렬 표준 (최대 너비 800px)
   - 한국어 단어 단위 줄바꿈 전역 적용 (word-break: keep-all)
   - 중요 정보 시각적 위계 & 역할별 카드 구분 (2026-09-16 최신 표준)
   - 모바일 타이틀 2줄 완벽 분리 패턴 (.hero-title-line)
   - 폼 입력 UX 극대화 (한글 금액 변환 뱃지, 빠른 조정 칩)
   - 높이 제한 없는 auto 반응형 디스플레이 광고 래퍼 (.ad-placement)
   - 생성형 AI(GEO·AEO) 30초 핵심 요약 박스 (.geo-summary-box)
   - 연관 내부 링크 넥서스 컴포넌트 (.related-nexus-section)
   ========================================================================== */

/* --- 1. CSS 변수 & 디자인 토큰 --- */
:root {
  --primary: #1e3a8a;        /* 신뢰감 있는 정부 공공 딥 네이비 */
  --primary-light: #2563eb;  /* 로열 블루 */
  --primary-dark: #0f172a;   /* 슬레이트 다크 */
  --primary-bg: #eff6ff;     /* 연한 블루 배경 */
  
  --accent: #b45309;         /* 앰버/골드 (주의 및 핵심 강조) */
  --accent-light: #f59e0b;
  --accent-bg: #fffbeb;
  
  --success: #059669;        /* 에메랄드 그린 (승인/적합/지급) */
  --success-bg: #ecfdf5;
  --danger: #dc2626;         /* 레드 (위험/제외/불가) */
  --danger-bg: #fef2f2;
  
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 2px 6px rgba(15, 23, 42, 0.06);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* --- 2. 기본 리셋 & 타이포그래피 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-break: keep-all;       /* 한국어 단어 단위 줄바꿈 전역 적용 */
  overflow-wrap: break-word;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, select, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* 1컬럼 중앙 정렬 표준 컨테이너 (최대 너비 800px) */
.container {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 헤더 전용 확장 컨테이너 (PC 메뉴 줄바꿈 방지 1420px) */
.container-header {
  max-width: 1420px;
}

/* --- 3. 공통 헤더 & 네비게이션 --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo span.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.logo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background-color: var(--primary-bg);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid #bfdbfe;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-sub);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-bg);
}

.nav-link.highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff;
}

.nav-link.highlight:hover {
  filter: brightness(0.95);
}

/* 모바일 햄버거 버튼 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
  background: transparent;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* 모바일 드로어 메뉴 */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  height: calc(100vh - 68px);
  background-color: #ffffff;
  z-index: 99;
  padding: 20px 24px;
  overflow-y: auto;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer .drawer-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 12px;
  margin-bottom: 4px;
}

.mobile-drawer .nav-link {
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer .nav-link.active {
  background-color: var(--primary-bg);
  border-color: #bfdbfe;
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 1060px) {
  .main-nav { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
}

/* --- 4. 브레드크럼 (Breadcrumbs) --- */
.breadcrumb-nav {
  padding: 14px 0 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-nav a {
  color: var(--primary-light);
  font-weight: 600;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-nav .sep {
  color: #cbd5e1;
}

.breadcrumb-nav .current {
  color: var(--text-sub);
  font-weight: 700;
}

/* --- 5. 히어로 섹션 & 타이틀 2줄 분리 --- */
.hero-section {
  padding: 28px 0 16px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-bg);
  border: 1px solid #bfdbfe;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--primary-dark);
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.hero-title-line {
  display: inline-block;
  white-space: nowrap;
}

.accent-text {
  color: var(--primary-light);
}

.accent-gold {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 720px;
  margin: 0 auto 18px;
}

/* 3대 원칙 뱃지 행 */
.trust-banner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e3a8a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

@media (max-width: 540px) {
  .hero-title-line {
    display: block !important;
    white-space: nowrap !important;
  }
}

/* --- 6. 제도 차이 핵심 직관 배너 (바우처 vs 정책자금) --- */
.dual-system-comparison {
  margin: 20px 0 28px;
  padding: 22px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.comparison-header {
  text-align: center;
  margin-bottom: 18px;
}

.comparison-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.comparison-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comparison-box {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid;
}

.comparison-box.voucher-side {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.comparison-box.funding-side {
  background: #fffbeb;
  border-color: #fde68a;
}

.comparison-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.voucher-side .comparison-tag {
  background: #2563eb;
  color: #fff;
}

.funding-side .comparison-tag {
  background: #b45309;
  color: #fff;
}

.comparison-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.comparison-list {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comparison-list li strong {
  color: var(--primary-dark);
}

.comparison-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 640px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 7. 시각적 위계 및 역할별 카드 시스템 (3.3절 표준) --- */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.feature-card {
  --card-color: #1e40af;
  --card-tint: #eff6ff;
  display: block;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--card-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.card--check { --card-color: #1e40af; --card-tint: #eff6ff; }
.card--calc  { --card-color: #6d28d9; --card-tint: #f5f3ff; }
.card--docs  { --card-color: #0f766e; --card-tint: #f0fdfa; }
.card--gold  { --card-color: #b45309; --card-tint: #fffbeb; }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--card-tint);
  color: var(--card-color);
  font-size: 1.3rem;
}

.card-label {
  display: block;
  color: var(--card-color);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.card-title {
  margin: 6px 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.card-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--card-color);
  font-weight: 800;
  font-size: 0.92rem;
}

a.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  border-color: var(--card-color);
}

a.feature-card:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 4px;
}

/* 정보 표시 전용 카드 (클릭 링크 아님) */
.info-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.info-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.info-card-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* --- 8. 생성형 AI (GEO · AEO) 핵심 요약 박스 --- */
.geo-summary-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 5px solid #16a34a;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 22px 0 28px;
  box-shadow: var(--shadow-sm);
}

.geo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #166534;
}

.geo-sub-label {
  font-size: 0.75rem;
  color: #15803d;
}

.geo-direct-answer {
  background: #ffffff;
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #14532d;
  margin-bottom: 12px;
}

.geo-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  list-style: none;
  padding: 0;
}

.geo-summary-list li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #1f2937;
  position: relative;
  padding-left: 16px;
  list-style: none;
}

.geo-summary-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 0;
  color: #16a34a;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.55;
}

.geo-bullet {
  display: none !important;
}

.geo-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.geo-fact-card {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
}

.geo-fact-label {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 2px;
}

.geo-fact-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #166534;
}

@media (max-width: 600px) {
  .geo-facts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- 9. 반응형 애드센스 광고 래퍼 (높이 제한 없음) --- */
.ad-placement {
  width: 100%;
  max-width: 800px;
  margin: 26px auto;
  padding: 12px 10px;
  box-sizing: border-box;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  /* height / max-height / overflow: hidden 절대 적용 금지 */
}

.ad-caption {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.ad-placement ins.adsbygoogle {
  display: block;
}

@media (max-width: 768px) {
  .ad-placement {
    margin: 18px auto;
    padding: 10px 6px;
  }
}

/* --- 10. 인터랙티브 도구 폼 UX & 한글 금액 변환 --- */
.calc-form-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--text-main);
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-unit {
  position: absolute;
  right: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

/* 셀렉트 박스 커스텀 */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

/* 실시간 한글 금액 변환 뱃지 */
.korean-currency-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
}

/* 원클릭 퀵 조정 칩 */
.quick-adjust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sub);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: #bfdbfe;
}

/* 라디오 / 체크박스 카드 그리드 */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.option-item {
  position: relative;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-sub);
  transition: all var(--transition-fast);
}

.option-item input:checked + .option-label {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* --- 11. 결과 확인 버튼 & 스크롤 강조 펄스 --- */
.result-action-box {
  text-align: center;
  margin: 24px 0 16px;
  padding-top: 18px;
  border-top: 1px dashed #cbd5e1;
}

.btn-view-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-view-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.45);
  filter: brightness(1.05);
}

.result-action-tip {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 결과 영역 래퍼 & 헤더 배너 */
.result-column-wrapper {
  scroll-margin-top: 85px;
}

.mobile-result-divider {
  display: none;
  align-items: center;
  text-align: center;
  margin: 20px 0 14px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
}

.mobile-result-divider::before,
.mobile-result-divider::after {
  content: "";
  flex: 1;
  border-bottom: 2px dashed #93c5fd;
  margin: 0 10px;
}

@media (max-width: 768px) {
  .mobile-result-divider { display: flex; }
}

.result-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border-left: 5px solid var(--accent-light);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  color: #ffffff;
  font-weight: 800;
}

.result-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.result-header-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* 결과 카드 & 펄스 애니메이션 */
.calc-result-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.result-value-box {
  text-align: center;
  padding: 18px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

.result-status-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
}

.result-value {
  margin: 8px 0 6px;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.result-desc {
  font-size: 0.92rem;
  color: var(--text-sub);
}

/* 결과 도착 시 1.2초 반짝임 펄스 */
.highlight-pulse {
  animation: pulseHighlight 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulseHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    border-color: #2563eb;
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
    border-color: #2563eb;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* URL 결과 공유 배너 */
.share-banner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 18px;
  gap: 12px;
}

.share-banner-content strong {
  display: block;
  font-size: 0.88rem;
  color: #92400e;
}

.share-banner-content p {
  font-size: 0.78rem;
  color: #b45309;
}

.btn-share-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f59e0b;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-share-url:hover {
  background: #d97706;
}

@media (max-width: 600px) {
  .share-banner-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-share-url {
    width: 100%;
    justify-content: center;
  }
}

/* --- 12. 상태별 알림 박스 (Notice Box) --- */
.notice-box {
  padding: 16px 20px;
  border: 1px solid;
  border-left-width: 5px;
  border-radius: var(--radius-md);
  margin: 18px 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.notice-box-info {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.notice-box-warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.notice-box-danger {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.notice-box-success {
  background: #ecfdf5;
  border-color: #059669;
  color: #065f46;
}

.notice-box-title {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

/* --- 13. 본문 세부 섹션 및 표 디자인 --- */
.content-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.content-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-bg);
}

.content-section h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin: 18px 0 8px;
}

.content-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 12px;
}

/* 반응형 테이블 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.data-table th {
  background: #f1f5f9;
  color: var(--primary-dark);
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-sub);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: #f8fafc;
}

/* 공식 출처 및 바로가기 박스 */
.official-source-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 20px;
}

.official-source-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.official-link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.official-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.official-link-item .org-name {
  font-weight: 700;
  color: var(--text-main);
}

.official-link-item a {
  color: var(--primary-light);
  font-weight: 700;
}

.official-link-item a:hover {
  text-decoration: underline;
}

/* FAQ 아코디언 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.faq-item {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  background: #ffffff;
}

.faq-q-badge {
  color: var(--primary-light);
  font-weight: 900;
  margin-right: 8px;
}

.faq-answer {
  padding: 14px 18px 18px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-sub);
  border-top: 1px solid #f1f5f9;
}

/* --- 14. 연관 내부 링크 넥서스 컴포넌트 (.related-nexus-section) --- */
.related-nexus-section {
  margin: 36px 0 28px;
  padding: 28px 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  text-align: center;
}

.nexus-header {
  margin-bottom: 20px;
}

.nexus-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.nexus-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.nexus-header p {
  font-size: 0.85rem;
  color: #64748b;
}

.nexus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  text-align: left;
}

.nexus-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.nexus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  border-color: #3b82f6;
}

.nexus-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 7px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 6px;
}

.nexus-card-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.nexus-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.nexus-card p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
  flex-grow: 1;
  margin-bottom: 10px;
}

.nexus-card-link {
  font-size: 0.8rem;
  font-weight: 800;
  color: #2563eb;
  margin-top: auto;
}

@media (max-width: 640px) {
  .nexus-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 15. 푸터 & 운영자 신뢰도 바 --- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 36px 0 28px;
  margin-top: 48px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-disclaimer {
  padding-top: 14px;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 0.78rem;
}

.footer-admin-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.76rem;
  color: #64748b;
}

/* 토스트 메시지 */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.toast-msg.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 모바일 전용 여백 조정 */
@media (max-width: 600px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .content-section, .calc-form-card, .calc-result-card, .feature-card {
    padding: 20px 16px;
  }
}

/* --- 1분 자가진단 전용 네비게이션 & 퀵 배너 스타일 --- */
#voucherCheckFormSection, #fundingFinderFormSection, #resultVoucherCheckSection {
  scroll-margin-top: 85px;
}

.nav-link-diag {
  background: #059669 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-radius: var(--radius-full) !important;
  padding: 6px 14px !important;
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.25) !important;
  transition: all var(--transition-fast) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.nav-link-diag:hover {
  background: #047857 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(5, 150, 105, 0.35) !important;
}

.quick-diagnostic-banner {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 2px solid #86efac;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.08);
  flex-wrap: wrap;
}

.quick-diagnostic-banner .banner-cta-btn {
  background: #059669;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.3);
  transition: all var(--transition-fast);
}

.quick-diagnostic-banner .banner-cta-btn:hover {
  background: #047857;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -1px rgba(5, 150, 105, 0.4);
}
