/* pengtoto.site — 공유 스타일시트 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1eb2a6;
  --primary-dark: #158f85;
  --primary-light: #e8f8f7;
  --dark: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f1f5f9;
  --white: #ffffff;
  --accent: #f59e0b;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
}

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

body {
  font-family: 'Malgun Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

/* ── 읽기 진행 바 ── */
#read-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999; transition: width 0.1s;
}

/* ── 헤더 ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 24px;
  min-height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.site-logo {
  font-size: 22px; font-weight: 900; color: var(--primary);
  text-decoration: none; letter-spacing: -0.5px;
  white-space: nowrap; flex-shrink: 0;
}
.site-logo span { color: var(--dark); }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nav-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; background: var(--bg); border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  text-decoration: none; border: 1px solid var(--border);
  transition: all 0.18s ease; white-space: nowrap;
}
.nav-chip:hover, .nav-chip.active {
  background: var(--primary); color: var(--white);
  border-color: var(--primary); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,178,166,0.3);
}
/* 유틸리티 칩(우리소개·고객센터·개인정보방침) — 컨텐츠 칩과 시각적 구분 */
.main-nav > .nav-chip:nth-child(9) { margin-left: 10px; }
.main-nav > .nav-chip:nth-child(n+9) { font-size: 12px; padding: 5px 10px; }

/* ── 레이아웃 ── */
.page-layout {
  max-width: 1280px; margin: 36px auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 280px;
  gap: 28px; align-items: start;
}
.main-content {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}

/* ── 히어로 ── */
.article-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
  padding: 44px 40px 36px; position: relative; overflow: hidden;
}
.article-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(30,178,166,0.12);
}
.article-hero::after {
  content: ''; position: absolute; bottom: -40px; left: 30%;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(245,158,11,0.08);
}
.article-category {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(30,178,166,0.2); border: 1px solid rgba(30,178,166,0.4);
  color: #5eead4; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.article-title {
  font-size: 28px; font-weight: 900; color: var(--white);
  line-height: 1.4; letter-spacing: -0.5px;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: #94a3b8; position: relative; z-index: 1;
}
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-meta strong { color: #cbd5e1; }

/* ── 본문 ── */
.article-body { padding: 40px; }

.summary-box {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0; border-left: 5px solid var(--primary);
  border-radius: var(--radius); padding: 28px 32px; margin-bottom: 36px;
}
.summary-box-title {
  font-size: 15px; font-weight: 800; color: var(--primary-dark);
  margin-bottom: 12px; display: flex; align-items: center;
  gap: 8px; letter-spacing: -0.3px;
}
.summary-box p { font-size: 15px; line-height: 1.85; color: #065f46; }

.section-card {
  margin-bottom: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.section-card:last-of-type { border-bottom: none; margin-bottom: 0; }
.section-card h2 {
  font-size: 22px; font-weight: 900; color: var(--dark);
  margin-bottom: 20px; padding-left: 16px;
  border-left: 4px solid var(--primary);
  line-height: 1.4; letter-spacing: -0.3px;
}
.section-card p {
  font-size: 15.5px; line-height: 1.9; color: var(--text); margin-bottom: 16px;
}
.section-card p:last-child { margin-bottom: 0; }

.kw-link {
  color: var(--primary-dark); font-weight: 700; text-decoration: none;
  border-bottom: 1.5px solid rgba(30,178,166,0.35); padding-bottom: 1px;
  transition: all 0.15s;
}
.kw-link:hover { color: var(--primary); border-bottom-color: var(--primary); }

.official-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(30,178,166,0.1); border: 1px solid rgba(30,178,166,0.3);
  color: var(--primary-dark); font-weight: 700; text-decoration: none;
  padding: 2px 10px 2px 8px; border-radius: 6px; font-size: 15px;
  transition: all 0.18s;
}
.official-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.article-img-wrap {
  margin-bottom: 24px; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.article-img { width: 100%; height: auto; display: block; }

/* ── 테이블 ── */
.table-wrap {
  overflow-x: auto; margin: 24px 0;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table thead { background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%); }
.data-table thead th {
  padding: 14px 18px; color: var(--white); font-weight: 700;
  text-align: left; font-size: 13px; letter-spacing: 0.3px; white-space: nowrap;
}
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--primary-light); }
.data-table tbody td { padding: 13px 18px; color: var(--text); font-size: 14.5px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warn    { background: #fef9c3; color: #a16207; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }

/* ── 정보/경고 박스 ── */
.info-box {
  background: #fffbeb; border: 1px solid #fde68a;
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0;
  font-size: 14.5px; color: #78350f; line-height: 1.8;
}
.info-box strong { color: #92400e; }
.warn-box {
  background: #fff1f2; border: 1px solid #fecdd3;
  border-left: 4px solid var(--danger); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0;
  font-size: 14.5px; color: #9f1239; line-height: 1.8;
}

/* ── FAQ ── */
.faq-section { margin-top: 40px; }
.faq-section h2 {
  font-size: 22px; font-weight: 900; color: var(--dark);
  margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
}
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  width: 100%; background: var(--white); border: none;
  padding: 18px 22px; text-align: left; font-size: 15px; font-weight: 700;
  color: var(--dark); cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 12px;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--bg); }
.faq-question .q-badge {
  background: var(--primary); color: var(--white); font-size: 12px;
  font-weight: 900; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.faq-question .chevron {
  font-size: 18px; color: var(--muted);
  transition: transform 0.25s; flex-shrink: 0;
}
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-answer {
  display: none; padding: 0 22px 20px; font-size: 14.5px;
  line-height: 1.85; color: var(--muted);
  border-top: 1px solid var(--border); background: var(--bg);
}
.faq-answer p { padding-top: 16px; }
.faq-item.open .faq-answer { display: block; }

/* ── 관련 칼럼 ── */
.related-section {
  margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--border);
}
.related-section h3 {
  font-size: 18px; font-weight: 800; color: var(--dark);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.related-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.related-list li {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; transition: all 0.18s;
}
.related-list li:hover {
  border-color: var(--primary); background: var(--primary-light);
  transform: translateX(4px);
}
.related-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; color: var(--text); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
}
.related-list a::before { content: '→'; color: var(--primary); font-weight: 900; flex-shrink: 0; }

/* ── 사이드바 ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); overflow: hidden;
}
.sidebar-card-title {
  background: var(--dark); color: var(--white); font-size: 13px;
  font-weight: 800; padding: 12px 18px; letter-spacing: 0.5px; text-transform: uppercase;
}
.toc-sticky { position: sticky; top: 80px; }
.toc-list { list-style: none; padding: 16px 0; }
.toc-list li { border-bottom: 1px solid var(--border); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 18px;
  font-size: 13.5px; color: var(--muted); text-decoration: none;
  font-weight: 600; line-height: 1.5; transition: all 0.15s;
}
.toc-list a:hover, .toc-list a.active { color: var(--primary); background: var(--primary-light); }
.toc-num {
  background: var(--border); color: var(--muted); font-size: 11px;
  font-weight: 900; min-width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.toc-list a.active .toc-num { background: var(--primary); color: var(--white); }

.kw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; }
.kw-btn {
  display: block; padding: 10px 8px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  text-decoration: none; text-align: center; transition: all 0.18s;
}
.kw-btn:hover {
  background: var(--primary); color: var(--white);
  border-color: var(--primary); transform: translateY(-1px);
}
/* 사이드바 고객지원 및 정책 리스트 */
.support-list { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.support-list .kw-btn { text-align: left; padding-left: 12px; }

.notice-card { background: linear-gradient(135deg, #fff7ed, #fffbeb); border: 1px solid #fed7aa; }
.notice-body { padding: 16px 18px; font-size: 13px; line-height: 1.75; color: #92400e; }
.notice-body strong { color: #78350f; display: block; margin-bottom: 6px; font-size: 13.5px; }

/* ── 푸터 ── */
.site-footer {
  background: var(--dark); color: #94a3b8; text-align: center;
  padding: 32px 24px; font-size: 13px; margin-top: 48px; line-height: 1.8;
}
.site-footer a { color: #5eead4; text-decoration: none; }

/* ── noscript ── */
#noscript-guard {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,0.97); z-index: 99999;
  flex-direction: column; justify-content: center; align-items: center; padding: 24px;
}
.noscript-inner {
  background: #1e293b; border: 1px solid #334155;
  border-radius: 16px; padding: 48px 40px; text-align: center; max-width: 440px;
}
.noscript-inner .icon { font-size: 36px; margin-bottom: 16px; }
.noscript-inner h2 { color: #ef4444; font-size: 20px; margin-bottom: 12px; }
.noscript-inner p { color: #cbd5e1; font-size: 15px; line-height: 1.7; }

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .header-inner { min-height: auto; padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .main-nav { gap: 5px; }
  .nav-chip { font-size: 12px; padding: 5px 10px; }
  .article-hero { padding: 28px 20px 24px; }
  .article-title { font-size: 20px; }
  .article-body { padding: 24px 20px; }
  .page-layout { margin: 20px auto; padding: 0 12px; }
  .summary-box { padding: 20px; }
  .section-card h2 { font-size: 18px; }
}

/* ── 메인 리드 이미지 ── */
.article-lead-img {
  margin: 28px 0 32px;
  text-align: center;
}
.article-lead-img img {
  max-width: 100%;
  width: 520px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
  margin: 0 auto;
}
.article-lead-img figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}