/* ── 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; }
}
