/* ===========================================
   sohotip.css — 소호팁 공통 스타일
   2026-06-20 전면 개편
   · 진행바
   · 상단 이동 버튼
   · 검색 UI (PC + 모바일)
   · 하단 고정 CTA
   · Breadcrumb
   · 관련글 동적
   · 계산기 공통 모바일 최적화
   · Core Web Vitals 최적화
=========================================== */

/* ── 공통 기반 ─────────────────────────── */
/* 한국어 텍스트 줄바꿈 기본 설정 */
*, *::before, *::after {
  word-break: keep-all;
  overflow-wrap: break-word;
}
:root {
  /* 딥 인디고 리디자인 토큰 (oklch, 2026) */
  --primary: oklch(0.48 0.26 264);
  --primary-light: oklch(0.95 0.03 264);
  --primary-mid: oklch(0.42 0.25 264);
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --sans: 'Noto Sans KR', sans-serif;
  --serif: 'Noto Serif KR', serif;
}

/* ── 스크롤 진행바 ─────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--primary);
  z-index: 9999;
  transition: width 0.1s linear;
  will-change: width;
}

/* ── 상단 이동 버튼 ─────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 80px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(61, 90, 254, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 500;
  will-change: opacity;
}
#back-to-top:hover {
  transform: scale(1.1);
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── PC 네비 검색창 ─────────────────────── */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search-input {
  width: 180px;
  padding: 7px 14px 7px 34px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  font-size: 16px; /* iOS 자동 확대 방지(≥16px) */
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, width 0.3s;
  font-family: var(--sans);
  -webkit-appearance: none;
}
.nav-search-input:focus {
  border-color: var(--primary);
  width: 240px;
}
.nav-search-input::placeholder {
  color: var(--text-light);
}
.nav-search-icon {
  position: absolute;
  left: 10px;
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
  line-height: 1;
}

/* ── 검색 드롭다운 ───────────────────────── */
#search-dropdown,
#search-dropdown-mobile {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#search-dropdown.active,
#search-dropdown-mobile.active {
  display: block;
}

/* 검색 섹션 헤더 */
.search-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px 4px;
}

/* 검색 결과 아이템 */
.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
  cursor: pointer;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover,
.search-result-item.focused {
  background: var(--primary-light);
}
.search-result-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}
.search-result-body {
  flex: 1;
  min-width: 0;
}
.search-result-cat {
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.search-result-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-title mark {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 2px;
  font-style: normal;
}
.search-result-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-no-result {
  padding: 24px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.search-footer-link {
  display: block;
  padding: 10px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  border-top: 1px solid var(--border-light);
  font-weight: 600;
}
.search-footer-link:hover {
  background: var(--primary-light);
}

/* 최근 검색어 */
.recent-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.recent-search-item:hover {
  background: var(--primary-light);
}
.recent-search-text {
  font-size: 13px;
  color: var(--text);
  flex: 1;
}
.recent-search-del {
  font-size: 14px;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  border-radius: 4px;
}
.recent-search-del:hover {
  color: var(--text-muted);
}

/* ── 검색 칩 (추천 검색어 · 카테고리 추천) ── */
.search-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 14px 12px;
}
.search-chip,
.search-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.search-chip:hover,
.search-cat-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.search-cat-emoji {
  font-size: 13px;
  line-height: 1;
}

/* ── AI 핵심 요약 박스 (게시글 제목 아래) ── */
.ai-summary {
  margin: 20px 0 30px;
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, #F4F7FF, #FFFFFF);
  border: 1px solid #E1E8FF;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(61, 90, 254, 0.06);
}
.ai-summary .ais-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #3D5AFE;
  background: #E8ECFF;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.ai-summary p {
  font-size: 15px;
  line-height: 1.78;
  color: #2B3038;
  font-weight: 500;
  margin: 0 0 12px;
}
.ai-summary p:last-of-type {
  margin-bottom: 0;
}
.ai-summary .ais-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.ai-summary .ais-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 11px;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.ai-summary .ais-btn.primary {
  background: #3D5AFE;
  color: #fff;
  box-shadow: 0 4px 12px rgba(61, 90, 254, 0.25);
}
.ai-summary .ais-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(61, 90, 254, 0.32);
}
.ai-summary .ais-btn.ghost {
  background: #fff;
  color: #3D5AFE;
  border: 1px solid #C9D4FF;
}
.ai-summary .ais-btn.ghost:hover {
  background: #F4F7FF;
}
.ai-summary .ais-links {
  margin-top: 14px;
  font-size: 13px;
  color: #6B7280;
  line-height: 1.6;
}
.ai-summary .ais-links a {
  color: #3D5AFE;
  text-decoration: none;
  font-weight: 600;
}
.ai-summary .ais-links a:hover {
  text-decoration: underline;
}

/* ── 모바일 검색바 (nav 아래 별도 줄) ──── */
.mobile-search-bar {
  display: none;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 1rem;
  /* sticky 제거: 스크롤 시 인기글 등 본문 위에 떠서 겹쳐 보이던 문제 수정.
     relative 로 흐름에 두되, 아래 검색 드롭다운(absolute)의 기준점은 유지. */
  position: relative;
}
.mobile-search-bar .nav-search {
  width: 100%;
}
.mobile-search-bar .nav-search-input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border-radius: 10px;
  -webkit-appearance: none;
  font-size: 16px; /* iOS 자동 확대 방지(≥16px) */
}
.mobile-search-bar .nav-search-input:focus {
  width: 100%;
}
.mobile-search-bar #search-dropdown-mobile {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  width: 100%;
}

/* ── TOC 활성 링크 ──────────────────────── */
.toc-list a.toc-active {
  color: var(--primary) !important;
  font-weight: 700;
}

/* ── Breadcrumb ─────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 14px 2rem;
  max-width: 960px;
  margin: 0 auto;
  line-height: 1.5;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span {
  color: var(--text-light);
  font-size: 11px;
}
.breadcrumb .bc-current {
  color: var(--text);
  font-weight: 500;
}

/* ── 하단 고정 CTA ──────────────────────── */
#sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: #fff;
  padding: 12px 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 800;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}
#sticky-cta.visible {
  transform: translateY(0);
}
#sticky-cta p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  white-space: nowrap;
}
#sticky-cta a {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}
#sticky-cta a:hover {
  background: var(--primary-mid);
}
#sticky-cta-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
#sticky-cta-close:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ── 관련글 동적 렌더링 ──────────────────── */
#related-dynamic {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.related-card:hover {
  border-color: var(--primary);
  transform: translateX(3px);
}
.related-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}
.related-card-tag {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 3px;
}
.related-arrow {
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

/* ── 카테고리 검색 결과 섹션 ─────────────── */
#search-results-section {
  display: none;
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 1.5rem;
}
#search-query-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: block;
}
.search-result-full-item {
  display: block;
  padding: 16px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}
.search-result-full-item:hover {
  border-color: var(--primary);
}
.search-result-full-item .sr-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.search-result-full-item .sr-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.search-result-full-item .sr-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
}

/* ── 계산기 공통 모바일 최적화 ──────────── */
.page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 1.5rem 100px;
}
.calc-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}
.card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.field-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}
.field input,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 16px; /* iOS 자동확대 방지 */
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.1);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.toggle-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.toggle-btn {
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-muted);
  font-family: var(--sans);
  min-height: 44px;
  display: flex;
  align-items: center;
  line-height: 1.3;
}
.toggle-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}
.btn-calc {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.2s;
  margin-top: 8px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-calc:hover {
  background: var(--primary-mid);
}
.btn-calc:active {
  transform: scale(0.98);
}

/* 결과 카드 */
.result-card {
  background: var(--primary);
  border-radius: 16px;
  padding: 28px;
  color: #fff;
  margin-bottom: 20px;
}
.result-label {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 6px;
}
.result-total {
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}
.result-sub {
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.5;
}

/* 내역 테이블 */
.breakdown {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.br-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  gap: 12px;
}
.br-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 15px;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1.5px solid var(--border);
}
.br-label {
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}
.br-val {
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.br-val.highlight {
  color: var(--primary);
}
.br-val.minus {
  color: #EF4444;
}

/* 안내 박스 */
.notice-box {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 12px;
  color: #92400E;
  line-height: 1.7;
  margin-top: 16px;
}
.notice-box strong {
  color: var(--primary);
}

/* ── 계산기 페이지 하단 구조 ─────────────── */
/* 계산 방법 설명 */
.calc-guide {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.calc-guide h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.4;
}
.calc-guide h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 8px;
}
.calc-guide p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.calc-guide ul,
.calc-guide ol {
  padding-left: 18px;
  margin-bottom: 10px;
}
.calc-guide li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 4px;
}

/* 계산기 내 표 */
.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0;
  overflow-x: auto;
  display: block;
}
.calc-table th {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid rgba(61,90,254,0.2);
  white-space: nowrap;
}
.calc-table td {
  padding: 9px 12px;
  border: 1px solid var(--border-light);
  color: var(--text);
  line-height: 1.5;
}
.calc-table tr:nth-child(even) td {
  background: var(--border-light);
}

/* FAQ */
.faq-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.faq-section h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.faq-q {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
  display: flex;
  gap: 8px;
}
.faq-q::before {
  content: 'Q.';
  color: var(--primary);
  flex-shrink: 0;
  font-weight: 900;
}
.faq-a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 24px;
}

/* 관련 계산기 추천 */
.related-calcs {
  margin-bottom: 20px;
}
.related-calcs h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.related-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.related-calc-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.related-calc-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.rcc-icon { font-size: 22px; flex-shrink: 0; }
.rcc-title { font-size: 12px; font-weight: 700; line-height: 1.3; }
.rcc-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* 관련 마케팅 글 */
.related-articles {
  margin-bottom: 20px;
}
.related-articles h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.related-article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.related-article-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}
.related-article-item:last-child {
  border-bottom: none;
}
.related-article-item:hover .rai-title {
  color: var(--primary);
}
.rai-icon { font-size: 20px; flex-shrink: 0; }
.rai-body { flex: 1; min-width: 0; }
.rai-cat { font-size: 10px; color: var(--primary); font-weight: 700; margin-bottom: 2px; }
.rai-title { font-size: 13px; font-weight: 600; line-height: 1.4; }
.rai-meta { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.rai-arrow { color: var(--primary); font-size: 14px; flex-shrink: 0; }

/* 이전/다음 글 네비게이션 */
.prev-next-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.pn-card {
  display: block;
  padding: 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.pn-card:hover { border-color: var(--primary); }
.pn-dir {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pn-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* ── article.html 공통 ──────────────────── */
.article-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 14px;
  line-height: 1.4;
  scroll-margin-top: 80px;
}
.article-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
  line-height: 1.4;
  scroll-margin-top: 80px;
}
.article-content p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 16px;
}
.article-content strong { font-weight: 700; color: var(--primary); }
.article-content ul,
.article-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.article-content li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 6px;
  color: var(--text);
}
.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover { opacity: 0.8; }

/* ── 글 본문 모바일 가로 넘침 방지 ─────────────────
   .article-wrap(grid)의 아이템 .article-main 은 인라인 CSS에서 비어 있어
   min-width:auto 기본값을 가진다. 그러면 넓은 표·긴 텍스트의 min-content
   만큼 트랙이 벌어져 모바일에서 화면 밖으로 넘친다(제목·본문 잘림).
   min-width:0 으로 트랙 폭에 맞춰 줄어들게 하고, 넓은 표는 가로 스크롤 처리.
   (이 파일은 각 글의 인라인 <style> 보다 뒤에 로드되어 동일 specificity로 우선함) */
.article-wrap > .article-main { min-width: 0; }
.article-main .article-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 팁 박스 */
.tip-inline {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

/* 경고 박스 */
.warn-box {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
  color: #92400E;
  line-height: 1.7;
}

/* 스텝 박스 */
.step-box {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.step-num-badge {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.step-box-body { flex: 1; min-width: 0; }
.step-box-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.step-box-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 글 내 표 */
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-table th {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid rgba(61,90,254,0.2);
  white-space: nowrap;
}
.article-table td {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  color: var(--text);
  line-height: 1.5;
}
.article-table tr:nth-child(even) td {
  background: var(--border-light);
}

/* ── 글에서 사용하는 계산기 추천 섹션 ────── */
.calc-recommend-section {
  background: var(--primary-light);
  border: 1.5px solid rgba(61,90,254,0.25);
  border-radius: 14px;
  padding: 24px;
  margin: 32px 0;
}
.calc-recommend-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.calc-recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.calc-recommend-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(61,90,254,0.15);
  transition: all 0.2s;
}
.calc-recommend-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.crc-icon { font-size: 20px; flex-shrink: 0; }
.crc-text {}
.crc-title { font-size: 12px; font-weight: 700; line-height: 1.3; }
.crc-badge {
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

/* ── 모바일 반응형 ────────────────────────── */
@media (max-width: 768px) {
  /* nav 검색창 숨기기 */
  nav .nav-search { display: none; }
  /* 모바일 검색바 표시 */
  .mobile-search-bar { display: block; }
  /* 하단 CTA */
  #sticky-cta {
    flex-wrap: wrap;
    padding: 10px 1rem;
    gap: 8px;
  }
  #sticky-cta p { font-size: 12px; width: 100%; text-align: center; }
  #sticky-cta a { font-size: 13px; text-align: center; flex: 1; justify-content: center; }
  /* 상단 이동 버튼 */
  #back-to-top { bottom: 72px; right: 12px; width: 40px; height: 40px; font-size: 18px; }
  /* breadcrumb */
  .breadcrumb { padding: 10px 1rem; }
  /* 계산기 내역 */
  .br-row { font-size: 12px; }
  .br-row:last-child { font-size: 14px; }
  /* 검색 드롭다운 */
  .mobile-search-bar #search-dropdown-mobile {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  }
}

@media (max-width: 640px) {
  /* 계산기 페이지 */
  .page-wrap { padding: 20px 1rem 100px; }
  .calc-card { padding: 18px 14px; border-radius: 12px; }
  .card-title { font-size: 10px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .btn-calc { font-size: 15px; padding: 14px; }
  .result-card { padding: 20px 16px; border-radius: 12px; }
  .breakdown { padding: 14px; }
  .toggle-group { flex-direction: column; gap: 6px; }
  .toggle-btn { border-radius: 10px; justify-content: center; }
  /* 그리드 조정 */
  .related-calc-grid { grid-template-columns: 1fr 1fr; }
  .calc-recommend-grid { grid-template-columns: 1fr 1fr; }
  .prev-next-nav { grid-template-columns: 1fr; }
  /* 글 본문 */
  .article-content p { font-size: 14px; }
  .article-content li { font-size: 14px; }
  .article-content h2 { font-size: 18px; }
  .article-content h3 { font-size: 15px; }
  /* 이전/다음 */
  .pn-card { padding: 14px; }
  /* FAq */
  .faq-q { font-size: 13px; }
  .faq-a { font-size: 12px; }
}

@media (max-width: 380px) {
  .related-calc-grid { grid-template-columns: 1fr; }
  .calc-recommend-grid { grid-template-columns: 1fr; }
  #sticky-cta a { font-size: 12px; padding: 8px 14px; }
}


/* ===========================================
   체류시간 극대화 — 내부 추천 + 인라인 계산기
   (engage 모듈 / sohotip.js 와 1:1 대응)
   · 모든 클래스는 reco- / inline-calc- 네임스페이스로
     기존 스타일과 충돌하지 않습니다.
=========================================== */

/* ── 추천 영역 공통 래퍼 ───────────────────── */
.reco-root {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 0 2rem;
}
.reco-root * { box-sizing: border-box; }

/* 계산기 페이지(.page-wrap)·글 본문(.article-main) 내부에서는 폭/여백 조정 */
.page-wrap .reco-root { max-width: 100%; padding: 0; margin-top: 40px; }
.article-main .reco-root { max-width: 100%; padding: 0; margin-top: 48px; }

.reco-section { margin-bottom: 36px; }
.reco-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: keep-all;
}
.reco-section-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ── 카드형 그리드 (PC 2~4열 / 모바일 1열) ──── */
.reco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.reco-grid.reco-grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.reco-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  min-height: 80px;
}
.reco-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(61, 90, 254, 0.10);
  transform: translateY(-2px);
}
.reco-card-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  width: 30px;
  text-align: center;
}
.reco-card-body { min-width: 0; flex: 1; }
.reco-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.reco-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
  word-break: keep-all;
}
.reco-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 인기 TOP5 (순위형 리스트) ───────────────── */
.reco-rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reco-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s, background 0.18s;
  min-height: 52px;
}
.reco-rank-item:hover { border-color: var(--primary); background: var(--primary-light); }
.reco-rank-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.reco-rank-item:nth-child(1) .reco-rank-num,
.reco-rank-item:nth-child(2) .reco-rank-num,
.reco-rank-item:nth-child(3) .reco-rank-num { background: var(--primary); }
.reco-rank-body { min-width: 0; flex: 1; }
.reco-rank-title {
  font-size: 13px; font-weight: 600; line-height: 1.45;
  word-break: keep-all;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reco-rank-tag { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.reco-rank-arrow { color: var(--primary); font-size: 15px; flex-shrink: 0; }

/* ── 이전 글 / 다음 글 ──────────────────────── */
.reco-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 12px;
}
.reco-nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s;
  min-height: 64px;
}
.reco-nav-item:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(61,90,254,0.08); }
.reco-nav-item.reco-nav-next { text-align: right; align-items: flex-end; }
.reco-nav-dir { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.reco-nav-title {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  word-break: keep-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.reco-nav-empty { opacity: 0.4; pointer-events: none; }

/* ── 인라인 계산기 (글 본문 삽입형) ──────────── */
.inline-calc {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 32px 0;
  box-shadow: 0 4px 20px rgba(61, 90, 254, 0.08);
}
.inline-calc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  word-break: keep-all;
}
.inline-calc-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}
.inline-calc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.inline-calc-field { display: flex; flex-direction: column; }
.inline-calc-field.full { grid-column: 1 / -1; }
.inline-calc-field label {
  font-size: 12px; font-weight: 600; color: var(--text);
  margin-bottom: 6px;
}
.inline-calc-field .ic-hint { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.inline-calc-input-wrap { position: relative; display: flex; align-items: center; }
.inline-calc-field input,
.inline-calc-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 16px; /* iOS 자동 확대 방지 */
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.18s;
  -moz-appearance: textfield;
  -webkit-appearance: none;
}
.inline-calc-field input:focus,
.inline-calc-field select:focus { border-color: var(--primary); }
.inline-calc-field .ic-suffix {
  position: absolute; right: 14px;
  font-size: 12px; color: var(--text-muted); pointer-events: none;
}
.inline-calc-field input.has-suffix { padding-right: 44px; }
.inline-calc-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.18s;
}
.inline-calc-btn:hover { background: var(--primary-mid); }

.inline-calc-result {
  margin-top: 16px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
  display: none;
}
.inline-calc-result.show { display: block; animation: icFade 0.25s ease; }
@keyframes icFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ic-res-main {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 12px;
}
.ic-res-main .ic-res-label { font-size: 12px; color: var(--primary-mid); margin-bottom: 4px; }
.ic-res-main .ic-res-value { font-size: 24px; font-weight: 700; color: var(--primary); }
.ic-res-rows { display: flex; flex-direction: column; gap: 0; }
.ic-res-row {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 8px 4px;
  border-bottom: 1px solid var(--border);
}
.ic-res-row:last-child { border-bottom: none; }
.ic-res-row .k { color: var(--text-muted); }
.ic-res-row .v { font-weight: 600; }
.ic-res-row .v.minus { color: #EF4444; }

.inline-calc-full {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  width: 100%;
  justify-content: center;
  padding: 11px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s;
}
.inline-calc-full:hover { border-color: var(--primary); background: var(--primary-light); }

/* ── 반응형 (모바일 1열) ─────────────────────── */
@media (max-width: 768px) {
  .reco-grid, .reco-grid.reco-grid-2 { grid-template-columns: 1fr; }
  .reco-nav { grid-template-columns: 1fr; }
  .reco-nav-item.reco-nav-next { text-align: left; align-items: flex-start; }
  .inline-calc-fields { grid-template-columns: 1fr; }
  .inline-calc { padding: 18px 16px; }
  .reco-root { padding-left: 0; padding-right: 0; }
}


/* ===========================================
   계산 결과 공유 바 + 토스트 (share)
=========================================== */
.reco-share {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.reco-share-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.reco-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reco-share-btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  white-space: nowrap;
}
.reco-share-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.reco-share-btn:disabled { opacity: 0.6; cursor: default; }

/* 토스트 */
#reco-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(12px);
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: 88vw;
  text-align: center;
  word-break: keep-all;
}
#reco-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .reco-share-btn { flex: 1 1 calc(50% - 4px); min-width: 0; }
  #reco-toast { bottom: 80px; font-size: 12px; padding: 11px 16px; }
}

/* ===========================================
   말풍선(대화체 강조) + 체크리스트 박스
   · 게시글 본문에서 공감·위트 멘트, 핵심 체크리스트에 사용
   · 모든 페이지 공통(sohotip.css) — 별도 page CSS 불필요
=========================================== */
.talk-bubble {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #FFF7F0;
  border: 1.5px solid var(--primary-light);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 24px 0;
}
.talk-bubble::before {
  content: "";
  position: absolute; left: 30px; top: -11px;
  border-width: 0 9px 11px 9px;
  border-style: solid;
  border-color: transparent transparent var(--primary-light) transparent;
}
.talk-bubble::after {
  content: "";
  position: absolute; left: 31px; top: -8px;
  border-width: 0 8px 10px 8px;
  border-style: solid;
  border-color: transparent transparent #FFF7F0 transparent;
}
.talk-bubble .tb-face {
  font-size: 26px; line-height: 1.2; flex-shrink: 0;
}
.talk-bubble .tb-body {
  font-size: 14.5px; color: var(--text); line-height: 1.7; word-break: keep-all;
}
.talk-bubble .tb-body strong { color: var(--primary); font-weight: 700; }

/* ✅ 체크리스트 박스 */
.check-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}
.check-box .cb-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 12px; word-break: keep-all;
}
.check-box ul { list-style: none; margin: 0 !important; padding: 0 !important; }
.check-box li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 14px; color: var(--text); line-height: 1.6; word-break: keep-all;
  margin: 0 !important;
}
.check-box li::before {
  content: "✅";
  position: absolute; left: 0; top: 6px;
  font-size: 14px;
}

/* =====================================================================
   디자인 시스템 유틸리티 — 2026 딥 인디고 리디자인 이식
   (Tailwind/shadcn 스펙 → 정적 사이트용 순수 CSS)
   ===================================================================== */
:root {
  --indigo-50:  oklch(0.97 0.02 264);
  --indigo-100: oklch(0.93 0.04 264);
  --indigo-500: oklch(0.55 0.22 264);
  --indigo-600: oklch(0.48 0.24 264);
  --indigo-700: oklch(0.42 0.25 264);
}

/* 진입 애니메이션 */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.3s cubic-bezier(0.23,1,0.32,1) both; }
.fade-in-up-delay-1 { animation-delay: 0.05s; }
.fade-in-up-delay-2 { animation-delay: 0.1s; }
.fade-in-up-delay-3 { animation-delay: 0.15s; }
.fade-in-up-delay-4 { animation-delay: 0.2s; }
.fade-in-up-delay-5 { animation-delay: 0.25s; }

/* 카드 호버 들어올림 */
.card-hover { transition: transform 0.18s cubic-bezier(0.23,1,0.32,1), box-shadow 0.18s cubic-bezier(0.23,1,0.32,1); }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 24px oklch(0.48 0.26 264 / 0.12); }

/* 버튼 눌림 */
.btn-active:active { transform: scale(0.97); transition: transform 0.1s ease-out; }

/* 라이브 표시 점 */
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.live-dot { animation: live-pulse 1.5s ease-in-out infinite; }

/* 북마크 버튼 */
.bookmark-btn { transition: color 0.15s ease-out, transform 0.15s ease-out; }
.bookmark-btn:hover { transform: scale(1.1); }
.bookmark-btn.bookmarked { color: oklch(0.48 0.26 264); }

/* 폰트 굵기 유틸 */
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.font-900 { font-weight: 900; }

/* 한국어 가독 행간 */
.leading-korean { line-height: 1.6; letter-spacing: -0.01em; }

/* 뱃지 */
.badge-new { background: oklch(0.48 0.26 264); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.badge-hot { background: oklch(0.97 0.03 20); color: oklch(0.55 0.22 20); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* 하단 안전영역 패딩 (모바일 고정 탭바 대응) */
.pb-safe { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

/* 가는 커스텀 스크롤바 */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: oklch(0.85 0.02 264); border-radius: 2px; }

/* Lucide 인라인 내비 아이콘 (이모지 대체, currentColor로 테마 상속) */
svg.lucide { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ri-ico svg.lucide, .tb-ico svg.lucide { width: 1em; height: 1em; }   /* 레일/탭바: 래퍼 font-size에 따라 스케일 */
.ico-btn svg.lucide { width: 21px; height: 21px; }                     /* 헤더 아이콘 버튼 */
.searchbox .s-ico svg.lucide { width: 18px; height: 18px; }            /* 검색바 좌측 아이콘 */

/* 카드 내 SVG 아이콘 (북마크·공유·조회·좋아요) */
.bc-btn svg.lucide { width: 17px; height: 17px; }
.bc-bm.on svg.lucide { fill: var(--primary); stroke: var(--primary); }
.bc-foot span { display: inline-flex; align-items: center; }
.bc-foot svg.lucide { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; }

/* 공유 팝오버 */
.share-pop {
  position: absolute; z-index: 1000; min-width: 184px;
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden; animation: fadeInScale 0.15s cubic-bezier(0.23,1,0.32,1);
}
.share-pop .sp-head { padding: 10px 14px 8px; font-size: 11px; font-weight: 600; color: var(--text-light); border-bottom: 1px solid var(--border-light); }
.share-pop .sp-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; background: none; border: none;
  font-size: 13px; font-weight: 600; color: var(--text);
  text-align: left; font-family: var(--sans); cursor: pointer; transition: background 0.12s;
}
.share-pop .sp-item:hover { background: #FAFAFA; }
.share-pop .sp-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #F2F4F6; }
.share-pop .sp-ico.kakao { background: #FEE500; }
.share-pop .sp-ico.indigo { background: var(--primary-light); }
.share-pop .sp-ico svg { width: 16px; height: 16px; }
.share-pop .sp-ico.indigo svg.lucide { stroke: var(--primary); }

/* 토스트 알림 */
.soho-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 12px);
  z-index: 2000; background: rgba(25,31,40,0.95); color: #fff;
  font-size: 13px; font-weight: 600; padding: 11px 20px; border-radius: 100px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25); opacity: 0;
  transition: opacity 0.25s, transform 0.25s; pointer-events: none; white-space: nowrap;
}
.soho-toast.show { opacity: 1; transform: translate(-50%, 0); }
