:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --paper: #ffffff;
  --ink: #1b211f;
  --muted: #66716d;
  --line: #dde3df;
  --accent: #1f6b57;
  --accent-strong: #13483a;
  --accent-soft: #e8f3ee;
  --blue: #315d9c;
  --blue-soft: #edf3fb;
  --amber: #8a6418;
  --amber-soft: #fff4d8;
  --danger: #8b2f22;
  --danger-soft: #fff0ec;
  --shadow: 0 14px 30px rgba(27, 33, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
  line-height: 1.68;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img,
iframe {
  max-width: 100%;
}

.topline {
  background: #21312d;
  color: #edf5f1;
  font-size: 13px;
}

.topline .wrap {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav .wrap {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.brand strong {
  font-size: 22px;
  line-height: 1.1;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.nav-links a,
.pill-link {
  border-radius: 999px;
  padding: 8px 11px;
  color: #394541;
  text-decoration: none;
}

.nav-links a:hover,
.pill-link:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hero {
  padding: 56px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(34px, 6vw, 64px);
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 21px;
}

p {
  margin: 0;
}

.lead {
  max-width: 760px;
  margin-top: 18px;
  color: #4b5854;
  font-size: 18px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  padding: 9px 15px;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.button.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.panel,
.article-card,
.post-card,
.product-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px;
}

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

.note-list li {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: #4d5b56;
}

.section {
  padding: 42px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-header p {
  max-width: 620px;
  color: var(--muted);
}

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

.post-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  text-decoration: none;
}

.post-card:hover {
  border-color: #a7b8b1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border-radius: 999px;
  background: var(--blue-soft);
  color: #244d85;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  padding: 34px 0 56px;
}

.article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.article h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.article h2 {
  margin-top: 44px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.article h3 {
  margin-top: 26px;
}

.article p,
.article li {
  color: #3f4d49;
}

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

.article ul,
.article ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.disclosure,
.warning,
.check-box {
  border-radius: 8px;
  padding: 14px 16px;
}

.disclosure {
  border: 1px solid #d5c18a;
  background: var(--amber-soft);
  color: #5e4310;
  font-weight: 700;
}

.warning {
  border: 1px solid #e0b5aa;
  background: var(--danger-soft);
  color: var(--danger);
}

.check-box {
  border: 1px solid var(--line);
  background: #f8faf8;
}

.toc {
  position: sticky;
  top: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
  box-shadow: var(--shadow);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  border-radius: 6px;
  color: #4a5652;
  font-size: 14px;
  padding: 6px 8px;
  text-decoration: none;
}

.toc a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 15px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 13px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f0f4f2;
  color: #25342f;
  font-weight: 900;
}

.product-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.product-box {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.product-media {
  display: grid;
  place-items: center;
  min-height: 246px;
  border-radius: 8px;
  background: #f3f5f1;
}

.product-media iframe {
  width: 120px;
  height: 240px;
  border: 0;
}

.product-box h3 {
  margin-top: 0;
}

.criteria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.criteria div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.criteria strong {
  display: block;
  margin-bottom: 6px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 860px) {
  .topline .wrap,
  .nav .wrap,
  .section-header,
  .footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .hero-grid,
  .article-shell,
  .grid-3,
  .criteria {
    grid-template-columns: 1fr;
  }

  .article-shell {
    padding-top: 18px;
  }

  .toc {
    position: static;
  }

  .product-box {
    grid-template-columns: 1fr;
  }

  .product-media {
    min-height: 260px;
  }
}
