:root {
  --bg: #ffffff;
  --ink: #111214;
  --muted: #626a73;
  --line: #d9dee5;
  --soft: #f5f7fa;
  --soft-blue: #eaf6ff;
  --blue: #126f9a;
  --red: #d64234;
  --red-dark: #9e2d25;
  --green: #177c4a;
  --shadow: 0 18px 40px rgba(17, 18, 20, 0.08);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  font-size: 18px;
}

.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 7px solid var(--red);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px white;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover {
  color: var(--ink);
}

.locale-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.locale-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.header-cta,
.primary-action,
.secondary-action,
.offer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.header-cta,
.primary-action,
.offer-action {
  background: var(--red);
  color: white;
  padding: 11px 16px;
}

.header-cta:hover,
.primary-action:hover,
.offer-action:hover {
  background: var(--red-dark);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 16px;
  background: white;
}

.secondary-action:hover {
  border-color: var(--ink);
}

.hero,
.detail-hero,
.report-hero,
.buy-module,
.table-section,
.offer-section,
.related-section,
.detail-grid,
.rules-grid,
.priority-section,
.reinvest-calculator,
.policy-section,
.growth-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(380px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: min(760px, calc(100vh - 80px));
  padding: 44px 0 32px;
}

.hero-copy,
.hero-media {
  min-width: 0;
}

.hero h1,
.detail-hero h1,
.report-hero h1 {
  margin: 0;
  width: 100%;
  max-width: 760px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: block;
}

.hero-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: #353b42;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.45;
}

.disclosure,
.intent {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quick-filter,
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-filter {
  margin-top: 28px;
}

.category-hub-links,
.city-hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.category-hub-links a,
.city-hub-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.category-hub-links a:hover,
.city-hub-links a:hover {
  border-color: var(--blue);
}

.category-hub-links small,
.city-hub-links small {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}

.category-hub-links.wide,
.city-hub-links.wide {
  margin-top: 18px;
}

.quick-filter button,
.category-grid button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 8px 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.quick-filter button:hover,
.quick-filter button.is-active,
.category-grid button:hover,
.category-grid button.is-active {
  border-color: var(--blue);
  background: var(--soft-blue);
  color: #0c506d;
}

.hero-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--soft);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buy-module {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.check-panel h2,
.offer-panel h2,
.related-section h2,
.priority-section h2,
.policy-section h2,
.reinvest-calculator h2,
.growth-grid h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
}

.section-heading p,
.reinvest-calculator p {
  margin: 12px 0 0;
  color: var(--muted);
}

.table-section,
.offer-section,
.related-section,
.priority-section,
.policy-section,
.growth-grid {
  padding: 64px 0;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
}

.table-tools label {
  font-size: 13px;
  font-weight: 850;
}

.table-tools input,
.reinvest-calculator input {
  width: min(360px, 100%);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  font-size: 14px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: var(--soft);
  color: #414852;
  font-size: 12px;
  font-weight: 900;
}

td a {
  color: var(--blue);
  font-weight: 850;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.offer-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.partner-kit-list {
  display: grid;
  gap: 18px;
}

.partner-kit-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.partner-kit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.partner-kit-card h3,
.partner-kit-card h4 {
  margin: 0;
}

.partner-kit-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.approval-related {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.copy-box {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.offer-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.offer-card:hover {
  border-color: #b8c2cf;
  box-shadow: 0 12px 28px rgba(17, 18, 20, 0.07);
}

.offer-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--blue);
  font-weight: 900;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.offer-meta span + span::before {
  content: "/";
  margin-right: 8px;
  color: #a2aab5;
}

.offer-card h3 {
  margin: 6px 0 4px;
  font-size: 19px;
  line-height: 1.25;
}

.offer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.offer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 0;
}

.offer-stats div {
  min-width: 92px;
}

.offer-stats dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.offer-stats dd {
  margin: 1px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.offer-action svg {
  width: 18px;
  height: 18px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  padding: 64px 0 48px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.detail-summary,
.check-panel,
.offer-panel,
.reinvest-calculator,
.rules-grid article,
.growth-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.detail-summary {
  align-self: start;
  padding: 20px;
}

.detail-summary dl,
.rules-grid dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-summary div,
.rules-grid div,
.metric-cards div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

dd {
  margin: 0;
  font-weight: 850;
}

.detail-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 64px;
}

.check-panel,
.offer-panel {
  padding: 24px;
}

.check-panel ol,
.priority-section ol {
  margin: 20px 0 0;
  padding-left: 22px;
}

.check-panel li,
.priority-section li {
  margin: 10px 0;
}

.compact .offer-card {
  grid-template-columns: 34px minmax(0, 1fr);
}

.compact .offer-action {
  grid-column: 2;
  justify-self: start;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.faq-list article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.faq-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.faq-list p {
  margin: 0;
  color: var(--muted);
}

.related-list a {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-list a:hover {
  border-color: var(--blue);
}

.related-list span,
.related-list small {
  display: block;
}

.related-list span {
  font-weight: 850;
}

.related-list small {
  margin-top: 8px;
  color: var(--muted);
}

.report-hero {
  padding: 64px 0 36px;
}

.metric-cards,
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.metric-cards div {
  min-height: 100px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.metric-cards span {
  color: var(--muted);
  font-weight: 800;
}

.metric-cards strong {
  font-size: 25px;
}

.reinvest-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px minmax(210px, 260px) minmax(220px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px;
}

.reinvest-calculator label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.calculator-output {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.calculator-output strong {
  color: var(--ink);
  font-size: 15px;
}

.rules-grid {
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 0 54px;
}

.rules-grid article {
  padding: 20px;
}

.rules-grid h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.priority-section {
  border-top: 1px solid var(--line);
}

.policy-hero {
  padding-bottom: 22px;
}

.policy-section {
  display: grid;
  gap: 26px;
  padding-bottom: 64px;
}

.policy-section article {
  max-width: 840px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.policy-section p {
  margin: 10px 0 0;
  color: var(--muted);
}

.policy-section ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.policy-section li {
  margin: 8px 0;
}

.growth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 24px;
}

.growth-grid article {
  padding: 22px;
}

.growth-grid article:nth-child(3) {
  grid-column: 1 / -1;
}

.kpi-grid article:nth-child(3) {
  grid-column: auto;
}

.growth-grid ol {
  margin: 18px 0 0;
  padding-left: 22px;
}

.growth-grid li {
  margin: 9px 0;
}

.kpi-card-heading,
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kpi-card-heading h2 {
  margin-bottom: 0;
}

.status-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.done {
  background: #e7f6ec;
  color: #145b2d;
}

.status-pill.needs-data {
  background: #fff2cc;
  color: #805000;
}

.status-pill.missing {
  background: #fce6e2;
  color: #9d2a1d;
}

.progress-line {
  height: 9px;
  margin: 16px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.compact-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.compact-list span {
  color: var(--muted);
}

.compact-list strong {
  text-align: right;
}

.allocation-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.allocation-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.allocation-list div:last-child {
  border-bottom: 0;
}

.allocation-list span,
.muted-copy {
  color: var(--muted);
}

.allocation-list strong {
  text-align: right;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 32px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--soft);
}

.redirect-box {
  width: min(560px, calc(100% - 32px));
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.redirect-box h1 {
  margin: 22px 0 10px;
  font-size: 30px;
  line-height: 1.15;
}

.redirect-box p {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .buy-module,
  .detail-hero,
  .detail-grid,
  .reinvest-calculator,
  .growth-grid {
    grid-template-columns: 1fr;
  }

  .growth-grid article:nth-child(3) {
    grid-column: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-media {
    order: -1;
  }

  .detail-summary {
    width: 100%;
  }

  .related-list,
  .rules-grid,
  .metric-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-cta {
    width: 100%;
  }

  .hero,
  .detail-hero,
  .report-hero,
  .buy-module,
  .table-section,
  .offer-section,
  .related-section,
  .detail-grid,
  .rules-grid,
  .priority-section,
  .reinvest-calculator,
  .policy-section,
  .growth-grid {
    width: min(1180px, calc(100% - 28px));
  }

  .hero h1,
  .detail-hero h1,
  .report-hero h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .hero-lede {
    max-width: 330px;
    font-size: 18px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .disclosure,
  .intent {
    max-width: 330px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .offer-card {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .partner-kit-header {
    display: grid;
  }

  .partner-kit-header .secondary-action {
    justify-self: start;
  }

  .offer-action {
    grid-column: 2;
    justify-self: start;
    width: 100%;
  }

  .table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .table-tools input {
    width: 100%;
  }

  .related-list,
  .rules-grid,
  .metric-cards {
    grid-template-columns: 1fr;
  }

  .compact-list li {
    grid-template-columns: 1fr;
  }

  .compact-list strong {
    text-align: left;
  }

  .footer {
    flex-direction: column;
    padding: 28px 16px;
  }
}
