/* ==========================================================================
   2026 대한민국 장애인 복지·지원금 올인원 통합 포털 표준 스타일시트 (style.css)
   - 전 기기(PC·모바일) 1컬럼 중앙 정렬 표준 (max-width: 800px)
   - 고수익 트래픽 & 가독성 최적화 디자인 시스템
   ========================================================================== */

:root {
  --primary: #1e3a8a;          /* 신뢰의 딥 네이비 */
  --primary-light: #2563eb;    /* 액티브 블루 */
  --primary-dark: #0f172a;     /* 다크 슬레이트 */
  --primary-bg: #eff6ff;       /* 소프트 블루 배경 */
  
  --accent: #b45309;           /* 골드/앰버 액센트 */
  --accent-light: #f59e0b;     /* 밝은 앰버 */
  --accent-bg: #fffbeb;        /* 앰버 소프트 배경 */

  --secondary: #0f766e;        /* 청록/케어 컬러 */
  --secondary-bg: #f0fdfa;

  --success: #16a34a;
  --success-bg: #f0fdf4;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;

  --text-main: #0f172a;        /* 본문 주요 텍스트 */
  --text-sub: #334155;         /* 부연 설명 텍스트 */
  --text-muted: #64748b;       /* 캡션/메타 텍스트 */
  --text-light: #94a3b8;

  --bg-main: #f8fafc;          /* 전역 배경색 */
  --bg-card: #ffffff;          /* 카드 흰색 표면 */
  --border: #e2e8f0;
  --border-focus: #2563eb;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
}

/* 4.1 전역 리셋 & 한국어 단어 단위 줄바꿈 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

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.7;
  -webkit-font-smoothing: antialiased;
  padding-top: 68px; /* 고정 헤더 높이 확보 */
}

/* 링크 기본 */
a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary);
}

/* ==========================================================================
   레이아웃 & 1컬럼 컨테이너 (최대 너비 800px)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.calc-single-column-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   헤더 & 네비게이션 (PC 줄바꿈 원천 차단)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.site-header .container {
  max-width: 1120px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-logo .badge-year {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-light);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 2px;
}

.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: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.15s ease;
}

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

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

/* 모바일 드로어 메뉴 */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 999;
  backdrop-filter: blur(4px);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-content {
  background: #ffffff;
  width: 100%;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  padding: 20px 24px 40px;
  border-bottom: 2px solid var(--primary-light);
}

.mobile-nav-group-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid #f1f5f9;
}

/* 1060px 이하에서 햄버거 전환 */
@media (max-width: 1060px) {
  .main-nav { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
}

/* ==========================================================================
   히어로 섹션 & 모바일 2줄 분리 타이틀
   ========================================================================== */
.hero-section {
  padding: 36px 0 24px;
  text-align: center;
}

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

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

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

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

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 640px;
  margin: 0 auto;
}

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

/* ==========================================================================
   AI 지식 & 실무 30초 요약 박스 (.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;
  margin: 20px 0 26px 0;
  box-shadow: var(--shadow-sm);
}

.geo-summary-box .summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 10px;
}

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

.geo-summary-box .summary-list li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1e293b;
  position: relative;
  padding-left: 16px;
}

.geo-summary-box .summary-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: bold;
}

/* 정책 기준 알림 배너 */
.policy-update-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 5px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.policy-update-banner .icon {
  font-size: 1.3rem;
  line-height: 1;
}

.policy-update-banner .content {
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.5;
}

.policy-update-banner strong {
  color: #78350f;
}

/* ==========================================================================
   카드 디자인 시스템 (Section 3.3 표준)
   ========================================================================== */
.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);
  border-left: 5px solid var(--card-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

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

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

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

.card-label {
  color: var(--card-color);
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--card-tint);
  padding: 3px 10px;
  border-radius: 20px;
}

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

.card-desc {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-sub);
}

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

/* ==========================================================================
   인터랙티브 폼 UX 시스템 (Section 15 표준)
   ========================================================================== */
.calc-form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-card);
}

.form-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-bg);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--danger);
  margin-left: 3px;
}

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

/* 2px 뚜렷한 입력창 */
.form-input, .form-select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font-size: 1rem;
  color: var(--text-main);
  background-color: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s ease;
}

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

/* 단위 접미사 고정 컨테이너 */
.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-unit .form-input {
  padding-right: 50px;
  text-align: right;
  font-weight: 700;
  font-size: 1.1rem;
}

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

/* 한글 금액 변환 뱃지 */
.korean-currency-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 6px;
  min-height: 24px;
}

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

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

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

.chip-btn.reset {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.chip-btn.reset:hover {
  background: #fecaca;
}

/* 라디오 & 체크박스 버튼 그룹 */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.option-card {
  position: relative;
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 10px;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 72px;
}

.option-card input:checked + .option-label {
  border-color: var(--primary-light);
  background: var(--primary-bg);
  box-shadow: 0 0 0 1px var(--primary-light);
}

.option-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.option-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.option-card input:checked + .option-label .option-title {
  color: var(--primary);
}

/* ==========================================================================
   결과 확인 대형 액션 버튼 & 스무스 이동 (Section 3.2 표준)
   ========================================================================== */
.result-action-box {
  margin: 30px 0 10px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}

.btn-view-result {
  width: 100%;
  max-width: 500px;
  min-height: 56px;
  padding: 14px 28px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.25);
  transition: all 0.2s ease;
}

.btn-view-result:hover {
  background: linear-gradient(135deg, #172554 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(30, 58, 138, 0.35);
}

.btn-view-result .arrow-icon {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.btn-view-result:hover .arrow-icon {
  transform: translateY(3px);
}

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

/* ==========================================================================
   실시간 분석 결과 대시보드 리포트
   ========================================================================== */
.result-column-wrapper {
  scroll-margin-top: 85px; /* 헤더 겹침 방지 안전 마진 */
}

.mobile-result-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 16px;
  position: relative;
}

.mobile-result-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.mobile-result-divider span {
  position: relative;
  background: var(--bg-main);
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
}

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

.result-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-header-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.result-header-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
}

.calc-result-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}

/* 펄스 강조 애니메이션 */
@keyframes highlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.highlight-pulse {
  animation: highlightPulse 1.2s ease-out;
}

/* 주요 산출 수치 */
.result-hero-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  margin-bottom: 22px;
}

.result-hero-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e40af;
}

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

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

/* 결과 세부 테이블 / 리스트 (계산기 결과 박스용) */
.result-breakdown-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  font-size: 0.92rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.result-breakdown-table th,
.result-breakdown-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.result-breakdown-table tr:last-child th,
.result-breakdown-table tr:last-child td {
  border-bottom: none;
}

.result-breakdown-table th {
  text-align: left;
  color: #1e293b;
  font-weight: 700;
  background-color: #f8fafc;
  border-right: 1px solid #e2e8f0;
  width: 38%;
}

.result-breakdown-table td {
  text-align: right;
  color: var(--text-main);
  font-weight: 700;
  background-color: #ffffff;
}

.result-breakdown-table tr.total-row {
  border-top: 2px solid #2563eb;
  background: #eff6ff;
}

.result-breakdown-table tr.total-row th,
.result-breakdown-table tr.total-row td {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 800;
  background: #eff6ff;
  border-top: 2px solid #2563eb;
}

/* ==========================================================================
   URL 바이럴 공유 배너 (Section 7 표준)
   ========================================================================== */
.share-banner-box {
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
}

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

.share-banner-content p {
  font-size: 0.82rem;
  color: #b45309;
  line-height: 1.4;
}

.btn-share-url {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.2);
  transition: all 0.15s ease;
}

.btn-share-url:hover {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  transform: translateY(-2px);
}

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

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

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

.nexus-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-light);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.nexus-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  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: 16px;
  text-align: left;
}

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

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

.nexus-card-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary-light);
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 6px;
  align-self: flex-start;
  margin-bottom: 8px;
}

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

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

.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: 700;
  color: var(--primary-light);
  margin-top: auto;
}

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

/* ==========================================================================
   구글 애드센스 전용 래퍼 (.ad-placement - Section 10 표준)
   ========================================================================== */
.ad-placement {
  width: 100%;
  max-width: 820px;
  margin: 28px auto;
  padding: 14px 12px;
  box-sizing: border-box;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  /* 높이 강제 제한 없음, overflow 클리핑 금지 */
}

.ad-placement .ad-caption {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

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

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

/* ==========================================================================
   상태 알림 상자 (.notice-box)
   ========================================================================== */
.notice-box {
  padding: 18px 20px;
  border: 1px solid;
  border-left-width: 4px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.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; }

/* 단계별 절차 리스트 */
.step-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.step-card-item {
  display: flex;
  gap: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.step-body h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ==========================================================================
   스티키 진행률 바 (체크리스트 전용 - Section 4.3 표준)
   ========================================================================== */
.sticky-progress-card {
  position: -webkit-sticky;
  position: sticky;
  top: 76px;
  z-index: 85;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 22px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.3);
  backdrop-filter: blur(10px);
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #f59e0b;
  border-radius: 5px;
  transition: width 0.3s ease;
}

@media (max-width: 768px) {
  .sticky-progress-card {
    top: 72px;
    padding: 12px 16px;
  }
}

/* 체크리스트 아이템 */
.check-group {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  overflow: hidden;
}

.check-group-title {
  background: #f8fafc;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s ease;
}

.check-item:last-child {
  border-bottom: none;
}

.check-item:hover {
  background: #f8fafc;
}

.check-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--primary-light);
  cursor: pointer;
}

.check-item-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.check-item-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.check-item.completed {
  background: #f0fdf4;
}

.check-item.completed strong {
  text-decoration: line-through;
  color: #15803d;
}

/* ==========================================================================
   푸터 & 운영자 정보 바 (Section 8 표준)
   ========================================================================== */
.site-footer {
  margin-top: 60px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-sub);
}

.footer-admin-bar {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-admin-bar a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-admin-bar a:hover {
  color: var(--primary);
}

.footer-copyright {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* 토스트 알림창 */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.toast-container.show {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   전면 클릭 가능한 가이드 네비게이션 카드 및 연계 링크 시각화 컴포넌트
   ========================================================================== */

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

/* 카드 전체 클릭 가능한 인터랙티브 가이드 카드 */
.guide-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #1e3a8a;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.guide-action-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  border-left-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.09);
}

.guide-action-card:active {
  transform: translateY(0);
}

/* 카드 좌측 아이콘 배지 */
.guide-card-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #eff6ff;
  border-radius: 10px;
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.guide-action-card:hover .guide-card-icon {
  transform: scale(1.08);
  background: #dbeafe;
}

/* 카드 중앙 텍스트 */
.guide-card-content {
  flex: 1;
  min-width: 0;
}

.guide-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin: 0 0 3px 0;
  transition: color 0.15s ease;
}

.guide-action-card:hover .guide-card-title {
  color: #1e3a8a;
}

.guide-card-sub {
  font-size: 0.83rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 카드 우측 액션 이동 칩 */
.guide-card-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.guide-action-card:hover .guide-card-arrow {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}

/* 7단계 순서도 내 인라인 액션 버튼 */
.step-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

@media (min-width: 640px) {
  .step-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.step-action-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}

.step-action-link:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  border-left-color: #1d4ed8;
  color: #1d4ed8;
  transform: translateX(3px);
}

/* 상세 가이드 하단 관련 가이드 카드 강화 */
.related-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #1e3a8a !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  margin-bottom: 8px !important;
}

.related-card:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  border-left-color: #2563eb !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08) !important;
}

.related-card strong {
  display: block;
  font-size: 0.98rem;
  color: #1e3a8a;
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.related-card:hover strong {
  color: #2563eb;
}

.related-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.related-card::after {
  content: "가이드 보기 →";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-left: 12px;
}

.related-card:hover::after {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}

/* ==========================================================================
   표 (Table) 표준 디자인 시스템 - 선명한 테두리 & 극대화된 가독성
   ========================================================================== */

/* 1. 표 외곽 래퍼 컨테이너 (모바일 가로 스크롤 & 라운드 카드) */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.8rem 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

/* 스크롤바 미려하게 개선 */
.table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.table-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 2. 전역 테이블 기본 세팅 (styled-table, data-table, 일반 table) */
table.styled-table,
table.data-table,
.table-wrapper table,
.content-section table,
.guide-content table,
article table {
  width: 100%;
  border-collapse: collapse !important;
  border-spacing: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #1e293b;
  background-color: #ffffff;
  text-align: left;
}

/* 3. 테이블 헤더 (thead th) - 신뢰의 딥 네이비 */
table.styled-table thead tr,
table.data-table thead tr,
.table-wrapper thead tr,
.content-section thead tr,
.guide-content thead tr {
  background: #1e3a8a !important;
  color: #ffffff !important;
}

table.styled-table thead th,
table.data-table thead th,
.table-wrapper thead th,
.content-section thead th,
.guide-content thead th {
  padding: 14px 16px !important;
  font-weight: 700 !important;
  font-size: 0.94rem !important;
  color: #ffffff !important;
  text-align: center !important;
  background: #1e3a8a !important;
  border: 1px solid #1e3a8a !important;
  border-bottom: 2px solid #0f172a !important;
  border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

table.styled-table thead th:last-child,
table.data-table thead th:last-child,
.table-wrapper thead th:last-child {
  border-right: 1px solid #1e3a8a !important;
}

/* 4. 테이블 본문 데이터 셀 (tbody td) - 선명한 테두리 & 편안한 여백 */
table.styled-table tbody td,
table.data-table tbody td,
.table-wrapper tbody td,
.content-section tbody td,
.guide-content tbody td {
  padding: 13px 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
  border: 1px solid #cbd5e1 !important;
  vertical-align: middle;
  background-color: #ffffff;
  transition: background-color 0.15s ease;
}

/* 5. 본문 내 좌측 행 헤더 (tbody th) - 스펙표나 기준열 */
table.styled-table tbody th,
table.data-table tbody th,
.table-wrapper tbody th,
.content-section tbody th,
.guide-content tbody th {
  padding: 13px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #0f172a;
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

/* 6. 지브라 줄무늬 (Zebra Striping) - 짝수 행 구분 */
table.styled-table tbody tr:nth-child(even) td,
table.data-table tbody tr:nth-child(even) td,
.table-wrapper tbody tr:nth-child(even) td {
  background-color: #f8fafc;
}

/* 7. 행 호버 (Hover) 강조 효과 */
table.styled-table tbody tr:hover td,
table.data-table tbody tr:hover td,
.table-wrapper tbody tr:hover td {
  background-color: #eff6ff !important;
  color: #0f172a !important;
}

table.styled-table tbody tr:hover th,
table.data-table tbody tr:hover th,
.table-wrapper tbody tr:hover th {
  background-color: #e2e8f0 !important;
}

/* 8. 본문 내 강조 텍스트 */
table.styled-table strong,
table.data-table strong,
.table-wrapper table strong {
  font-weight: 700;
  color: #0f172a;
}

/* 9. 모바일 화면 최적화 (< 640px) */
@media (max-width: 640px) {
  .table-wrapper {
    margin: 1.2rem 0;
    border-radius: 8px;
  }
  table.styled-table,
  table.data-table,
  .table-wrapper table {
    font-size: 0.85rem;
    min-width: 440px; /* 열이 비좁아지지 않도록 최소 너비 보장 */
  }
  table.styled-table thead th,
  table.data-table thead th,
  .table-wrapper thead th {
    padding: 10px 10px !important;
    font-size: 0.85rem !important;
  }
  table.styled-table tbody td,
  table.data-table tbody td,
  .table-wrapper tbody td,
  table.styled-table tbody th,
  table.data-table tbody th,
  .table-wrapper tbody th {
    padding: 10px 11px;
    font-size: 0.85rem;
  }
  .result-breakdown-table {
    font-size: 0.86rem;
  }
  .result-breakdown-table th,
  .result-breakdown-table td {
    padding: 10px 12px;
  }
}

/* ==========================================================================
   심층 가이드 아티클 (Content Article) 표준 스타일
   - 췌장장애 등 심층 가이드 페이지 전용 카드 & 타이포그래피 시스템
   ========================================================================== */

/* 1. 컨테이너 및 헤더/푸터 래퍼 호환 */
.page-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-inner {
  max-width: 1420px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  margin: 0 auto;
}

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

/* 2. 브레드크럼 (경로 표시줄) */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 14px 0 18px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text-main);
  font-weight: 700;
}

/* 3. 본문 아티클 카드 래퍼 (.content-article) */
.content-article {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

/* 4. 카테고리 배지 */
.category-badge {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* 5. 아티클 타이틀 */
.article-title {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

/* 6. 아티클 리드문 (핵심 요약 도입부) */
.article-lead {
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.8;
  padding: 16px 20px;
  background: #f8fafc;
  border-left: 4px solid var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 28px;
  word-break: keep-all;
}

/* 7. 본문 섹션 및 H2 소제목 */
.content-section {
  margin: 28px 0;
}

.content-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-bg);
  word-break: keep-all;
}

.content-section p {
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 0.96rem;
  word-break: keep-all;
}

/* 8. 핵심 정보 강조 박스 (.info-card) */
.info-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

.info-card h4 {
  color: #1e3a8a;
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 10px;
}

/* 9. 순서/목록 리스트 (.styled-list) */
.styled-list {
  padding-left: 20px;
  color: var(--text-sub);
  line-height: 1.8;
  font-size: 0.95rem;
  margin: 16px 0;
}

.styled-list li {
  margin-bottom: 10px;
}

/* 10. FAQ 아이템 박스 (.faq-item) */
.faq-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.faq-item h4 {
  color: #1e3a8a;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.faq-item p {
  color: var(--text-sub);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-top: 0;
}

/* 11. 모바일 최적화 미디어 쿼리 */
@media (max-width: 640px) {
  .content-article {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }
  .article-title {
    font-size: 1.35rem;
  }
  .article-lead {
    font-size: 0.95rem;
    padding: 12px 14px;
  }
  .info-card {
    padding: 14px 16px;
  }
}

/* ==========================================================================
   구글 애드센스 규격 (.ad-placement & .ad-unit 통합 관리)
   ========================================================================== */
.ad-placement {
  width: 100%;
  max-width: 820px;
  margin: 28px auto;
  padding: 14px 12px;
  box-sizing: border-box;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  clear: both;
}

.ad-placement .ad-caption {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  font-weight: 500;
}

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

/* 로컬 개발 환경(localhost) 또는 애드센스 미송출 시 빈 박스로 깨져 보이지 않도록 시각적 안내 플레이스홀더 제공 */
.ad-placement ins.adsbygoogle:empty,
.ad-unit ins.adsbygoogle:empty {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px;
}

.ad-placement ins.adsbygoogle:empty::after,
.ad-unit ins.adsbygoogle:empty::after {
  content: "📢 Google AdSense 맞춤 광고 영역 (실제 도메인 배포 시 자동 송출됩니다)";
}

/* 레거시 ad-unit 클래스 호환 및 강제 초기화 */
.ad-unit {
  width: 100% !important;
  max-width: 820px !important;
  margin: 24px auto !important;
  padding: 14px 12px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  min-height: auto !important;
  display: block !important;
  clear: both !important;
}

@media (max-width: 768px) {
  .ad-placement,
  .ad-unit {
    margin: 20px auto !important;
    padding: 10px 8px !important;
  }
}

