/* 도어락 마스터 (dupageneighbors.com) — "현관 키패드". 모바일 우선, 1024px 에서 2단. 토큰은 base.html :root */

/* ── 1. 기본 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere;
}
/* 하단 고정 전화 바가 마지막 내용을 가리지 않게 (바 높이 + 안전 영역 + 여유) */
body.has-cta-bar { padding-bottom: calc(var(--cta-bar-h) + env(safe-area-inset-bottom, 0px) + 20px); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #163b7a; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.num, time.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ico { flex: none; }
.skiplink { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: var(--radius-sm); }
.skiplink:focus { left: 8px; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; line-height: 1.35; color: var(--text); letter-spacing: -0.01em; }

/* ── 2. 헤더 ─────────────────────────────────────────── */
.dm-head { position: sticky; top: 0; z-index: 40; background: var(--primary); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.dm-head__in {
  max-width: var(--container); margin: 0 auto; padding: 0 16px; min-height: var(--head-h);
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand call" "nav nav"; align-items: center; column-gap: 12px;
}
.wordmark { grid-area: brand; display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; min-height: var(--head-h); }
.wordmark:hover { color: #fff; }
.wordmark__name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.dm-nav { grid-area: nav; margin: 0 -16px; position: relative; }
.dm-nav ul {
  list-style: none; margin: 0; padding: 0 16px 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.dm-nav ul::-webkit-scrollbar { display: none; }
.dm-nav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  color: #e3e8ef; text-decoration: none; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.08);
}
.dm-nav a:hover { background: rgba(255,255,255,.16); color: #fff; }
.dm-nav a[aria-current="page"] { background: #fff; color: var(--primary); }
.dm-head .call-btn--head { grid-area: call; justify-self: end; display: none; }

/* ── 3. 전화 버튼 · 하단 바 · 상담 카드 ─────────────────── */
.call-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: var(--radius); background: var(--cta); color: #fff; text-decoration: none; font-weight: 800; font-size: 16px;
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
}
.call-btn:hover { background: var(--cta-hover); color: #fff; }
.call-btn__num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.call-btn--block, .call-btn--wide { display: flex; width: 100%; }
.call-btn--hero { min-height: 56px; font-size: 17px; padding: 0 22px; }
.call-btn--head { min-height: 40px; padding: 0 14px; font-size: 14px; }

.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--primary);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 18px rgba(27,36,48,.18);
}
.cta-bar__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: var(--radius);
  background: var(--cta); color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; max-width: 560px; margin: 0 auto;
}
.cta-bar__btn:hover { background: var(--cta-hover); color: #fff; }
.cta-bar__num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

.call-card { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 18px; }
.call-card__h { margin: 0; font-size: 15px; color: #cfd6df; font-weight: 700; }
.call-card__num { margin: 4px 0 10px; font-family: var(--mono); font-size: 24px; font-variant-numeric: tabular-nums; color: #fff; }
.call-card__dl { margin: 0 0 14px; font-size: 14px; }
.call-card__dl div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.12); }
.call-card__dl dt { color: #aeb8c4; }
.call-card__dl dd { margin: 0; }
.call-card__note { margin: 10px 0 0; font-size: 13px; color: #aeb8c4; line-height: 1.5; }

/* ── 4. 레이아웃 공통 ─────────────────────────────────── */
.stage { display: block; }
.band { max-width: var(--container); margin: 0 auto; padding: 36px 16px 8px; }
.band--flat { padding: 0; margin: 0 0 36px; max-width: none; }
.band__head { margin-bottom: 16px; }
.band__h { margin: 0 0 6px; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.band__h::before { content: ""; width: 4px; height: 1.05em; border-radius: 2px; background: var(--accent); flex: none; }
.band__h--sm { font-size: 18px; }
.band__sub { margin: 0; color: var(--text-dim); font-size: 15px; }
.empty-note { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 18px; color: var(--text-dim); margin: 0; }
.trail ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--text-dim); }
.trail li + li::before { content: "›"; margin-right: 4px; color: #9aa3ae; }
.trail a { color: var(--text-dim); text-decoration: none; }
.trail a:hover { color: var(--link); text-decoration: underline; }
.trail [aria-current] { color: var(--text); display: inline-block; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.chip-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--bg-soft); color: var(--text); font-size: 14px; text-decoration: none; }
.chip--link:hover { background: var(--link-soft); color: var(--link); }

/* 키패드 무늬 자리 (사진 없을 때) */
.kp-ph {
  display: flex; align-items: flex-end; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden;
  background-color: #2c3848;
  background-image: radial-gradient(circle at center, rgba(233,237,242,.34) 0 3px, transparent 3.5px);
  background-size: 18px 18px; background-position: 9px 9px;
}
.kp-ph__label { display: block; padding: 8px 10px; color: #fff; font-weight: 700; font-size: 13px; line-height: 1.4; background: linear-gradient(transparent, rgba(27,36,48,.85)); width: 100%; }
.kp-ph:empty, .kp-ph__label:empty { padding: 0; }
.kp-ph--cover { aspect-ratio: 16 / 7; }

/* ── 5. 홈 ───────────────────────────────────────────── */
.hero {
  background-color: var(--primary); color: #fff;
  background-image: radial-gradient(circle at center, rgba(255,255,255,.07) 0 2.5px, transparent 3px);
  background-size: 22px 22px;
}
.hero__in { max-width: var(--container); margin: 0 auto; padding: 28px 16px 32px; display: grid; gap: 24px; }
.hero__eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.hero__title { margin: 0 0 12px; color: #fff; font-size: 28px; line-height: 1.3; }
.hero__lede { margin: 0 0 20px; color: #d3dae3; font-size: 16px; max-width: 34em; }
.hero__call { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hero__hours { margin: 0; color: #c2cad5; font-size: 14px; }
.keypad {
  display: none; position: relative; width: 220px; padding: 22px 22px 46px; border-radius: 22px; justify-self: center;
  background: linear-gradient(160deg, #2f3c4d, #222c39); border: 2px solid var(--accent);
  grid-template-columns: repeat(3, 1fr); gap: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.keypad__k {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%;
  background: rgba(233,237,242,.1); color: #e9edf2; font-family: var(--mono); font-size: 20px; box-shadow: inset 0 0 0 1px rgba(233,237,242,.18);
}
.keypad__led { position: absolute; left: 50%; bottom: 18px; width: 44px; height: 8px; margin-left: -22px; border-radius: 4px; background: var(--cta); box-shadow: 0 0 12px rgba(180,35,24,.8); }

.rtabs__list { display: flex; gap: 6px; margin-bottom: 14px; }
.rtabs__tab {
  flex: 1; min-height: 44px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm);
  font: inherit; font-weight: 800; color: var(--text-dim); cursor: pointer;
}
.rtabs__tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.rtabs__ph { margin: 0 0 10px; font-size: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rtabs__ph a { font-size: 14px; font-weight: 700; }
.js .rtabs__ph { display: none; }
.js .rtabs__panel[data-hidden] { display: none; }
.rtabs__panel + .rtabs__panel { margin-top: 22px; }
.js .rtabs__panel + .rtabs__panel { margin-top: 0; }
.region-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.region-grid a {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 6px 4px; text-align: center;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text);
  text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.3;
}
.region-grid a:hover { border-color: var(--link); color: var(--link); }
.region-grid__n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

.case-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.case-tile { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; position: relative; }
.case-tile::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: var(--primary); }
.case-tile__media { position: relative; display: block; align-self: start; }
.case-tile__media img, .case-tile__media .kp-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.case-tile__badge { position: absolute; left: 6px; top: 6px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.case-tile__where { margin: 0 0 2px; font-size: 13px; color: var(--text-dim); font-weight: 700; }
.case-tile__title { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }
.case-tile__title a { color: var(--text); text-decoration: none; }
.case-tile__title a:hover { color: var(--link); text-decoration: underline; }
.case-tile__swap { margin: 0 0 6px; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--text); }
.case-tile__arrow { color: var(--cta); font-weight: 800; }
.case-tile__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.svc__a { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico name" "ico desc"; column-gap: 10px; padding: 14px 12px; min-height: 76px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
a.svc__a:hover { border-color: var(--link); }
.svc__ico { grid-area: ico; color: var(--accent-ink); align-self: center; }
.svc__name { grid-area: name; font-weight: 800; font-size: 15px; }
.svc__desc { grid-area: desc; font-size: 13px; color: var(--text-dim); line-height: 1.45; }
.svc:last-child:nth-child(odd) { grid-column: 1 / -1; }

.split-band { display: grid; gap: 24px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.post-row:last-child { border-bottom: 1px solid var(--border); }
.post-row__cat { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.post-row__title { margin: 0 0 4px; font-size: 16px; line-height: 1.45; }
.post-row__title a { color: var(--text); text-decoration: none; }
.post-row__title a:hover { color: var(--link); text-decoration: underline; }
.post-row__sum { margin: 0 0 4px; font-size: 14px; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row__date { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.post-row__thumb img, .post-row__thumb .kp-ph { width: 96px; height: 72px; aspect-ratio: auto; object-fit: cover; border-radius: var(--radius-sm); }
.mini-list { margin: 0; padding: 0; list-style: none; counter-reset: m; }
.mini-list li { counter-increment: m; border-top: 1px solid var(--border); }
.mini-list a { display: grid; grid-template-columns: 2em 1fr; padding: 10px 0; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.45; }
.mini-list a::before { content: counter(m, decimal-leading-zero); font-family: var(--mono); color: var(--accent-ink); font-weight: 500; grid-row: span 2; }
.mini-list__cat { font-size: 12px; color: var(--text-dim); font-weight: 400; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow__s { display: grid; grid-template-columns: 40px 1fr; grid-template-areas: "n t" "n d"; column-gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.flow__n { grid-area: n; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); }
.flow__s strong { grid-area: t; font-size: 16px; }
.flow__s span:last-child { grid-area: d; color: var(--text-dim); font-size: 14px; }
.flow__cta { margin-top: 14px; }

.faq-list { display: grid; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 800; position: relative; min-height: 48px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 20px; color: var(--accent-ink); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 16px 16px; color: var(--text); }
.faq-band { padding-bottom: 40px; }

/* ── 6. 카테고리(지역 허브)·태그 ───────────────────────── */
.hub-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.hub-head--region { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.hub-head__in { max-width: var(--container); margin: 0 auto; padding: 20px 16px 22px; }
.hub-head__title { margin: 0 0 8px; font-size: 26px; }
.hub-head__desc { margin: 0 0 10px; color: var(--text-dim); max-width: 46em; }
.hub-head__count { margin: 0; font-size: 14px; color: var(--text-dim); }
.hub-head__count .num { color: var(--text); font-weight: 500; }
.hub-head__call { margin-top: 14px; }
.hub-grid, .post-grid { max-width: var(--container); margin: 0 auto; padding: 28px 16px 8px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.hub-side, .post-side { display: none; }
.case-grid--2 { grid-template-columns: 1fr; }
.side-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.side-box__h { margin: 0 0 8px; font-size: 15px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: block; padding: 8px 0; color: var(--text); text-decoration: none; border-top: 1px solid var(--border); font-size: 15px; }
.side-links li:first-child a { border-top: 0; }
.side-links a:hover, .side-links a[aria-current] { color: var(--link); }
.side-sticky { display: grid; gap: 16px; }

/* ── 7. 글 ───────────────────────────────────────────── */
.post-head { max-width: var(--container); margin: 0 auto; padding: 20px 16px 0; }
.post-head__cat { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 700; }
.post-head__cat a { text-decoration: none; color: var(--accent-ink); }
.post-head__kind { background: var(--accent-soft); color: var(--accent-ink); padding: 1px 8px; border-radius: 4px; }
.post-head__title { margin: 0 0 10px; font-size: 26px; line-height: 1.35; }
.post-head__lede { margin: 0 0 10px; font-size: 17px; color: var(--text-dim); }
.post-head__by { margin: 0; font-size: 14px; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.post-head__author { font-weight: 800; color: var(--text); }
.post-cover { max-width: var(--container); margin: 16px auto 0; padding: 0 16px; }
.post-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--bg-soft); }
.post-foot { margin-top: 28px; display: grid; gap: 10px; }
.post-foot__upd { margin: 0; font-size: 13px; color: var(--text-dim); }
.related { margin-top: 32px; }
.related__more { margin: 12px 0 0; font-weight: 700; }
.post-list--compact .post-row__sum { display: none; }

/* ── 8. 본문 (.post-body) 표준 컴포넌트 + 사이트 블록 ────── */
.post-body { font-size: 17px; line-height: 1.8; }
.post-body > * { margin-top: 0; margin-bottom: 1em; }
.post-body h2 { margin: 2.1em 0 .7em; font-size: 22px; padding-left: 14px; border-left: 4px solid var(--accent); line-height: 1.4; }
.post-body h3 { margin: 1.6em 0 .5em; font-size: 18px; }
.post-body h4 { margin: 0 0 .4em; font-size: 16px; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .3em; }
.post-body strong { font-weight: 800; }
.post-body blockquote { margin: 1.4em 0; padding: 14px 18px; background: var(--link-soft); border-left: 4px solid var(--link); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body blockquote cite { display: block; margin-top: 6px; font-size: 13px; color: var(--text-dim); font-style: normal; }
.post-body figure { margin: 1.4em 0; }
.post-body figure img { width: 100%; border-radius: var(--radius); background: var(--bg-soft); }
.post-body figure > img { aspect-ratio: 4 / 3; object-fit: cover; }
.post-body figcaption { margin-top: 6px; font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.post-body hr, .post-body .divider { border: 0; height: 1px; background: var(--border); margin: 2em 0; }
.post-body .lead { font-size: 19px; font-weight: 700; }
.post-body .highlight { background: linear-gradient(transparent 60%, var(--accent-soft) 60%); }
.post-body .pull-quote { font-size: 20px; font-weight: 800; border-top: 3px solid var(--primary); border-bottom: 1px solid var(--border); padding: 14px 0; }
.post-body kbd, .post-body .kbd { font-family: var(--mono); font-size: .85em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }

/* 알림 박스 — 배지는 텍스트("주의"·"광고")로, 색만으로 구분하지 않는다 */
.post-body :is(.warn-box, .info-box, .success-box, .error-box, .note-box) {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 14px 16px; border-radius: var(--radius-sm); border-left: 4px solid; font-size: 16px; line-height: 1.65;
}
.post-body :is(.warn-box, .info-box, .success-box, .error-box, .note-box) > :not(.badge) { min-width: 0; }
.post-body :is(.warn-box, .info-box, .success-box, .error-box, .note-box) p:last-child { margin-bottom: 0; }
.post-body .badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 800; white-space: nowrap; color: #fff; background: var(--primary); }
.post-body .warn-box { background: var(--cta-soft); border-color: var(--cta); }
.post-body .warn-box .badge { background: var(--cta); }
.post-body .error-box { background: var(--cta-soft); border-color: #7a1209; }
.post-body .error-box .badge { background: #7a1209; }
.post-body .info-box { background: var(--link-soft); border-color: var(--link); }
.post-body .info-box .badge { background: var(--link); }
.post-body .success-box { background: var(--ok-soft); border-color: var(--ok); }
.post-body .success-box .badge { background: var(--ok); }
.post-body .note-box { background: var(--bg-soft); border-color: #8792a0; }
.post-body .note-box .badge { background: #4c5664; }
/* 광고·후기 고지 (글 맨 앞) */
.post-body .note-box.ad-disclosure { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.post-body .note-box.ad-disclosure .badge { background: var(--accent-ink); }

.post-body :is(.summary-box, .key-points, .prep-box, .toc-box) { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.post-body :is(.summary-box, .key-points, .prep-box, .toc-box) :is(h3, h4) { margin: 0 0 8px; font-size: 16px; }
.post-body :is(.summary-box, .key-points, .toc-box) :is(ul, ol) { margin: 0; }
.post-body .summary-box { border-top: 4px solid var(--primary); }
.post-body .key-points { border-top: 4px solid var(--accent); }
.post-body .prep-grid { display: grid; gap: 6px; }
.post-body .prep-grid > div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--border); padding-top: 6px; }
.post-body .prep-grid > div > span:last-child { font-family: var(--mono); white-space: nowrap; }

/* 한눈에 박스 · 사례 카드 (.stats-grid 패턴) */
.post-body .stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-body .stats-grid .stat { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.post-body .stats-grid .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.post-body .stat .label { font-size: 13px; color: var(--text-dim); }
.post-body .stat .value { font-weight: 800; font-size: 16px; line-height: 1.45; }
.post-body .stat .value.num, .post-body .stat .value .num { font-family: var(--mono); font-weight: 500; }

.post-body .case-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 14px 16px 16px; }
.post-body .case-card__h { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.post-body .case-card__h .badge { background: var(--primary); }
.post-body .case-card dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.post-body .case-card dl > div { min-width: 0; }
.post-body .case-card dt { font-size: 13px; color: var(--text-dim); }
.post-body .case-card dd { margin: 0; font-weight: 800; font-size: 15px; line-height: 1.45; }
.post-body .case-card dd.num { font-family: var(--mono); font-weight: 500; }
.post-body .case-card .case-card__swap { grid-column: 1 / -1; background: var(--bg); border-radius: var(--radius-sm); padding: 8px 10px; }
.post-body .case-card .case-card__swap dd { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.post-body .case-card .case-card__swap dd span[aria-hidden] { color: var(--cta); }
.post-body .case-card .case-card__full { grid-column: 1 / -1; }

/* 사진 갤러리 — 모바일 가로 스와이프, 데스크톱 3열 */
.post-body .case-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; counter-reset: g;
  overscroll-behavior-x: contain;
}
.post-body .case-gallery figure { margin: 0; scroll-snap-align: start; counter-increment: g; position: relative; }
.post-body .case-gallery figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.post-body .case-gallery figure::before { content: counter(g); position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--mono); font-size: 13px; display: flex; align-items: center; justify-content: center; z-index: 1; }

.post-body .image-grid, .post-body .before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.post-body .image-grid figure { margin: 0; }
.post-body .before-after > div { position: relative; }
.post-body .before-after .label { position: absolute; left: 8px; top: 8px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 4px; }
.post-body .before-after img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }

/* 표 · 가격표 — 넘치면 가로 스크롤 + 가장자리 그림자, 720px 이하는 행 카드 (site.js) */
.post-body .scroll-x {
  overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--border); border-radius: var(--radius);
  background:
    linear-gradient(90deg, var(--surface) 30%, rgba(255,255,255,0)) 0 0 / 40px 100% no-repeat local,
    linear-gradient(270deg, var(--surface) 30%, rgba(255,255,255,0)) 100% 0 / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(27,36,48,.16), transparent) 0 0 / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(27,36,48,.16), transparent) 100% 0 / 12px 100% no-repeat scroll,
    var(--surface);
}
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.post-body .scroll-x table { margin: 0; min-width: 520px; }
.post-body caption { text-align: left; padding: 10px 14px 0; font-size: 13px; color: var(--text-dim); caption-side: top; }
.post-body th, .post-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.post-body thead th { background: var(--primary); color: #fff; font-weight: 700; white-space: nowrap; }
.post-body tbody th { font-weight: 800; }
.post-body tbody tr:nth-child(even) { background: #fafbfc; }
.post-body .price-table td:nth-child(2), .post-body .price-table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.post-body .step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
.post-body .step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; flex: none; }
.post-body .step .body h4 { margin-top: 6px; }
.post-body .step .body p:last-child { margin-bottom: 0; }
.post-body .timeline { list-style: none; padding: 0; border-left: 2px dashed var(--accent); margin-left: 6px; }
.post-body .timeline li { position: relative; padding: 0 0 12px 18px; }
.post-body .timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }
.post-body .timeline .time { display: block; font-family: var(--mono); font-size: 13px; color: var(--accent-ink); }
.post-body .pros-cons { display: grid; gap: 10px; }
.post-body .pros-cons > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.post-body .pros { border-top: 4px solid var(--ok) !important; }
.post-body .cons { border-top: 4px solid var(--cta) !important; }
.post-body .pros-cons ul { margin: 0; }
.post-body .faq dt { font-weight: 800; margin-top: 10px; }
.post-body .faq dd { margin: 4px 0 0; }
.post-body .spoiler { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.post-body .spoiler summary { cursor: pointer; font-weight: 800; }
.post-body .price-tag { font-family: var(--mono); font-weight: 500; background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; }
.post-body .tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.post-body .video-embed { position: relative; aspect-ratio: 16 / 9; }
.post-body .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.post-body .footnote { display: block; font-size: 14px; color: var(--text-dim); padding-left: 2.2em; text-indent: -2.2em; line-height: 1.6; margin-bottom: .6em; }
.post-body .footnote .num { font-family: var(--mono); color: var(--text); margin-right: .4em; }
.post-body sup.footnote-ref { font-family: var(--mono); font-size: .7em; }
.post-body .toc-box ol { padding-left: 1.3em; }
.post-body .toc-box a { color: var(--text); }

/* 상담 블록 (작가 자리 → 템플릿이 전화 버튼으로 채움) · 일반 CTA */
.cta-box { margin: 1.6em 0; border-radius: var(--radius); padding: 18px; }
.cta-box.cta-consult { background: var(--primary); color: #fff; }
.cta-consult__k { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--accent); }
.cta-consult__t { margin: 0 0 14px; font-size: 16px; font-weight: 700; line-height: 1.55; color: #fff; }
.cta-consult .call-btn { display: flex; width: 100%; min-height: 52px; }
.cta-consult__h { margin: 10px 0 0; font-size: 13px; color: #c2cad5; }
.post-body .cta-box:not(.cta-consult) { background: var(--bg-soft); border: 1px solid var(--border); }
.post-body .cta-box h4 { margin: 0 0 6px; }
.post-body .cta-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--primary); color: #fff; text-decoration: none; font-weight: 800; }

/* 광고 칸 — 코드가 없으면 숨김. 라벨로 상담 블록과 구분. 하단 고정·앵커 광고는 쓰지 않는다 */
.ad-slot { position: relative; margin: 32px 0; padding: 22px 0 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; min-height: 100px; }
.ad-slot:not(:has(> :not(.ad-label))) { display: none; }
.ad-label { position: absolute; left: 0; top: 4px; font-size: 11px; color: var(--text-dim); letter-spacing: .04em; }
.ad-slot--side { margin: 0; }

/* ── 9. 푸터 ─────────────────────────────────────────── */
.dm-foot { background: #121922; color: #c6ced8; margin-top: 40px; }
.dm-foot__in { max-width: var(--container); margin: 0 auto; padding: 32px 16px 28px; display: grid; gap: 20px; font-size: 14px; }
.dm-foot__name { color: #fff; font-size: 17px; }
.dm-foot__id p { margin: 6px 0 0; }
.dm-foot__area { color: #aeb8c4; }
.biz-info { margin: 0; display: grid; gap: 4px; }
.biz-info div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; }
.biz-info dt { color: #8d98a6; }
.biz-info dd { margin: 0; color: #e3e8ef; }
.biz-info a { color: #fff; }
.dm-foot__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dm-foot__links a { color: #e3e8ef; display: inline-flex; min-height: 36px; align-items: center; }
.dm-foot__note { margin: 0; color: #8d98a6; font-size: 13px; line-height: 1.6; }
.dm-foot__copy { margin: 0; color: #6f7a88; font-size: 12px; }

/* ── 10. 반응형 ──────────────────────────────────────── */
@media (min-width: 480px) {
  .region-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .case-tile { grid-template-columns: 140px minmax(0, 1fr); }
}
@media (min-width: 720px) {
  .post-body .case-card dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-body .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-body .stats-grid .stat:last-child:nth-child(odd) { grid-column: auto; }
  .post-body .stats-grid .stat:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .post-body .pros-cons { grid-template-columns: 1fr 1fr; }
  .post-body .case-gallery { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
@media (max-width: 719.98px) {
  /* 표 → 행 카드 (site.js 가 thead 라벨을 td[data-label] 로 복사하고 .is-stacked 를 붙였을 때만) */
  .post-body .scroll-x.is-stacked { overflow: visible; border: 0; background: none; }
  .post-body table.is-stacked, .post-body table.is-stacked :is(tbody, tr, th, td) { display: block; min-width: 0; width: auto; }
  .post-body table.is-stacked caption { display: block; padding: 0 2px 8px; }
  .post-body table.is-stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .post-body table.is-stacked tbody tr { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: var(--radius-sm); padding: 6px 0; }
  .post-body table.is-stacked tbody tr + tr { margin-top: 10px; }
  .post-body table.is-stacked tbody :is(th, td) { border: 0; padding: 6px 14px; }
  .post-body table.is-stacked tbody > tr > :first-child:not([data-label]) { font-weight: 800; font-size: 16px; }
  .post-body table.is-stacked td[data-label] { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 10px; border-top: 1px dashed var(--border); }
  .post-body table.is-stacked td[data-label]::before { content: attr(data-label); font-size: 13px; font-weight: 700; color: var(--text-dim); font-family: var(--sans); }
}
@media (min-width: 768px) {
  .dm-head__in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav call"; column-gap: 20px; }
  .dm-nav { margin: 0; }
  .dm-nav ul { padding: 0; -webkit-mask-image: none; mask-image: none; }
  .dm-nav a { background: none; min-height: 40px; padding: 0 10px; }
  .dm-head .call-btn--head { display: inline-flex; }
  .hero__in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 48px 16px 52px; }
  .hero__title { font-size: 36px; }
  .keypad { display: grid; }
  .band { padding-top: 48px; }
  .band__h { font-size: 24px; }
  .region-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-tile { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
  .case-tile__media img, .case-tile__media .kp-ph { border-radius: 0; }
  .case-tile__body { padding: 4px 14px 14px; }
  .svc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .svc:last-child:nth-child(odd) { grid-column: auto; }
  .svc__a { grid-template-columns: 1fr; grid-template-areas: "ico" "name" "desc"; row-gap: 6px; min-height: 140px; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow__s { grid-template-columns: 1fr; grid-template-areas: "n" "t" "d"; row-gap: 6px; }
  .flow__cta { max-width: 420px; }
  .post-head__title, .hub-head__title { font-size: 32px; }
  .post-cover img { aspect-ratio: 16 / 9; }
  .post-row { grid-template-columns: minmax(0, 1fr) 160px; }
  .post-row__thumb img, .post-row__thumb .kp-ph { width: 160px; height: 120px; }
  .dm-foot__in { grid-template-columns: 1.2fr 1fr; }
  .dm-foot__links, .dm-foot__note, .dm-foot__copy { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  /* 2단: 본문 720 + 오른쪽 sticky 상담 카드 300. 하단 전화 바는 숨기고 여백도 뺀다 */
  .cta-bar { display: none; }
  body.has-cta-bar { padding-bottom: 0; }
  .hub-grid, .post-grid { grid-template-columns: minmax(0, var(--content-w)) var(--side-w); justify-content: space-between; gap: 48px; }
  .post-head, .post-cover { max-width: var(--container); }
  .post-head { padding-right: calc(16px + var(--side-w) + 48px); }
  .post-cover { padding-right: calc(16px + var(--side-w) + 48px); }
  .hub-side, .post-side { display: block; }
  .side-sticky { position: sticky; top: calc(var(--head-h) + 20px); }
  .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-band { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .region-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hub-main .region-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .post-body .case-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ── 11. 보정 (화면 확인 2회차) ───────────────────────── */
/* 본문 열 안의 FAQ 등 .band 는 바깥 여백을 다시 주지 않는다 */
.hub-main .band, .post-main .band { padding: 0; margin: 0 0 36px; max-width: none; }
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* 태블릿: 내비가 넘치면 끝을 흐리게 ("더 있음"), 헤더 전화 버튼은 번호 없이 */
  .dm-nav ul { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
  .dm-head .call-btn--head .call-btn__num { display: none; }
}
/* 하단 바 여백은 어두운 푸터 안에서 (밝은 띠가 생기지 않게) */
body.has-cta-bar { padding-bottom: 0; }
body.has-cta-bar .dm-foot { padding-bottom: calc(var(--cta-bar-h) + env(safe-area-inset-bottom, 0px) + 12px); }
@media (min-width: 1024px) { body.has-cta-bar .dm-foot { padding-bottom: 0; } }

/* QA 자동 수정 (관문 A) */
/* 검수 보정 */
.post-body{word-break:keep-all}
.post-body .case-gallery{min-width:0;max-width:100%;margin-left:0;margin-right:0}
.dm-nav a,.dm-foot a,.trail a,.post-head__cat a,.chip--link,.rtabs__ph a,.related__more a,.case-tile__title a,.post-row__title a{display:inline-flex;align-items:center;min-width:44px;min-height:44px}
.call-btn--head{min-height:44px}
.post-body :is(h2,h3,h4)[id]{scroll-margin-top:calc(var(--head-h) + 64px)}
@media(min-width:1024px){.post-side .side-sticky{position:static;top:auto}}

/* QA 자동 수정 (관문 A) */
@media(min-width:1024px){.hub-side .side-sticky{position:static;top:auto}}
.post-head__title{word-break:keep-all;overflow-wrap:break-word;letter-spacing:0;word-spacing:.08em;line-height:1.6}
@media(max-width:719.98px){.post-body .case-gallery{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:minmax(0,1fr);padding-left:0;padding-right:0;overflow:visible;scroll-snap-type:none}.post-body .case-gallery figure{min-width:0}.post-body .case-gallery figure img{height:auto;aspect-ratio:auto;object-fit:contain}}
.post-body .case-gallery figure::before{flex-shrink:0;white-space:nowrap}
.post-body .scroll-x{min-width:0;max-width:100%;overflow-x:auto}
.post-body table{font-size:16px;line-height:1.6}
@media(min-width:720px){.post-body .scroll-x table{table-layout:auto}.post-body .scroll-x tr>:first-child{white-space:nowrap;overflow-wrap:normal}}
