/* ════════════════════════════════════════
   GUIDE 히어로 배너
════════════════════════════════════════ */
.guide-hero {
  background-image: url('/static/images/background/bg_guide.png');
}

.guide-hero .news-hero__label {
  color: rgba(80, 55, 20, 0.75);
  -webkit-text-stroke: 0.5px rgba(60, 40, 10, 0.4);
}

.guide-hero .news-hero__title {
  color: #3b2608;
  text-shadow:
    0 1px 0 rgba(255, 220, 150, 0.6),
    0 2px 8px rgba(255, 200, 100, 0.3);
  -webkit-text-stroke: 1px rgba(100, 65, 15, 0.5);
}

/* ════════════════════════════════════════
   레이아웃
════════════════════════════════════════ */
.guide-layout {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: 32px;
  align-items: start;
}
.guide-main { min-width: 0; }

/* ════════════════════════════════════════
   왼쪽 카테고리 네비게이션
════════════════════════════════════════ */
.guide-nav {
  position: sticky;
  top: 120px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

.guide-nav__heading {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--color-purple);
  padding: 14px 16px;
  letter-spacing: 0.5px;
}

.guide-nav__empty {
  padding: 20px 16px;
  font-size: 13px;
  color: #aaa;
}

/* ════════════════════════════════════════
   카테고리 아코디언
════════════════════════════════════════ */
.guide-cat {
  border-bottom: 1px solid #f0f0f0;
}
.guide-cat:last-child {
  border-bottom: none;
}

.guide-cat__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.guide-cat__header:hover {
  background: #f8f4ff;
  color: var(--color-purple);
}

.guide-cat.open .guide-cat__header {
  color: var(--color-purple);
  background: #f3eeff;
}

.guide-cat__name {
  flex: 1;
}

.guide-cat__arrow {
  font-size: 16px;
  color: #aaa;
  transition: transform 0.2s;
  display: inline-block;
}
.guide-cat.open .guide-cat__arrow {
  transform: rotate(90deg);
  color: var(--color-purple);
}

/* 아티클 목록 */
.guide-cat__list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  transition: max-height 0.25s ease;
}
.guide-cat.open .guide-cat__list {
  max-height: 600px;
}

.guide-cat__item a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guide-cat__item:last-child a {
  border-bottom: none;
}
.guide-cat__item a:hover {
  color: var(--color-purple);
  background: #f0e8ff;
}
.guide-cat__item.active a {
  color: var(--color-purple);
  font-weight: 700;
  background: #ede5ff;
}

.guide-cat__empty {
  padding: 8px 20px;
  font-size: 12px;
  color: #bbb;
}

/* ════════════════════════════════════════
   섹션 헤더
════════════════════════════════════════ */
.guide-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3eeff;
  border-left: 4px solid var(--color-purple);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
}

.guide-section-header__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-purple);
}

.guide-section-header__sep {
  color: #cbb8f0;
  font-size: 14px;
}

.guide-section-header__cat {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

/* ════════════════════════════════════════
   아티클 본문
════════════════════════════════════════ */
.guide-article__header {
  border-bottom: 2px solid #222;
  padding: 10px 8px 14px;
  margin-bottom: 0;
}

.guide-article__title {
  font-size: 30px;
  font-weight: 200;
  color: #111;
  line-height: 1.4;
  margin-left: 6px;
  margin-bottom: 4px;
}

.guide-article__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #aaa;
}

.guide-article__body {
  padding: 32px 8px;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  min-height: 300px;
  border-bottom: 1px solid #eee;
}

/* ════════════════════════════════════════
   아티클 본문 이미지
════════════════════════════════════════ */

.guide-article__body img {
  max-width: 100%;
  height: auto;
}

.guide-article__body figure.image {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ════════════════════════════════════════
   아티클 본문 테이블
════════════════════════════════════════ */

/* CKEditor 5 figure 래퍼 */
.guide-article__body figure.table {
  margin: 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.guide-article__body figure.table table {
  margin: 0;
}

.guide-article__body table {
  max-width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  font-size: 14px;
}

.guide-article__body thead th,
.guide-article__body tbody th {
  background: #9257f8;
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  text-align: center;
  border-top: 2px solid var(--color-purple);
  border-bottom: 2px solid var(--color-purple);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.guide-article__body tbody td {
  padding: 10px 16px;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  color: #444;
  vertical-align: middle;
  transition: background 0.15s, color 0.15s;
}

.guide-article__body tbody td:last-child {
  border-right: none;
}

.guide-article__body tbody tr:first-child td {
  border-top: 2px solid #222;
}

.guide-article__body tbody tr:last-child td {
  border-bottom: 2px solid #222;
}

.guide-article__body tbody tr:hover td {
  color: #fff;
  background: #c2a3f8;
}

/* ════════════════════════════════════════
   빈 상태
════════════════════════════════════════ */
.guide-empty {
  padding: 80px 20px;
  text-align: center;
  color: #aaa;
  font-size: 15px;
}

.guide-coming-soon p::before {
  content: '🔧 ';
}
