/* 대출119 - Main Stylesheet */
:root {
  --primary: #2c8c7d;        /* 안정적인 청록 (teal) — 신뢰·금융 */
  --primary-dark: #1a5e54;   /* 짙은 청록 — 헤더·다크 텍스트 */
  --primary-light: #4eb5a3;  /* 밝은 청록 — 액센트 */
  --accent: #ff7043;         /* 따뜻한 코랄 — 청록과 보색 조화 */
  --accent-light: #ff8a65;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #212121;
  --text-muted: #616161;
  --border: #e0e0e0;
  --success: #2e7d32;
  --danger: #c62828;
  --warning: #f57c00;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.logo picture { display: block; line-height: 0; }
.logo img {
  height: 52px;
  width: auto;
  display: block;
  max-width: 100%;
}

@media (max-width: 1200px) {
  .logo img { height: 46px; }
}
@media (max-width: 1100px) {
  .logo img { height: 44px; }
}
@media (max-width: 480px) {
  .logo img { height: 40px; }
}

/* ===== Navigation ===== */
.main-nav { display: flex; align-items: center; min-width: 0; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: nowrap;
}

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 10px 11px;
  color: var(--text);
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--bg);
  color: var(--primary);
  text-decoration: none;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  list-style: none;
  z-index: 110;
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  display: block;
}

.nav-submenu a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-size: 15px;
}

.nav-submenu a:hover {
  background: var(--bg);
  color: var(--primary);
  text-decoration: none;
}

/* ===== Rich (mega) submenu: icon + title + subtitle ===== */
.nav-submenu-rich {
  min-width: 320px;
  padding: 8px;
}
.nav-submenu-rich li { list-style: none; }
.nav-submenu-rich a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  transition: background 0.12s;
}
.nav-submenu-rich .sm-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.nav-submenu-rich .sm-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nav-submenu-rich .sm-text strong {
  font-size: 16px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
}
.nav-submenu-rich .sm-text small {
  font-size: 13.5px;
  color: #555;
  margin-top: 4px;
  line-height: 1.4;
}
.nav-submenu-rich a:hover {
  background: var(--bg);
  text-decoration: none;
}
.nav-submenu-rich a:hover .sm-text strong { color: var(--primary); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #4eb5a3 0%, #2c8c7d 60%, #1a5e54 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 16px;
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-light); }

.btn-secondary { background: white; color: var(--primary); border: 2px solid white; }
.btn-secondary:hover { background: rgba(255,255,255,0.9); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn-block { display: block; width: 100%; }

/* ===== Page Title ===== */
.page-header {
  background: var(--surface);
  padding: 48px 20px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

/* ===== Main Content ===== */
main {
  min-height: 60vh;
  padding: 48px 20px;
}

.content-section {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.content-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--primary-dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg);
}

.content-section h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.content-section p { margin-bottom: 12px; color: var(--text); }

.content-section ul, .content-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-section li { margin-bottom: 6px; }

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: 50%;
  font-size: 24px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.card p {
  color: #444;
  font-size: 15.5px;
  margin-bottom: 16px;
  line-height: 1.65;
}

.card .btn {
  font-size: 14px;
  padding: 8px 16px;
}

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; margin: 16px 0; }

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 15px;
}

table.data th, table.data td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

table.data th {
  background: var(--bg);
  font-weight: 700;
  color: var(--primary-dark);
}

table.data tbody tr:hover { background: #fafbfc; }

.rate-cell { color: var(--accent); font-weight: 700; }
.amount-cell { font-weight: 600; }

/* ===== Forms / Calculators ===== */
.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.form-hint {
  font-size: 14px;
  color: #555;
  margin-top: 6px;
}

.calc-result {
  background: linear-gradient(135deg, var(--bg) 0%, #e8eef7 100%);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
  border-left: 4px solid var(--primary);
}

.calc-result h3 {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.result-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
}

.result-list {
  list-style: none;
  padding: 0;
}

.result-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

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

.result-list .label { color: var(--text-muted); }
.result-list .value { font-weight: 700; color: var(--text); }

/* ===== Alerts ===== */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 16px 0;
  border-left: 4px solid;
}

.alert-info { background: #e0f2ef; border-color: var(--primary); color: var(--primary-dark); }
.alert-warning { background: #fff3e0; border-color: var(--warning); color: #6d4c00; }
.alert-danger { background: #ffebee; border-color: var(--danger); color: #8e0000; }
.alert-success { background: #e8f5e9; border-color: var(--success); color: #1b5e20; }

/* ===== Features (home) ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.feature {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== Two column layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.sidebar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.sidebar h3 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg);
}

.sidebar ul { list-style: none; padding: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.sidebar li:last-child { border: none; }
.sidebar a { color: var(--text); font-size: 14px; }
.sidebar a:hover { color: var(--primary); }

/* ===== FAQ accordion ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-question {
  font-weight: 700;
  cursor: pointer;
  padding-left: 28px;
  position: relative;
  color: var(--text);
}

.faq-question::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 18px;
}

.faq-answer {
  margin-top: 12px;
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
}

.faq-answer::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}

/* ===== Tags & Badges ===== */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg);
  color: var(--primary-dark);
  margin-right: 4px;
}

.tag-success { background: #c8e6c9; color: var(--success); }
.tag-danger { background: #ffcdd2; color: var(--danger); }
.tag-warning { background: #ffe0b2; color: var(--warning); }
.tag-info { background: #b8e2d9; color: var(--primary-dark); }

/* ===== Article list ===== */
.article-list {
  list-style: none;
  padding: 0;
}

.article-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

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

.article-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: block;
}

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

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.article-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
}

/* ===== Footer ===== */
.site-footer {
  background: #1a2233;
  color: #b0bec5;
  padding: 48px 20px 24px;
  margin-top: 64px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #b0bec5; font-size: 14px; }
.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid #2c3a4f;
  text-align: center;
  font-size: 13px;
  color: #78909c;
}

.disclaimer {
  background: #131a26;
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 12px;
  color: #78909c;
  line-height: 1.7;
  margin-top: 16px;
}

/* ===== Responsive ===== */
/* ===== Author byline (E-E-A-T) ===== */
.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

.byline-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.byline-info { flex: 1; min-width: 200px; }
.byline-author { font-weight: 700; color: var(--text); font-size: 15px; }
.byline-author a { color: var(--text); }
.byline-author a:hover { color: var(--primary); }
.byline-role { color: var(--text-muted); font-size: 13px; }
.byline-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.byline-meta time { color: var(--text-muted); }

.fact-checked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f5e9;
  color: var(--success);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

/* ===== Information Gain callout (1차 데이터/자체 조사) ===== */
.info-gain {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.info-gain-label {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.info-gain h4 {
  font-size: 17px;
  color: #6d4c00;
  margin-bottom: 8px;
}
.info-gain p { color: #6d4c00; margin-bottom: 8px; }
.info-gain .source {
  font-size: 12px;
  color: #8d6e00;
  margin-top: 8px;
  font-style: italic;
}

/* ===== Table of Contents ===== */
.toc {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 24px;
  border: 1px solid var(--border);
}
.toc h3 {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
  font-weight: 700;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
}
.toc li { margin: 4px 0; font-size: 14px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); }

/* ===== Sources / References ===== */
.sources {
  background: var(--surface);
  border-top: 3px solid var(--border);
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.sources h3 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 12px;
}
.sources-list {
  list-style: decimal;
  padding-left: 22px;
  font-size: 14.5px;
  color: #444;
}
.sources-list li { margin-bottom: 8px; line-height: 1.7; }
.sources-list a { color: var(--primary); word-break: break-all; font-weight: 600; }

/* ===== Related Articles ===== */
.related-articles {
  margin-top: 32px;
}
.related-articles h3 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.related-card {
  background: var(--bg);
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  transition: background 0.15s;
}
.related-card:hover { background: #eef3fa; }
.related-card a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.related-card .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== Author profile pages ===== */
.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.author-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.author-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.author-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
}
.author-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--text);
}
.author-card .role {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.author-card .specialties {
  margin: 10px 0;
}
.author-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 48px 20px;
  text-align: center;
}
.profile-header .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  border: 3px solid rgba(255,255,255,0.3);
}
.profile-header h1 {
  font-size: 30px;
  margin-bottom: 6px;
}
.profile-header .role {
  font-size: 16px;
  opacity: 0.95;
  margin-bottom: 12px;
}
.profile-header .summary {
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.7;
}
.profile-tags {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.profile-tags .tag {
  background: rgba(255,255,255,0.18);
  color: white;
}

.profile-section {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.profile-section h2 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg);
}
.profile-section ul { padding-left: 22px; }
.profile-section li { margin-bottom: 8px; line-height: 1.7; }
.profile-section .year {
  color: var(--text-muted);
  font-weight: 600;
  min-width: 90px;
  display: inline-block;
}

/* Methodology step boxes */
.method-step {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.method-step .num {
  background: var(--primary);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.method-step .body { flex: 1; }
.method-step h3 {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 6px;
}
.method-step p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Quote / pull-quote */
.pull-quote {
  border-left: 4px solid var(--accent);
  padding: 16px 22px;
  margin: 20px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  background: #fffaf0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote .attribution {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== Region Quick Navigation (지역 빠른 이동) — 40~70대 가독성 우선 ===== */
.region-nav {
  background: linear-gradient(135deg, #f4faf8 0%, #e6f2ee 100%);
  border-radius: 16px;
  padding: 44px 36px;
  margin: 0 0 32px;
  box-shadow: var(--shadow);
  border: 1px solid #c8dfd8;
}
.region-nav-header {
  text-align: center;
  margin-bottom: 36px;
}
.region-nav-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
  border: none;
  padding: 0;
  letter-spacing: -0.3px;
}
.region-nav-header p {
  color: #3d6b62;
  font-size: 17px;
  margin: 0;
  font-weight: 500;
}

.region-clusters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.region-cluster {
  background: white;
  border-radius: 14px;
  padding: 28px 26px;
  border: 2px solid #d8ebe5;
  transition: all 0.2s;
}
.region-cluster:hover {
  box-shadow: 0 6px 20px rgba(44, 140, 125, 0.15);
  border-color: var(--primary-light);
}

.cluster-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--bg);
}
.cluster-emoji {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #4eb5a3 0%, #2c8c7d 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(44, 140, 125, 0.25);
}
.cluster-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.cluster-desc {
  font-size: 15px;
  color: #4a4a4a;
  margin-top: 5px;
  font-weight: 500;
}

.cluster-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  background: #f0f8f5;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid #c8dfd8;
  transition: all 0.15s;
  line-height: 1;
  min-height: 48px;            /* 충분한 터치 타깃 */
  box-sizing: border-box;
}
.region-pill:hover, .region-pill:focus {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(44, 140, 125, 0.3);
}
.region-pill .count {
  font-size: 14px;
  font-weight: 700;
  background: rgba(44, 140, 125, 0.18);
  padding: 4px 9px;
  border-radius: 12px;
  color: var(--primary-dark);
  line-height: 1;
}
.region-pill:hover .count, .region-pill:focus .count {
  background: rgba(255, 255, 255, 0.28);
  color: white;
}

@media (max-width: 600px) {
  .region-nav { padding: 28px 18px; }
  .region-nav-header h2 { font-size: 26px; }
  .region-nav-header p { font-size: 15px; }
  .region-clusters { gap: 16px; grid-template-columns: 1fr; }
  .region-cluster { padding: 22px 20px; }
  .cluster-emoji { width: 48px; height: 48px; font-size: 26px; }
  .cluster-title { font-size: 20px; }
  .cluster-desc { font-size: 14px; }
  .region-pill { font-size: 17px; padding: 12px 18px; min-height: 46px; }
  .region-pill .count { font-size: 13px; }
}

/* ===== Editor's take (편집팀 1차 관찰 콜아웃) ===== */
.editor-take {
  background: linear-gradient(135deg, #f0f8f5 0%, #e0f0eb 100%);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  position: relative;
}
.editor-take::before {
  content: "현장 관찰";
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}
.editor-take .et-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.editor-take .et-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.editor-take .et-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.editor-take .et-role {
  font-size: 12px;
  color: var(--text-muted);
}
.editor-take .et-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 8px;
}
.editor-take .et-body p:last-child { margin-bottom: 0; }
.editor-take .et-body em {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* 좁은 데스크톱(노트북)에서 메뉴 항목 글자만 조금 더 줄임 */
@media (max-width: 1200px) {
  .nav-link { padding: 10px 8px; font-size: 13.5px; }
}

@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
}

/* 메뉴 항목이 10개이므로 1100px 이하에선 햄버거 메뉴로 전환 */
@media (max-width: 1100px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .main-nav.open { display: block; }

  .nav-list {
    flex-direction: column;
    padding: 12px;
    gap: 2px;
  }

  .nav-link {
    padding: 12px 14px;
    font-size: 15px;
  }

  .nav-submenu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg);
    margin-top: 4px;
    padding-left: 16px;
    min-width: 0;
  }

  /* 모바일에선 메가 메뉴도 가로폭 자연스럽게 */
  .nav-submenu-rich { min-width: 0; padding: 4px; }
  .nav-submenu-rich a { padding: 8px 10px; }
  .nav-submenu-rich .sm-icon { font-size: 18px; width: 22px; }
  .nav-submenu-rich .sm-text strong { font-size: 14px; }
  .nav-submenu-rich .sm-text small { font-size: 11px; }

  .nav-item:hover .nav-submenu { display: none; }
  .nav-item.expanded .nav-submenu { display: block; }
}

@media (max-width: 768px) {
  .calc-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 24px; }
}
