@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;700;800&family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
  --bg: #f2f5f9;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #111827;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --line: #dbe2ea;
  --primary: #2b8cee;
  --primary-deep: #1565c0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  background: #f8fafc;
  color: var(--text);
  line-height: 1.72;
}

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

a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 253, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary-deep);
}

.brand-dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.nav-cta {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 700;
}

.nav-link {
  color: var(--text-soft);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.nav-cta {
  color: #fff;
  background: var(--primary);
}

.reading-track {
  width: 100%;
  height: 3px;
  background: rgba(148, 163, 184, 0.25);
}

.reading-bar {
  width: 42%;
  height: 100%;
  background: var(--primary);
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 38px 18px 72px;
}

.policy-post {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px 36px;
}

.post-header {
  margin-bottom: 30px;
  text-align: left;
}

.kicker {
  margin: 0;
  color: var(--primary-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.policy-title {
  margin: 12px 0 14px;
  color: var(--text);
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.meta-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-block {
  margin: 0 0 26px;
}

.thumb-slot {
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  display: flex;
  align-items: stretch;
  background: #eef4ff;
  border: 1px solid #c8def8;
  padding: 16px;
}

.thumb-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid #c8def8;
  background: #eef4ff;
}

.thumb-guide {
  width: 100%;
  border-radius: 14px;
  border: 1px dashed #93c5fd;
  background: #ffffff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.thumb-label {
  align-self: flex-start;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.thumb-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.thumb-meta {
  margin: 0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
}

.thumb-caption {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.policy-summary {
  margin: 0 0 20px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #c8def8;
  background: #f4f9ff;
}

.policy-summary h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.4;
}

.policy-summary p {
  margin: 0;
  color: var(--text-soft);
}

.toc-nav {
  margin: 0 0 10px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.toc-list a {
  display: block;
  padding: 8px 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.article-section {
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.article-section h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.35;
}

.article-section p {
  margin: 0;
  color: var(--text-soft);
}

.eligibility-focus {
  margin-top: 8px;
  padding: 20px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0f7ff 0%, #f8fbff 100%);
}

.target-lead {
  margin: 0 0 12px !important;
  color: #1d4ed8 !important;
  font-weight: 700;
}

.target-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.target-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #93c5fd;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.eligibility-detail {
  margin-top: 14px !important;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #ffffff;
}

.benefit-focus {
  margin-top: 12px;
  padding: 20px 18px;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4f5ff 0%, #fafbff 100%);
}

.benefit-lead {
  margin: 0 0 8px !important;
  color: #3730a3 !important;
  font-weight: 700;
}

.benefit-keyline {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.benefit-detail {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  background: #ffffff;
}

.benefit-body {
  margin: 0;
  color: var(--text-soft);
}

.benefit-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.benefit-list li + li {
  margin-top: 8px;
}

.preline {
  white-space: normal;
  line-height: 1.78;
}

.spacer-sm {
  margin-top: 10px !important;
}

.notice-section {
  margin-top: 8px;
  padding: 16px 18px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
}

.notice-section h2 {
  font-size: 1rem;
}

.recommend-section {
  margin-top: 22px;
}

.recommend-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recommend-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--surface-muted);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.recommend-card:hover {
  text-decoration: none;
  border-color: #bfdbfe;
  background: #f8fbff;
}

.recommend-card span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recommend-card strong {
  color: var(--text);
  font-size: 0.93rem;
}

.home-hero {
  margin: 0 0 14px;
  padding: 24px 26px;
  border-radius: 20px;
  border: 1px solid rgba(43, 140, 238, 0.24);
  background: #f4f9ff;
}

.home-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.home-hero p {
  margin: 0;
  color: var(--text-soft);
}

.home-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c8def8;
  background: #eef6ff;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 12px;
}

.home-chip:hover {
  text-decoration: none;
  border-color: #93c5fd;
  color: var(--primary-deep);
}

.home-section {
  margin: 0 0 14px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.02rem;
}

.section-head a {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.home-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-card-item {
  min-width: 0;
}

.policy-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 13px;
  background: #fff;
  min-height: 156px;
  overflow: hidden;
}

.policy-card:hover {
  text-decoration: none;
  border-color: #bfdbfe;
  background: #f8fbff;
}

.policy-card-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.policy-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.policy-card-target {
  margin: 0 0 7px;
  color: var(--text-soft);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.policy-card-period {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.policy-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-item a {
  display: block;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding: 13px 2px;
  font-weight: 600;
}

.link-item a:hover {
  color: var(--primary-deep);
}

.inline-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.inline-actions a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--text-soft);
  background: #fff;
}

.inline-actions a.primary {
  color: #fff;
  border-color: transparent;
  background: var(--primary);
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 28px;
  padding: 24px 18px 44px;
  border-top: 1px solid var(--line);
  text-align: center;
  background: #f8fafc;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.footer-nav a {
  color: var(--text-soft);
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--primary-deep);
  text-decoration: underline;
}

.footer-source,
.footer-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 780px) {
  .site-header-inner { min-height: 62px; }
  .site-nav { gap: 6px; }
  .nav-link, .nav-cta { padding: 8px 12px; }
  .container { padding-top: 26px; }
  .policy-post { border-radius: 20px; padding: 24px 18px; }
  .home-hero { padding: 18px; }
  .home-chip-row { margin-bottom: 12px; }
  .home-grid { grid-template-columns: 1fr; gap: 9px; }
  .policy-card { min-height: 0; }
  .section-head { align-items: center; }
  .toc-list { grid-template-columns: 1fr; }
  .recommend-grid { grid-template-columns: 1fr; }
  .footer-nav { gap: 8px 12px; }
}
