/*
Theme Name: AptFocus — 계양 서해그랑블 뉴어반
Theme URI: https://aptfocus.co.kr
Author: aptfocus
Description: 서해그랑블분양 · 계양 서해그랑블 뉴어반 지역주택조합 SEO 원페이지 테마. 네이버 통합검색 사이트 영역 노출과 이미지 카루셀 확보를 목표로 카드 그리드 · 구조화 데이터 · AEO(질문형 h2 · 정답 한 줄 · FAQ) · OG 태그를 기본 탑재한 설치형 워드프레스 테마입니다.
Design: editorial (L2)
Version: 1.2.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: aptfocus
Tags: one-column, custom-menu, featured-images, translation-ready, blog
*/

/* ============================================================
   0. 색상 팔레트  —  ★ 여기만 병원 색으로 교체합니다 (기본: 로즈)
   여기 값만 바꾸면 사이트 전체 색이 바뀝니다.
   (병원 로고가 정해지면 --accent-deep 을 로고 색으로 맞추고
    나머지를 그 색조에 맞춰 옅게 파생시키면 됩니다)
   ============================================================ */
:root {
  --bg: #fbfcfe;
  --paper: #eef3fa;
  --ink: #121a24;
  --ink-soft: #3a4a5e;
  --ink-mute: #74839a;
  --rule: #d8e3f1;
  --rule-soft: #e9f0f8;
  --accent: #2f6fbe;        /* 브랜드 미드 블루 */
  --accent-deep: #003072;   /* 브랜드 딥 블루 */
  --hl: #dbe8f8;            /* 형광펜 */
  --tag-bg: #e2ecf8;
  --navy: #001231;          /* CTA·푸터 딥 톤 */
  --navy-soft: #0a2145;
  --cream: #f8f5ec;         /* 따뜻한 크림 (섹션 교차 배경) */
  --gold: #b8912f;          /* 보조 포인트 (라벨·구분선) */
  --shadow-rgb: 0, 18, 49;
  --kern-rev: "r5-b802081";
  --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.94);
  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: 1140px; margin: 0 auto; padding: 56px 24px 0;
  display: grid; grid-template-columns: 1fr 310px; gap: 56px; align-items: start;
}
@media (max-width: 920px) { .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* 히어로 — 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(var(--shadow-rgb), 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;
}

.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(var(--shadow-rgb), 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(var(--shadow-rgb), 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); }

/* 정의형 목록 — 번호가 붙는 에디토리얼 행 */
.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-bottom: 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(var(--shadow-rgb), 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: #fffdfa; 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: #03a04a; 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(var(--shadow-rgb), 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.42); line-height: 1.85;
}

/* ============================================================
   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)); }
}


/* ============================================================
   AEO — 질문형 h2 아래 "정답 한 줄" 블록
   ============================================================ */
.sec p.answer,
.sec .answer {
  margin: 2px 0 20px;
  padding: 14px 18px 14px 20px;
  background: var(--cream);
  border-left: 3px solid var(--accent);
  border-radius: 4px var(--radius-m) var(--radius-m) 4px;
  font-size: 16px; font-weight: 600; line-height: 1.8;
  color: var(--ink);
}

/* ============================================================
   이미지 — 원본 크게 보기 링크
   ============================================================ */
.sec figure a.fig-zoom { display: block; line-height: 0; }
.sec figcaption .zoom-hint {
  display: none; margin-left: 8px; color: var(--accent);
  font-size: 12px; font-weight: 600;
}
@media (max-width: 920px) {
  .sec figcaption .zoom-hint { display: inline; }
}

/* ============================================================
   통이미지 묶음 (H1 아래 세로 스택)
   ============================================================ */
.img-stack { margin: 8px 0 30px; font-size: 0; }
.img-stack img {
  display: block; width: 100%; height: auto;
  aspect-ratio: auto !important;
  border-radius: 0;
}
.img-stack img:first-of-type { border-radius: var(--radius-l) var(--radius-l) 0 0; }
.img-stack img:last-of-type { border-radius: 0 0 var(--radius-l) var(--radius-l); }
.img-stack figcaption {
  font-size: 12.5px; color: var(--ink-mute); margin-top: 12px;
  padding-left: 14px; border-left: 2px solid var(--rule);
}
.img-stack__link { display: block; line-height: 0; }

/* ============================================================
   자주 묻는 질문 (FAQ)
   ============================================================ */
.sec-faq .faq-list { display: grid; gap: 14px; margin: 6px 0 8px; }
.faq-item {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 4px var(--radius-m) var(--radius-m) var(--radius-m);
  padding: 20px 22px;
  box-shadow: 0 10px 28px rgba(var(--shadow-rgb), 0.05);
}
.sec .faq-item h3.faq-q {
  font-family: "Noto Serif KR", serif;
  margin: 0 0 8px; padding: 0;
  font-size: 16.5px; font-weight: 700; line-height: 1.6;
  color: var(--accent-deep);
}
.sec .faq-item h3.faq-q::before { content: "Q."; margin-right: 7px; color: var(--gold); font-family: "IBM Plex Mono", monospace; font-size: 14px; }
.sec .faq-item p.faq-a { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.85; }

/* ============================================================
   견본주택 갤러리
   ============================================================ */
.unit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 8px 0 24px;
}
.unit-grid figure { margin: 0; }
.unit-grid img {
  width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-m);
  box-shadow: 0 10px 26px rgba(var(--shadow-rgb), 0.08);
}
.unit-grid figcaption {
  font-size: 12.5px; color: var(--ink-mute); margin-top: 9px;
  padding-left: 0; border-left: 0;
}
@media (max-width: 920px) { .unit-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; } }
@media (max-width: 480px) { .unit-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ============================================================
   연락처 블록 (FAQ 뒤)
   ============================================================ */
.contact-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 24px; }
.contact-btns .cbtn {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border-radius: var(--radius-m);
  background: var(--accent-deep); color: #fff; text-decoration: none;
  border: 1.5px solid var(--accent-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-btns .cbtn.line { background: #fff; color: var(--accent-deep); }
.contact-btns .cbtn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(var(--shadow-rgb), 0.16); }
.contact-btns .cbtn .ic { flex: 0 0 auto; line-height: 0; }
.contact-btns .cbtn .ic svg { width: 21px; height: 21px; }
.contact-btns .cbtn .tx { display: flex; flex-direction: column; font-size: 15px; font-weight: 700; line-height: 1.4; }
.contact-btns .cbtn .tx em { font-style: normal; font-weight: 500; font-size: 12.5px; opacity: 0.78; }
@media (max-width: 720px) { .contact-btns { grid-template-columns: 1fr; } }

/* ============================================================
   헤더 가로형 로고 — 비율은 절대 고정하지 않습니다
   ============================================================ */
.blog-header .logo-wide { display: inline-flex; align-items: center; max-width: 100%; line-height: 0; }
.blog-header .logo-wide img {
  height: var(--logo-h, 44px);
  width: auto;              /* ★ 비율 유지의 핵심. 폭을 함께 지정하면 눌립니다 */
  max-width: 100%; object-fit: contain; display: block;
}
@media (max-width: 920px) { .blog-header .logo-wide img { height: calc(var(--logo-h, 44px) * 0.88); } }
@media (max-width: 560px) { .blog-header .logo-wide img { height: calc(var(--logo-h, 44px) * 0.80); } }
@media (max-width: 400px) { .blog-header .logo-wide img { height: calc(var(--logo-h, 44px) * 0.66); } }

/* ============================================================
   푸터 고지 문구 — 어두운 배경에서 읽히도록 명암비 확보
   ============================================================ */
.blog-footer .copy .disclaimer {
  color: rgba(255, 255, 255, 0.80);
  font-size: 12.5px; line-height: 1.75;
  max-width: 980px; margin: 0 auto 10px; text-align: left;
}
.blog-footer .copy { color: rgba(255, 255, 255, 0.72); }

/* ============================================================
   퀵메뉴 — 항목이 6개를 넘을 때 좁은 화면 보정
   ============================================================ */
@media (max-width: 430px) {
  .bb-quick--bottom .lb, .bb-quick--responsive .lb { font-size: 10px; letter-spacing: -0.02em; }
  .bb-quick--bottom .ic svg, .bb-quick--responsive .ic svg { width: 19px; height: 19px; }
}


/* 한글 조판 보정 대상 블록 */
.kern-46b342 { --kern-scope: 1; letter-spacing: normal; }
.kern-46b342 .sec p { hanging-punctuation: allow-end; }

/* ============================================================
   글 하단 고지 문구 (single.php)
   ============================================================ */
.post-notice {
  margin: 28px 0 0;
  padding: 16px 18px;
  background: #f4f7fb;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-mute);
}
