/* ==========================================================================
   기초생활수급자·차상위 지원센터 모던 디자인 시스템 (Vanilla CSS)
   표준 지침서 (SITE_BLUEPRINT_GUIDE.md) 준수 규격
   ========================================================================== */

:root {
  /* 테마 컬러 팔레트 */
  --primary: #1e3a8a;          /* 신뢰의 딥 네이비 */
  --primary-light: #2563eb;    /* 산뜻한 블루 */
  --primary-dark: #0f172a;     /* 슬레이트 900 */
  --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: #cbd5e1;     /* 시인성 높은 외곽선 */
  --border-light: #e2e8f0;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 12px 24px -4px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  
  --header-height: 68px;
  --container-max: 820px;      /* 1컬럼 최적 너비 (760~840px 표준) */
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

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

/* ==========================================================================
   헤더 및 상단 네비게이션 (5절 PC 줄바꿈 방지 & 1060px 반응형)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

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

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

.site-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
}

.site-logo-text {
  letter-spacing: -0.02em;
}

.site-logo-text span {
  color: var(--primary-light);
}

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

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

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

.nav-link.active {
  color: var(--primary);
  background: var(--primary-bg);
  font-weight: 800;
}

.nav-cta-btn {
  background: var(--primary);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 6px;
  transition: all 0.2s;
}

.nav-cta-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* 모바일 햄버거 토글 버튼 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* 모바일 전용 오프캔버스 드로어 */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 150;
}

.mobile-drawer-overlay.active {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #ffffff;
  z-index: 160;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

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

.mobile-nav-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-sub);
}

.mobile-nav-list a:hover,
.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절 1컬럼 중앙 정렬 표준)
   ========================================================================== */

main#main-content {
  flex: 1;
  width: 100%;
  padding-bottom: 60px;
}

.container-single {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 28px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   히어로 섹션 & 모바일 타이틀 2줄 분리 (4.2절)
   ========================================================================== */

.hero-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-box::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f1f5f9;
}

.hero-badge.gold {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fef08a;
}

.hero-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 14px;
}

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

.accent-gold {
  color: #fbbf24;
}

.accent-blue {
  color: #38bdf8;
}

.hero-desc {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 680px;
}

@media (max-width: 600px) {
  .hero-box {
    padding: 26px 20px;
  }
  .hero-title {
    font-size: 1.55rem;
  }
  .hero-title-line {
    display: block !important;
    white-space: nowrap !important;
  }
  .hero-desc {
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   AI 요약 박스 (12.1절 GEO · AEO 요약 박스)
   ========================================================================== */

.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;
  gap: 8px;
  font-size: 0.96rem;
  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.88rem;
  line-height: 1.6;
  color: #1f2937;
  position: relative;
  padding-left: 16px;
}

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

/* ==========================================================================
   카드 시스템 (3.3절 시각적 위계 및 역할 구분 디자인 표준)
   ========================================================================== */

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.calc-card,
.feature-card,
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}

/* 역할별 좌측 강조선 */
.card--check {
  border-left: 6px solid #1e40af;
}
.card--calc {
  border-left: 6px solid #6d28d9;
}
.card--car {
  border-left: 6px solid #0284c7;
}
.card--prop {
  border-left: 6px solid #0d9488;
}
.card--benefit {
  border-left: 6px solid #b45309;
}
.card--docs {
  border-left: 6px solid #475569;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.card--check .card-icon { background: #eff6ff; color: #1e40af; }
.card--calc .card-icon { background: #f5f3ff; color: #6d28d9; }
.card--car .card-icon { background: #f0f9ff; color: #0284c7; }
.card--prop .card-icon { background: #f0fdfa; color: #0d9488; }
.card--benefit .card-icon { background: #fffbeb; color: #b45309; }
.card--docs .card-icon { background: #f8fafc; color: #475569; }

.card-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: inline-block;
}

.card--check .card-label { color: #1e40af; }
.card--calc .card-label { color: #6d28d9; }
.card--car .card-label { color: #0284c7; }
.card--prop .card-label { color: #0d9488; }
.card--benefit .card-label { color: #b45309; }
.card--docs .card-label { color: #475569; }

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

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-light);
  transition: gap 0.2s ease;
}

a.feature-card {
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

a.feature-card:hover .card-link {
  gap: 10px;
}

@media (max-width: 600px) {
  .calc-card,
  .feature-card,
  .content-card {
    padding: 20px 18px;
  }
}

/* ==========================================================================
   입력 폼 UX 극대화 시스템 (15절 뚜렷한 2px 테두리, 단위, 한글 변환, 칩)
   ========================================================================== */

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

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

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

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

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

.form-control {
  width: 100%;
  height: 52px;
  padding: 10px 48px 10px 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  background: #ffffff;
  border: 2px solid var(--border-color); /* 15.1절 뚜렷한 2px 테두리 */
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-glow);
}

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

/* 셀렉트 드롭다운 스타일 */
select.form-control {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}

/* 15.3절 실시간 한글 금액 변환 뱃지 */
.korean-currency-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 28px;
}

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

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

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

.chip-btn.reset {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

/* 세그먼트 / 라디오 카드 옵션 */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.option-card {
  position: relative;
}

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

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

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

/* ==========================================================================
   결과 확인 대형 액션 버튼 & 스크롤 이동 (3.2절)
   ========================================================================== */

.result-action-box {
  margin: 28px 0 16px;
  text-align: center;
}

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

.btn-view-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(30, 58, 138, 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: 8px;
}

/* 펄스 애니메이션 (결과 확인 시 1.2초간 반짝임) */
.highlight-pulse {
  animation: pulseGlow 1.2s ease;
}

@keyframes pulseGlow {
  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); }
}

/* ==========================================================================
   실시간 분석 결과 대시보드 (3.2절 헤더 배너 및 모바일 구분자)
   ========================================================================== */

.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(--primary);
  font-size: 0.95rem;
  font-weight: 800;
  margin: 10px 0;
}

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

.mobile-result-divider span {
  padding: 0 12px;
}

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

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

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

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

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

/* 핵심 결과 수치 (3.3절 32~40px) */
.result-status-banner {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.result-status-banner.pass {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.result-status-banner.warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.result-status-banner.fail {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.status-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.status-text h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.status-text p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.result-highlight-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.result-highlight-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
}

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

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

/* 상세 내역 테이블 */
.result-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

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

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

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

.result-breakdown-table td.text-left {
  text-align: left;
}

.result-breakdown-table tr.total-row {
  background: #eff6ff;
  font-weight: 800;
}

.result-breakdown-table tr.total-row td {
  color: var(--primary);
  font-size: 1rem;
}

/* ==========================================================================
   알림 박스 (3.3절 상태별 색상 안내)
   ========================================================================== */

.notice-box {
  padding: 18px 20px;
  border: 1px solid;
  border-left-width: 5px;
  border-radius: var(--radius-md);
  margin: 18px 0;
}

.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-title {
  font-weight: 800;
  font-size: 0.96rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-desc {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==========================================================================
   공유 배너 시스템 (7절 URL 바이럴 공유)
   ========================================================================== */

.share-banner-box {
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.share-banner-content p {
  font-size: 0.84rem;
  color: #78350f;
  margin: 0;
}

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

.btn-share-url:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(180, 83, 9, 0.35);
}

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

/* ==========================================================================
   연관 내부 링크 넥서스 컴포넌트 (14절 .related-nexus-section)
   ========================================================================== */

.related-nexus-section {
  margin: 40px 0 20px;
  padding: 32px 24px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

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

.nexus-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #2563eb;
  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: #0f172a;
  margin-bottom: 6px;
}

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

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

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

.nexus-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #3b82f6;
  background: #ffffff;
}

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

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

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

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

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

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

/* ==========================================================================
   구글 애드센스 고수익 래퍼 (10.4절 높이 제한 없는 auto 반응형 표준)
   ========================================================================== */

.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 var(--border-light);
  border-radius: var(--radius-md);
  /* height / max-height / overflow clipping을 강제하지 않음 */
}

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

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

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

/* ==========================================================================
   콘텐츠 본문 서식 (글 읽기 최적화 가이드 스타일)
   ========================================================================== */

.content-section {
  margin: 24px 0;
}

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

.content-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 20px 0 10px;
}

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

.content-section ul,
.content-section ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.content-section li {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 540px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.data-table th {
  background: #f1f5f9;
  color: var(--primary-dark);
  font-weight: 700;
}

.data-table td.highlight {
  font-weight: 800;
  color: var(--primary);
  background: #f8fafc;
}

/* 탭 필터 컴포넌트 */
.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* 검색 필터 바 */
.search-filter-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  height: 48px;
  padding: 10px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-light);
}

/* ==========================================================================
   토스트 알림 컴포넌트
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  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.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   풋터 및 법적 운영자 정보 (8절 신뢰도 및 광고 승인 규격)
   ========================================================================== */

.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 20px 32px;
  border-top: 1px solid #1e293b;
  margin-top: auto;
  font-size: 0.86rem;
  line-height: 1.65;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.84rem;
  max-width: 480px;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #38bdf8;
}

.footer-admin-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: #1e293b;
  border-radius: var(--radius-md);
  color: #cbd5e1;
  font-size: 0.82rem;
}

.footer-admin-bar a {
  color: #38bdf8;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  color: #64748b;
  font-size: 0.78rem;
  padding-top: 10px;
}
