/* ============================================================
   스프링워터 파트너스 — 가이드 게시글 (guide/<slug>.html) 전용 스타일
   새 홈페이지 디자인 언어(크림 배경·화이트 카드·블루 액센트)에 맞춤
   ============================================================ */

.g-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 48px 88px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}

/* ---------- 목차 사이드바 ---------- */
.g-toc {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(20, 20, 20, 0.05);
}
.g-toc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.g-toc-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: rgba(79, 195, 247, 0.14);
  color: var(--blue-deep);
  border-radius: 9px;
}
.g-toc-list { list-style: none; margin: 12px 0 0; padding: 0; }
.g-toc-list li { margin: 2px 0; }
.g-toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--gray);
  transition: background 0.15s, color 0.15s;
}
.g-toc-list a:hover { background: rgba(79, 195, 247, 0.10); color: var(--blue-deep); }
.g-toc-num { font-size: 11px; font-weight: 700; color: #a0aec0; width: 20px; flex-shrink: 0; }
.g-toc-list a:hover .g-toc-num { color: var(--blue-deep); }
.g-toc-cta {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #EAF6FC, #F2FAFD);
  border: 1px solid #CBE8F7;
}
.g-toc-cta p { font-size: 12.5px; color: #4a5568; margin-bottom: 6px; line-height: 1.5; }
.g-toc-cta a { font-size: 13px; font-weight: 700; color: var(--blue-deep); }

/* ---------- 본문 ---------- */
.g-article { min-width: 0; }
.g-sec { margin-bottom: 56px; }
.g-sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.g-sec-num {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #4fc3f7, #3d7bfd);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(79, 195, 247, 0.3);
  flex-shrink: 0;
}
.g-sec-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.g-sec-body p { font-size: 16px; line-height: 1.85; color: #374151; margin-bottom: 14px; }
.g-tip {
  background: linear-gradient(135deg, #F0F7FF, #EEF2FF);
  border: 1px solid #D5E2FF;
  border-left: 4px solid var(--blue-deep);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.g-tip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 8px;
}
.g-tip p { font-size: 14.5px; line-height: 1.75; color: #3b4a6b; margin-bottom: 0 !important; }
.g-list { display: grid; gap: 10px; margin: 18px 0 6px; }
.g-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid #EEF0F5;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
  box-shadow: 0 2px 8px rgba(20, 20, 20, 0.04);
}
.g-check {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: #E6F6FF;
  color: #0ea5e9;
  border-radius: 50%;
  margin-top: 1px;
}

/* ---------- FAQ ---------- */
.g-faq-list { display: grid; gap: 10px; }
.g-faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.g-faq[open] { border-color: #9BD3EF; box-shadow: 0 6px 20px rgba(46, 155, 214, 0.10); }
.g-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq-icon { color: #a0aec0; transition: transform 0.25s; flex-shrink: 0; }
.g-faq[open] .g-faq-icon { transform: rotate(180deg); color: var(--blue-deep); }
.g-faq-a {
  padding: 14px 20px 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #4a5568;
  border-top: 1px dashed var(--line);
}

/* ---------- 관련 가이드 ---------- */
.g-related { margin-top: 12px; }
.g-related-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.g-related-head h2 { font-size: 22px; font-weight: 800; color: var(--ink); }
.g-related-head a { font-size: 13.5px; font-weight: 600; color: var(--blue-deep); }
.g-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.g-rel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.g-rel-card:hover { transform: translateY(-3px); border-color: #9BD3EF; box-shadow: 0 12px 28px rgba(46, 155, 214, 0.10); }
.g-rel-arrow {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: rgba(79, 195, 247, 0.14);
  color: var(--blue-deep);
  border-radius: 10px;
}
.g-rel-card strong { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.g-rel-card span { font-size: 13px; font-weight: 600; color: var(--blue-deep); }

/* ---------- 히어로 메타 배지 ---------- */
.g-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.g-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}
.g-badge.source { color: #FFD77A; border-color: rgba(255, 215, 122, 0.40); }

/* ---------- 카드 타일 링크 (guide.html) ---------- */
.tile-link { display: block; color: inherit; text-decoration: none; }
.tile-link .tile { height: 100%; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .g-wrap { grid-template-columns: 1fr; gap: 28px; padding: 48px 20px 72px; }
  .g-toc { position: static; }
}
@media (max-width: 480px) {
  .g-sec-head h2 { font-size: 20px; }
  .g-sec-num { width: 34px; height: 34px; font-size: 12px; }
  .g-related-grid { grid-template-columns: 1fr; }
  .g-faq summary { font-size: 14.5px; }
}
