:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-2: #edf3ef;
  --text: #17201b;
  --muted: #5d6d64;
  --line: #d7e0da;
  --brand: #156f63;
  --brand-2: #2457a6;
  --accent: #b85f2f;
  --shadow: 0 14px 34px rgba(25, 47, 39, .10);
  --radius: 8px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101513;
  --surface: #18211d;
  --surface-2: #22302a;
  --text: #edf4ef;
  --muted: #b5c4ba;
  --line: #33443b;
  --brand: #62c9b3;
  --brand-2: #8cb7ff;
  --accent: #f0a06b;
  --shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
button, input, select { font: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--surface);
  font-weight: 900;
}
nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a, .ghost-btn, .primary-btn, .filter-btn {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 12px;
  text-decoration: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
nav a:hover, nav a[aria-current="page"], .ghost-btn:hover, .filter-btn:hover { background: var(--surface-2); }
.primary-btn {
  background: var(--brand);
  color: var(--surface);
  font-weight: 700;
}
.ghost-btn {
  border-color: var(--line);
  background: var(--surface);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
}
.section {
  padding: 54px 20px;
}
.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.hero {
  padding: 56px 20px 34px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--brand) 16%, transparent), transparent 38%),
    linear-gradient(280deg, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 36%),
    var(--bg);
}
.hero.compact { padding-bottom: 44px; }
.aptitude-page {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 10%, transparent), transparent 34rem),
    var(--bg);
}
.aptitude-hero {
  padding-bottom: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 86%, transparent), transparent 52%),
    linear-gradient(115deg, color-mix(in srgb, var(--brand) 13%, transparent), transparent 40%),
    linear-gradient(290deg, color-mix(in srgb, var(--brand-2) 10%, transparent), transparent 42%),
    var(--bg);
}
.aptitude-hero .hero-grid { align-items: stretch; }
.aptitude-hero h1 { font-size: clamp(34px, 5vw, 58px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: 34px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 800;
}
h1, h2, h3 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: 0;
}
h1 {
  max-width: 780px;
  font-size: clamp(34px, 6vw, 64px);
}
h2 { font-size: clamp(26px, 4vw, 42px); }
h3 { font-size: 20px; }
.lead {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 18px;
  color: var(--muted);
}
.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-panel, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.panel { box-shadow: none; }
.aptitude-guide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 100%;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 62%, transparent), transparent),
    var(--surface);
}
.guide-kicker {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}
.guide-steps {
  display: grid;
  gap: 10px;
}
.guide-steps div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.guide-steps b {
  color: var(--brand);
  font-size: 14px;
}
.guide-steps span { color: var(--muted); }
.aptitude-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.aptitude-summary div {
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}
.aptitude-summary strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  color: var(--brand);
}
.aptitude-summary span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 92px;
}
.stat strong {
  display: block;
  font-size: 28px;
  color: var(--brand);
}
.source-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.source-note a {
  color: var(--brand-2);
  font-weight: 700;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 760px;
}
.tools {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 10px;
  margin: 18px 0;
}
.input, .select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  min-height: 46px;
  padding: 0 12px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 22px;
}
.filter-btn {
  border-color: var(--line);
  background: var(--surface);
}
.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  box-shadow: 0 8px 20px rgba(20, 40, 32, .05);
}
.job-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.job-card p { margin: 10px 0 0; color: var(--muted); }
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.fact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  background: color-mix(in srgb, var(--surface-2) 58%, transparent);
  min-height: 58px;
}
.fact span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.fact b { font-size: 14px; }
.card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-btn {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.mini-btn.saved {
  background: color-mix(in srgb, var(--brand) 16%, var(--surface));
  border-color: var(--brand);
  font-weight: 800;
}
.test-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: start;
  gap: 22px;
}
.aptitude-test-section {
  padding-top: 46px;
}
.test-panel,
.result-panel {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 34%, transparent), transparent 140px),
    color-mix(in srgb, var(--surface) 94%, transparent);
}
.test-progress {
  position: sticky;
  top: 69px;
  z-index: 2;
  margin: -22px -22px 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
}
.test-progress div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.test-progress span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  overflow: hidden;
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width .2s ease;
}
.result-panel {
  position: sticky;
  top: 92px;
}
.result-panel h3 {
  margin-top: 10px;
  font-size: 26px;
}
.question {
  padding: 18px;
  margin: 0 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  min-inline-size: 0;
}
.question:last-child { margin-bottom: 0; }
.question legend {
  padding: 0;
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.45;
}
.question legend span:last-child {
  display: inline;
}
.question-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 11%, var(--surface-2));
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}
.question p {
  margin: 0 0 10px;
  font-weight: 700;
}
.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.scale label {
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 70px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: color-mix(in srgb, var(--surface-2) 48%, var(--surface));
  padding: 8px 6px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(20, 40, 32, .04);
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.scale label:hover {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(20, 40, 32, .08);
}
.scale input {
  position: absolute;
  opacity: 0;
}
.scale label:has(input:checked) {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 92%, white), var(--brand));
  color: #ffffff;
  border-color: var(--brand);
  font-weight: 800;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--brand) 24%, transparent);
}
.scale small {
  display: block;
  color: inherit;
  font-size: 12px;
  line-height: 1.2;
}
.scale-score {
  display: block;
  font-size: 18px;
  font-weight: 900;
}
.form-actions {
  position: sticky;
  bottom: 0;
  margin: 0 -22px -22px;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
}
.result-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.result-category {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.result-category:first-of-type {
  margin-top: 14px;
}
.category-title {
  margin: 0;
  font-size: 14px;
  color: var(--brand);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  opacity: 0.5;
}
.result-item {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.result-item.clickable {
  cursor: pointer;
}
.result-item.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 40, 32, .08);
  border-color: var(--brand);
  background: var(--surface);
}
.result-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.result-more {
  margin-top: 10px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
  text-align: right;
  opacity: 0.7;
}
.result-item:hover .result-more {
  opacity: 1;
}
.trait-summary {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), var(--surface));
}
.result-rank {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
.bar {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  overflow: hidden;
  margin-top: 8px;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--brand);
}
.fav-empty { color: var(--muted); margin: 0; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.info,
.guide-card,
.content-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
}
.guide-card {
  min-height: 220px;
}
.guide-card h3 {
  margin-top: 14px;
}
.guide-card p {
  margin: 10px 0 0;
}
.info p, .info li, .guide-card p, .content-panel p, .content-panel li, .plain-list { color: var(--muted); }
.plain-list { padding-left: 20px; }
.page-section {
  padding-top: 72px;
}
.narrow {
  max-width: 860px;
}
.content-panel {
  margin-top: 28px;
}
.content-panel h2 {
  margin-top: 28px;
  font-size: 24px;
}
.content-panel h2:first-child {
  margin-top: 0;
}
.content-panel a {
  color: var(--brand-2);
  font-weight: 800;
}
footer {
  padding: 34px 20px;
  background: var(--text);
  color: var(--bg);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
footer a { color: var(--bg); font-weight: 700; }
.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
dialog {
  width: min(720px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 0;
}
dialog::backdrop { background: rgba(0, 0, 0, .45); }
.modal-head, .modal-body { padding: 18px; }
.modal-head {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.similar-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.detail-summary {
  margin-top: 0;
  color: var(--muted);
}
.detail-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.detail-block h3,
.detail-subtitle {
  font-size: 18px;
}
.detail-block p {
  margin: 8px 0 0;
  color: var(--muted);
}
.detail-subtitle {
  margin-top: 20px;
}

@media (max-width: 920px) {
  .hero-grid, .test-layout { grid-template-columns: 1fr; }
  .job-grid, .info-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-panel,
  .test-progress,
  .form-actions {
    position: static;
  }
  .aptitude-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .nav {
    align-items: start;
    flex-direction: column;
    padding-block: 14px;
  }
  nav ul { justify-content: flex-start; }
  .section, .hero { padding-inline: 14px; }
  .section-head { display: block; }
  .tools, .job-grid, .info-grid, .guide-grid, .stat-grid, .facts { grid-template-columns: 1fr; }
  .job-card { min-height: auto; }
  .guide-card { min-height: auto; }
  .scale { grid-template-columns: repeat(5, minmax(42px, 1fr)); }
  .scale label {
    min-height: 64px;
    padding-inline: 4px;
  }
  .scale small { font-size: 10px; }
  .question-number {
    width: 30px;
    height: 30px;
  }
  .aptitude-summary { grid-template-columns: 1fr; }
}
