/* 자동 생성(scripts/build-danji.mjs). 단지 페이지 전용 */
.dj-calc{margin:14px 0 0;padding:14px 16px;border-radius:14px;background:#fff;border:1px solid var(--line, #e5e7eb);display:grid;gap:4px;font-size:15px;line-height:1.5}
.dj-calc b{color:var(--navy);font-size:15px}.dj-calc strong{color:var(--navy);font-size:18px}
.dj-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 640px; }
.dj-shots figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.08); }
.dj-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dj-shots figcaption { position: absolute; left: 6px; bottom: 6px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.dj-hero .perks li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: var(--on-navy); }
.dj-hero .perks li.hot { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.dj-hero .perks li.hot::before { background: var(--navy); }
.label { letter-spacing: .04em; }
.dj-hero { background: var(--navy); color: var(--on-navy); --heading: var(--on-navy); --btn-bg: var(--accent); --btn-fg: var(--navy); }
.dj-hero .wrap { padding-block: 48px 44px; display: grid; gap: 18px; max-width: 980px; }
.dj-hero .crumb { font-size: 13px; color: var(--on-navy-muted); }
.dj-hero .crumb a { color: var(--on-navy-muted); }
.dj-hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.18; }
.dj-hero h1 em { font-style: normal; color: var(--accent); }
.dj-hero .answer { font-size: 17px; color: var(--on-navy-muted); max-width: 46em; }
.dj-hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.dj-hero .btn-line { background: rgba(255,255,255,.12); color: var(--on-navy); }
.dj-live { margin: 4px 0 6px; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.dj-live .lv-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.dj-live small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.dj-live .lv-top b { font: 800 30px/1.15 var(--body); color: var(--navy); letter-spacing: -0.02em; }
.dj-live .lv-top b span { font-family: var(--num); }
.dj-live .lv-pct { text-align: right; }
.dj-live .lv-pct b { color: #E30048; font-family: var(--num); }
.dj-live .lv-bar { height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.dj-live .lv-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--green)); min-width: 10px; transition: width .6s ease; }
.dj-live .lv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dj-live .lv-steps li { border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 4px; text-align: center; display: grid; gap: 0; background: var(--paper); }
.dj-live .lv-steps b { font: 800 18px/1.2 var(--num); color: var(--muted); }
.dj-live .lv-steps span { font-size: 11.5px; color: var(--muted); }
.dj-live .lv-steps li.on { background: var(--navy); border-color: var(--navy); }
.dj-live .lv-steps li.on b { color: var(--accent); } .dj-live .lv-steps li.on span { color: var(--on-navy-muted); }
.dj-live .lv-next { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--navy); line-height: 1.55; }
.dj-recruit-link { margin: 22px 0 0; font-size: 14px; } .dj-recruit-link a { color: var(--muted); }
.dj-ev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dj-ev .ev { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-md); padding: 16px 18px; display: grid; gap: 4px; min-width: 0; }
.dj-ev .ev .n { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--accent); }
.dj-ev .ev b { font: 800 34px/1.1 var(--num); color: #fff; }
.dj-ev .ev span:last-child { font-size: 14px; color: var(--on-navy-muted); }
.dj-ev .ev.hot { background: var(--accent); border-color: var(--accent); }
.dj-ev .ev.hot .n, .dj-ev .ev.hot b, .dj-ev .ev.hot span:last-child { color: var(--navy); }
.dj-hero .ev-note { font-size: 13px; color: var(--on-navy-muted); }
.dj-why { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 10px; }
.dj-why li { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px 16px; font-size: 14.5px; color: var(--ink-2); }
.dj-why li b { color: var(--heading); }
.dj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dj-chips span { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.1); color: var(--on-navy); }
.dj-chips span.y { background: var(--accent); color: var(--navy); }
section.dj { padding-block: 64px; }
section.dj .wrap { max-width: 980px; }
section.dj h2 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0 18px; }
section.dj p.sub { color: var(--ink-2); max-width: 46em; margin-bottom: 20px; }
.dj-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.dj-facts div { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 16px 18px; display: grid; gap: 2px; min-width: 0; }
.dj-facts small { font-size: 13px; color: var(--muted); }
.dj-facts b { font-size: 18px; color: var(--heading); }
.dj-price-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
table.dj-price { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.dj-price th, table.dj-price td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.dj-price th:first-child, table.dj-price td:first-child { text-align: left; white-space: normal; }
table.dj-price thead th { font-size: 13px; color: var(--muted); font-weight: 700; }
table.dj-price td small { display: block; font-size: 12.5px; color: var(--muted); }
table.dj-price td s { color: var(--muted); }
table.dj-price td b { font-family: var(--num); font-size: 17px; color: var(--blue-ink); }
table.dj-price tr.hot td:first-child b { color: var(--heading); }
table.dj-price tr:last-child td { border-bottom: 0; }
.dj-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: s; }
.dj-steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px 18px 14px 58px; position: relative; }
.dj-steps li::before { content: counter(s); position: absolute; left: 18px; top: 14px; width: 26px; height: 26px; border-radius: 99px; background: var(--navy); color: #fff; font: 700 14px/26px var(--num); text-align: center; }
.dj-steps li b { color: var(--heading); }
.dj-steps li.us { border-color: var(--blue); }
.dj-partner { background: var(--navy); color: var(--on-navy); --heading: var(--on-navy); --btn-bg: var(--accent); --btn-fg: var(--navy); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; }
.dj-partner h2 { margin: 0 !important; }
.dj-partner p { color: var(--on-navy-muted); }
.dj-partner .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dj-partner .nums div { background: var(--navy-2); border-radius: var(--r-sm); padding: 14px 16px; }
.dj-partner .nums b { display: block; font: 800 28px/1.1 var(--num); color: var(--accent); }
.dj-partner .nums span { font-size: 13.5px; color: var(--on-navy-muted); }
.dj-partner ul { margin: 0; padding-left: 18px; color: var(--on-navy-muted); font-size: 14px; }
.dj-partner .btn-line { background: rgba(255,255,255,.12); color: var(--on-navy); }
.dj-sib { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 16px 18px; margin-top: 14px; }
.dj-form-wrap { background: var(--navy); --heading: var(--on-navy); }
.dj-form-wrap .wrap { padding-block: 64px; max-width: 760px; display: grid; gap: 18px; }
.dj-form-wrap h2 { color: var(--on-navy); font-size: clamp(24px, 3vw, 34px); }
.dj-form-wrap p.sub { color: var(--on-navy-muted); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; background: var(--field); cursor: pointer; }
.pick input { accent-color: var(--blue); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dj-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.dj-list a { display: grid; gap: 4px; text-decoration: none; background: var(--card); border: 1px solid var(--line-2); border-top: 4px solid var(--blue); border-radius: var(--r-lg); padding: 18px 20px; }
.dj-list a b { font-size: 18px; color: var(--heading); }
.dj-list a span { font-size: 14px; color: var(--muted); }
/* 파트너 모집 팝업 (아래에서 올라오는 시트). 닫으면 7일 동안 안 뜬다 */
.pp { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; background: rgba(2,35,58,.45); padding: 16px; }
.pp[hidden] { display: none; }
.pp .sheet { width: min(460px, 100%); background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); border-top: 5px solid var(--accent); }
.pp .sheet h3 { font-size: 21px; color: var(--heading); }
.pp .sheet p { font-size: 15px; color: var(--ink-2); }
.pp .sheet .row { display: flex; gap: 8px; flex-wrap: wrap; }
.pp .sheet .row .btn { flex: 1 1 160px; min-height: 48px; }
.pp .x { justify-self: end; background: none; border: 0; font-size: 14px; color: var(--muted); cursor: pointer; padding: 4px; }
@media (min-width: 961px) { .pp { align-items: center; } .pp .sheet { margin-bottom: 0; } }
@media (max-width: 760px) { .dj-ev { grid-template-columns: 1fr 1fr; } .dj-ev .ev.hot { grid-column: 1 / -1; } .dj-ev .ev b { font-size: 26px; } }
/* 휴대폰: 가격표를 카드로, 할인 단계·단지 정보는 한 줄에 여러 칸(kevin 2026-11-16 "모바일 너무 성의없어 보임") */
@media (max-width: 640px) {
  .dj-price-wrap { overflow: visible; background: none; border: 0; border-radius: 0; }
  table.dj-price, table.dj-price tbody { display: grid; gap: 10px; min-width: 0; }
  table.dj-price thead { display: none; }
  table.dj-price tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 16px 18px; box-shadow: 0 6px 18px rgba(3,52,85,.05); }
  table.dj-price tr.hot { border: 1.5px solid var(--navy); }
  table.dj-price td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
  table.dj-price tr:last-child td { border: 0; }
  table.dj-price td:first-child { grid-column: 1 / -1; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px dashed var(--line-2); }
  table.dj-price td:first-child b { font-size: 17px; color: var(--heading); }
  table.dj-price td:first-child small { margin-top: 3px; line-height: 1.5; }
  table.dj-price td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 13.5px; color: var(--muted); }
  table.dj-price td:nth-child(2)::before { content: "정가 "; }
  table.dj-price td:nth-child(2) small { display: inline; }
  table.dj-price td:nth-child(4) { grid-column: 1; grid-row: 3; font-size: 13px; color: var(--muted); }
  table.dj-price td:nth-child(4)::before { content: "보증 "; }
  table.dj-price td:nth-child(3) { grid-column: 2; grid-row: 2 / span 2; text-align: right; }
  table.dj-price td:nth-child(3)::before { content: "이벤트가"; display: block; font-size: 12px; font-weight: 700; color: var(--red-ink, #C00040); }
  table.dj-price td:nth-child(3) b { font-size: 24px; letter-spacing: -0.02em; }
  table.dj-price td:nth-child(3) b::after { content: "원"; font-size: 15px; margin-left: 1px; }
  .tiers { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tiers .tier { padding: 14px 10px; text-align: center; gap: 2px; }
  .tiers .tier b { font-size: 24px; }
  .tiers .tier span { font-size: 12.5px; line-height: 1.4; }
  .dj-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dj-facts div { padding: 14px; }
  .dj-facts b { font-size: 16px; line-height: 1.35; }
}
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } section.dj { padding-block: 48px; } .dj-hero .wrap { padding-block: 18px 36px; gap: 14px; } .dj-partner { padding: 22px; } }
