:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --ink: #131722;
  --muted: #495061;
  --line: #dce1eb;
  --primary: #0f5bd8;
  --primary-soft: #eaf1ff;
  --accent: #0f766e;
  --shadow: 0 14px 38px rgba(22, 31, 55, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SUIT", "Pretendard", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f4f7ff 0%, #f7f8fb 55%, #f0f5ff 100%);
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
}

.bg-orb-a {
  width: 360px;
  height: 360px;
  background: #6ea5ff;
  top: -90px;
  left: -120px;
}

.bg-orb-b {
  width: 420px;
  height: 420px;
  background: #90e0d8;
  right: -140px;
  bottom: -130px;
}

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

.top-header {
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
}

.brand-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.global-nav {
  display: flex;
  gap: 16px;
}

.global-nav a {
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
}

.global-nav a:hover {
  color: var(--ink);
  background: var(--primary-soft);
}

.layout {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 56px;
}

.card,
.section {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
  display: grid;
  gap: 20px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.13;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.9vw, 2.3rem);
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.lead,
.topic-card p,
.article-card p,
.guide li,
.policy-grid p,
.faq-list p,
.legal p,
.contact p {
  color: var(--muted);
  line-height: 1.72;
}

.search-box {
  display: grid;
  gap: 8px;
  max-width: 580px;
}

.search-box label {
  font-size: 0.9rem;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  border: 1px solid #cdd6e6;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
}

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

.metrics li {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbfdff;
}

.metrics strong {
  display: block;
  font-size: 1.16rem;
  margin-bottom: 4px;
}

.metrics span {
  color: var(--muted);
  font-size: 0.9rem;
}

#topics,
#featured,
#guides,
#about,
.legal,
.contact {
  padding: 24px;
}

.section-head {
  margin-bottom: 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  border: 1px solid #c4cee2;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.chip.is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.topic-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fcfdff;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
}

.article-card .meta {
  margin-bottom: 8px;
  color: #5b6f99;
  font-size: 0.82rem;
  font-weight: 700;
}

.article-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 700;
}

.hidden {
  display: none;
}

.empty {
  margin-top: 14px;
  color: var(--muted);
}

.guide {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}

.guide ol {
  margin: 0;
  padding-left: 20px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.policy-grid article,
.legal article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fcfdff;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fcfdff;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.legal {
  display: grid;
  gap: 12px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  background: linear-gradient(145deg, #10213f, #19426d);
  color: #eff4ff;
}

.contact .kicker,
.contact p,
.contact h2 {
  color: #eff4ff;
}

.contact-form {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(239, 244, 255, 0.28);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(231, 239, 255, 0.45);
  padding: 11px 12px;
  font: inherit;
  color: #eef4ff;
  background: rgba(7, 14, 24, 0.26);
}

.field option {
  color: #111;
}

.button {
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #2b7dff, #0f5bd8);
  cursor: pointer;
}

.ad-section {
  padding: 18px;
}

.ad-section .adsbygoogle {
  width: 100%;
  min-height: 280px;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 30px;
  padding: 16px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #4e5767;
  font-size: 0.9rem;
}

.site-footer div {
  display: flex;
  gap: 10px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 450ms ease, transform 450ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .top-header,
  .layout,
  .site-footer {
    width: min(100% - 20px, 1120px);
  }

  .top-header,
  .contact,
  .policy-grid,
  .article-grid,
  .topic-grid,
  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .top-header {
    display: grid;
  }

  .global-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .top-header,
  .hero,
  #topics,
  #featured,
  #guides,
  #about,
  .legal,
  .contact,
  .ad-section {
    padding: 16px;
  }

  .topic-grid,
  .article-grid,
  .policy-grid,
  .contact,
  .metrics {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
    gap: 6px;
  }

  .site-footer div {
    flex-wrap: wrap;
  }
}

.topic-updated {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.topic-news-link {
  display: inline-flex;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
}

.topic-news-link:hover {
  text-decoration: underline;
}
