/* 우리캠핑 키트 0.1.0 — 시안 B안 톤 */

:root {
  --wck-ink: #16211A;
  --wck-muted: #566156;
  --wck-line: #E3E5DF;
  --wck-accent: #2F6B46;
  --wck-deep: #1F3D2B;
  --wck-sand: #F6F3EC;
}

/* ── 소제목: 기존 파란 띠를 사이트 색(딥그린)으로 ───────────────── */
body.single .entry-content h2,
body.page .entry-content h2 {
  background: var(--wck-deep);
  border: 0;
  border-left: 5px solid var(--wck-accent);
  border-radius: 8px;
  box-shadow: none;
  text-shadow: none;
  color: #fff;
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  font-size: 1.32em;
  line-height: 1.45;
  padding: 14px 20px;
  margin: 2em 0 0.9em;
}
body.single .entry-content h2::before,
body.single .entry-content h2::after { display: none; }

body.single .entry-content h3 {
  font-size: 1.12em;
  font-weight: 700;
  padding-left: 12px;
  border-left: 3px solid var(--wck-accent);
  margin: 1.8em 0 0.6em;
}

/* 본문 이미지 */
.single .entry-content figure.wp-block-image { margin: 1.6em 0; }
.single .entry-content figure.wp-block-image img { border-radius: 10px; display: block; }

/* 본문 표 */
.single .entry-content table { border-collapse: collapse; width: 100%; font-size: .95em; }
.single .entry-content table th { background: var(--wck-sand); }
.single .entry-content table th,
.single .entry-content table td { border: 1px solid var(--wck-line); padding: 10px 12px; }

/* ── 이동 경로 ──────────────────────────────────────────────── */
.wck-crumb { font-size: 14px; color: var(--wck-muted); margin-bottom: 10px; }
.wck-crumb a { color: var(--wck-muted); text-decoration: none; }
.wck-crumb a:hover { color: var(--wck-accent); }
.wck-crumb span { margin: 0 7px; }

.wck-checked {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #EAF1E9;
  color: var(--wck-accent);
  font-size: .86em;
  font-weight: 600;
}

/* ── 3줄 요약 ──────────────────────────────────────────────── */
.wck-summary {
  margin: 0 0 26px;
  padding: 22px 24px;
  background: var(--wck-sand);
  border-radius: 12px;
}
.wck-summary-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--wck-ink);
}
.wck-summary ul { margin: 0; padding: 0; list-style: none; }
.wck-summary li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.65;
}
.wck-summary li:last-child { margin-bottom: 0; }
.wck-summary li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--wck-accent);
  border-bottom: 2.5px solid var(--wck-accent);
  transform: rotate(-45deg);
}

/* 모바일 목차 토글 버튼도 사이트 색으로 */
.ez-toc-mobile-toggle-btn,
.ez-toc-mobile-toggle-btn > * { background-color: var(--wck-accent) !important; }

/* ── 본문 광고 ─────────────────────────────────────────────── */
.wck-ad-incontent { margin: 32px 0; min-height: 90px; }

/* ── 관련 글 ───────────────────────────────────────────────── */
.wck-related { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--wck-line); }
.wck-related > h2 {
  margin: 0 0 16px;
  font-family: 'Nanum Myeongjo', serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--wck-ink);
}
.wck-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.wck-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--wck-ink); }
.wck-card img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; }
.wck-card-body { display: flex; flex-direction: column; gap: 4px; }
.wck-card-cat { font-size: 12px; font-weight: 600; color: var(--wck-accent); }
.wck-card-title { font-size: 15px; font-weight: 600; line-height: 1.5; }
.wck-card:hover .wck-card-title { color: var(--wck-accent); }

/* ── 이전/다음 글 ──────────────────────────────────────────── */
/* 테마 기본 글 이동 링크는 숨긴다 — 아래 카드가 대신한다 */
body.single .post-navigation { display: none; }

.wck-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.wck-adj {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--wck-line); border-radius: 10px;
  text-decoration: none; color: var(--wck-ink);
}
.wck-adj:hover { border-color: var(--wck-accent); }
.wck-adj-next { text-align: right; }
.wck-adj-label { font-size: 12px; color: var(--wck-muted); }
.wck-adj-title { font-size: 15px; font-weight: 600; line-height: 1.5; }

/* ── 많이 본 글 ────────────────────────────────────────────── */
.wck-rank { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.wck-rank li { border-top: 1px solid var(--wck-line); }
.wck-rank li:first-child { border-top: 0; }
.wck-rank a {
  display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center;
  min-height: 56px; padding: 8px 0;
  text-decoration: none; color: var(--wck-ink);
}
.wck-rank a:hover .wck-rank-t { color: var(--wck-accent); }
.wck-rank-n { font-family: 'Nanum Myeongjo', serif; font-size: 19px; font-weight: 800; color: #8B9A8C; }
.wck-rank-n.is-top { color: var(--wck-accent); }
.wck-rank-t { font-size: 15px; line-height: 1.5; }

/* ── 홈 ────────────────────────────────────────────────────── */
.wck-home { margin: 0; }
.wck-hero {
  margin: -40px -40px 0;
  padding: 56px 40px;
  background-color: var(--wck-deep);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.wck-hero-inner { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 40px; align-items: center; }
.wck-hero-eyebrow { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #CFE3CB; }
body.page .entry-content .wck-hero h2,
.wck-hero h2 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-family: 'Nanum Myeongjo', serif !important;
  font-size: 40px !important;
  font-weight: 800 !important;
  line-height: 1.34 !important;
  color: #fff !important;
}
.wck-hero-desc { margin: 0; font-size: 17px; line-height: 1.65; color: #E4EDE1; }

.wck-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wck-step {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 18px;
  background: #fff; border-radius: 14px;
  text-decoration: none; color: var(--wck-ink);
}
.wck-step:hover { transform: translateY(-2px); transition: transform .15s ease; }
.wck-step-n {
  width: 32px; height: 32px; border-radius: 16px;
  background: #EAF1E9; color: var(--wck-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.wck-step-t { font-size: 17px; font-weight: 700; line-height: 1.4; }
.wck-step-d { font-size: 14px; line-height: 1.55; color: var(--wck-muted); }

.wck-block { margin-top: 44px; }
.wck-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
body.page .entry-content .wck-block-head h2,
.wck-block-head h2 {
  margin: 0 !important; padding: 0 !important;
  background: none !important; border: 0 !important;
  box-shadow: none !important; text-shadow: none !important;
  font-family: 'Nanum Myeongjo', serif !important;
  font-size: 26px !important; font-weight: 800 !important;
  color: var(--wck-ink) !important;
}
.wck-block-head a { font-size: 15px; font-weight: 600; color: var(--wck-accent); text-decoration: none; }

.wck-topics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.wck-topics a {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 8px;
  background: var(--wck-sand); border-radius: 12px;
  font-size: 15px; font-weight: 600; text-align: center;
  color: var(--wck-ink); text-decoration: none;
}
.wck-topics a:hover { background: #EAF1E9; color: var(--wck-accent); }

.wck-spots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wck-card-wide {
  display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center;
  padding: 14px; border: 1px solid var(--wck-line); border-radius: 14px;
}
.wck-card-wide img { width: 200px; height: 130px; }
.wck-card-noimg { display: block; width: 100%; height: 130px; border-radius: 10px; background: #E7EBE5; }
.wck-card-wide .wck-card-noimg { width: 200px; }

/* ── 모바일 ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  body.single .entry-content h2 { font-size: 1.18em; padding: 12px 16px; }
  .wck-related-grid { grid-template-columns: 1fr; gap: 0; }
  .wck-card { flex-direction: row; gap: 14px; padding: 12px 0; border-top: 1px solid var(--wck-line); }
  .wck-card img { width: 104px; height: 74px; flex-shrink: 0; }
  .wck-adjacent { grid-template-columns: 1fr; }
  .wck-adj-next { text-align: left; }

  /* 모바일은 컨테이너 패딩이 달라 음수 마진을 쓰면 가로로 넘친다 */
  .wck-hero { margin: 0; padding: 26px 18px; border-radius: 12px; }
  .wck-home { overflow-x: hidden; }
  .wck-hero-inner { grid-template-columns: 1fr; gap: 22px; }
  body.page .entry-content .wck-hero h2,
.wck-hero h2 { font-size: 28px !important; }
  .wck-steps { grid-template-columns: 1fr; }
  .wck-step { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
  .wck-step-n { flex-shrink: 0; }
  .wck-step-d { display: none; }
  .wck-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wck-block-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .wck-block-head h2 { font-size: 22px !important; }
  .wck-spots { grid-template-columns: 1fr; }
  .wck-card-wide { grid-template-columns: 1fr; padding: 0; border: 0; }
  .wck-card-wide img { width: 100%; height: 180px; }
}

/* 불을 쓰는 글의 안전 고지 — 요약 카드와 구분되도록 경고색 테두리를 쓴다 */
.wck-fire {
  margin: 0 0 26px;
  padding: 20px 22px;
  background: #FFF8F1;
  border: 1px solid #E8C9A6;
  border-left: 5px solid #C2410C;
  border-radius: 10px;
}
.wck-fire-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #9A3412;
}
.wck-fire ul { margin: 0; padding: 0; list-style: none; }
.wck-fire li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--wck-ink);
}
.wck-fire li:last-child { margin-bottom: 0; }
.wck-fire li::before {
  content: "";
  position: absolute;
  left: 3px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #C2410C;
}
.wck-fire-src {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #EFD9C2;
  font-size: 14px;
  line-height: 1.6;
  color: var(--wck-muted);
}
@media (max-width: 600px) {
  .wck-fire { padding: 16px 16px; }
  .wck-fire li { font-size: 15px; }
}
