/* 승인 시안(approved/styles.css) 위에 운영에 필요한 것만 덧붙인다.
 * 시안에 없는 운영 요소(전체 메뉴 드로어, 실제 카카오 지도, 사진 없는 대체 이미지, WP 기본 클래스)만 다룬다.
 * 시안에 있는 컴포넌트의 모양은 여기서 바꾸지 않는다. */

/* WP 기본 */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.bd-skip:focus{top:8px}
body.admin-bar .bd-nav{top:32px;height:calc(100dvh - 32px)}
@media (max-width:782px){body.admin-bar .bd-nav{top:46px;height:calc(100dvh - 46px)}}

/* ── 전체 메뉴 드로어 (시안의 메뉴 버튼이 여는 패널) ── */
.bd-nav-overlay{display:none}
.bd-nav-overlay.is-open{display:block;position:fixed;inset:0;z-index:9600;background:#0b1c4d6b}
.bd-nav{position:fixed;top:0;right:0;z-index:9700;width:min(320px,86vw);height:100vh;height:100dvh;display:flex;flex-direction:column;background:#fff;box-shadow:-8px 0 28px #0b1c4d29;transform:translateX(100%);transition:transform .24s ease;padding-bottom:var(--bd-safe-bottom);visibility:hidden}
.bd-nav.is-open{transform:none;visibility:visible}
.bd-nav-header{display:flex;align-items:center;justify-content:space-between;height:58px;flex:none;padding:0 8px 0 18px;border-bottom:1px solid var(--bd-line-2);font-size:15px}
.bd-nav-list{flex:1 1 auto;overflow-y:auto;list-style:none;margin:0;padding:8px 0}
.bd-nav-list a{display:flex;align-items:center;justify-content:space-between;min-height:50px;padding:0 18px;font-size:15px;font-weight:600;color:var(--bd-ink)}
.bd-nav-list a:hover,.bd-nav-list a:active{background:var(--bd-line-2)}
.bd-nav-list a.is-active{color:var(--bd-blue)}
.bd-nav-list a.is-active::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--bd-blue)}
.bd-nav-footer{flex:none;display:grid;gap:8px;padding:14px 18px 18px;border-top:1px solid var(--bd-line-2)}
body:has(.bd-nav.is-open) .bd-mobile-nav,body:has(.bd-nav.is-open) #bd-fc-fab{display:none!important}

/* ── 실제 카카오 지도를 시안 지도 자리에 (시안은 장식 타일이라 pointer-events:none) ── */
.bd-hero-map .bd-map-base{pointer-events:auto;opacity:1}
.bd-hero-map .bd-map-canvas{position:absolute;inset:0}
/* 카카오 오버레이 안의 시안 핀 — 위치는 카카오가 잡으므로 절대배치 해제 */
.bd-kpin{position:relative;transform:translate(0,-18px);left:auto;top:auto;display:block;white-space:nowrap;text-decoration:none}
.bd-kpin:hover,.bd-kpin.active{background:var(--bd-blue);color:#fff}
.bd-kpin:hover small,.bd-kpin.active small{color:#fff}
.bd-kpin.is-cluster{background:var(--bd-navy);color:#fff}
.bd-kpin.is-cluster small{color:#c4d3e8}

/* ── 사진이 없는 현장·뉴스 — 시안 사진 자리를 같은 크기로 채운다 ── */
.bd-photo-ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;height:100%;padding:12px;text-align:center;background:linear-gradient(160deg,#e6f1ff,#f6faff 70%);color:var(--bd-mute)}
.bd-photo-ph .bd-icon{width:26px;height:26px;color:var(--bd-blue);opacity:.55}
.bd-photo-ph strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;font-size:13px;font-weight:700;color:var(--bd-ink-2)}
.bd-card-photo .bd-photo-ph,.bd-news-card .bd-photo-ph{position:absolute;inset:0}
.bd-news-card>a:first-child{position:relative;display:block;aspect-ratio:1.8;overflow:hidden}
.bd-hero-property .bd-photo-ph{width:112px;height:105px;flex:none;border-radius:7px;padding:4px}
.bd-model-row .bd-photo-ph{width:80px;height:58px;flex:none;border-radius:5px;padding:4px}
@media(max-width:767px){.bd-hero-property .bd-photo-ph{width:88px;height:90px}.bd-model-row .bd-photo-ph{width:66px;height:48px}}
a.bd-hero-property{color:inherit;text-decoration:none}
.bd-model-row .bd-photo-ph strong,.bd-hero-property .bd-photo-ph strong{display:none}
.bd-model-cover .bd-photo-ph{position:absolute;inset:0;background:linear-gradient(160deg,#17365e,#0b1c4d)}
.bd-model-cover .bd-photo-ph .bd-icon{color:#fff}
.bd-model-cover .bd-photo-ph strong{display:none}

/* 긴 분양가 문구(ACF 자유 입력)는 두 줄까지 */
.bd-card-price{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* 빈 목록 안내 */
.bd-empty-note{padding:28px;border:1px dashed var(--bd-line);border-radius:12px;text-align:center;color:var(--bd-mute);font-size:14px}

/* 시안 보완 — 768~900px 에서는 상단 메뉴(≤900 숨김)와 메뉴 버튼(≥768 숨김), 하단 내비(≤767)가
 * 모두 사라져 이동 수단이 없다. 이 구간에만 메뉴 버튼을 보여 준다. */
@media (min-width:768px) and (max-width:900px){.bd-header-actions [data-action="menu"]{display:inline-flex}}

/* 페이지 이동 — 시안은 button 에만 모양이 있어 WP 링크(a·span)에도 같은 모양을 준다 */
.bd-pagination a,.bd-pagination span{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--bd-line);border-radius:8px;min-width:34px;height:34px;padding:0 8px;color:var(--bd-ink);font-size:14px}
.bd-pagination .active{background:var(--bd-blue);border-color:var(--bd-blue);color:#fff}
.bd-pagination .dots{border:0;background:none}
.bd-card-title a{min-width:0}
.bd-card-title h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 캘린더 — 시안은 이전 달 화살표도 오른쪽을 향해 있어 뒤집는다, 일정은 링크(a)로 */
.bd-calendar-head .bd-cal-prev .bd-icon{transform:rotate(180deg)}
a.bd-calendar-event{text-decoration:none}
.bd-red{color:#e84b70}

/* 갤러리 — 사진 없는 칸 · 라이트박스 */
.bd-gallery button[disabled]{cursor:default;padding:0;border:0;position:relative;overflow:hidden}
.bd-gallery button[disabled] .bd-photo-ph{position:absolute;inset:0}
.bd-ap-lightbox{width:min(1000px,calc(100% - 24px));padding:0;background:#0b1c4d}
.bd-ap-lightbox::backdrop{background:#0b1c4dcc}
.bd-ap-lb-stage{display:grid;place-items:center;min-height:50vh;max-height:76dvh;background:#0b1c4d}
.bd-ap-lb-stage img{max-width:100%;max-height:76dvh;object-fit:contain}
.bd-ap-lb-bar{display:flex;align-items:center;justify-content:center;gap:12px;padding:10px;background:#fff}
.bd-ap-lb-bar [data-lb="prev"] .bd-icon{transform:rotate(180deg)}
.bd-ap-lb-bar [data-lb="close"]{margin-left:auto}
.bd-ap-lb-bar span{font-size:13px;color:var(--bd-mute);min-width:60px;text-align:center}

/* 분양 상세 — 기존 탭 본문은 .bd-legacy 로 예전 모양 유지, 중복 요소는 숨김 */
.bd-detail-legacy{margin-top:8px}
.bd-legacy .bd-detail-bottom-cta{display:none!important}
.bd-reservation form{display:grid;gap:10px}
.bd-form-msg{margin:0;font-size:13px;color:var(--bd-mute)}
.bd-form-msg.is-ok{color:var(--bd-success)}
.bd-form-msg.is-err{color:#d6425c}
.bd-detail-tabs{position:sticky;top:0;z-index:20;background:#fff}

/* 분양지도 — 시안의 지도 바탕(.bd-map-base)은 장식이라 클릭이 막혀 있어, 실제 카카오 지도에서는 풀어 준다 */
#bd-ap-kmap{pointer-events:auto;opacity:1;background:#e8f0e6}
.bd-kpin{cursor:pointer;font-family:inherit}
.bd-map-row .bd-photo-ph{width:84px;height:84px;flex-shrink:0;border-radius:6px;padding:4px}
.bd-map-row .bd-photo-ph strong{display:none}
.bd-popup-photo.bd-photo-ph{width:110px;height:110px;flex:none;border-radius:7px}
.bd-map-row .bd-heart{position:absolute;right:6px;top:10px}
.bd-recent[hidden],.bd-map-compare[hidden]{display:none}
.bd-recent .bd-chip span{margin-left:4px;color:var(--bd-mute)}
@media(max-width:767px){.bd-map-row .bd-photo-ph{width:76px;height:76px}}

/* 도구 화면 — 사진 없는 자리를 시안 img 크기와 같게 */
.bd-rank-row .bd-photo-ph{width:74px;height:60px;flex:none;border-radius:6px;padding:4px}
.bd-rank-row .bd-photo-ph strong{display:none}
.bd-compare th .bd-photo-ph{height:120px;border-radius:6px;margin-bottom:10px}
.bd-flex>.bd-photo-ph,.bd-flex>.bd-ai-thumb .bd-photo-ph{width:120px;height:110px;flex-shrink:0;border-radius:8px}
.bd-flex>.bd-ai-thumb{flex-shrink:0}
.bd-compare th .bd-btn-ghost{float:right}

/* 머리말 제목을 H2 로 낼 때(본문에 H1 이 따로 있는 화면) — 시안 .bd-pagehead h1 과 같은 크기 */
.bd-pagehead .bd-pagehead-title{font-size:25px}
@media(max-width:767px){.bd-pagehead .bd-pagehead-title{font-size:21px}}
.bd-article h1{line-height:1.35;letter-spacing:-.04em}
.bd-small-row .bd-photo-ph{width:90px;height:65px;flex:none;border-radius:6px;padding:4px}
.bd-small-row .bd-photo-ph strong{display:none}

/* ── 파트너 콘솔 (/partner/) ─────────────────────────────── */
body.bd-console-body{margin:0;background:#f2f8ff}
body.admin-bar .cv-sidebar{top:32px;height:calc(100dvh - 32px)}
.cv-content [hidden]{display:none!important}
.cv-sidebar-bottom a{color:var(--bd-ink-2);line-height:2}
.cv-topbar strong{font-size:13px}
.cv-stat em{display:inline-block}
.bd-apc-dot{position:absolute;top:6px;right:6px;width:8px;height:8px;border-radius:50%;background:#e65076;border:2px solid #fff}
.bd-apc-avatar{width:88px;height:88px;border-radius:12px;background:#e6edf6;display:grid;place-items:center;color:#6b82a4;overflow:hidden;flex:none}
.bd-apc-avatar img{width:100%;height:100%;object-fit:cover}
.bd-apc-avatar .bd-icon{width:36px;height:36px}
.cv-site-row>.bd-photo-ph,.cv-site-row>img{width:180px;height:112px;border-radius:7px;object-fit:cover}
.cv-site-row p{margin-top:2px}
.bd-apc-legacy{min-width:0}
.bd-apc-toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:var(--bd-ink);color:#fff;font-size:13px;padding:11px 18px;border-radius:999px;opacity:0;pointer-events:none;transition:.2s;z-index:1000}
.bd-apc-toast.on{opacity:1;transform:translate(-50%,0)}
.bd-apc-toast.err{background:#c43c5c}
#bd-apc-dlg .bd-flex.bd-between{gap:16px;border-bottom:1px solid var(--bd-line-2);padding-bottom:10px}
#bd-apc-dlg .bd-flex.bd-between strong{text-align:right;overflow-wrap:anywhere}
@media (max-width:900px){.cv-site-row>.bd-photo-ph,.cv-site-row>img{width:130px}}
@media (max-width:767px){body.admin-bar .cv-sidebar{top:0}.cv-site-row>.bd-photo-ph,.cv-site-row>img{width:95px;height:85px}}
.bd-apc-legacy .bd-ph-flow{display:none} /* 새 셸이 .bd-progress 로 단계를 보여준다 */

/* ══ 모바일 점검 (2026-09-25) ══════════════════════════════════════════ */
/* 한글 줄바꿈 — 낱말 중간(예: "14 / 억", "56 / 세대", 끝 글자 "요.")에서 끊기지 않게.
   띄어쓰기 없는 긴 문자열만 칸을 넘을 때 끊는다. */
body.bd-approved,body.bd-console-body{word-break:keep-all;overflow-wrap:break-word}
.bd-card-price{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 사진 없는 카드 — 단지명이 아래 상태 배지에 가리지 않게 */
.bd-card-photo .bd-photo-ph{padding-bottom:40px}
/* 홈 지도 — 좁은 화면에서 가격 핀이 겹치지 않게 단지명 줄은 숨긴다 */
@media(max-width:767px){
	.bd-hero-map .bd-pin small{display:none}
	.bd-hero-map .bd-pin{font-size:12px;padding:5px 9px}
	/* 대출 계산 버튼이 푸터 마지막 줄을 가리지 않게 여백 */
	.bd-approved .bd-footer{padding-bottom:96px}
}

/* ══ 분양지도 — 모바일은 네이버 부동산식 (지도 전체 화면 · 위 검색/필터 · 아래 목록 버튼) ══ */
.bd-mmap-top,.bd-mmap-listbtn,.bd-mmap-close{display:none}
@media(max-width:767px){
	body.bd-map-page{padding-bottom:0;overflow:hidden;overscroll-behavior:none}
	body.bd-map-page .bd-header,body.bd-map-page .bd-mobile-nav,body.bd-map-page .bd-fc-fab,body.bd-map-page .bd-skip{display:none!important}
	.bd-map-page .bd-map-layout{position:fixed;inset:0;height:100dvh;min-height:0;display:block;overflow:hidden}
	.bd-map-page .bd-map-layout>.bd-map-canvas{position:absolute;inset:0;height:100%}

	/* 위 — 검색창 + 가로로 넘기는 필터 */
	.bd-mmap-top{display:block;position:absolute;top:0;left:0;right:0;z-index:12;padding:calc(10px + var(--bd-safe-top)) 12px 6px;pointer-events:none}
	.bd-mmap-top>*{pointer-events:auto}
	.bd-mmap-bar{display:flex;gap:8px;align-items:center}
	.bd-mmap-bar>.bd-icon-btn{width:44px;height:44px;flex:none;border:0;border-radius:12px;background:#fff;box-shadow:0 2px 10px #0b1c4d24}
	.bd-mmap-search{flex:1;display:flex;align-items:center;gap:8px;height:44px;margin:0;padding:0 4px 0 14px;border:0;border-radius:12px;background:#fff;box-shadow:0 2px 10px #0b1c4d24}
	.bd-mmap-search>.bd-icon{width:18px;height:18px;color:var(--bd-mute);flex:none}
	.bd-mmap-search input{flex:1;min-width:0;border:0;background:none;font-size:16px;padding:0;height:100%;outline:0;color:var(--bd-ink)}
	.bd-mmap-clear{width:36px;height:36px;border:0;background:none}
	.bd-mmap-clear[hidden]{display:none}
	.bd-mmap-suggest{margin-top:6px;border:0;border-radius:12px;box-shadow:0 6px 20px #0b1c4d24;max-height:52vh;overflow:auto;padding:6px}
	.bd-mmap-suggest[hidden]{display:none}
	.bd-mmap-suggest button{font-size:14px;padding:11px 10px;display:flex;align-items:center;gap:8px;color:var(--bd-ink-2)}
	.bd-mmap-suggest .bd-icon{width:16px;height:16px;color:var(--bd-mute)}
	.bd-mmap-recent-h{display:flex;justify-content:space-between;align-items:center;padding:6px 10px 4px;font-size:12px;color:var(--bd-mute)}
	.bd-mmap-recent-h button{display:inline;width:auto;padding:0;font-size:12px;color:var(--bd-mute)}
	.bd-mmap-filters{display:flex;gap:6px;overflow-x:auto;margin-top:8px;padding:1px 0 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
	.bd-mmap-filters::-webkit-scrollbar{display:none}
	.bd-mmap-filters .bd-chip,.bd-mmap-filters select{flex:none;height:34px;min-height:34px;margin:0;border:1px solid #d5e0ee;border-radius:17px;background:#fff;color:var(--bd-ink-2);font-size:13px;font-weight:500;padding:0 13px;box-shadow:0 1px 4px #0b1c4d14}
	.bd-mmap-filters select{-webkit-appearance:none;appearance:none;padding-right:26px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b80a5' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center}
	.bd-mmap-filters select:disabled{opacity:.55}
	.bd-mmap-filters .bd-chip.active,.bd-mmap-filters select.is-set{border-color:var(--bd-blue);background-color:var(--bd-blue);color:#fff}
	.bd-mmap-filters select.is-set{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E")}
	.bd-map-page .bd-map-topfilters{display:none}

	/* 지도 조작 — 확대·축소는 손가락으로, 위성·내 위치만 */
	.bd-map-page .bd-map-controls{top:calc(112px + var(--bd-safe-top));right:12px}
	.bd-map-page .bd-map-controls [data-mctl=in],.bd-map-page .bd-map-controls [data-mctl=out]{display:none}
	.bd-map-page .bd-map-controls .bd-icon-btn{width:40px;height:40px;border-radius:10px;background:#fff}
	.bd-map-page .bd-map-attribution{bottom:auto;top:calc(112px + var(--bd-safe-top));left:12px;right:auto}

	/* 핀 — 가격만, 작게 */
	.bd-map-page .bd-map-layout .bd-pin{font-size:12px;padding:5px 9px;min-width:0;border-radius:7px;line-height:1.3}
	.bd-map-page .bd-map-layout .bd-pin small{display:none}
	.bd-map-page .bd-kpin.active{z-index:9}

	/* 아래 — 목록 버튼 */
	.bd-mmap-listbtn{display:inline-flex;position:absolute;left:50%;bottom:calc(18px + var(--bd-safe-bottom));transform:translateX(-50%);z-index:11;align-items:center;gap:6px;height:44px;padding:0 20px;border:0;border-radius:22px;background:var(--bd-navy);color:#fff;font-size:14px;font-weight:700;box-shadow:0 6px 18px #0b1c4d47;white-space:nowrap}
	.bd-mmap-listbtn .bd-icon{width:18px;height:18px}
	.bd-mmap-listbtn b{color:#8fb8ff;font-weight:800}
	.bd-map-page .bd-map-compare{bottom:calc(72px + var(--bd-safe-bottom));left:50%;transform:translateX(-50%)}
	.bd-map-layout.has-popup .bd-mmap-listbtn,.bd-map-layout.has-popup .bd-map-compare{display:none}

	/* 핀을 누르면 — 아래 단지 카드 */
	.bd-map-page #map-popup .bd-map-popup{display:block!important;position:absolute;left:10px;right:10px;top:auto;bottom:calc(10px + var(--bd-safe-bottom));transform:none;width:auto;z-index:13;padding:14px;border-radius:16px;box-shadow:0 10px 30px #0b1c4d33;animation:bd-card-up .2s ease-out}
	.bd-map-page .bd-map-popup .bd-popup-photo{width:84px;height:84px}
	.bd-map-page .bd-map-popup h3{font-size:15px;padding-right:28px}
	.bd-map-page .bd-map-popup .bd-popup-actions .bd-btn{min-height:42px}
	@keyframes bd-card-up{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}

	/* 목록 — 버튼을 누르면 아래에서 올라오는 전체 화면 */
	.bd-map-page .bd-map-panel{position:fixed;inset:0;z-index:20;height:auto!important;max-height:none;margin:0;border:0;border-radius:0;box-shadow:none;padding:calc(8px + var(--bd-safe-top)) 16px calc(16px + var(--bd-safe-bottom));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;transform:translate3d(0,100%,0);visibility:hidden;transition:transform .28s cubic-bezier(.2,.8,.2,1),visibility 0s linear .28s;will-change:transform}
	.bd-map-page .bd-map-panel.is-open{transform:none;visibility:visible;transition:transform .28s cubic-bezier(.2,.8,.2,1),visibility 0s}
	.bd-map-page .bd-map-panel .bd-sheet-handle,.bd-map-page .bd-map-panel .bd-sheet-title,.bd-map-page .bd-map-panel>.bd-chips{display:none}
	.bd-map-page .bd-map-panel h1{font-size:13px;color:var(--bd-mute);font-weight:500;margin:6px 0 0}
	.bd-map-page .bd-result-heading{position:sticky;top:calc(-8px - var(--bd-safe-top));z-index:2;display:flex;align-items:center;gap:8px;margin:0 -16px 4px;padding:10px 16px;background:#fff;border-bottom:1px solid var(--bd-line)}
	.bd-map-page .bd-result-heading strong{flex:1;font-size:16px}
	.bd-map-page .bd-result-heading select{font-size:13px}
	.bd-mmap-close{display:inline-flex;align-items:center;gap:4px;flex:none}
	.bd-mmap-close .bd-icon{width:16px;height:16px}
	.bd-map-page .bd-map-row{padding:12px 2px}
}

/* ── 분양지도 핀 묶음 (겹치는 핀을 "N개 단지"로) ── */
.bd-kpin.is-cluster b{font-weight:800;color:#8fb8ff;margin-right:1px}
.bd-kpin.is-cluster:hover,.bd-kpin.is-cluster:focus-visible{background:var(--bd-blue)}
.bd-kpin.is-cluster:hover b{color:#fff}
.bd-map-popup-group h3{font-size:15px;margin:0 30px 8px 2px}
.bd-map-group-list{display:flex;flex-direction:column;max-height:260px;overflow:auto;margin:0 -4px}
.bd-map-group-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 6px;border:0;border-top:1px solid var(--bd-line-2);background:none;text-align:left;border-radius:6px;cursor:pointer;color:var(--bd-ink)}
.bd-map-group-row:hover{background:var(--bd-soft)}
.bd-map-group-row span{min-width:0}
.bd-map-group-row strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bd-map-group-row small{display:block;font-size:12px;color:var(--bd-mute)}
.bd-map-group-row em{font-style:normal;font-weight:700;color:var(--bd-blue);white-space:nowrap}
.bd-map-layout .bd-kpin small{display:block;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-inline:auto}

/* ── 모바일 전체 점검 (2026-09-25) ── */
@media (max-width:767px){
	/* 카드 사진 자리 — 좁은 카드에선 단지명이 상태 배지에 가려진다. 이름은 카드 본문에 있으니 아이콘만 */
	.bd-card-photo .bd-photo-ph strong{display:none}
	/* 상세 — 안쪽 .bd-container 가 한 번 더 여백을 줘 본문이 263px 로 좁아지던 것 */
	.bd-detail .bd-container{width:auto;margin-inline:0;padding-inline:0}
	.bd-detail .bd-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	/* 하단 고정 막대 — 상담 버튼(.bd-mobile-cta)이 있는 화면은 하단 메뉴를 숨기고, 파트너 안내·계산기 버튼을 그 위로 */
	body:has(.bd-mobile-cta) .bd-mobile-nav{display:none}
	body:has(.bd-mobile-cta) .bd-mh-promo-bar{bottom:calc(65px + var(--bd-safe-bottom,0px))}
	body:has(.bd-mh-promo-bar.is-visible) #bd-fc-fab{bottom:calc(150px + var(--bd-safe-bottom,0px))}
	body:has(.bd-mobile-cta):has(.bd-mh-promo-bar.is-visible) #bd-fc-fab{bottom:calc(142px + var(--bd-safe-bottom,0px))}
}

/* 하단 안내 띠 (소개·파트너 안내) — 예전 스타일이 .bd-legacy 안에서만 먹어 새 디자인에서 맨 글자로 보이던 것 */
.bd-detail-cta-band{background:var(--bd-navy);color:#fff;padding:26px 0;margin-top:30px}
.bd-dcb-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.bd-dcb-copy{display:flex;flex-direction:column;gap:4px}
.bd-dcb-copy small,.bd-dcb-copy span{font-size:13px;color:#b9c8e4}
.bd-dcb-copy strong{font-size:22px;letter-spacing:-.04em;color:#fff}
.bd-dcb-actions{display:flex;gap:10px}
@media (max-width:767px){
	.bd-detail-cta-band{margin-top:24px;padding:22px 0}
	.bd-dcb-copy strong{font-size:18px;word-break:keep-all}
	.bd-dcb-actions{width:100%}
	.bd-dcb-actions .bd-btn{flex:1 1 0}
}

/* 예전 구역(.bd-legacy) 컨테이너 — 1023px 이하에서 폭 계산(100%-64/32)에 좌우 24px 여백이 한 번 더 붙어 본문이 좁아지던 것 */
@media (max-width:1023px){ body .bd-legacy .bd-container{padding-inline:0} }

/* 글자 있는 관심등록 버튼(.bd-btn.bd-heart) — 아이콘 전용 28px 원형 규칙이 먹어 글자가 옆 버튼 위로 넘치던 것 */
.bd-btn.bd-heart{position:static;width:auto;height:auto;min-height:32px;padding:6px 12px;gap:4px;border:1px solid var(--bd-line);background:#fff;color:var(--bd-ink-2)}
.bd-btn.bd-heart .bd-icon{width:16px;height:16px}

/* 뉴스 카드(모바일 가로형) — 사진 칸이 줄어들고 제목이 카드 오른쪽 끝에 붙던 것 */
@media (max-width:767px){
	.bd-news-card>a:first-child{flex:none;position:relative;width:100px;height:76px;border-radius:6px;overflow:hidden}
	.bd-news-card>a:first-child>.bd-news-photo{width:100%;height:100%}
	.bd-news-card .bd-card-body{min-width:0;flex:1;padding-right:4px}
	.bd-news-card .bd-photo-ph strong{display:none}
	.bd-lv.is-list>.bd-news-card>a:first-child{width:auto;height:100%}
}
/* 체크박스 묶음(AI 입지분석 항목 등) — 모바일에선 2열로 가지런히 */
@media (max-width:767px){ .bd-chips:has(>.bd-checkbox){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 8px} }

/* .bd-container 와 .bd-legacy 를 같이 단 상자 — 예전 body 규칙(margin:0)이 가운데 정렬을 지워 왼쪽에 붙던 것 */
.bd-container.bd-legacy{margin-inline:auto}

/* 일반 페이지 본문 (이용약관·개인정보처리방침 등) */
.bd-prose{max-width:820px;font-size:15px;line-height:1.85;color:var(--bd-ink-2);word-break:keep-all;overflow-wrap:anywhere;padding-bottom:24px}
.bd-prose h2{font-size:21px;color:var(--bd-ink);margin:34px 0 12px}
.bd-prose h3{font-size:17px;color:var(--bd-ink);margin:26px 0 10px}
.bd-prose p,.bd-prose ul,.bd-prose ol{margin:0 0 14px}
.bd-prose ul,.bd-prose ol{padding-left:20px}
.bd-prose li{margin-bottom:4px}
.bd-prose a{color:var(--bd-blue);text-decoration:underline;text-underline-offset:2px}
.bd-prose img{height:auto;border-radius:8px}
.bd-prose table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:0 0 16px;font-size:14px}
.bd-prose th,.bd-prose td{border:1px solid var(--bd-line);padding:8px 10px;text-align:left;vertical-align:top}
.bd-prose th{background:var(--bd-soft);color:var(--bd-ink)}
.bd-prose-cover{margin:0 0 24px}
@media (max-width:767px){ .bd-prose{font-size:14px;line-height:1.8} .bd-prose h2{font-size:18px;margin-top:28px} .bd-prose h3{font-size:16px} }
/* 너무 작은 글자(9~10px) — 휴대폰에서 읽히게 한 단계 키움 */
@media (max-width:767px){
	.bd-metric small,.bd-metric .bd-trend{font-size:10.5px}
	.bd-toolstrip .bd-tool strong{font-size:11px}
	.bd-fact small{font-size:11px}
}
/* 파트너 콘솔 내 홈페이지 목록 — 95px 썸네일 자리에 이름이 잘려 보이던 것(이름은 옆에 크게 있음) */
@media (max-width:767px){ .cv-site-row .bd-photo-ph strong{display:none} }

/* 푸터 — 약관 링크 4종 + 사업자 정보 줄 (inc/legal.php) */
.bd-footer-links{flex-wrap:wrap;row-gap:6px}
.bd-footer-biz{margin-top:6px;font-size:11px;line-height:1.7;color:#8292ac;word-break:keep-all}
.bd-footer-biz i{font-style:normal;color:#b5c1d4}
@media (max-width:767px){.bd-footer-biz{font-size:10px}}
