/**
 * ┌─────────────────────────────────────────────────────────────────────┐
 * │  FILE INDEX — 여수뉴스포털                                          │
 * ├──────────────┬──────────────────────────────────────────────────────┤
 * │  파일명      │  help.css                                            │
 * │  위치        │  /assets/css/help.css                                │
 * │  생성일      │  2026-05-06                                          │
 * │  수정일      │  2026-05-09                                          │
 * │  버전        │  v2.0                                                │
 * ├──────────────┬──────────────────────────────────────────────────────┤
 * │  기능/역할   │  이용안내 전용 스타일                                │
 * │              │  Genspark HelpCenter 스타일 참조                     │
 * │              │  좌측 고정 사이드바 + 우측 문서 콘텐츠 2단 레이아웃 │
 * ├──────────────┬──────────────────────────────────────────────────────┤
 * │  원칙 준수   │  원칙3: font-size ≥ 14px / 원칙1: max-width 1200px  │
 * ├──────────────┬──────────────────────────────────────────────────────┤
 * │  변경 이력   │  2026-05-09 v2.0 - Genspark 스타일 전면 재작성      │
 * │              │  2026-05-08 v1.2 - 원칙 반영                        │
 * └──────────────┴──────────────────────────────────────────────────────┘
 */

/* ═══════════════════════════════════════════════════════════════
   CSS 변수
═══════════════════════════════════════════════════════════════ */
.help-wrap {
  --hc-primary:    #1a56db;
  --hc-primary-lt: #e8f0fe;
  --hc-text:       #111827;
  --hc-text-sub:   #6b7280;
  --hc-border:     #e5e7eb;
  --hc-bg:         #f9fafb;
  --hc-sidebar-w:  260px;
  --hc-radius:     8px;
  --hc-shadow:     0 1px 3px rgba(0,0,0,.08);
}

/* ═══════════════════════════════════════════════════════════════
   전체 래퍼
═══════════════════════════════════════════════════════════════ */
.help-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 0 60px;
  font-size: 15px;            /* 원칙3: ≥14px */
  color: var(--hc-text);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   헤더 히어로 (검색창)
═══════════════════════════════════════════════════════════════ */
.help-hero {
  background: linear-gradient(135deg, #1a56db 0%, #2563eb 60%, #1d4ed8 100%);
  border-radius: var(--hc-radius);
  padding: 48px 40px;
  margin-bottom: 32px;
  text-align: center;
  color: #fff;
}
.help-hero-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
}
.help-hero-sub {
  font-size: 15px;
  opacity: .85;
  margin: 0 0 24px;
}
.help-search-form {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  gap: 0;
}
.help-search-input {
  flex: 1;
  border: none;
  border-radius: var(--hc-radius) 0 0 var(--hc-radius);
  padding: 13px 18px;
  font-size: 15px;
  outline: none;
  color: var(--hc-text);
}
.help-search-btn {
  background: #1e40af;
  border: none;
  border-radius: 0 var(--hc-radius) var(--hc-radius) 0;
  padding: 13px 20px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  transition: background .2s;
}
.help-search-btn:hover { background: #1e3a8a; }

/* 검색 결과 드롭다운 */
.help-search-results {
  position: relative;
  max-width: 560px;
  margin: 8px auto 0;
}
.help-search-dropdown {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: #fff;
  border-radius: var(--hc-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  z-index: 200;
  overflow: hidden;
  display: none;
}
.help-search-dropdown.is-open { display: block; }
.hsd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--hc-text);
  font-size: 14px;
  border-bottom: 1px solid var(--hc-border);
  transition: background .15s;
}
.hsd-item:last-child { border-bottom: none; }
.hsd-item:hover { background: var(--hc-bg); }
.hsd-cat {
  font-size: 14px;
  color: var(--hc-text-sub);
  background: var(--hc-border);
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.hsd-empty {
  padding: 20px;
  text-align: center;
  color: var(--hc-text-sub);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   2단 레이아웃 (사이드바 + 콘텐츠)
═══════════════════════════════════════════════════════════════ */
.help-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

/* ── 좌측 사이드바 ─────────────────────────────────────────── */
.help-sidebar {
  width: var(--hc-sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hc-border) transparent;
}
.help-sidebar::-webkit-scrollbar { width: 4px; }
.help-sidebar::-webkit-scrollbar-thumb {
  background: var(--hc-border);
  border-radius: 4px;
}

/* 사이드바 섹션 그룹 */
.hs-group {
  margin-bottom: 4px;
}
.hs-group-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  font-size: 14px;        /* 원칙3 */
  font-weight: 700;
  color: var(--hc-text);
  cursor: pointer;
  border-radius: var(--hc-radius);
  user-select: none;
  transition: background .15s;
  text-decoration: none;
}
.hs-group-header:hover { background: var(--hc-bg); }
.hs-group-header.is-active {
  color: var(--hc-primary);
  background: var(--hc-primary-lt);
}
.hs-group-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.hs-group-label { flex: 1; }
.hs-group-arrow {
  font-size: 14px;
  color: var(--hc-text-sub);
  transition: transform .2s;
}
.hs-group.is-open > .hs-group-header .hs-group-arrow {
  transform: rotate(90deg);
}

/* 사이드바 하위 링크 */
.hs-sub-list {
  list-style: none;
  margin: 0;
  padding: 0 0 4px 40px;
  display: none;
}
.hs-group.is-open > .hs-sub-list { display: block; }
.hs-sub-link {
  display: block;
  padding: 7px 10px;
  font-size: 14px;      /* 원칙3 */
  color: var(--hc-text-sub);
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s, color .15s;
  border-left: 2px solid transparent;
  margin-bottom: 1px;
}
.hs-sub-link:hover {
  background: var(--hc-bg);
  color: var(--hc-text);
}
.hs-sub-link.is-active {
  color: var(--hc-primary);
  background: var(--hc-primary-lt);
  border-left-color: var(--hc-primary);
  font-weight: 600;
}

/* ── 우측 콘텐츠 ───────────────────────────────────────────── */
.help-content {
  flex: 1;
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════
   브레드크럼
═══════════════════════════════════════════════════════════════ */
.help-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--hc-text-sub);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.help-breadcrumb a {
  color: var(--hc-text-sub);
  text-decoration: none;
}
.help-breadcrumb a:hover { color: var(--hc-primary); text-decoration: underline; }
.help-breadcrumb .sep { opacity: .5; }
.help-breadcrumb .current { color: var(--hc-text); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   회사소개 (company)
═══════════════════════════════════════════════════════════════ */
.hco-header {
  margin-bottom: 28px;
}
.hco-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--hc-text);
}
.hco-sub {
  font-size: 15px;
  color: var(--hc-text-sub);
  margin: 0;
}
.hco-body {
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 32px 36px;
  line-height: 1.85;
  font-size: 15px;
}
/* 서비스 개요 그리드 카드 */
.hco-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.hco-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 12px;
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  text-align: center;
  text-decoration: none;
  color: var(--hc-text);
  transition: box-shadow .2s, border-color .2s;
}
.hco-service-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  border-color: var(--hc-primary);
}
.hco-service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}
.hco-service-name {
  font-size: 14px;
  font-weight: 600;
}
.hco-service-desc {
  font-size: 14px;
  color: var(--hc-text-sub);
  margin-top: 4px;
  line-height: 1.5;
}
/* company overview table */
.hco-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
}
.hco-body th, .hco-body td {
  padding: 10px 14px;
  border: 1px solid var(--hc-border);
  text-align: left;
  vertical-align: top;
}
.hco-body th {
  background: var(--hc-bg);
  font-weight: 600;
  width: 140px;
  white-space: nowrap;
}
.hco-updated {
  font-size: 14px;
  color: var(--hc-text-sub);
  text-align: right;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   이용가이드 (guide) — 문서형
═══════════════════════════════════════════════════════════════ */
.hgu-article {
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 36px 40px;
}
.hgu-article-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--hc-text);
}
.hgu-article-meta {
  font-size: 14px;
  color: var(--hc-text-sub);
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hc-border);
  display: flex;
  align-items: center;
  gap: 16px;
}
/* TOC (목차) */
.hgu-toc {
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 14px;
}
.hgu-toc-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--hc-text);
  font-size: 14px;
}
.hgu-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hgu-toc-list li { padding: 3px 0; }
.hgu-toc-list a {
  color: var(--hc-primary);
  text-decoration: none;
  font-size: 14px;
}
.hgu-toc-list a:hover { text-decoration: underline; }
/* 가이드 도움이 됐나요 버튼 */
.hgu-feedback {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--hc-border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--hc-text-sub);
}
.hgu-feedback-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--hc-border);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: var(--hc-text-sub);
  transition: all .15s;
}
.hgu-feedback-btn:hover {
  border-color: var(--hc-primary);
  color: var(--hc-primary);
}
/* 이전/다음 네비게이션 */
.hgu-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.hgu-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  text-decoration: none;
  color: var(--hc-text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  font-size: 14px;
}
.hgu-nav-btn:hover {
  border-color: var(--hc-primary);
  box-shadow: 0 2px 6px rgba(26,86,219,.1);
}
.hgu-nav-btn.next { justify-content: flex-end; text-align: right; }
.hgu-nav-label { font-size: 14px; color: var(--hc-text-sub); display: block; }
.hgu-nav-title { font-weight: 600; }
/* 문서 본문 타이포 */
.hgu-doc-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--hc-text);
}
.hgu-doc-body h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hc-border);
  scroll-margin-top: 90px;
}
.hgu-doc-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  scroll-margin-top: 90px;
}
.hgu-doc-body p { margin: 0 0 14px; }
.hgu-doc-body ul, .hgu-doc-body ol {
  margin: 0 0 14px 20px;
}
.hgu-doc-body li { margin-bottom: 6px; }
.hgu-doc-body strong { color: var(--hc-text); }
.hgu-doc-body a { color: var(--hc-primary); }
.hgu-doc-body blockquote {
  border-left: 3px solid var(--hc-primary);
  margin: 16px 0;
  padding: 10px 18px;
  background: var(--hc-primary-lt);
  border-radius: 0 var(--hc-radius) var(--hc-radius) 0;
  font-size: 14px;
  color: #1e40af;
}
.hgu-doc-body code {
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 14px;
  font-family: 'Noto Sans KR', monospace;
}
.hgu-doc-body pre {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: var(--hc-radius);
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 14px;
  margin: 16px 0;
}
.hgu-doc-body .callout {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--hc-radius);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
}
.hgu-doc-body .callout-info {
  background: var(--hc-primary-lt);
  border-color: #bfdbfe;
}

/* ═══════════════════════════════════════════════════════════════
   고객센터 (cs)
═══════════════════════════════════════════════════════════════ */
/* FAQ 아코디언 */
.cs-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-faq-item {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  overflow: hidden;
  background: #fff;
}
.cs-faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--hc-text);
  list-style: none;
  user-select: none;
  transition: background .15s;
}
.cs-faq-item summary::-webkit-details-marker { display: none; }
.cs-faq-item summary:hover { background: var(--hc-bg); }
.cs-faq-item[open] summary { background: var(--hc-primary-lt); color: var(--hc-primary); }
.cs-faq-q-icon {
  width: 28px; height: 28px;
  background: var(--hc-primary-lt);
  color: var(--hc-primary);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.cs-faq-item[open] .cs-faq-q-icon {
  background: var(--hc-primary);
  color: #fff;
}
.cs-faq-arrow {
  margin-left: auto;
  color: var(--hc-text-sub);
  font-size: 14px;
  transition: transform .2s;
}
.cs-faq-item[open] .cs-faq-arrow { transform: rotate(180deg); }
.cs-faq-answer {
  padding: 18px 20px 20px 60px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--hc-text);
  border-top: 1px solid var(--hc-border);
  background: #fff;
}
.cs-faq-answer p { margin: 0 0 10px; }
.cs-faq-answer p:last-child { margin: 0; }

/* 게시판 공통 */
.cs-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cs-board-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.cs-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--hc-primary);
  color: #fff;
  border-radius: var(--hc-radius);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.cs-write-btn:hover { background: #1e40af; }

/* 공지 배지 */
.cs-notice-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #dc2626;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  margin-right: 6px;
}
.cs-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}
.cs-badge-open    { background: #dcfce7; color: #15803d; }
.cs-badge-answered{ background: var(--hc-primary-lt); color: var(--hc-primary); }
.cs-badge-closed  { background: #f1f5f9; color: #64748b; }

/* 게시판 테이블 */
.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: var(--hc-radius);
  overflow: hidden;
  border: 1px solid var(--hc-border);
}
.cs-table th {
  background: var(--hc-bg);
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--hc-text-sub);
  border-bottom: 1px solid var(--hc-border);
}
.cs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hc-border);
  vertical-align: middle;
}
.cs-table tr:last-child td { border-bottom: none; }
.cs-table tr:hover td { background: var(--hc-bg); }
.cs-table .cs-td-title a {
  color: var(--hc-text);
  text-decoration: none;
  font-weight: 500;
}
.cs-table .cs-td-title a:hover { color: var(--hc-primary); text-decoration: underline; }
.cs-table-meta { font-size: 14px; color: var(--hc-text-sub); }

/* 게시글 상세 */
.cs-post-header {
  border-bottom: 1px solid var(--hc-border);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.cs-post-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}
.cs-post-meta {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--hc-text-sub);
  flex-wrap: wrap;
}
.cs-post-body {
  font-size: 15px;
  line-height: 1.85;
  min-height: 120px;
  color: var(--hc-text);
}
.cs-post-answer {
  margin-top: 24px;
  background: var(--hc-bg);
  border-left: 3px solid var(--hc-primary);
  border-radius: 0 var(--hc-radius) var(--hc-radius) 0;
  padding: 18px 20px;
}
.cs-post-answer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--hc-primary);
  margin: 0 0 10px;
}
.cs-post-answer-body {
  font-size: 14px;
  line-height: 1.8;
}
.cs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hc-text-sub);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 20px;
  padding: 7px 12px;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  background: #fff;
  transition: border-color .15s, color .15s;
}
.cs-back-link:hover { border-color: var(--hc-primary); color: var(--hc-primary); }

/* 글쓰기 폼 */
.cs-write-form {
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 28px 32px;
}
.cs-write-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--hc-text);
}
.cs-form-row {
  margin-bottom: 18px;
}
.cs-form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--hc-text);
}
.cs-required { color: #dc2626; }
.cs-form-row input[type="text"],
.cs-form-row textarea {
  width: 100%;
  border: 1px solid var(--hc-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--hc-text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
  resize: vertical;
}
.cs-form-row input:focus,
.cs-form-row textarea:focus {
  outline: none;
  border-color: var(--hc-primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.cs-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.cs-submit-btn {
  padding: 10px 24px;
  background: var(--hc-primary);
  color: #fff;
  border: none;
  border-radius: var(--hc-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.cs-submit-btn:hover { background: #1e40af; }
.cs-cancel-btn {
  padding: 10px 20px;
  background: #fff;
  color: var(--hc-text-sub);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.cs-cancel-btn:hover { border-color: #94a3b8; color: var(--hc-text); }
.cs-hint {
  font-size: 14px;
  color: var(--hc-text-sub);
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 6px;
}
.cs-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px 16px;
  color: #dc2626;
  font-size: 14px;
  margin-bottom: 16px;
}
.cs-done-msg {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 12px 16px;
  color: #15803d;
  font-size: 14px;
  margin-bottom: 16px;
}
/* 페이지네이션 */
.cs-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.cs-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--hc-border);
  border-radius: 6px;
  background: #fff;
  color: var(--hc-text-sub);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
}
.cs-page-btn:hover { border-color: var(--hc-primary); color: var(--hc-primary); }
.cs-page-btn.is-active {
  background: var(--hc-primary);
  border-color: var(--hc-primary);
  color: #fff;
  font-weight: 700;
}

/* 빈 상태 */
.cs-empty, .hc-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--hc-text-sub);
  font-size: 15px;
}
.cs-empty i, .hc-empty i {
  display: block;
  font-size: 36px;
  margin-bottom: 12px;
  opacity: .4;
}

/* ─── FAQ 검색 바 ───────────────────────────────────────────── */
.cs-faq-search {
  margin-bottom: 16px;
}
.cs-faq-search-inner {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--hc-border);
  border-radius: var(--hc-radius);
  transition: border-color .15s;
  overflow: hidden;
}
.cs-faq-search-inner:focus-within {
  border-color: var(--hc-primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.08);
}
.cs-faq-search-icon {
  padding: 0 12px;
  color: var(--hc-text-sub);
  font-size: 15px;
}
.cs-faq-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 15px;
  color: var(--hc-text);
  background: transparent;
  font-family: inherit;
}
.cs-faq-search-btn {
  padding: 0 20px;
  height: 100%;
  background: var(--hc-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  min-height: 46px;
  transition: background .2s;
}
.cs-faq-search-btn:hover { background: #1e40af; }
.cs-faq-search-clear {
  padding: 0 10px;
  color: var(--hc-text-sub);
  text-decoration: none;
  font-size: 14px;
}
.cs-faq-search-clear:hover { color: var(--hc-text); }

/* ─── FAQ 태그 필터 ─────────────────────────────────────────── */
.cs-faq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.cs-faq-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--hc-border);
  border-radius: 20px;
  font-size: 14px;
  color: var(--hc-text-sub);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.cs-faq-tag:hover {
  border-color: var(--hc-primary);
  color: var(--hc-primary);
}
.cs-faq-tag.is-active {
  background: var(--hc-primary);
  border-color: var(--hc-primary);
  color: #fff;
  font-weight: 600;
}

/* ─── FAQ 답변 개선 ─────────────────────────────────────────── */
.cs-faq-answer {
  display: flex;
  gap: 14px;
  padding: 18px 20px 20px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--hc-text);
  border-top: 1px solid var(--hc-border);
  background: #f8fafc;
}
.cs-faq-a-icon {
  width: 28px; height: 28px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cs-faq-a-body { flex: 1; }
.cs-faq-a-body p { margin: 0 0 10px; }
.cs-faq-a-body p:last-child { margin: 0; }

/* ─── FAQ QnA 유도 배너 ─────────────────────────────────────── */
.cs-faq-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #e8f0fe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--hc-radius);
  padding: 20px 24px;
  margin-top: 28px;
}
.cs-faq-cta-icon {
  font-size: 28px;
  color: var(--hc-primary);
  opacity: .8;
  flex-shrink: 0;
}
.cs-faq-cta > div { flex: 1; }
.cs-faq-cta strong {
  display: block;
  font-size: 15px;
  color: var(--hc-text);
  margin-bottom: 4px;
}
.cs-faq-cta p {
  font-size: 14px;
  color: var(--hc-text-sub);
  margin: 0;
}
.cs-faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--hc-primary);
  color: #fff;
  border-radius: var(--hc-radius);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.cs-faq-cta-btn:hover { background: #1e40af; }

/* ─── 검색 결과 안내 ────────────────────────────────────────── */
.cs-search-result-info {
  font-size: 14px;
  color: var(--hc-text-sub);
  margin-bottom: 12px;
  padding: 8px 0;
}

/* ─── 목록 검색 폼 ──────────────────────────────────────────── */
.cs-list-search { margin-bottom: 14px; }
.cs-list-search-inner {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--hc-border);
  border-radius: var(--hc-radius);
  background: #fff;
  overflow: hidden;
  transition: border-color .15s;
}
.cs-list-search-inner:focus-within {
  border-color: var(--hc-primary);
}
.cs-list-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--hc-text);
}
.cs-list-search-btn {
  padding: 0 16px;
  min-height: 42px;
  background: var(--hc-bg);
  border: none;
  border-left: 1px solid var(--hc-border);
  color: var(--hc-text-sub);
  cursor: pointer;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.cs-list-search-btn:hover { background: var(--hc-primary); color: #fff; }
.cs-list-search-clear {
  padding: 0 10px;
  color: var(--hc-text-sub);
  text-decoration: none;
  font-size: 14px;
}

/* ─── 게시판 카운트 배지 ────────────────────────────────────── */
.cs-board-count {
  font-size: 14px;
  font-weight: 400;
  color: var(--hc-text-sub);
  margin-left: 8px;
}

/* ─── 게시판 액션 버튼 영역 ─────────────────────────────────── */
.cs-board-actions {
  display: flex;
  gap: 8px;
}

/* ─── 공지 상단 고정 테이블 ─────────────────────────────────── */
.cs-table--pinned {
  margin-bottom: 0;
  border-bottom: none;
  border-radius: var(--hc-radius) var(--hc-radius) 0 0;
}
.cs-table--pinned + .cs-table {
  border-top: 2px dashed var(--hc-border);
  border-radius: 0 0 var(--hc-radius) var(--hc-radius);
}
.cs-pinned-row td { background: #fefce8; }
.cs-pinned-row:hover td { background: #fef9c3; }

/* ─── 인기글 배지 ───────────────────────────────────────────── */
.cs-hot-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  color: #ef4444;
  font-size: 14px;
  vertical-align: middle;
}

/* ─── 이전/다음글 네비 ──────────────────────────────────────── */
.cs-nav-row {
  margin-bottom: 16px;
}
.cs-post-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  overflow: hidden;
  background: #fff;
}
.cs-post-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--hc-text);
  font-size: 14px;
  border-bottom: 1px solid var(--hc-border);
  transition: background .15s;
}
.cs-post-nav-item:last-child { border-bottom: none; }
.cs-post-nav-item:hover { background: var(--hc-bg); }
.cs-post-nav-label {
  font-size: 14px;
  color: var(--hc-text-sub);
  white-space: nowrap;
  min-width: 56px;
}
.cs-post-nav-item--next { justify-content: flex-end; }
.cs-post-nav-item--next .cs-post-nav-label { order: 2; }
.cs-post-nav-item--next .cs-post-nav-title { order: 1; }
.cs-post-nav-title {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   반응형
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .help-layout {
    flex-direction: column;
  }
  .help-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    padding: 12px;
    background: #fff;
  }
  .hs-group.is-open > .hs-sub-list { display: block; }
  .hgu-article { padding: 22px 18px; }
  .cs-write-form { padding: 20px; }
  .help-hero { padding: 32px 20px; }
  .help-hero-title { font-size: 20px; }
  .hco-service-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
@media (max-width: 600px) {
  .cs-table th:nth-child(3),
  .cs-table td:nth-child(3) { display: none; }
  .help-search-form { flex-direction: column; }
  .help-search-input {
    border-radius: var(--hc-radius) var(--hc-radius) 0 0;
  }
  .help-search-btn {
    border-radius: 0 0 var(--hc-radius) var(--hc-radius);
  }
  .hgu-nav { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════
   수정/삭제 권한 UI — cs-post-actions, cs-modal, cs-alert
   추가일: 2026-05-11 v4.0
   ══════════════════════════════════════════════════════════════ */

/* 목록 버튼 행 */
.cs-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cs-post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 수정/삭제 버튼 */
.cs-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .15s, transform .1s;
  line-height: 1;
}
.cs-action-btn:active { transform: scale(.97); }
.cs-action-edit {
  background: #e3f2fd;
  color: #1565c0;
}
.cs-action-edit:hover { background: #bbdefb; }
.cs-action-delete {
  background: #fdecea;
  color: #c62828;
}
.cs-action-delete:hover { background: #ffcdd2; }

/* 알림 박스 */
.cs-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}
.cs-alert i { font-size: 16px; flex-shrink: 0; }
.cs-alert-error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ffcdd2;
}
.cs-alert-info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}

/* 글쓰기 폼 힌트 */
.cs-form-hint {
  display: block;
  font-size: 14px;
  color: #888;
  margin-top: 5px;
}

/* 모달 오버레이 */
.cs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cs-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px 24px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  animation: csModalIn .18s ease;
}
@keyframes csModalIn {
  from { transform: translateY(-16px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.cs-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
}
.cs-modal-close:hover { background: #f5f5f5; color: #333; }
.cs-modal-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #222;
}
.cs-modal-desc {
  font-size: 14px;
  color: #555;
  margin: 0 0 4px;
}
