@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --codexa-navy: #0f1b33;
  --codexa-blue: #1e3a8a;
  --codexa-blue-2: #2563eb;
  --codexa-sky: #6ea8ff;
  --codexa-teal: #2bb3a8;
  --codexa-mint: #e8fbf8;
  --codexa-pale: #f3f8ff;
  --codexa-bg: #f7faff;
  --codexa-line: #dbeafe;
  --codexa-text: #1f2937;
  --codexa-muted: #64748b;
  --codexa-card: #ffffff;
  --codexa-warning: #fff1f2;
  --codexa-warning-line: #fecdd3;
  --shadow: 0 16px 42px rgba(15, 27, 51, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: radial-gradient(circle at 12% 0%, rgba(110,168,255,.18), transparent 30%), var(--codexa-bg);
  color: var(--codexa-text);
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--codexa-teal); }
img { max-width: 100%; height: auto; display: block; }

.site-shell { min-height: 100vh; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(219,234,254,.85);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.site-logo { margin: 0; font-size: 23px; line-height: 1; letter-spacing: -0.04em; }
.site-logo a { color: var(--codexa-teal); font-weight: 900; }
.site-logo span { color: var(--codexa-navy); }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; color: #334155; }
.mobile-menu-button { display: none; border: 0; background: transparent; color: var(--codexa-navy); font-size: 25px; }

.main-hero { max-width: 1220px; margin: 24px auto 22px; padding: 0 22px; }
.main-hero-image { overflow: hidden; border-radius: 30px; box-shadow: var(--shadow); border: 1px solid var(--codexa-line); background: #fff; }
.main-hero-image img { width: 100%; }

.quick-menu {
  max-width: 1180px;
  margin: 0 auto 30px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.quick-menu a {
  display: block;
  padding: 18px 19px;
  border: 1px solid var(--codexa-line);
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(15,27,51,.04);
}
.quick-menu strong { display: block; margin-bottom: 6px; color: var(--codexa-navy); font-size: 15px; }
.quick-menu span { color: var(--codexa-muted); font-size: 13px; line-height: 1.45; }

.layout-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.content-area { min-width: 0; }

.list-heading {
  position: relative;
  margin-bottom: 22px;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg,#fff,#eef6ff 70%,#e8fbf8);
  border: 1px solid var(--codexa-line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.list-heading-image { position: absolute; inset: 0; opacity: .12; background-size: cover; background-position: center; }
.eyebrow { display: inline-flex; margin-bottom: 9px; padding: 7px 12px; border-radius: 999px; background: #eaf4ff; color: var(--codexa-blue); font-size: 12px; font-weight: 800; }
.list-heading h2 { position: relative; margin: 0 0 10px; color: var(--codexa-navy); font-size: 28px; letter-spacing: -0.035em; }
.list-heading p { position: relative; margin: 0 0 6px; color: var(--codexa-muted); line-height: 1.7; }
.list-heading small { position: relative; color: var(--codexa-blue); font-weight: 700; }

.post-grid, .index-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.post-card {
  border: 1px solid var(--codexa-line);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,27,51,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,27,51,.09); }
.post-thumb {
  position: relative;
  height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg,#eaf4ff,#e8fbf8);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback { position: absolute; color: rgba(30,58,138,.12); font-size: 50px; font-weight: 900; letter-spacing: -.04em; }
.post-card-body { padding: 20px; }
.category-chip {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--codexa-blue);
  font-size: 12px;
  font-weight: 800;
}
.post-card h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.38; color: var(--codexa-navy); letter-spacing: -.035em; }
.post-card p { margin: 0 0 14px; color: var(--codexa-muted); font-size: 14px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; gap: 10px; flex-wrap: wrap; color: #94a3b8; font-size: 12px; }
.empty-box { grid-column: 1/-1; padding: 40px; border: 1px dashed var(--codexa-line); border-radius: 18px; background: #fff; color: var(--codexa-muted); text-align: center; }

.article-page {
  border: 1px solid var(--codexa-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.article-header {
  padding: 40px 42px 26px;
  background: radial-gradient(circle at 85% 12%, rgba(43,179,168,.16), transparent 27%), linear-gradient(135deg,#fff,#f2f8ff);
  border-bottom: 1px solid var(--codexa-line);
}
.article-header h1 { margin: 8px 0 14px; color: var(--codexa-navy); font-size: 38px; line-height: 1.25; letter-spacing: -.045em; }
.article-meta { display: flex; gap: 14px; color: var(--codexa-muted); font-size: 14px; }
.article-cover { margin-top: 24px; border-radius: 22px; box-shadow: 0 12px 30px rgba(15,27,51,.08); }
.article-content { padding: 34px 42px 16px; font-size: 17px; line-height: 1.85; }
.article-content p { margin: 14px 0; }
.article-content h2 {
  position: relative; margin: 54px 0 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--codexa-line); color: var(--codexa-navy); font-size: 28px; line-height: 1.35; letter-spacing: -.035em;
}
.article-content h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; border-radius: 999px; background: linear-gradient(90deg,var(--codexa-blue-2),var(--codexa-teal)); }
.article-content h3 { margin: 36px 0 14px; padding-left: 14px; border-left: 4px solid var(--codexa-teal); color: var(--codexa-blue); font-size: 22px; line-height: 1.45; letter-spacing: -.025em; }
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-content li { margin: 8px 0; }
.article-content img { border-radius: 18px; }
.article-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 26px 0; overflow: hidden; border: 1px solid var(--codexa-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(15,27,51,.05); }
.article-content th { background: linear-gradient(135deg,#eef6ff,#e9fbf8); color: var(--codexa-navy); font-weight: 800; padding: 14px 16px; border-bottom: 1px solid var(--codexa-line); text-align: left; }
.article-content td { padding: 14px 16px; border-bottom: 1px solid #eef2f7; }
.article-content tr:last-child td { border-bottom: 0; }

.auto-toc { margin: 28px 42px 0; padding: 22px; border: 1px solid var(--codexa-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(15,27,51,.04); }
.auto-toc.is-empty { display: none; }
.auto-toc-title { margin-bottom: 12px; color: var(--codexa-navy); font-size: 18px; font-weight: 900; }
.auto-toc ol { margin: 0; padding-left: 1.2em; }
.auto-toc li { padding: 6px 0; color: var(--codexa-text); border-bottom: 1px dashed #e5edf8; }
.auto-toc li:last-child { border-bottom: 0; }

.codexa-summary, .codexa-tip, .codexa-warning, .codexa-disclaimer, .codexa-cta, .codexa-checklist { margin: 28px 0; padding: 24px; border-radius: 20px; line-height: 1.75; }
.codexa-summary { border: 1px solid rgba(43,179,168,.35); background: linear-gradient(135deg,#f0fffc,#f7fbff); }
.codexa-tip { border: 1px solid #bfdbfe; background: linear-gradient(135deg,#eff6ff,#fff); }
.codexa-warning { border: 1px solid var(--codexa-warning-line); background: var(--codexa-warning); }
.codexa-disclaimer { border: 1px solid #e5e7eb; background: #f8fafc; color: #475569; font-size: 14px; }
.codexa-cta { border: 1px solid rgba(37,99,235,.25); background: radial-gradient(circle at 90% 20%, rgba(43,179,168,.14), transparent 26%), linear-gradient(135deg,#eef6ff,#fff); }
.codexa-box-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--codexa-navy); font-size: 18px; font-weight: 900; }
.codexa-box-title span { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 999px; background: var(--codexa-blue-2); color: #fff; font-size: 14px; }
.codexa-summary .codexa-box-title span, .codexa-checklist .codexa-box-title span { background: var(--codexa-teal); }
.codexa-warning .codexa-box-title span { background: #ef4444; }
.codexa-disclaimer .codexa-box-title span { background: #64748b; }
.codexa-checklist { border: 1px solid var(--codexa-line); background: #fff; box-shadow: 0 10px 28px rgba(15,27,51,.05); }
.codexa-checklist ul { list-style: none; padding-left: 0; }
.codexa-checklist li { position: relative; padding-left: 30px; }
.codexa-checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--codexa-teal); color: #fff; font-size: 13px; font-weight: 900; text-align: center; line-height: 21px; }
.codexa-faq { margin: 30px 0; }
.codexa-faq-item { margin-bottom: 12px; border: 1px solid var(--codexa-line); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 8px 22px rgba(15,27,51,.04); }
.codexa-faq-q { padding: 17px 20px; color: var(--codexa-blue); font-weight: 900; background: #f8fbff; }
.codexa-faq-a { padding: 18px 20px; color: var(--codexa-text); border-top: 1px solid #eef2f7; }
.default-disclaimer, .tag-trail, .related-posts, .post-navigation { margin: 28px 42px; }
.tag-trail { color: var(--codexa-muted); }
.tag-trail a { display: inline-flex; margin: 4px; padding: 6px 10px; border-radius: 999px; background: #eef6ff; color: var(--codexa-blue); font-size: 13px; font-weight: 700; }
.related-posts h2 { font-size: 22px; color: var(--codexa-navy); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.related-card { display: block; padding: 15px; border: 1px solid var(--codexa-line); border-radius: 16px; background: #fff; }
.related-card img { width: 100%; height: 110px; object-fit: cover; margin-bottom: 10px; border-radius: 12px; }
.related-card strong { display: block; color: var(--codexa-navy); line-height: 1.45; }
.related-card span { color: #94a3b8; font-size: 12px; }
.related-more { display: inline-flex; margin-top: 14px; color: var(--codexa-blue); font-weight: 800; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-navigation a { padding: 18px; border-radius: 18px; background: #f8fbff; border: 1px solid var(--codexa-line); color: var(--codexa-muted); }
.post-navigation strong { color: var(--codexa-navy); }
.next-post { text-align: right; }

.sidebar { position: sticky; top: 88px; display: grid; gap: 16px; }
.sidebar-card { padding: 20px; border: 1px solid var(--codexa-line); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 10px 28px rgba(15,27,51,.045); }
.sidebar-card h3 { margin: 0 0 14px; color: var(--codexa-navy); font-size: 17px; }
.search-form { display: flex; gap: 8px; }
.search-form input { min-width: 0; flex: 1; padding: 11px 12px; border: 1px solid var(--codexa-line); border-radius: 12px; }
.search-form button, .guide-card a { border: 0; border-radius: 12px; background: var(--codexa-blue-2); color: #fff; font-weight: 800; padding: 11px 13px; cursor: pointer; }
.guide-card p { color: var(--codexa-muted); line-height: 1.65; }
.guide-card a { display: inline-flex; margin-top: 8px; }
.category-card ul, .recent-card ul { list-style: none; margin: 0; padding: 0; }
.category-card li, .recent-card li { margin: 8px 0; }
.category-card a, .recent-card a { color: #334155; font-size: 14px; }
.tag-cloud a { display: inline-flex; margin: 4px; padding: 6px 9px; border-radius: 999px; background: #eef6ff; color: var(--codexa-blue); font-size: 12px; font-weight: 700; }

.site-footer { max-width: 1180px; margin: 20px auto 42px; padding: 26px 22px; display: flex; justify-content: space-between; gap: 22px; border-top: 1px solid var(--codexa-line); color: var(--codexa-muted); }
.site-footer strong { display: block; color: var(--codexa-navy); font-size: 20px; }
.site-footer p { margin: 8px 0 0; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 13px; }

@media (max-width: 980px) {
  .site-nav { display: none; }
  .mobile-menu-button { display: block; }
  .site-nav.is-open { position: absolute; left: 16px; right: 16px; top: 62px; display: grid; gap: 0; padding: 12px; border: 1px solid var(--codexa-line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.is-open a { padding: 12px; border-bottom: 1px solid #eef2f7; }
  .site-nav.is-open a:last-child { border-bottom: 0; }
  .quick-menu { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .layout-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .header-inner, .main-hero, .quick-menu, .layout-wrap { padding-left: 14px; padding-right: 14px; }
  .main-hero { margin-top: 14px; }
  .main-hero-image { border-radius: 20px; }
  .quick-menu, .post-grid, .index-feed, .related-grid, .post-navigation, .sidebar { grid-template-columns: 1fr; }
  .article-header { padding: 28px 22px 22px; }
  .article-header h1 { font-size: 29px; }
  .article-content { padding: 26px 22px 12px; font-size: 16px; line-height: 1.78; }
  .article-content h2 { font-size: 24px; margin-top: 42px; }
  .article-content h3 { font-size: 20px; }
  .auto-toc, .default-disclaimer, .tag-trail, .related-posts, .post-navigation { margin-left: 22px; margin-right: 22px; }
  .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .site-footer { flex-direction: column; margin-bottom: 24px; }
}
.codexa-related-box {
  margin: 36px 0;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--codexa-line);
  background:
    radial-gradient(circle at 92% 18%, rgba(43, 179, 168, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 12px 30px rgba(15, 27, 51, 0.06);
}

.codexa-related-label {
  margin-bottom: 14px;
  color: var(--codexa-navy);
  font-size: 18px;
  font-weight: 800;
}

.codexa-related-link {
  display: block;
  padding: 16px 18px;
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid #e5edf8;
  background: #ffffff;
  color: var(--codexa-text) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.codexa-related-link:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 179, 168, 0.5);
  box-shadow: 0 10px 24px rgba(15, 27, 51, 0.08);
}

.codexa-related-link strong {
  display: block;
  color: var(--codexa-blue);
  font-size: 16px;
  line-height: 1.45;
}

.codexa-related-link span {
  display: block;
  margin-top: 5px;
  color: var(--codexa-muted);
  font-size: 14px;
  line-height: 1.5;
}
.codexa-auto-nav-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 42px 42px;
}

.codexa-auto-nav-card {
  display: block;
  min-height: 92px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--codexa-line);
  background: #f8fbff;
  color: var(--codexa-muted) !important;
  box-shadow: 0 8px 22px rgba(15, 27, 51, 0.04);
}

.codexa-auto-nav-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--codexa-muted);
  font-size: 13px;
  font-weight: 700;
}

.codexa-auto-nav-card strong {
  display: block;
  color: var(--codexa-navy);
  font-size: 15px;
  line-height: 1.45;
}

.codexa-auto-nav-card:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 179, 168, 0.45);
  box-shadow: 0 12px 28px rgba(15, 27, 51, 0.08);
}

.codexa-auto-nav-card.next-post {
  text-align: right;
}

.codexa-auto-nav-wrap:empty {
  display: none;
}

@media (max-width: 720px) {
  .codexa-auto-nav-wrap {
    grid-template-columns: 1fr;
    margin-left: 22px;
    margin-right: 22px;
  }

  .codexa-auto-nav-card.next-post {
    text-align: left;
  }

}

.codexa-image-slot {
  margin: 28px 0 10px;
  padding: 22px;
  border: 2px dashed #bcd7ff;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  color: #1f3557;
  text-align: center;
}

.codexa-image-slot p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.6;
}

.codexa-image-slot code {
  padding: 3px 7px;
  border-radius: 8px;
  background: #ffffff;
  color: #2563eb;
  font-weight: 700;
}

.codexa-caption {
  margin: 8px 0 28px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
  line-height: 1.6;
}
/* ================================
   CODEXA article intro / badge
================================ */

.codexa-post-hero {
  position: relative;
  margin: 0 0 30px;
  padding: 30px 34px;
  border: 1px solid var(--codexa-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 16%, rgba(43, 179, 168, 0.16), transparent 28%),
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f3f8ff 64%, #eefcf9 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.codexa-post-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(43, 179, 168, 0.08);
}

.codexa-post-hero::after {
  content: "";
  position: absolute;
  right: 34px;
  top: 30px;
  width: 82px;
  height: 82px;
  border-radius: 26px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.7;
}

.codexa-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(43, 179, 168, 0.32);
  background: linear-gradient(135deg, #e8fbf8 0%, #eef6ff 100%);
  color: var(--codexa-blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
}

.codexa-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--codexa-teal);
  box-shadow: 0 0 0 4px rgba(43, 179, 168, 0.14);
}

.codexa-post-hero p {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0;
  color: var(--codexa-muted);
  font-size: 16px;
  line-height: 1.85;
}

@media (max-width: 720px) {
  .codexa-post-hero {
    padding: 24px 22px;
    border-radius: 22px;
  }

  .codexa-post-hero::after {
    width: 62px;
    height: 62px;
    right: 20px;
    top: 22px;
    opacity: 0.45;
  }

  .codexa-post-hero p {
    font-size: 15px;
    line-height: 1.75;
  }
}