:root {
  --ink: #202536;
  --muted: #52617a;
  --line: #e7e9f0;
  --paper: #fff;
  --wash: #f7f8fc;
  --blue: #4169e1;
  --blue-dark: #294fc0;
  --violet: #765ce8;
  --mint: #daf4e8;
  --mint-dark: #128054;
  --orange: #f97316;
  --shadow: 0 16px 46px rgba(40, 52, 91, .08);
  --shadow-sm: 0 4px 18px rgba(40, 52, 91, .04);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: 'DM Sans', 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] { display: none !important; }

/* Site Header */
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(calc((100vw - 1200px) / 2 + 28px), 28px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -.055em;
  font-size: 19px;
  white-space: nowrap;
}
.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f68e5, #795bea);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(65, 105, 225, .23);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.main-nav a, .header-link {
  font-size: 13px;
  font-weight: 600;
  color: #596176;
  transition: color .15s;
}
.main-nav a:hover, .header-link:hover, .site-footer nav a:hover {
  color: var(--blue);
}
.header-link {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.header-link span { font-size: 14px; }

/* Family Sites Navigation */
.family-top {
  position: relative;
  flex: none;
  font-size: 12px;
  color: #65718a;
  z-index: 60;
  min-width: 0;
}
.family-top > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 13px;
  border: 1px solid #e3e7f2;
  border-radius: 10px;
  background: var(--paper);
  color: inherit;
  font-weight: 700;
}
.family-top > summary::-webkit-details-marker { display: none; }
.family-top .family-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: block;
  width: 205px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid #e3e7f2;
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(32, 48, 80, .12);
  z-index: 61;
}
.family-top .family-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  color: inherit;
  font-size: 13px;
  text-decoration: none;
}
.family-top .family-list a:hover, .family-top .family-list a[aria-current] {
  background: #f1f3fe;
  color: #4f68e5;
  font-weight: 700;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: sticky;
  top: 62px;
  z-index: 40;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 9px 16px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.mobile-nav::-webkit-scrollbar { display: none; }
.mobile-nav a {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #596176;
  font-size: 11px;
  font-weight: 700;
}

/* Main Container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ad Banners */
.ad-slot {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  min-height: 90px;
  position: relative;
}
.ad-badge {
  font-size: 9px;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.ad-placeholder-text {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* Hero Section */
.hero {
  min-height: 320px;
  padding: 48px 56px 40px;
  margin: 24px 0 20px;
  background: linear-gradient(112deg, #edf2ff 0%, #f1efff 57%, #eff9f6 100%);
  border: 1px solid #e7eafa;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero:before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  right: -90px;
  top: -180px;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: #6875a2;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7a62e8;
  box-shadow: 0 0 0 4px rgba(122, 98, 232, .12);
}
.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.25;
  letter-spacing: -.06em;
  margin: 14px 0 10px;
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-copy > p {
  font-size: 14px;
  color: #616a80;
  margin: 0 0 20px;
}
.search-box {
  height: 52px;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #dfe4f2;
  border-radius: 14px;
  box-shadow: 0 7px 24px rgba(49, 67, 124, .06);
}
.search-icon { font-size: 22px; color: #77809a; }
.search-box input {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  color: var(--ink);
  font-size: 14px;
}
.search-box input::placeholder { color: #8892a7; }
.search-box kbd {
  font-size: 10px;
  color: #52617a;
  border: 1px solid #e6e8ef;
  border-radius: 6px;
  padding: 3px 8px;
  background: #fafbfe;
  font-weight: 700;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.hero-tags button {
  font-size: 11px;
  color: #626c84;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 20px;
  padding: 5px 12px;
  transition: all .15s;
}
.hero-tags button:hover { color: var(--blue); background: #fff; }

.hero-visual {
  position: relative;
  min-height: 250px;
  display: grid;
  place-items: center;
}
.visual-card {
  position: relative;
  width: 270px;
  background: white;
  border: 1px solid rgba(222, 226, 242, .9);
  border-radius: 20px;
  box-shadow: 0 20px 46px rgba(68, 81, 147, .13);
  padding: 20px;
  transform: rotate(-2deg);
}
.visual-card-top {
  display: flex;
  justify-content: space-between;
  color: #52617a;
  font-size: 11px;
  font-weight: 700;
}
.visual-number {
  font-size: 20px;
  letter-spacing: -.05em;
  margin: 18px 0 10px;
  font-weight: 700;
}
.visual-number strong { color: var(--blue); }
.visual-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: #52617a;
  font-size: 11px;
  border-bottom: 1px solid #edf0f5;
}
.visual-row:last-child { border-bottom: 0; }
.visual-row b { color: #3b455d; font-weight: 700; }

/* Main Type Tabs (ssalmuk-style) */
.type-tabs {
  display: flex;
  gap: 12px;
  margin: 28px 0 18px;
  scroll-margin-top: 86px;
}
#filter-section,
#gov-section,
#tour-section {
  scroll-margin-top: 86px;
}
.main-nav a.active-nav,
.mobile-nav a.active-nav {
  color: var(--blue) !important;
  font-weight: 800 !important;
}
.type-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  background: white;
  border: 2px solid var(--line);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  color: #52617a;
  transition: all .2s;
}
.type-tab:hover {
  border-color: #cbd5fc;
  color: var(--blue);
}
.type-tab.active {
  background: #f4f6fe;
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 6px 20px rgba(65, 105, 225, .1);
}
.tab-count {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--blue);
}
.type-tab.active .tab-count {
  background: var(--blue);
  color: white;
}

/* Filter Bar */
.filter-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-label {
  font-size: 11px;
  font-weight: 700;
  color: #52617a;
}
.filter-select {
  height: 44px;
  border: 1px solid #dfe3ec;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.filter-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, .1);
}
.filter-reset-btn {
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfe;
  color: #52617a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: all .15s;
}
.filter-reset-btn:hover {
  background: #f1f3fa;
  color: var(--ink);
}

/* ========================================================
   Median Income Guide Component (중위소득 안내 패널)
   ======================================================== */
.filter-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.income-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: 0;
  padding: 2px 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: all .15s ease;
  white-space: nowrap;
}
.income-help-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
}
.income-help-btn.active {
  background: #dbeafe;
  color: #1e40af;
  text-decoration: none;
}
.help-icon {
  font-size: 12px;
  font-weight: 800;
}

.income-help-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #cbd5e1;
  animation: fadeInHelp .25s ease-out;
}
@keyframes fadeInHelp {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.income-help-panel[hidden] {
  display: none !important;
}

.income-help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.income-help-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}
.help-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.income-help-close-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}
.income-help-close-btn:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.income-help-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.income-help-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
}
.help-definition {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 10px;
}
.help-recommend-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #1e3a8a;
  line-height: 1.5;
}
.rec-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  white-space: nowrap;
}

.income-table-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
}
.income-table-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.income-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.income-table th {
  background: #f8fafc;
  padding: 9px 12px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.income-table td {
  padding: 10px 12px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}
.income-table tr:last-child td {
  border-bottom: 0;
}
.highlight-blue {
  color: var(--blue);
  font-weight: 800;
}
.tag-sub {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
.income-table-note {
  font-size: 11px;
  color: #94a3b8;
  margin: 8px 0 0;
  line-height: 1.4;
}

.income-choice-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice-item {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}
.choice-include {
  border-color: #bfdbfe;
  background: #f8fbff;
}
.choice-exclude {
  border-color: #e2e8f0;
  background: #fafbfe;
}
.choice-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.choice-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
}
.badge-gray {
  background: #64748b;
}
.choice-rec {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1e40af;
}
.choice-item p {
  font-size: 12px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .income-choice-guide {
    grid-template-columns: 1fr;
  }
}

/* Category Chips */
.chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}
.category-chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 12px;
  font-weight: 600;
  color: #52617a;
  transition: all .15s;
}
.category-chip:hover {
  border-color: #cbd5fc;
  color: var(--blue);
}
.category-chip.active {
  background: #202536;
  border-color: #202536;
  color: white;
}
.category-chip .chip-count {
  font-size: 10px;
  margin-left: 4px;
  opacity: .75;
}

/* List Header */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.total-count-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.total-count-text span { color: var(--blue); }
.sort-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sort-select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: white;
  font-size: 12px;
  color: #52617a;
  outline: none;
}

/* Subsidy Cards List */
.subsidy-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.subsidy-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.subsidy-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #cbd5fc;
}
.card-main { min-width: 0; }
.card-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.badge-rank {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eef2ff;
  color: var(--blue);
}
.badge-category {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}
.badge-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--mint);
  color: var(--mint-dark);
}
.card-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 6px;
  color: var(--ink);
}
.card-summary {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.55;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: #64748b;
}
.card-meta-item span { font-weight: 700; color: #334155; }

.card-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.benefit-badge {
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
  background: #f4f6fe;
  padding: 6px 14px;
  border-radius: 12px;
  white-space: nowrap;
}
.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-bookmark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #94a3b8;
  transition: all .15s;
}
.btn-bookmark.bookmarked {
  color: #f59e0b;
  border-color: #fde68a;
  background: #fffbeb;
}
.btn-detail {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  transition: background .15s;
}
.btn-detail:hover { background: var(--blue-dark); }

/* In-feed Native Ad Card */
.infeed-ad-card {
  background: #fafbfe;
  border: 1px dashed #c7d2fe;
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.infeed-ad-content { display: flex; flex-direction: column; gap: 4px; }
.infeed-ad-badge {
  font-size: 9px;
  color: #6366f1;
  font-weight: 800;
  text-transform: uppercase;
}
.infeed-ad-title { font-size: 14px; font-weight: 700; color: #1e293b; }
.infeed-ad-desc { font-size: 11px; color: #64748b; }

/* Trust Strip (01 02 03) */
.trust-strip {
  padding: 22px 30px;
  margin: 30px 0 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.trust-strip > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-icon {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f0f3ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.trust-strip b { font-size: 13px; letter-spacing: -.025em; }
.trust-strip small { font-size: 11px; color: #52617a; margin-top: 2px; }

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-dialog {
  background: white;
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  position: relative;
  padding: 32px;
}
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
}
.modal-header h2 {
  font-size: 22px;
  letter-spacing: -.04em;
  margin: 6px 0 10px;
}
.modal-section { margin: 24px 0; }
.modal-section h3 {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-section ul, .modal-section ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
}

/* 1-sec Eligibility Checker */
.eligibility-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 16px 0;
}
.eligibility-box h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--blue);
  font-weight: 800;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #334155;
  margin-bottom: 8px;
  cursor: pointer;
}
.check-item input { margin-top: 3px; accent-color: var(--blue); }
.eligibility-result {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  display: none;
}
.eligibility-result.pass {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

/* Footer */
.site-footer {
  padding: 0;
  text-align: left;
  background: white;
  border-top: 1px solid var(--line);
  color: #52617a;
}
.footer-inner {
  max-width: 1200px;
  margin: auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: center;
}
.footer-brand {
  grid-column: 1;
  grid-row: 1;
  font-size: 16px;
}
.footer-inner > p {
  grid-column: 1;
  grid-row: 2;
  margin: 4px 0 0;
  font-size: 11px;
}
.footer-inner > nav {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.footer-inner > nav a { font-size: 12px; }
.footer-inner > small {
  grid-column: 1;
  grid-row: 3;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.footer-inner > .family-sites {
  grid-column: 2;
  grid-row: 3;
  margin-top: 18px;
}

/* Simple Page (About, Terms, Privacy) */
.simple-page {
  max-width: 800px;
  padding-top: 50px;
  padding-bottom: 70px;
  min-height: 68vh;
}
.simple-page h1 { font-size: 32px; letter-spacing: -.06em; margin: 6px 0 12px; }
.simple-lead { font-size: 14px; color: #687186; margin-bottom: 24px; }
.content-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}
.content-card h2 { font-size: 16px; letter-spacing: -.03em; margin: 0 0 12px; }
.content-card p, .content-card li { font-size: 12px; color: #52617a; line-height: 1.8; }
.content-card ul, .content-card ol { padding-left: 18px; margin: 0; }
.text-link { color: var(--blue); font-weight: 700; text-decoration: underline; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 36px 28px; }
  .hero-visual { display: none; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-reset-btn { grid-column: span 2; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 16px; height: 62px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  .main-nav { display: none; }
  .mobile-nav { display: flex; }
  .hero h1 { font-size: 32px; }
  .type-tab { font-size: 14px; padding: 12px; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-reset-btn { grid-column: auto; }
  .subsidy-card { grid-template-columns: 1fr; }
  .card-side { align-items: flex-start; text-align: left; }
  .trust-strip { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .footer-inner { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner > nav { justify-content: flex-start; flex-wrap: wrap; }
}

/* ========================================================
   Half-Price Travel Tour Map & List Layout (ssalmuk-style)
   ======================================================== */
.tour-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(380px, 1.15fr);
  gap: 20px;
  margin-bottom: 40px;
}
.tour-map-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 24px;
  padding: 24px;
  position: relative;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
}
.tour-top-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  z-index: 10;
}
.stat-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pill-all { background: #374151; color: #f9fafb; }
.pill-ongoing { background: rgba(249, 115, 22, .18); color: #fb923c; border: 1px solid rgba(249, 115, 22, .3); }
.pill-upcoming { background: rgba(59, 130, 246, .18); color: #60a5fa; border: 1px solid rgba(59, 130, 246, .3); }
.pill-closed { background: rgba(156, 163, 175, .15); color: #9ca3af; border: 1px solid rgba(156, 163, 175, .25); }

.map-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.korea-svg-map {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.4));
}
.map-province {
  fill: #1e293b;
  stroke: #334155;
  stroke-width: 1.2;
  transition: all .2s;
}
.map-province:hover {
  fill: #2d3e5a;
  cursor: pointer;
}
.map-pin {
  cursor: pointer;
  transition: transform .2s;
}
.map-pin:hover {
  transform: scale(1.15);
}

.tour-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tour-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.tour-panel-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.tour-region-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.tour-region-chips::-webkit-scrollbar { display: none; }
.tour-region-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: all .15s;
}
.tour-region-btn:hover { border-color: var(--blue); color: var(--blue); }
.tour-region-btn.active { background: #1e293b; color: white; border-color: #1e293b; }

.tour-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 530px;
  overflow-y: auto;
  padding-right: 4px;
}
.tour-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  transition: all .15s;
  cursor: pointer;
}
.tour-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 25px rgba(59, 130, 246, .08);
  transform: translateY(-2px);
}
.tour-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.tour-region-name {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}
.tour-status-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}
.tag-ongoing { background: #dcfce7; color: #15803d; }
.tag-upcoming { background: #e0e7ff; color: #4338ca; }
.tag-closed { background: #f1f5f9; color: #64748b; }

.tour-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}
.tour-benefit-text {
  font-size: 13px;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 6px;
}
.tour-card-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .tour-layout { grid-template-columns: 1fr; }
  .tour-map-card { min-height: 400px; }
}


.family-top .family-list{left:auto;right:0}.modal-dialog{max-width:calc(100vw - 24px)}.tour-card:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #4361ee;outline-offset:3px} @media(max-width:540px){.site-header{flex-wrap:wrap;gap:12px}.family-top{margin-left:auto}.card-main{min-width:0}.subsidy-card{overflow-wrap:anywhere}}

.hero-copy,.filter-group,.gov-section,.tour-section{min-width:0}.filter-select{max-width:100%}.sort-controls{flex-wrap:wrap;min-width:0}.list-search{min-width:0;max-width:100%}.list-search input{min-width:0;width:100%} @media(max-width:600px){main{padding:0 14px}.site-header{height:auto;min-height:70px;padding:10px 14px}.header-link{display:none}.hero{padding:26px 18px;grid-template-columns:minmax(0,1fr)}.hero h1{font-size:28px}.hero-tags{flex-wrap:wrap}.filter-grid{grid-template-columns:minmax(0,1fr)!important}.filter-card{padding:18px}.filter-select{width:100%;min-width:0}.sort-controls{width:100%}.tour-layout{grid-template-columns:minmax(0,1fr)}.tour-map-card{min-width:0}.tour-list-card{min-width:0}.type-tabs{flex-wrap:wrap}.type-tab{min-width:0;flex:1}}

.hero-copy,.filter-group,.gov-section,.tour-section{min-width:0}.filter-select{max-width:100%}.sort-controls{flex-wrap:wrap;min-width:0}.list-search{min-width:0;max-width:100%}.list-search input{min-width:0;width:100%} @media(max-width:600px){main{padding:0 14px}.site-header{height:auto;min-height:70px;padding:10px 14px}.header-link{display:none}.hero{padding:26px 18px;grid-template-columns:minmax(0,1fr)}.hero h1{font-size:28px}.hero-tags{flex-wrap:wrap}.filter-grid{grid-template-columns:minmax(0,1fr)!important}.filter-card{padding:18px}.filter-select{width:100%;min-width:0}.sort-controls{width:100%}.tour-layout{grid-template-columns:minmax(0,1fr)}.tour-map-card{min-width:0}.tour-list-card{min-width:0}.type-tabs{flex-wrap:wrap}.type-tab{min-width:0;flex:1}}
