/* ============================================================
   월명동 방문 안내(/guide) 공통 스타일
   - 사이트 서브 페이지 위에 얹히는 안내 허브 전용 스타일
   - 전역 충돌 방지를 위해 모든 규칙을 .guide-page 아래로 스코프
   ============================================================ */

.guide-page {
  --g-ink: #2b2620;
  --g-muted: #6b6459;
  --g-accent: #8a6d3b;
  --g-bg: #faf7f2;
  --g-card: #ffffff;
  --g-border: #e8e1d5;
  --g-line: #d9cfba;
  --g-zebra: #f6f2ea;

  background: var(--g-bg);
  color: var(--g-ink);
  font-family: "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
  line-height: 1.7;

  /* 고정(fixed) 상단바 높이만큼 콘텐츠를 아래로 내려 겹침 방지 (데스크톱 ~80px) */
  padding-top: 80px;
}
@media (max-width: 970px) {
  /* 970px 이하에서는 상단바가 햄버거 형태로 바뀌며 높이 축소 (~61px) */
  .guide-page {
    padding-top: 61px;
  }
}

/* ============================================================
   /guide 전용 상단바 처리
   - 다른 페이지는 어두운 배너 위라 투명 흰색 네비가 잘 보이지만,
     /guide 하위 페이지는 배경이 밝아 흰색 글자가 보이지 않는다.
   - guide.css는 /guide 하위에서만 로드되므로, 여기서 상단바를
     '흰 배경 + 어두운 로고/글자' 상태로 고정한다. (전역 규칙이어도 안전)
   ============================================================ */
#header {
  background-color: #fff !important;
  border-bottom: 1px solid #e8e8e8;
}
/* 로고: 어두운(컬러) 버전 노출 */
.logo .pc {
  display: none !important;
}
.logo .m {
  display: block !important;
}
/* 1차 메뉴 텍스트를 어둡게, 호버 시에는 기존 포인트 컬러 유지 */
#header #gnb.blc > li.dept1 > a {
  color: #61594f !important;
}
#header #gnb.blc > li.dept1 > a:hover {
  color: #2f60b9 !important;
}
/* 로그인 / 회원가입 / 로그아웃 텍스트 어둡게 */
#header .login a,
#header .jo a,
#header .logout a {
  color: #61594f !important;
}
/* 모바일 햄버거 라인 어둡게 */
#header .menu_bar span {
  background: #61594f !important;
}

.guide-page *,
.guide-page *::before,
.guide-page *::after {
  box-sizing: border-box;
}

/* ============================================================
   전역 사이트 타이포그래피 보정
   - common.css가 body에 font-weight:300 / letter-spacing:-.015em를,
     h2·h3에 Paperlogy 폰트를 지정해 .guide-page 콘텐츠까지 새어든다.
     그 결과 본문이 얇게(300) 렌더링돼 색이 연하고 가독성이 떨어져 보인다.
   - 원본 안내 문서의 의도(본문 400 / Pretendard 제목)를 복원한다.
   ============================================================ */
.guide-page,
.guide-page p,
.guide-page li,
.guide-page td,
.guide-page th,
.guide-page a,
.guide-page span,
.guide-page div {
  font-weight: 400;
  letter-spacing: normal;
}
/* 제목·본문 모두 Pretendard로 통일 (Paperlogy 유입 차단) */
.guide-page .g-header h1,
.guide-page .g-header p,
.guide-page .g-h2,
.guide-page .g-lead,
.guide-page .g-card-link h2,
.guide-page .g-card-link p,
.guide-page .g-facility-card h3,
.guide-page .g-facility-card p,
.guide-page .g-origin-card h3,
.guide-page .g-origin-card p,
.guide-page .g-t-card h3,
.guide-page .g-t-card p,
.guide-page details.g-faq summary,
.guide-page .g-answer {
  font-family: "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
  letter-spacing: normal;
}
/* 제목 굵기 복원 */
.guide-page .g-header h1 {
  font-weight: 700;
  line-height: 1.35;
}
.guide-page .g-card-link h2,
.guide-page .g-facility-card h3,
.guide-page .g-origin-card h3,
.guide-page .g-t-card h3,
.guide-page .g-t-year,
.guide-page .g-table-wrap thead th {
  font-weight: 700;
}
.guide-page details.g-faq summary,
.guide-page .g-lead strong,
.guide-page .g-table-wrap td.name {
  font-weight: 600;
}

/* ---- breadcrumb ---- */
.guide-page .g-breadcrumb {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 0.82rem;
  color: var(--g-muted);
}
.guide-page .g-breadcrumb a {
  color: var(--g-muted);
  text-decoration: none;
}
.guide-page .g-breadcrumb a:hover {
  text-decoration: underline;
}

/* ---- header ---- */
.guide-page .g-header {
  padding: 40px 24px 32px;
  text-align: center;
}
.guide-page .g-header h1 {
  font-size: 1.9rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--g-ink);
}
.guide-page .g-header p {
  color: var(--g-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ---- main container ---- */
.guide-page .g-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 24px 100px;
}
.guide-page .g-main.wide {
  max-width: 880px;
}

/* ---- lead / notice ---- */
.guide-page .g-lead {
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 0.98rem;
}
.guide-page .g-lead strong {
  color: var(--g-accent);
}
.guide-page .g-notice {
  background: #fbf3e4;
  border: 1px solid #e8d8b0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #7a5c1e;
  margin-bottom: 32px;
}

/* ---- section heading ---- */
.guide-page .g-h2 {
  font-size: 1.1rem;
  color: var(--g-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 40px 0 16px;
}

/* ---- index card list ---- */
.guide-page .g-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guide-page .g-card-link {
  display: block;
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: 10px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--g-ink);
  transition: border-color 0.15s ease;
}
.guide-page .g-card-link:hover {
  border-color: var(--g-accent);
}
.guide-page .g-card-link .g-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--g-accent);
  background: #f1ebe0;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.guide-page .g-card-link h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--g-ink);
}
.guide-page .g-card-link p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--g-muted);
}
.guide-page .g-card-link .g-arrow {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--g-accent);
}

/* ---- FAQ accordion (native details) ---- */
.guide-page details.g-faq {
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.guide-page details.g-faq summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.guide-page details.g-faq summary::-webkit-details-marker {
  display: none;
}
.guide-page details.g-faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--g-accent);
  font-weight: 400;
  flex-shrink: 0;
}
.guide-page details.g-faq[open] summary::after {
  content: "\2212"; /* minus */
}
.guide-page details.g-faq[open] summary {
  border-bottom: 1px solid var(--g-border);
}
.guide-page .g-answer {
  padding: 16px 20px 20px;
  color: var(--g-ink);
  font-size: 0.95rem;
}
.guide-page .g-answer ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.guide-page .g-answer li {
  margin-bottom: 4px;
}

/* ---- facilities table ---- */
.guide-page .g-table-wrap {
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.guide-page .g-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.guide-page .g-table-wrap thead th {
  background: #f1ebe0;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--g-border);
  white-space: nowrap;
}
.guide-page .g-table-wrap tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--g-border);
  vertical-align: top;
}
.guide-page .g-table-wrap tbody tr:last-child td {
  border-bottom: none;
}
.guide-page .g-table-wrap tbody tr:nth-child(even) {
  background: var(--g-zebra);
}
.guide-page .g-table-wrap td.name {
  font-weight: 600;
  white-space: nowrap;
}
.guide-page .g-table-wrap td a {
  color: var(--g-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.guide-page .g-table-wrap td a:hover {
  opacity: 0.75;
}

/* ---- facility detail card ---- */
.guide-page .g-facility-card {
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
}
.guide-page .g-facility-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.guide-page .g-facility-card p {
  margin: 0 0 8px;
  font-size: 0.93rem;
  color: var(--g-ink);
}
.guide-page .g-facility-card p:last-child {
  margin-bottom: 0;
}
.guide-page .g-facility-card .g-src {
  font-size: 0.78rem;
  color: var(--g-muted);
}

/* ---- history timeline ---- */
.guide-page .g-timeline {
  position: relative;
  margin-left: 8px;
  padding-left: 28px;
  border-left: 2px solid var(--g-line);
}
.guide-page .g-t-item {
  position: relative;
  margin-bottom: 28px;
}
.guide-page .g-t-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--g-accent);
  border: 3px solid var(--g-bg);
}
.guide-page .g-t-year {
  font-weight: 700;
  color: var(--g-accent);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.guide-page .g-t-card {
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: 8px;
  padding: 14px 18px;
}
.guide-page .g-t-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.guide-page .g-t-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--g-ink);
}
.guide-page .g-origin-card {
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
}
.guide-page .g-origin-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.guide-page .g-origin-card p {
  margin: 0;
  font-size: 0.93rem;
}

/* ---- page-foot note ---- */
.guide-page .g-foot-note {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 24px;
  color: var(--g-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--g-border);
}

/* ---- responsive: facilities table -> stacked ---- */
@media (max-width: 560px) {
  .guide-page .g-table-wrap table,
  .guide-page .g-table-wrap thead,
  .guide-page .g-table-wrap tbody,
  .guide-page .g-table-wrap th,
  .guide-page .g-table-wrap td,
  .guide-page .g-table-wrap tr {
    display: block;
  }
  .guide-page .g-table-wrap thead {
    display: none;
  }
  .guide-page .g-table-wrap tbody tr {
    border-bottom: 8px solid var(--g-bg);
    padding: 10px 16px;
  }
  .guide-page .g-table-wrap tbody td {
    border: none;
    padding: 3px 0;
  }
  .guide-page .g-table-wrap td.name::before {
    content: "명칭: ";
    color: var(--g-muted);
    font-weight: 400;
  }
  .guide-page .g-table-wrap td.desc::before {
    content: "설명: ";
    color: var(--g-muted);
    display: block;
    margin-bottom: 2px;
  }
}
