/* ==========================================================================
   중장년·시니어 일자리 정보센터 (시니어 워크잡) 모던 디자인 시스템
   표준 가이드라인: 1컬럼 중앙 정렬 (max-width: 800px), 고대비 시인성, 모바일 최적화
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;600;700;800;900&display=swap');

:root {
  /* 브랜드 컬러 팔레트 (신뢰의 딥 네이비 + 활력의 에메랄드/스카이블루 + 주목의 앰버 골드) */
  --primary: #1e3a8a;
  --primary-light: #2563eb;
  --primary-dark: #0f172a;
  --primary-bg: #eff6ff;
  
  --secondary: #0d9488;
  --secondary-light: #14b8a6;
  --secondary-bg: #f0fdfa;
  
  --accent: #b45309;
  --accent-light: #f59e0b;
  --accent-bg: #fffbeb;
  
  --danger: #b91c1c;
  --danger-light: #ef4444;
  --danger-bg: #fef2f2;
  
  --success: #15803d;
  --success-light: #22c55e;
  --success-bg: #f0fdf4;
  
  /* 텍스트 색상 (시니어 가독성을 위한 고명도 대비) */
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* 배경 & 테두리 */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #cbd5e1;
  --border-light: #e2e8f0;
  
  /* 반경 및 그림자 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 2px 6px rgba(15, 23, 42, 0.06);
}

/* --- 전역 리셋 & 모바일 단어 줄바꿈 규칙 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-break: keep-all;       /* 한국어 단어 단위로만 줄바꿈 (필수) */
  overflow-wrap: break-word;   /* 긴 영문 URL 등 예외 처리 */
}

html {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* ==========================================================================
   헤더 & 상단 메뉴 (PC 줄바꿈 원천 방지 & 1060px 햄버거 전환)
   ========================================================================== */
.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-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

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

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

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

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

.logo-title span {
  color: var(--secondary);
}

.logo-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* 메인 네비게이션 (PC) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

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

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

.nav-link.active {
  background-color: var(--primary);
  color: #ffffff;
}

.nav-link.highlight {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
}
.nav-link.highlight:hover {
  opacity: 0.95;
}

/* 모바일 햄버거 버튼 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--primary-dark);
  font-size: 1.5rem;
  border-radius: 8px;
}

/* 모바일 드로어 메뉴 */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  z-index: 1000;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

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

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

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

.drawer-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-nav a {
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 999;
}
.drawer-overlay.open {
  display: block;
}

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

/* ==========================================================================
   레이아웃 원칙: 1컬럼 중앙 정렬 (max-width: 800px)
   ========================================================================== */
.main-wrapper {
  flex-grow: 1;
  width: 100%;
  padding-bottom: 48px;
}

.calc-single-column-container,
.calc-responsive-grid,
.content-container {
  max-width: 800px;          /* 760px ~ 840px 범위 권장 (중앙 정렬) */
  margin: 0 auto;            /* 화면 좌우 중앙 정렬 */
  width: 100%;
  padding: 0 16px;
  display: flex;
  flex-direction: column;    /* PC, 모바일 모두 수직 1열 배치 */
  gap: 24px;
}

/* ==========================================================================
   히어로 섹션 (Hero Section) & 타이틀 2줄 분리
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 36px 0 20px 0;
}

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

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
}

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

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

.hero-title .accent-text {
  color: var(--primary-light);
  position: relative;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.6;
  max-width: 680px;
  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-description {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   생성형 AI (GEO/AEO) 30초 핵심 요약 박스 (.geo-summary-box)
   ========================================================================== */
.geo-summary-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 5px solid #16a34a;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.geo-summary-box .summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  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: #16a34a;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* ==========================================================================
   카드 디자인 시스템 (3.3절 표준)
   ========================================================================== */
.calc-form-card,
.calc-result-card,
.info-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .calc-form-card,
  .calc-result-card,
  .info-card {
    padding: 20px 18px;
  }
}

/* 기능별 역할 카드 */
.feature-card {
  --card-color: #1e40af;
  --card-tint: #eff6ff;
  display: block;
  padding: 24px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--card-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.card--check { --card-color: #1e40af; --card-tint: #eff6ff; }
.card--calc  { --card-color: #0d9488; --card-tint: #f0fdfa; }
.card--docs  { --card-color: #b45309; --card-tint: #fffbeb; }
.card--warn  { --card-color: #b91c1c; --card-tint: #fef2f2; }

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

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

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

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

.card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--card-color);
  font-weight: 700;
  font-size: 0.92rem;
}

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

/* 카드 스택 */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* ==========================================================================
   폼 요소 & 직관적 입력 UX (15.0절 표준)
   ========================================================================== */
.form-group {
  margin-bottom: 22px;
}

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

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

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

/* 2px 테두리 & 시인성 높은 인풋 */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

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

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

.input-has-unit .form-input {
  padding-right: 50px;
}

.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;
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  min-height: 28px;
}

/* 빠른 조정 칩 버튼 */
.quick-adjust-chips {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

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

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

/* 라디오 / 체크박스 카드형 옵션 */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.option-card input {
  position: absolute;
  opacity: 0;
}

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

.option-card .option-content {
  display: flex;
  flex-direction: column;
}

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

.option-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   대형 액션 버튼 & 결과 영역 분리 (3.2절 표준)
   ========================================================================== */
.result-action-box {
  margin: 28px 0 12px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 2px dashed var(--border-light);
  padding-top: 24px;
}

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

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

.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 {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 결과 영역 래퍼 & 헤더 배너 */
.result-column-wrapper {
  scroll-margin-top: 85px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

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

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

.result-header-badge {
  background: rgba(245, 158, 11, 0.25);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* 결과 카드 강조 펄스 */
.highlight-pulse {
  animation: resultPulse 1.2s ease-out;
}

@keyframes resultPulse {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  50% { transform: scale(1.01); box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
  100% { transform: scale(1); box-shadow: var(--shadow-card); }
}

/* 결과 값 대형 표시 */
.result-stat-box {
  background: var(--primary-bg);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  margin: 16px 0;
}

.result-stat-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.result-stat-value {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.2;
}

.result-stat-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ==========================================================================
   URL 결과 공유 배너 (7.0절 표준)
   ========================================================================== */
.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: 16px 0;
}

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

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

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

.btn-share-url:hover {
  background: #92400e;
  transform: translateY(-1px);
}

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

/* ==========================================================================
   주의 및 알림 박스 (Notice Boxes)
   ========================================================================== */
.notice-box {
  padding: 18px 20px;
  border: 1px solid;
  border-left-width: 5px;
  border-radius: var(--radius-md);
  margin: 16px 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-box h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.notice-box p, .notice-box ul {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   구글 애드센스 전용 래퍼 (10.0절 표준)
   ========================================================================== */
.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: var(--radius-md);
}

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

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

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

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

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

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

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

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

.nexus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--primary-light);
}

.nexus-card-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary-light);
  background: var(--primary-bg);
  padding: 3px 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: var(--primary-dark);
  margin-bottom: 6px;
}

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

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

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

/* ==========================================================================
   본문 콘텐츠 & 가이드 스타일 (1,500자 이상 심층 콘텐츠 가독성)
   ========================================================================== */
.article-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
}

.article-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 36px 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-bg);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 24px 0 12px 0;
}

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

.article-content ul, .article-content ol {
  margin: 0 0 20px 20px;
  color: var(--text-sub);
  line-height: 1.7;
}

.article-content li {
  margin-bottom: 6px;
}

/* 데이터 테이블 */
.content-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

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

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

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

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

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

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

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

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

.faq-question:hover {
  background: #f8fafc;
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--primary-light);
  transition: transform 0.2s;
}

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

.faq-answer {
  display: none;
  padding: 16px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   토스트 알림 (Toast)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastFadeIn 0.3s ease-out;
  pointer-events: auto;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   풋터 운영자 정보 (8.0절 표준)
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 40px 20px 30px;
  margin-top: auto;
  font-size: 0.88rem;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

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

.footer-nav a {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.88rem;
  transition: color 0.15s;
}

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

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

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

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

.footer-copyright {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #64748b;
}
