:root {
  color-scheme: light;
  --ink: #15211b;
  --muted: #66736c;
  --line: #dfe7e2;
  --paper: #f7faf8;
  --surface: #ffffff;
  --brand: #0f7a4f;
  --brand-dark: #095b3a;
  --brand-soft: #e5f5ed;
  --warm: #fff3d7;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; min-width: 20rem; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 20;
  transform: translateY(-150%);
  padding: .75rem 1rem;
  color: white;
  background: var(--brand-dark);
  border-radius: .5rem;
}

.skip-link:focus { transform: translateY(1rem); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(223, 231, 226, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 6.25rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.2rem;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -.04em;
}

.site-logo span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .65rem;
  color: white;
  background: var(--brand);
  font-size: .95rem;
}

.global-nav {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .2rem;
  padding-bottom: .65rem;
}

.global-nav a {
  padding: .5rem .65rem;
  color: #415048;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

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

.page-shell { padding-block: 1.25rem 4rem; }

nav[aria-label="현재 위치"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1.5rem;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: .84rem;
}

nav[aria-label="현재 위치"] li + li::before { content: "/"; margin-right: .45rem; color: #aeb8b2; }

.page-content {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 1rem 3rem rgba(20, 55, 37, .06);
}

.page-hero {
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  background: linear-gradient(135deg, #f0faf5 0%, #ffffff 56%, #fffaf0 100%);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--brand);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2 { line-height: 1.25; letter-spacing: -.045em; }

h1 { max-width: 48rem; margin: 0; font-size: clamp(2rem, 7vw, 4.15rem); }

.lead { max-width: 42rem; margin: 1rem 0 0; color: #4e5e55; font-size: clamp(1rem, 2.5vw, 1.2rem); }

.updated { margin: 1.25rem 0 0; color: var(--muted); }

.status-notice {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  padding: 1rem;
  border: 1px solid #f0d48f;
  border-radius: .75rem;
  background: var(--warm);
}

.content-grid {
  display: grid;
  gap: 0;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

.content-image { margin: 0; border-bottom: 1px solid var(--line); background: #eef4f0; }
.content-image picture,
.content-image img { display: block; width: 100%; }
.content-image img { height: auto; object-fit: cover; }
.content-image figcaption { padding: .7rem clamp(1.25rem, 5vw, 4rem); color: var(--muted); background: var(--surface); font-size: .8rem; }
.image-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.image-grid .content-image { border: 0; }

.content-section { padding-block: 2rem; border-bottom: 1px solid var(--line); }
.content-section:last-child { border-bottom: 0; }
.content-section h2 { margin: 0 0 .75rem; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.content-section p { max-width: 46rem; margin: 0; color: #4f5d55; }

.entity-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  border-block: 1px solid var(--line);
}

.entity-cta__copy { display: grid; gap: .15rem; }
.entity-cta__copy small { color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .06em; }
.entity-cta__copy strong { line-height: 1.35; font-size: clamp(.95rem, 2vw, 1.08rem); }

.entity-cta__action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .7rem 1rem;
  border-radius: .72rem;
  color: white;
  background: var(--brand);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}

.entity-cta__action:hover { background: var(--brand-dark); }

.entity-cta--button {
  justify-content: flex-start;
  flex-wrap: wrap;
  background: #fbfdfc;
}

.entity-cta--button .entity-cta__action { margin-left: auto; }

.entity-cta--banner {
  grid-column: 1 / -1;
  margin-block: 1.25rem;
  border: 0;
  border-radius: 1rem;
  color: white;
  background: linear-gradient(135deg, var(--brand-dark), #0d8056);
}

.entity-cta--banner .entity-cta__copy small { color: #ccebdd; }
.entity-cta--banner .entity-cta__action { color: var(--brand-dark); background: white; }

.entity-cta--card {
  margin: 1.5rem clamp(1.25rem, 5vw, 4rem);
  border: 1px solid #bedbca;
  border-radius: 1rem;
  background: var(--brand-soft);
}

.entity-cta--external-backlink { border-left: .25rem solid var(--brand); }
.entity-cta--external-backlink .entity-cta__action { max-width: min(100%, 24rem); text-align: center; }

.related { margin-top: 1.5rem; }
.related > h2 { margin: 0 0 1rem; font-size: 1.35rem; }

.card-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; }

.topic-card {
  display: flex;
  min-height: 7.25rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.topic-card span { font-size: 1.05rem; font-weight: 800; }
.topic-card small { color: var(--brand); font-weight: 750; }
.topic-card:hover { transform: translateY(-2px); border-color: #8cc8aa; box-shadow: 0 .75rem 1.75rem rgba(20, 55, 37, .08); }

.sources { padding: 1.25rem clamp(1.25rem, 5vw, 4rem); border-top: 1px solid var(--line); background: #fbfdfc; }
.sources h2 { margin: 0 0 .5rem; font-size: .85rem; letter-spacing: -.01em; }
.sources ul { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; padding: 0; color: var(--muted); list-style: none; font-size: .78rem; }

.trust-layer { padding: 1.4rem clamp(1.25rem, 5vw, 4rem); border-top: 1px solid var(--line); background: #f6faf7; }
.trust-layer h2 { margin: 0 0 .8rem; font-size: 1rem; }
.trust-layer dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .75rem; margin: 0; }
.trust-layer dl div { padding: .75rem; border: 1px solid var(--line); border-radius: .7rem; background: white; }
.trust-layer dt { color: var(--muted); font-size: .72rem; font-weight: 750; }
.trust-layer dd { margin: .2rem 0 0; font-size: .84rem; font-weight: 750; }
.trust-layer nav { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: 1rem; }
.trust-layer nav a { font-size: .82rem; font-weight: 750; }

.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--line); background: #eef4f0; }
.footer-inner p { margin: .25rem 0 1rem; color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-inner nav a { color: #45544c; font-size: .88rem; font-weight: 700; }

a:focus-visible { outline: .2rem solid var(--brand); outline-offset: .2rem; }

@media (min-width: 42rem) {
  .header-inner { min-height: 4.25rem; flex-wrap: nowrap; }
  .global-nav { display: flex; width: auto; padding-bottom: 0; }
  .global-nav a { padding-inline: .85rem; font-size: .94rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-section:nth-last-child(2) { border-bottom: 0; }
}

@media (max-width: 31rem) {
  .entity-cta { align-items: stretch; flex-direction: column; }
  .entity-cta--button .entity-cta__action { width: 100%; margin-left: 0; }
  .entity-cta__action { width: 100%; }
}

@media (min-width: 64rem) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
