:root {
  color-scheme: light;
  --article-ink: #213654;
  --article-muted: #5f7493;
  --article-line: rgba(47, 105, 176, 0.14);
  --article-bg:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(180deg, #edf5ff 0%, #f7fbff 42%, #ffffff 100%);
  --article-panel: rgba(255, 255, 255, 0.92);
  --article-soft: #eef5ff;
  --article-accent: #2f69b0;
  --article-accent-strong: #1d4f8f;
  --article-glow: rgba(47, 105, 176, 0.16);
  --article-shadow: 0 24px 60px rgba(29, 56, 103, 0.12);
  --article-radius-xl: 32px;
  --article-radius-lg: 24px;
  --article-radius-md: 18px;
  --article-radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background: var(--article-bg);
  color: var(--article-ink);
}

body {
  min-height: 100vh;
}

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

img {
  display: block;
  max-width: 100%;
}

.resource-topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 32px rgba(31, 57, 104, 0.08);
  backdrop-filter: blur(16px);
}

.resource-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.resource-brand-link img {
  width: 40px;
  height: 40px;
}

.resource-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.resource-topbar-actions a {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--article-muted);
  font-weight: 700;
}

.resource-topbar-actions .resource-primary-link {
  color: #fff;
  background: linear-gradient(135deg, var(--article-accent), var(--article-accent-strong));
  box-shadow: 0 16px 28px var(--article-glow);
}

.resource-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 48px;
}

.resource-panel,
.resource-footer-inner {
  border: 1px solid var(--article-line);
  background: var(--article-panel);
  box-shadow: var(--article-shadow);
}

.resource-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 28px;
  padding: 40px;
  border-radius: var(--article-radius-xl);
  background:
    radial-gradient(circle at top right, rgba(233, 243, 255, 0.95), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.resource-kicker,
.resource-section-kicker {
  color: var(--article-accent);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 800;
}

.resource-hero h1,
.resource-section-head h2 {
  margin: 12px 0 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.resource-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.resource-hero-copy {
  margin: 18px 0 0;
  color: var(--article-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.resource-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.resource-chip-row span,
.resource-link-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--article-line);
  background: var(--article-soft);
  color: var(--article-accent-strong);
  font-size: 0.95rem;
  font-weight: 700;
}

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

.resource-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.resource-cta.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--article-accent), var(--article-accent-strong));
  box-shadow: 0 18px 30px var(--article-glow);
}

.resource-cta.secondary {
  border: 1px solid var(--article-line);
  background: #fff;
}

.resource-hero-side {
  display: grid;
  gap: 18px;
}

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

.resource-metric-card,
.resource-note-card,
.resource-article-card,
.resource-section-card,
.resource-related-card {
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius-md);
  background: #fff;
}

.resource-metric-card {
  padding: 18px 16px;
  background: var(--article-soft);
}

.resource-metric-card span {
  display: block;
  color: var(--article-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.resource-metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.22rem;
  letter-spacing: -0.04em;
}

.resource-note-card {
  padding: 22px;
}

.resource-note-card strong {
  display: block;
  font-size: 1rem;
}

.resource-note-card p {
  margin: 10px 0 0;
  color: var(--article-muted);
  line-height: 1.75;
}

.resource-section {
  margin-top: 22px;
  padding: 34px;
  border-radius: var(--article-radius-xl);
}

.resource-section-head {
  margin-bottom: 22px;
}

.resource-section-copy {
  margin: 10px 0 0;
  color: var(--article-muted);
  line-height: 1.8;
}

.resource-grid {
  display: grid;
  gap: 18px;
}

.resource-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-article-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.resource-article-card h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.resource-article-card p {
  margin: 0;
  color: var(--article-muted);
  line-height: 1.75;
}

.resource-article-card .resource-link-chip {
  width: fit-content;
}

.resource-category-title {
  margin: 0 0 14px;
  font-size: 1.42rem;
  letter-spacing: -0.03em;
}

.resource-category-block + .resource-category-block {
  margin-top: 28px;
}

.resource-list {
  margin: 0;
  padding-left: 20px;
  color: var(--article-muted);
  line-height: 1.85;
}

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

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.article-hero-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--article-soft);
  border: 1px solid var(--article-line);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--article-accent-strong);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.72fr);
  gap: 22px;
  margin-top: 22px;
}

.article-main,
.article-aside {
  display: grid;
  gap: 22px;
}

.article-section {
  padding: 28px;
}

.article-section h2 {
  margin: 0 0 14px;
  font-size: 1.54rem;
  letter-spacing: -0.03em;
}

.article-section p {
  margin: 0;
  color: var(--article-muted);
  line-height: 1.9;
}

.article-section p + p {
  margin-top: 14px;
}

.article-checklist,
.article-tip-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--article-muted);
  line-height: 1.85;
}

.article-checklist li + li,
.article-tip-list li + li {
  margin-top: 8px;
}

.article-aside-card {
  padding: 22px;
}

.article-aside-card h3 {
  margin: 0;
  font-size: 1.06rem;
}

.article-aside-card p {
  margin: 10px 0 0;
  color: var(--article-muted);
  line-height: 1.75;
}

.article-related-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.article-related-list a {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--article-line);
  background: var(--article-soft);
  font-weight: 700;
  color: var(--article-accent-strong);
}

.resource-footer {
  margin-top: 22px;
}

.resource-footer-inner {
  padding: 26px 30px;
  border-radius: var(--article-radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.resource-footer-copy p {
  margin: 10px 0 0;
  color: var(--article-muted);
  line-height: 1.75;
}

.resource-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resource-footer-links a {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--article-line);
  background: var(--article-soft);
  font-weight: 700;
  color: var(--article-accent-strong);
}

@media (max-width: 1100px) {
  .resource-hero,
  .article-layout,
  .resource-grid.three-up,
  .resource-grid.two-up,
  .resource-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .resource-topbar,
  .resource-shell {
    width: min(100%, calc(100% - 24px));
  }

  .resource-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .resource-topbar-actions {
    justify-content: center;
  }

  .resource-hero,
  .resource-section,
  .article-section {
    padding: 24px 20px;
  }

  .resource-metric-grid {
    grid-template-columns: 1fr;
  }

  .resource-hero h1 {
    font-size: 2.2rem;
  }
}
