/* 누수탐지 프로 (aquability.org) — "맑은 물·점검표". 모바일 우선, 1024px 에서 2단. 토큰은 base.html :root.
   레퍼런스: 누수닥터(흰 바탕·파랑 브랜드·큰 전화번호 판·폭 가득 하단 전화 바), 누수탐지119(증상 타일·번호 알약 진행 순서·보험 카드),
   누수다자바/누수탐지전문가(진행 순서 화살표 띠). 자세한 대응표는 DESIGN.md */

/* ── 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.75; word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--cta-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.num, time.num { font-family: var(--num); 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: 700; line-height: 1.38; color: var(--text); letter-spacing: -0.02em; }

/* ── 2. 헤더 — 누수닥터: 흰 바탕 + 파랑 워드마크, 얇은 아래 줄 ─────── */
.dm-head { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--border); }
.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: 9px; color: var(--primary); text-decoration: none; min-height: var(--head-h); }
.wordmark:hover { color: var(--primary-deep); }
.wordmark__name { font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.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: 4px; 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: 44px; padding: 0 12px; white-space: nowrap;
  color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 600; border-bottom: 2px solid transparent;
}
.dm-nav a:hover { color: var(--primary); }
.dm-nav a[aria-current="page"] { color: var(--primary); border-bottom-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 20px;
  border-radius: 999px; background: var(--cta); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 16px rgba(29, 95, 209, .28);
}
.call-btn:hover { background: var(--cta-hover); color: #fff; }
.call-btn__num { font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.call-btn--block, .call-btn--wide { display: flex; width: 100%; }
.call-btn--hero { min-height: 56px; font-size: 17px; padding: 0 24px; }
.call-btn--head { min-height: 44px; padding: 0 16px; font-size: 14px; box-shadow: none; }

/* 하단 전화 바 — 누수닥터: 화면 폭 가득 파랑 띠 하나, 가운데 전화 아이콘 + 글자 */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--cta); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 20px rgba(20, 33, 61, .16); }
.cta-bar__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: var(--cta-bar-h);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 17px;
}
.cta-bar__btn:hover { color: #fff; background: var(--cta-hover); }
.cta-bar__num { font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; opacity: .92; }

.call-card { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; }
.call-card__h { margin: 0; font-size: 14px; color: var(--primary); font-weight: 700; }
.call-card__num { margin: 4px 0 12px; font-family: var(--num); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: -.01em; }
.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: 7px 0; border-top: 1px solid var(--border); }
.call-card__dl dt { color: var(--text-dim); }
.call-card__dl dd { margin: 0; }
.call-card__note { margin: 12px 0 0; font-size: 13px; color: var(--text-dim); line-height: 1.55; }

/* ── 4. 레이아웃 공통 ─────────────────────────────────── */
.stage { display: block; }
.band { max-width: var(--container); margin: 0 auto; padding: 44px 16px 8px; }
.band--flat { padding: 0; margin: 0 0 36px; max-width: none; }
.band__head { margin-bottom: 18px; }
.band__h { margin: 0 0 6px; font-size: 22px; }
.band__h--sm { font-size: 18px; }
.band__sub { margin: 0; color: var(--text-dim); font-size: 15px; }
.empty-note { background: var(--bg-soft); 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; align-items: center; gap: 4px; font-size: 13px; color: var(--text-dim); }
.trail li { display: inline-flex; align-items: center; }
.trail li + li::before { content: "/"; margin-right: 4px; color: #a9b4c6; flex: 0 0 auto; white-space: nowrap; }
.trail a { color: var(--text-dim); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.trail a:hover { color: var(--link); text-decoration: underline; }
.trail [aria-current] { color: var(--text); display: inline-flex; align-items: center; min-height: 44px; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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: 44px; padding: 0 14px; 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: #dbe8fb;
  background-image: radial-gradient(ellipse 6px 8px at 50% 60%, rgba(29,95,209,.22) 98%, transparent 100%);
  background-size: 26px 30px;
}
.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(15,63,153,.85)); width: 100%; }
.kp-ph:empty, .kp-ph__label:empty { padding: 0; }
.kp-ph--cover { aspect-ratio: 16 / 7; }

/* ── 5. 홈 ───────────────────────────────────────────── */
/* 첫 화면 — 누수닥터: 큰 한 줄 약속 + 파랑 전화번호 판. 바탕은 아주 옅은 물빛 */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.hero__in { max-width: var(--container); margin: 0 auto; padding: 26px 16px 34px; display: grid; gap: 24px; }
.hero__eyebrow { margin: 0 0 8px; display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--link-soft); font-size: 13px; font-weight: 700; color: var(--primary); }
.hero__title { margin: 0 0 12px; font-size: 30px; line-height: 1.28; letter-spacing: -0.035em; }
.hero__lede { margin: 0 0 18px; color: var(--text-dim); font-size: 16px; max-width: 34em; }
/* 진행 순서 띠 — 누수다자바: 둥근 테두리 상자 안 '진단 → 공사 → 보험청구 → A/S' */
.hero__chain { width: fit-content; max-width: 100%; list-style: none; margin: 0 0 20px; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; font-size: 14px; font-weight: 700; }
.hero__chain li { display: inline-flex; align-items: center; }
.hero__chain li + li::before { content: "→"; margin: 0 8px; color: var(--accent); font-weight: 700; }
.hero__call { display: grid; gap: 8px; }
.hero__phone {
  display: grid; gap: 2px; padding: 14px 18px 16px; border-radius: var(--radius); background: var(--primary); color: #fff; text-decoration: none;
  box-shadow: 0 10px 24px rgba(29, 95, 209, .3);
}
.hero__phone:hover { background: var(--primary-deep); color: #fff; }
.hero__phone-k { font-size: 14px; font-weight: 600; opacity: .85; }
.hero__phone-n { font-family: var(--num); font-size: clamp(30px, 10vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hero__hours { margin: 0; color: var(--text-dim); font-size: 14px; }
.drop-art { display: none; position: relative; width: 240px; height: 240px; justify-self: center; align-items: center; justify-content: center; }
.drop-art svg { position: relative; z-index: 1; filter: drop-shadow(0 18px 30px rgba(29,95,209,.28)); }
.drop-art__ring { position: absolute; left: 50%; top: 62%; border: 2px solid rgba(29,95,209,.18); border-radius: 50%; transform: translate(-50%, -50%); }
.drop-art__ring--1 { width: 200px; height: 60px; }
.drop-art__ring--2 { width: 240px; height: 80px; border-color: rgba(15,163,177,.14); }

/* 증상 타일 — 누수탐지119 '누수 의심 증상 체크리스트': 2열 타일, 위 아이콘 + 굵은 한 줄 + 설명 */
.symptom-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.symptom { display: grid; align-content: start; gap: 6px; padding: 16px 14px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid #edf1f7; }
.symptom__ico { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--link-soft); color: var(--primary); }
.symptom__name { font-size: 15px; line-height: 1.4; }
.symptom__desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.rtabs__list { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; background: var(--bg-soft); border-radius: 999px; }
.rtabs__tab {
  flex: 1; min-height: 44px; border: 0; background: transparent; border-radius: 999px;
  font: inherit; font-weight: 700; color: var(--text-dim); cursor: pointer;
}
.rtabs__tab[aria-selected="true"] { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(20,33,61,.1); }
.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; display: inline-flex; align-items: center; min-height: 44px; }
.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: 12px; background: var(--bg-soft); color: var(--text);
  text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.3;
}
.region-grid a:hover { background: var(--link-soft); color: var(--link); }
.region-grid__n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff; font-family: var(--num); 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: #fff; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); border: 1px solid #edf1f7; }
.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: 12px; }
.case-tile__badge { position: absolute; left: 6px; top: 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.case-tile__where { margin: 0 0 2px; font-size: 13px; color: var(--primary); font-weight: 700; }
.case-tile__title { margin: 0 0 6px; font-size: 16px; line-height: 1.45; }
.case-tile__title a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.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(--accent); font-weight: 700; }
.case-tile__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--num); font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* 위치별 안내 — 누수탐지119 '비파괴 탐지·최소 보수' 줄: 왼쪽 원 아이콘 + 제목·설명 */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.svc__a { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico name" "ico desc"; column-gap: 14px; padding: 14px 16px; min-height: 72px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); color: var(--text); text-decoration: none; }
a.svc__a:hover { border-color: var(--link); }
.svc__ico { grid-area: ico; align-self: center; width: 44px; height: 44px; padding: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.svc__name { grid-area: name; font-weight: 700; font-size: 16px; }
.svc__desc { grid-area: desc; font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.split-band { display: grid; gap: 24px; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.post-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid #edf1f7; box-shadow: 0 2px 10px rgba(20,33,61,.04); }
.post-row__cat { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--primary); }
.post-row__title { margin: 0 0 4px; font-size: 16px; line-height: 1.45; }
.post-row__title a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.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(--num); 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: 10px; }
.mini-list { margin: 0; padding: 0; list-style: none; counter-reset: m; background: var(--bg-soft); border-radius: var(--radius); }
.mini-list li { counter-increment: m; }
.mini-list li + li { border-top: 1px solid var(--border); }
.mini-list a { display: grid; grid-template-columns: 2.2em 1fr; padding: 12px 14px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.45; }
.mini-list a::before { content: counter(m, decimal-leading-zero); font-family: var(--num); color: var(--primary); font-weight: 800; grid-row: span 2; }
.mini-list__cat { font-size: 12px; color: var(--text-dim); font-weight: 400; }

/* 진행 순서 — 누수탐지119 '진행 과정': 번호(01)가 왼쪽에 있는 진한 둥근 알약 줄 */
.flow-band { }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow__s { display: grid; grid-template-columns: 52px 1fr; grid-template-areas: "n t" "n d"; column-gap: 12px; align-items: center; background: var(--primary-deep); color: #fff; border-radius: 28px; padding: 14px 20px 14px 18px; }
.flow__n { grid-area: n; font-family: var(--num); font-size: 26px; font-weight: 800; color: #9fc2ff; }
.flow__s strong { grid-area: t; font-size: 16px; color: #fff; }
.flow__s span:last-child { grid-area: d; color: #c9d8f3; font-size: 14px; line-height: 1.5; }
.flow__cta { margin-top: 16px; }

/* 보험 안내 — 누수탐지119 '보험처리 서류 지원' 카드: 흰 카드, 위 체크 원 + 굵은 제목 */
.insure-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.insure-list li { display: grid; gap: 4px; padding: 16px 16px 16px 52px; position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.insure-list li::before { content: "✓"; position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.insure-list strong { font-size: 16px; }
.insure-list span { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* FAQ — 누수닥터 'Q1. …' 질문: 질문 앞 파랑 Q, 펼치면 아래 답 */
.faq-list { display: grid; gap: 8px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; min-height: 48px; display: flex; gap: 10px; align-items: flex-start; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; flex: none; font-family: var(--num); font-weight: 800; color: var(--primary); }
.faq-item summary::after { content: ""; position: absolute; right: 18px; top: 22px; width: 9px; height: 9px; border: solid var(--text-dim); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.faq-item[open] summary::after { transform: rotate(-135deg); top: 26px; border-color: var(--primary); }
.faq-item p { margin: 0; padding: 0 16px 16px 40px; color: var(--text); }
.faq-band { padding-bottom: 48px; }

/* ── 6. 카테고리(지역 허브)·태그 ───────────────────────── */
.hub-head { background: var(--bg-soft); }
.hub-head--region { background: linear-gradient(180deg, var(--bg-deep), var(--bg-soft)); }
.hub-head__in { max-width: var(--container); margin: 0 auto; padding: 18px 16px 26px; }
.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(--primary); font-weight: 800; }
.hub-head__call { margin-top: 16px; }
.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(--bg-soft); border-radius: var(--radius); padding: 16px 18px; }
.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: 9px 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: 18px 16px 0; }
.post-head__cat { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.post-head__cat a { text-decoration: none; color: var(--primary); display: inline-flex; align-items: center; min-height: 44px; }
.post-head__kind { background: var(--accent-soft); color: var(--accent-ink); padding: 1px 10px; border-radius: 999px; }
.post-head__title { margin: 0 0 10px; font-size: 24px; line-height: 1.4; word-break: keep-all; overflow-wrap: break-word; }
.post-head__lede { margin: 0 0 10px; font-size: 16px; color: var(--text-dim); line-height: 1.65; }
.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: 700; color: var(--primary); }
.post-cover { max-width: var(--container); margin: 16px auto 0; padding: 0 16px; }
.post-cover img { width: 100%; aspect-ratio: 1 / 1; 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; }
.related__more a { display: inline-flex; align-items: center; min-height: 44px; }
.post-list--compact .post-row__sum { display: none; }

/* ── 8. 본문 (.post-body) 표준 컴포넌트 + 사이트 블록 ────── */
.post-body { font-size: 17px; line-height: 1.85; word-break: keep-all; }
.post-body > * { margin-top: 0; margin-bottom: 1em; }
/* 소제목 — 누수닥터 본문 h2: 굵은 큰 글자, 아래 짧은 파랑 막대 */
.post-body h2 { margin: 2.2em 0 .8em; font-size: 21px; line-height: 1.45; padding-bottom: 10px; position: relative; }
.post-body h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--primary); }
.post-body h3 { margin: 1.6em 0 .5em; font-size: 18px; color: var(--primary-deep); }
.post-body h4 { margin: 0 0 .4em; font-size: 16px; }
.post-body :is(h2, h3, h4)[id] { scroll-margin-top: calc(var(--head-h) + 64px); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .3em; }
.post-body li::marker { color: var(--primary); }
.post-body strong { font-weight: 700; color: var(--text); }
.post-body blockquote { position: relative; margin: 1.4em 0; padding: 18px 20px 18px 22px; background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600; }
.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; font-weight: 400; }
.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: 600; }
.post-body .highlight { background: linear-gradient(transparent 62%, #cfe0fb 62%); }
.post-body .pull-quote { font-size: 20px; font-weight: 700; color: var(--primary-deep); border-top: 2px solid var(--primary); border-bottom: 2px solid var(--primary); padding: 14px 0; text-align: center; }
.post-body kbd, .post-body .kbd { font-family: var(--num); font-size: .85em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

/* 알림 박스 — 배지는 텍스트("주의"·"광고"). 색만으로 구분하지 않는다 */
.post-body :is(.warn-box, .info-box, .success-box, .error-box, .note-box) { font-size: 16px; line-height: 1.7; }
.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 { font-weight: 700; white-space: nowrap; }
/* 주의 — 누수탐지119 '!' 경고 판: 진한 판 대신 옅은 주황 판 + 왼쪽 위 둥근 '주의' 알약 */
.post-body .warn-box { display: block; padding: 16px 18px; background: var(--warn-soft); border-radius: var(--radius); border: 1px solid #ffd8bf; }
.post-body .warn-box .badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; margin-bottom: 8px; border-radius: 999px; background: var(--warn); color: #fff; font-size: 13px; }
.post-body .warn-box > div > strong:first-child { display: block; margin-bottom: 2px; font-size: 17px; color: #a53a0c; }
/* 팁 — 누수닥터 안내 문단: 왼쪽 파랑 세로줄 + 옅은 파랑 판 */
.post-body .info-box { display: block; padding: 14px 18px; background: var(--link-soft); border-left: 4px solid var(--primary); border-radius: 0 12px 12px 0; }
.post-body .info-box .badge { display: block; margin-bottom: 4px; color: var(--primary); font-size: 15px; }
/* 완료 — 누수탐지119 체크 원: 초록 원 체크 + 흰 카드 */
.post-body .success-box { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid #c9ead9; border-radius: var(--radius); }
.post-body .success-box .badge { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 0; }
.post-body .success-box .badge::before { content: "✓"; font-size: 14px; }
/* 금지 — 빨간 테두리 상자 */
.post-body .error-box { display: block; padding: 14px 16px; background: #fff; border: 2px solid #d92d20; border-radius: 12px; }
.post-body .error-box .badge { display: block; margin-bottom: 4px; font-size: 15px; color: #d92d20; }
/* 참고 — 옅은 회청 판, 작은 머리말이 문장 앞 */
.post-body .note-box { display: block; padding: 14px 18px; background: #f4f6f9; border-radius: 12px; color: #4a5568; font-size: 15px; }
.post-body .note-box .badge { margin-right: 8px; color: var(--text); font-size: 14px; }
.post-body .note-box > div { display: inline; }
.post-body .note-box > div p { display: inline; }
/* 광고·후기 고지 (글 맨 앞) — 청록 옅은 판 */
.post-body .note-box.ad-disclosure { padding: 14px 18px; background: var(--accent-soft); border-radius: 12px; color: var(--accent-ink); font-weight: 600; }
.post-body .note-box.ad-disclosure .badge { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; }

/* 요약·핵심·준비물·목차 — 누수닥터 'TOP 6'·체크 목록: 옅은 파랑 판, 굵은 제목 */
.post-body :is(.summary-box, .key-points, .prep-box, .toc-box) { background: var(--bg-soft); border-radius: var(--radius); padding: 18px 20px; color: #3d4a61; }
.post-body :is(.summary-box, .key-points, .prep-box, .toc-box) :is(h3, h4) { margin: 0 0 10px; font-size: 17px; color: var(--text); }
.post-body :is(.summary-box, .key-points, .toc-box) :is(ul, ol) { margin: 0; }
.post-body .key-points ol { list-style: none; padding: 0; counter-reset: kp; }
.post-body .key-points li { counter-increment: kp; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: start; }
.post-body .key-points li::before { content: counter(kp, decimal-leading-zero); font-family: var(--num); font-weight: 800; color: var(--primary); }
.post-body .prep-grid { display: grid; gap: 6px; }
.post-body .prep-grid > div { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; background: #fff; border-radius: 12px; color: var(--text); }
.post-body .prep-grid > div::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--link-soft); color: var(--primary); font-size: 12px; font-weight: 700; }
.post-body .prep-grid > div > span:first-child { flex: 1 1 auto; min-width: 0; }
.post-body .prep-grid > div > span:last-child { white-space: nowrap; color: var(--text-dim); font-size: 15px; font-variant-numeric: tabular-nums; }

/* 한눈에 박스 — 파랑 큰 값 + 작은 회색 라벨, 칸마다 옅은 판 */
.post-body .stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.post-body .stats-grid .stat { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; background: var(--bg-soft); border-radius: 12px; }
.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: 700; font-size: 16px; line-height: 1.45; color: var(--primary-deep); }
.post-body .stat .value.num, .post-body .stat .value .num { font-family: var(--num); font-weight: 800; }

/* 사례 카드 — 파랑 머리 띠 + 2열 정의 목록 */
.post-body .case-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-body .case-card__h { margin: 0; padding: 12px 16px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.post-body .case-card__h .badge { background: rgba(255,255,255,.2); color: #fff; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.post-body .case-card__h .badge:empty { display: none; }
.post-body .case-card dl { margin: 0; padding: 14px 16px 16px; 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: 700; font-size: 15px; line-height: 1.45; }
.post-body .case-card dd.num { font-family: var(--num); font-weight: 800; }
.post-body .case-card .case-card__swap { grid-column: 1 / -1; background: var(--bg-soft); border-radius: 10px; padding: 8px 12px; }
.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(--accent); }
.post-body .case-card .case-card__full { grid-column: 1 / -1; }

/* 사진 갤러리 — 모바일 1열, 데스크톱 3열 */
.post-body .case-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; counter-reset: g; min-width: 0; max-width: 100%; }
.post-body .case-gallery figure { margin: 0; counter-increment: g; position: relative; min-width: 0; }
.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: 10px; top: 10px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--primary); color: #fff; font-family: var(--num); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 1; white-space: nowrap; }

.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: 700; padding: 2px 10px; border-radius: 999px; }
.post-body .before-after img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

/* 표 · 가격표 — 파랑 머리 줄, 본문 줄은 옅은 구분선. 넘치면 가로 스크롤 */
.post-body .scroll-x { overflow-x: auto; margin: 1.4em 0; min-width: 0; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.post-body .scroll-x table { margin: 0; min-width: 520px; }
.post-body caption { text-align: left; padding: 12px 14px; font-size: 15px; font-weight: 700; color: var(--text); caption-side: top; background: #fff; }
.post-body th, .post-body td { padding: 12px 14px; border-bottom: 1px solid #e8edf5; text-align: left; vertical-align: top; }
.post-body thead th { background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; border-bottom: 0; }
.post-body tbody th { font-weight: 700; color: var(--text); background: #f8fafd; }
.post-body tbody tr:last-child > * { border-bottom: 0; }
.post-body .price-table td:nth-child(2), .post-body .price-table .num { font-family: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; color: var(--primary-deep); }

/* 순서 — 누수탐지119 진행 과정 축소판: 번호 알약 + 제목·설명 */
.post-body .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; margin-bottom: 10px; padding: 12px 14px; background: var(--bg-soft); border-radius: var(--radius); }
.post-body .step .num { height: 32px; border-radius: 999px; background: var(--primary-deep); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 14px/1 var(--num); flex: none; }
.post-body .step .body h4 { margin: 4px 0 4px; font-size: 16px; }
.post-body .step .body p { color: #4a5568; margin-bottom: .5em; }
.post-body .step .body p:last-child { margin-bottom: 0; }
.post-body .timeline { list-style: none; padding: 0; margin-left: 0; }
.post-body .timeline li { position: relative; padding: 0 0 14px 26px; }
.post-body .timeline li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--link-soft); }
.post-body .timeline li::after { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--border); }
.post-body .timeline li:last-child::after { display: none; }
.post-body .timeline .time { display: block; font-family: var(--num); font-size: 14px; font-weight: 700; color: var(--primary); }
.post-body .pros-cons { display: grid; gap: 10px; }
.post-body .pros-cons > div { background: #fff; 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(--warn) !important; }
.post-body .pros-cons ul { margin: 0; }
.post-body .faq dt { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; margin-top: 14px; }
.post-body .faq dt::before { content: "Q"; flex: none; font-family: var(--num); font-weight: 800; color: var(--primary); }
.post-body .faq dd { margin: 4px 0 0 24px; color: #4a5568; }
.post-body .spoiler { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.post-body .spoiler + .spoiler { margin-top: -6px; }
.post-body .spoiler summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; cursor: pointer; list-style: none; font-weight: 700; font-size: 16px; line-height: 1.5; }
.post-body .spoiler summary::-webkit-details-marker { display: none; }
.post-body .spoiler summary::before { content: "Q"; flex: none; font-family: var(--num); font-weight: 800; color: var(--primary); }
.post-body .spoiler summary::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border: solid var(--text-dim); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.post-body .spoiler[open] summary::after { transform: translateY(2px) rotate(-135deg); border-color: var(--primary); }
.post-body .spoiler > :not(summary) { margin: 0; padding: 12px 16px 14px; background: var(--bg-soft); color: #4a5568; font-size: 16px; }
.post-body .price-tag { font-family: var(--num); font-weight: 700; background: var(--link-soft); color: var(--primary-deep); padding: 1px 8px; border-radius: 6px; }
.post-body .tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.post-body .tag-list .tag { padding: 2px 10px; background: var(--bg-soft); border-radius: 999px; font-size: 14px; color: var(--text-dim); }
.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(--num); color: var(--text); margin-right: .4em; }
.post-body sup.footnote-ref { font-family: var(--num); font-size: .7em; }
.post-body .toc-box ol { padding-left: 1.3em; }
.post-body .toc-box li::marker { font-weight: 700; color: var(--primary); }
.post-body .toc-box a { color: var(--link); }
.post-body .kp-ph:empty, .post-body figure:has(> img:not([src])), .post-body figure:has(> img[src=""]) { display: none; }

/* 상담 블록 (작가 자리 → 템플릿이 전화 버튼으로 채움) — 누수닥터 '24시간 상담 가능' 판을 파랑 카드로 */
.cta-box { margin: 1.6em 0; border-radius: var(--radius); padding: 20px; }
.cta-box.cta-consult { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%); color: #fff; }
.cta-consult__k { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: #bcd5ff; }
.cta-consult__t { margin: 0 0 14px; font-size: 16px; font-weight: 600; line-height: 1.6; color: #fff; }
.cta-consult .call-btn { display: flex; width: 100%; min-height: 54px; background: #fff; color: var(--primary-deep); box-shadow: none; }
.cta-consult .call-btn:hover { background: var(--link-soft); color: var(--primary-deep); }
.cta-consult__h { margin: 10px 0 0; font-size: 13px; color: #c9d8f3; }
.post-body .cta-box:not(.cta-consult) { background: #fff; border: 1px solid var(--border); padding: 20px; }
.post-body .cta-box h4 { margin: 0 0 6px; font-size: 18px; }
.post-body .cta-box:not(.cta-consult) p { color: #4a5568; }
.post-body .cta-button { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 14px; padding: 0 16px; border-radius: 999px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 700; }

/* 광고 칸 — 코드가 없으면 숨김. 하단 고정·앵커 광고는 쓰지 않는다 */
.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: #0d2547; color: #c3cfe2; margin-top: 48px; }
.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: 18px; }
.dm-foot__id p { margin: 6px 0 0; }
.dm-foot__area { color: #9fb1cc; }
.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: #8296b5; }
.biz-info dd { margin: 0; color: #e4ebf6; }
.biz-info a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
.dm-foot__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dm-foot__links a { color: #e4ebf6; display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }
.dm-foot__note { margin: 0; color: #8296b5; font-size: 13px; line-height: 1.65; }
.dm-foot__copy { margin: 0; color: #6c7f9c; font-size: 12px; }
/* 하단 바 높이만큼 남청 푸터 안에서 여백 (밝은 띠가 생기지 않게) */
body.has-cta-bar .dm-foot { padding-bottom: calc(var(--cta-bar-h) + env(safe-area-inset-bottom, 0px) + 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); }
  .svc-grid { grid-template-columns: repeat(2, 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-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-body .scroll-x tr > :first-child { white-space: nowrap; }
}
@media (max-width: 719.98px) {
  .post-body h2 { font-size: 20px; }
}
@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-head .call-btn--head { display: inline-flex; }
  .hero__in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 52px 16px 56px; }
  .hero__title { font-size: 40px; }
  .hero__call { max-width: 420px; }
  .drop-art { display: flex; }
  .band { padding-top: 56px; }
  .band__h { font-size: 26px; }
  .symptom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .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(3, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__cta { max-width: 420px; }
  .insure-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .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; }
  .trail a, .trail [aria-current] { min-height: 0; }
}
@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; }
}
@media (min-width: 1024px) {
  /* 2단: 본문 720 + 오른쪽 상담 카드 300. 하단 전화 바는 숨긴다 */
  .cta-bar { display: none; }
  body.has-cta-bar .dm-foot { 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 { padding-right: calc(16px + var(--side-w) + 48px); }
  .post-cover { padding-right: calc(16px + var(--side-w) + 48px); }
  .hub-side, .post-side { display: block; }
  .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)); }
  .svc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .svc__a { grid-template-columns: 1fr; grid-template-areas: "ico" "name" "desc"; row-gap: 8px; min-height: 160px; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow__s { grid-template-columns: 1fr; grid-template-areas: "n" "t" "d"; row-gap: 4px; border-radius: var(--radius); align-items: start; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* 본문 열 안의 FAQ 등 .band 는 바깥 여백을 다시 주지 않는다 */
.hub-main .band, .post-main .band { padding: 0; margin: 0 0 36px; max-width: none; }

/* QA 자동 수정 (관문 A) */
.post-body p:first-of-type{max-width:65ch}.post-body .case-gallery img{object-position:center}.post-body .scroll-x{overflow-x:auto;-webkit-overflow-scrolling:touch}.post-body .scroll-x table{min-width:520px}@media(max-width:767px){.post-body a{display:inline-flex;align-items:center;min-height:44px}.post-body p:first-of-type{max-width:38ch}.post-body .case-gallery{gap:16px}.post-body .case-gallery img{aspect-ratio:4/3;object-fit:contain;background:var(--bg-soft)}}

/* QA 자동 수정 (관문 A) */
.post-body a { display: inline-flex; align-items: center; min-height: 44px; }
.post-body .scroll-x { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
@media (max-width: 767px) {
  .post-cover img { aspect-ratio: 16 / 9; }
}

/* QA 자동 수정 (관문 A) */
@media (max-width: 767px) {
  .post-body a { display: inline-flex; align-items: center; min-height: 44px; }
  .cta-bar { display: block; }
  .post-body .scroll-x { overflow-x: auto; }
  .post-body .case-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-head__title { font-size: 22px; }
}

/* QA 자동 수정 (관문 A) */
.post-body a { display: inline-flex; align-items: center; min-height: 44px; }
.post-body .scroll-x { overflow-x: auto; max-width: 100%; }
@media (max-width: 767px) {
  .cta-bar { display: block; }
}

/* QA 자동 수정 (관문 A) */
@media (max-width: 767px) { .post-body a { display: inline-flex; align-items: center; min-height: 44px; } .post-body .step { grid-template-columns: 44px minmax(0, 1fr); } .post-body .step .num { flex-shrink: 0; white-space: nowrap; } .post-body .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; } .post-head__title { font-size: 22px; line-height: 1.3; } }

/* QA 자동 수정 (관문 A) */
.post-body a { display: inline-flex; align-items: center; min-height: 44px; }
.post-body .scroll-x { overflow-x: auto; }
@media (max-width: 767px) {
  .post-body .case-gallery + * { min-width: 0; }
  .post-head__title { font-size: 21px; line-height: 1.3; }
}
