/*
Theme Name: Earth2City Renewal
Theme URI: https://earth2city.co.kr/
Description: 아파트 청약·시세 데이터 서비스 전용 클래식 테마. 블록 테마 아님. 웹폰트·jQuery·외부 CDN 미사용, 바닐라 JS/SVG 차트 자체 구현. 모바일 퍼스트. 공통 디자인 시스템(A부)+earth2city(B부) 적용.
Author: earth2city
Version: 0.6.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: earth2city
*/

/* =========================================================================
   디자인 토큰 (CSS 변수) — 공통 디자인 시스템 A-1 적용.
   ※ A-0 매핑: 기존 변수명을 유지하고 "역할"만 공통 시스템 값으로 재매핑한다.
     --surface-1 → bg-card(#FFFFFF)   --plane → bg-page(#FAFAF9)
     --ink-1 → text-1   --ink-2 → text-2   --muted → text-3
     --border → 헤어라인(#E7E5E0)     --brand → c1(주 브랜드)
     --good → ok(상태)   --warn → warn(상태)
   브랜드 3색(B-1): c1=남색(청약·공고) / c2=틸(시세·데이터) / c3=주황(마감임박·일정)
   시스템 폰트 스택 — 웹폰트 금지. 라이트/다크 모두 대응.
   ========================================================================= */
:root {
  /* 표면·잉크 (A-1 기본) */
  --surface-1: #ffffff;      /* bg-card */
  --plane: #fafaf9;          /* bg-page */
  --ink-1: #1a1a18;          /* text-1 */
  --ink-2: #5f5e5a;          /* text-2 */
  --muted: #888780;          /* text-3 (축/캡션) */
  --border: #e7e5e0;         /* 헤어라인 */
  --grid: #ecebe6;           /* 차트 격자 */
  --baseline: #cbc9c1;       /* 차트 축선 */

  /* 브랜드 3색 (B-1) */
  --c1: #0c447c; --c1-bg: #e6f1fb; --c1-deep: #0c447c;   /* 주 — 청약·공고(남색) */
  --c2: #0f6e56; --c2-bg: #e1f5ee; --c2-deep: #04342c;   /* 보조 — 시세·데이터(틸) */
  --c3: #d85a30; --c3-bg: #faece7; --c3-deep: #993c1d;   /* 강조 — 마감임박·일정(주황) */

  /* --brand = c1 (기존 클래스 호환용 별칭) */
  --brand: var(--c1);
  --brand-ink: #ffffff;

  /* 상태색 (A-1) */
  --ok: #0f6e56;     --ok-bg: #e1f5ee;      /* 접수 중·정상 */
  --warn: #854f0b;   --warn-bg: #faeeda;    /* 마감 임박·주의 */
  --danger: #a32d2d; --danger-bg: #fcebeb;  /* 마감·경고 */
  --good: var(--ok); /* 기존 별칭 */
  --cancel: #a5a39c; /* 계약해제 표기(취소선) */

  /* 차트 시리즈 — 틸/주황(색맹 안전쌍, dataviz). 시세=c2 톤 정합 */
  --series-price: #0f6e56;   /* 실거래가 선형(틸) */
  --series-record: #d85a30;  /* 신고가 마커(주황) */
  --series-volume: #a9d3c8;  /* 거래량 막대(연틸·recede) */

  /* 치수 */
  --wrap: 1080px;
  --gap: 16px;
  --radius: 12px;            /* radius-card */
  --radius-chip: 9px;
  --radius-pill: 999px;
  --tap: 44px;               /* 최소 터치 타깃 */
  --font: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo",
          "Malgun Gothic", "맑은 고딕", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(11,11,11,.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-1: #1a1a19;
    --plane: #101010;
    --ink-1: #f5f4f1;
    --ink-2: #c3c2b7;
    --muted: #8f8e88;
    --border: #2c2c2a;
    --grid: #26261f;
    --baseline: #3d3d38;

    --c1: #5aa0e6; --c1-bg: #14293d; --c1-deep: #bcd8f4;
    --c2: #47c2a0; --c2-bg: #10312a; --c2-deep: #bfe9dc;
    --c3: #e8825c; --c3-bg: #3a231a; --c3-deep: #f3c3ac;

    --brand-ink: #0b1a2a;
    --ok: #47c2a0;     --ok-bg: #10312a;
    --warn: #e6b45f;   --warn-bg: #3a2f14;
    --danger: #e08585; --danger-bg: #3a1c1c;
    --cancel: #7c7b74;

    --series-price: #47c2a0;
    --series-record: #e8825c;
    --series-volume: #2f5f54;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}

/* =========================================================================
   리셋·기본
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-1);
  background: var(--plane);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c1); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.32; margin: 0 0 .5em; font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
strong, b { font-weight: 500; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--c1); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 인라인 SVG 아이콘 (스프라이트 <symbol>, stroke 1.75) */
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.icon-chip {
  width: 42px; height: 42px; border-radius: var(--radius-chip);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: var(--c1-bg); color: var(--c1-deep);
}
.icon-chip .icon { width: 22px; height: 22px; }
.icon-chip--c1 { background: var(--c1-bg); color: var(--c1-deep); }
.icon-chip--c2 { background: var(--c2-bg); color: var(--c2-deep); }
.icon-chip--c3 { background: var(--c3-bg); color: var(--c3-deep); }

/* =========================================================================
   개발 배너 (더미 데이터 표시) — 실데이터 전환 시 자동 소멸
   ========================================================================= */
.e2c-dummy-banner {
  background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--border);
  font-size: 13px; text-align: center; padding: 7px 12px; line-height: 1.5;
}
.e2c-dummy-banner b { font-weight: 500; }

/* =========================================================================
   헤더 / 내비
   ========================================================================= */
.site-header {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.brand-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 19px; color: var(--ink-1); letter-spacing: -.02em; white-space: nowrap; }
.brand-logo:hover { text-decoration: none; }
.brand-logo .icon { width: 26px; height: 26px; color: var(--c1); stroke-width: 1.9; }
.brand-logo b { color: var(--c1); font-weight: 600; }
.nav-toggle {
  margin-left: auto; display: none; width: var(--tap); height: var(--tap);
  align-items: center; justify-content: center; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-chip); cursor: pointer; color: var(--ink-1);
}
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 7px; min-height: var(--tap); padding: 0 12px;
  color: var(--ink-2); font-weight: 500; border-radius: var(--radius-chip); font-size: 15px;
}
.main-nav a .icon { width: 17px; height: 17px; color: var(--muted); }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--c1-deep); background: var(--c1-bg); text-decoration: none; }
.main-nav a:hover .icon, .main-nav .current-menu-item > a .icon { color: var(--c1); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface-1);
    border-bottom: 1px solid var(--border); margin: 0; padding: 6px 16px; display: none; box-shadow: var(--shadow); }
  .main-nav[data-open="1"] { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav li:last-child a { border-bottom: 0; }
}

/* =========================================================================
   섹션·카드 공통 (A-2)
   ========================================================================= */
.section { padding: 26px 0; }
.section > .wrap > h2 { font-size: 18px; margin-bottom: 4px; }
.section .sub { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; }
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
/* 기능/데이터 카드: 상단 3px 색 라인 (A-2) */
.card--c1, .card--c2, .card--c3 { position: relative; overflow: hidden; }
.card--c1::before, .card--c2::before, .card--c3::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
}
.card--c1::before { background: var(--c1); }
.card--c2::before { background: var(--c2); }
.card--c3::before { background: var(--c3); }

.grid { display: grid; gap: var(--gap); }

/* 매거진/리포트 리스트 카드 썸네일 (PART B). 썸네일 없는 글은 헬퍼 가드로 미출력. */
.e2c-post-card { overflow: hidden; padding: 0; }
.e2c-post-card .card-body { padding: 16px; }
.card-thumb { margin: 0; line-height: 0; }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
/* 단일글 상단 대표 이미지: 본문 폭보다 좁게 중앙 정렬(600px) */
.entry-figure { max-width: 600px; margin: 16px auto 0; }
.entry-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-chip); }

/* 배지(알약) — 상태색 + 브랜드색. 색만으로 의미 전달 금지: 텍스트 라벨 병기 */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: var(--radius-pill); line-height: 1.5; }
.badge .icon { width: 13px; height: 13px; }
.badge--ok, .badge.receiving { background: var(--ok-bg); color: var(--ok); }
.badge--warn, .badge.upcoming { background: var(--warn-bg); color: var(--warn); }
.badge--danger, .badge.closed { background: var(--danger-bg); color: var(--danger); }
.badge--c1, .badge.announcing { background: var(--c1-bg); color: var(--c1-deep); }
.badge--c2 { background: var(--c2-bg); color: var(--c2-deep); }
.badge--c3 { background: var(--c3-bg); color: var(--c3-deep); }
.badge--line { background: transparent; border: 1px solid var(--border); color: var(--ink-2); }
.dday { font-variant-numeric: tabular-nums; font-weight: 600; }

/* 통계/수치 (A-2) */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .num { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.stat .num .unit { font-size: 13px; font-weight: 400; color: var(--ink-2); margin-left: 3px; }
.stat .cap { font-size: 12.5px; color: var(--muted); }

/* 데이터 기준일·출처 고지 */
.data-meta { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.data-meta a { color: var(--ink-2); text-decoration: underline; }
.data-meta .icon { width: 13px; height: 13px; color: var(--muted); }
.ymyl-note {
  font-size: 12.5px; background: var(--c1-bg); border: 1px solid var(--border);
  border-radius: var(--radius-chip); padding: 9px 12px; margin: 12px 0 0; color: var(--ink-2); line-height: 1.6;
}
.snapshot-notice {
  font-size: 13px; background: var(--c1-bg); border: 1px solid var(--border);
  border-radius: var(--radius-chip); padding: 10px 12px; margin: 12px 0; color: var(--ink-2);
}

/* 빈 상태 (데이터 미수집 단지 등) B-3.2 */
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--ink-2);
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
}
.empty-state .icon-chip { margin: 0 auto 12px; }
.empty-state h3 { font-size: 16px; color: var(--ink-1); margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; margin: 0 auto; max-width: 420px; }

/* =========================================================================
   프론트: 히어로 (B-2)
   ========================================================================= */
.hero { background: linear-gradient(180deg, var(--c1-bg), transparent 78%); }
.hero-inner { padding: 34px 22px 30px; border-radius: 16px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500;
  color: var(--c1-deep); background: var(--surface-1); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.hero .pill .icon { width: 15px; height: 15px; color: var(--c1); }
.hero h1 { font-size: 27px; letter-spacing: -.025em; margin-bottom: 8px; font-weight: 500; }
.hero h1 b { color: var(--c1); font-weight: 600; }
.hero .lead { color: var(--ink-2); margin: 0 0 18px; font-size: 15.5px; max-width: 640px; }
.hero-search { display: flex; gap: 8px; max-width: 560px; }
.hero-search .inp {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--surface-1);
  border: 1px solid var(--baseline); border-radius: var(--radius-pill); padding: 0 16px; min-height: var(--tap);
}
.hero-search .inp .icon { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; font: inherit; color: var(--ink-1); min-height: var(--tap); outline: none; }
.hero-search .btn { border-radius: var(--radius-pill); padding: 0 20px; flex: none; }
@media (min-width: 720px) { .hero h1 { font-size: 31px; } }

/* 청약 캘린더 3열 */
.cal-cols { grid-template-columns: 1fr; }
@media (min-width: 720px) { .cal-cols { grid-template-columns: 1fr 1fr 1fr; } }
.cal-col h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 500; }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cal-item { display: block; padding: 12px 14px; min-height: var(--tap); }
.cal-item:hover { text-decoration: none; border-color: var(--c1); }
.cal-item .t { font-weight: 500; color: var(--ink-1); display: block; }
.cal-item .m { font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }

/* 지역 진입 칩 그리드 (A-2) */
.region-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .region-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .region-grid { grid-template-columns: repeat(6, 1fr); } }
.region-cell { text-align: center; padding: 14px 8px; min-height: var(--tap); font-weight: 500; color: var(--ink-1); border-radius: var(--radius-chip); }
.region-cell span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.region-cell:hover { border-color: var(--c1); background: var(--c1-bg); color: var(--c1-deep); text-decoration: none; }
.region-cell:hover span { color: var(--c1-deep); }

/* 주간 신고가 하이라이트 */
.hi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hi-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 13px 15px; align-items: center; }
.hi-row .name { font-weight: 500; }
.hi-row .area { font-size: 13px; color: var(--ink-2); }
.hi-row .price { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; font-size: 16px; }
.hi-row .delta { font-size: 12px; color: var(--ok); display: block; margin-top: 2px; }

/* =========================================================================
   시세 차트 컴포넌트 (SVG + 표 폴백) — c2(시세) 톤
   ========================================================================= */
.e2c-chart { padding: 16px; }
.e2c-chart figure { margin: 0; }
.e2c-chart .chart-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 8px; }
.e2c-chart .chart-head h3 { margin: 0; font-size: 16px; font-weight: 500; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink-2); margin-left: auto; }
.chart-legend .k { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .sw { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-legend .sw.line { background: var(--series-price); }
.chart-legend .sw.rec { width: 10px; height: 10px; background: var(--series-record); transform: rotate(45deg); border-radius: 2px; }
.chart-legend .sw.vol { height: 10px; background: var(--series-volume); }
@media (max-width: 560px) { .chart-legend { width: 100%; margin-left: 0; } }

.chart-svg-holder { position: relative; width: 100%; overflow-x: auto; }
.chart-svg-holder svg { display: block; width: 100%; height: auto; }
.e2c-chart .axis text, .e2c-chart .tick text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.e2c-chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.e2c-chart .axis-line { stroke: var(--baseline); stroke-width: 1; }
.e2c-chart .price-line { fill: none; stroke: var(--series-price); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.e2c-chart .price-dot { fill: var(--series-price); }
.e2c-chart .rec-marker { fill: var(--series-record); stroke: var(--surface-1); stroke-width: 1.5; }
.e2c-chart .rec-label { fill: var(--series-record); font-size: 11px; font-weight: 500; }
.e2c-chart .vol-bar { fill: var(--series-volume); }
.e2c-chart .crosshair { stroke: var(--baseline); stroke-width: 1; stroke-dasharray: 3 3; }

.chart-tooltip {
  position: absolute; pointer-events: none; background: var(--ink-1); color: var(--surface-1);
  font-size: 12px; padding: 6px 8px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -120%);
  opacity: 0; transition: opacity .08s; z-index: 3; font-variant-numeric: tabular-nums;
}
.chart-tooltip.on { opacity: 1; }

/* 표 폴백 — 항상 렌더(크롤러블·접근성) */
.chart-table-wrap { overflow-x: auto; margin-top: 14px; }
.chart-table { font-size: 13px; }
.chart-table caption { text-align: left; color: var(--ink-2); font-size: 12.5px; margin-bottom: 6px; }
.chart-table th, .chart-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }
.chart-table thead th { color: var(--ink-2); font-weight: 500; background: var(--plane); border-bottom: 1px solid var(--baseline); }
.chart-table tr.is-record td { font-weight: 500; }
.chart-table .tag-record { color: var(--series-record); font-size: 11px; font-weight: 500; }
.chart-table tr.is-cancel td { color: var(--cancel); text-decoration: line-through; }
.chart-table .tag-cancel { color: var(--cancel); font-size: 11px; text-decoration: none; display: inline-block; }
.js-on details.chart-table-details > summary { cursor: pointer; color: var(--c1); font-size: 13px; padding: 6px 0; min-height: var(--tap); display: flex; align-items: center; }

/* =========================================================================
   공고 상세 / 단지 시세 레이아웃
   ========================================================================= */
.detail-head { padding: 22px 0 6px; }
.detail-head h1 { font-size: 23px; margin-bottom: 8px; }
.detail-head .meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.detail-grid { grid-template-columns: 1fr; }
@media (min-width: 880px) { .detail-grid { grid-template-columns: minmax(0,1fr) 300px; align-items: start; } }
.spec-table th, .spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table thead th { background: var(--plane); }
.spec-table th { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.spec-table td { font-variant-numeric: tabular-nums; }

/* 일정 타임라인 */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--grid); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-1); border: 2px solid var(--baseline); }
.timeline li.done::before { background: var(--c1); border-color: var(--c1); }
.timeline li.changed::before { background: var(--c3); border-color: var(--c3); }
.timeline .dt { font-weight: 500; font-variant-numeric: tabular-nums; }
.timeline .lbl { color: var(--ink-2); font-size: 14px; }
.timeline .chg { color: var(--c3-deep); font-size: 12.5px; margin-top: 2px; }

/* 지도 (lazy iframe/이미지) */
.map-embed { position: relative; aspect-ratio: 16 / 10; background: var(--grid); border-radius: var(--radius-chip); overflow: hidden; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed .map-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }

/* 사이드/관련 링크 */
.aside-box { padding: 15px 16px; }
.aside-box h3 { font-size: 13.5px; color: var(--ink-2); font-weight: 500; margin-bottom: 8px; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { display: block; padding: 11px 0; min-height: var(--tap); }

.noindex-note { font-size: 12.5px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius-chip); padding: 8px 12px; margin-top: 12px; }

/* 본문(매거진·리포트 자유 서술형) */
.entry-content { font-size: 16px; line-height: 1.75; }
.entry-content h2 { font-size: 20px; margin: 1.4em 0 .5em; }
.entry-content h3 { font-size: 17px; margin: 1.2em 0 .4em; }
.entry-content p { margin: 0 0 1em; }
.entry-content a { text-decoration: underline; }
.entry-content img { border-radius: var(--radius-chip); margin: 1em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }

/* =========================================================================
   푸터
   ========================================================================= */
.site-footer { background: var(--surface-1); border-top: 1px solid var(--border); margin-top: 32px; padding: 26px 0; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; padding: 0; }
.footer-nav a { color: var(--ink-2); font-weight: 500; }
.footer-source { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.footer-copy { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.7; }

/* 유틸 */
.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}
.center{text-align:center}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 18px; border-radius: var(--radius-chip); background: var(--c1); color: var(--brand-ink); font-weight: 500; border: 0; cursor: pointer; font-size: 15px; font-family: inherit; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn .icon { color: currentColor; width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--c1); border: 1px solid var(--border); }

/* 도구 폼 */
.tool-select { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px){ .tool-select { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field select, .field input { width: 100%; min-height: var(--tap); padding: 0 12px; border: 1px solid var(--baseline); border-radius: var(--radius-chip); background: var(--surface-1); color: var(--ink-1); font-size: 15px; font-family: inherit; }

/* 페이지네이션 */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-chip); color: var(--ink-2); }
.pagination .page-numbers.current { background: var(--c1); color: var(--brand-ink); border-color: var(--c1); }

/* ===== READABILITY LAYER v1 ===== */
/* 본문 컨테이너: .entry-content / accent: 기존 --c1 (A-0 토큰 매핑 규칙) */
.entry-content{
  max-width:720px;margin-left:auto;margin-right:auto;
  font-size:17px;line-height:1.8;
  word-break:keep-all;overflow-wrap:break-word;
}
.entry-content p{margin:0 0 1.5em}
.entry-content h2{
  font-size:1.45em;font-weight:800;line-height:1.4;
  margin:2.4em 0 .9em;padding-bottom:.45em;
  border-bottom:2px solid var(--c1);
}
.entry-content h3{
  font-size:1.15em;font-weight:700;margin:1.8em 0 .7em;
  padding-left:.6em;border-left:4px solid var(--c1);
}
.entry-content a{color:var(--c1);text-decoration:underline;text-underline-offset:3px}
.entry-content ul,.entry-content ol{padding-left:1.4em;margin:0 0 1.5em}
.entry-content li{margin:.45em 0}
.entry-content li::marker{color:var(--c1)}
.entry-content blockquote{
  margin:1.5em 0;padding:1em 1.2em;border-left:4px solid var(--c1);
  background:var(--c1-bg);border-radius:0 10px 10px 0;
}

/* 형광펜 하이라이트 */
.entry-content mark{background:#fff3d9;padding:2px 6px;border-radius:5px}
.entry-content mark.hl-blue{background:#e5f0ff}
.entry-content mark.hl-green{background:#e1f5e6}

/* 표 */
.entry-content .table-wrap{overflow-x:auto;margin:1.5em 0;-webkit-overflow-scrolling:touch}
.entry-content table{width:100%;border-collapse:collapse;font-size:.94em;line-height:1.6}
.entry-content th{background:var(--c1-bg);font-weight:700;text-align:left}
.entry-content th,.entry-content td{padding:10px 12px;border:1px solid var(--border)}
.entry-content tr:nth-child(even) td{background:var(--plane,#fafafa)}

/* 이미지·캡션 */
.entry-content figure{margin:1.8em 0}
.entry-content figure img,.entry-content img{max-width:100%;height:auto;border-radius:12px}
.entry-content figcaption{margin-top:.6em;font-size:.85em;color:var(--muted);text-align:center}

/* FAQ(details/summary)가 본문에 있는 경우 */
.entry-content details{border:1px solid var(--border);border-radius:10px;padding:.9em 1.1em;margin:.6em 0}
.entry-content details summary{font-weight:700;cursor:pointer;list-style:none}
.entry-content details summary::before{content:"Q. ";color:var(--c1)}
.entry-content details[open]{background:var(--plane,#fafafa)}

/* 목차 */
.rl-toc{border:1px solid var(--border);border-radius:12px;background:var(--plane,#fafafa);padding:1em 1.2em;margin:0 0 2em;font-size:.93em}
.rl-toc-title{font-weight:800;margin-bottom:.5em}
.rl-toc ol{margin:0;padding-left:1.3em}
.rl-toc li{margin:.3em 0}
.rl-toc a{text-decoration:none;color:inherit}
.rl-toc a:hover{color:var(--c1);text-decoration:underline}

/* 읽기 진행바 */
.rl-progress{position:fixed;top:0;left:0;height:3px;width:0;background:var(--c1);z-index:9999}

/* 관련글 카드 */
.rl-related{max-width:720px;margin:3em auto 0;padding-top:1.6em;border-top:1px solid var(--border)}
.rl-related-title{font-size:1.15rem;font-weight:800;margin:0 0 .9em}
.rl-related-grid{list-style:none;margin:0;padding:0;display:grid;gap:12px}
@media (min-width:600px){.rl-related-grid{grid-template-columns:repeat(3,1fr)}}
.rl-related-card{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.rl-related-card a{display:block;color:var(--ink-1);text-decoration:none}
.rl-related-card img{width:100%;height:120px;object-fit:cover;display:block}
.rl-related-card .rl-related-name{display:block;padding:10px 12px;font-size:.92rem;line-height:1.45;font-weight:500}
.rl-related-card a:hover .rl-related-name{color:var(--c1-deep)}

/* =========================================================================
   홈 전면 재설계 (DESIGN.md A부·B부) — 2026-08-04
   토큰 규칙: 기존 변수명 유지, 역할만 매핑(§1-5).
     --c1 주색 / --c2 보조 / --c3 강조 / --plane 페이지 / --surface-1 카드
   ★ 밝은색 하드코딩 금지 — 이 테마는 다크모드를 지원한다(B-0-1).
     새 색이 필요하면 color-mix(in srgb, var(--토큰) …)로 파생시킨다.
   ========================================================================= */

:root{
  /* 보조 팔레트 — 전부 기존 토큰에서 파생(다크모드 자동 추종) */
  --surface-2: color-mix(in srgb, var(--plane) 92%, var(--ink-1) 8%);
  --hairline: color-mix(in srgb, var(--border) 100%, transparent);
  --c1-soft: color-mix(in srgb, var(--c1) 12%, var(--surface-1));
  --c2-soft: color-mix(in srgb, var(--c2) 12%, var(--surface-1));
  --c3-soft: color-mix(in srgb, var(--c3) 14%, var(--surface-1));
  --eyebrow-c: color-mix(in srgb, var(--c1) 72%, var(--muted));
  --hd-h: 60px;      /* 헤더 높이 — CLS 0 위해 고정 */
  --util-h: 44px;    /* 유틸리티 바/상단 CTA 터치 영역 44px */
  --mbar-h: 56px;    /* 모바일 하단 바 */
}

/* ── 유틸리티 바 ─────────────────────────────────────────────── */
.utilbar{background:var(--c1-deep);color:#fff;font-size:12.5px;line-height:1;min-height:var(--util-h)}
@media (prefers-color-scheme:dark){.utilbar{background:color-mix(in srgb,var(--c1) 22%,#000)}}
.utilbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:var(--util-h)}
.utilbar-src{margin:0;display:flex;align-items:center;gap:6px;opacity:.94;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ub-dot{width:6px;height:6px;border-radius:50%;background:var(--c2);flex:none}
.ub-sep{opacity:.5}
.ub-fresh{opacity:.86}
.utilbar-cta{color:#fff;white-space:nowrap;font-weight:500;opacity:.96}
.utilbar-cta:hover{text-decoration:underline}
@media (max-width:640px){.ub-fresh,.ub-sep{display:none}}

/* ── 헤더 ────────────────────────────────────────────────────── */
.site-header{position:sticky;top:0;z-index:120;background:var(--surface-1);
  border-bottom:1px solid var(--border)}
/* 메가 패널의 기준 상자 — 이게 없으면 .mnav-i(항목) 기준으로 잡혀 화면 밖으로 넘친다 */
.mnav-i.has-mega{position:static}
.sh-inner{display:flex;align-items:center;gap:14px;min-height:var(--hd-h)}
.brand{display:flex;align-items:center;gap:9px;flex:none;color:var(--ink-1);text-decoration:none}
.brand:hover{text-decoration:none}
.brand-mark{flex:none;border-radius:7px}
.brand-txt{display:flex;flex-direction:column;line-height:1.12}
.brand-en{font-size:16px;font-weight:700;letter-spacing:-.02em}
.brand-en b{color:var(--c2);font-weight:700}
.brand-ko{font-size:11px;color:var(--muted);letter-spacing:.02em}

.nav-cb{position:absolute;opacity:0;pointer-events:none;width:0;height:0}
.nav-burger{display:none;margin-left:auto;width:var(--tap);height:var(--tap);
  align-items:center;justify-content:center;cursor:pointer;color:var(--ink-1);border-radius:9px}
.nav-burger:hover{background:var(--surface-2)}

.mnav{margin-left:auto}
/* 메뉴 폭 예약 — 이모지 폴백 글리프가 늦게 확정되며 .mnav 폭이 변하고,
   margin-left:auto 라 그 변화가 x 이동으로 전이돼 NAV 가 시프트 소스로 잡혔다(1280px 실측).
   안정 상태 630.17px 기준으로 하한을 잡아 레이아웃 확정 전부터 같은 자리를 차지하게 한다.
   ※ 900px 이하는 오프캔버스 드로어(margin:0, position:fixed)라 적용하지 않는다. */
@media (min-width:901px){
  /* .mnav 뿐 아니라 실제 폭을 만드는 flex 컨테이너(.mnav-l)에도 같은 하한을 건다.
     .mnav 에만 걸면 초기 프레임에서 .mnav-l 이 좁게(≈232px) 잡혔다가 확장되며
     항목 x 가 947.9→533.8 로 이동해 LI.mnav-i 가 시프트 소스로 남는다(실측). */
  .mnav,.mnav-l{min-width:640px}  /* 630.17 + 여유 ≈10px (항목 추가·라벨 증가 대비) */
  /* 항목이 순차적으로 자리를 잡는 동안에도 오른쪽 끝을 고정해 둔다.
     flex-end 로 정렬하면 항목이 늘어도 우측 기준선이 그대로라 왼쪽으로만 채워지고,
     이미 그려진 항목의 x 가 바뀌지 않는다(= 시프트 없음). */
  .mnav-l{justify-content:flex-end;margin-left:auto}
  /* has-mega 항목 개별 폭 예약 — 컨테이너 폭만 잡아도 첫 페인트에서 이 3개가
     폭 0 으로 그려졌다가 라벨 폭을 얻으며 이미 그려진 항목을 309.42px 밀어냈다
     (= has-mega 3개 폭 합 316.77 근사). 실측 안정폭을 항목별로 하한으로 박아
     첫 페인트부터 같은 자리를 차지하게 한다.
     자식 선택자(> li)로만 좁힌다 — 자손으로 걸면 메가패널 안 li 까지 먹는다. */
  /* 풀 헤더(6항목) 전용 — 축소 헤더(.sh-compact)는 3항목이고 폭 구성이 달라
     (116.02/102.67/84.73) 같은 nth-child 를 쓰면 2·3번이 어긋난다. */
  .site-header:not(.sh-compact) .mnav-l > li:nth-child(1){min-width:116.02px}  /* 📅 청약 캘린더 */
  .site-header:not(.sh-compact) .mnav-l > li:nth-child(2){min-width:98.08px}   /* 📋 분양공고 */
  .site-header:not(.sh-compact) .mnav-l > li:nth-child(3){min-width:102.67px}  /* 🏢 단지 시세 */
  .site-header:not(.sh-compact) .mnav-l > li:nth-child(4){min-width:116.02px}  /* 📘 청약 가이드 */
  .site-header:not(.sh-compact) .mnav-l > li:nth-child(5){min-width:102.67px}  /* 🚄 교통·노선 */
  .site-header:not(.sh-compact) .mnav-l > li:nth-child(6){min-width:84.73px}   /* 📰 매거진 */
  /* 축소 헤더도 같은 원리로 예약한다(3항목 실측). */
  .sh-compact .mnav-l > li:nth-child(1){min-width:116.02px}  /* 📅 청약 캘린더 */
  .sh-compact .mnav-l > li:nth-child(2){min-width:102.67px}  /* 🚄 교통·노선 */
  .sh-compact .mnav-l > li:nth-child(3){min-width:84.73px}   /* 📰 매거진 */
  .sh-compact .mnav,.sh-compact .mnav-l{min-width:310px}     /* 303.42+gap+여유 */
  /* has-mega 3개만 잡으면 뒤쪽 일반 항목(교통·노선·매거진)이 늦게 자리를 잡아
     여전히 309.42px 밀렸다 — 실측상 빠진 것은 idx 3·4·5 였고 그 폭 합 + gap 이
     정확히 309.42 다. 그래서 6개 전부에 하한을 박는다.
     라벨도 같은 하한을 가져야 li 안에서 폭 0 으로 시작하지 않는다. */
  .mnav-l > li > .mnav-a{min-width:inherit}
  /* 메가 패널 렌더 분리 — 폭 예약을 6항목 전부에 걸어도 시프트가 남았다.
     실측상 시프트 순간에는 뒤쪽 li 가 아직 DOM/레이아웃에 없다(2개만 존재,
     이동량 414.1 = idx2~5 폭 합 + gap). nav 19.7KB 중 대부분이 .mega 서브트리라
     패널 파싱이 항목 완성을 지연시킨다.
     화면 밖 패널의 렌더를 건너뛰게 해 항목이 먼저 자리를 잡게 한다.
     hover/focus 로 열릴 때는 visible 로 되돌려 동작을 유지한다. */
  .mnav-i.has-mega > .mega{content-visibility:auto;contain-intrinsic-size:0 320px}
  .mnav-i.has-mega:hover > .mega,
  .mnav-i.has-mega:focus-within > .mega{content-visibility:visible}
}
.mnav-l{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:2px}
/* 라벨 이모지 폭 예약 — 폴백 폰트 해석 전후로 글리프 폭이 바뀌지 않게 고정한다.
   실측 자연폭 19.34px(전 6종 동일). Range 측정값 18.09px 는 사이드베어링이 빠진
   값이라 그대로 쓰면 라벨이 좁아진다.
   .mnav-a 가 display:flex 라 이모지와 라벨 사이 공백 텍스트가 접혀 사라지므로,
   그 몫(실측 3.38px)을 margin-right 로 되돌려 개편 전 폭을 그대로 지킨다. */
.mnav-a .mnav-ic{width:19.34px;flex:none;text-align:center;margin-right:3.38px;
  font-style:normal;line-height:1}
.mnav-i{position:relative}
.mnav-a{display:flex;align-items:center;height:var(--hd-h);padding:0 11px;
  font-size:14.5px;font-weight:500;color:var(--ink-1);white-space:nowrap;border-radius:8px}
.mnav-a:hover{color:var(--c1);text-decoration:none;background:var(--c1-soft)}

/* 메가 패널 — CSS only (hover/focus-within).
   ★ 화면 밖 넘침 방지: 좌우를 뷰포트에 고정하고 내부를 wrap 으로 가운데 정렬한다. */
/* ★ 패널을 nav 항목이 아니라 헤더(=뷰포트 폭) 기준으로 붙인다.
   항목 기준으로 100vw 를 주면 항목 위치만큼 오른쪽으로 밀려 화면 밖으로 넘친다
   (실측: 가로 스크롤 275px 발생). .site-header 를 기준 컨테이너로 삼는다. */
.mega{position:absolute;top:var(--hd-h);left:0;right:0;
  background:var(--surface-1);border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);box-shadow:0 12px 24px rgba(0,0,0,.10);
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease}
@media (prefers-color-scheme:dark){.mega{box-shadow:0 12px 24px rgba(0,0,0,.5)}}
.mnav-i.has-mega:hover>.mega,
.mnav-i.has-mega:focus-within>.mega{opacity:1;visibility:visible;pointer-events:auto}
.mega-in{padding:18px 16px 20px}
.mega-t{margin:0 0 12px;font-size:12px;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:var(--eyebrow-c)}
.mega-grid{display:grid;gap:14px 18px;grid-template-columns:repeat(6,1fr)}
@media (max-width:1080px){.mega-grid{grid-template-columns:repeat(4,1fr)}}
.mega-col{min-width:0}
.mega-h{display:flex;align-items:baseline;gap:6px;font-size:13.5px;font-weight:700;
  color:var(--ink-1);padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid var(--border)}
.mega-h:hover{color:var(--c1);text-decoration:none}
.mega-n{font-size:11px;font-weight:500;color:var(--muted);margin-left:auto}
.mega-sub{list-style:none;margin:0;padding:0}
.mega-sub li{margin:0}
.mega-sub a{display:block;font-size:12.5px;color:var(--ink-2);padding:2.5px 0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mega-sub a:hover{color:var(--c1)}
.mega-note{margin:4px 0 0;font-size:11px;color:var(--c3)}
.mega-all{display:inline-block;margin-top:14px;font-size:13px;font-weight:600;color:var(--c1)}
.mega-narrow .mega-grid{grid-template-columns:repeat(4,1fr)}
.mega-hub-a{display:block;font-size:13px;color:var(--ink-2);padding:7px 10px;
  border:1px solid var(--border);border-radius:9px;background:var(--plane)}
.mega-hub-a:hover{color:var(--c1);border-color:var(--c1);text-decoration:none}

/* 모바일 인기 키워드 스트립 */
.kwstrip{border-top:1px solid var(--border);background:var(--plane);overflow:hidden}
.kwstrip-in{display:flex;gap:7px;padding:9px 16px;overflow-x:auto;
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
.kwstrip-in::-webkit-scrollbar{display:none}
.kw{flex:none;font-size:12.5px;padding:5px 11px;border-radius:var(--radius-pill);
  background:var(--surface-1);border:1px solid var(--border);color:var(--ink-2);white-space:nowrap}
.kw:hover{color:var(--c1);border-color:var(--c1);text-decoration:none}
@media (min-width:901px){.kwstrip{display:none}}

/* 모바일 헤더 */
@media (max-width:900px){
  .nav-burger{display:flex}
  .mnav{position:fixed;top:calc(var(--util-h) + var(--hd-h));left:0;right:0;bottom:0;
    background:var(--surface-1);overflow-y:auto;padding:8px 0 80px;
    transform:translateX(-100%);transition:transform .18s ease;z-index:130;margin:0}
  .nav-cb:checked~.mnav{transform:translateX(0)}
  .mnav-l{flex-direction:column;align-items:stretch;gap:0}
  .mnav-a{height:auto;padding:14px 18px;border-bottom:1px solid var(--border);border-radius:0}
  /* 모바일에서는 메가 패널을 흐름 안에 펼친다(화면 밖 넘침 원천 차단) */
  .mega{position:static;transform:none;width:auto;max-width:none;opacity:1;visibility:visible;
    pointer-events:auto;box-shadow:none;border:0;background:var(--plane);display:none}
  .mnav-i.has-mega:hover>.mega,.mnav-i.has-mega:focus-within>.mega{display:block}
  .mega-in{padding:12px 18px 16px}
  .mega-grid{grid-template-columns:repeat(2,1fr)}
  .mega-sub{display:none}
}

/* ── 섹션 공통 ───────────────────────────────────────────────── */
.hs{padding:44px 0;background:var(--surface-1)}
.hs-alt{background:var(--plane)}
.hs-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px}
.eyebrow{margin:0 0 6px;font-size:12px;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--eyebrow-c)}
.hs-title{margin:0;font-size:25px;font-weight:700;letter-spacing:-.02em}
.hs-lead{margin:7px 0 0;font-size:14px;color:var(--ink-2)}
.hs-more{flex:none;font-size:13.5px;font-weight:600;color:var(--c1);white-space:nowrap}
@media (max-width:600px){
  .hs{padding:32px 0}
  .hs-title{font-size:21px}
  .hs-head{flex-direction:column;align-items:flex-start;gap:8px}
}

/* ── ① 히어로 ───────────────────────────────────────────────── */
.hero{background:var(--surface-1);padding:40px 0 44px;border-bottom:1px solid var(--border)}
.hero-in{display:grid;grid-template-columns:1fr 480px;gap:34px;align-items:center}
.hero-badge{display:inline-block;margin:0 0 14px;padding:6px 13px;font-size:12.5px;font-weight:600;
  color:var(--c1);background:var(--c1-soft);border-radius:var(--radius-pill)}
.hero-h1{margin:0 0 14px;font-size:37px;line-height:1.24;font-weight:800;letter-spacing:-.033em}
.hero-sub{margin:0 0 22px;font-size:15.5px;line-height:1.7;color:var(--ink-2);max-width:34em}
.hero-cta{display:flex;gap:10px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:var(--tap);
  padding:0 20px;border-radius:10px;font-size:14.5px;font-weight:600}
.btn-1{background:var(--c1);color:var(--brand-ink)}
.btn-1:hover{background:var(--c1-deep);text-decoration:none}
@media (prefers-color-scheme:dark){.btn-1:hover{background:color-mix(in srgb,var(--c1) 80%,#fff)}}
.btn-2{background:var(--surface-1);color:var(--c1);border:1px solid var(--c1)}
.btn-2:hover{background:var(--c1-soft);text-decoration:none}
.hero-vis{min-width:0}
.hero-svg{width:100%;height:auto;border-radius:14px;display:block}
@media (max-width:900px){
  .hero-in{grid-template-columns:1fr;gap:24px}
  .hero-h1{font-size:29px}
  .hero-vis{order:-1}
}
@media (max-width:600px){
  .hero{padding:26px 0 30px}
  .hero-h1{font-size:25px}
  .hero-sub{font-size:14.5px}
  .hero-cta .btn{flex:1 1 auto}
}

/* ── ② 접수 중 D-day 스트립 ─────────────────────────────────── */
.hs-open{background:var(--plane);padding:32px 0}
.open-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;
  min-height:150px} /* 높이 예약 — CLS 0 */
.open-card{display:flex;flex-direction:column;gap:5px;padding:15px 16px;
  background:var(--surface-1);border:1px solid var(--border);border-left:3px solid var(--c3);
  border-radius:var(--radius);color:var(--ink-1)}
.open-card:hover{text-decoration:none;border-color:var(--c3);
  box-shadow:0 3px 10px rgba(0,0,0,.07)}
.open-badge{display:inline-block;align-self:flex-start;font-size:11.5px;font-weight:700;
  padding:3px 9px;border-radius:var(--radius-pill)}
.ob-now{background:var(--ok-bg);color:var(--ok)}
.ob-soon{background:var(--c3-soft);color:var(--c3)}
.open-dday{font-size:19px;font-weight:800;color:var(--c3);letter-spacing:-.02em}
.open-title{font-size:14.5px;font-weight:600;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.open-meta{font-size:12.5px;color:var(--ink-2)}
.open-date{font-size:12px;color:var(--muted)}
@media (max-width:820px){.open-strip{grid-template-columns:1fr;min-height:0}}

/* ── ③ 숫자 스트립 ─────────────────────────────────────────── */
.numgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.numcell{padding:20px 18px;background:var(--surface-1);border:1px solid var(--border);
  border-radius:var(--radius);text-align:center}
.num-v{margin:0;font-size:31px;font-weight:800;letter-spacing:-.035em;color:var(--c1);line-height:1.1}
.num-u{font-size:14px;font-weight:600;margin-left:2px;color:var(--ink-2)}
.num-l{margin:6px 0 2px;font-size:14px;font-weight:600}
.num-s{margin:0;font-size:11.5px;color:var(--muted)}
.num-asof{margin:14px 0 0;font-size:12.5px;color:var(--muted);text-align:right}
@media (max-width:760px){
  .numgrid{grid-template-columns:repeat(2,1fr)}
  .num-v{font-size:25px}
  .num-asof{text-align:left}
}

/* ── ④ 빠른 찾기 ───────────────────────────────────────────── */
.qf-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}
.qf-tool{display:flex;align-items:center;gap:12px;padding:15px 16px;background:var(--plane);
  border:1px solid var(--border);border-radius:var(--radius);color:var(--ink-1)}
.hs-alt .qf-tool{background:var(--surface-1)}
.qf-tool:hover{border-color:var(--c1);text-decoration:none}
.qf-ic{font-size:20px;flex:none}
.qf-tool b{display:block;font-size:14.5px;font-weight:600}
.qf-tool i{display:block;font-size:12px;font-style:normal;color:var(--muted);margin-top:2px}
@media (max-width:760px){.qf-tools{grid-template-columns:1fr}}

.pills{display:flex;flex-wrap:wrap;gap:8px}
.pill{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;font-size:13.5px;
  background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius-pill);
  color:var(--ink-1);min-height:36px}
.hs-alt .pill{background:var(--surface-1)}
.pill:hover{border-color:var(--c1);color:var(--c1);text-decoration:none;background:var(--c1-soft)}
.pill-n{font-size:11.5px;color:var(--muted)}
.pill:hover .pill-n{color:var(--c1)}

/* ── ⑤ 지역 그리드 ─────────────────────────────────────────── */
.areagrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.areacard{padding:16px;background:var(--surface-1);border:1px solid var(--border);
  border-radius:var(--radius);display:flex;flex-direction:column}
.area-h{display:block;font-size:16px;font-weight:700;color:var(--ink-1);margin-bottom:4px}
.area-h:hover{color:var(--c1);text-decoration:none}
.area-n{margin:0 0 10px;font-size:12.5px;color:var(--ink-2)}
.area-sep{color:var(--muted)}
.area-pills{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}
.apill{font-size:11.5px;padding:3px 9px;border-radius:var(--radius-pill);
  background:var(--plane);border:1px solid var(--border);color:var(--ink-2)}
.apill:hover{color:var(--c1);border-color:var(--c1);text-decoration:none}
.area-nodata{margin:0 0 10px;font-size:11.5px;line-height:1.5;color:var(--c3);
  background:var(--c3-soft);border-radius:8px;padding:7px 9px}
.area-nodata span{color:var(--ink-2);display:block;font-size:11px}
.area-all{margin-top:auto;font-size:12.5px;font-weight:600;color:var(--c1)}
@media (max-width:980px){.areagrid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){.areagrid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:420px){.areagrid{grid-template-columns:1fr}}

/* ── ⑥ 유형 카드 ───────────────────────────────────────────── */
.cardgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.tcard{padding:20px 18px;background:var(--plane);border:1px solid var(--border);
  border-radius:var(--radius);display:flex;flex-direction:column}
.hs-alt .tcard{background:var(--surface-1)}
.tcard-ic{width:46px;height:46px;border-radius:11px;background:var(--c1-soft);color:var(--c1);
  display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.tcard-badge{margin:0 0 5px;font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--eyebrow-c)}
.tcard-t{margin:0 0 4px;font-size:17px;font-weight:700}
.tcard-n{margin:0 0 8px;font-size:13px;color:var(--c1);font-weight:600}
.tcard-d{margin:0 0 12px;font-size:13px;line-height:1.6;color:var(--ink-2)}
.tcard-pills{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}
.tpill{font-size:11px;padding:3px 8px;border-radius:var(--radius-pill);
  background:var(--surface-1);border:1px solid var(--border);color:var(--muted)}
.tcard-a{margin-top:auto;font-size:13px;font-weight:600;color:var(--c1)}
@media (max-width:900px){.cardgrid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.cardgrid{grid-template-columns:1fr}}

/* ── ⑦ STEP ────────────────────────────────────────────────── */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.step{position:relative;padding:20px 18px;background:var(--surface-1);
  border:1px solid var(--border);border-radius:var(--radius)}
.step-n{position:absolute;top:14px;right:16px;font-size:22px;font-weight:800;
  color:var(--c1);opacity:.22;letter-spacing:-.04em}
.step-ic{display:flex;align-items:center;justify-content:center;width:40px;height:40px;
  border-radius:10px;background:var(--c2-soft);color:var(--c2);margin-bottom:11px}
.step-t{margin:0 0 5px;font-size:15.5px;font-weight:700}
.step-d{margin:0;font-size:13px;line-height:1.6;color:var(--ink-2)}
.steps-note{margin:16px 0 0;font-size:13px;color:var(--ink-2);padding:11px 14px;
  background:var(--surface-1);border-left:3px solid var(--c1);border-radius:8px}
@media (max-width:900px){.steps{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.steps{grid-template-columns:1fr}}

/* ── ⑧ 공식 정보 ───────────────────────────────────────────── */
.offgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.offcard{display:flex;flex-direction:column;gap:4px;padding:17px 16px;background:var(--plane);
  border:1px solid var(--border);border-radius:var(--radius);color:var(--ink-1)}
.hs-alt .offcard{background:var(--surface-1)}
.offcard:hover{border-color:var(--c1);text-decoration:none}
.off-org{font-size:11.5px;color:var(--muted)}
.off-t{font-size:15px;font-weight:700}
.off-d{font-size:12.5px;line-height:1.55;color:var(--ink-2);margin-bottom:6px}
.off-go{margin-top:auto;font-size:12.5px;font-weight:600;color:var(--c1)}
@media (max-width:900px){.offgrid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.offgrid{grid-template-columns:1fr}}

/* ── ⑨ 왜 ──────────────────────────────────────────────────── */
.whygrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.whycard{padding:18px 17px;background:var(--surface-1);border:1px solid var(--border);
  border-radius:var(--radius);border-top:3px solid var(--c2)}
.why-t{margin:0 0 6px;font-size:15.5px;font-weight:700}
.why-d{margin:0;font-size:13px;line-height:1.65;color:var(--ink-2)}
@media (max-width:900px){.whygrid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.whygrid{grid-template-columns:1fr}}

/* ── ⑩ 매거진 ──────────────────────────────────────────────── */
.magrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.mcard{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column}
.mcard-th{display:block;aspect-ratio:16/10;background:var(--surface-2);overflow:hidden}
.mcard-img{width:100%;height:100%;object-fit:cover;display:block}
.mcard-b{padding:14px 15px 16px;display:flex;flex-direction:column;flex:1}
.mcard-cat{display:inline-block;align-self:flex-start;font-size:11px;font-weight:700;
  padding:3px 9px;border-radius:var(--radius-pill);background:var(--c2-soft);color:var(--c2);margin-bottom:8px}
.mcard-t{margin:0 0 7px;font-size:16px;font-weight:600;line-height:1.45}
.mcard-t a{color:var(--ink-1)}
.mcard-t a:hover{color:var(--c1);text-decoration:none}
.mcard-x{margin:0 0 10px;font-size:13px;line-height:1.6;color:var(--ink-2);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mcard-m{margin:auto 0 0;font-size:11.5px;color:var(--muted)}
@media (max-width:900px){.magrid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.magrid{grid-template-columns:1fr}}

/* ── ⑪ 가이드 ──────────────────────────────────────────────── */
.gugrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.gucard{display:flex;align-items:center;gap:11px;padding:15px 16px;background:var(--surface-1);
  border:1px solid var(--border);border-radius:var(--radius);color:var(--ink-1);min-height:56px}
.gucard:hover{border-color:var(--c1);text-decoration:none;background:var(--c1-soft)}
.gu-ic{font-size:17px;flex:none}
.gu-t{font-size:14.5px;font-weight:600;line-height:1.4}
.gu-go{margin-left:auto;color:var(--c1);flex:none}
@media (max-width:900px){.gugrid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.gugrid{grid-template-columns:1fr}}

/* ── ⑬ FAQ ─────────────────────────────────────────────────── */
.faq{max-width:820px}
.faq-i{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);
  margin-bottom:9px;overflow:hidden}
.faq-q{padding:15px 18px;font-size:15px;font-weight:600;cursor:pointer;list-style:none;
  display:flex;align-items:center;gap:10px;min-height:var(--tap)}
.faq-q::-webkit-details-marker{display:none}
.faq-q::before{content:"Q";flex:none;width:22px;height:22px;border-radius:6px;
  background:var(--c1-soft);color:var(--c1);font-size:12px;font-weight:800;
  display:flex;align-items:center;justify-content:center}
.faq-q::after{content:"+";margin-left:auto;font-size:19px;color:var(--muted);font-weight:400}
.faq-i[open] .faq-q::after{content:"−"}
.faq-a{padding:0 18px 17px 50px;font-size:14px;line-height:1.75;color:var(--ink-2)}
.faq-a a{color:var(--c1);text-decoration:underline;text-underline-offset:3px}
.faq-a b{font-weight:600;color:var(--ink-1)}
@media (max-width:520px){.faq-a{padding-left:18px}}

/* ── 메가 푸터 ─────────────────────────────────────────────── */
.site-footer{background:var(--c1-deep);color:color-mix(in srgb,#fff 88%,var(--c1));
  margin-top:44px;padding:36px 0 0}
@media (prefers-color-scheme:dark){
  .site-footer{background:color-mix(in srgb,var(--c1) 18%,#000);color:var(--ink-2)}
}
.fgrid{display:grid;grid-template-columns:1.6fr 1.2fr 1fr 1.2fr 1.2fr 1fr;gap:24px 20px;
  padding-bottom:28px}
.fcol{min-width:0}
.fcol-h{margin:0 0 11px;font-size:12.5px;font-weight:700;letter-spacing:.05em;color:#fff}
@media (prefers-color-scheme:dark){.fcol-h{color:var(--ink-1)}}
.f-brand{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:15px;font-weight:700;color:#fff}
@media (prefers-color-scheme:dark){.f-brand{color:var(--ink-1)}}
.f-desc,.f-src,.f-fresh{margin:0 0 8px;font-size:12.5px;line-height:1.65;opacity:.82}
.f-fresh{opacity:.7}
.flist{list-style:none;margin:0;padding:0}
.flist li{margin:0 0 6px;font-size:13px;line-height:1.5}
.flist a{color:inherit;opacity:.86}
.flist a:hover{opacity:1;color:#fff;text-decoration:underline}
@media (prefers-color-scheme:dark){.flist a:hover{color:var(--ink-1)}}
.f-n{font-size:11px;opacity:.62}
.f-sub{display:block;font-size:11px;opacity:.58;line-height:1.5;margin-top:1px}
.fbar{border-top:1px solid rgba(255,255,255,.14);padding:16px 0 20px}
@media (prefers-color-scheme:dark){.fbar{border-top-color:var(--border)}}
.footer-copy{margin:0;font-size:11.5px;line-height:1.7;opacity:.7}
.sf-compact{padding-top:26px}
.sf-compact .footer-nav{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-wrap:wrap;gap:16px}
.sf-compact .footer-nav a{color:inherit;font-size:13px;opacity:.88}
.sf-compact .footer-source{margin:0 0 14px;font-size:12.5px;opacity:.78;line-height:1.6}
@media (max-width:1080px){.fgrid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:680px){.fgrid{grid-template-columns:repeat(2,1fr);gap:20px 16px}}
@media (max-width:420px){.fgrid{grid-template-columns:1fr}}

/* ── 모바일 하단 고정 바 ───────────────────────────────────── */
.mbar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:110;height:var(--mbar-h);
  background:var(--surface-1);border-top:1px solid var(--border)}
.mbar-a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;font-size:11.5px;font-weight:600;color:var(--ink-1)}
.mbar-a span{font-size:17px;line-height:1}
.mbar-a:hover{text-decoration:none;color:var(--c1)}
@media (max-width:820px){
  .mbar{display:flex}
  body{padding-bottom:var(--mbar-h)} /* 하단 바가 본문을 가리지 않게 — CLS 0 */
}

/* ── 가독성 레이어 보강 (§1-A B) ──────────────────────────────
   표 래핑 JS 가 body.single 에서만 돈다. 허브·정적 페이지는 page 유형이라
   적용 밖이다. 실측 결과 이 사이트의 표는 375px에서 넘치지 않았으나(343px),
   향후 넓은 표가 들어오면 래퍼 없이 넘친다. JS 스코프는 건드리지 않고
   CSS로만 차단한다. */
.entry-content table{display:block;max-width:100%;overflow-x:auto;
  -webkit-overflow-scrolling:touch}
.entry-content .table-wrap>table{display:table} /* 래핑된 표는 원래대로 */

/* 다크모드에서 하이라이트 글자가 사라지지 않게(기존 mark 는 밝은색 하드코딩) */
@media (prefers-color-scheme:dark){
  .entry-content mark{background:color-mix(in srgb,var(--c3) 30%,transparent);color:var(--ink-1)}
  .entry-content mark.hl-blue{background:color-mix(in srgb,var(--c1) 32%,transparent);color:var(--ink-1)}
  .entry-content mark.hl-green{background:color-mix(in srgb,var(--c2) 30%,transparent);color:var(--ink-1)}
}

/* ── 차트 카드 가로 넘침 차단 (개편 전부터 있던 결함, 375px 실측) ────────
   `.chart-legend` 이 flex 항목이라 `min-width:auto` 로 콘텐츠 폭을 고집해
   카드 전체가 421~455px 로 벌어지고 뷰포트가 472px 로 늘어났다.
   범례가 줄바꿈되도록 최소 폭을 풀어 준다. 차트 SVG 는 이미 홀더가
   overflow-x:auto 라 자체 스크롤된다. */
/* ★ 진짜 원인: 그리드 항목은 min-width 기본값이 auto 라 콘텐츠보다 작아지지
   않는다. .detail-grid 트랙은 343px 인데 항목이 455px 로 삐져나가 뷰포트를
   472px 로 늘렸다. 그리드/플렉스 항목의 최소 폭을 풀어 준다. */
.detail-grid > *, .grid > * { min-width: 0; }
.e2c-chart, .e2c-chart figure, .e2c-chart .chart-head,
.chart-legend, .chart-svg-holder { min-width: 0; max-width: 100%; }
.chart-legend { flex-wrap: wrap; }
.chart-legend .k { flex: 0 1 auto; min-width: 0; }
/* 표도 동일 원칙 — 카드 밖으로 밀지 않는다 */
.e2c-chart .chart-table-wrap { max-width: 100%; overflow-x: auto; }

/* ── 목차 삽입 CLS 차단 (개편 전부터 있던 결함, 실측 CLS 0.0049~0.0487) ────
   가독성 레이어 JS 가 DOMContentLoaded 후 .rl-toc 를 본문 앞에 끼워 넣어
   본문이 통째로 밀려 내려갔다. 목차 높이가 글마다 203~402px 로 달라
   고정 높이 예약은 오히려 빈 공간을 만든다.
   → 목차를 서버에서 미리 렌더한다(inc/home-parts.php: e2c_render_toc_ssr).
     JS 는 이미 목차가 있으면 만들지 않으므로 스코프를 건드리지 않는다. */
.rl-toc { margin: 0 0 2em; }

/* 기존 컴포넌트를 감싼 섹션 — 컴포넌트가 자체 제목·여백을 가지므로
   래퍼는 eyebrow 만 얹고 위아래 여백을 정리한다(제목 중복 방지). */
.hs-embed-sec{padding-bottom:12px}
.hs-embed-sec>.wrap{padding-bottom:0}
.hs-embed-sec .eyebrow{margin-bottom:0}
.hs-embed-sec .section{padding-top:6px}
.hs-embed-sec .section>.wrap>h2{font-size:25px;font-weight:700;letter-spacing:-.02em;margin:0 0 6px}
.hs-embed-sec .section>.wrap>.sub{font-size:14px;color:var(--ink-2);margin:0 0 18px}
@media (max-width:600px){.hs-embed-sec .section>.wrap>h2{font-size:21px}}

/* ── 공고 상세 사양 표 가로 넘침 차단 (375px 실측 379px) ──────────────
   `.spec-table th { white-space:nowrap }` 이 최소 폭을 만들어 21px 삐져나갔다.
   표 자체를 스크롤 가능한 블록으로 만들어 카드 밖으로 밀지 않는다.
   (본문 .entry-content 표와 동일한 원칙) */
.spec-table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
/* thead/tbody 에 width:100% 를 주면 다시 콘텐츠 폭을 고집한다 — 기본값 유지 */
.spec-table th{white-space:normal}   /* nowrap 이 최소 폭을 만들던 원인 */
.spec-table th,.spec-table td{word-break:keep-all}

/* ── 차트 영역 높이 예약 (CLS 0 — §1-3, B-3) ──────────────────────────
   차트 SVG 를 JS 가 페인트 후(실측 765ms) 그려 넣어 아래 표가 349px 밀렸다
   (실측 CLS 0.0963). SVG 는 viewBox 720×360 = 2:1 이므로 홀더에 같은 비율을
   미리 예약하면 렌더 전후 높이가 같아진다.
   ※ 차트가 없는 단지(거래 부족)에는 홀더 자체가 없으므로 빈 칸이 생기지 않는다. */
.chart-svg-holder{aspect-ratio:2/1}
.chart-svg-holder>svg{width:100%;height:100%;display:block}

/* =========================================================================
   이미지 슬롯 (A-8) — 2026-08-04 확대
   원칙: 모든 슬롯은 aspect-ratio 로 높이를 예약한다. 이미지가 도착하기 전
   폴백 SVG 가 같은 자리를 차지하므로 교체 시점에 레이아웃이 움직이지 않는다(CLS 0).
   ========================================================================= */

/* 슬롯 공통 — 폴백 SVG 와 실제 <img> 가 동일하게 채운다 */
.slot-fb,
.tcard-img,.open-art-img,.area-art-img,.why-art-img{
  display:block;width:100%;height:100%;object-fit:cover}

/* ── ⑥ 카테고리 카드: 40px 아이콘 → 16:10 이미지 영역 승격 ── */
.tcard{padding:0;overflow:hidden}          /* 이미지가 카드 모서리까지 붙는다 */
.tcard-media{position:relative;aspect-ratio:16/10;background:var(--surface-2);overflow:hidden}
.tcard-b{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1}
.tcard-fb{position:absolute;inset:0;display:block}
.tcard-fb .slot-fb{position:absolute;inset:0}
/* 폴백일 때만 아이콘을 가운데 크게 얹는다(이미지가 오면 이 노드 자체가 없다) */
.tcard-fb-ic{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:#fff;opacity:.92}
.tcard-ic{display:none}                    /* 구 아이콘 박스 — 이미지 영역으로 대체 */

/* ── ② 배너: 좌측 아트 1장 ── */
/* ★ 아트가 카드 높이를 끌어올리지 않게 한다. 4:5 세로 아트를 stretch 로 두었더니
   카드가 300px 로 늘어나 텍스트 아래가 텅 비었다(스크린샷 육안 확인).
   아트는 카드 줄 높이에 맞춰 따라가고(align-items:stretch + 자체 높이 100%),
   비율 예약은 최소 높이로만 건다. */
.open-wrap{display:grid;grid-template-columns:200px 1fr;gap:14px;align-items:stretch}
.open-art{border-radius:var(--radius);overflow:hidden;background:var(--surface-2);
  min-height:150px}                        /* .open-strip 예약 높이와 동일 — CLS 0 */
.open-art>*{height:100%}
@media (max-width:820px){
  .open-wrap{grid-template-columns:1fr;gap:12px}
  /* 모바일에서는 가로로 눕힌다 */
  .open-art{aspect-ratio:16/5;min-height:0}
}

/* ── 섹션 배너 슬롯 (2026-08-14 이미지 라운드) ──
   ★ aspect-ratio 로 높이를 미리 예약한다. 이미지 도착 전(폴백 SVG)과 도착 후의
     높이가 같아야 CLS 0 이 유지된다 — 이 사이트는 자동광고가 본문에 들어오므로
     예약 없이 이미지를 얹으면 광고 삽입분과 겹쳐 시프트가 증폭된다(§5).
   ★ 스크림·테두리에 하드코딩 밝은색을 쓰지 않고 테마 토큰을 경유한다(§3). */
.sec-art{aspect-ratio:16/6;border-radius:var(--radius);overflow:hidden;
  background:var(--surface-2);margin:0 0 16px;contain:layout}
.sec-art-img{display:block;width:100%;height:100%;object-fit:cover}
.sec-art .slot-fb{display:block;width:100%;height:100%}
@media (max-width:600px){.sec-art{aspect-ratio:16/9}}
/* ── ⑤ 지역 그리드: 섹션 헤딩 아래 가로 배너 ── */
/* ★ 16:3 은 세로로 긴 한반도를 담지 못한다 — 어떤 크롭 위치로도 수도권과 제주가
   동시에 잘렸다(변환 결과 육안 확인). 도착 아트에 맞춰 16:6 으로 넓힌다.
   높이는 여전히 aspect-ratio 로 예약되므로 CLS 0 은 유지된다. */
.area-art{aspect-ratio:16/6;border-radius:var(--radius);overflow:hidden;
  background:var(--surface-2);margin:0 0 16px}
@media (max-width:600px){.area-art{aspect-ratio:16/9}}

/* ── ⑨ 왜: 섹션 아트 1장 + 항목 그리드 ── */
.why-wrap{display:grid;grid-template-columns:340px 1fr;gap:18px;align-items:start}
.why-art{aspect-ratio:4/3;border-radius:var(--radius);overflow:hidden;
  background:var(--surface-2)}
.why-wrap .whygrid{grid-template-columns:repeat(2,1fr)}
@media (max-width:900px){
  .why-wrap{grid-template-columns:1fr}
  .why-art{aspect-ratio:16/6}
}
@media (max-width:480px){.why-wrap .whygrid{grid-template-columns:1fr}}
/* 히어로 이미지 슬롯 — 폴백 SVG 와 동일 비율(16:10)로 예약해 교체 시 이동 0 */
.hero-vis{aspect-ratio:16/10;border-radius:14px;overflow:hidden;background:var(--surface-2)}
.hero-img,.hero-vis .hero-svg{width:100%;height:100%;object-fit:cover;display:block}

/* ===== 단지명 검색 (PHASE-HOME §2) =====
   드롭다운은 position:absolute 로 띄운다 — 문서 흐름을 밀지 않으므로 CLS 0.
   입력창 높이는 고정값이라 JS 로드 전후 레이아웃이 같다. */
.e2s { position: relative; width: 100%; max-width: 640px; }
.e2s-form {
  position: relative; display: flex; align-items: center;
  background: var(--surface-1); border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); height: 56px; padding: 0 18px; gap: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.e2s-form:focus-within { border-color: var(--c1); box-shadow: 0 0 0 4px var(--c1-bg); }
.e2s-ic { display: flex; color: var(--muted); flex: 0 0 auto; }
.e2s-input {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none;
  font: inherit; font-size: 16px; color: var(--ink-1); outline: none;
  -webkit-appearance: none; appearance: none;
}
.e2s-input::placeholder { color: var(--muted); }
.e2s-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* 드롭다운 — 흐름 밖(absolute). 최대 높이 제한 + 자체 스크롤 */
.e2s-panel {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.13);
  max-height: 380px; overflow-y: auto; overscroll-behavior: contain;
}
.e2s-panel[hidden] { display: none; }
.e2s-list { list-style: none; margin: 0; padding: 6px; }
.e2s-item > a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border-radius: 9px; color: var(--ink-1);
  min-height: 44px; box-sizing: border-box;   /* 터치 타깃 44px+ */
}
.e2s-item > a:hover, .e2s-item.on > a { background: var(--c1-bg); }
.e2s-nm { font-weight: 500; font-size: 15px; }
.e2s-rg { color: var(--ink-2); font-size: 13px; flex: 0 0 auto; }
.e2s-empty { margin: 0; padding: 16px 18px; font-size: 14.5px; color: var(--ink-1); }
.e2s-empty b { font-weight: 600; }
.e2s-empty span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 13.5px; }
.e2s-hint { margin: 10px 2px 0; font-size: 13.5px; color: var(--ink-2); }

/* 헤더 안 축소형 */
.e2s-header { max-width: 300px; }
.e2s-header .e2s-form { height: 46px; padding: 0 13px; }
.e2s-header .e2s-input { font-size: 14.5px; }

@media (max-width: 720px) {
  .e2s-form { height: 52px; padding: 0 15px; }
  .e2s-rg { display: block; font-size: 12.5px; }
}

/* ===== 단지 인덱스 목록 + 시도 칩 스트립 (PHASE-HOME §2·§4) ===== */
.idx-h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 18px; font-weight: 600; }
.cxlist { margin-top: 22px; border-top: 1px solid var(--border); }
.cxrow {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 14px 4px; border-bottom: 1px solid var(--border);
  color: var(--ink-1); min-height: var(--tap); box-sizing: border-box;
}
.cxrow:hover { background: var(--c1-bg); }
.cxrow-n { font-weight: 500; font-size: 15.5px; flex: 1 1 auto; }
.cxrow-r { color: var(--ink-2); font-size: 13.5px; }
.cxrow-c { color: var(--muted); font-size: 13px; flex: 0 0 auto; }

/* 시도 칩 한 줄 — 캘린더 아래. 가로 스크롤(모바일) */
.sidostrip { padding: 18px 0 4px; }
.sidostrip-l { font-size: 13px; color: var(--ink-2); margin: 0 0 9px; font-weight: 500; }
.sidostrip-in { display: flex; flex-wrap: wrap; gap: 7px; }
.sdchip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface-1); color: var(--ink-1); font-size: 13.5px;
  min-height: 38px; box-sizing: border-box;
}
.sdchip:hover { border-color: var(--c1); background: var(--c1-bg); }
.sdchip-n { color: var(--muted); font-size: 12.5px; }

/* 축약 지역 카드 — 단지 예시 링크 없이 시도명 + 수치만 */
.areagrid-c { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.areacard-c {
  display: flex; flex-direction: column; gap: 5px; padding: 15px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-1); color: var(--ink-1);
}
.areacard-c:hover { border-color: var(--c1); background: var(--c1-bg); }
.areacard-c .area-h { font-weight: 600; font-size: 15.5px; }
.areacard-c .area-n { color: var(--ink-2); font-size: 13.5px; }
.areacard-c .area-nodata { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* 히어로 축약형 — 검색창이 주인공 */
.hero-slim .hero-in { display: block; max-width: 720px; }
.hero-slim .hero-h1 { font-size: 30px; margin-bottom: 10px; }
.hero-slim .hero-sub { margin-bottom: 20px; }
.hero-slim .hero-cta { margin-top: 16px; }
@media (max-width: 720px) {
  .hero-slim .hero-h1 { font-size: 24px; }
  .idx-h1 { font-size: 21px; }
}

/* 헤더 검색창 — 모바일에서 우측 넘침 방지(실측 스크린샷에서 발견).
   데스크탑은 내비 옆 인라인, 좁은 화면은 로고/햄버거 아래 전폭으로 내린다. */
.e2s-header { flex: 0 1 300px; min-width: 0; margin-left: auto; }
@media (max-width: 1100px) {
  .e2s-header { flex: 1 1 100%; max-width: none; order: 10; margin: 10px 0 2px; }
  .e2s-header .e2s-form { height: 44px; }
}

/* 좁은 화면에서 헤더 검색창이 다음 줄로 내려갈 수 있게 래핑 허용.
   (.sh-inner 는 nowrap 이 기본이라 flex-basis:100% 만으로는 줄바꿈이 안 된다 — 실측) */
@media (max-width: 1100px) {
  .sh-inner { flex-wrap: wrap; }
}

/* =========================================================================
   자동광고 레이아웃 예약 (2026-08-14)
   ★ 광고 코드는 건드리지 않는다. 이 블록은 순수 CSS 예약이다.
   ★ 방식 (d): 래퍼에 :has([data-ad-status="filled"]) 로만 높이를 준다.
     - filled 일 때만 자리를 잡으므로 unfilled 에 빈 칸이 남지 않는다.
     - unfilled·dismissed 는 레이아웃에서 완전히 뺀다.
     - body 에 직접 예약하지 않는다. WP 코어 global-styles-inline-css 의
       body{padding:0} 가 덮어써서 무효가 된다.
   ★ 삽입분에 contain:layout — 광고 내부 리플로가 바깥 레이아웃을 밀지 않게 한다.
   ========================================================================= */

/* 채워진 광고: 자리를 확정하고 내부 변화를 가둔다 */
ins.adsbygoogle[data-ad-status="filled"]{
  display:block !important;
  contain:layout;
  margin:12px 0;
}
/* 부모 래퍼가 있으면 그 래퍼가 높이를 예약한다(광고 자체 높이 변동 흡수) */
div:has(> ins.adsbygoogle[data-ad-status="filled"]){
  contain:layout;
  min-height:0;
}
/* 데이터 영역은 자동광고가 들어와도 폭이 밀리지 않게 가둔다.
   ★ 이 훅(#e2c-chart-block 등)은 대시보드 제외 선택자로 재사용할 자산이다 — 지우지 말 것. */
#e2c-chart-block,#e2c-supply-table,#e2c-schedule,#e2c-rates-table,.e2c-noads{
  contain:layout;
}

/* ── 자동광고 인라인 주석(google-anno) 레이아웃 가둠 (2026-08-14 실측) ──
   ★ 이 요소는 ins.adsbygoogle 이 아니라 본문 텍스트 안에 직접 들어온다.
     data-ad-status 선택자로는 안 잡힌다. 375px 홈 CLS 0.29576 의 원인이었다.
   ★ 광고를 없애는 게 아니라(게재는 유지), 문단 흐름을 밀지 않도록 인라인으로 가둔다.
   ★ 데이터·출처 영역은 마크업에서 google-anno-skip 으로 아예 대상에서 뺐다 — YMYL. */
.google-anno-sc{display:inline !important;height:auto !important;
  max-height:1.4em;overflow:hidden;vertical-align:baseline}

/* ── 수동 광고 슬롯 (ADSENSE.md §3-3) ──
   자유 서술형 글에만 붙는다(공고·단지 데이터 페이지 제외 — inc/adsense.php 주석 참조).
   min-height 로 자리를 예약해 채워질 때 본문이 밀리지 않게 한다. */
.ad-slot{margin:28px 0;text-align:center;overflow:hidden}
.ad-slot.ad-inarticle{min-height:280px}
.ad-slot.ad-multiplex{min-height:600px}
@media (min-width:768px){
  .ad-slot.ad-inarticle{min-height:250px}
  .ad-slot.ad-multiplex{min-height:400px}
}

/* ==========================================================================
   라운드 2026-09-05 — DESIGN-ID.md ③④: 최소 글자 13px, 터치 타깃 44px, 메타 명암비
   ========================================================================== */
.badge, .stat .cap, .data-meta, .region-cell span, .hi-row .delta, .chart-legend, .chart-table caption,
.chart-table .tag-record, .chart-table .tag-cancel, .timeline .chg, .noindex-note, .footer-source, .footer-copy,
.utilbar, .brand-ko, .mega-t, .mega-n, .mega-sub a, .mega-note, .kw, .hero-badge, .open-badge, .open-meta, .open-date,
.num-s, .num-asof, .qf-tool i, .pill-n, .area-n, .apill, .area-nodata, .sdchip-n, .mcard-cat, .mcard-m, .mcard-m time,
.fcol-h, .f-n, .mbar-a, .e2s-hint { font-size: 13px; }
.kw { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; }
.data-meta, .stat .cap, .footer-source, .footer-copy, .num-s, .num-asof, .open-date, .region-cell span, .mcard-m { color: var(--ink-2); }
.f-desc, .f-src, .f-fresh, .area-nodata span, .areacard-c .area-nodata { font-size: 13px; }

/* ==========================================================================
   공고 상세 시각자료(SVG 차트) — inc/charts.php 서버 렌더
   · 색은 전부 토큰(--c1/--c2/--c3/--grid/--baseline) → 다크모드 자동 대응
   · 넓은 차트는 자체 컨테이너에서만 가로 스크롤(본문은 절대 가로 스크롤 금지)
   · min-height 없음: 서버 렌더라 최초 페인트에 이미 존재 → CLS 유발 없음
   ========================================================================== */
.e2c-nchart{margin:18px 0 0;padding:0;min-width:0;max-width:100%}
/* 모든 차트는 가로 스크롤 컨테이너 안에 둔다.
   SVG 를 컨테이너에 맞춰 축소하면 좌표계가 함께 줄어 글자가 13px 미만(모바일 343px 에서 5.9px)이 된다.
   그래서 축소하지 않고(width:auto = viewBox 폭 그대로) 좁은 화면에서는 스크롤시킨다. */
.e2c-nchart-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;min-width:0;max-width:100%}
.e2c-nchart-svg{display:block;width:auto;height:auto;max-width:none}
.e2c-nchart figcaption{margin-top:8px}
.e2c-nlegend{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px}
.e2c-nlegend-item{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--ink-2)}
.e2c-nlegend-item i{width:11px;height:11px;border-radius:2px;flex:0 0 auto}

/* 디자인 점검 2026-09-09: 로고와 본문 목차 링크의 터치 높이를 카드의 44px 토큰에 맞춘다. */
.brand{min-height:var(--tap)}
.rl-toc a{display:flex;align-items:center;min-height:var(--tap)}


/* ===== Renewal 2026-09-23 ===== */
.e2c-answer{margin:16px 0 20px;padding:16px 18px;border:1px solid color-mix(in srgb,var(--c2) 28%,var(--border));border-radius:14px;background:color-mix(in srgb,var(--c2) 5%,var(--surface-1));}
.e2c-answer strong{display:block;margin-bottom:6px;font-size:14px;color:var(--c2);}
.e2c-answer p,.e2c-answer ul{margin:0;color:var(--ink-1);line-height:1.7}
.e2c-answer ul{padding-left:20px}.e2c-answer li+li{margin-top:4px}
.e2c-faq{margin-top:28px}.e2c-faq details{border-top:1px solid var(--border);padding:12px 0}.e2c-faq details:last-child{border-bottom:1px solid var(--border)}
.e2c-faq summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}.e2c-faq p{margin:6px 0 4px;color:var(--ink-2);line-height:1.75}
.e2c-guide-links{margin-top:24px;padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--surface-1)}
.e2c-guide-links h2{font-size:18px;margin:0 0 10px}.e2c-guide-links ul{margin:0;padding-left:20px}.e2c-guide-links li+li{margin-top:7px}
.e2c-post-nav{display:grid;grid-template-columns:1fr;gap:10px;margin:28px auto;max-width:760px}
.e2c-post-nav a{display:flex;min-height:52px;align-items:center;padding:12px 14px;border:1px solid var(--border);border-radius:12px;text-decoration:none;background:var(--surface-1)}
.e2c-post-nav a:hover{transform:translateY(-2px);transition:transform 180ms ease}.e2c-post-nav .next{justify-content:flex-end;text-align:right}
@media(min-width:700px){.e2c-post-nav{grid-template-columns:1fr 1fr}}
.e2c-pillar-section{padding:36px 0}.e2c-pillar-grid{display:grid;grid-template-columns:1fr;gap:12px}.e2c-pillar-card{display:block;padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--surface-1);text-decoration:none;min-height:110px}
.e2c-pillar-card:hover{transform:translateY(-2px);transition:transform 180ms ease}.e2c-pillar-card strong{display:block;color:var(--ink-1);margin-bottom:6px}.e2c-pillar-card span{display:block;color:var(--ink-2);font-size:14px;line-height:1.55}
@media(min-width:720px){.e2c-pillar-grid{grid-template-columns:repeat(3,1fr)}}
.entry-figure img{display:block;width:100%;height:auto}
#e2c-chart-block{min-height:240px}
@media(min-width:880px){#e2c-chart-block{min-height:320px}}
a,button,summary,input,select{scroll-margin-top:80px}
@media(prefers-reduced-motion:reduce){.e2c-post-nav a:hover,.e2c-pillar-card:hover{transform:none;transition:none}}


/* PHASE 3-C: 첫 화면 조작요소 44px hit area */
.utilbar-cta,
.hs-more,
.e2s-hint a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  box-sizing:border-box;
}
