/* =========================================
   전신(전국부동산신뢰망) - Warm Minimal Blog
   ========================================= */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-warm: #f6f5f4;
  --text: rgba(0,0,0,0.85);
  --text-secondary: #615d59;
  --text-muted: #a39e98;
  --accent: #0075de;
  --accent-bg: #f0f6ff;
  --border: rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.05);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --success: #2d8a4e;
  --danger: #c43d3d;
  --radius: 8px;
  --transition: 0.2s ease;
  --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
}

/* ── Global Spacing ── */
p {
  margin-bottom: 1.2em;
}

h1, h2, h3 {
  margin-top: 2em;
  margin-bottom: 0.8em;
}

h1:first-child, h2:first-child, h3:first-child {
  margin-top: 0;
}

/* ── Noise Texture (very subtle) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a.active {
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
}

/* ── Hero ── */
.hero {
  background: var(--bg-warm);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: background var(--transition);
}

.stat-card:hover {
  background: var(--bg-warm);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-change {
  font-size: 0.78rem;
  margin-top: 6px;
  font-weight: 600;
}

.stat-change.up { color: var(--danger); }
.stat-change.down { color: var(--success); }

/* ── Region Tabs ── */
.region-tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px 0;
}

.region-tabs-inner {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.region-tab {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  font-family: var(--font-body);
  margin-bottom: -1px;
}

.region-tab:hover {
  color: var(--text);
}

.region-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ── Region Cards (지역별 리포트) ── */
.region-card {
  padding: 20px 24px !important;
  margin-bottom: 0 !important;
}
.region-card .article-tag {
  margin-bottom: 8px;
}
.region-card .article-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.region-card .article-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* City Section Headers */
.city-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--border);
}
.city-section-header:first-of-type {
  margin-top: 1.5em;
}
.city-section-header .section-title {
  margin: 0;
}
.city-section-header .city-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Region Grid (카드 간격) */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 2em;
}

/* Data page stat cards */
.data-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 2em 0;
}
.data-stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.data-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.data-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}
.data-stat-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Main Layout ── */
.main-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}

/* ── Section Titles ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-more {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

.section-more:hover {
  text-decoration: underline;
}

/* ── Article List (not cards) ── */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-card {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}

.article-card:first-child {
  padding-top: 0;
}

.article-card:hover {
  background: none;
}

.article-card:hover .article-title {
  color: var(--accent);
}

/* Hide thumbnail placeholders in list mode */
.article-thumb-placeholder {
  display: none;
}

.article-body {
  padding: 0;
}

.article-tag {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.article-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Featured article (larger title) */
.article-card.featured .article-title {
  font-size: 1.25rem;
}

/* ── Sidebar ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.region-list {
  list-style: none;
}

.region-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  cursor: pointer;
  transition: color var(--transition);
}

.region-list li:last-child {
  border-bottom: none;
}

.region-list li:hover {
  color: var(--accent);
}

.region-list .count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Policy List */
.policy-list {
  list-style: none;
}

.policy-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.policy-item:last-child {
  border-bottom: none;
}

.policy-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}

.policy-title {
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
  transition: color var(--transition);
}

.policy-item:hover .policy-title {
  color: var(--accent);
}

/* Newsletter */
.newsletter-card {
  background: var(--bg-warm);
  border-color: var(--border);
  overflow: hidden;
}

.newsletter-card .sidebar-title {
  color: var(--text);
  border-bottom-color: var(--border);
}

.newsletter-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-family: var(--font-body);
  outline: none;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.newsletter-btn {
  padding: 9px 18px;
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.newsletter-btn:hover {
  opacity: 0.85;
}

/* ── Chart Section ── */
.chart-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chart-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.chart-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.chart-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.chart-container {
  position: relative;
  height: 280px;
}

/* ── Footer ── */
.footer {
  background: var(--bg-warm);
  color: var(--text-secondary);
  padding: 3em 0 2em;
  margin-top: 4em;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2em;
  margin-bottom: 32px;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-links-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 7px;
}

.footer-links a {
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 480px;
  text-align: right;
  line-height: 1.5;
  opacity: 0.7;
}

/* ===========================
   Article Detail Page
   =========================== */

.article-detail {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  font-size: 0.6rem;
  opacity: 0.4;
}

.article-detail-header {
  margin-bottom: 32px;
}

.article-detail-tag {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.article-detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.article-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Summary Box - Light blue background, no glass */
.summary-box {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px;
  margin: 2em 0;
}

.summary-box-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.summary-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
}

.summary-box li {
  font-size: 0.88rem;
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.summary-box li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Article Content */
.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.article-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.article-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-content strong {
  color: var(--accent);
  font-weight: 600;
}

/* Data Table */
.data-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.data-table th {
  background: var(--bg-warm);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(246, 245, 244, 0.5);
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: rgba(0,117,222,0.03);
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table .change-up {
  color: var(--danger);
  font-weight: 600;
}

.data-table .change-down {
  color: var(--success);
  font-weight: 600;
}

/* Article Chart */
.article-chart-section {
  margin: 2em 0;
}

.article-chart-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.article-chart-container canvas {
  max-height: 320px;
}

/* Infographic Cards */
.infographic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 2em 0;
}

.info-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.info-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.info-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.info-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Related Articles - text links, not cards */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.related-card {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--transition);
  cursor: pointer;
}

.related-card:last-child {
  border-bottom: none;
}

.related-card:hover .related-card-title {
  color: var(--accent);
}

.related-card-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 3px;
}

.related-card-title {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  transition: color var(--transition);
}

/* Comment Section */
.comment-section {
  margin-top: 3em;
  padding-top: 2em;
  padding: 28px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 1px solid var(--border);
}

.comment-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.comment-list {
  margin-bottom: 20px;
}

.comment-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 400;
}

.comment-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-form input,
.comment-form textarea {
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
}

.comment-form textarea {
  resize: vertical;
  min-height: 80px;
}

.comment-form button {
  align-self: flex-end;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.comment-form button:hover {
  background: #005bb5;
}

.comment-empty {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}

/* ── Region Article List (Blog-style) ── */
.region-article-list {
  margin: 1em 0 2em;
}
.region-article-item {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
}
.region-article-item:first-child {
  border-top: 1px solid var(--border);
}
.region-article-item:hover {
  background: var(--bg-warm);
}
.region-article-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 4px 0 8px;
  color: var(--text);
}
.region-article-item:hover h3 {
  color: var(--accent);
}
.region-article-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
.region-article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,117,222,0.08);
  padding: 2px 8px;
  border-radius: 4px;
}
.region-article-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Region Summary (no article yet) */
.region-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.region-summary-stats {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.region-summary-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  margin-left: auto;
}

/* City Section */
.city-section {
  margin-top: 3em;
}
.city-section:first-of-type {
  margin-top: 1.5em;
}
.city-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3em;
}
.city-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5em;
}

/* ── Scroll Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 52px;
    padding: 0 16px;
  }

  .logo-img { height: 40px !important; }

  .nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 24px 0;
  }

  .hero-inner,
  .region-tabs,
  .main-layout,
  .chart-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-value { font-size: 1.2rem; }
  .stat-label { font-size: 0.7rem; }

  .main-layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; order: 2; }

  .article-card { padding: 16px 0; }
  .section-title { font-size: 1.1rem; }

  .region-tabs-inner {
    overflow-x: auto;
    flex-wrap: wrap;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
  }

  .region-tab {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 10px 10px; }

  .data-table-wrapper {
    margin: 1em -16px;
    padding: 0 16px;
  }

  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-btn {
    width: 100%;
  }

  .article-detail {
    padding: 24px 16px 48px;
  }

  .article-detail-title {
    font-size: 1.4rem;
  }

  .infographic {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-inner {
    padding: 0 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-disclaimer {
    text-align: center;
  }

  .comment-section textarea { font-size: 16px; }
  .newsletter-input { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .breadcrumb { font-size: 0.8rem; }
  .summary-box { padding: 16px; }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 1rem; }
  .hero-title { font-size: 1.1rem; }
  .article-title { font-size: 1.2rem; }
  body { font-size: 15px; }

  .newsletter-form {
    flex-direction: column;
  }
}
