:root {
  --main: #2563eb;
  --sub: #0f766e;
  --accent: #f59e0b;
  --ink: #172033;
  --muted: #667085;
  --line: #dde3ed;
  --soft: #f5f7fb;
  --soft-2: #f0fdfa;
  --white: #ffffff;
  --danger: #b42318;
  --radius: 8px;
  --shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.68;
}

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

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

a:hover {
  color: var(--main);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius);
  z-index: 20;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
  flex: 0 0 34px;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  color: #344054;
}

.hero {
  padding: 52px 0 42px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 14%, rgba(37, 99, 235, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sub);
  font-weight: 800;
  font-size: 14px;
}

h1,
h2,
h3 {
  line-height: 1.28;
  margin: 0 0 14px;
}

h1 {
  font-size: 44px;
  max-width: 760px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 14px;
}

.lead {
  font-size: 18px;
  color: #475467;
  max-width: 720px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 14px;
  background: var(--main);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

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

.button.subtle {
  background: #eef4ff;
  color: var(--main);
}

.hero-visual {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.section {
  padding: 48px 0;
}

.section.soft {
  background: var(--soft);
}

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

.section-head.compact {
  align-items: center;
  margin-bottom: 16px;
}

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

.grid {
  display: grid;
  gap: 16px;
}

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

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

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.summary-box,
.answer-box,
.toc,
.article-panel,
.notice,
.notice-box,
.editor-box {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
}

.card {
  padding: 20px;
}

.card .meta,
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--main);
  font-size: 13px;
  font-weight: 800;
}

.category-card {
  border-top: 3px solid var(--main);
}

.category-card p,
.post-card p,
.column-card p,
.partner-card p {
  color: var(--muted);
}

.post-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.post-card .button-row {
  margin-top: auto;
}

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

.article {
  width: min(760px, 100%);
}

.article-header {
  padding: 42px 0 22px;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.article-body {
  font-size: 17px;
}

.article-body h2 {
  margin-top: 34px;
  padding-top: 8px;
}

.summary-box,
.answer-box,
.toc,
.article-panel,
.notice,
.notice-box,
.editor-box {
  padding: 18px;
  margin: 18px 0;
}

.summary-box {
  background: #f8fbff;
  border-left: 4px solid var(--main);
}

.answer-box {
  background: #f6fffb;
  border-left: 4px solid var(--sub);
}

.answer-box p {
  font-size: 17px;
  font-weight: 700;
  color: #133f3a;
}

.toc {
  position: sticky;
  top: 88px;
}

.toc ul,
.summary-box ul,
.article-panel ul,
.footer-list {
  margin: 0;
  padding-left: 20px;
}

.article-panel {
  background: var(--soft);
}

.editor-box {
  background: #fffaf0;
}

.partner-card {
  border-top: 3px solid var(--accent);
}

.tool-card {
  border-top: 3px solid var(--sub);
}

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

.comparison-section {
  background: #ffffff;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.comparison-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

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

.comparison-table thead th {
  background: #f8fbff;
  color: #344054;
  font-weight: 800;
}

.comparison-table tbody th {
  width: 22%;
  color: var(--ink);
  font-weight: 800;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.compact-table {
  min-width: 420px;
}

.decision-tools {
  background: #fbfdff;
}

.decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
}

.decision-grid h3 {
  margin-top: 0;
}

.decision-grid ul {
  margin: 0;
  padding-left: 20px;
}

.ad-slot {
  margin: 24px 0;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
}

.ad-placeholder {
  color: var(--muted);
  border-style: dashed;
}

.ad-placeholder strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.static-page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 60px;
}

.site-footer {
  background: #101828;
  color: #e4e7ec;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 28px;
  padding: 38px 0;
}

.site-footer a {
  color: #e4e7ec;
}

.site-footer p,
.site-footer li {
  color: #cbd5e1;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 0;
  font-size: 14px;
  color: #cbd5e1;
}

.contact-form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 11px;
  font: inherit;
  background: var(--white);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.notice {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.notice-box {
  background: #f8fbff;
  border-color: #bfdbfe;
}

.notice-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--main);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
  margin: 24px 0;
}

.tool-form,
.tool-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px;
}

.tool-form {
  display: grid;
  gap: 12px;
}

.tool-result {
  min-height: 220px;
  background: #fbfdff;
}

.tool-result h2 {
  margin-bottom: 12px;
}

.tool-result .table-scroll {
  margin-bottom: 12px;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #f6f7fb;
}

.admin-sidebar {
  background: #111827;
  color: #f9fafb;
  padding: 22px;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.admin-sidebar button {
  width: 100%;
  justify-content: flex-start;
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar button.active {
  background: #2563eb;
  border-color: #2563eb;
}

.admin-main {
  padding: 28px;
}

.admin-topbar,
.admin-panel {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

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

.stat {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 28px;
}

.item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 10px;
  background: var(--white);
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.login-box {
  width: min(460px, calc(100% - 32px));
  margin: 70px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.preview-box {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fbfdff;
}

@media (max-width: 900px) {
  h1 {
    font-size: 34px;
  }

  .hero-grid,
  .article-shell,
  .footer-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .grid.cols-5,
  .admin-cards,
  .form-grid,
  .decision-grid,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .admin-sidebar {
    position: static;
  }
}
