/* ===== 현장 브랜드: 서대전 상떼빌 시그니처 (로고 딥네이비 · 골드) — 기준 사이트 CSS 위에 색만 덮어씀 ===== */
:root {
  --main: #0c1a3c;
  --point: #b8841a;
  --line: #e1e3ea;
  --bg-alt: #f4f4f6;
  --reg-dark1: #13254f;
  --reg-dark2: #070f26;
  --reg-gold: #dcb35c;
  --hero-title: #0c1a3c;
  --sub: #5a6380;
}
.tab-btn:hover { background: rgba(12,26,60,.06); }
.btn-primary { box-shadow: none; }
.info-table th { background: #f6f6f8; }

@media (min-width: 769px) {
  body.home .hero-sky { background: #6fa8e8; }
  .hero-sub { background: linear-gradient(90deg, rgba(12,26,60,.88), rgba(12,26,60,.6)) !important; }
  .hero-sub span::before { background: #dcb35c; }
}

/* 메인 글씨: 하늘·도시 위 → 흰 글씨 + 진한 그림자 */
@media (min-width: 769px) {
  body.home .hero-img { object-position: 100% 50%; }
  .hero-copy { color: #fff; }
  .hero-copy h1 { color: #fff !important; text-shadow: 0 0 4px rgba(5,12,32,.85), 0 0 14px rgba(5,12,32,.7), 0 2px 34px rgba(5,12,32,.6), 0 0 60px rgba(5,12,32,.4) !important; }
  .hero-lead, body.home .hero-kicker { color: #fff !important; font-weight: 700 !important; text-shadow: 0 0 3px rgba(5,12,32,1), 0 0 8px rgba(5,12,32,.9), 0 0 22px rgba(5,12,32,.7) !important; }
  .hero-lead { font-size: 23px !important; }
  body.home .hero-kicker { color: #f3d58f !important; font-size: 15px !important; font-family: 'Pretendard Variable', Pretendard, sans-serif !important; font-weight: 800 !important; letter-spacing: .28em !important; }
}
/* 로고: 투명 헤더에서는 남색 글씨만 흰색으로 바꾼 판 사용(골드 유지) */
.logo img { height: 64px; }
@media (min-width: 769px) { body.home .hero-copy h1 { font-size: clamp(40px, 3.7vw, 60px) !important; } }
.logo .logo-w { display: none; }
@media (min-width: 769px) {
  body.home .site-header:not(.solid):not(.mega-open) .logo .logo-c { display: none; }
  body.home .site-header:not(.solid):not(.mega-open) .logo .logo-w { display: block; filter: drop-shadow(0 1px 6px rgba(5,12,32,.55)) !important; }
  body.home .site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 70px); background: linear-gradient(rgba(6,14,40,.5) 0%, rgba(6,14,40,.32) 55%, rgba(6,14,40,0) 100%); pointer-events: none; z-index: -2; transition: opacity .45s ease; }
  body.home .site-header.solid::after, body.home .site-header.mega-open::after { opacity: 0; }
  body.home .site-header:not(.solid):not(.mega-open) .gnb > ul > li > a { font-weight: 700; text-shadow: 0 0 2px rgba(5,12,32,.8), 0 1px 10px rgba(5,12,32,.6) !important; }
}
.site-footer .footer-logo { height: 34px !important; filter: none !important; opacity: .95; }
@media (max-width: 768px) { .logo img { height: 32px; } body.home .hero-kicker { font-size: 11.5px !important; letter-spacing: .16em !important; } }

/* 사업개요: PC는 사진 높이 = 오른쪽(문구+표) 높이 */
.biz-grid .biz-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1025px) {
  .biz-grid { align-items: stretch; }
  .biz-grid .biz-img { position: relative; margin: 0; overflow: hidden; min-height: 0; }
  .biz-grid .biz-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
  .biz-grid > div { align-self: start; }
}
@media (max-width: 1024px) { .biz-grid .biz-img img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; } }
.biz-slogan { margin: 0 0 16px; padding: 16px 20px; background: var(--main); color: #fff; font-size: 16px; line-height: 1.6; }
.biz-slogan strong { color: #e8c57a; font-family: 'Noto Serif KR', serif; font-weight: 600; font-size: 19px; }
.biz-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.unit-block.supply { margin-top: 46px; margin-bottom: 0; }
.type-table th small { font-weight: 500; font-size: .8em; color: var(--muted); }

/* 프리미엄·특화 카드 사진 */
.pcard.has-photo { padding-top: 0; overflow: hidden; }
.pcard .pc-photo { margin: 0 -26px 22px; aspect-ratio: 10 / 7; overflow: hidden; border-bottom: 1px solid var(--line); }
.pcard .pc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard.has-photo:hover .pc-photo img { transform: scale(1.04); }
.point-grid .pcard .pc-photo { margin: 0 -22px 0; }
@media (max-width: 768px) { .pcard .pc-photo { margin: 0 -20px 18px; } .point-grid .pcard .pc-photo { margin: 0 -22px 0; } }
[data-panel="b-premium"] .intro-card { max-width: none; }

/* 카드 묶음 */
.point-grid.five { grid-template-columns: repeat(6, 1fr); }
.point-grid.five .pcard { grid-column: span 2; }
.point-grid.five .pcard:nth-child(4) { grid-column: 2 / span 2; }
.point-grid.comm-grid { grid-template-columns: repeat(5, 1fr); }
.point-grid.comm-grid .pcard, .point-grid.comm-grid .pcard:nth-child(4) { grid-column: auto; padding: 22px 18px; }
.point-grid.comm-grid .pcard b { font-size: 24px; }
.point-grid.comm-grid .pcard h3 { font-size: 17px; }
.point-grid.comm-grid .pcard p { font-size: 13.5px; }
.point-grid.sys.c4 { grid-template-columns: repeat(4, 1fr); }
.point-grid.sys.c3 { grid-template-columns: repeat(3, 1fr); }
.point-grid.sys { margin-top: 0; }
.photo-slider + .point-grid { margin-top: 24px; }
@media (max-width: 1024px) {
  .point-grid.five, .point-grid.comm-grid, .point-grid.sys.c4, .point-grid.sys.c3 { grid-template-columns: repeat(2, 1fr); }
  .point-grid.five .pcard, .point-grid.five .pcard:nth-child(4) { grid-column: auto; }
}
@media (max-width: 768px) { .point-grid.five, .point-grid.comm-grid, .point-grid.sys.c4, .point-grid.sys.c3 { grid-template-columns: 1fr; } }

/* 특화설계 */
.special-block { max-width: var(--figure-max); margin: 50px auto 0; }
.special-block.first { margin-top: 0; }
.sp-head { margin-bottom: 18px; }
.sp-head span { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.01em; color: var(--point); font-family: 'Noto Serif KR', serif; }
.sp-head h3 { margin: 4px 0 6px; font-size: 21px; color: var(--main); }
.sp-head p { margin: 0; color: #555; line-height: 1.6; }
.special-block.live { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
.special-block.live .figure { margin: 0; max-width: none; }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--main); }
.feature-list li { padding: 14px 4px; border-bottom: 1px solid var(--line); color: #666; font-size: 14.5px; line-height: 1.6; }
.feature-list li b { display: block; margin-bottom: 2px; color: var(--main); font-size: 17px; }
.sp-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.sp-note.center { text-align: center; margin-top: 18px; }
@media (max-width: 768px) {
  .sp-head span { font-size: 22px; }
  .special-block.live { grid-template-columns: 1fr; gap: 18px; }
  .special-block.live .figure { max-width: 260px; margin: 0 auto; }
}

/* 민간임대 안내 */
.rental-wrap { max-width: var(--figure-max); margin: 0 auto 26px; }
.type-table.rental { min-width: 620px; font-size: 15px; }
.type-table.rental th:first-child, .type-table.rental tbody th { width: 140px; }
.type-table.rental td { text-align: left; padding: 13px 16px; color: #555; }
.type-table.rental thead th.hl { background: var(--main); color: #fff; }
.type-table.rental td.hl { color: var(--main); font-weight: 700; background: #fbf7ee; }
.qa-list { max-width: var(--figure-max); margin: 0 auto; border-top: 2px solid var(--main); }
.qa-list details { border-bottom: 1px solid var(--line); background: #fff; }
.qa-list summary { cursor: pointer; list-style: none; padding: 17px 48px 17px 20px; position: relative; font-weight: 700; font-size: 16px; color: var(--main); }
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary::before { content: "Q"; margin-right: 10px; color: var(--point); font-family: 'Noto Serif KR', serif; font-weight: 700; }
.qa-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--point); }
.qa-list details[open] summary::after { content: "−"; }
.qa-list details p { margin: 0; padding: 0 20px 18px 44px; color: #555; line-height: 1.75; font-size: 15px; }
@media (max-width: 768px) {
  .type-table.rental { min-width: 0; font-size: 13px; }
  .type-table.rental th:first-child, .type-table.rental tbody th { width: 70px; }
  .type-table.rental td { padding: 10px 8px; }
  .qa-list summary { font-size: 14.5px; padding: 14px 40px 14px 14px; }
  .qa-list details p { padding: 0 14px 14px 14px; font-size: 14px; }
}

/* 타입 색 (08_동호수배치도 범례 색) */
.type-table .t84a, .type-legend i.t84a { background: #9469c9; color: #fff; }
.type-table .t84c, .type-legend i.t84c { background: #b89be0; }
.type-table .t84b, .type-legend i.t84b { background: #f4a61d; }
.type-table .toa, .type-legend i.toa { background: #1d6fcf; color: #fff; }
.type-table .tob, .type-legend i.tob { background: #15a39b; color: #fff; }
.type-table .toc, .type-legend i.toc { background: #5cc3b8; }

/* 커뮤니티: 사진 카드 5개 (3 + 2) */
.premium-grid.comm-cards { grid-template-columns: repeat(6, 1fr); max-width: var(--figure-max); margin: 0 auto; }
.premium-grid.comm-cards .pcard { grid-column: span 2; }
.premium-grid.comm-cards .pcard:nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 1024px) { .premium-grid.comm-cards { grid-template-columns: 1fr 1fr; } .premium-grid.comm-cards .pcard, .premium-grid.comm-cards .pcard:nth-child(4) { grid-column: auto; } }
@media (max-width: 768px) { .premium-grid.comm-cards { grid-template-columns: 1fr; } }
.comm-more { max-width: var(--figure-max); margin: 22px auto 0; padding: 16px 20px; background: #fff; border: 1px solid var(--line); text-align: center; color: #555; font-size: 15px; }
.comm-more b { margin-right: 12px; color: var(--main); }
@media (max-width: 768px) { .comm-more b { display: block; margin: 0 0 4px; } }
/* 입지: 간결한 카드 */
.loc-grid .pcard p { font-size: 14px; }

/* ===== 동호수배치도: 왼쪽 이미지 + 오른쪽 범례·동별 표 ===== */
.unit-side { max-width: var(--figure-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 32px; align-items: start; }
.unit-frame { margin: 0; max-width: none; }
.unit-info { position: sticky; top: calc(var(--header-h, 120px) + 20px); }
.unit-info .type-legend { justify-content: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--line); }
.unit-info .type-legend li.sum { flex-basis: 100%; }
.unit-info .dong-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 0; }
.unit-info .unit-note { text-align: left; }
@media (max-width: 900px) { .unit-side { grid-template-columns: 1fr; } .unit-info { position: static; } .unit-frame { max-width: 520px; margin: 0 auto; } }
.unit-split { max-width: 860px; margin: 0 auto; }
.unit-frame img { background: #fff; padding: 22px; border: 1px solid #d6dae2 !important; }
.dong-grid { display: grid; gap: 12px; margin-top: 18px; }
.dong-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.dong-card { background: #fff; border: 1px solid var(--line); }
.type-table.dong-mini { min-width: 0; width: 100%; border-top: 0; font-size: 13.5px; table-layout: fixed; }
.type-table.dong-mini caption { caption-side: top; padding: 9px 6px; background: var(--main); color: #fff; font-weight: 800; font-size: 15px; }
.type-table.dong-mini caption small { font-weight: 500; opacity: .85; }
.type-table.dong-mini th, .type-table.dong-mini td { padding: 7px 2px; }
.type-table.dong-mini th { width: 44px; font-size: 12px; }
.type-table.dong-mini td[class^="t"] { font-weight: 800; font-size: 12.5px; }
.type-table.dong-mini td small { display: block; font-size: 10.5px; color: var(--muted); }
.dong-f4 { margin: 0; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: #666; text-align: center; }
.type-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0 auto 18px; padding: 0; font-size: 14px; color: #444; }
.type-legend li { display: flex; align-items: center; gap: 6px; }
.type-legend i { width: 14px; height: 14px; display: inline-block; }
.type-legend li.sum { font-weight: 800; color: var(--main); }
.unit-note { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 768px) { .unit-frame img { padding: 8px; } .dong-grid.c3 { grid-template-columns: 1fr; } }

/* ===== 평면: 면적 카드 + 평면도 · 특징 ===== */
.plan-info { max-width: 980px; margin: 0 auto 20px; display: flex; align-items: stretch; background: #fff; border: 1px solid var(--line); }
.plan-info .pi-name { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 26px; background: var(--main); color: #fff; }
.plan-info .pi-name b { font-size: 32px; line-height: 1; font-weight: 800; white-space: nowrap; }
.plan-info .pi-name b small { font-size: .55em; font-weight: 600; }
.plan-info .pi-name em { font-style: normal; padding: 2px 10px; background: var(--point); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.plan-info dl { flex: 1; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.plan-info.c2 dl { grid-template-columns: repeat(2, 1fr); }
.plan-info dl div { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 12px 6px; border-left: 1px solid var(--line); }
.plan-info dt { font-size: 13px; color: var(--muted); }
.plan-info dd { margin: 4px 0 0; font-size: 19px; font-weight: 700; color: var(--main); }
.plan-info dl div.em dd { color: var(--point); }
.plan-body { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; align-items: center; }
.figure.plan { margin: 0; max-width: none; }
.figure.plan img { width: 100%; border: 1px solid var(--line); background: #fff; }
.plan-feat h4 { margin: 0 0 10px; padding-left: 12px; border-left: 4px solid var(--point); font-size: 17px; color: var(--main); }
.plan-feat ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--main); }
.plan-feat li { padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: #666; line-height: 1.55; }
.plan-feat li b { display: block; color: var(--main); font-size: 15.5px; }
.plan-feat li b::before { content: "◆"; margin-right: 6px; color: var(--point); font-size: 11px; vertical-align: 2px; }
@media (max-width: 768px) {
  .plan-info { flex-direction: column; }
  .plan-info .pi-name { flex-direction: row; gap: 10px; padding: 12px; }
  .plan-info .pi-name b { font-size: 24px; }
  .plan-info dd { font-size: 16px; }
  .plan-body { grid-template-columns: 1fr; gap: 18px; }
}
