/*
Theme Name: 강서구치과 진료 길잡이 (dentalinfoguidebook)
Theme URI: https://dentalinfoguidebook.co.kr
Author: dentalinfoguidebook.co.kr
Description: 강서구치과 라이프치과의원 진료 안내 테마. 교정·신경치료·심미·임플란트·사랑니·턱관절 여섯 진료를 허브 1 + 스포크 6 구조로 정리하고 GEO·AEO 레이어(인용봇 robots · @graph 엔티티 · 정답먼저 문단 · FAQPage)를 기본 탑재했습니다. 레이아웃은 L4 인포형, 본문에 비교표 · 단계 타임라인 · 체크리스트를 넣습니다.
Design: info (L4) + hub-and-spoke
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dentalinfoguidebook
Tags: one-column, custom-menu, featured-images, translation-ready, blog
*/

/* build: dig-core 1.0.0 | pipeline 2026.11 | tokens 6ea7a9 */

/* ============================================================
   0. 색상 팔레트  —  ★ 여기만 병원 색으로 교체합니다 (기본: 로즈)
   여기 값만 바꾸면 사이트 전체 색이 바뀝니다.
   (병원 로고가 정해지면 --accent-deep 을 로고 색으로 맞추고
    나머지를 그 색조에 맞춰 옅게 파생시키면 됩니다)
   ============================================================ */
:root {
  --bg: #fbfdfc;
  --paper: #e9f6f3;
  --ink: #13221f;
  --ink-soft: #38504b;
  --ink-mute: #55706a;
  --rule: #d3e7e2;
  --rule-soft: #e8f3f0;
  --accent: #138a80;          /* 틸 — 테두리·배경·칩 */
  --accent-deep: #0d5852;     /* 흰 배경 글자용 (명암비 7.8:1) */
  --hl: #fde6bd;              /* 형광펜 */
  --tag-bg: #e3f1ee;
  --navy: #0b3b37;            /* CTA·푸터 딥 틸 */
  --navy-soft: #1f524d;
  --cream: #f3faf8;           /* 차가운 쪽으로 돌린 종이색 */
  --gold: #a8640f;            /* 보조 포인트 — 앰버 */
  --gold-on-dark: #f2c06b;   /* 어두운 배경(CTA 밴드)용 밝은 보조색 */
  --radius-l: 28px;
  --radius-m: 18px;
}

/* 카드 크기 — 카드 폭에 따라 .svc-size-* 가 자동으로 정해집니다
   ★ 카드 그리드는 L1·L2 공통으로 "기본(스타터) 디자인"을 씁니다.
      에디토리얼은 히어로 · 본문 · 타이포에만 적용하고,
      카드 그리드는 건드리지 않습니다. 이유는 아래 두 가지입니다.
      ① naver-carousel.css 가 style.css 뒤에 로드되면서
         .svc-mode-* .nsc-track 에 gap 을 다시 지정한다 →
         .post-grid 의 gap 은 무시된다 (선택자 특정도도 캐러셀이 높다).
      ② 그 gap 은 var(--grid-gap) 단일 변수를 읽는다 →
         --grid-gap-x / -y 로 쪼개면 값이 통째로 폴백(18px)된다.
      즉 카드 그리드를 레이아웃 프리셋마다 다르게 만들면
      3모드(그리드·스와이프·슬라이더) 중 일부에서만 어긋난다. */
:root {
  --card-pad: 11px;
  --card-title: 13.5px;
  --card-cat: 9.5px;
  --card-more: 11.5px;
  --card-radius: 10px;
  --grid-gap: 14px;
  --head-h2: 20px;
  --head-p: 13.5px;
  --band-pad: 30px;
}
.svc-size-lg { --card-pad: 14px; --card-title: 15px;   --card-cat: 10.5px; --card-more: 12.5px; --card-radius: 12px; --grid-gap: 18px; --head-h2: 22px; --head-p: 14.5px; --band-pad: 36px; }
.svc-size-md { --card-pad: 11px; --card-title: 13.5px; --card-cat: 9.5px;  --card-more: 11.5px; --card-radius: 10px; --grid-gap: 14px; --head-h2: 20px; --head-p: 13.5px; --band-pad: 30px; }
.svc-size-sm { --card-pad: 9px;  --card-title: 12.5px; --card-cat: 9px;    --card-more: 10.5px; --card-radius: 8px;  --grid-gap: 11px; --head-h2: 18px; --head-p: 12.5px; --band-pad: 24px; }


/* ============================================================
   1. 기본
   ============================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 88% -140px, var(--hl) 0%, rgba(255,255,255,0) 62%),
    radial-gradient(700px 380px at -10% 320px, var(--paper) 0%, rgba(255,255,255,0) 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-deep); }
h1, h2, h3, h4 { font-family: "Noto Serif KR", serif; line-height: 1.42; letter-spacing: -0.02em; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; z-index: 999;
  background: #fff; padding: 10px 16px; border: 1px solid var(--accent);
  width: auto; height: auto; clip: auto;
}

/* ============================================================
   2. 헤더
   ============================================================ */
.blog-header {
  border-bottom: 1px solid var(--rule-soft);
  background: rgba(255, 252, 253, 0.95);
  backdrop-filter: saturate(1.4) blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.blog-header::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent) 46%, var(--gold));
}
.blog-header .inner {
  max-width: 1080px; margin: 0 auto;
  padding: 16px 24px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 20px;
}
.blog-header .logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.blog-header .logo .mk {
  width: 42px; height: 42px; border-radius: 50% 50% 50% 6px;
  border: 1.5px solid var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: "Noto Serif KR", serif; font-weight: 700;
  font-size: 18px; color: var(--accent-deep); flex: none;
  overflow: hidden; background: #fff;
}
/* 사이트 아이콘 · 커스텀 로고를 넣었을 때 */
.blog-header .logo .mk.has-img {
  border-color: var(--rule);
  padding: 3px;
}
.blog-header .logo .mk.has-img.plain {
  border: 0; padding: 0; border-radius: 50% 50% 50% 6px;
}
.blog-header .logo .mk img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.blog-header .logo .tx .n {
  font-family: "Noto Serif KR", serif;
  font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
}
.blog-header .logo .tx .s {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px; letter-spacing: 0.22em; color: var(--gold);
}
.blog-header nav { display: flex; justify-content: center; }
/* 워드프레스 메뉴의 기본 불릿(•) 제거 */
.blog-header nav ul,
.blog-header nav .bb-menu {
  list-style: none !important;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px 22px; align-items: center;
}
.blog-header nav li {
  list-style: none !important;
  margin: 0; padding: 0;
}
.blog-header nav li::marker { content: ""; }
.blog-header nav a {
  position: relative; display: inline-block;
  text-decoration: none; color: var(--ink-soft);
  font-size: 14.5px; font-weight: 500; padding: 4px 0;
  transition: color 0.18s ease;
  white-space: nowrap;
}
.blog-header nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px;
  height: 1.5px; background: var(--accent); transition: all 0.22s ease;
}
.blog-header nav a:hover { color: var(--accent-deep); }
.blog-header nav a:hover::after { left: 0; right: 0; }
/* 현재 페이지 표시 */
.blog-header nav .current-menu-item > a { color: var(--accent-deep); border-bottom-color: var(--accent); }
.blog-header .cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--accent-deep);
  border: 1.5px solid var(--accent-deep);
  padding: 9px 20px; border-radius: 999px 999px 999px 4px;
  text-decoration: none; font-weight: 600; font-size: 14.5px;
  white-space: nowrap; transition: all 0.2s ease;
}
.blog-header .cta:hover { background: var(--accent-deep); color: #fff; }
@media (max-width: 860px) {
  .blog-header { position: static; }
  .blog-header .inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px; padding: 14px 18px;
  }
  .blog-header nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; }
  .blog-header nav ul,
  .blog-header nav .bb-menu { gap: 6px 16px; }
  .blog-header .logo { gap: 8px; min-width: 0; }
  .blog-header .logo .tx { min-width: 0; }
  .blog-header .logo .tx .n { font-size: 15.5px; white-space: nowrap; }
  .blog-header .logo .tx .s { font-size: 9px; letter-spacing: 0.1em; white-space: nowrap; }
  .blog-header .cta { font-size: 13px; padding: 9px 15px; }
}
@media (max-width: 480px) {
  .blog-header .logo .mk { width: 32px; height: 32px; font-size: 15px; }
  .blog-header .logo .tx .s { display: none; }   /* 부제는 숨겨 두 줄 방지 */
  .blog-header .logo .tx .n { font-size: 15px; }
  .blog-header .cta { font-size: 12.5px; padding: 8px 13px; }
}

/* ============================================================
   3. 카드 그리드 (헤더 바로 아래)
   ============================================================ */
/* ★ 이 블록은 스타터(기본) style.css 와 동일하게 유지합니다.
   에디토리얼 색·타이포는 위 :root 팔레트로 이미 반영되므로
   카드 그리드 자체는 손대지 않는 것이 3모드 모두에서 안전합니다.
   바깥 틀은 본문(.wrap)과 같은 1080px — 좌우 시작선을 본문과 맞춥니다.
   안쪽 폭만 --band-max 로 좁혀 카드를 작게 만듭니다(왼쪽 정렬 유지). */
.grid-band { max-width: 1080px; margin: 0 auto; padding: var(--band-pad) 24px 0; }
.grid-band .post-grid-wrap { margin: 0; max-width: var(--band-max, 880px); }
.post-grid-wrap { margin: 48px 0 8px; }
.post-grid-wrap .grid-head { margin-bottom: calc(var(--grid-gap) + 2px); }
.post-grid-wrap .grid-head .k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px; letter-spacing: 0.16em;
  color: var(--accent); font-weight: 500; margin-bottom: 6px;
}
.post-grid-wrap .grid-head h2 {
  font-size: var(--head-h2); font-weight: 700; margin: 0 0 5px;
}
.post-grid-wrap .grid-head p { font-size: var(--head-p); color: var(--ink-soft); margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(var(--nsc-cols, 3), 1fr); gap: var(--grid-gap); }
.post-grid .pcard {
  display: block; border: 1px solid var(--rule);
  border-radius: var(--card-radius); overflow: hidden; background: #fff;
  text-decoration: none; color: inherit; transition: all 0.18s ease;
}
.post-grid .pcard:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);   /* 팔레트 교체에 안 걸리도록 무채색 */
  transform: translateY(-2px);
}
.post-grid .pcard .thumb { aspect-ratio: var(--card-ratio, 4/3); overflow: hidden; background: var(--rule-soft); }
.post-grid .pcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-grid .pcard .info { padding: var(--card-pad) var(--card-pad) calc(var(--card-pad) + 2px); }
.post-grid .pcard .info .cat {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--card-cat); letter-spacing: 0.12em; color: var(--accent); margin-bottom: 5px;
}
.post-grid .pcard .info h3 { font-size: var(--card-title); font-weight: 600; line-height: 1.45; margin: 0 0 6px; }
.post-grid .pcard .info .more { font-size: var(--card-more); color: var(--ink-mute); }
@media (max-width: 920px) { .post-grid { grid-template-columns: repeat(var(--cols-t, 3), 1fr); } }
@media (max-width: 560px) {
  .post-grid { grid-template-columns: repeat(var(--cols-m, 2), 1fr); }
  .post-grid .pcard .thumb { aspect-ratio: var(--card-ratio-m, 4/3); }
  .post-grid .pcard .info h3 { font-size: calc(var(--card-title) - 0.5px); }
}

/* ---- 글 목록: 썸네일 없는 텍스트 카드 (.no-thumb) ----
   특성 이미지를 지정하지 않은 글이 많을 때 대체 이미지 한 장이
   모든 카드에 반복되는 것을 피하려고 이미지를 아예 뺀 형태입니다.
   기본값이 이쪽이고, 글마다 특성 이미지를 넣은 뒤에
   사용자 정의하기 → 카드 그리드 → "글 목록에 썸네일 표시" 로 켭니다.
   메인 페이지의 카드 그리드에는 이 클래스가 붙지 않습니다. */
.post-grid.no-thumb .pcard { display: flex; }
.post-grid.no-thumb .pcard .info {
  display: flex; flex-direction: column; width: 100%;
  padding: calc(var(--card-pad) + 6px) calc(var(--card-pad) + 4px);
}
.post-grid.no-thumb .pcard .info h3 {
  font-size: calc(var(--card-title) + 1.5px); margin: 0 0 12px;
}
.post-grid.no-thumb .pcard .info .more { margin-top: auto; }
@media (max-width: 560px) {
  /* 글자만 있는 카드는 모바일에서 2열이면 너무 좁습니다 */
  .post-grid.no-thumb { grid-template-columns: 1fr; }
  .post-grid.no-thumb .pcard .info h3 { font-size: calc(var(--card-title) + 1px); }
}

/* ---- 기기별 숨기기 (사용자 정의하기 → 카드별 체크박스) ----
   모바일  : 560px 이하
   태블릿  : 561 ~ 920px
   PC      : 921px 이상
   ※ 숨긴 카드는 자리를 차지하지 않고 뒤 카드가 앞으로 당겨집니다.        */
@media (max-width: 560px) {
  .bb-hide-mobile { display: none !important; }
}
@media (min-width: 561px) and (max-width: 920px) {
  .bb-hide-tablet { display: none !important; }
}
@media (min-width: 921px) {
  .bb-hide-desktop { display: none !important; }
}
/* 확인 방법: 사용자 정의하기 화면 왼쪽 아래 기기 아이콘(🖥 💻 📱)을 눌러
   미리보기 크기를 바꾸면 숨김 설정이 그대로 반영됩니다. */

/* ============================================================
   4. 본문 레이아웃 (본문 + 우측 사이드바)
   ============================================================ */
.wrap {
  max-width: var(--wrap-max-6ea7a9); margin: 0 auto;
  padding: var(--wrap-pad-6ea7a9);
  display: grid; grid-template-columns: var(--wrap-col-6ea7a9);
  gap: var(--wrap-gap-6ea7a9); align-items: start;
}
@media (max-width: 920px) { .wrap { grid-template-columns: 1fr; gap: var(--wrap-gap-m-6ea7a9); } }

/* 히어로 — breadcrumb + H1 + 진료 정보 */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--paper) 0%, #fff 62%);
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 6px;
  padding: 34px 38px 30px; margin-bottom: 34px;
  box-shadow: 0 14px 40px rgba(58, 32, 40, 0.06);
}
.hero::before {
  content: ""; position: absolute; right: -90px; top: -110px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid var(--rule); opacity: 0.9;
}
.hero::after {
  content: ""; position: absolute; right: -46px; top: -70px;
  width: 176px; height: 176px; border-radius: 50%;
  background: var(--hl); opacity: 0.38;
}
.hero > * { position: relative; z-index: 1; }
@media (max-width: 560px) { .hero { padding: 26px 22px 24px; } }

.breadcrumb {
  font-size: 11.5px; color: var(--ink-mute);
  margin-bottom: 18px; font-family: "IBM Plex Mono", monospace; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-deep); }

.post-title {
  font-size: 42px; font-weight: 700; line-height: 1.28;
  margin: 0 0 20px; letter-spacing: -0.035em;
}
.post-title .em {
  color: var(--accent-deep);
  background: linear-gradient(transparent 72%, var(--hl) 72%);
}
@media (max-width: 920px) { .post-title { font-size: 34px; } }
@media (max-width: 560px) { .post-title { font-size: 27px; } }

.post-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 12px; color: var(--ink-mute);
  font-family: "IBM Plex Mono", monospace; letter-spacing: 0.02em;
  margin: 0;
}
.post-meta span { display: inline-flex; align-items: center; gap: 8px; }
.post-meta span + span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); display: inline-block;
}

/* ============================================================
   통이미지 묶음 (S) — H1 바로 아래에 여러 장을 이어 붙입니다
   references/image-stack.md  ·  링크 연결 지원 (.img-stack a)
   ============================================================ */
.img-stack {
  margin: 0 0 34px;
  border: 1px solid var(--rule);
  border-radius: 4px var(--radius-l) var(--radius-l) var(--radius-l);
  overflow: hidden;
  background: #fff;
  font-size: 0;                        /* 이미지 사이 인라인 공백(흰 줄) 제거 */
  box-shadow: 0 18px 46px rgba(58, 32, 40, 0.09);
}
.img-stack img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto !important;       /* --fig-ratio 가 통이미지를 자르는 것을 막습니다 */
  object-fit: fill;
}
/* 링크가 걸린 칸 — 눌리는 곳이라는 것이 보이게 */
.img-stack a {
  display: block;
  position: relative;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.18s ease;
}
.img-stack a:hover { opacity: 0.9; }
.img-stack a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.img-stack figcaption {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-mute);
  text-align: center;
  padding: 11px 16px 13px;
  border-top: 1px solid var(--rule-soft);
  background: var(--cream);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
}
@media (max-width: 560px) {
  .img-stack { border-radius: 4px var(--radius-m) var(--radius-m) var(--radius-m); }
}

.cover { margin: 0 0 34px; position: relative; }
.cover img {
  width: 100%; display: block;
  aspect-ratio: var(--fig-ratio, auto); object-fit: cover;
  border-radius: 4px var(--radius-l) var(--radius-l) var(--radius-l);
  box-shadow: 0 18px 46px rgba(58, 32, 40, 0.10);
}
.cover figcaption {
  font-family: "Noto Serif KR", serif; font-size: 13px; color: var(--ink-mute);
  margin-top: 14px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.cover figcaption::before, .cover figcaption::after {
  content: ""; width: 38px; height: 1px; background: var(--rule);
}

/* 목차 */
.toc {
  background: var(--cream);
  border: 0; border-top: 2px solid var(--accent-deep);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  padding: 26px 28px 24px; margin: 0 0 44px;
}
.toc .k {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.3em; color: var(--accent-deep); margin-bottom: 16px;
}
.toc ol {
  margin: 0; padding: 0; list-style: none;
  counter-reset: toc;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.toc li { margin: 0; counter-increment: toc; }
.toc a {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--rule-soft);
  border-radius: 999px; padding: 8px 16px 8px 10px;
  font-size: 13.5px; color: var(--ink-soft); text-decoration: none;
  transition: all 0.18s ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px;
  color: var(--gold); background: var(--cream);
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.toc a:hover {
  border-color: var(--accent); color: var(--accent-deep);
  transform: translateY(-1px);
}

/* 본문 섹션 */
.sec { position: relative; margin: 0 0 64px; scroll-margin-top: 96px; }
.sec > .k {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.3em; color: var(--gold); margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.sec > .k::before {
  content: ""; width: 26px; height: 1.5px; background: var(--gold);
}
.sec h2 {
  position: relative;
  font-size: 27px; font-weight: 700; margin: 0 0 22px; padding: 0 0 0 20px;
  line-height: 1.45;
}
.sec h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-deep), var(--accent));
}
.sec h3 {
  font-size: 19px; font-weight: 600; margin: 34px 0 12px;
  display: flex; align-items: baseline; gap: 10px;
}
.sec h3::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none; transform: translateY(-2px);
}
.sec p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15.5px; }
.sec figure { margin: 10px 0 28px; }
.sec figure img {
  width: 100%; display: block;
  aspect-ratio: var(--fig-ratio, auto); object-fit: cover;
  border-radius: var(--radius-l) 4px var(--radius-l) var(--radius-l);
  box-shadow: 0 14px 36px rgba(58, 32, 40, 0.08);
}
.sec:nth-of-type(even) figure img {
  border-radius: 4px var(--radius-l) var(--radius-l) var(--radius-l);
}
.sec figcaption {
  font-size: 12.5px; color: var(--ink-mute); margin-top: 12px;
  padding-left: 14px; border-left: 2px solid var(--rule);
}
/* 본문 이미지 비율 — 사용자 정의하기 → 메인 페이지 → ① 에서 조절 */
@media (max-width: 560px) {
  .sec figure img, .cover img { aspect-ratio: var(--fig-ratio-m, var(--fig-ratio, auto)); }
}
/* 원본 비율 그대로 보이기 — 세로로 긴 가격표·카드뉴스가 잘리지 않게 합니다. */
.sec figure.is-fullimg img { aspect-ratio: auto !important; object-fit: contain; height: auto; }
.hl { background: linear-gradient(transparent 62%, var(--hl) 62%); font-weight: 600; color: var(--ink); }


/* ============================================================
   AEO — 답변 먼저 문단(.answer)과 Q&A 블록(.faq)
   검색 AI 가 답을 집어가기 쉽도록 결론을 앞에 두는 구조입니다.
   ============================================================ */
.sec p.answer {
  position: relative;
  margin: 0 0 20px;
  padding: 16px 20px 16px 22px;
  background: linear-gradient(150deg, var(--cream) 0%, #fff 78%);
  border: 1px solid var(--rule);
  border-radius: 4px var(--radius-m) var(--radius-m) var(--radius-m);
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink);
  font-weight: 500;
}
.sec p.answer::before {
  content: "";
  position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}
@media (max-width: 560px) {
  .sec p.answer { padding: 14px 16px 14px 18px; font-size: 15.5px; }
}

.faq { margin: 4px 0 8px; }
.faq .qa {
  padding: 20px 4px 18px;
  border-bottom: 1px solid var(--rule-soft);
}
.faq .qa:first-child { border-top: 1px solid var(--rule); }
.sec .faq .qa h3.q {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 10px; padding: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 17px; font-weight: 700; line-height: 1.55;
  color: var(--ink);
}
.sec .faq .qa h3.q::before { content: none; }
.faq .qa h3.q .mk {
  flex: none;
  min-width: 30px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--accent-deep); color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-indent: 0.06em; line-height: 1.1;
}
.faq .qa p.a {
  margin: 0 0 0 40px;
  font-size: 15.5px; line-height: 1.9; color: var(--ink-soft);
}
@media (max-width: 560px) {
  .sec .faq .qa h3.q { font-size: 16px; gap: 8px; }
  .faq .qa p.a { margin-left: 0; font-size: 15px; }
}

/* 정의형 목록 — 번호가 붙는 에디토리얼 행 */
.deflist { margin: 4px 0 26px; counter-reset: dl; border-top: 1px solid var(--rule); }
.deflist .row {
  counter-increment: dl;
  display: grid; grid-template-columns: 46px 190px 1fr;
  gap: 0 18px; align-items: start;
  padding: 20px 6px; border-bottom: 1px solid var(--rule-soft);
  transition: background 0.2s ease;
}
.deflist .row:hover { background: var(--cream); }
.deflist .row::before {
  content: counter(dl, decimal-leading-zero);
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
  color: var(--gold); padding-top: 3px;
}
/* 용어 칸은 h3 로 나갑니다(문서 구조용). .sec h3 의 점·여백은 여기서 지웁니다. */
.deflist .row .t,
.sec .deflist .row h3.t {
  font-family: "Noto Serif KR", serif;
  color: var(--accent-deep); font-weight: 700; font-size: 16.5px;
  line-height: 1.5;
  display: block; margin: 0; padding: 0;
}
.sec .deflist .row h3.t::before { content: none; }
.deflist .row .d { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .deflist .row { grid-template-columns: 34px 1fr; gap: 4px 12px; padding: 18px 4px; }
  .deflist .row .t,
  .sec .deflist .row h3.t { grid-column: 2; margin: 0 0 6px; }
  .deflist .row .d { grid-column: 2; }
}

/* 체크 목록 — 카드형 */
.checks { list-style: none; margin: 4px 0 26px; padding: 0; display: grid; gap: 8px; }
.checks li {
  position: relative; padding: 14px 18px 14px 48px;
  font-size: 15.5px; color: var(--ink-soft);
  background: var(--cream);
  border-radius: 4px 14px 14px 14px;
  border: 0; transition: all 0.18s ease;
}
.checks li:hover { background: var(--paper); transform: translateX(3px); }
.checks li::before {
  content: "✓"; position: absolute; left: 16px; top: 14px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent-deep);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
}
.checks li b { color: var(--ink); font-weight: 600; }

/* 강조 밴드 — 인용 스타일 */
.callout {
  position: relative;
  background: linear-gradient(140deg, var(--paper), #fff 70%);
  border: 0; border-radius: 6px var(--radius-m) var(--radius-m) var(--radius-m);
  padding: 30px 30px 26px 34px; margin: 6px 0 28px;
  box-shadow: 0 10px 28px rgba(58, 32, 40, 0.05);
}
.callout::before {
  content: "\201C";
  position: absolute; left: 22px; top: 2px;
  font-family: "Noto Serif KR", serif; font-size: 62px;
  color: var(--rule); line-height: 1;
}
.callout p {
  margin: 0; font-size: 16px; color: var(--ink-soft);
  font-family: "Noto Serif KR", serif; line-height: 1.85;
}
.callout p + p { margin-top: 12px; }

/* 주의 박스 */
.notice {
  position: relative;
  border: 0; border-left: 2px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px 18px 24px; font-size: 13.5px; color: var(--ink-mute);
  background: #fafdfc; margin: 4px 0 28px; line-height: 1.8;
}
.notice::before {
  content: "NOTE";
  display: block; font-family: "IBM Plex Mono", monospace;
  font-size: 10px; letter-spacing: 0.28em; color: var(--gold); margin-bottom: 8px;
}

/* ============================================================
   5. 네이버 플레이스 카드
   ============================================================ */
.naver-card { margin: 28px 0 8px; }
.naver-card a {
  display: grid; grid-template-columns: 56px 1fr auto;
  align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--rule);
  border-radius: 10px; padding: 18px 22px;
  text-decoration: none; color: inherit; transition: all 0.18s ease;
}
.naver-card a:hover {
  border-color: #03c75a; box-shadow: 0 6px 18px rgba(3, 199, 90, 0.10);
  transform: translateY(-1px);
}
.naver-card .badge {
  width: 56px; height: 56px; border-radius: 14px;
  background: #03c75a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 28px;
}
.naver-card .body .k {
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: 0.16em; color: #027f3b; font-weight: 500; margin-bottom: 4px;
}
.naver-card .body .h { font-family: "Noto Serif KR", serif; font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.naver-card .body .p { font-size: 13px; color: var(--ink-soft); }
.naver-card .arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; transition: all 0.18s ease;
}
.naver-card a:hover .arrow { background: #03c75a; border-color: #03c75a; color: #fff; }
@media (max-width: 560px) {
  .naver-card a { grid-template-columns: 44px 1fr; }
  .naver-card .badge { width: 44px; height: 44px; font-size: 22px; }
  .naver-card .arrow { display: none; }
}

/* ============================================================
   6. 태그
   ============================================================ */
.tagbar { margin: 36px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.tagbar .tg {
  background: transparent; color: var(--ink-mute);
  border: 1px solid var(--rule);
  font-size: 12.5px; padding: 6px 14px; border-radius: 999px;
  text-decoration: none; transition: all 0.18s ease;
}
.tagbar .tg:hover { background: var(--accent-deep); color: #fff; }

/* ============================================================
   7. 사이드바
   ============================================================ */
.side { position: sticky; top: 96px; }
@media (max-width: 920px) { .side { position: static; } }
.side-box {
  background: #fff; border: 1px solid var(--rule-soft);
  border-radius: 4px var(--radius-m) var(--radius-m) var(--radius-m);
  padding: 24px 24px 26px; margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(58, 32, 40, 0.05);
}
.side-box:first-child { background: linear-gradient(160deg, var(--paper), #fff 72%); }
.side-h {
  font-family: "IBM Plex Mono", monospace; font-size: 10px;
  letter-spacing: 0.3em; color: var(--gold); margin-bottom: 14px;
}
.side-box h4 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.side-box p { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }
.side-info { list-style: none; margin: 0; padding: 0; }
.side-info li {
  font-size: 13.5px; color: var(--ink-soft);
  padding: 8px 0; border-bottom: 1px dashed var(--rule);
  display: grid; grid-template-columns: 62px 1fr; gap: 8px;
}
.side-info li:last-child { border-bottom: 0; }
.side-info li .lb { color: var(--ink-mute); font-size: 12.5px; }
.side-tel {
  display: block; text-align: center; background: var(--accent-deep); color: #fff;
  padding: 15px 16px; border-radius: 999px 999px 999px 6px; text-decoration: none;
  font-weight: 700; font-size: 20px; letter-spacing: 0.02em; transition: all 0.2s ease;
}
.side-tel:hover { background: var(--navy); transform: translateY(-2px); }
.side-tel .s { display: block; font-size: 11.5px; font-weight: 400; opacity: 0.9; letter-spacing: 0.1em; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 9px 0; border-bottom: 1px dashed var(--rule); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { font-size: 14px; color: var(--ink-soft); text-decoration: none; line-height: 1.5; }
.side-list a:hover { color: var(--accent-deep); }

/* ============================================================
   8. 글 목록 / 단일 글
   ============================================================ */
.page-head { max-width: 1080px; margin: 0 auto; padding: 40px 24px 0; }
.page-head .k {
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px;
  letter-spacing: 0.16em; color: var(--accent); margin-bottom: 8px;
}
.page-head h1 { font-size: 34px; margin: 0 0 10px; letter-spacing: -0.03em; }
.page-head p { color: var(--ink-soft); font-size: 15px; margin: 0; }

.entry-content { font-size: 15.5px; color: var(--ink-soft); }
.entry-content h2 {
  position: relative; font-size: 24px; color: var(--ink); margin: 40px 0 16px;
  padding: 0 0 0 18px;
}
.entry-content h2::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px;
  border-radius: 4px; background: linear-gradient(180deg, var(--accent-deep), var(--accent));
}
.entry-content h3 { font-size: 18px; color: var(--ink); margin: 26px 0 10px; }
.entry-content p { margin: 0 0 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px; padding-left: 22px; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: 12px; border: 1px solid var(--rule); }
.entry-content blockquote {
  margin: 0 0 20px; padding: 16px 22px;
  background: var(--paper); border-left: 4px solid var(--accent-deep);
  border-radius: 0 10px 10px 0;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14.5px; }
.entry-content th, .entry-content td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--paper); }

.pager {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--rule);
  font-size: 14px;
}
.pager a { text-decoration: none; color: var(--ink-soft); }
.pager a:hover { color: var(--accent-deep); }

/* ============================================================
   9. CTA 밴드
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(520px 260px at 12% 0%, var(--navy-soft) 0%, rgba(0,0,0,0) 70%),
    var(--navy);
  border: 0; margin-top: 72px; padding: 64px 24px 60px;
}
.cta-band::before {
  content: ""; position: absolute; right: -120px; bottom: -180px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
}
.cta-band .in { position: relative; max-width: 1080px; margin: 0 auto; text-align: center; }
.cta-band .k {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.32em; color: var(--gold); margin-bottom: 14px;
}
.cta-band h2 { font-size: 30px; margin: 0 0 14px; color: #fff; letter-spacing: -0.03em; }
.cta-band p { color: rgba(255,255,255,0.76); font-size: 15px; margin: 0 0 28px; }
/* CTA 버튼 3종 (전화 / 온라인 상담 / 빠른 예약) */
.cta-band .cta-btns {
  display: flex; justify-content: center; align-items: stretch;
  flex-wrap: wrap; gap: 12px;
}
.cta-band .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: #fff; color: var(--accent-deep);
  padding: 15px 30px; border-radius: 999px 999px 999px 6px;
  border: 1.5px solid #fff;
  text-decoration: none; font-weight: 700; font-size: 17px;
  transition: all 0.2s ease; min-width: 236px;
}
.cta-band .btn:hover {
  background: var(--hl); border-color: var(--hl);
  transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.20);
}
.cta-band .btn .ic { font-size: 20px; line-height: 1; flex: none; display: inline-flex; }
.cta-band .btn .ic svg { width: 20px; height: 20px; display: block; }
.cta-band .btn .tx {
  display: flex; flex-direction: column; align-items: center;
  line-height: 1.3; text-align: center;
}
.cta-band .btn .tx em {
  font-style: normal; font-weight: 400; font-size: 12.5px;
  opacity: 0.86; letter-spacing: 0.01em; margin-top: 2px;
}
/* 외곽선 버튼 */
.cta-band .btn.line {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.cta-band .btn.line:hover {
  background: rgba(255,255,255,0.10); color: #fff;
  border-color: #fff; box-shadow: none;
}
.cta-band .cta-note {
  font-size: 12.5px; color: rgba(255,255,255,0.55);
  margin: 22px 0 0;
}
@media (max-width: 720px) {
  .cta-band .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-band .btn { min-width: 0; justify-content: center; padding: 14px 20px; }
  .cta-band .btn .tx { align-items: center; text-align: center; }
}

/* ============================================================
   10. 푸터
   ============================================================ */
.blog-footer {
  background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  margin-top: 0; padding: 54px 24px 46px;
}
.blog-footer .in {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px;
}
/* "바로가기" 열을 끄면 두 칸으로 (사용자 정의하기 → 푸터) */
.blog-footer .in.cols-2 { grid-template-columns: 1.4fr 1fr; gap: 40px; }
@media (max-width: 780px) {
  .blog-footer .in,
  .blog-footer .in.cols-2 { grid-template-columns: 1fr; gap: 24px; }
}
.blog-footer .fh {
  font-family: "Noto Serif KR", serif; font-weight: 700; font-size: 16.5px;
  color: #fff; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.blog-footer .fh::before {
  content: ""; width: 14px; height: 1.5px; background: var(--gold);
}
.blog-footer p, .blog-footer li { font-size: 13.5px; color: rgba(255,255,255,0.66); margin: 0 0 7px; }
.blog-footer ul { list-style: none; margin: 0; padding: 0; }
.blog-footer a { color: rgba(255,255,255,0.66); text-decoration: none; }
.blog-footer a:hover { color: #fff; }
.blog-footer .copy {
  max-width: 1080px; margin: 34px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; color: rgba(255,255,255,0.52); line-height: 1.85;
}
.blog-footer .copy .disclaimer { color: rgba(255,255,255,0.80); }

/* ============================================================
   11. 퀵메뉴 (반응형 플로팅 메뉴)
   표시 방식은 nav 클래스로 결정:
     .bb-quick--responsive  PC 세로 + 모바일(≤768px) 하단 (기본)
     .bb-quick--right       항상 오른쪽 세로
     .bb-quick--bottom      항상 하단 가로
   색상은 인라인 변수(--qm-color / --qm-bg)로 제어됩니다.
   ============================================================ */

/* --- 기본 모양 = 세로(우측). 모든 모드가 여기서 시작 --- */
.bb-quick {
  position: fixed;
  right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 60;
  display: flex; flex-direction: column;
  background: var(--qm-bg, #fff);
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
}
.bb-quick a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  min-width: 66px; padding: 12px 14px;
  text-decoration: none;
  color: var(--qm-color, #333);
  font-size: 11.5px; font-weight: 500; letter-spacing: -0.01em;
  border-top: 1px solid #f2f2f2;
  transition: background 0.15s ease;
}
.bb-quick a:first-child { border-top: 0; }
.bb-quick a:hover { background: #f5f5f5; }
.bb-quick .ic { display: inline-flex; }
.bb-quick svg { width: 23px; height: 23px; display: block; }
.bb-quick .lb { line-height: 1.1; }

/* --- 하단 가로바 모양 ---
   (1) '하단만' 모드는 항상, (2) '둘 다' 모드는 768px 이하에서 적용 --- */
.bb-quick--bottom {
  right: 0; left: 0; bottom: 0; top: auto;
  transform: none;
  width: 100%;
  flex-direction: row;
  border: 0; border-top: 1px solid #eaeaea;
  border-radius: 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.bb-quick--bottom a {
  flex: 1 1 0; min-width: 0;
  height: 64px; padding: 8px 4px;
  border-top: 0; border-left: 1px solid #f2f2f2;
  font-size: 11px;
}
.bb-quick--bottom a:first-child { border-left: 0; }
.bb-quick--bottom svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
  .bb-quick--responsive {
    right: 0; left: 0; bottom: 0; top: auto;
    transform: none;
    width: 100%;
    flex-direction: row;
    border: 0; border-top: 1px solid #eaeaea;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bb-quick--responsive a {
    flex: 1 1 0; min-width: 0;
    height: 64px; padding: 8px 4px;
    border-top: 0; border-left: 1px solid #f2f2f2;
    font-size: 11px;
  }
  .bb-quick--responsive a:first-child { border-left: 0; }
  .bb-quick--responsive svg { width: 22px; height: 22px; }
}

/* --- 하단바가 콘텐츠를 가리지 않도록 body 하단 여백 --- */
body.bb-qm-bottom { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (max-width: 768px) {
  body.bb-qm-responsive { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   L4 · 인포형 오버레이
   ------------------------------------------------------------
   base(에디토리얼) 뒤에 이어 붙는 층입니다. DOM 은 그대로 두고
   본문 섹션을 흰 패널로 끊고, 본문 안에 쓰는 시각 요소 네 가지
   (층위바 · 비교표 · 분기경로 · 타임라인/단계)를 추가합니다.

   ★ 미디어쿼리는 반드시 base 와 같은 깊이로 적습니다.
     (base 의 .sec .deflist .row h3.t 처럼 깊은 선택자가
      얕은 미디어쿼리를 이기는 사고가 있었습니다)
   ============================================================ */

/* ---------- 섹션을 흰 패널로 ---------- */
.main .sec {
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-m);
  padding: 30px 28px 10px;
  margin: 0 0 26px;
  box-shadow: 0 1px 0 rgba(18, 32, 31, 0.03);
}
.main .sec > .k {
  display: inline-block;
  background: var(--paper);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 5px 13px 4px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-indent: 0.14em;          /* 자간이 마지막 글자 뒤에 붙는 것 상쇄 */
  line-height: 1.1;
  margin-bottom: 12px;
}
.main .sec > .k::before { content: none; }
.main .sec h2 {
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.38;
}
.main .sec h2::before { content: none; }

/* ---------- 층위바 — 깊이 도식 ---------- */
.lvbar { margin: 6px 0 26px; display: grid; gap: 8px; }
.lvbar .lv {
  position: relative;
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px 14px 18px;
  background: linear-gradient(90deg, var(--paper), #fff 86%);
  border-left: 5px solid var(--accent);
  border-radius: 10px;
}
.lvbar .lv:nth-child(1) { border-left-color: #a8c9c7; }
.lvbar .lv:nth-child(2) { border-left-color: #6fa8a4; }
.lvbar .lv:nth-child(3) { border-left-color: var(--accent); }
.lvbar .lv:nth-child(4) { border-left-color: var(--accent-deep); }
.lvbar .lv::after {
  content: attr(data-d);
  position: absolute;
  top: 13px; right: 14px;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.main .sec .lvbar .lv h3.t {
  margin: 0;
  padding: 0;
  font-size: 15px;
  color: var(--accent-deep);
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 0;
}
.main .sec .lvbar .lv h3.t::before { content: none; }
.lvbar .lv .d { font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; padding-right: 54px; }

/* ---------- 비교표 ---------- */
.cmp {
  margin: 6px 0 26px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.cmp .hd,
.cmp .rw {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 1fr 1.25fr;
  gap: 0;
}
.cmp .hd {
  background: var(--navy);
}
.cmp .hd span {
  padding: 11px 12px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #e8f1f0;
  font-weight: 500;
}
.cmp .rw { border-top: 1px solid var(--rule-soft); background: #fff; }
.cmp .rw:nth-child(odd) { background: var(--cream); }
.cmp .rw span,
.main .sec .cmp .rw h3.nm {
  padding: 13px 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
  border: 0;
  letter-spacing: -0.01em;
}
.main .sec .cmp .rw h3.nm {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 14.5px;
  background: #f3f9f8;   /* rgba 로 두면 명암비 검사가 알파를 못 읽습니다 */
}
.main .sec .cmp .rw h3.nm::before { content: none; }

/* ---------- 분기 경로 ---------- */
.route { margin: 6px 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.route .rt {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 16px 18px;
  background: #fff;
}
.route .rt .q {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.5;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--rule);
}
.route .rt .q::before {
  content: 'IF';
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--accent);
  margin-bottom: 5px;
}
.route .rt .a { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* ---------- 타임라인 ---------- */
.tl { margin: 6px 0 26px; position: relative; padding-left: 4px; }
.tl::before {
  content: '';
  position: absolute;
  left: 21px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--rule));
}
.tl .nd { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 0 0 16px; }
.tl .nd:last-child { padding-bottom: 0; }
.tl .nd .n {
  position: relative;
  z-index: 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.tl .nd .b {
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  padding: 12px 15px 13px;
  background: var(--cream);
}
.main .sec .tl .nd .b h3.t {
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  font-size: 14.5px;
  color: var(--accent-deep);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.main .sec .tl .nd .b h3.t::before { content: none; }
.tl .nd .b .d { font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; }

/* ---------- 단계 카드 ---------- */
.steps { margin: 6px 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps .st {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 16px;
  background: linear-gradient(165deg, var(--paper), #fff 70%);
}
.steps .st .k {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 11px;
}
.main .sec .steps .st h3.t {
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.main .sec .steps .st h3.t::before { content: none; }
.steps .st .d { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 860px) {
  .route { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .main .sec { padding: 24px 18px 6px; }
  .cmp .hd { display: none; }
  .cmp .rw { grid-template-columns: 1fr; }
  .cmp .rw span,
  .main .sec .cmp .rw h3.nm { padding: 9px 14px; }
  .main .sec .cmp .rw h3.nm { padding-top: 13px; font-size: 15px; }
  .cmp .rw span:nth-of-type(1)::before { content: '원료 · '; color: var(--ink-mute); }
  .cmp .rw span:nth-of-type(2)::before { content: '맡는 자리 · '; color: var(--ink-mute); }
  .cmp .rw span:nth-of-type(3)::before { content: '함께 보는 고민 · '; color: var(--ink-mute); }
  .cmp .rw:last-child span:last-of-type { padding-bottom: 14px; }
  .lvbar .lv { grid-template-columns: 1fr; gap: 6px; padding-right: 14px; }
  .lvbar .lv .d { padding-right: 0; }
  .lvbar .lv::after { position: static; display: block; margin-bottom: 2px; }
  .tl .nd { grid-template-columns: 36px 1fr; gap: 10px; }
  .tl::before { left: 17px; }
  .tl .nd .n { width: 30px; height: 30px; font-size: 13px; }
}

/* 어두운 배경(CTA 밴드·푸터)의 보조색은 밝은 쪽을 씁니다.
   같은 --gold 를 쓰면 딥 틸 배경에서 명암비가 3:1 아래로 떨어집니다. */
.cta-band .k { color: var(--gold-on-dark); }
.blog-footer .side-h,
.blog-footer .k { color: var(--gold-on-dark); }


/* ============================================================
   강서구치과 진료 길잡이 — 추가 부품 (표 · 숫자 띠)
   ============================================================ */
.gtbl-wrap { margin: 6px 0 26px; border: 1px solid var(--rule); border-radius: 12px; overflow-x: auto; }
.gtbl { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; background: #fff; margin: 0; }
.gtbl th, .gtbl td { padding: 12px 13px; text-align: left; vertical-align: middle; border: 0; border-top: 1px solid var(--rule-soft); }
.gtbl thead th { background: var(--navy); color: #e8f4f1; font-weight: 600; font-size: 13px; letter-spacing: .02em; border-top: 0; }
.gtbl tbody th { background: #eef8f5; color: var(--accent-deep); font-weight: 700; width: 26%; }
.gtbl tbody tr:nth-child(even) td { background: var(--cream); }
.gtbl td { color: var(--ink-soft); }
@media (max-width: 560px) {
  .gtbl-wrap { border: 0; overflow: visible; }
  .gtbl thead { display: none; }
  .gtbl, .gtbl tbody, .gtbl tr, .gtbl th, .gtbl td { display: block; width: 100%; }
  .gtbl tr { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; margin: 0 0 10px; }
  .gtbl tbody th { width: 100%; border-top: 0; }
  .gtbl tbody tr:nth-child(even) td { background: #fff; }
  .gtbl td::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
}
.stat4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 4px; }
.stat4 .s { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 12px 8px; text-align: center; }
.stat4 .s b { display: block; font-size: 24px; line-height: 1.2; color: var(--accent); font-weight: 800; }
.stat4 .s span { display: block; font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
@media (max-width: 560px) { .stat4 { grid-template-columns: repeat(2, 1fr); } }

/* 표지 이미지는 본문 이미지 비율 설정과 별개로 원본 비율 유지 */
.cover img, .main .cover img { aspect-ratio: 1176 / 617 !important; height: auto; object-fit: cover; }
