/*
Theme Name: Apt Guide
Theme URI: https://sangdoaptguide.co.kr
Author: Apt Guide
Description: 아파트분양 · 아파트매매 정보 원페이지 테마. 네이버 통합검색 사이트 영역 노출과 이미지 카루셀 확보를 목표로 카드 그리드 · 구조화 데이터 · AEO(질문형 h2 · 정답 한 줄 · FAQ) · 광고 슬롯을 기본 탑재한 설치형 워드프레스 테마입니다.
Design: apple (L4)
Version: 1.0.2
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: apt-guide
Tags: one-column, custom-menu, featured-images, translation-ready, blog
*/

/* ============================================================
   0. 색상 팔레트 — 애플 스타일(L4)
   ★ 색을 바꾸려면 여기만 고칩니다.
   --accent      링크·포인트 (애플 블루)
   --ink-dark    검정 섹션·CTA·푸터
   --gray        섹션 교차 배경
   ============================================================ */
:root {
  --bg: #ffffff;
  --paper: #f5f5f7;
  --gray: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --ink-mute: #6e6e73;
  --ink-faint: #86868b;
  --rule: #d2d2d7;
  --rule-soft: #ececf0;
  --accent: #0071e3;
  --accent-deep: #0066cc;
  --hl: #d9ebff;
  --tag-bg: #f5f5f7;
  --ink-dark: #000000;
  --ink-dark-2: #161617;
  --on-dark: #f5f5f7;
  --on-dark-mute: #a1a1a6;
  --brand: #ff6a3d;          /* 보조 포인트 (라벨·그라데이션) */
  --ok: #30d158;
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 14px;
  --pill: 980px;
}

/* ============================================================
   1. 기본
   ============================================================ */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.012em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }  /* height:auto — 워드프레스가 붙이는 height 속성 때문에 이미지가 늘어나거나 잘리는 것 방지 */
a { color: inherit; }

.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; top: 10px; left: 10px; z-index: 999;
  width: auto; height: auto; clip: auto;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill);
}

/* 스크롤 등장 효과 — JS 가 .in 을 붙입니다 */
.rv { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .07s; } .rv.d2 { transition-delay: .14s; } .rv.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
.no-js .rv { opacity: 1; transform: none; }

/* ============================================================
   2. 헤더 — 2단 스티키 (글로벌 바 + 로컬 바)
   ============================================================ */
.gnav {
  position: sticky; top: 0; z-index: 60; height: 44px;
  background: rgba(250,250,252,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.gnav .inner {
  max-width: 1080px; margin: 0 auto; padding: 0 22px; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.gnav .logo { display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink); min-width: 0; }
.gnav .logo .mk {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
  background: var(--accent-deep); color: #fff;
  display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: 0;
}
.gnav .logo .mk.has-img { background: transparent; }
.gnav .logo .mk.has-img.plain { border: 0; }
.gnav .logo .mk img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 5px; }
.gnav .logo .tx { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.gnav .logo .tx .n { font-size: 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.gnav .logo .tx .s { font-size: 9.5px; letter-spacing: .18em; color: var(--ink-faint); white-space: nowrap; }
.gnav .logo-wide { display: inline-flex; align-items: center; max-width: 100%; line-height: 0; text-decoration: none; }
.gnav .logo-wide img { height: var(--logo-h, 26px); width: auto; max-width: 100%; object-fit: contain; display: block; }
.gnav .gl { font-size: 12.5px; color: var(--ink-mute); text-decoration: none; white-space: nowrap; }
.gnav .gl:hover { color: var(--ink); }

.blog-header {
  position: sticky; top: 44px; z-index: 50;
  background: rgba(255,255,255,.76);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.blog-header .inner {
  max-width: 1080px; margin: 0 auto; padding: 0 22px; min-height: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.blog-header .ltitle { font-size: 20px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.blog-header nav { display: flex; justify-content: flex-end; flex: 1 1 auto; min-width: 0; }
.blog-header nav ul,
.blog-header nav .bb-menu {
  list-style: none !important; margin: 0; padding: 0;
  display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end;
}
.blog-header nav li { list-style: none !important; margin: 0; }
.blog-header nav li::marker { content: ""; }
.blog-header nav a {
  font-size: 12.5px; color: var(--ink-mute); text-decoration: none;
  padding: 4px 0; transition: color .15s;
}
.blog-header nav a:hover { color: var(--ink); }
.blog-header nav .current-menu-item > a { color: var(--ink); }
.blog-header .cta {
  flex-shrink: 0;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 12.5px; font-weight: 500; padding: 5px 13px; border-radius: var(--pill);
  transition: background .15s;
}
.blog-header .cta:hover { background: #0077ed; }
@media (max-width: 920px) {
  .blog-header nav .bb-menu { gap: 14px; }
  .blog-header nav a { font-size: 12px; }
}
@media (max-width: 760px) {
  .gnav .gl { display: none; }
  .blog-header nav { display: none; }
  .blog-header .inner { min-height: 48px; }
  .blog-header .ltitle { font-size: 17px; }
}
@media (max-width: 420px) {
  .gnav .logo .tx .s { display: none; }
  .blog-header .ltitle { font-size: 15.5px; }
  .blog-header .cta { font-size: 11.5px; padding: 5px 11px; }
}

/* ============================================================
   3. 카드 그리드 (헤더 바로 아래)
   ============================================================ */
/* 카드 크기 — 카드 폭에 따라 .svc-size-* 가 자동으로 정해집니다
   (기본값을 :root 에 두어야 자식 요소에서 덮이지 않습니다) */
: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; }

/* 바깥 틀은 본문(.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), minmax(0, 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), minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .post-grid { grid-template-columns: repeat(var(--cols-m, 2), minmax(0, 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: minmax(0, 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; }
}
/* 확인 방법: 사용자 정의하기 화면 왼쪽 아래 기기 아이콘(🖥 💻 📱)을 눌러
   미리보기 크기를 바꾸면 숨김 설정이 그대로 반영됩니다. */
/* ============================================================
   3.5 히어로 (대형 타이포) · 통계 검정 섹션 · 광고 슬롯
   ============================================================ */
.hero-ap {
  text-align: center;
  padding: 72px 22px 56px;
  max-width: 980px; margin: 0 auto;
}
.hero-ap .eyebrow {
  font-size: 19px; font-weight: 600; color: var(--brand);
  margin: 0 0 8px; letter-spacing: -.01em;
}
.hero-ap h1 {
  font-size: clamp(34px, 6.4vw, 72px); line-height: 1.08; font-weight: 700;
  letter-spacing: -.02em; margin: 0; color: var(--ink);
}
.hero-ap h1 .em { color: var(--accent-deep); }
.hero-ap .sub {
  font-size: clamp(17px, 2vw, 22px); line-height: 1.5; font-weight: 500;
  color: var(--ink-mute); margin: 18px auto 0; max-width: 760px;
}
.hero-ap .links {
  display: flex; gap: 24px; justify-content: center; align-items: center;
  margin-top: 26px; flex-wrap: wrap;
}
.hero-ap .btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  border-radius: var(--pill); padding: 11px 24px; font-size: 16px; transition: background .15s;
}
.hero-ap .btn:hover { background: #0077ed; }
.hero-ap .more { color: var(--accent-deep); font-size: 16px; text-decoration: none; }
.hero-ap .more::after { content: " ›"; font-size: 1.15em; }
.hero-ap .more:hover { text-decoration: underline; }
.hero-ap .asof { margin: 22px 0 0; font-size: 13px; color: var(--ink-faint); }
@media (max-width: 560px) { .hero-ap { padding: 48px 20px 40px; } }

/* 검정 숫자 섹션 */
.stats-band { background: var(--ink-dark); color: var(--on-dark); padding: 104px 0; }
.stats-band .in { max-width: 1080px; margin: 0 auto; padding: 0 22px; text-align: center; }
.stats-band h2 {
  font-size: clamp(27px, 4.2vw, 48px); line-height: 1.12; font-weight: 700;
  letter-spacing: -.01em; margin: 0; color: var(--on-dark);
}
.stats-band h2 .em {
  background: linear-gradient(90deg, #ff8a5c, #ffb36b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-band .lead { margin: 16px auto 0; max-width: 680px; font-size: 17px; color: var(--on-dark-mute); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; text-align: left; }
.stats .stat { border-top: 1px solid #424245; padding-top: 22px; min-width: 0; }
.stats .stat b { display: block; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.stats .stat small { display: block; font-size: 19px; font-weight: 600; margin-top: 10px; }
.stats .stat p { margin: 8px 0 0; color: var(--on-dark-mute); font-size: 15.5px; }
@media (max-width: 833px) {
  .stats-band { padding: 72px 0; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: 44px; }
}

/* 광고 슬롯 — 비우면 영역 자체가 출력되지 않습니다 */
.adslot { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.adslot + .adslot { margin-top: 14px; }
.adslot-band { padding-top: 34px; padding-bottom: 6px; }
.adslot a, .adslot .adbox { display: block; text-decoration: none; color: inherit; }
.adslot .adbox {
  position: relative; border-radius: var(--radius-m); overflow: hidden;
  background: var(--gray); border: 1px solid var(--rule-soft);
}
.adslot .adbox img { width: 100%; height: auto; display: block; }
.adslot .admark {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 10.5px; letter-spacing: .08em; line-height: 1;
  background: rgba(0,0,0,.52); color: #fff; border-radius: var(--pill); padding: 5px 9px;
}
.adslot .adtext {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  min-height: 92px; padding: 22px 24px; text-align: center;
}
.adslot .adtext b { font-size: 17px; font-weight: 600; }
.adslot .adtext span { font-size: 14.5px; color: var(--ink-mute); }
.adslot .adtext .go {
  background: var(--ink); color: #fff; border-radius: var(--pill);
  font-size: 14px; padding: 9px 18px; white-space: nowrap;
}
.side .adslot { padding: 0; margin: 0 0 18px; }

/* ============================================================
   4. 본문 레이아웃 (본문 + 우측 사이드바)
   ============================================================ */
.wrap {
  max-width: var(--wrap-max-40b0da);
  margin: 0 auto;
  padding: var(--wrap-pad-40b0da);
  display: grid;
  grid-template-columns: var(--wrap-col-40b0da);
  gap: var(--wrap-gap-40b0da);
  align-items: start;
}
.breadcrumb { font-size: 12.5px; color: var(--ink-faint); margin: 0 0 18px; letter-spacing: -.01em; }
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-deep); }

.post-title {
  font-size: clamp(28px, 4.2vw, 44px); line-height: 1.18; font-weight: 700;
  letter-spacing: -.018em; margin: 0 0 16px;
}
.post-title .em { color: var(--accent-deep); }

.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13px; color: var(--ink-faint);
  padding-bottom: 20px; border-bottom: 1px solid var(--rule-soft); margin-bottom: 30px;
}

/* 통이미지 묶음 — H1 바로 아래 (references/image-stack.md) */
.img-stack {
  margin: 0 0 34px; border: 1px solid var(--rule-soft); border-radius: var(--radius-m);
  overflow: hidden; background: #fff; font-size: 0;
}
.img-stack__link { display: block; line-height: 0; }
.img-stack img {
  display: block; width: 100%; height: auto; margin: 0; border: 0; border-radius: 0;
  aspect-ratio: auto !important; object-fit: fill;
}
.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(--gray);
}
@media (max-width: 560px) { .img-stack { border-radius: var(--radius-s); } }

.cover { margin: 0 0 30px; }
.cover img { width: 100%; border-radius: var(--radius-m); display: block; }
.cover figcaption { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; text-align: center; }

/* 목차 */
.toc { background: var(--gray); border-radius: var(--radius-m); padding: 22px 24px; margin: 0 0 40px; }
.toc .k {
  font-size: 10.5px; letter-spacing: .26em; text-indent: .26em; line-height: 1.1;
  color: var(--ink-faint); margin-bottom: 12px; font-weight: 600;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-size: 15px; margin-bottom: 7px; }
.toc li:last-child { margin-bottom: 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent-deep); text-decoration: underline; }

/* 본문 섹션 */
.sec { margin: 0 0 56px; scroll-margin-top: 112px; }
.sec > .k {
  display: inline-block; font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-indent: .16em; line-height: 1.1;
  color: var(--accent-deep); background: var(--hl);
  padding: 7px 13px; border-radius: var(--pill); margin-bottom: 14px;
}
.sec h2 {
  font-size: clamp(23px, 2.9vw, 32px); line-height: 1.28; font-weight: 700;
  letter-spacing: -.015em; margin: 0 0 14px;
}
.sec h3 { font-size: 18.5px; font-weight: 600; margin: 28px 0 10px; letter-spacing: -.01em; }
.sec p { margin: 0 0 16px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.75; }
.sec img { border-radius: var(--radius-m); margin: 8px 0 20px; display: block; }
.sec figure { margin: 8px 0 24px; }
.sec figure img, .cover img { aspect-ratio: var(--fig-ratio, auto); object-fit: cover; }
@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; }
/* 글 상세 — 특성 이미지 · 본문 이미지는 원본 비율 그대로 (자르지 않음) */
.cover.cover-post img,
.entry-content img { aspect-ratio: auto !important; object-fit: contain; height: auto; max-width: 100%; }
.entry-content img { border-radius: var(--radius-m); }
.entry-content figure { margin: 8px 0 24px; max-width: 100%; }
.sec figcaption { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; }
.hl { background: linear-gradient(transparent 58%, var(--hl) 58%); font-weight: 600; color: var(--ink); }

/* AEO — 섹션 첫 줄의 정답 한 문장 */
.sec p.a {
  font-weight: 600; color: var(--ink); font-size: 17px; line-height: 1.7;
  border-left: 3px solid var(--accent); padding: 2px 0 2px 15px;
  margin: 2px 0 18px;
}

/* 표 */
.deflist { margin: 0 0 22px; border: 1px solid var(--rule-soft); border-radius: var(--radius-s); overflow: hidden; }
.deflist .row { display: grid; grid-template-columns: 30% minmax(0, 70%); border-bottom: 1px solid var(--rule-soft); }
.deflist .row:last-child { border-bottom: 0; }
.deflist .row .t,
.sec .deflist .row h3.t {
  display: flex; align-items: center; justify-content: center;
  background: var(--gray); color: var(--ink); font-weight: 600; font-size: 14.5px;
  margin: 0; padding: 18px 14px; text-align: center; line-height: 1.5;
  border-right: 1px solid var(--rule-soft);
}
.sec .deflist .row h3.t::before { content: none; }
.deflist .row .d { padding: 17px 20px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 560px) {
  .deflist .row { grid-template-columns: minmax(0, 1fr); }
  .deflist .row .t,
  .sec .deflist .row h3.t { justify-content: flex-start; text-align: left; padding: 13px 16px; border-right: 0; border-bottom: 1px solid var(--rule-soft); }
}

/* 체크 목록 */
.checks { list-style: none; margin: 0 0 22px; padding: 0; }
.checks li {
  position: relative; padding: 11px 0 11px 28px; font-size: 16px; color: var(--ink-soft);
  border-bottom: 1px solid var(--rule-soft); line-height: 1.7;
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}
.checks li b { color: var(--ink); font-weight: 600; }

/* 강조 박스 */
.callout { background: var(--gray); border-radius: var(--radius-m); padding: 24px 26px; margin: 0 0 24px; }
.callout p { margin: 0; font-size: 16.5px; color: var(--ink-soft); line-height: 1.75; }
.callout p + p { margin-top: 12px; }

.post-notice {
  margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--rule-soft);
  font-size: 12.5px; line-height: 1.8; color: var(--ink-faint);
}
.notice {
  background: #fff8ed; border: 1px solid #f3dfbe; border-radius: var(--radius-s);
  padding: 16px 18px; margin: 0 0 22px; font-size: 14.5px; color: #6b4a14; line-height: 1.75;
}

/* ============================================================
   4.8 자주 묻는 질문 (AEO)
   ============================================================ */
.faq { margin: 0 0 56px; scroll-margin-top: 112px; }
.faq > .k {
  display: inline-block; font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-indent: .16em; line-height: 1.1;
  color: var(--accent-deep); background: var(--hl);
  padding: 7px 13px; border-radius: var(--pill); margin-bottom: 14px;
}
.faq h2 {
  font-size: clamp(23px, 2.9vw, 32px); line-height: 1.28; font-weight: 700;
  letter-spacing: -.015em; margin: 0 0 18px;
}
.faq-item { border-bottom: 1px solid var(--rule-soft); }
.faq-item:first-of-type { border-top: 1px solid var(--rule-soft); }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em;
  display: flex; justify-content: space-between; gap: 18px; align-items: flex-start;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; font-weight: 300; font-size: 26px; line-height: .9;
  color: var(--ink-faint); transition: transform .25s; flex-shrink: 0;
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item .fa { margin: 0 0 22px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.75; }
/* ============================================================
   5. 네이버 플레이스 카드
   ============================================================ */
.naver-card { margin: 28px 0 8px; }
.naver-card a {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--rule-soft);
  border-radius: var(--radius-s); padding: 18px 22px;
  text-decoration: none; color: inherit; transition: all .18s ease;
}
.naver-card a:hover { border-color: #03c75a; box-shadow: 0 8px 22px rgba(3,199,90,.10); }
.naver-card .badge {
  width: 52px; height: 52px; border-radius: 14px; background: #03c75a; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px;
}
.naver-card .body .k { font-size: 10.5px; letter-spacing: .16em; color: #03a04a; font-weight: 600; margin-bottom: 4px; }
.naver-card .body .h { font-weight: 600; font-size: 16.5px; margin-bottom: 4px; letter-spacing: -.01em; }
.naver-card .body .p { font-size: 13.5px; color: var(--ink-mute); }
.naver-card .arrow {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; transition: all .18s ease;
}
.naver-card a:hover .arrow { background: #03c75a; border-color: #03c75a; color: #fff; }
@media (max-width: 560px) {
  .naver-card a { grid-template-columns: 42px minmax(0, 1fr); }
  .naver-card .badge { width: 42px; height: 42px; font-size: 21px; }
  .naver-card .arrow { display: none; }
}

/* ============================================================
   6. 태그
   ============================================================ */
.tagbar { margin: 34px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.tagbar .tg {
  background: var(--tag-bg); color: var(--ink-mute);
  font-size: 12.5px; padding: 7px 13px; border-radius: var(--pill);
  text-decoration: none; transition: all .18s ease;
}
.tagbar .tg:hover { background: var(--ink); color: #fff; }

/* ============================================================
   7. 사이드바
   ============================================================ */
.side { position: sticky; top: 116px; }
@media (max-width: 920px) { .side { position: static; } }
.side-box { background: var(--gray); border-radius: var(--radius-m); padding: 24px 22px 26px; margin-bottom: 18px; }
.side-h { font-size: 10.5px; letter-spacing: .2em; text-indent: .2em; line-height: 1.1; color: var(--ink-faint); font-weight: 600; margin-bottom: 12px; }
.side-box h4 { font-size: 18px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.01em; }
.side-box p { font-size: 14.5px; color: var(--ink-mute); margin: 0 0 14px; line-height: 1.7; }
.side-info { list-style: none; margin: 0; padding: 0; }
.side-info li {
  font-size: 14px; color: var(--ink-soft); padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px;
}
.side-info li:last-child { border-bottom: 0; }
.side-info li .lb { color: var(--ink-faint); font-size: 12.5px; }
.side-tel {
  display: block; text-align: center; background: var(--ink); color: #fff;
  padding: 15px 16px; border-radius: var(--pill); text-decoration: none;
  font-weight: 700; font-size: 19px; transition: all .18s ease;
}
.side-tel:hover { background: var(--accent); }
.side-tel .s { display: block; font-size: 11px; font-weight: 400; opacity: .78; letter-spacing: .1em; margin-top: 3px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { font-size: 14.5px; color: var(--ink-soft); text-decoration: none; line-height: 1.55; }
.side-list a:hover { color: var(--accent-deep); }

/* ============================================================
   8. 글 목록 / 단일 글
   ============================================================ */
.page-head { max-width: 1080px; margin: 0 auto; padding: 56px 22px 10px; text-align: center; }
.page-head .k { font-size: 10.5px; letter-spacing: .26em; text-indent: .26em; line-height: 1.1; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; font-weight: 700; letter-spacing: -.018em; margin: 0 0 10px; }
.page-head p { color: var(--ink-mute); margin: 0; font-size: 16.5px; }
.pager { max-width: 1080px; margin: 0 auto; padding: 0 22px 64px; display: flex; justify-content: space-between; font-size: 15px; }
.pager a { text-decoration: none; color: var(--ink-soft); }
.pager a:hover { color: var(--accent-deep); }

/* ============================================================
   9. CTA 밴드 (하단 버튼 3칸)
   ============================================================ */
.cta-band { background: var(--gray); padding: 96px 0; }
.cta-band .in { max-width: 860px; margin: 0 auto; padding: 0 22px; text-align: center; }
.cta-band .k { font-size: 10.5px; letter-spacing: .3em; text-indent: .3em; line-height: 1.1; color: var(--brand); font-weight: 600; margin-bottom: 12px; }
.cta-band h2 { font-size: clamp(26px, 3.8vw, 44px); line-height: 1.14; font-weight: 700; letter-spacing: -.016em; margin: 0 0 16px; }
.cta-band > .in > p { color: var(--ink-mute); margin: 0 0 32px; font-size: 17px; line-height: 1.65; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-row a {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  background: #fff; color: var(--ink); text-decoration: none;
  border: 1px solid var(--rule); border-radius: var(--pill);
  padding: 13px 22px; transition: all .18s ease;
}
.cta-row a:hover { border-color: var(--ink); }
.cta-row a.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta-row a.solid:hover { background: #0077ed; border-color: #0077ed; }
.cta-row a svg { width: 19px; height: 19px; flex-shrink: 0; }
.cta-row a .tx { text-align: left; min-width: 0; }
.cta-row a .tx b { display: block; font-size: 15.5px; font-weight: 600; }
.cta-row a .tx span { display: block; font-size: 12px; opacity: .72; }
.cta-band .note { margin: 26px 0 0; font-size: 13px; color: var(--ink-faint); }
@media (max-width: 560px) {
  .cta-band { padding: 68px 0; }
  .cta-row { flex-direction: column; }
  .cta-row a { justify-content: center; }
}

/* ============================================================
   10. 푸터
   ============================================================ */
.blog-footer { background: var(--gray); border-top: 1px solid var(--rule); padding: 44px 0 40px; font-size: 13px; color: var(--ink-mute); }
.blog-footer .in {
  max-width: 1080px; margin: 0 auto; padding: 0 22px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
}
.blog-footer .in.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-footer .fh { font-size: 12px; color: var(--ink); font-weight: 600; margin-bottom: 10px; }
.blog-footer p { margin: 0 0 6px; line-height: 1.75; }
.blog-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.blog-footer a { color: var(--ink-mute); text-decoration: none; }
.blog-footer a:hover { color: var(--ink); }
.blog-footer .copy {
  max-width: 1080px; margin: 32px auto 0; padding: 20px 22px 0;
  border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-faint); line-height: 1.85;
}
.blog-footer .copy .disclaimer { color: var(--ink-mute); font-size: 12.5px; margin-bottom: 10px; }
@media (max-width: 780px) {
  .blog-footer .in,
  .blog-footer .in.cols-2 { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
/* ============================================================
   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)); }
}
/* ============================================================
   모바일 가로 넘침 방지 (스타터 3.4.1 · lessons.md 43번)
   iOS Safari 는 word-break:keep-all 한글 문장의 최소 폭을 크게 잡는다.
   그리드 칸이 1fr 이면 칸이 화면보다 넓어지고, 사파리가 페이지 전체를
   축소해 하단 배너·푸터·퀵메뉴가 화면 왼쪽 반만 차지한다.
   ★ 그리드 칸은 항상 minmax(0, Nfr) 로 쓴다. 아래 블록은 지우지 않는다.
   ============================================================ */
html, body { max-width: 100%; overflow-x: clip; }
.wrap > *, .main, .side, .side-box, .sec, .deflist .row > *, .naver-card a > *, .side-info li > *,
.blog-footer .in > *, .post-grid > *, .nsc-track > *,
.stats > *, .cta-row > *, .adslot > *, .gnav .inner > *, .blog-header .inner > * { min-width: 0; }
.main, .side, .sec, .side-box, .callout, .faq-item, .tagbar,
.hero-ap, .stats .stat, .cta-band .in, .adslot .adtext { overflow-wrap: anywhere; }
@media (max-width: 920px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .tagbar { display: flex; flex-wrap: wrap; }
}
