@charset "UTF-8";

/* ==========================================================================
   상속세 길잡이 (Inheritance Tax Portal) - Master Design System
   규격: 전 기기(PC·모바일) 1컬럼(단일 열) 중앙 정렬 (최대 너비 760~840px)
   작성 기준: SITE_BLUEPRINT_GUIDE.md 표준 완벽 준수
   ========================================================================== */

/* --- 1. CSS Reset & Variables --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

:root {
  --primary: #0f2942;         /* 딥 네이비 (국가·금융 최고 신뢰도) */
  --primary-dark: #0a1b2d;
  --primary-accent: #1d4ed8;   /* 로열 블루 (주요 액션 및 링크) */
  --primary-light: #3b82f6;
  --primary-tint: #eff6ff;    /* 연한 블루 배경 */
  
  --accent-gold: #b45309;     /* 앤틱 골드 */
  --accent-amber: #d97706;    /* 앰버 오렌지 */
  --accent-bg: #fffbeb;
  
  --accent-green: #15803d;    /* 초록 (안전·공제·GEO) */
  --accent-green-bg: #f0fdf4;
  --accent-green-border: #bbf7d0;
  
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  
  --text-main: #0f172a;       /* 짙은 슬레이트 본문 */
  --text-sub: #334155;        /* 부 텍스트 */
  --text-muted: #64748b;      /* 캡션 및 안내 */
  
  --bg-page: #f8fafc;         /* 페이지 전체 배경 */
  --bg-card: #ffffff;         /* 개별 카드 배경 */
  --border: #e2e8f0;          /* 기본 테두리 */
  --border-input: #cbd5e1;    /* 입력창 뚜렷한 2px 테두리 */
  --border-focus: #1d4ed8;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 3px 10px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 10px 25px rgba(15, 23, 42, 0.1);
  --shadow-btn: 0 4px 14px rgba(29, 78, 216, 0.35);
  
  --header-height: 68px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", Pretendard, "Malgun Gothic", "맑은 고딕", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.68;
  letter-spacing: -0.015em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

/* 스킵 네비게이션 */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--primary-accent);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 15px;
}

/* --- 2. 전 기기 1컬럼(단일 열) 중앙 정렬 컨테이너 규격 --- */
.container {
  width: 100%;
  max-width: 800px; /* 760px ~ 840px 표준 규격 */
  margin: 0 auto;
  padding: 0 20px;
}

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

/* --- 3. 헤더 및 상단 네비게이션 (1420px 전용 컨테이너 & 줄바꿈 원천 차단) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.header-inner {
  max-width: 1420px;
  margin: 0 auto;
  height: var(--header-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.site-logo img, .site-logo svg {
  width: 34px;
  height: 34px;
}

.site-logo .logo-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.site-logo .logo-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-gold));
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.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: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-accent);
  background: var(--primary-tint);
  text-decoration: none;
}

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

/* 모바일 햄버거 메뉴 (1060px 이하) */
@media (max-width: 1060px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
  }
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--border);
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 99;
  display: none;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

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

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.mobile-nav-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-page);
  border: 1px solid var(--border);
  text-decoration: none;
}

.mobile-nav-list a:hover {
  background: var(--primary-tint);
  color: var(--primary-accent);
}

/* 빠른 상단 숏컷 바 (모바일 전용) */
.mobile-quick-bar {
  display: none;
  background: var(--primary);
  padding: 8px 16px;
  overflow-x: auto;
  white-space: nowrap;
  gap: 8px;
}
@media (max-width: 768px) {
  .mobile-quick-bar {
    display: flex;
  }
}
.mobile-quick-bar a {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 16px;
  text-decoration: none;
}

/* --- 4. 메인 콘텐츠 영역 및 히어로 타이틀 --- */
#main-content {
  flex: 1;
  padding: 28px 0 48px;
}

.hero-section {
  text-align: center;
  margin-bottom: 28px;
}

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

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

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

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

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

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@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.95rem;
  }
}

/* --- 5. 생성형 AI 최적화 두괄식 요약 박스 (.geo-summary-box) --- */
.geo-summary-box {
  background: var(--accent-green-bg);
  border: 1px solid var(--accent-green-border);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px auto 26px;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

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

.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.6;
  color: #1f2937;
  position: relative;
  padding-left: 16px;
}

.geo-summary-box .summary-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

/* 알림 박스 (Notice Box 시리즈) */
.notice-box {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid;
  border-left-width: 4px;
  margin: 20px 0;
  font-size: 0.93rem;
  line-height: 1.65;
}

.notice-box-info {
  background: var(--primary-tint);
  border-color: #93c5fd;
  border-left-color: var(--primary-accent);
  color: var(--primary-dark);
}

.notice-box-warning {
  background: var(--accent-bg);
  border-color: #fcd34d;
  border-left-color: var(--accent-amber);
  color: #92400e;
}

.notice-box-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  border-left-color: var(--danger);
  color: #991b1b;
}

/* --- 6. 입력 폼 카드 UX 극대화 (Form UX Master) --- */
.calc-form-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-card);
}

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

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
}

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

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

.form-group .label-desc {
  display: block;
  font-size: 0.82rem;
  font-weight: normal;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 뚜렷한 2px 테두리 & 우측 고정 단위 접미사 */
.input-unit-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-unit-wrapper input,
.input-unit-wrapper select {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  background: #ffffff;
  border: 2px solid var(--border-input);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  outline: none;
}

.input-unit-wrapper input:focus,
.input-unit-wrapper select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 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.85rem;
  font-weight: 700;
  color: var(--primary-accent);
  background: var(--primary-tint);
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 6px;
  margin-top: 8px;
  min-height: 26px;
}

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

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

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

.btn-chip.reset-chip {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
}

/* 라디오 / 세그먼트 버튼 컨트롤 */
.segment-control {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.segment-control label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: #ffffff;
  border: 2px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.segment-control input[type="radio"],
.segment-control input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.segment-control label:has(input:checked) {
  border-color: var(--primary-accent);
  background: var(--primary-tint);
  color: var(--primary-accent);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15);
}

/* --- 7. '결과 확인하기' 대형 액션 버튼 (.btn-view-result) --- */
.result-action-box {
  margin: 28px 0 16px;
  text-align: center;
  padding-top: 20px;
  border-top: 2px dashed var(--border);
}

.btn-view-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-accent), #1e3a8a);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-view-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.45);
}

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

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

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

/* --- 8. 실시간 분석 결과 리포트 대시보드 --- */
.result-column-wrapper {
  scroll-margin-top: 85px;
  width: 100%;
}

.mobile-result-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-accent);
}

.result-section-header {
  padding: 16px 22px;
  background: linear-gradient(135deg, #0a1b2d, #0f2942);
  border-left: 5px solid var(--accent-amber);
  border-radius: var(--radius-md);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.result-header-title h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.result-header-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent-amber);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 12px;
}

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

/* 펄스 강조 애니메이션 (1.2초) */
.highlight-pulse {
  animation: pulseGlow 1.2s cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: var(--shadow-card);
    border-color: var(--border);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.25);
    border-color: var(--primary-accent);
  }
}

.result-main-value-box {
  text-align: center;
  padding: 24px 18px;
  background: var(--primary-tint);
  border-radius: var(--radius-md);
  border: 1px solid #bfdbfe;
  margin-bottom: 24px;
}

.result-main-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-sub);
}

.result-value {
  margin: 10px 0;
  font-size: clamp(2.1rem, 6vw, 2.7rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

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

/* 결과 상세 테이블 및 브레이크다운 */
.result-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

.result-breakdown-table th,
.result-breakdown-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.result-breakdown-table th {
  background: #f8fafc;
  color: var(--text-sub);
  font-weight: 700;
  text-align: left;
}

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

.result-breakdown-table tr.total-row {
  background: #eff6ff;
  border-top: 2px solid var(--primary-accent);
}

.result-breakdown-table tr.total-row th,
.result-breakdown-table tr.total-row td {
  color: var(--primary-accent);
  font-size: 1.05rem;
  font-weight: 800;
}

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

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

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

.btn-share-url {
  background: linear-gradient(135deg, var(--accent-amber), #b45309);
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.btn-share-url:hover {
  opacity: 0.9;
}

/* --- 9. 중요 정보 강조 및 카드 구분 디자인 (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, box-shadow 0.2s, border-color 0.2s;
}

.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--amber { --card-color: #b45309; --card-tint: #fffbeb; }

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-tint);
  color: var(--card-color);
  font-size: 1.25rem;
  font-weight: 800;
}

.card-label {
  color: var(--card-color);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-title {
  margin: 6px 0 10px;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
}

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

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

/* 섹션 타이틀 공통 */
.section-heading {
  margin: 36px 0 18px;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-accent);
  background: var(--primary-tint);
  padding: 3px 9px;
  border-radius: 12px;
  margin-bottom: 6px;
}

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

.section-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 로드맵 타임라인 리스트 */
.timeline-list {
  list-style: none;
  position: relative;
  padding-left: 28px;
  margin: 20px 0;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: #cbd5e1;
}

.timeline-item {
  position: relative;
  margin-bottom: 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--primary-accent);
}

.timeline-item strong {
  display: block;
  font-size: 1.02rem;
  color: var(--primary-dark);
}

.timeline-item p {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-top: 2px;
}

/* 가이드 본문 스타일 (정보 페이지 전용) */
.article-content {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 24px 0 10px;
}

.article-content p {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 16px;
}

/* ==========================================================================
   목록 리스트 (ul, ol, li) 가독성 극대화 스타일
   ========================================================================== */

/* 일반 불릿 리스트 (ul) */
.article-content ul {
  list-style: none;
  padding-left: 0;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-content ul > li {
  position: relative;
  padding-left: 22px;
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--text-main);
  margin-bottom: 0;
}

.article-content ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.16);
}

/* 순서형 번호 리스트 (ol) */
.article-content ol {
  list-style: none;
  counter-reset: custom-ol-counter;
  padding-left: 0;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-content ol > li {
  counter-increment: custom-ol-counter;
  position: relative;
  padding-left: 36px;
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--text-main);
  margin-bottom: 0;
}

.article-content ol > li::before {
  content: counter(custom-ol-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background: var(--primary-tint);
  color: var(--primary-accent);
  border: 1.5px solid #bfdbfe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.article-content li strong {
  color: var(--primary-dark);
  font-weight: 800;
}

/* 하위 중첩 리스트 */
.article-content li > ul,
.article-content li > ol {
  margin: 8px 0 4px 6px;
  gap: 8px;
}

.article-content li > ul > li {
  font-size: 0.92rem;
  color: var(--text-sub);
}

.article-content li > ul > li::before {
  background: var(--text-muted);
  box-shadow: none;
  width: 5px;
  height: 5px;
}

/* ==========================================================================
   실전 시뮬레이션 및 간편 계산 박스 (.calc-guide-box)
   ========================================================================== */
.calc-guide-box {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-left: 5px solid var(--primary-accent);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 22px 0 28px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.calc-guide-box p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 9px;
}

.calc-guide-box p:last-child {
  margin-bottom: 0;
}

.calc-guide-box p:first-child strong {
  display: inline-block;
  font-size: 1.04rem;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 2px solid #bfdbfe;
}

.calc-guide-box p strong {
  color: var(--primary-dark);
  font-weight: 800;
}

/* ==========================================================================
   테이블 (Table & .table-wrap) 가독성 극대화 스타일
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0 28px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

/* 스크롤바 미세 커스텀 (모바일 및 PC) */
.table-wrap::-webkit-scrollbar {
  height: 6px;
}
.table-wrap::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.table-wrap::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

/* 아티클 테이블 기본 규격 */
.table-wrap table,
.article-content table,
.info-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: left;
  font-size: 0.93rem;
  line-height: 1.6;
  background: #ffffff;
}

/* 테이블 헤더 */
.table-wrap th,
.article-content table th,
.info-table th {
  background: #f1f5f9;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.91rem;
  padding: 13px 16px;
  border-bottom: 2px solid #cbd5e1;
  border-right: 1px solid #e2e8f0;
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-align: center;
}

.table-wrap th:last-child,
.article-content table th:last-child,
.info-table th:last-child {
  border-right: none;
}

/* 테이블 셀 */
.table-wrap td,
.article-content table td,
.info-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  color: var(--text-main);
  font-size: 0.92rem;
  vertical-align: middle;
  text-align: center;
}

/* 설명 및 비고 컬럼 (마지막 열) 좌측 정렬 */
.table-wrap td:last-child,
.article-content table td:last-child,
.info-table td:last-child {
  border-right: none;
  text-align: left;
}

/* 첫 번째 열(항목명/구간명) 굵은 글씨 강조 */
.table-wrap tbody td:first-child,
.article-content table tbody td:first-child,
.info-table tbody td:first-child {
  font-weight: 700;
  color: var(--primary-dark);
}

/* 짝수 행 얼룩무늬(Zebra striping) 및 호버 하이라이트 */
.table-wrap tbody tr:nth-child(even),
.article-content table tbody tr:nth-child(even),
.info-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.table-wrap tbody tr:hover,
.article-content table tbody tr:hover,
.info-table tbody tr:hover {
  background: #eff6ff;
  transition: background-color 0.15s ease;
}

/* 마지막 행 하단 테두리 제거 (컨테이너 라운드와 조화) */
.table-wrap tbody tr:last-child td,
.article-content table tbody tr:last-child td,
.info-table tbody tr:last-child td {
  border-bottom: none;
}

/* 테이블 내부 강조 태그 */
.table-wrap td strong,
.article-content table td strong,
.info-table td strong {
  color: var(--primary-accent);
  font-weight: 800;
}

/* FAQ 아코디언 */
details.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

details.faq-item[open] {
  border-color: var(--primary-accent);
}

details.faq-item summary {
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

details.faq-item[open] summary::after {
  content: "−";
  color: var(--primary-accent);
}

details.faq-item p {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-sub);
}

/* --- 10. 반응형 애드센스 단위 규격 (.ad-placement - Section 10.4) --- */
.ad-placement {
  width: 100%;
  max-width: 820px;
  margin: 24px auto;
  padding: 12px 10px;
  box-sizing: border-box;
  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: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* --- 11. 연관 내부 링크 넥서스 컴포넌트 (.related-nexus-section - Section 14) --- */
.related-nexus-section {
  margin: 40px 0 24px;
  padding: 28px 22px;
  background: #f8fafc;
  border: 1px solid var(--border);
  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: var(--primary-accent);
  background: var(--primary-tint);
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

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

.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 var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.nexus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  border-color: var(--primary-accent);
  text-decoration: none;
}

.nexus-card-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-accent);
  background: var(--primary-tint);
  padding: 2px 7px;
  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: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

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

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

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

/* --- 12. 체크리스트 및 스티키 진행률 바 (Section 4.3) --- */
.sticky-progress-card {
  position: -webkit-sticky;
  position: sticky;
  top: 76px;
  z-index: 85;
  background: linear-gradient(135deg, var(--primary), var(--primary-accent));
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(15, 41, 66, 0.25);
  backdrop-filter: blur(10px);
}

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

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

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

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

.checklist-group-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

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

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.checklist-text small {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- 13. 풋터 및 운영자 정보 (Section 8) --- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 36px 0 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin: 16px 0;
}

.footer-links a {
  color: var(--text-sub);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}

.footer-admin-bar {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 18px;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.65;
}

.footer-admin-bar strong {
  color: var(--text-main);
}

/* 토스트 알림 */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
  pointer-events: none;
}

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

/* 모바일 콤팩트 패딩 조정 */
@media (max-width: 768px) {
  .calc-form-card, .result-card, .article-content {
    padding: 20px 18px;
  }

  .table-wrap {
    margin: 18px 0 22px;
    border-radius: var(--radius-sm);
  }

  .table-wrap th,
  .article-content table th,
  .info-table th {
    padding: 11px 12px;
    font-size: 0.85rem;
  }

  .table-wrap td,
  .article-content table td,
  .info-table td {
    padding: 11px 12px;
    font-size: 0.86rem;
  }

  .calc-guide-box {
    padding: 18px 18px;
    margin: 18px 0 22px;
  }

  .calc-guide-box p {
    font-size: 0.91rem;
    line-height: 1.68;
  }

  .article-content ul > li {
    font-size: 0.92rem;
    padding-left: 20px;
  }

  .article-content ol > li {
    font-size: 0.92rem;
    padding-left: 32px;
  }

  .article-content ol > li::before {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }
}
