@charset "UTF-8";
/* ==========================================================================
   📘 정책서민금융 햇살론 포털 디자인 시스템 (Master Blueprint CSS)
   - 전 기기(PC·모바일) 1컬럼 중앙 정렬 표준 (max-width: 800px)
   - 단어 단위 줄바꿈(word-break: keep-all) 전역 적용
   - 2026-09 개정 금융 신뢰도 카드 및 시각적 위계 체계
   ========================================================================== */

: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;     /* 기본 구분선 */
  --border-focus: #3b82f6;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 3px 12px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 10px 25px rgba(15, 23, 42, 0.12);
}

/* --- 1. 기본 리셋 및 모바일 줄바꿈 방지 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-break: keep-all;       /* 한국어 단어 단위 줄바꿈 전역 적용 */
  overflow-wrap: break-word;   /* 긴 영문 URL 등 예외 처리 */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* --- 2. 상단 헤더 & 네비게이션 (1060px 줄바꿈 방지) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.site-header .container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #ffffff;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-sub);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s ease;
}

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

.nav-link.highlight {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 2px 5px rgba(30, 58, 138, 0.2);
}
.nav-link.highlight:hover {
  background: var(--primary-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-main);
}

/* 모바일 전용 네비 드로어 */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 63px;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--primary);
  padding: 16px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 99;
}
.mobile-nav-drawer.open {
  display: block;
}
.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav-list a {
  display: block;
  padding: 10px 14px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-main);
  border-radius: var(--radius-sm);
}
.mobile-nav-list a.active {
  background: var(--primary-bg);
  color: var(--primary);
}

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

/* --- 3. 1컬럼(단일 열) 중앙 정렬 컨테이너 규격 (760~840px, 표준 800px) --- */
.content-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* --- 4. 히어로 섹션 & 모바일 2줄 완벽 분리 패턴 --- */
.hero-section {
  text-align: center;
  padding: 20px 0 10px;
}

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

.hero-date-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.hero-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--primary-dark);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

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

.hero-title-line.accent {
  color: var(--primary-light);
}

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

@media (max-width: 540px) {
  .hero-title {
    font-size: 1.55rem;
    line-height: 1.35;
  }
  .hero-title-line {
    display: block !important;
    white-space: nowrap !important;
  }
  .hero-desc {
    font-size: 0.92rem;
  }
}

/* --- 5. 생성형 AI 최적화 요약 박스 (.geo-summary-box) --- */
.geo-summary-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 5px solid #16a34a;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}

.geo-summary-box .summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.geo-summary-box .summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #166534;
}

.geo-summary-box .summary-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 8px;
  border-radius: 4px;
}

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

.geo-summary-box .summary-list li {
  font-size: 0.92rem;
  line-height: 1.58;
  color: #1f2937;
  position: relative;
  padding-left: 18px;
}

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

/* --- 6. 고수익 애드센스 전용 래퍼 (.ad-placement) --- */
.ad-placement {
  width: 100%;
  max-width: 820px;
  margin: 24px auto;
  padding: 14px 12px;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.ad-placement .ad-caption {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

/* --- 7. 중요 정보 강조 및 역할별 카드 규격 (.feature-card & .card-stack) --- */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.feature-card {
  --card-color: #1e40af;
  --card-tint: #eff6ff;
  display: block;
  padding: 24px 26px;
  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);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #93c5fd;
}

.card--general { --card-color: #1e3a8a; --card-tint: #eff6ff; }
.card--special { --card-color: #b45309; --card-tint: #fffbeb; }
.card--youth   { --card-color: #0d9488; --card-tint: #f0fdf4; }
.card--illegal { --card-color: #dc2626; --card-tint: #fef2f2; }
.card--itda    { --card-color: #4f46e5; --card-tint: #eef2ff; }
.card--calc    { --card-color: #7c3aed; --card-tint: #f5f3ff; }
.card--docs    { --card-color: #0284c7; --card-tint: #f0f9ff; }
.card--reform  { --card-color: #d97706; --card-tint: #fffbeb; }

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card-tint);
  color: var(--card-color);
  font-size: 1.35rem;
}

.card-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--card-color);
  background: var(--card-tint);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.card-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-value {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
}
.meta-value.accent {
  color: var(--card-color);
}

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

@media (max-width: 600px) {
  .feature-card { padding: 20px 18px; }
  .card-title { font-size: 1.12rem; }
  .card-meta-grid { grid-template-columns: 1fr; }
}

/* --- 8. 상태별 알림 박스 (.notice-box-*) --- */
.notice-box {
  padding: 18px 20px;
  border: 1px solid;
  border-left-width: 5px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}
.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 > strong:first-child {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.notice-box strong {
  font-weight: 700;
}
.notice-box p strong {
  display: inline;
}
.notice-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* --- 9. 인터랙티브 도구 입력 폼 UX 극대화 규격 --- */
.calc-form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: normal;
}

/* 뚜렷한 2px 테두리 & 입력 필드 */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
}

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

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

/* 실시간 한글 금액 변환 뱃지 */
.korean-currency-badge {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-light);
  background: var(--primary-bg);
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
  margin-top: 4px;
}

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

.chip-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.chip-btn.reset {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

/* 라디오/셀렉트 선택지 카드 그룹 */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 540px) {
  .option-grid { grid-template-columns: 1fr; }
}

.option-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 620px) {
  .option-grid-3 { grid-template-columns: 1fr; }
}

.option-card {
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  background: #ffffff;
}

.option-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.option-card.selected {
  border-color: var(--primary-light);
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 700;
}

.option-card input[type="radio"] {
  accent-color: var(--primary-light);
  width: 18px;
  height: 18px;
}

/* --- 10. 폼 하단 '결과 확인' 대형 액션 버튼 & 분리 배너 --- */
.result-action-box {
  margin: 10px 0 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-view-result {
  width: 100%;
  max-width: 480px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.btn-view-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
  background: linear-gradient(135deg, #1e40af, #2563eb);
}

.arrow-icon {
  font-size: 1.25rem;
  animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.result-action-tip {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* --- 11. 결과 대시보드 및 펄스 강조 효과 --- */
.result-column-wrapper {
  scroll-margin-top: 85px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-result-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 10px 0;
}
.mobile-result-divider::before, .mobile-result-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed #cbd5e1;
}
.mobile-result-divider span {
  padding: 0 12px;
}

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

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

.result-header-badge {
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-light);
  border: 1px solid var(--accent-light);
  padding: 3px 8px;
  border-radius: 4px;
}

.result-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.highlight-pulse {
  animation: pulseEffect 1.5s ease-out;
}

@keyframes pulseEffect {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6);
    border-color: #2563eb;
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: var(--shadow-card);
    border-color: var(--border-color);
  }
}

.result-primary-value {
  margin: 12px 0 18px;
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.result-primary-value .unit {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-sub);
}

.result-summary-box {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.94rem;
}
.result-row:last-child {
  border-bottom: none;
}
.result-row .row-label {
  color: var(--text-muted);
}
.result-row .row-val {
  font-weight: 700;
  color: var(--text-main);
}
.result-row .row-val.accent {
  color: var(--primary-light);
}

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

.share-banner-content strong {
  display: block;
  font-size: 0.95rem;
  color: #92400e;
  margin-bottom: 3px;
}

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

.btn-share-url {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.btn-share-url:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.4);
}

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

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

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

.nexus-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  background: var(--primary-bg);
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.nexus-header h2 {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

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

.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: 18px 16px;
  transition: all 0.2s ease;
}

.nexus-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--primary-light);
}

.nexus-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-light);
  background: var(--primary-bg);
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 8px;
}

.nexus-card-icon {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.nexus-card h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 5px;
}

.nexus-card p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-sub);
  flex-grow: 1;
  margin-bottom: 12px;
}

.nexus-card-link {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-top: auto;
}

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

/* --- 14. 표(Table) 금융 비교 스타일 --- */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

.table-responsive-wrapper::-webkit-scrollbar {
  height: 6px;
}
.table-responsive-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.financial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
  min-width: 580px;
}

.financial-table th {
  background: #f1f5f9;
  color: var(--text-main);
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

.financial-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: var(--text-sub);
  vertical-align: middle;
}

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

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

.financial-table .highlight-col {
  background: #f0f7ff;
  font-weight: 700;
  color: var(--primary);
}

/* --- 15. 체크리스트 & 스티키 진행률 바 --- */
.sticky-progress-card {
  position: -webkit-sticky;
  position: sticky;
  top: 72px;
  z-index: 85;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-info {
  display: flex;
  flex-direction: column;
}
.progress-title {
  font-size: 0.88rem;
  font-weight: 700;
}
.progress-ratio {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-light);
}

.progress-bar-bg {
  flex-grow: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-light);
  transition: width 0.3s ease;
}

.checklist-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: all 0.2s ease;
}
label.checklist-item,
.checklist-item:has(input[type="checkbox"]) {
  cursor: pointer;
}
label.checklist-item:hover,
.checklist-item:has(input[type="checkbox"]):hover {
  border-color: #93c5fd;
  background: #f8fafc;
}
.checklist-item.checked {
  background: var(--primary-bg);
  border-color: #bfdbfe;
}
.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-light);
  margin-top: 2px;
  cursor: pointer;
}
.checklist-text {
  flex-grow: 1;
}

/* 상단 첫 번째 메인 타이틀만 블록 및 마진 부여 */
.checklist-text > strong:first-child,
.checklist-text .checklist-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.45;
}

/* 그 외 모든 strong은 인라인 유지 (글머리기호 줄바꿈 방지) */
.checklist-text strong {
  font-weight: 700;
  color: var(--text-main);
}
.checklist-text p strong,
.checklist-text li strong,
.checklist-text span strong {
  display: inline;
}

.checklist-text p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin: 0;
}

/* 하위 불릿 리스트 규격 (내어쓰기 완벽 정렬) */
.checklist-sublist,
.checklist-text ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checklist-sublist li,
.checklist-text li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-sub);
}

.checklist-sublist li::before,
.checklist-text li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-light);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.65;
}

/* --- 16. 실무 FAQ 아코디언 컴포넌트 --- */
.faq-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question:hover {
  background: #f8fafc;
  color: var(--primary-light);
}

.faq-arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-sub);
  border-top: 1px solid #f1f5f9;
}
.faq-item.active .faq-answer {
  display: block;
  padding-top: 14px;
}

/* --- 17. 푸터 (Footer) & 운영자 신뢰도 바 --- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 20px;
  font-size: 0.86rem;
  border-top: 1px solid #1e293b;
}

.site-footer .container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 16px;
}

.footer-nav a {
  color: #cbd5e1;
  font-weight: 600;
}
.footer-nav a:hover {
  color: #38bdf8;
}

.footer-admin-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.6;
}

.footer-admin-bar strong {
  color: #f1f5f9;
}

.footer-admin-bar a {
  color: #60a5fa;
  text-decoration: underline;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.55;
}

/* 토스트 알림창 */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast-container.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ==========================================================================
   16. 연관 링크 강조 & 다음 단계 액션 내비게이션 (2026 UX 업그레이드)
   - 사용자가 다음 단계와 연관 문서를 직관적으로 인지하도록 시각적 강조
   ========================================================================== */

/* 브레드크럼 (상단 위치 경로) */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 10px 0 18px;
  padding: 8px 14px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.breadcrumb-nav a {
  color: var(--primary-light);
  font-weight: 700;
}
.breadcrumb-nav a:hover {
  text-decoration: underline;
}
.breadcrumb-nav .separator {
  color: #94a3b8;
  font-size: 0.75rem;
}
.breadcrumb-nav .current {
  color: var(--text-main);
  font-weight: 800;
}

/* 다음 추천 단계 플로우 배너 (Next-Step Flow Banner) */
.next-step-flow-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  color: #ffffff;
  margin: 36px 0 26px;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.next-step-flow-banner .flow-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.flow-step-badge {
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.flow-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.flow-content-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.35fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.flow-step-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.flow-step-item.current {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.85;
}

.flow-step-item.next-action {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #93c5fd;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
  transform: scale(1.02);
}
.flow-step-item.next-action:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.7);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.flow-step-item.sub-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #93c5fd;
}

.flow-step-item .step-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 2px;
}
.flow-step-item.next-action .step-num {
  color: #fef08a;
}

.flow-step-item .step-label {
  font-size: 0.94rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #ffffff;
}

.flow-step-item .step-sub {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin-bottom: 8px;
}

.flow-step-item .step-btn {
  display: inline-block;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  margin-top: auto;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.flow-step-item .step-btn-sub {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.flow-arrow-divider {
  font-size: 1.15rem;
  font-weight: 900;
  color: #93c5fd;
  text-align: center;
}

@media (max-width: 680px) {
  .flow-content-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .flow-arrow-divider {
    transform: rotate(90deg);
    margin: -4px 0;
  }
}

/* 본문 중간 삽입형 강조 액션 박스 (.contextual-action-box) */
.contextual-action-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #3b82f6;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.18);
}

.contextual-action-box.amber {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
}

.action-box-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}

.action-box-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
  line-height: 1;
  background: #ffffff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.action-box-text strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 4px;
}
.contextual-action-box.amber .action-box-text strong {
  color: #92400e;
}

.action-box-text p {
  font-size: 0.86rem;
  color: #334155;
  margin: 0;
  line-height: 1.5;
}

.action-box-btn {
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-align: center;
}
.contextual-action-box.amber .action-box-btn {
  background: #d97706;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.35);
}
.action-box-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.45);
}

@media (max-width: 600px) {
  .contextual-action-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .action-box-left {
    flex-direction: column;
    align-items: center;
  }
  .action-box-btn {
    width: 100%;
  }
}

/* 넥서스 카드 강조 및 버튼 */
.nexus-card {
  border-top: 4px solid var(--primary-light) !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07) !important;
}
.nexus-card:hover {
  border-top-color: #2563eb !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.18) !important;
  transform: translateY(-4px) !important;
}
.nexus-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  color: var(--primary-light);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  transition: all 0.2s ease;
}
.nexus-card:hover .nexus-card-btn {
  background: var(--primary-light);
  color: #ffffff;
}

