/* 사람추이 공개 화면 — 흰 바탕, 짙은 남색 글자, 가는 선. 장식보다 내용. (ezoms 소개 페이지 스타일) */
:root {
  color-scheme: light;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ink: #1c2230;
  --ink-2: #353c4b;
  --ink-3: #4a5263;
  --ink-4: #8a91a0;
  --paper: #ffffff;
  --mist: #f3f2ef;
  --proof: #eef0f2;
  --rule: #d9dce1;
  --hair: #e6e8eb;
  --blue: #1f4fa3;
  --green: #2f7a4a;
  --amber: #a5661b;
  --red: #b4322f;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.65; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.025em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; }
.num, .tnum { font-variant-numeric: tabular-nums; }

/* ---------- 머리말 ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 4px;
  height: 64px; padding: 0 max(var(--gutter), (100% - var(--wide)) / 2);
  background: #fff; border-bottom: 1px solid var(--hair);
}
.logo { display: flex; align-items: center; gap: 9px; margin-right: auto; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: var(--ink); color: #fff; }
.logo-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 6px 12px; color: var(--ink-3); font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-cta { margin-left: 12px; padding: 7px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.nav-cta:hover { background: #000; }
.burger { display: none; position: relative; width: 40px; height: 40px; margin-left: 8px; border: 0; background: none; cursor: pointer; }
.burger span { position: absolute; left: 11px; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s, top .2s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
body.menu-open .burger span:first-child { top: 19px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 19px; transform: rotate(-45deg); }
.sheet { position: fixed; inset: 64px 0 0; z-index: 25; display: none; flex-direction: column; padding: 8px var(--gutter) 40px; background: #fff; }
.sheet a { padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 18px; font-weight: 600; }
body.menu-open .sheet { display: flex; }

/* ---------- 글자 ---------- */
.eyebrow { display: block; margin-bottom: 14px; color: var(--ink-4); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.display { font-size: clamp(34px, 5vw, 56px); line-height: 1.18; font-weight: 750; letter-spacing: -.035em; }
.h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.22; font-weight: 750; letter-spacing: -.03em; }
.h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; font-weight: 750; letter-spacing: -.03em; }
.h3 { font-size: 19px; font-weight: 700; }
.lede { margin-top: 16px; max-width: 40em; color: var(--ink-3); font-size: 17px; line-height: 1.75; }
.muted { color: var(--ink-4); }
.small { font-size: 13px; }

/* ---------- 버튼 ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #000; border-color: #000; }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: var(--mist); }
.pill-sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.pill[disabled] { opacity: .45; cursor: default; }
.link-arrow { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--ink); }

/* ---------- 섹션 ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--hair); }
.section.mist { background: var(--mist); border-top: 0; }
.section.tight { padding: clamp(36px, 5vw, 56px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--hair); }
.page-head .lede { margin-top: 12px; font-size: 16px; }

/* ---------- 홈 카드 ---------- */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.card { display: flex; flex-direction: column; gap: 4px; padding: 20px 18px 18px 0; border-bottom: 1px solid var(--hair); min-width: 0; }
.card + .card { padding-left: 18px; border-left: 1px solid var(--hair); }
.card-name { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.card-value { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.card-unit { margin-left: 2px; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.card-when { font-size: 12.5px; color: var(--ink-4); }
.card-delta { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card-spark { height: 44px; margin: 8px 0 6px; }
.card-src { margin-top: auto; font-size: 12px; color: var(--ink-4); }
.card-src a { border-bottom: 1px solid var(--rule); }
.card.waiting .card-value { font-size: 18px; color: var(--ink-4); font-weight: 600; }
.up { color: var(--red); }
.down { color: var(--blue); }
.flat { color: var(--ink-4); }

/* 대표 비교 예시 */
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.example { display: block; padding: 22px 24px 24px 0; border-bottom: 1px solid var(--hair); }
.example:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--hair); }
.example h3 { font-size: 17.5px; font-weight: 700; }
.example p { margin-top: 6px; color: var(--ink-3); font-size: 15px; line-height: 1.7; }
.example .go { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.example:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* 두 줄 설명 목록 */
.points { border-top: 1.5px solid var(--ink); }
.points > div { padding: 20px 0 22px; border-bottom: 1px solid var(--hair); }
.points h3 { font-size: 17px; font-weight: 700; }
.points p { margin-top: 6px; max-width: 46em; color: var(--ink-3); font-size: 15.5px; line-height: 1.75; }
.points b.n { display: inline-block; min-width: 28px; color: var(--ink-4); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 조회 조건 ---------- */
.controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 18px; padding: 20px 0 22px; border-bottom: 1px solid var(--hair); }
.control { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.control > span { font-size: 12.5px; font-weight: 600; color: var(--ink-4); }
.control.wide { grid-column: span 2; }
.select, .input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 6px; background: #fff;
  font: inherit; font-size: 14.5px; color: var(--ink);
}
.select { appearance: none; padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234a5263' stroke-width='1.5'/%3E%3C/svg%3E") right 12px center no-repeat; }
.select:focus, .input:focus { outline: none; border-color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; gap: 2px; background: #fff; }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13.5px; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 0; }
.toolbar .spacer { flex: 1; }

/* ---------- 차트 상자 ---------- */
.chart-box { padding: 18px 0 8px; }
.chart-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.chart-title b { font-size: 16px; }
.chart-title span { color: var(--ink-4); font-size: 13px; }
.chart { min-height: 320px; }
.legend-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; color: var(--ink-3); font-size: 13px; }
.legend-line i { display: inline-block; width: 18px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 2px solid var(--ink-3); }
.legend-line i.dash { border-top-style: dashed; }
.legend-line i.dot { width: 8px; height: 8px; border: 0; border-radius: 99px; background: var(--ink-3); }

/* ---------- 분석 패널 ---------- */
.analysis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); padding: 28px 0 8px; }
.panel-t { padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); font-size: 16px; font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; }
.kv > * { padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.kv dt { color: var(--ink-3); padding-right: 18px; }
.kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.note { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--ink); background: var(--mist); color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.note.warn { border-left-color: var(--amber); }
.note.small { font-size: 13px; }

/* ---------- 표 ---------- */
.table-wrap { border-top: 1.5px solid var(--ink); overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.data thead th { padding: 11px 12px; text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-4); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.data td, .data tbody th { padding: 10px 12px; border-bottom: 1px solid var(--hair); text-align: left; color: var(--ink-2); vertical-align: middle; }
.data tbody th { font-weight: 600; color: var(--ink); }
.data thead th:first-child, .data td:first-child, .data tbody th:first-child { padding-left: 0; }
.data .r { text-align: right; }
.data .c { text-align: center; }
.data td.rank { width: 1%; color: var(--ink-4); white-space: nowrap; }
.data tbody tr:hover td, .data tbody tr:hover th { background: #fafaf8; }
.data a.row-link { font-weight: 600; color: var(--ink); }
.data a.row-link:hover { border-bottom: 1.5px solid var(--ink); }
.data .empty-row td { padding: 40px 0; text-align: center; color: var(--ink-4); }
.tag { display: inline-block; padding: 1px 7px; border: 1px solid currentColor; border-radius: 3px; font-size: 11.5px; font-weight: 600; line-height: 18px; color: var(--ink-3); white-space: nowrap; }
.tag.blue { color: var(--blue); } .tag.green { color: var(--green); } .tag.amber { color: var(--amber); } .tag.red { color: var(--red); }

/* 탭 줄 */
.tabs { display: flex; flex-wrap: wrap; gap: 0 22px; border-bottom: 1px solid var(--hair); margin-bottom: 0; }
.tabs button { height: 44px; padding: 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font: inherit; font-size: 15px; color: var(--ink-3); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }

/* ---------- 직업 상세 / 추천 카드 ---------- */
.detail-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding: 28px 0 16px; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.figure { padding: 18px 20px 14px 0; }
.figure strong { display: block; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.figure span { display: block; margin-top: 6px; color: var(--ink-3); font-size: 13.5px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13.5px; background: #fff; }
.chip button { width: 22px; height: 22px; border: 0; border-radius: 99px; background: var(--mist); cursor: pointer; font: inherit; line-height: 1; color: var(--ink-3); }
.rec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; border-top: 1.5px solid var(--ink); }
.rec { padding: 20px 0 22px; border-bottom: 1px solid var(--hair); }
.rec h3 { font-size: 18px; font-weight: 700; }
.rec .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rec dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 6px 10px; margin: 14px 0 0; font-size: 14px; }
.rec dt { color: var(--ink-4); }
.rec dd { margin: 0; color: var(--ink-2); }

/* 상태 표시 */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 0; color: var(--ink-4); font-size: 14px; }
.loading::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--rule); border-top-color: var(--ink); border-radius: 99px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ph { display: inline-block; height: .9em; border-radius: 3px; background: var(--proof); vertical-align: middle; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .5; } }
.empty { padding: 48px 0; text-align: center; color: var(--ink-4); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translateX(-50%); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }

/* ---------- 꼬리말 ---------- */
.foot { padding: 36px 0 48px; border-top: 1px solid var(--hair); color: var(--ink-4); font-size: 13px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--ink-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a:hover { color: var(--ink); }
.foot p { margin-top: 10px; line-height: 1.75; }

/* ---------- 질문 ---------- */
.faq { border-top: 1.5px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; font-size: 16px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 22px; color: var(--ink-4); }
.faq-item[open] summary::after { content: '−'; }
.faq-item div { margin: 0 0 20px; max-width: 48em; line-height: 1.8; color: var(--ink-3); font-size: 15px; }
.faq-item div p + p { margin-top: 8px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1060px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card:nth-child(3n+1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .analysis { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .examples { grid-template-columns: minmax(0, 1fr); }
  .example:nth-child(even) { padding-left: 0; border-left: 0; }
}
@media (max-width: 767px) {
  .nav { height: 56px; }
  .sheet { inset: 56px 0 0; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card + .card { padding: 16px 12px 14px 0; border-left: 0; }
  .card:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--hair); }
  .control.wide { grid-column: auto; }
  .data { font-size: 13.5px; }
  .data td, .data tbody th, .data thead th { padding-left: 8px; padding-right: 8px; }
  .hide-m { display: none; }
  .chart { min-height: 260px; }
}
