/* 시세 한 장 읽을거리 페이지(구별 시세표·사용법·소개·개인정보 처리방침). 도구 화면과 같은 색과 글꼴. */

@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Pretendard-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Pretendard-Bold.woff2') format('woff2');
}

:root {
  --ink: #172a33;
  --muted: #52636d;
  --faint: #8a979e;
  --line: #e3e7e9;
  --soft: #f5f6f7;
  --paper: #ffffff;
  --accent: #1f6b8e;
  --accent-soft: #e8f1f5;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 머리 */
.site-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 12px 20px;
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
}
.site-brand {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  font-size: 14px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--accent);
}

/* 본문 */
.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
h1 {
  margin: 4px 0 6px;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
h2 {
  margin: 40px 0 10px;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
h3 {
  margin: 24px 0 6px;
  font-size: 17px;
}
p,
ul,
ol {
  margin: 0 0 14px;
}
ul,
ol {
  padding-left: 22px;
}
li + li {
  margin-top: 4px;
}
.crumb {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.crumb a {
  color: var(--muted);
}
.meta {
  color: var(--muted);
  font-size: 14px;
}
.lead {
  color: var(--muted);
  font-size: 15px;
}
.note {
  color: var(--muted);
  font-size: 14px;
}
.facts li {
  margin-top: 6px;
}

/* 지도 그림 */
.map-figure {
  margin: 20px 0 8px;
}
.map-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f2ec;
}
.map-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* 버튼 */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.btn.ghost {
  background: var(--paper);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* 표 */
.table-wrap {
  overflow-x: auto;
  margin: 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td.n,
th.n {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
td.strong {
  font-weight: 700;
}
table.compact {
  width: auto;
  min-width: 60%;
}
/* 단지 표는 좁은 화면에서 이름이 끊기지 않게 옆으로 밀어 본다 */
table.wide {
  min-width: 600px;
}
table.wide td:nth-child(2) {
  min-width: 9em;
}

.gu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gu-links a {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.gu-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 광고 칸: 채워진 뒤에만 보인다 */
.ad {
  margin: 28px 0;
  min-height: 0;
}
.ad-label {
  display: none;
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 11px;
}
.ad:has(ins[data-ad-status='filled']) .ad-label {
  display: block;
}
.ad:has(ins[data-ad-status='unfilled']) {
  display: none;
}
ins.adsbygoogle[data-ad-status='unfilled'] {
  display: none !important;
}

/* 꼬리 */
.site-foot {
  padding: 20px 20px 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}
.site-foot p {
  margin: 0 0 4px;
}
.site-foot a {
  color: var(--muted);
}

@media (max-width: 599.98px) {
  body {
    font-size: 15px;
  }
  .site-head {
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .doc {
    padding: 18px 16px 40px;
  }
  h1 {
    font-size: 23px;
  }
  h2 {
    font-size: 19px;
    margin-top: 32px;
  }
  th,
  td {
    padding: 7px 8px;
    font-size: 13.5px;
  }
  table.compact {
    width: 100%;
  }
}
