/* ── tokens.css ── */
/* JariLab 디자인 토큰 — CI 정본.
 *
 * css/ 의 모듈(기본·틀·컴포넌트·지면)과 나눠 둔 이유: 이 파일은 **company-web 만의 것이 아니다.**
 * 서비스 웹·앱·문서가 같은 값을 써야 브랜드가 하나로 보인다. 다른 리포로 복사할 때
 * 이 파일만 가져가면 되도록 여기에는 색·치수만 두고 컴포넌트 규칙은 두지 않는다.
 *
 * 두 층으로 나눈다:
 *   1. 원시 팔레트 (--jl-*)  브랜드가 정한 색 그 자체. 여기 값은 함부로 안 바꾼다
 *   2. 역할        (--ink 등) 화면에서 무엇에 쓰는지
 * 컴포넌트는 **역할만** 참조한다. 원시 팔레트를 직접 쓰면 나중에 면을 갈 때 어긋난다.
 *
 * 2026-10-05 「Night & Ocher」 로 교체 (이전 Civic Blue · master-plan ADR-0066).
 * 브랜드색 = 데이터 범례색이다. 3D 장면에서 「대장 높이」 를 칠하는 황토가 로고 교집합·
 * 버튼·강조까지 그대로 이어진다. 바탕은 밝은 종이 한 벌이고, **밤(--jl-night)은 무대**다 —
 * 홈 히어로·3D 장면 창·푸터처럼 장면을 담는 자리에만 깐다. 본문을 밤 위에 올리지 않는다.
 * 대비는 WCAG 2.1 상대휘도로 계산해서 골랐다. 값은 CI.md 의 표와 같다.
 */

:root {
  color-scheme: light;

  /* ── 1. 원시 팔레트 (Night & Ocher) ─────────────────────────────────── */
  --jl-night: #0B1220;        /* 무대 바탕. 히어로·장면 창·푸터. 종이 위 잉크로도 쓴다 (paper 16.6:1) */
  --jl-night-2: #121C2E;      /* 밤 위 한 단 밝은 면 (카드·HUD) */
  --jl-night-line: #26344D;   /* 밤 위 괘선 */
  --jl-on-night: #EEF2F7;     /* 밤 위 본문 (night 위 16.7:1) */
  --jl-on-night-soft: #A9B6C9;/* 밤 위 보조 글자 (night 위 9.1:1) */
  --jl-ocher: #E8A33D;        /* 브랜드 = 범례 「대장 높이」. paper 1.9:1 · night 위 8.7:1 — ⛔ 종이 위 글자색이 아니다.
                                 로고 교집합·버튼·뱃지·범례 같은 면(≥ 8px)과 밤 위 글자에만 쓴다 */
  --jl-ocher-ink: #855000;    /* 종이 위에서 황토를 글자·가는 선으로 쓸 때 (paper 5.9:1 · card 6.4:1) */
  --jl-ocher-wash: rgba(232, 163, 61, .18); /* 종이 위 황토의 옅은 판 — 차트 면·뱃지 바탕 */
  --jl-slate: #6F8FA3;        /* 범례 「층수 × 3.3m 추정」 회청. 데이터 도형 전용 — 글자 ⛔ (paper 3.0:1) */
  --jl-paper: #EEF2F6;        /* 화면 바탕. 순백(#FFF)은 큰 면적에서 눈이 아프다 */
  --jl-paper-2: #E1E7EE;      /* 종이 교대 면 (목록·대안 섹션) */
  --jl-card: #F8FAFC;         /* 종이 위로 띄우는 카드·입력칸 */
  --jl-line: #C9D2DD;         /* 종이 위 괘선 */
  --jl-ink-soft: #46546B;     /* 종이 위 보조 글자 (paper 6.8:1) */
  --jl-tint: #F3EADB;         /* 로고 판·도감 표지 바탕 — 황토의 아주 옅은 종이. 화면 바탕으로는 쓰지 않는다 */
  --jl-white: #FFFFFF;
  /* 데이터 보조색 (2026-10-06, ADR-0071) — 범주가 황토·회청 둘로 모자랄 때만. 벽돌은 3D 장면의 「넣은 주소 건물」 색과 같다 */
  --jl-brick: #B24925;        /* paper 4.8:1 — 도형·면 */
  --jl-brick-ink: #8F3417;    /* 종이 위 글자 (paper 7.0:1) */
  --jl-brick-wash: #F6E1DA;   /* 뱃지 바탕 (위 글자 6.3:1) */
  --jl-slate-ink: #3F5B6E;    /* 회청 계열 글자 (paper 6.4:1) */
  --jl-slate-wash: #E3EAF0;   /* 뱃지 바탕 (위 글자 5.9:1) */

  /* ── 2. 역할 ─────────────────────────────────────────────────────────── */
  /* 종이 위 (기본) */
  --bg: var(--jl-paper);
  --bg-alt: var(--jl-paper-2);
  --surface: var(--jl-card);   /* 카드·인용처럼 바탕 위로 띄우는 면 */
  --ink: var(--jl-night);
  --ink-soft: var(--jl-ink-soft);
  --line: var(--jl-line);
  --link: var(--jl-ocher-ink); /* 종이 위 링크·UI 글자. 황토 원색이 아니다 */
  --brand: var(--jl-ocher);    /* 마크·버튼·강조 도형 전용 */
  --brand-wash: var(--jl-ocher-wash);
  --data-slate: var(--jl-slate);
  --tint: var(--jl-tint);      /* 로고 판·도감 표지·장면 스탬프의 옅은 황토 종이. 화면 바탕 ⛔ */
  --on-data: var(--jl-white);  /* 데이터 색 면(장소 점·칩 원) 위 글자 */
  --surface-raised: var(--jl-white); /* 무대 위 조작 버튼처럼 종이·카드보다 한 단 밝은 면 */

  /* 밤 위 (무대) — .on-night 같은 스코프 안에서만 쓴다 */
  --night: var(--jl-night);
  --night-2: var(--jl-night-2);
  --night-line: var(--jl-night-line);
  --on-night: var(--jl-on-night);
  --on-night-soft: var(--jl-on-night-soft);
  --night-glass: rgba(11, 18, 32, .72);
  --night-glass-line: rgba(238, 242, 247, .16);

  /* ── 3. 데이터 색 (2026-10-06, ADR-0071) ─────────────────────────────────
     지도·차트·범례의 범주를 칠한다. 의미는 지면마다 범례가 정한다 — 단 3D 장면의 「황토 = 대장 높이 ·
     회청 = 층수 추정」은 그대로다. 글자로 쓸 때는 반드시 -ink 쪽(종이 위 4.5:1 이상). */
  /* 범주 5단: 지금·가까움 → 다음 → 그다음 → 먼 → 지난·없음 */
  --data-hot: var(--jl-brick);     --data-hot-ink: var(--jl-brick-ink);   --data-hot-wash: var(--jl-brick-wash);
  --data-warm: var(--jl-ocher);    --data-warm-ink: var(--jl-ocher-ink);  --data-warm-wash: var(--jl-ocher-wash);
  --data-cool: var(--jl-slate);    --data-cool-ink: var(--jl-slate-ink);  --data-cool-wash: var(--jl-slate-wash);
  --data-deep: var(--jl-ink-soft); --data-deep-ink: var(--jl-night);
  --data-off: var(--jl-line);      --data-off-ink: var(--jl-ink-soft);
  --data-missing: var(--jl-line);
  /* 증감: 오름 벽돌 · 내림 회청 (국내 시세 관례 — 오름 붉은 계열) */
  --data-up: var(--data-hot);   --data-up-ink: var(--data-hot-ink);   --data-up-wash: var(--data-hot-wash);
  --data-down: var(--data-cool); --data-down-ink: var(--data-cool-ink); --data-down-wash: var(--data-cool-wash);
  /* 순서 7단 (옅은 황토 → 황토 → 황토 잉크 → 밤 갈색). OKLab 보간. 정본 값은 market.js PRICE_BANDS 와 같다 */
  --data-seq-1: #F6EAD3; --data-seq-2: #F0C78F; --data-seq-3: #E8A33D; --data-seq-4: #B57821;
  --data-seq-5: #855000; --data-seq-6: #563815; --data-seq-7: #2B2116;

  /* ── 치수 ────────────────────────────────────────────────────────────── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;           /* 로고 타일의 곡률과 같은 계열 */

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.5rem;

  --measure: 34rem;            /* 본문 한 줄 길이. 한국어는 이보다 길면 눈이 흐른다 */

  /* 홈(2026-10-05 리디자인)에서 온 치수. 홈이 .home 안에만 두던 값을 전 지면이 쓰도록 올렸다 */
  --wrap: 1200px;              /* 내용 폭. 헤더·본문·푸터가 같은 선에 선다 */
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 9vw, 120px); /* 큰 구획 사이 */
  --radius-card: 14px;         /* 카드·패널·입력 줄 */
  --radius-media: 18px;        /* 그림·차트·장면 카드 */
  --radius-btn: 10px;
  --shadow-float: 0 18px 44px rgba(11, 18, 32, .22); /* 두 면에 걸치는 카드만 */
  /* 띄움 단계 — 밤색 그림자 셋. 값은 단계로만 고른다(지면마다 흐림·농도를 새로 짓지 않는다) */
  --shadow-1: 0 2px 8px rgba(11, 18, 32, .10);   /* 칩·이름표처럼 면 위에 살짝 뜬 것 */
  --shadow-2: 0 8px 24px rgba(11, 18, 32, .10);  /* 무대·지도 위 떠 있는 판(범례·목록·안내) */
  --shadow-3: 0 24px 64px rgba(11, 18, 32, .19), 0 3px 12px rgba(11, 18, 32, .08); /* 대화상자·상세 카드 */
  --glass: rgba(248, 250, 252, .94);             /* 무대·지도 위 반투명 카드 판 (= --surface 94%) */

  /* 로고 워드마크는 Geist 를 아웃라인으로 구워 뒀다. 본문까지 Geist 로 맞추려면
     폰트를 벤더링해야 하는데, 한글이 없어 어차피 두 벌이 된다. 지금은 시스템
     스택을 쓴다 — 라틴 글자꼴이 로고와 다르다는 점은 알고 받아들인 것이다. */
  --font-sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Pretendard", "Noto Sans KR", sans-serif;
}

/* 다크 모드는 두지 않는다. 밤 바탕은 「테마」가 아니라 「무대」다.
 *
 * 색을 두 벌 유지하면 화면에 도는 색이 배로 늘고, 그만큼 어긋날 자리도 늘어난다.
 * 실제로 /brand 의 자산 미리보기가 다크에서 통째로 사라지는 사고가 났다 —
 * 로고 판마다 전제하는 배경이 다른데 페이지 배경을 따라가게 뒀기 때문이다.
 * 그래서 밤 바탕은 prefers-color-scheme 을 따라가지 않고, 쓰는 자리를 컴포넌트가
 * 명시한다(.on-night). 그 안에서는 로고 반전판을 **같이** 명시한다.
 *
 * 경계 규칙 — 어느 색이 어느 바탕 위에서만 쓰이는가:
 *   본문 글자        종이: --ink          밤: --on-night
 *   보조 글자        종이: --ink-soft     밤: --on-night-soft
 *   라벨·가는 선     종이: --link(ocher-ink)  밤: --brand(ocher 원색 허용)
 *   면·도형 ≥ 8px    양쪽 모두 --brand 원색. 황토 면 위 글자는 항상 --night (8.7:1)
 *   회청 --data-slate  양쪽 모두 도형만
 */
/* ── css/base/reset.css ── */
/* 기본 — 리셋·바탕·문단·링크. 전 지면 공통이고 컴포넌트 규칙은 두지 않는다.
   색·치수는 tokens.css 가 정본이다. ⛔ 원시 팔레트(--jl-*)를 직접 참조하지 않는다(예외: 견본을 보여 주는 brand 지면). */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* 지면 좌우 여백은 body 가 한 번 준다. 전폭 띠·밤 푸터는 이 값(--page-pad)을 음수 여백으로 뚫는다 */
body {
  --page-pad: var(--gutter);
  margin: 0;
  padding: 0 var(--page-pad);
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 var(--font-sans);
  word-break: keep-all;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); }

[hidden] { display: none !important; }

.num { font-variant-numeric: tabular-nums; }

/* htmx 인디케이터.
   htmx 는 기본적으로 이 규칙을 <style> 태그로 head 에 주입하는데, CSP 의 style-src 'self' 가 그걸 막아
   콘솔에 위반이 찍힌다. 'unsafe-inline' 도 nonce 도 쓰지 않기로 했으므로(web.go csp() 주석) 주입을 끄고
   (_partials.html 의 meta[name=htmx-config]) 같은 규칙을 여기에 둔다. htmx 2.0.4 가 주입하던 것과 같다. */
.htmx-indicator { opacity: 0; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { opacity: 1; transition: opacity 200ms ease-in; }

/* 밤 스코프 — 장면·계기창 자리에만 (tokens.css 「밤은 무대」) */
.on-night { background: var(--night); color: var(--on-night); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* ── css/base/type.css ── */
/* 기본 타이포 — 머리글·리드·문서형 목록. 큰 머리(굵은 h1·h2)는 layout/editorial.css 가 .editorial 아래에서 덮는다. */

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
}

:where(h1, h2, h3, p, a) { overflow-wrap: anywhere; }
:where(h1, h2) { text-wrap: balance; }

.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.note,
.effective {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* 문서형 구획 — 머리 아래 구획마다 괘선 */
main { padding: 2.5rem 0 3rem; }

section + section {
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
}

.hero { padding-bottom: 0.5rem; }
.hero + section { border-top: none; }

/* 순서·정의 목록 (처리방침·약관·서비스). 정보 지면에서는 layout/info-page.css 가 행 문법으로 덮는다 */
.flow {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.flow li { margin-bottom: 0.35rem; }

.principles,
.axes,
.privacy { margin: 0; }

.principles dt,
.axes dt,
.privacy dt {
  margin-top: 1.25rem;
  font-weight: 600;
}

.principles dt:first-child,
.axes dt:first-child { margin-top: 0; }

.principles dd,
.axes dd,
.privacy dd {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

/* 처리방침의 항목은 목록이 짧아 간격을 좁힌다. */
.privacy dt { margin-top: 0.9rem; }
/* ── css/base/a11y.css ── */
/* 접근성 기본 — 탭 강조·포커스 링·본문 바로가기·터치 크기.
   ⛔ 포커스 규칙의 명시도를 바꾸지 않는다. a·button·input·summary 는 5px, select 등 나머지는 :where 의 3px 이고,
      지면 컴포넌트가 이 둘보다 구체적인 선택자로 덮는다 — 바꾸면 덮던 규칙이 지거나 이긴다. */

a, button, input { -webkit-tap-highlight-color: transparent; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 5px;
}

/* 포인터 조작과 키보드 조작의 크기를 맞춘다. */
:where(button, select, summary) { min-height: 44px; }
:where(button, a, input, select, summary):focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 18px;
  background: var(--surface);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
/* ── css/components/reading.css ── */
/* 읽기 요약과 보기 공유 — 도감 글·탐색 결과 머리의 「한 줄 요약」 띠와 링크 복사 버튼. */

.reading-summary { border-block: 1px solid var(--line); padding: 1.25rem 0; margin: 1.5rem 0; }
.reading-summary h2 { font-size: 1.15rem; }
.reading-summary p { margin: .5rem 0; }
.share-view { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1rem 0; }
.share-view button { font: inherit; padding: .5rem .85rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-btn); cursor: pointer; }
.share-view output { font-size: .875rem; }
/* ── css/layout/site-head.css ── */
/* 헤더 (종이판) — 로고 + 주 메뉴 한 줄. 메뉴는 「탐색」·「회사」 두 묶음을 펼침 메뉴(details)로 둔다(ADR-0065 B).
   홈은 밤 히어로 위 유리 바라 surfaces/home.css 가 .home 아래에서 덮는다. */

.site-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wrap);
  min-height: 72px;
  margin-inline: auto;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

/* 락업 SVG 는 width/height 를 박아 둔다 — 로드 전 높이가 0 이면 헤더가 튄다(CLS). */
.brand img {
  display: block;
  height: 26px;
  width: auto;
}

.site-head nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem clamp(14px, 2vw, 28px);
  overflow: visible;
}

.site-head nav > a,
.nav-group > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  font-size: 0.94rem;
  cursor: pointer;
}

.site-head nav a {
  margin: 0;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-decoration: none;
}
.site-head nav a:hover { color: var(--ink); }
.site-head nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--link);
}

/* 펼침 메뉴 */
.nav-group { position: relative; }
.nav-group > summary::after { content: '⌄'; margin-left: 0.4rem; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  min-width: 210px;
  padding: 0.5rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-float);
}
.site-head .nav-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0.5rem 0.75rem;
  color: var(--ink);
  white-space: normal;
}
.site-head .nav-menu a:hover { background: var(--bg-alt); }

@media (max-width: 760px) {
  .site-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 10px 0;
  }
  .site-head nav {
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-head nav::-webkit-scrollbar { display: none; }
  .site-head nav a { white-space: nowrap; font-size: 0.82rem; }
  .nav-group:first-child .nav-menu { left: 0; right: auto; }
}
/* ── css/layout/site-foot.css ── */
/* 푸터 — 전 지면 밤 (tokens.css 「밤은 무대」, ADR-0066 §3).
   body 좌우 여백(--page-pad)을 음수 여백으로 뚫어 전폭으로 깔고, 안쪽 여백으로 내용을 헤더와 같은 선에 맞춘다.
   홈은 body 여백이 0 이라 surfaces/home.css 가 여백만 따로 준다. */

.site-foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem 2rem;
  max-width: var(--wrap);
  margin-inline: calc(var(--page-pad) * -1);
  padding: 2.5rem calc(var(--page-pad) + max(0px, (100% - var(--wrap)) / 2));
  border-top: 1px solid var(--night-line);
  background: var(--night);
  color: var(--on-night-soft);
  font-size: 0.85rem;
  /* 본문이 짧은 지면(/journey 폼)에서 푸터 아래로 종이가 남지 않게 밤을 아래로 이어 칠한다. 그림자는 스크롤 영역을 늘리지 않는다 */
  box-shadow: 0 50vh 0 50vh var(--night);
}
.site-foot p { margin: 0; }
.site-foot a,
.site-foot strong { color: var(--on-night); }
/* 공용 포커스 링(--link)은 밤 위에서 2.8:1 이다. 밤 위에서는 황토 원색(8.7:1) */
.site-foot a:focus-visible { outline-color: var(--brand); }

@media (max-width: 760px) {
  .site-foot { grid-template-columns: 1fr; }
}
/* ── css/layout/editorial.css ── */
/* 지면 틀 — 본문 폭과 큰 머리 타입 스케일.
   body.editorial 은 헤더·본문·푸터가 같은 1200px 선(--wrap)에 서는 지면이다. 클래스 없는 지면은 34rem 기둥(--measure).
   타입 스케일은 홈의 굵은 헤드라인을 전 지면으로 올린 것이다 (ADR-0071). */

main {
  max-width: var(--measure);
  margin-inline: auto;
}

.editorial main {
  max-width: var(--wrap);
  padding: 0 0 5rem;
}
@media (max-width: 760px) {
  .editorial main { padding-bottom: 3rem; }
}

/* 제품 지면(탐색·분양)은 머리 여백을 자기 CSS 에 뒀는데 .editorial main 이 더 구체적이라 안 먹었다. 여기서 준다 */
.editorial main.explore-page,
.editorial main.presale-page { padding-top: clamp(28px, 4vw, 48px); }

.editorial h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 900; }
.editorial h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 800; }
.editorial h3 { font-size: 1.22rem; line-height: 1.45; letter-spacing: -.03em; }
.editorial .eyebrow { margin: 0 0 1.1rem; color: var(--link); font-size: .75rem; font-weight: 700; letter-spacing: .02em; line-height: 1.6; }
.editorial .lead { font-size: 1.15rem; line-height: 1.9; }

/* 구획 머리 — 제목 왼쪽, 보조 링크·설명 오른쪽 */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; }
.section-heading h2 { margin: 0; }
@media (max-width: 760px) {
  .section-heading { align-items: start; flex-direction: column; }
}
/* ── css/layout/info-page.css ── */
/* 정보 지면 (회사 소개·서비스·처리방침·약관·브랜드) — 큰 머리 + 「제목 왼쪽, 본문 오른쪽」 두 칸.
   목록은 홈 .steps 의 행 문법(굵은 제목 + 보조 글자, 행마다 괘선)을 쓴다. */

.info-page main { padding: 0 0 var(--section-y); }
.page-head { padding: clamp(48px, 8vw, 112px) 0 clamp(36px, 5vw, 64px); }
.page-head h1 { margin: 0; font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.06; }
.editorial .page-head .lead { margin: 1.4rem 0 0; max-width: 36em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.75; }

.info-page main > section:not(.page-head):not(.contact-cta) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: clamp(28px, 5vw, 80px);
  margin: 0;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.info-page main > .page-head + section { border-top: 2px solid var(--ink); }
.info-page main > section > h2 { grid-column: 1; grid-row: 1 / span 40; align-self: start; margin: 0 0 1rem; font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.25; }
.info-page main > section > :not(h2) { grid-column: 2; max-width: 44em; }
.info-page main > section p { color: var(--ink-soft); }
.info-page main > section p strong { color: var(--ink); }
.info-page main > .contact-cta { margin-top: clamp(40px, 6vw, 72px); }
.info-page main > section + .contact-cta { margin-top: 0; border-top: 0; }
.info-page main:has(> .contact-cta:last-child) { padding-bottom: 0; } /* 띠가 푸터에 바로 닿는다 — 사이에 종이가 남지 않게 */
@media (max-width: 860px) {
  .info-page main > section:not(.page-head):not(.contact-cta) { grid-template-columns: 1fr; }
  .info-page main > section > h2, .info-page main > section > :not(h2) { grid-column: 1; grid-row: auto; }
}

/* 정의 목록 */
.info-page dl { margin: 0; }
.info-page dt { margin: 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.info-page dt:first-child { padding-top: 0; border-top: 0; }
.info-page dd { margin: .3rem 0 1.1rem; color: var(--ink-soft); }
.info-page .privacy dt { font-size: 1rem; }

/* 순서 목록 — 황토 잉크 번호 + 행 괘선 */
.info-page ol.flow { list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.info-page ol.flow li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.info-page ol.flow li::before { content: counter(step, decimal-leading-zero); color: var(--link); font-weight: 800; font-size: .875rem; padding-top: 2px; }
.info-page ul.flow { list-style: none; margin: 0; padding: 0; color: var(--ink); }
.info-page ul.flow li { position: relative; margin: 0; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); }
.info-page ul.flow li::before { content: "✕"; position: absolute; left: 2px; color: var(--link); font-weight: 800; }
/* ── css/components/action.css ── */
/* 행동 — 버튼과 링크 버튼.
   주 버튼(.pill)은 황토 면 + night 글자(tokens.css 경계 규칙). 한 줄에 버튼이 여럿이면 주 행동 하나만 황토로 두고
   나머지는 .pill-quiet. 밤·황토 띠 위 문의는 .contact-btn(night 면). 글줄 안의 이동은 밑줄 링크 둘. */

.pill { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .95rem 1.4rem; border-radius: 100px; background: var(--brand); color: var(--night); font-size: .88rem; font-weight: 700; text-decoration: none; }
.pill:hover { background: var(--night); color: var(--on-night); }
.pill-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); border: 0; font-family: inherit; font-weight: 700; cursor: pointer; }
.pill-quiet:hover { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* 링크 버튼 — 2px 황토 잉크 밑줄. .text-link 는 작은 글자, .arrow-link 는 본문 크기 */
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--link); padding-bottom: 2px; }
.text-link:hover { color: var(--link); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--link); padding-bottom: 2px; white-space: nowrap; }
.arrow-link:hover { color: var(--link); }

.contact-btn { display: inline-flex; align-items: center; min-height: 56px; padding: 0 26px; border-radius: var(--radius-btn); background: var(--night); color: var(--on-night); font-weight: 800; text-decoration: none; white-space: nowrap; }
.contact-btn:hover { color: var(--brand); }
.contact-btn:focus-visible { outline-color: var(--night); }
@media (max-width: 760px) { .contact-btn { width: 100%; justify-content: center; } }
/* ── css/components/band.css ── */
/* 전폭 띠 — 본문 폭 안에서 바탕만 화면 끝까지 칠한다. 100vw 를 안 써서 가로 스크롤이 안 생긴다.
   문의 띠(.contact-cta)는 황토 면이고, 황토 위 글자는 항상 night. */

.band { position: relative; box-shadow: 0 0 0 100vmax var(--band-bg, var(--bg-alt)); clip-path: inset(0 -100vmax); background: var(--band-bg, var(--bg-alt)); }

.contact-cta { --band-bg: var(--brand); color: var(--night); display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; padding-block: clamp(48px, 7vw, 84px); }
.editorial .contact-cta .eyebrow { color: var(--night); margin-bottom: .6rem; }
.contact-cta h2 { margin: 0; }
.contact-cta p:not(.eyebrow) { margin: 10px 0 0; font-size: 1.05rem; }
.info-page .contact-cta p, .contact-cta a:not(.contact-btn) { color: var(--night); }
/* ── css/components/data.css ── */
/* 자료 표시 — 범례·표. 도감 차트·탐색 결과가 같이 쓴다. */

.legend { display: flex; flex-wrap: wrap; gap: .35rem .8rem; font-size: .65rem; color: var(--ink-soft); margin: 1rem 0 0 24px; }

.table-wrap { overflow-x: auto; margin: 1.7rem 0; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.table-wrap caption { text-align: left; color: var(--ink-soft); font-size: .75rem; margin-bottom: .75rem; }
.table-wrap th, .table-wrap td { padding: .85rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.table-wrap thead { background: var(--bg-alt); }
.table-wrap th { font-weight: 600; }
@media (max-width: 760px) {
  .table-wrap th, .table-wrap td { padding: .7rem .4rem; font-size: .77rem; }
}
/* ── css/components/search.css ── */
/* 주소 검색 — 홈 히어로·탐색·도감·여정이 같은 파셜(explore.html "address-form")을 쓴다.
   입력 줄(.search-row)은 종이판 14px 카드 + 황토 버튼. 자동완성 후보와 결과 목록도 여기. 홈 히어로는 surfaces/home.css 가 밤 위 유리판으로 덮는다. */

.address-form { max-width: 860px; margin: 2rem 0; }
.address-form label { display: block; font-weight: 650; font-size: .85rem; margin-bottom: .65rem; }
.address-form p { font-size: .83rem; color: var(--ink-soft); line-height: 1.65; }

.search-row { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-2); }
.search-row input { flex: 1; min-width: 0; padding: 1.2rem; font-size: 1.1rem; border: 0; background: transparent; color: var(--ink); }
.search-row button { border: 0; background: var(--brand); color: var(--night); padding: 1rem 1.4rem; font: inherit; font-weight: 800; cursor: pointer; }
.search-row input, .search-row button { border-radius: 9px; }
.search-row button:disabled { background: var(--brand); opacity: .7; cursor: wait; }

/* 안쪽 입력칸·버튼의 링이 행 경계에서 잘리지 않게 행 자체에 링을 건다 (홈 히어로는 home.css 가 끈다) */
.address-form :focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.search-row:focus-within { outline: 3px solid var(--link); outline-offset: 3px; }

/* 후보 확인 — 검색폼 아래 짧은 판. 스크립트가 tabindex=-1 로 초점을 옮기므로 그 초점에는 링을 그리지 않는다(낭독기는 그대로 읽는다) */
.search-results { max-width: 860px; margin: 1.5rem 0 2.5rem; }
.search-results:focus { outline: none; }
.search-results h2 { font-size: 1.3rem; margin: 0 0 .35rem; }
.search-results > p { font-size: .88rem; color: var(--ink-soft); margin: 0 0 .9rem; }

.address-results { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.address-results a { display: grid; gap: .5rem; background: var(--surface); border: 1px solid var(--line); padding: 1rem; border-radius: var(--radius-md); text-decoration: none; }
.address-results span, .address-results small { font-size: .8rem; }

.search-results button.pill, .address-form .search-retry { border: 0; font: inherit; font-size: .85rem; font-weight: 700; padding: .6rem 1.1rem; cursor: pointer; margin: 0 0 .8rem; }
.address-form .search-retry { margin: 0; }

.address-suggestions { list-style: none; margin: .5rem 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-card); max-height: 19rem; overflow: auto; background: var(--surface); }
.address-suggestions [role=option] { padding: .75rem 1rem; cursor: pointer; }
.address-suggestions [aria-selected=true], .address-suggestions [role=option]:hover { background: var(--bg-alt); }
.address-suggestions[hidden] { display: none; }

@media (max-width: 540px) {
  .search-row { flex-direction: column; }
  .search-row button { padding: .85rem; }
  .search-row input { padding: 1rem; font-size: 1rem; }
  .address-results { grid-template-columns: 1fr; }
}
/* ── css/components/scene-card.css ── */
/* 장면 카드 가로 스냅 — 홈 ③ 갤러리와 탐색·도감이 같은 카드(파셜 "scene-cards")를 쓴다.
   홈은 전폭 여백만 surfaces/home.css 가 따로 준다. */

.snap { display: flex; gap: 18px; margin: 0; padding: 4px 0 22px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.snap li { display: contents; }
.scene-card { flex: 0 0 min(82vw, 620px); scroll-snap-align: start; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-media); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.scene-card figure { position: relative; margin: 0; aspect-ratio: 825 / 580; overflow: hidden; background: var(--night); }
.scene-card img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform .5s ease; }
.scene-card:hover img { transform: scale(1.09); }
.scene-idx { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 999px; background: var(--night-glass); border: 1px solid var(--night-glass-line); font-size: .75rem; font-weight: 700; color: var(--on-night); }
.scene-text { padding: 20px 22px 22px; display: grid; gap: 8px; }
.scene-text > * { margin: 0; }
.scene-q { font-size: .875rem; font-weight: 700; color: var(--link); }
.scene-card h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.035em; line-height: 1.25; }
.scene-addr { font-size: .875rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; }
@media (prefers-reduced-motion: reduce) {
  .scene-card img { transition: none; }
  .scene-card:hover img { transform: scale(1.04); }
  .snap { scroll-snap-type: none; }
}

/* 갤러리 구획 — 카드 줄 위아래의 머리·설명 */
.explorer-gallery { margin: 4rem 0; }
.gallery-lead { font-size: .9rem; line-height: 1.7; max-width: 60ch; margin: .6rem 0 0; color: var(--ink-soft); }
.gallery-note { font-size: .83rem; color: var(--ink-soft); line-height: 1.65; }
/* ── css/components/gauge.css ── */
/* 계기 카드 — 홈 ② 와 탐색 결과가 같은 카드(파셜 "gauge-cards")를 주소마다 실제 값으로 그린다 (gauges.go).
   홈은 두 면에 걸치는 배치(음수 여백·그림자)만 surfaces/home.css 에 둔다.
   계기창(.gauge-dial)은 종이 구간 안에 남는 밤 바탕이다. SVG 색은 클래스로만 — CSP 가 style 속성을 막는다. */

.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gauge { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gauge > *, .gauge-break { margin: 0; }
.gauge h3 { font-size: 1.25rem; letter-spacing: -.03em; line-height: 1.25; }
.gauge-dial { height: 92px; border-radius: 10px; padding: 10px 12px; }
.gauge-dial svg { width: 100%; height: 100%; display: block; }
.dial-grid { stroke: var(--night-line); stroke-width: 1; fill: none; }
.dial-bar { stroke: var(--brand); stroke-width: 5; stroke-linecap: round; fill: none; }
.dial-bar.thin { stroke-width: 3; }
.dial-mark { stroke: var(--on-night); stroke-width: 1.5; fill: none; }
.dial-flag { fill: var(--on-night); }
.dial-fill { fill: var(--night-2); }
.dial-ocher { fill: var(--brand); }
.dial-slate { fill: var(--data-slate); }
.dial-outline { fill: none; stroke: var(--on-night-soft); stroke-width: 1.5; stroke-dasharray: 4 3; }
.dial-ax { fill: var(--on-night-soft); font-size: 9px; }
.dial-label { fill: var(--on-night); font-size: 10px; font-weight: 700; }
.gauge-value { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gauge-value .val { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.gauge-value .tilde { color: var(--ink-soft); font-weight: 600; margin: 0 2px; }
.gauge-value .unit { font-size: 1.375rem; font-weight: 800; }
.gauge-break { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; list-style: none; font-size: .8rem; color: var(--ink-soft); }
.gauge-break b { color: var(--ink); font-weight: 800; }
.gauge-break li { display: inline-flex; align-items: center; gap: 6px; }
.gauge-src { font-size: .8rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; line-height: 1.55; }
.sw { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 3px; }
.sw-ocher { background: var(--brand); }
.sw-slate { background: var(--data-slate); }
.sw-outline { border: 1.5px dashed currentColor; }
.result-gauges { margin: 0 0 1.6rem; }
@media (max-width: 960px) { .gauges { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .gauge-value .val { font-size: 2.1rem; } }
/* ── css/components/ad-slot.css ── */
/* 예약 광고 슬롯 (2026-10-04, docs/ad-slots-2026-10-04.md) — 광고 유닛이 들어오기 전에 IAB 표준 사이즈의 높이를 미리 잡는다.
   높이는 height(최소값 아님)로 고정하고 넘치면 자른다 — 늦게 뜨는 광고가 상자를 키워 아래 본문을 밀지 않게 한다.
   상자 자체가 위 내용(늦게 채워지는 답)에 밀리는 것은 이것으로 막지 못한다.
   ≥1100px 970×90 · 800–1099px 728×90 · <800px 300×250. 340px 미만에서 좌우 16px 여백만 지운다
   (본문 폭=뷰포트−32 가 300 보다 좁아지는 경계는 332px — 332–339px 는 여유로 넣은 구간이다. 측정한 좁은 폭은 320 하나)
   (calc(-1*clamp(...)) 로 모든 폭에서 지웠더니 768px 에서 가로 넘침이 났다 — 2026-10-04 측정. 원인은 소수 vw(30.72px) 반올림으로 추정, 확인 안 함) */

.ad-slot { margin: 2.5rem auto; max-width: 970px; contain: layout; }
.ad-slot::before { content: "광고"; display: block; height: 1.25rem; line-height: 1.25rem; font-size: .7rem; letter-spacing: .08em; color: var(--ink-soft); text-align: center; }
.ad-slot-box { width: 970px; max-width: 100%; height: 90px; margin: 0 auto; overflow: hidden; background: var(--bg-alt); }
@media (max-width: 1099px) { .ad-slot { max-width: 728px; } .ad-slot-box { width: 728px; } }
@media (max-width: 799px) { .ad-slot { max-width: none; } .ad-slot-box { width: 300px; height: 250px; } }
@media (max-width: 339px) { .ad-slot { margin-inline: -16px; } }
/* ── css/surfaces/explore.css ── */
/* 주소 주변 탐색 (/explore·/explore/a/…) — 지면 머리·결과 요약·근거. 3D 무대와 그 위 표지는 surfaces/explore-scene.css.
   여정·분양도 이 묶음을 같이 싣는다(지면 폭·결과 머리·근거 표를 같이 쓴다). */

.explore-page { max-width: 1400px; margin: auto; padding: 3rem clamp(16px, 4vw, 64px); }
.explore-intro h1 { font-size: clamp(2rem, 5vw, 4.3rem); margin: .5rem 0; letter-spacing: -.055em; }
.explore-intro .lead { margin-bottom: 1rem; }

/* 결과 머리 — 결과가 첫 화면에 오도록 지면 제목은 이정표 크기로 줄이고, 검색폼은 한 줄 «주소 바꾸기» 로 접는다.
   h1 문구는 그대로 둔다(감시 계약·낭독기). 라벨은 시각적으로만 숨긴다 */
.editorial .result-intro h1 { font-size: .85rem; line-height: 1.4; letter-spacing: 0; font-weight: 700; color: var(--ink-soft); margin: 0; }
.result-intro .lead, .result-intro #search-support { display: none; }
.result-intro .address-form { margin: .6rem 0 0; max-width: 640px; }
.result-intro .address-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.result-intro .search-row { flex-direction: row; box-shadow: none; padding: 4px; }
.result-intro .search-row input { padding: .6rem .8rem; font-size: 1rem; }
.result-intro .search-row button { padding: .55rem .9rem; font-size: .9rem; white-space: nowrap; }
.result-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.6rem 0 1.2rem; }
.result-title > div { margin-right: auto; }
.result-title h2 { font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.035em; }
.result-title p { margin: .6rem 0; }
.share-result { font: inherit; cursor: pointer; border: 1px solid var(--ink); }

/* 결과 구간 바로가기 (U1~U3, master-plan docs/tasks/company-web-product-improvement 2026-10-16) — 기존 요약·근거 순서는 그대로 두고 이동 링크만 더한다 */
.result-jump { margin: -.5rem 0 1.5rem; }
.result-jump ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.result-jump a { display: inline-block; padding: .5rem .9rem; border-radius: 100px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-size: .85rem; font-weight: 700; text-decoration: none; }
.result-jump a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
#result-summary, #result-scene, #result-market, #result-sources { scroll-margin-top: 1rem; }

/* 결과 — 장면 바로 아래 «이 동네 한눈에». 생활 언어 세 줄 → 현장에서 확인할 것 → (접힘) 자료로 확인한 것과 모르는 것 */
.result-brief { margin: 1.6rem 0; padding: 1.5rem 1.6rem; background: var(--surface); border-radius: var(--radius-card); border: 1px solid var(--line); }
.result-brief h3 { font-size: 1.3rem; margin: 0 0 1rem; }
.glance { margin: 0; display: grid; gap: 0; }
.glance > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.glance dt { font-weight: 800; color: var(--link); }
.glance dd { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--ink); }
.brief-field { margin-top: 1.2rem; padding-top: 1rem; border-top: 2px solid var(--brand); }
.brief-field .eyebrow { margin: 0 0 .4rem; }
.brief-field dl { margin: 0; }
.brief-field dl > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .45rem 0; font-size: .9rem; line-height: 1.65; }
.brief-field dt { font-weight: 650; }
.brief-field dd { margin: 0; color: var(--ink-soft); }
.brief-more { margin-top: 1rem; }
.brief-more summary { cursor: pointer; font-size: .9rem; font-weight: 650; }
.brief-more .brief-columns { margin-top: .8rem; }
.brief-columns { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.brief-columns .eyebrow { font-size: .72rem; margin: 0 0 .5rem; }
.brief-columns dl { margin: 0; }
.brief-columns dl > div { display: grid; grid-template-columns: minmax(5.5rem, 7rem) 1fr; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .85rem; line-height: 1.65; }
.brief-columns dt { font-weight: 650; }
.brief-columns dd { margin: 0; color: var(--ink-soft); }
.brief-next { margin: 1rem 0 0; font-size: .8rem; color: var(--ink-soft); line-height: 1.65; }

/* 장면 읽기·선택 — 무대 옆(지금은 아래) 자료 설명. 기본 접기 */
.scene-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.scene-panel { min-width: 0; }
.scene-status { font-size: .8rem; margin: .65rem 0; color: var(--ink-soft); min-height: 1.3em; }
.scene-help { font-size: .83rem; color: var(--ink-soft); line-height: 1.65; }
.scene-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.scene-tools button { border: 0; background: var(--brand); color: var(--night); font: inherit; cursor: pointer; padding: .55rem .8rem; border-radius: var(--radius-md); font-size: .85rem; }
.scene-tools select { padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); max-width: 120px; font: inherit; }
.scene-tools label { font-size: .8rem; display: flex; gap: .3rem; align-items: center; }
.scene-tools button:disabled, .scene-tools select:disabled { opacity: .5; cursor: default; }
.scene-tools :focus-visible, .scene-stage:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.scene-reading { padding: .8rem 1rem; background: var(--surface); border-radius: var(--radius-card); }
.scene-reading h3 { font-size: 1.15rem; }
.scene-reading p, .evidence-legend { font-size: .82rem; line-height: 1.7; }
.scene-reading summary { cursor: pointer; font-size: .9rem; font-weight: 650; }
.scene-reading-body { padding: .5rem 0; }
.evidence-legend { padding-left: 1.2rem; }
.selection-reading { border: 1px solid var(--line); padding: .8rem; border-radius: var(--radius-md); }

.result-stats { margin: 1.5rem 0; }
.result-stats > div { border-top: 1px solid var(--line); padding: .9rem 0; }
.result-stats dt { font-size: .78rem; }
.result-stats dd { font-size: 1.65rem; margin: .35rem 0; }
.result-stats small { display: block; font-size: .72rem; margin-top: .2rem; }

.result-explanations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2.7rem 0; }
.result-explanations h3 { font-size: 1.1rem; }
.result-explanations p { font-size: .9rem; line-height: 1.8; }
.result-explanations a { font-size: .85rem; }

/* 근거 표 */
.source-details { border-top: 1px solid var(--line); padding: 1.2rem 0; font-size: .9rem; line-height: 1.8; }
.source-details summary { font-weight: 650; cursor: pointer; }
.source-details .table-scroll { max-height: 420px; overflow: auto; }
.source-details table { width: 100%; font-size: .8rem; white-space: normal; }
.source-details th, .source-details td { padding: .4rem; border-bottom: 1px solid var(--line); word-break: break-word; }

.nearby-addresses { margin: 2rem 0; }
.nearby-addresses li { line-height: 2; font-size: .9rem; }
.explore-boundary { margin: 3rem 0; background: var(--surface); padding: 1.5rem; border-radius: var(--radius-card); }
.explore-boundary h2 { font-size: 1.2rem; }
.explore-boundary p { font-size: .9rem; line-height: 1.8; }


@media (max-width: 900px) {
  .brief-columns { grid-template-columns: 1fr; }
  .scene-reading { display: block; }
  .result-explanations { grid-template-columns: 1fr; }
  .result-title { align-items: center; gap: .5rem; }
  .result-title > div { flex-basis: 100%; }
}
@media (max-width: 540px) {
  .brief-columns dl > div, .glance > div, .brief-field dl > div { grid-template-columns: 1fr; gap: .15rem; }
  .result-brief { padding: 1rem; }
  .scene-tools { gap: .4rem; }
  .scene-tools label { font-size: .75rem; }
  .explore-page { padding-top: 2rem; }
  .source-details th, .source-details td { font-size: .7rem; padding: .2rem; }
  .result-title .pill { font-size: .8rem; padding-inline: .9rem; }
  /* 좁은 화면 — 결과 머리를 두 줄 안에. 바로 위 검색창과 겹치는 «다른 주소 찾기» 와 구간 바로가기는 숨긴다 */
  .result-title [data-search-edit], .result-jump { display: none; }
  .result-title { margin: 1.1rem 0 .9rem; }
}
/* ── css/surfaces/explore-scene.css ── */
/* 탐색 3D 무대 — 캔버스 틀과 그 위 표지(HUD). 표지는 explorer.js 가 만든다(aria-hidden — 같은 내용이 상태 문장·근거 칸에 있다).
   무대는 밝은 종이 장면이다(2026-10-16 사용자 판단). 표지 색: 넣은 주소 = 벽돌(--data-hot), 역 = 밤, 학교·약국·병원 = --poi-*(explorer.js 가 무대에 준다).
   조작(.scene-nav)은 무대 안 위쪽 줄, 범례·종류 칩은 그 아래, 가까운 곳 목록은 왼쪽 아래. */

.scene-stage { position: relative; height: 580px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-media); overflow: hidden; touch-action: none; }
.scene-stage canvas { display: block; width: 100%; height: 100%; }
.scene-stage.is-expanded, .scene-stage:fullscreen { position: fixed; inset: 0; width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; z-index: 10000; background: var(--bg); }
.scene-map { height: 100%; display: grid; place-items: center; background: var(--bg-alt); }
.scene-map svg { max-height: 100%; width: 100%; height: 100%; overflow: hidden; }
.scene-map.is-hidden { display: none; }

/* 표지 층 */
.scene-hud { position: absolute; inset: 0; pointer-events: none; font-size: 12px; color: var(--ink); }
.scene-hud > * { position: absolute; white-space: nowrap; }
.scene-hud [hidden] { display: none !important; }

.scene-pin { transform: translate(-50%, calc(-100% - 16px)); background: var(--data-hot); color: var(--surface); padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(178,73,37,.3); }
.scene-pin::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 16px; background: var(--data-hot); }
.scene-pin b { font-weight: 650; }

.scene-tip { transform: translate(18px, calc(-100% - 18px)); width: 240px; white-space: normal; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-2); }
.scene-tip > div { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.scene-tip b { display: block; font-size: 18px; font-weight: 650; margin-top: 4px; }
.scene-tip p { margin: 4px 0 0; color: var(--data-cool-ink); line-height: 1.45; }
.scene-tip em { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; font-weight: 650; }
.scene-tip em.is-L { background: var(--brand-wash); color: var(--link); }
.scene-tip em.is-E { background: var(--data-cool-wash); color: var(--data-cool-ink); }
.scene-tip em.is-U { border: 1px dashed var(--data-cool-ink); color: var(--data-cool-ink); }

.scene-el { transform: translate(-50%, calc(-100% - 6px)); font-size: 11px; font-variant-numeric: tabular-nums; background: var(--glass); padding: 0 4px; border: .5px solid rgba(11,18,32,.4); }
.scene-el.is-base { transform: translate(-50%, 6px); }

.scene-legend { right: 12px; top: 68px; width: 228px; max-height: calc(100% - 110px); overflow: auto; pointer-events: auto; white-space: normal; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 7px; box-shadow: var(--shadow-2); }
.scene-legend p { margin: 0; font-size: 11px; letter-spacing: .04em; color: var(--data-cool-ink); }
.scene-legend > div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.scene-legend b { display: block; font-weight: 650; font-size: 12px; }
.scene-legend small { display: block; font-size: 11px; color: var(--data-cool-ink); }
.scene-legend em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-soft); }

/* 장소 표지 — 둥근 이름표 + 앞 글자 원 */
.scene-poi { display: flex; align-items: center; gap: 4px; transform: translate(-50%, calc(-100% - 7px)); font-size: 11.5px; font-weight: 600; padding: 2px 8px 2px 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.scene-poi::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 7px; background: currentColor; opacity: .55; }
.scene-poi::before { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 9.5px; font-weight: 800; }
.scene-poi small { font-size: 10.5px; font-weight: 500; opacity: .78; }
.scene-poi.is-station { background: var(--night); border-color: var(--night); color: var(--on-night); font-size: 12.5px; padding: 3px 10px 3px 4px; }
.scene-poi.is-station::before { content: 'M'; background: var(--on-night); color: var(--night); }
.scene-poi.is-edge { transform: translate(-50%, -50%); box-shadow: 0 3px 10px rgba(11,18,32,.28); }
.scene-poi.is-edge::after { display: none; }
.scene-poi-arrow { display: inline-flex; margin-left: 2px; flex: none; transform-origin: 50% 50%; }
.scene-poi.is-school { color: var(--poi-school); border-color: var(--poi-school); }
.scene-poi.is-school::before { background: var(--poi-school); color: var(--on-data); }
.scene-poi.lv-e::before { content: '초'; }
.scene-poi.lv-m::before { content: '중'; }
.scene-poi.lv-h::before { content: '고'; }
.scene-poi.lv-x::before { content: '학'; }
.scene-poi.is-pharmacy, .scene-poi.is-hospital { color: var(--mc); border-color: var(--mc); }
.scene-poi.is-pharmacy { --mc: var(--poi-pharmacy); }
.scene-poi.is-hospital { --mc: var(--poi-hospital); }
.scene-poi.is-pharmacy::before, .scene-poi.is-hospital::before { background: var(--mc); color: var(--on-data); }
.scene-poi.is-pharmacy::before { content: '약'; }
.scene-poi.is-hospital::before { content: '병'; }

.scene-stamp { left: 50%; top: 12px; transform: translateX(-50%); font-size: 11.5px; border: 1px solid var(--night); padding: 3px 9px; background: var(--tint); }

/* 종류 칩 — 장소 종류 켜고 끄기 + 그 종류로 초점 */
.scene-chips { position: absolute; left: 12px; top: 68px; right: 12px; z-index: 2; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; padding: 2px; }
.scene-chips::-webkit-scrollbar { display: none; }
.scene-chip { flex: none; display: inline-flex; align-items: stretch; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: 12px; overflow: hidden; }
.scene-chip button { font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.scene-chip button:disabled { opacity: .45; cursor: default; }
.scene-chip-main { padding: 4px 9px 4px 4px; font-weight: 650; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.scene-chip-main i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-size: 9.5px; font-weight: 800; background: var(--line); color: var(--on-data); }
.scene-chip-main em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 500; }
.scene-chip-main[aria-pressed=true] i { background: var(--mc); }
.scene-chip-main[aria-pressed=false] { color: var(--ink-soft); }
.scene-chip-focus { padding: 0 9px; border-left: 1px solid var(--line) !important; color: var(--ink-soft) !important; font-size: 12px; }
.scene-chip.is-focus { border-color: var(--mc); box-shadow: 0 0 0 1px var(--mc), var(--shadow-1); }
.scene-chip.is-focus .scene-chip-focus { background: var(--mc); color: var(--on-data) !important; }
.scene-chips :focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }

/* 가까운 곳 목록 */
.scene-near { position: absolute; left: 12px; bottom: 12px; z-index: 2; width: 250px; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow-2); display: grid; gap: 2px; font-size: 12px; }
.scene-near[hidden] { display: none; }
.scene-near p { margin: 0 4px 4px; font-size: 11px; letter-spacing: .02em; color: var(--data-cool-ink); font-weight: 650; }
.scene-near p small { display: block; font-weight: 400; }
.scene-near button { font: inherit; color: var(--ink); background: none; border: 0; border-radius: 8px; padding: 5px 4px; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 7px; align-items: center; text-align: left; cursor: pointer; }
.scene-near button:hover, .scene-near button:focus-visible { background: var(--bg); }
.scene-near i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-size: 9.5px; font-weight: 800; background: var(--mc, var(--night)); color: var(--on-data); }
.scene-near b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scene-near small { display: block; font-size: 10.5px; color: var(--data-cool-ink); }
.scene-near em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.scene-near .is-empty { padding: 4px; color: var(--ink-soft); }

/* 지도 위 장소 점·묶음 */
.scene-mark { --mc: var(--night); display: flex; align-items: center; gap: 3px; transform: translate(-50%, -50%); font-size: 11px; font-weight: 600; padding: 1px 7px 1px 1px; border-radius: 999px; background: var(--surface); border: 1px solid var(--mc); color: var(--mc); box-shadow: var(--shadow-1); }
.scene-mark i { display: inline-grid; place-items: center; min-width: 15px; height: 15px; border-radius: 999px; font-style: normal; font-size: 9px; font-weight: 800; background: var(--mc); color: var(--on-data); }
.scene-mark.is-dot { padding: 1px; }
.scene-mark.is-cluster { padding: 1px; }
.scene-mark.is-cluster i { padding: 0 5px; height: 17px; font-size: 10px; }
.scene-mark.is-dim { opacity: .4; filter: grayscale(.6); }
.scene-mark.is-focus { z-index: 1; box-shadow: 0 0 0 2px rgba(248,250,252,.9), 0 2px 6px rgba(11,18,32,.25); }
.scene-mark.is-pharmacy { --mc: var(--poi-pharmacy); }
.scene-mark.is-hospital { --mc: var(--poi-hospital); }

.scene-ping { --mc: var(--night); width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--mc); transform: translate(-50%, -50%); animation: scene-ping 1.1s ease-out infinite; }
@keyframes scene-ping {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}

/* 무대 조작 줄 — 확대·축소·전체 보기·범례 */
.scene-nav { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; z-index: 5; pointer-events: none; }
.scene-nav button { pointer-events: auto; min-width: 44px; min-height: 44px; padding: 6px 11px; font-size: 12px; font-weight: 600; line-height: 1.3; font-family: inherit; color: var(--ink); background: var(--glass); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow-1); cursor: pointer; }
.scene-nav button:hover, .scene-nav button[aria-expanded=true] { background: var(--bg); border-color: var(--data-cool-ink); }
.scene-nav :focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.scene-zoom { display: flex; gap: 3px; pointer-events: auto; }
.scene-nav [data-action=expand] { margin-right: auto; }
.scene-gesture { position: absolute; left: 12px; bottom: 30px; z-index: 4; max-width: calc(100% - 24px); padding: 7px 10px; border-radius: 8px; background: var(--glass); color: var(--ink); font-size: 12px; pointer-events: none; }
.scene-gesture[hidden] { display: none; }
.scene-scale { position: absolute; left: 14px; bottom: 10px; z-index: 3; font-size: 11px; color: var(--ink); text-shadow: 0 1px var(--surface), 1px 0 var(--surface), -1px 0 var(--surface); }
.scene-scale::before { content: ""; display: inline-block; width: var(--scale-width, 90px); height: 6px; border: solid currentColor; border-width: 0 1px 2px; margin-right: 6px; }
.scene-stage:has(.scene-chips) .scene-legend { top: 112px; }
.scene-stage:has(.scene-chips) .scene-gesture { bottom: 46px; }

@media (max-width: 900px) {
  .scene-stage { height: 460px; }
}
@media (max-width: 700px) {
  .scene-legend { display: none; top: 108px; right: 8px; width: min(228px, calc(100% - 42px)); }
  .scene-tip { width: 200px; transform: translate(-50%, calc(-100% - 18px)); }
  .scene-chips { top: 108px; }
  .scene-near { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 5px 6px; gap: 0; }
  .scene-near p { margin: 0 4px 2px; }
  .scene-near small { display: none; }
  .scene-near button { padding: 2px 4px; }
  .scene-nav { left: 8px; right: 8px; top: 8px; gap: 4px; }
  .scene-nav button { padding: 5px 7px; font-size: 11px; }
  .scene-nav [data-action=expand] { margin-right: 0; }
  .scene-nav [data-action=overview] { display: none; }
  .scene-nav [data-action=legend] { margin-left: auto; }
  .scene-stage:has(.scene-chips) .scene-legend { top: 148px; }
  .scene-gesture { font-size: 11px; }
  .scene-scale { font-size: 10px; }
}
@media (max-width: 540px) {
  .scene-stage { height: 370px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-ping { animation: none; }
}
/* ── css/surfaces/presale.css ── */
/* /presale 분양·입주 예정 탐색. 역할 토큰만 쓴다(tokens.css). 연도·단계 색은 이 지면만의 분류색이라 여기서 정의한다.
   ⛔ 인라인 style 을 쓰지 않는다 — CSP style-src 'self'. SVG 도 class 로만 칠한다. */
.presale-page { max-width: 1240px; margin: auto; padding: 2.5rem clamp(16px,4vw,56px) 3rem; }
/* 조건 칩 — 링크라 누르면 바로 걸린다. 좁은 화면에서는 한 줄로 밀어 본다 */
.pc-row { display: grid; grid-template-columns: 5.2em minmax(0,1fr); align-items: baseline; gap: .4rem; }
.pc-name { font-size: .78rem; color: var(--ink-soft); letter-spacing: .02em; }
.pc-set { display: flex; flex-wrap: wrap; gap: .35rem; }
.pchip { display: inline-flex; align-items: baseline; gap: .35em; padding: .32rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .86rem; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.pchip small { font-size: .74rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pchip:hover { border-color: var(--ink); }
.pchip[aria-current] { background: var(--night); border-color: var(--night); color: var(--on-night); font-weight: 650; }
.pchip[aria-current] small { color: var(--on-night-soft); }
.pchip.is-empty { color: var(--ink-soft); border-style: dashed; }
.ps-more summary { cursor: pointer; font-size: .86rem; color: var(--link); width: max-content; }
.ps-more summary small { color: var(--ink-soft); }
.ps-fields { display: flex; flex-wrap: wrap; align-items: center; font-size: .86rem; }
.ps-fields label:not(.pcheck) { display: flex; gap: .4rem; align-items: center; }
.presale-layout { display: grid; grid-template-columns: minmax(0,2.1fr) minmax(320px,1fr); gap: 24px; align-items: start; margin-top: .4rem; }
.presale-list { min-width: 0; }
/* 목록 줄(.pg-card.pg-row) 어디를 눌러도 묶음 상세로 간다 — 단지명 링크의 눌리는 면을 줄 전체로 편다 */
.pg-row { position: relative; transition: background-color .12s; }
.pg-row h2 a::after { content: ""; position: absolute; inset: 0; }
.pg-row:hover h2 a { text-decoration: underline; text-underline-offset: .2em; }
.pg-row h2 a:focus-visible { outline: none; }
.pg-row:has(h2 a:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.pg-go { margin-left: auto; color: var(--link); font-weight: 650; white-space: nowrap; }
.presale-pager { display: flex; justify-content: flex-end; align-items: center; gap: 1.2rem; padding: 1.2rem 0; font-size: .9rem; }
.presale-pager span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.presale-pager a { border: 1px solid var(--line); border-radius: 6px; padding: .35rem .8rem; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; }
.presale-boundary { margin: 3rem 0 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.presale-boundary>summary { cursor: pointer; }
.presale-boundary>summary h2 { display: inline; font-size: 1rem; font-weight: 650; }
.presale-boundary li { font-size: .88rem; line-height: 1.8; }
.lg { display: inline-flex; align-items: center; gap: .3rem; margin-right: .8rem; }
.lg::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--c,var(--data-off)); display: inline-block; }
.lg.tier-parcel::before { background: var(--ink); }
.lg.tier-zone::before { background: var(--surface); border: 2px solid var(--ink); }
.lg.tier-sido::before { background: var(--surface); border: 2px dashed var(--ink-soft); }
.presale-mapwrap { position: sticky; top: 1rem; }
.presale-mapbox { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.presale-map { display: block; width: 100%; height: auto; }
/* 배경 지도(TMAP)가 뜨면 SVG 는 그 위의 오버레이가 된다 — 끌기·확대는 지도가 받고 점만 눌린다 (presale.js) */
.presale-tmap { position: absolute; inset: 0; }
.presale-tmap canvas { outline: none; }
.presale-mapbox[data-native=true] .presale-map { position: absolute; inset: 0; height: 100%; pointer-events: none; z-index: 2; }
.presale-mapbox[data-native=true] .pm-sea,.presale-mapbox[data-native=true] .pm-sido { display: none; }
.presale-mapbox[data-native=true] .pm-mark { pointer-events: auto; }
/* 배경 지도가 뜨면 넓고 높은 판 — 정보를 실을 자리를 먼저 만든다 */
.presale-mapbox[data-native=true] { height: min(78vh,760px); }
/* 타일 위에서는 윤곽을 같은 계열 색으로 옅게. 멀리서는 감춘다(presale.js rings-on) */
.presale-mapbox[data-native=true] .pm-ring { fill-opacity: .16; stroke: var(--c-ink,var(--ink-soft)); stroke-width: 1; stroke-opacity: .7; }
.presale-mapbox[data-native=true] .presale-map:not(.rings-on) .pm-ring { display: none; }
/* 배경 지도 위 꼬리표·단지명은 presale.js 가 겹치지 않는 것만 켠다(lab-on · nm-on) */
.presale-mapbox[data-native=true] .pm-lab { display: none; }
.presale-mapbox[data-native=true] .pm-mark.lab-on .pm-lab { display: inline; }
.presale-mapbox[data-native=true] .pm-mark:not(.nm-on) .pm-nm { display: none; }
.presale-mapctl { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.presale-mapctl[hidden] { display: none; }
.presale-mapctl button { font: inherit; font-size: .9rem; line-height: 1; min-width: 2.2rem; padding: .5rem .55rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); cursor: pointer; }
.presale-mapctl button[data-map-zoom=reset] { font-size: .72rem; }
.presale-mapctl button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.presale-mapstatus { font-size: .75rem; color: var(--ink-soft); margin: .3rem 0 0; min-height: 1em; }
/* 점을 누르면(목록에 없는 묶음) 바로 넘어가지 않고 이름·입주예정을 먼저 보인다 — 터치에는 툴팁이 없다 (presale.js) */
.presale-pick { margin: .5rem 0 0; padding: .55rem .8rem; border: 1px solid var(--line); border-left: 3px solid var(--link); border-radius: var(--radius-md); background: var(--surface); font-size: .86rem; line-height: 1.5; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; }
.presale-pick[hidden] { display: none; }
.presale-pick a { font-weight: 650; white-space: nowrap; }
.presale-tomap { display: none; }
.presale-maphelp { font-size: .8rem; color: var(--ink-soft); line-height: 1.6; }
.presale-empty { padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.pg-loc { font-size: .78rem; color: var(--ink-soft); margin: .2rem 0 .6rem; }
.pg-tier { display: inline-block; padding: 0 .4rem; border: 1px solid var(--line); border-radius: 3px; margin-right: .3rem; color: var(--ink); }
.pg-tier.tier-zone { border-style: solid; }
.pg-tier.tier-sido { border-style: dashed; }
.pn-models,.pn-comp { width: 100%; font-size: .78rem; border-collapse: collapse; margin: .5rem 0; }
.pn-models caption,.pn-comp caption { text-align: left; font-size: .75rem; color: var(--ink-soft); padding: .2rem 0; }
.pn-models th,.pn-models td,.pn-comp th,.pn-comp td { padding: .25rem .4rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.pn-models th:first-child,.pn-models td:first-child,.pn-comp th:first-child,.pn-comp td:first-child,.pn-comp td:nth-child(3) { text-align: left; }
.cp-shortfall td:last-child { color: var(--data-hot-ink); }
.pn-compnote { font-size: .8rem; color: var(--ink-soft); }
.table-scroll { max-height: 320px; overflow: auto; }
/* SVG 지도 */
.pm-sea { fill: var(--bg-alt); }
.pm-sido { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
/* 지도 표식 — 색은 청약 상태(상태 칩과 같은 축), 크기는 앞섬. 꼬리표는 남은 날 또는 입주예정월 (presale.go pinSVG · presale.js pin) */
.ms-open { --c: var(--data-hot); --c-ink: var(--data-hot-ink); --pin: var(--data-hot); --pin-fg: var(--on-data); }
.ms-before { --c: var(--data-warm); --c-ink: var(--data-warm-ink); --pin: var(--data-warm); --pin-fg: var(--night); }
.ms-after { --c: var(--data-cool); --c-ink: var(--data-cool-ink); --pin: var(--surface); --pin-fg: var(--data-cool-ink); }
.ms-done { --c: var(--data-deep); --c-ink: var(--night); --pin: var(--surface); --pin-fg: var(--ink); }
.pm-mark circle { fill: var(--c,var(--data-off)); stroke: var(--surface); stroke-width: 1.5; }
.pm-mark.ms-done circle { fill-opacity: .7; }
.pm-mark.pm-zone circle { fill: var(--surface); stroke: var(--c,var(--data-off)); stroke-width: 2.5; fill-opacity: 1; }
.pm-mark.pm-sido circle { fill: var(--surface); stroke: var(--c-ink,var(--ink-soft)); stroke-width: 1.5; stroke-dasharray: 3 2; }
.pm-mark:hover circle,.pm-mark.is-active circle { stroke: var(--night); stroke-width: 2.5; }
.pm-lab { filter: drop-shadow(0 1px 1.5px rgb(11 18 32 / .28)); }
.pm-pill { fill: var(--pin); stroke: var(--c-ink); stroke-width: 1; }
.pm-tip { fill: var(--c-ink); }
.pm-tagt { fill: var(--pin-fg); font-size: 11px; font-weight: 700; text-anchor: middle; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pm-nm { fill: var(--ink); font-size: 11.5px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; letter-spacing: -.02em; }
.pm-mark:hover .pm-pill,.pm-mark.is-active .pm-pill { stroke: var(--night); stroke-width: 1.6; }
.pm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .75rem 0 0; padding: 0; font-size: .8rem; color: var(--ink); }
.pm-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.pm-legend i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--surface),0 0 0 2.5px var(--c-ink); }
.pm-legend .ms-done i { opacity: .7; }
.pm-legend b { font-variant-numeric: tabular-nums; font-weight: 750; }
/* 표식 위 요약 카드 (presale.js) — 마우스·키보드 초점에서 뜬다 */
.pm-card { position: absolute; z-index: 4; width: max-content; max-width: 16rem; padding: .65rem .8rem .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-float); font-size: .78rem; line-height: 1.45; color: var(--ink); pointer-events: none; transform: translate(-50%,calc(-100% - 16px)); }
.pm-card[hidden] { display: none; }
.pm-card.is-below { transform: translate(-50%,16px); }
.pm-card strong { display: block; font-size: .95rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .3rem; }
.pmc-st { display: inline-block; padding: .05rem .45rem; border-radius: 4px; font-weight: 750; background: var(--pin); color: var(--pin-fg); border: 1px solid var(--c-ink); }
.pmc-tag { margin-left: .4rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.pm-card dl { display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; margin: .45rem 0 0; }
.pm-card dt { color: var(--ink-soft); }
.pm-card dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.pm-ring { fill: var(--c,var(--data-off)); fill-opacity: .18; stroke: var(--c,var(--data-off)); stroke-width: .8; }
.pm-ring.is-active { fill-opacity: .45; }
@media(max-width:860px) {
  .presale-mapbox[data-native=true] { height: auto; aspect-ratio: 4/5; }
  .presale-mapwrap { position: static; }
  .presale-tomap { display: block; font-size: .84rem; }
}
@media(max-width:540px) {
  .presale-page { padding-top: 1.4rem; }
  .pc-row { grid-template-columns: 1fr; gap: .2rem; }
  .pc-set { flex-wrap: nowrap; overflow-x: auto; padding: 0 2rem .3rem 0; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg,#000 calc(100% - 2rem),transparent); mask-image: linear-gradient(90deg,#000 calc(100% - 2rem),transparent); }
  .pn-models,.pn-comp { font-size: .7rem; }
}
/* 주택형 평면도 3D — 로컬 시제품 (floorplan/viewer.js, web/floorplan_wire.go) */
.pn-fp3d { margin-left: .4em; padding: .1em .5em; font: inherit; font-size: .85em; border: 1px solid currentColor; border-radius: 4px; background: none; color: inherit; cursor: pointer; }
dialog.fp3d { width: min(96vw,1100px); height: min(90vh,800px); padding: 0; border: 0; border-radius: var(--radius-media); display: flex; flex-direction: column; background: var(--bg-alt); box-shadow: var(--shadow-3); }
dialog.fp3d:not([open]) { display: none; }
dialog.fp3d::backdrop { background: rgba(11,18,32,.55); }
.fp3d-bar { display: flex; flex-wrap: wrap; gap: .4em 1em; align-items: center; padding: .5em .8em; background: var(--surface); border-bottom: 1px solid var(--line); }
.fp3d-info { color: var(--ink-soft); font-size: .85em; flex: 1; }
.fp3d-warn { margin: 0; padding: .35em .8em; background: var(--brand-wash); color: var(--link); font-size: .85em; }
.fp3d-note { margin: 0; padding: .2em .8em; font-size: .8em; color: var(--ink-soft); }
.fp3d-canvas { flex: 1; width: 100%; min-height: 0; display: block; touch-action: none; }
.fp3d-canvas[hidden] { display: block; visibility: hidden; }
.fp3d-load { position: absolute; left: 50%; top: 55%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: .6em; padding: 1.2em 1.6em; border-radius: 10px; background: var(--glass); box-shadow: var(--shadow-2); text-align: center; color: var(--ink); pointer-events: none; }
.fp3d-load[hidden] { display: none; }
.fp3d-load small { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.fp3d-load.is-error .fp3d-spin { display: none; }
.fp3d-load.is-error strong { color: var(--data-hot-ink); }
.fp3d-spin { width: 2.2em; height: 2.2em; border: 3px solid var(--line); border-top-color: var(--link); border-radius: 50%; animation: fp3d-spin .9s linear infinite; }
@keyframes fp3d-spin {
  to { transform: rotate(360deg); }
}
@media(prefers-reduced-motion:reduce) {
  .fp3d-spin { animation-duration: 3s; }
}
/* 재디자인 1단계 — 고른 조건 · D-day · 조건 더 칩 · 주택형 면적대 묶음 (master-plan docs/prd/presale-explorer.md §8h) */
.ps-fields .pc-row { flex-basis: 100%; min-width: 0; }
.presale-applied { display: flex; flex-wrap: wrap; gap: .4rem .5rem; align-items: center; margin: .5rem 0 .8rem; font-size: .82rem; }
.pa-name { color: var(--ink-soft); margin-right: .2rem; }
.pa-chip { display: inline-flex; gap: .35em; align-items: baseline; padding: .22rem .6rem; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.pa-chip:hover { background: var(--bg-alt); }
.pa-chip span { color: var(--ink-soft); }
.table-scroll:has(> .pn-models) { max-height: none; }
/* 주택형 표는 대개 열 줄 안팎 — 안쪽 스크롤로 자르지 않는다. 긴 경쟁률 표만 상자 안에서 넘긴다 */
.pt-group th { padding-top: .7rem; text-align: left; font-weight: 700; border-bottom: 1px solid var(--ink); }
.pt-group small { font-weight: 400; color: var(--ink-soft); }
.pt-price { white-space: nowrap; }
.pt-bar { width: 6rem; height: .4rem; vertical-align: middle; margin-right: .4rem; }
.pt-bar-bg { fill: var(--bg-alt); }
.pt-bar-v { fill: var(--data-cool); }
@media(max-width:540px) {
  .pt-bar { width: 3rem; }
  .ps-fields label:not(.pcheck) { flex-wrap: wrap; }
  .ps-fields input[type=month] { max-width: 9.5rem; }
}
/* ── 2026-10-23 재디자인 (시안 ② 표 목록 + ① 요약 띠 + 상세 세 칸) ───────────────────────────────
   고급스러움은 굵기 대비·괘선(2px 잉크 머리줄 / 1px 행 선)·여백·숫자 정렬로 낸다. 글꼴은 사이트 기본(시스템 산세리프).
   상태색: 접수 중 벽돌 면 · 접수 전 황토 면 · 발표·계약 잉크 테두리 · 청약 종료 회색 — 배지·필터·지도가 같은 이름과 색 */
.presale-page .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.presale-page .num,.pg-row,.pd-kpi,.pd-rail,.pn-models,.pn-comp { font-variant-numeric: tabular-nums; }
.ps-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .4rem 1.5rem; padding-bottom: .9rem; border-bottom: 2px solid var(--night); }
.ps-head .eyebrow { flex-basis: 100%; margin: 0; }
.ps-head h1 { margin: 0; font-size: clamp(1.9rem,3.6vw,2.6rem); font-weight: 900; letter-spacing: -.045em; line-height: 1.1; }
.ps-meta { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.ps-meta b,.ps-meta time { color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; }
.ps-i { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--ink-soft); border-radius: 50%; font-size: .72rem; font-weight: 800; color: var(--ink-soft); text-decoration: none; margin-left: .2rem; }
/* 툴바 — 한 줄 GET 폼. select 를 바꾸면 presale.js 가 제출한다(JS 가 없으면 «적용») */
.ps-tool { margin: .9rem 0 .4rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.pt-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.pt-sel select,.pt-q input,.ps-fields input[type=number],.ps-fields input[type=month] { font: inherit; font-size: .84rem; height: 2.25rem; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.pt-sel select { padding-right: 1.6rem; font-weight: 650; }
.pt-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.pt-seg .pchip { border: 0; border-radius: 0; border-right: 1px solid var(--line); height: 2.25rem; align-items: center; padding: 0 .75rem; font-size: .82rem; background: none; }
.pt-seg .pchip:last-child { border-right: 0; }
.pt-seg .pchip[aria-current] { background: var(--night); color: var(--on-night); }
.pt-q { display: flex; gap: .35rem; margin-left: auto; }
.pt-q input { width: 13rem; }
.pt-q button,.ps-fields button { font: inherit; font-size: .84rem; font-weight: 800; height: 2.25rem; padding: 0 1rem; border: 1px solid var(--brand); border-radius: 6px; background: var(--brand); color: var(--night); cursor: pointer; }
.ps-tool .ps-more { margin-top: .55rem; }
.ps-tool .ps-fields { padding: .9rem 1rem; margin-top: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; gap: .8rem 1.6rem; }
.ps-fields input[type=number] { width: 5rem; }
.pa-clear { color: var(--link); margin-left: .3rem; }
/* 목록 표 — CSS grid 줄. 한 줄 = article(눌리는 면은 카드 전체 — 위 .pg-card 규칙) */
.pl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .84rem; color: var(--ink-soft); padding: .4rem 0 .6rem; }
.pl-top p { margin: 0; }
.pl-top strong { color: var(--ink); font-weight: 800; }
.pl-h,.pg-row { display: grid; grid-template-columns: 4.9rem minmax(0,2.4fr) 5.8rem minmax(5.5rem,.9fr) 3.4rem 5.2rem 4.2rem; gap: .7rem; align-items: center; }
.pl-h { font-size: .7rem; font-weight: 700; color: var(--ink-soft); padding: .45rem .5rem; border-bottom: 2px solid var(--night); line-height: 1.25; }
.pl-h a { color: var(--ink-soft); text-decoration: none; }
.pl-h a::after { content: " ↕"; opacity: .5; }
.pl-h a.is-on { color: var(--ink); }
.pl-h a.is-on::after { content: " ▲"; opacity: 1; }
.pl-h small { font-weight: 500; }
.pl-h>:nth-child(n+4) { text-align: right; }
.pg-card.pg-row { border-bottom: 1px solid var(--line); padding: .55rem .5rem; font-size: .84rem; }
.pg-row.is-active,.pg-row:hover,.pg-row:focus-within { background: var(--surface); }
.pg-row.is-active { box-shadow: 0 0 0 1px var(--link); }
.pg-row.is-pinned { background: color-mix(in srgb,var(--data-hot-wash) 55%,transparent); }
.pr-badge { display: inline-flex; align-items: center; gap: .3em; padding: .15rem .5rem; border-radius: 4px; font-size: .72rem; font-weight: 800; white-space: nowrap; line-height: 1.35; background: var(--pin,var(--bg-alt)); color: var(--pin-fg,var(--ink)); border: 1px solid var(--c-ink,var(--line)); }
.ms-open .pr-badge::before { content: ""; width: .4em; height: .4em; border-radius: 50%; background: currentColor; }
.ms-after .pr-badge { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.ms-done .pr-badge { background: var(--bg-alt); color: var(--ink-soft); border-color: var(--bg-alt); font-weight: 650; }
.pr-name { min-width: 0; }
.pr-name h2 { margin: 0; font-size: .95rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-name h2 a { color: var(--ink); text-decoration: none; }
.pr-name small { font-size: .7rem; color: var(--ink-soft); font-weight: 600; }
.pr-name p { margin: .1rem 0 0; font-size: .74rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-d { display: flex; flex-direction: column; line-height: 1.25; }
.pr-d b { font-size: .95rem; font-weight: 900; letter-spacing: -.02em; }
.ms-open .pr-d b { color: var(--data-hot-ink); }
.ms-done .pr-d b { color: var(--ink-soft); font-weight: 600; }
.pr-d span { font-size: .7rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; }
.pr-rail li { height: 4px; border-radius: 1px; background: var(--line); }
.pr-rail li.st-past { background: var(--data-cool); }
.pr-rail li.st-now { background: var(--data-hot); }
.pr-rail li.st-next { background: var(--data-warm); }
.pr-rail li.st-none { background: none; border-top: 1px dashed var(--line); height: 0; }
.ms-done .pr-rail li.st-past { background: var(--line); }
.pr-price { display: flex; align-items: center; gap: .5rem; justify-content: flex-end; min-width: 0; }
.pr-bar { flex: 1; min-width: 2.5rem; height: .5rem; }
.pr-bar-bg { fill: var(--bg-alt); }
.pr-bar-v { fill: var(--night); }
.ms-done .pr-bar-v { fill: var(--ink-soft); }
.pr-price span { font-weight: 750; white-space: nowrap; }
.pr-none { color: var(--ink-soft); }
.pr-hh,.pr-area,.pr-mv { text-align: right; white-space: nowrap; }
.pr-mv { font-weight: 750; }
.ms-done .pr-name h2 a,.ms-done .pr-mv { color: color-mix(in srgb,var(--ink) 82%,var(--bg)); }
.pg-row .u { display: none; }
.pg-row .pg-go { display: none; }
/* 지도 칸 — 목록 옆에 붙어 따라온다 */
.presale-layout .presale-mapwrap { top: .8rem; }
.presale-mapbox .pm-legend { position: absolute; left: 10px; bottom: 10px; z-index: 3; margin: 0; padding: .35rem .6rem; background: color-mix(in srgb,var(--surface) 92%,transparent); border: 1px solid var(--line); border-radius: 6px; font-size: .72rem; gap: .2rem .7rem; }
.presale-mapbox:not([data-native=true]) .pm-legend { position: static; border: 0; background: none; padding: .5rem .6rem; }
/* 각주 */
.ps-notes { margin: 1.6rem 0 .4rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-soft); display: grid; gap: .25rem; }
.ps-notes p { margin: 0; }
.ps-notes b { color: var(--ink); }
/* 상세 */
.presale-detail { padding-top: 1.4rem; }
.pd-crumb { font-size: .8rem; color: var(--ink-soft); margin-bottom: 1rem; }
.pd-crumb a { color: var(--link); }
.pd-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--night); }
.pd-meta { margin: 0 0 .5rem; font-size: .8rem; color: var(--ink-soft); }
.pd-meta b { color: var(--ink); font-weight: 750; }
.pd-meta .pr-badge { margin-right: .4rem; }
.pd-hero h1 { margin: 0; font-size: clamp(1.8rem,3.4vw,2.5rem); font-weight: 900; letter-spacing: -.045em; line-height: 1.12; }
.pd-hero h1 small { font-size: .5em; color: var(--ink-soft); font-weight: 700; letter-spacing: 0; }
.pd-addr { margin: .45rem 0 0; font-size: .82rem; color: var(--ink-soft); }
.pd-dday { margin: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.pd-dday span { font-size: .8rem; color: var(--ink-soft); }
.pd-dday b { font-size: clamp(2.6rem,5vw,3.6rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.ms-open .pd-dday b { color: var(--data-hot-ink); }
.pd-kpi { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.pd-kpi>div { padding: 1rem 1.2rem 1rem 0; margin-right: 1.2rem; border-right: 1px solid var(--line); }
.pd-kpi>div:last-child { border-right: 0; margin-right: 0; }
.pd-kpi dt { font-size: .76rem; color: var(--ink-soft); }
.pd-kpi dd { margin: .3rem 0 0; }
.pd-kpi b { font-size: clamp(1.6rem,2.6vw,2.1rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.pd-kpi dd small { font-size: .85rem; font-weight: 800; margin-left: .1rem; }
.pk-sub { font-size: .74rem; color: var(--ink-soft); }
.pk-bar svg { width: 100%; height: .4rem; display: block; }
.pk-gen,.pt-gen { fill: var(--night); }
.pk-spe,.pt-spe { fill: var(--data-cool); }
.pd-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.7fr) minmax(0,1.15fr); gap: 28px; margin-top: 1.4rem; align-items: start; }
.pd-col h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1rem; font-weight: 850; letter-spacing: -.02em; margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 2px solid var(--night); }
.pd-col h2 small { font-size: .72rem; font-weight: 500; color: var(--ink-soft); }
.pd-col h2:not(:first-child) { margin-top: 1.6rem; }
.pd-rail { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
.pd-rail li { border-top: 3px solid var(--line); padding-top: .4rem; display: flex; flex-direction: column; min-width: 0; }
.pd-rail li.st-past { border-color: var(--data-cool); }
.pd-rail li.st-now { border-color: var(--data-hot); }
.pd-rail li.st-next { border-color: var(--data-warm); }
.pd-rail li.st-none { border-top-style: dotted; }
.pd-rail span { font-size: .7rem; color: var(--ink-soft); white-space: nowrap; }
.pd-rail .st-next span,.pd-rail .st-now span { color: var(--ink); font-weight: 750; }
.pd-rail b { font-size: 1rem; font-weight: 850; letter-spacing: -.02em; }
.pd-rail small { font-size: .66rem; color: var(--ink-soft); }
.pd-rail .st-next small { color: var(--brand-ink,var(--link)); font-weight: 750; }
.pd-notices { list-style: none; padding: 0; margin: 0; }
.pd-notices a { display: block; padding: .6rem .6rem .6rem .7rem; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; text-decoration: none; color: var(--ink); }
.pd-notices .is-sel a { border-left-color: var(--night); background: var(--surface); }
.pd-notices a:hover { background: var(--surface); }
.pn-l { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pn-l b { font-weight: 800; }
.pd-notices small { display: block; font-size: .74rem; color: var(--ink-soft); margin-top: .15rem; }
.pd-models .pn-models { font-size: .8rem; }
.pd-models .pn-models td,.pd-models .pn-models th { padding: .45rem .4rem; }
.pd-models .pn-models thead th { border-bottom: 1px solid var(--ink); font-size: .72rem; color: var(--ink-soft); }
.pd-models .pn-models td:first-child { font-weight: 750; }
.pt-mix { width: 4.5rem; }
.pt-mix .pt-bar { width: 4.5rem; }
.pt-bar-v.is-top { fill: var(--night); }
.pd-key { font-size: .72rem; color: var(--ink-soft); margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; align-items: center; }
.pd-key i { display: inline-block; width: .7rem; height: .45rem; }
.k-gen { background: var(--night); }
.k-spe { background: var(--data-cool); }
.pd-side .presale-mapwrap { position: static; }
.pd-side .presale-mapbox[data-native=true] { height: 300px; }
.pd-origin { list-style: none; padding: 0; margin: 0; font-size: .84rem; display: grid; gap: .35rem; }
.pd-origin small { color: var(--ink-soft); }
/* 좁은 화면 — 표 줄을 네 줄 카드로 */
@media(max-width:860px) {
  .presale-layout { grid-template-columns: minmax(0,1fr); }
  .pt-q { margin-left: 0; flex: 1 1 100%; }
  .pt-q input { flex: 1; width: auto; }
  .pt-sel { flex: 1 1 calc(50% - .5rem); }
  .pt-sel select { width: 100%; }
  .pt-seg { flex: 1 1 100%; overflow-x: auto; }
  .pt-seg .pchip { flex: 1 0 auto; justify-content: center; }
  .pl-h { display: none; }
  .pg-row { grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "st name d" "sub sub sub" "price price rail"; gap: .3rem .6rem; padding: .8rem .2rem; }
  .pr-st { grid-area: st; }
  .pr-name { grid-area: name; }
  .pr-d { grid-area: d; text-align: right; align-items: flex-end; }
  .pr-hh,.pr-area,.pr-mv { display: inline; text-align: left; font-size: .74rem; color: var(--ink-soft); }
  .pg-row .u { display: inline; }
  .pr-hh { grid-area: sub; grid-row: 2; justify-self: start; }
  .pr-area { grid-area: sub; grid-row: 2; justify-self: center; }
  .pr-mv { grid-area: sub; grid-row: 2; justify-self: end; font-weight: 700; color: var(--ink); }
  .pr-name p { white-space: normal; }
  .pr-price { grid-area: price; justify-content: flex-start; }
  .pr-rail { grid-area: rail; display: grid; width: 6.5rem; align-self: center; }
  .pd-hero { align-items: flex-start; }
  .pd-dday { align-items: flex-start; text-align: left; }
  .pd-kpi { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pd-kpi>div:nth-child(2) { border-right: 0; margin-right: 0; }
  .pd-kpi>div { border-bottom: 1px solid var(--line); }
  .pd-grid { grid-template-columns: minmax(0,1fr); }
  .pd-rail span { white-space: normal; }
}
/* 지도 묶음 원 (presale.go clusterSVG) — 배경 지도가 뜬 뒤 축척에 맞는 한 겹만. 묶음 축척에서는 청약이 남은 핀만 남긴다 */
.pm-cl { display: none; }
.presale-mapbox[data-native=true] .presale-map[data-mode=sido] .pm-cls-sido .pm-cl,.presale-mapbox[data-native=true] .presale-map[data-mode=sgg] .pm-cls-sgg .pm-cl { display: inline; pointer-events: auto; cursor: zoom-in; }
.presale-mapbox[data-native=true] .presale-map:is([data-mode=sido],[data-mode=sgg]) .pm-mark:not([data-pri="0"]):not([data-pri="1"]):not(.is-active) { display: none; }
.pm-cl circle { fill: var(--night); fill-opacity: .88; stroke: var(--surface); stroke-width: 2; }
.pm-cl.is-live circle { stroke: var(--data-warm); stroke-width: 3; }
.pm-cl:hover circle,.pm-cl:focus-visible circle { fill-opacity: 1; stroke: var(--brand); }
.pm-cln { fill: var(--on-night); font-size: 12px; font-weight: 800; text-anchor: middle; font-variant-numeric: tabular-nums; }
.pm-cll { fill: var(--ink); font-size: 11px; font-weight: 750; text-anchor: middle; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.pm-cl.lab-off .pm-cll { display: none; }
.pm-legend .pm-lg-cl { display: none; }
.presale-mapbox[data-native=true] .presale-map:is([data-mode=sido],[data-mode=sgg])~.pm-legend .pm-lg-cl { display: inline-flex; }
.pm-legend .pm-lg-cl i { background: var(--night); box-shadow: 0 0 0 1.5px var(--surface),0 0 0 3px var(--data-warm); }
/* 2단계 필터 — 시군구·주택구분 체크박스, 분양가 슬라이더, 월 격자 (presale.js 가 슬라이더·격자를 덧붙인다. 정본 값은 숫자칸·월 입력칸) */
.pcheck { display: inline-flex; align-items: center; gap: .35em; padding: .28rem .65rem .28rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: .84rem; line-height: 1.3; white-space: nowrap; cursor: pointer; }
.pcheck input { margin: 0; accent-color: var(--night); }
.pcheck small { font-size: .74rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pcheck:has(input:checked) { border-color: var(--night); box-shadow: inset 0 0 0 1px var(--night); }
.pcheck:has(input:focus-visible) { outline: 3px solid var(--link); outline-offset: 2px; }
.pt-group { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.pt-range { position: relative; width: 100%; max-width: 26rem; height: 2.7rem; --lo: 0%; --hi: 100%; }
.pt-range::before { content: ""; position: absolute; left: .55rem; right: .55rem; top: .5rem; height: 4px; border-radius: 2px; background: linear-gradient(90deg,var(--line) var(--lo),var(--night) var(--lo),var(--night) var(--hi),var(--line) var(--hi)); }
.pt-range input { position: absolute; left: 0; top: 0; width: 100%; height: 1.1rem; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.pt-range input::-webkit-slider-runnable-track { background: none; border: 0; }
.pt-range input::-moz-range-track { background: none; border: 0; }
.pt-range input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; appearance: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--night); cursor: grab; }
.pt-range input::-moz-range-thumb { pointer-events: auto; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--night); cursor: grab; }
.pt-range input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--link); outline-offset: 2px; }
.pt-range input:focus-visible::-moz-range-thumb { outline: 3px solid var(--link); outline-offset: 2px; }
.pt-ticks { position: absolute; left: 0; right: 0; top: 1.4rem; display: flex; justify-content: space-between; font-size: .7rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pt-months { width: 100%; max-width: 26rem; }
.ptm-y { display: flex; align-items: center; gap: .5rem; font-size: .8rem; margin-bottom: .3rem; }
.ptm-y b { min-width: 3.6em; text-align: center; font-variant-numeric: tabular-nums; }
.pt-months button { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 4px; }
.ptm-y button { width: 1.9rem; height: 1.7rem; }
.ptm-g { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 3px; }
.ptm-g button { height: 1.9rem; font-size: .78rem; font-variant-numeric: tabular-nums; }
.ptm-g button.is-in { background: var(--bg-alt); }
.ptm-g button.is-end { background: var(--night); border-color: var(--night); color: var(--on-night); font-weight: 750; }
.pt-months button:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; }
.ps-fields button[type=submit] span { font-variant-numeric: tabular-nums; }
/* ── 2026-10-25 개편 (master-plan docs/tasks/company-web-presale-redesign) ───────────────────────────────
   첫 화면의 주인공은 «이번 주 청약» 달력 띠 — 들어온 사람의 첫 질문(이번 주에 넣을 수 있는 곳)에 날짜 칸으로 답한다.
   «곧 입주하는 곳» 연도 막대는 툴바의 입주 연도 select(같은 건수)로 흡수했다. 해명은 지도 밑 한 줄 + 각주 + 접힌 «말하지 않는 것» 한 곳 */
.presale-page section + section { margin-top: 0; padding-top: 0; border-top: 0; }
.ps-week { padding: 1rem 0 .9rem; border-bottom: 2px solid var(--night); }
.pw-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; margin-bottom: .7rem; }
.pw-head h2 { margin: 0; font-size: 1.15rem; font-weight: 850; letter-spacing: -.03em; }
.ps-week .pw-status { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.ps-week .pw-status a { display: inline-flex; align-items: baseline; gap: .35rem; text-decoration: none; color: var(--ink-soft); font-size: .8rem; }
.ps-week .pw-status strong { font-size: 1.45rem; font-weight: 900; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.ps-week .pw-status .ms-open strong { color: var(--data-hot-ink); }
.ps-week .pw-status .ms-after strong { color: var(--ink-soft); }
.ps-week .pw-status em { font-style: normal; color: var(--ink); font-weight: 700; }
.ps-week .pw-status a:hover span { color: var(--ink); text-decoration: underline; }
.pw-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); border-top: 1px solid var(--line); }
.pw-day { min-width: 0; padding: .55rem .6rem .7rem; border-right: 1px solid var(--line); border-top: 3px solid transparent; margin-top: -1px; }
.pw-day:last-child { border-right: 0; }
.pw-day h3 { margin: 0 0 .4rem; font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pw-day h3 small { font-weight: 500; color: var(--ink-soft); }
.pw-day.is-today { border-top-color: var(--data-hot); background: color-mix(in srgb,var(--data-hot-wash) 40%,transparent); }
.pw-day.is-today h3 { color: var(--data-hot-ink); }
.pw-day.is-today h3 small { color: var(--data-hot-ink); font-weight: 750; }
.pw-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pw-day li { font-size: .8rem; line-height: 1.35; }
.pw-day li a { color: var(--ink); font-weight: 650; text-decoration: none; }
.pw-day li a:hover { text-decoration: underline; }
.pw-k { display: inline-block; padding: 0 .3rem; border: 1px solid var(--line); border-radius: 3px; font-size: .66rem; font-weight: 750; color: var(--ink-soft); background: var(--surface); vertical-align: .08em; }
.pw-more { display: inline-block; margin-top: .35rem; font-size: .74rem; }
.pw-none { margin: 0; font-size: .74rem; color: var(--ink-soft); }
.pw-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; margin: .7rem 0 0; font-size: .78rem; color: var(--ink-soft); }
.pw-foot strong { color: var(--ink); }
/* 목록 줄 — 단지명은 두 줄까지(같은 이름의 1·2단지가 말줄임으로 같아 보이지 않게) */
.pr-name h2 { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.presale-maphelp .lg { margin-right: .6rem; }
.pn-compnote { margin: .8rem 0 0; }
/* 상세 — 왼쪽(일정 → 주택형 → 경쟁률) · 오른쪽(위치 → 공고 → 원문). 좁으면 그 순서대로 한 줄 */
.pd-grid { grid-template-columns: minmax(0,1.9fr) minmax(300px,1fr); gap: 40px; }
.pd-main { min-width: 0; }
.pd-main>section+section { margin-top: 2rem; }
.pd-addr a { margin-left: .3rem; font-size: .78rem; color: var(--link); }
.pd-dday b { order: 0; }
.pd-dday span { order: 1; margin-top: .35rem; }
.pd-rail span i { font-style: normal; font-weight: 600; color: var(--ink-soft); }
.pk-bg { fill: var(--bg-alt); }
.pd-side .presale-mapbox[data-native=true] { aspect-ratio: auto; height: 300px; }
/* 좁은 화면의 목록 ↔ 지도 전환 단추 (presale.js) — JS 가 없으면 숨은 채로 «지도에서 보기 ↓» 앵커가 대신한다 */
.ps-viewbtn { display: none; }
@media(max-width:860px) {
  .ps-head h1 { font-size: 1.7rem; }
  .pw-days { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .pw-day { flex: 0 0 64%; scroll-snap-align: start; }
  .pw-day.is-empty { flex-basis: 5.2rem; }
  .pg-row { grid-template-columns: auto auto minmax(0,1fr); grid-template-areas: "st st d" "name name name" "hh area mv" "price price price"; gap: .3rem .8rem; padding: .85rem .2rem; }
  .pr-hh { grid-area: hh; grid-row: auto; }
  .pr-area { grid-area: area; grid-row: auto; justify-self: start; }
  .pr-mv { grid-area: mv; grid-row: auto; }
  .pr-d { flex-direction: row-reverse; align-items: baseline; gap: .45rem; justify-self: end; }
  .pr-name h2 { font-size: 1rem; }
  .pr-price span { font-size: .95rem; }
  .ps-viewbtn:not([hidden]) { display: inline-flex; position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 61; padding: .75rem 1.3rem; border: 0; border-radius: 999px; background: var(--night); color: var(--on-night); font: inherit; font-size: .9rem; font-weight: 800; box-shadow: var(--shadow-float); cursor: pointer; }
  .presale-layout:has(.ps-viewbtn:not([hidden])) .presale-tomap { display: none; }
  .presale-layout[data-view=map] .presale-mapwrap { position: fixed; inset: 0; z-index: 60; margin: 0; padding: .8rem .8rem 5rem; overflow: auto; background: var(--bg); }
  .presale-layout[data-view=map] .presale-mapbox[data-native=true] { aspect-ratio: auto; height: calc(100svh - 7.5rem); }
  .pd-hero { gap: .6rem; }
  .pd-hero h1 { font-size: 1.6rem; }
  .pd-dday { flex-direction: row; align-items: baseline; gap: .6rem; }
  .pd-dday b { font-size: 2rem; }
  .pd-dday span { margin: 0; }
  .pd-grid { grid-template-columns: minmax(0,1fr); gap: 2rem; }
}
html.ps-lock { overflow: hidden; }
/* 좁은 화면의 주택형 — 표 대신 카드: 주택형·최고 분양가 한 줄, 면적·공급 세대 한 줄 */
@media(max-width:640px) {
  .pd-models .table-scroll { overflow: visible; }
  .pd-models .pn-models,.pd-models .pn-models tbody { display: block; }
  .pd-models .pn-models thead,.pd-models .pt-mix,.pd-models .pt-price svg { display: none; }
  .pd-models .pn-models tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .pd-models .pn-models tr.pt-group { display: block; padding: .8rem 0 .2rem; border-bottom: 1px solid var(--ink); }
  .pd-models .pn-models td,.pd-models .pn-models th { padding: 0; border: 0; text-align: left; }
  .pd-models .pn-models tr:not(.pt-group)::after { content: ""; order: 1; flex-basis: 100%; height: 0; }
  .pd-models .pn-models .pt-ty { flex: 1 1 auto; font-size: .9rem; }
  .pd-models .pn-models .pt-price { margin-left: auto; font-size: .95rem; font-weight: 850; }
  .pd-models .pn-models td[data-l] { order: 2; font-size: .76rem; color: var(--ink-soft); }
  .pd-models .pn-models td[data-l]::before { content: attr(data-l) " "; }
  .pd-rail b { font-size: .92rem; }
}
.pw-empty { margin: 0; padding: .7rem 0; font-size: .86rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.pd-cta { margin: .8rem 0 0; }
.pd-cta a { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .9rem; border-radius: 6px; background: var(--brand); color: var(--night); font-size: .86rem; font-weight: 800; text-decoration: none; }
.pd-cta a:hover { filter: brightness(.96); }
.pd-models .pt-price { font-weight: 750; }
.pd-models .pt-price.is-top { color: var(--ink); font-weight: 850; }
/* ── 2026-10-25 두 탭 — 「청약」(기본, 살아 있는 묶음) · 「입주 예정」(이번 달 이후 입주 전부) ─────────────── */
.ps-head { padding-bottom: 0; }
.ps-tabs { flex-basis: 100%; display: flex; gap: 1.6rem; margin-top: .6rem; }
.ps-tabs a { padding: .55rem 0 .65rem; border-bottom: 3px solid transparent; margin-bottom: -2px; color: var(--ink-soft); font-size: 1rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.ps-tabs a small { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--brand); }
.ps-tabs a:hover { color: var(--ink); }
/* 청약 탭 기본 순서의 상태 구획 머리 */
.pl-sec { margin: 1.1rem 0 0; padding: .45rem .5rem; border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 800; color: var(--c-ink,var(--ink)); }
.pl-h+.pl-sec { margin-top: .2rem; }
/* 입주 예정 탭 — 상태·D-day 열 없이 입주예정이 맨 앞. 청약이 살아 있는 묶음만 이름 옆에 작은 배지 */
.lens-movein .pr-st,.lens-movein .pr-d,.lens-movein .pl-h>:nth-child(1),.lens-movein .pl-h>:nth-child(3) { display: none; }
.lens-movein .pl-h,.lens-movein .pg-row { grid-template-columns: 4.8rem minmax(0,2.6fr) minmax(5.5rem,.9fr) 3.4rem 5.2rem; }
.lens-movein .pr-mv,.lens-movein .pl-h>:nth-child(7) { order: -1; text-align: left; }
.pr-inl { margin-left: .35rem; padding: .05rem .4rem; font-size: .64rem; vertical-align: .15em; }
/* 청약이 끝난 상세 — 지난 일정은 접어서 맨 아래(주택형·경쟁률 결과가 먼저) */
.pd-main { display: flex; flex-direction: column; gap: 2rem; }
.pd-main>section+section { margin-top: 0; }
.pd-past { order: 9; }
.pd-past>summary { cursor: pointer; list-style: none; }
.pd-past>summary::-webkit-details-marker { display: none; }
.pd-past>summary h2 { color: var(--ink-soft); justify-content: flex-start; }
.pd-past>summary h2 small { margin-left: auto; }
.pd-past>summary h2::before { content: "▸ "; }
.pd-past[open]>summary h2::before { content: "▾ "; }
@media(max-width:860px) {
  .ps-tabs { gap: 1.2rem; }
  .lens-movein .pg-row { grid-template-columns: auto auto minmax(0,1fr); grid-template-areas: "mv mv mv" "name name name" "hh area price"; }
  .lens-movein .pr-mv { justify-self: start; font-size: .8rem; }
  .lens-movein .pr-price { justify-self: end; }
}
