/* ============================================================
   둔딘 베이비 블로그 — 글 페이지 공용 스타일
   (dolvideo / dolreview / dolvenue 등 매거진형 글에서 공유)
============================================================ */

  :root {
    --ink: #191918; --ink-soft: #5f5e5b; --line: #ebebea;
    --teal: #191918; --teal-dark: #191918; --teal-bg: #f5f4f2; --teal-line: #ebebea;
    --warn-bg: #FFF8E1; --warn-line: #E8B500; --warn-ink: #5c4d00;
    --surface-soft: #fbfbf9;
    --btn: #191918; --btn-shadow: rgba(0,0,0,.16);
  }
  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html { scroll-behavior: smooth; }
  html, body {
    margin: 0; padding: 0; background: #faf9f6; color: var(--ink);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    -webkit-font-smoothing: antialiased; word-break: keep-all; line-height: 1.65;
  }
  .card[id] { scroll-margin-top: 14px; }
  img { max-width: 100%; display: block; }
  a { color: var(--ink); }

  .wrap { max-width: 640px; margin: 0 auto; padding: 0 14px 72px; }

  /* 상단 홈 링크 */
  .home-tab {
    position: fixed; top: 14px; right: 14px; z-index: 60;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 15px; border-radius: 999px;
    background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
    border: 1px solid #e7e7e5; color: #191918;
    font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.07);
  }
  @media (max-width: 480px) { .home-tab { top: 10px; right: 10px; padding: 7px 13px; font-size: 13px; } }

  /* 헤더 */
  .gd-head { padding: 40px 24px 26px; text-align: center; }
  .gd-brand { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 14px; }
  .gd-head h1 { margin: 0 0 10px; font-size: 25px; letter-spacing: -0.02em; line-height: 1.36; }
  .gd-head .sub { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
  .gd-head .badge {
    display: inline-block; margin-top: 16px; padding: 6px 14px; border-radius: 999px;
    background: var(--teal-bg); border: 1px solid var(--teal-line);
    color: var(--teal-dark); font-size: 13px; font-weight: 700;
  }

  /* 카드 */
  .card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; margin-bottom: 16px; }
  .card.hero { border: 1.5px solid var(--teal-line); background: linear-gradient(180deg, #faf9f7, #fff); }

  .sec-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; }
  .sec-head .emoji { font-size: 20px; line-height: 1; }
  .sec-head h2 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
  .sec-lead { margin: 6px 0 14px; color: var(--ink-soft); font-size: 14.5px; }
  /* 카드 안 소제목 */
  .subsec {
    display: flex; align-items: center; gap: 9px; margin: 30px 0 10px;
    font-size: 16px; font-weight: 800; letter-spacing: -0.01em;
  }
  .subsec:first-of-type { margin-top: 16px; }
  .subsec::before { content: ""; width: 4px; height: 17px; border-radius: 2px; background: var(--teal); flex-shrink: 0; }
  .subsec .step-n { color: var(--teal-dark); font-variant-numeric: tabular-nums; }

  .intro { font-size: 15px; color: #3c3c3a; line-height: 1.8; }
  .intro p { margin: 0 0 12px; }
  .intro p:last-child { margin-bottom: 0; }
  .body-txt { font-size: 14.8px; color: #3c3c3a; line-height: 1.8; }
  .body-txt p { margin: 0 0 12px; }
  .body-txt p:last-child { margin-bottom: 0; }

  /* 이미지 */
  figure { margin: 16px 0 0; }
  figure img { border-radius: 12px; border: 1px solid var(--line); width: 100%; }
  figcaption { margin-top: 8px; font-size: 12.5px; color: #999; text-align: center; }
  .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .duo figure { margin: 0; }
  .duo img { height: 100%; object-fit: cover; }
  /* 잘림 없이 원본 비율로 (스크린샷·후기용) */
  .duo.duo-free { align-items: start; }
  .duo.duo-free img { height: auto; object-fit: contain; }

  /* 스펙 / 체크 리스트 */
  ul.spec { list-style: none; padding: 0; margin: 14px 0 0; }
  ul.spec li {
    position: relative; padding: 8px 0 8px 20px; font-size: 14.5px; color: #3c3c3a;
    border-top: 1px dashed var(--line);
  }
  ul.spec li:first-child { border-top: 0; }
  ul.spec li::before { content: "✔"; position: absolute; left: 0; top: 8px; color: var(--teal); font-weight: 900; font-size: 12px; }

  /* 방법 비교 */
  .compare { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
  .compare li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
  .compare .ct { font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
  .compare .cd { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
  .compare li.pick { border-color: var(--teal-line); background: var(--teal-bg); }
  .compare li.pick .ct { color: var(--teal-dark); }

  /* 콜아웃 / 후기 박스 */
  .callout {
    margin: 18px 0 0; padding: 15px 17px;
    background: var(--warn-bg); border-left: 3px solid var(--warn-line); border-radius: 10px;
    font-size: 13.8px; color: var(--warn-ink); line-height: 1.7;
  }
  .callout b { color: #463a00; }
  .callout p { margin: 0; }
  .review {
    margin: 16px 0 0; padding: 16px 18px; background: var(--teal-bg);
    border-radius: 12px; font-size: 14px; color: #3c3c3a; line-height: 1.75;
  }
  .review b { color: var(--teal-dark); }
  .review ul { margin: 8px 0 0; padding-left: 18px; }
  .review li { margin-bottom: 4px; }

  /* 음원 비교 */
  .songs { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 0; }
  .songs li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: #3c3c3a; line-height: 1.65; }
  .songs li:first-child { border-top: 0; }
  .songs .sn { font-weight: 800; color: var(--ink); }

  /* 목차 */
  .toc { margin-top: 6px; }
  .toc a {
    display: flex; align-items: center; gap: 11px; padding: 11px 4px;
    text-decoration: none; color: #3c3c3a; font-size: 14.5px; font-weight: 600;
    border-top: 1px solid var(--line);
  }
  .toc a:first-child { border-top: 0; }
  .toc a .n { color: var(--teal); font-weight: 800; font-size: 13px; min-width: 16px; text-align: center; }
  .toc a .arr { margin-left: auto; color: #c5c4c0; }

  /* 통합 CTA 버튼 */
  .cta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 16px; padding: 16px 18px; border-radius: 12px;
    background: var(--btn); color: #fff; text-decoration: none;
    box-shadow: 0 2px 8px var(--btn-shadow);
  }
  .cta.teal { background: var(--teal); color: #ffffff; box-shadow: 0 3px 10px rgba(0,0,0,.14); }
  .cta .cta-go { font-size: 15px; font-weight: 800; white-space: nowrap; }
  .cta.full { justify-content: center; }

  /* 버튼 (다음 글) */
  .buy {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
    padding: 12px 16px; background: var(--btn); color: #fff; border-radius: 10px;
    text-decoration: none; font-size: 14px; font-weight: 700;
    box-shadow: 0 2px 6px var(--btn-shadow);
  }

  /* 같이 보면 좋은 글 */
  .quick { list-style: none; padding: 0; margin: 8px 0 0; }
  .quick li { border-top: 1px solid var(--line); }
  .quick li:first-child { border-top: 0; }
  .quick a { display: flex; align-items: center; gap: 10px; padding: 14px 4px; text-decoration: none; color: var(--ink); font-size: 15px; }
  .quick .ic { font-size: 18px; flex-shrink: 0; }
  .quick .t { flex: 1; font-weight: 600; }
  .quick .arr { color: #c5c4c0; font-size: 15px; }

  /* 푸터 */
  .gd-foot { text-align: center; padding: 30px 16px 8px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
  .gd-foot a { font-weight: 600; color: var(--teal-dark); }
  .gd-foot .links { margin-top: 14px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  .copyright { margin-top: 22px; color: #b7b6b2; font-size: 11px; }

  @media (max-width: 480px) {
    .gd-head h1 { font-size: 22px; }
    .card { padding: 22px 16px; }
    .duo { grid-template-columns: 1fr; }
  }

  /* ----- 비용/비교 표 (album 등) ----- */
  table.cost { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
  table.cost th, table.cost td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
  table.cost th { color: var(--ink-soft); font-weight: 600; font-size: 12.5px; }
  table.cost td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  table.cost tr:last-child td { border-bottom: 0; }

  /* ----- Canva 템플릿 강조 박스 ----- */
  .tpl-box {
    margin-top: 16px; padding: 22px 20px; border-radius: 14px;
    background: var(--teal-bg); border: 1.5px solid var(--teal-line); text-align: center;
  }
  .tpl-box .tpl-emoji { font-size: 30px; }
  .tpl-box h3 { margin: 8px 0 6px; font-size: 17px; letter-spacing: -0.01em; }
  .tpl-box p { margin: 0 0 14px; font-size: 13.8px; color: var(--ink-soft); line-height: 1.6; }

  /* ----- 부록 다운로드 카드 (sitter 등) ----- */
  .dl-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
  .dl-list a {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft);
    text-decoration: none; color: var(--ink); transition: border-color .15s ease, background .15s ease;
  }
  .dl-list a:hover { border-color: var(--teal-line); background: var(--teal-bg); }
  .dl-list .dl-ic { font-size: 22px; flex-shrink: 0; }
  .dl-list .dl-t { flex: 1; font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; }
  .dl-list .dl-t small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
  .dl-list .dl-go { font-size: 13px; font-weight: 700; color: var(--teal-dark); white-space: nowrap; }

  /* GOOD/BAD 박스 */
  .gb { display: grid; gap: 12px; margin-top: 14px; }
  @media (min-width: 560px) { .gb { grid-template-columns: 1fr 1fr; } }
  .gb-card { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); }
  .gb-card h4 { margin: 0 0 10px; font-size: 14px; font-weight: 800; letter-spacing: 0.02em; }
  .gb-good { background: var(--teal-bg); border-color: var(--teal-line); }
  .gb-good h4 { color: var(--teal-dark); }
  .gb-bad { background: #fdf2f1; border-color: #f6d5d1; }
  .gb-bad h4 { color: #b3382c; }
  .gb-card ul { margin: 0; padding-left: 18px; font-size: 13.8px; color: #3c3c3a; line-height: 1.7; }
