/* ==========================================================================
   외인9단 (9dan) — 웹 디자인 시스템
   출처: Claude Design "9dan Screens.dc.html" 의 ChromeWindow(데스크탑 웹) 화면
   화면: 3a 랜딩 · 3b 공고목록 · 3c 공고상세 · 3d 팀 · 3e 커뮤니티 · 3f 기업 대시보드
         4a 공고등록 · 4b 공고관리 · 4c 지원자상세 · 4d 기업회원전환 · 4e 이력서관리
         4f 팀등록 · 5f 결제센터
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 토큰
   -------------------------------------------------------------------------- */
:root {
  /* 브랜드 블루 */
  --blue:            #2563EB;  /* primary / 버튼 배경 */
  --blue-strong:     #1D4ED8;  /* primary 텍스트·아이콘 */
  --blue-soft:       #E8F0FE;  /* 소프트 배경 (배지·칩) */
  --blue-soft-line:  #C7DAFB;  /* 소프트 테두리 · 아바타 */
  --blue-tint:       #F5F9FF;  /* 안내 패널 배경 */
  --blue-tint-line:  #D8E5FB;  /* 안내 패널 테두리 */
  --blue-tint-ink:   #37506E;  /* 안내 패널 본문 */
  --blue-mid:        #93B8F5;  /* 차트 중간 */
  --blue-track:      #DCE7FA;  /* 프로그레스 트랙 */

  /* 잉크 */
  --ink:             #16202E;
  --ink-2:           #4A5666;
  --ink-3:           #7B8798;
  --ink-4:           #64748B;

  /* 표면 */
  --bg:              #F7F9FC;
  --surface:         #FFFFFF;
  --surface-2:       #F0F4FA;  /* 태그 배경 */
  --surface-3:       #EEF1F5;  /* 중립 배지 배경 */

  /* 선 */
  --line:            #E2E8F1;
  --line-2:          #EDF1F7;  /* 내부 구분선 */
  --line-3:          #D5DCE7;
  --line-4:          #C5CEDA;  /* 점선 · 미선택 체크박스 */

  /* 상태 */
  --warn:            #B45309;  --warn-bg:   #FBEEDD;
  --ok:              #15803D;  --ok-bg:     #E4F3E9;
  --danger:          #DC5B4E;  --danger-2:  #C24437;  --danger-line: #F0D9D6;
  --violet:          #6D4FB3;  --violet-bg: #E2D6F5;
  --amber-av:        #F6D9A8;
  --green-av:        #C7E7CF;

  /* 기업(biz) 다크 사이드바 */
  --biz-nav:         #16202E;
  --biz-nav-ink:     #8FA3C0;
  --biz-nav-active:  rgba(37, 99, 235, 0.35);

  /* 반경 */
  --r-xs: 5px;  --r-sm: 6px;  --r-8: 8px;  --r-10: 10px; --r-11: 11px;
  --r-12: 12px; --r-13: 13px; --r-14: 14px; --r-16: 16px; --r-18: 18px;
  --r-full: 999px;

  /* 레이아웃 */
  --page-pad: 48px;
  --page-max: 1184px;   /* 1280 캔버스 - 좌우 48px */
  --header-h: 64px;
  --sidebar-w: 230px;

  /* 그림자 */
  --shadow-card:  0 8px 20px rgba(37, 99, 235, 0.10);
  --shadow-float: 0 16px 40px rgba(22, 32, 46, 0.08);
  --shadow-pop:   0 12px 28px rgba(37, 99, 235, 0.12);

  --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
          'Malgun Gothic', 'Pretendard', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   2. 리셋 / 기본
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-white { background: var(--surface); }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

/* [hidden] 은 브라우저 기본값이 display:none 이지만, .stack · .row · .card 처럼
   display 를 지정한 클래스가 함께 붙으면 그쪽이 이겨서 그대로 보인다.
   토글로 감추는 영역이 많아 전역에서 한 번 눌러 둔다. */
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   3. 레이아웃
   -------------------------------------------------------------------------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.wrap--narrow { max-width: 720px; }

.main { flex: 1; padding-block: 24px 56px; }

/* 2·3 패널 그리드 */
.split          { display: grid; gap: 24px; align-items: start; }
.split--filter  { grid-template-columns: 280px 1fr; }   /* 3b */
.split--detail  { grid-template-columns: 1fr 340px; }   /* 3c · 4c */
.split--teams   { grid-template-columns: 400px 1fr; }   /* 3d */
.split--resume  { grid-template-columns: 360px 1fr; }   /* 4e */
.split--form    { grid-template-columns: 1fr 400px; }   /* 4a */
.split--create  { grid-template-columns: 1fr 380px; }   /* 4f */
.split--feed    { grid-template-columns: 220px 1fr 300px; } /* 3e */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.stack    { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.row      { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.spacer   { flex: 1; }

/* --------------------------------------------------------------------------
   4. 타이포
   -------------------------------------------------------------------------- */
.h-page   { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.h-hero   { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.18; }
.h-lg     { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.h-md     { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.h-sm     { font-size: 19px; font-weight: 800; }
.h-xs     { font-size: 15.5px; font-weight: 800; }
.h-2xs    { font-size: 14px; font-weight: 800; }

.lead     { font-size: 17px; color: var(--ink-2); line-height: 1.65; }
.body     { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.meta     { font-size: 13px; color: var(--ink-3); }
.meta-sm  { font-size: 12.5px; color: var(--ink-3); }
.hint     { font-size: 12px; color: var(--ink-3); }

.t-blue   { color: var(--blue-strong); }
.t-warn   { color: var(--warn); }
.t-ok     { color: var(--ok); }
.t-danger { color: var(--danger-2); }
.t-muted  { color: var(--ink-3); }
.t-bold   { font-weight: 700; }
.t-center { text-align: center; }
.money    { color: var(--blue-strong); font-weight: 700; }

/* --------------------------------------------------------------------------
   5. 브랜드 로고
   -------------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: inherit; }
.logo:hover { text-decoration: none; }

.logo__mark {
  width: 30px; height: 30px; border-radius: var(--r-8);
  background: var(--blue);
  display: grid; place-items: center;
  color: #fff; letter-spacing: -0.04em; line-height: 1;
  flex: none;
}
.logo__mark span { display: flex; align-items: baseline; }
.logo__mark b    { font-size: 16px; font-weight: 900; }
.logo__mark i    { font-size: 11px; font-weight: 900; font-style: normal; }

.logo__word { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }

.logo--lg .logo__mark { width: 34px; height: 34px; border-radius: 9px; }
.logo--lg .logo__mark b { font-size: 18px; }
.logo--lg .logo__mark i { font-size: 12px; }
.logo--lg .logo__word { font-size: 18px; }

.logo__stack { display: flex; flex-direction: column; line-height: 1.2; }
.logo__stack .logo__word { font-size: 15px; }
.logo__sub {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   6. 공개 사이트 헤더 (9dan.kr)
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  position: sticky; top: 0; z-index: 40;
}
.topbar__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.topbar__left { display: flex; align-items: center; gap: 28px; }

.topnav { display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.topnav a { color: var(--ink-2); }
.topnav a:hover { color: var(--ink); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--blue-strong); font-weight: 700; }

.topbar__right { display: flex; align-items: center; gap: 14px; }

.bell { position: relative; display: grid; place-items: center; background: none; border: 0; padding: 4px; cursor: pointer; }
.bell__dot {
  position: absolute; top: 0; right: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 1.5px solid var(--surface);
}

/* 랜딩 전용 헤더(68px, 더 넓은 메뉴) */
.topbar--landing .topbar__inner { height: 68px; }
.topbar--landing .topnav { gap: 28px; font-size: 14.5px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  border-radius: var(--r-8);
}
.nav-toggle:hover { background: var(--surface-2); }

/* --------------------------------------------------------------------------
   7. 기업(biz) 다크 사이드바
   -------------------------------------------------------------------------- */
.biz-layout {
  min-height: 100vh;
  display: grid; grid-template-columns: var(--sidebar-w) 1fr;
}

.biz-nav {
  background: var(--biz-nav);
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 14px;
  position: sticky; top: 0; height: 100vh;
}
.biz-nav__brand { display: flex; align-items: center; gap: 9px; padding: 6px 10px 20px; }
.biz-nav__brand .logo__word { color: #fff; }
.biz-nav__brand .logo__sub  { color: var(--biz-nav-ink); }

.biz-nav a {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--biz-nav-ink);
  border-radius: var(--r-10); padding: 11px 12px;
}
.biz-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.biz-nav a[aria-current="page"] { color: #fff; font-weight: 700; background: var(--biz-nav-active); }
.biz-nav a svg { flex: none; }

.biz-nav__me {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.biz-nav__me-name { display: flex; flex-direction: column; line-height: 1.25; }
.biz-nav__me-name b { font-size: 13px; font-weight: 700; color: #fff; }
.biz-nav__me-name span { font-size: 11px; color: var(--biz-nav-ink); }

.biz-main { padding: 26px 32px 56px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* 상단 바만 있는 기업 화면(4a 공고등록 · 4c 지원자상세 · 4d 가입) */
.appbar {
  background: var(--surface); border-bottom: 1px solid var(--line-2);
  position: sticky; top: 0; z-index: 40;
}
.appbar__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.appbar__title { display: flex; align-items: center; gap: 12px; }
.appbar__title .h-xs { font-size: 17px; }

.back-link { display: grid; place-items: center; padding: 4px; color: var(--ink); }

/* --------------------------------------------------------------------------
   8. 카드 / 패널
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-16);
}
.card--sm  { border-radius: var(--r-14); }
.card--pad { padding: 20px; }
.card--pad-lg { padding: 26px 28px; }
.card--flat { border-radius: var(--r-12); border-color: var(--line-2); padding: 14px 16px; }
.card--selected {
  border: 1.5px solid var(--blue);
  box-shadow: var(--shadow-card);
}
.card--float { box-shadow: var(--shadow-float); }

.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-2);
}

.panel {
  background: var(--blue-tint);
  border: 1px solid var(--blue-tint-line);
  border-radius: var(--r-14);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.panel__title { font-size: 13.5px; font-weight: 800; color: var(--blue-strong); }
.panel__body  { font-size: 13px; color: var(--blue-tint-ink); line-height: 1.6; }

.dashed {
  border: 1.5px dashed var(--line-4);
  border-radius: var(--r-14);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px;
  color: var(--blue-strong); font-size: 14px; font-weight: 700;
  cursor: pointer; width: 100%;
}
.dashed:hover { background: var(--blue-tint); border-color: var(--blue-soft-line); }
.dashed--sm { border-radius: var(--r-12); padding: 12px; font-size: 13.5px; }

/* --------------------------------------------------------------------------
   9. 버튼
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; line-height: 1;
  padding: 11px 20px; border-radius: var(--r-11);
  border: 1px solid transparent; background: none; color: var(--ink-2);
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-strong); }

.btn--outline { border: 1.5px solid var(--blue); color: var(--blue-strong); }
.btn--outline:hover { background: var(--blue-tint); }

.btn--ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); }

.btn--danger { border: 1px solid var(--danger-line); color: var(--danger-2); background: var(--surface); }
.btn--danger:hover { background: #FDF4F3; }

.btn--pill  { border-radius: var(--r-full); padding: 10px 20px; font-size: 14px; }
.btn--lg    { height: 50px; padding-inline: 24px; font-size: 15.5px; border-radius: var(--r-13); }
.btn--xl    { height: 52px; font-size: 15.5px; border-radius: var(--r-13); }
.btn--hero  { font-size: 16px; padding: 15px 28px; border-radius: var(--r-13); }
.btn--sm    { font-size: 13px; padding: 9px 14px; border-radius: var(--r-10); }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   10. 배지 · 칩 · 태그
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--ink-4); white-space: nowrap;
}
.badge--blue  { background: var(--blue-soft); color: var(--blue-strong); }
.badge--green { background: var(--ok-bg);     color: var(--ok); }
.badge--amber { background: var(--warn-bg);   color: var(--warn); }
.badge--md    { font-size: 12px; padding: 4px 10px; }

/* 상태 pill (접수 · 검토 · 합격 · 거절) */
.status {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: var(--r-full);
  background: var(--surface-3); color: var(--ink-4); white-space: nowrap;
}
.status--received { background: var(--blue-soft); color: var(--blue); }
.status--review   { background: var(--warn-bg);   color: var(--warn); }
.status--passed   { background: var(--ok-bg);     color: var(--ok); }
.status--rejected { background: var(--surface-3); color: var(--ink-4); }

/* 필터 칩 (토글 가능) */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 11px; border-radius: var(--r-full);
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--blue-soft-line); }
.chip[aria-pressed="true"], .chip.is-on {
  color: var(--blue-strong); font-weight: 700;
  background: var(--blue-soft); border-color: var(--blue-soft-line);
}
.chip--lg { font-size: 13px; padding: 8px 14px; }

/* 정적 태그(복지 등) */
.tag {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); padding: 4px 9px; border-radius: var(--r-full);
  white-space: nowrap;
}
.tag--md { font-size: 12.5px; padding: 5px 12px; }
.tag--blue { background: var(--blue-soft); color: var(--blue-strong); font-weight: 700; }
.tag--dashed { background: none; border: 1px dashed var(--line-4); color: var(--ink-3); font-weight: 700; }

/* --------------------------------------------------------------------------
   11. 폼
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field__label .req { color: var(--danger); }
.field__row { display: flex; align-items: baseline; justify-content: space-between; }
.field__hint { font-size: 12px; color: var(--ink-3); }
.field__hint--ok { color: var(--blue-strong); font-weight: 600; }

.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-12);
  background: var(--surface); color: var(--ink);
  padding: 13px 15px; font-size: 14.5px; line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.65; color: var(--ink-2); }
.textarea--tall { min-height: 100px; }

.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%237B8798' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

/* 검색 인풋 */
.search {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-12); padding: 0 14px;
}
.search svg { flex: none; }
.search input {
  flex: 1; border: 0; background: none; outline: none;
  padding: 11px 0; font-size: 14px;
}
.search input::placeholder { color: var(--ink-3); }
.search:focus-within { border-color: var(--blue); }

/* 체크박스 */
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 17px; height: 17px; border-radius: var(--r-xs); flex: none;
  border: 1.5px solid var(--line-4); background: var(--surface);
  display: grid; place-items: center;
  transition: background-color .15s, border-color .15s;
}
.check__box svg { opacity: 0; }
.check input:checked + .check__box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 라디오 (결제 수단) */
.radio-row {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line); border-radius: var(--r-12);
  padding: 13px 14px; cursor: pointer;
}
.radio-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-row__dot {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line-4); background: var(--surface);
}
.radio-row:has(input:checked) { border: 1.5px solid var(--blue); background: var(--blue-tint); }
.radio-row:has(input:checked) .radio-row__dot { border: 5.5px solid var(--blue); }

/* 카드형 선택지 (가입 방식) */
.opt-card {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--line); border-radius: var(--r-12);
  padding: 13px 15px; cursor: pointer; background: var(--surface);
}
.opt-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-card__name { font-size: 14px; font-weight: 700; }
.opt-card__desc { font-size: 12px; color: var(--ink-3); }
.opt-card:has(input:checked) { border: 1.5px solid var(--blue); background: var(--blue-tint); }
.opt-card:has(input:checked) .opt-card__name { color: var(--blue-strong); }
.opt-card:has(input:checked) .opt-card__desc { color: var(--blue-tint-ink); }

/* 세그먼트 토글 (이력서 언어) */
.segment {
  display: inline-flex; gap: 4px;
  border: 1px solid var(--line); border-radius: var(--r-full); padding: 3px;
}
.segment button {
  border: 0; background: none; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  padding: 5px 12px; border-radius: var(--r-full);
}
.segment button[aria-selected="true"] { background: var(--blue); color: #fff; font-weight: 700; }
.segment button.is-add { color: var(--ink-3); font-weight: 700; }

/* --------------------------------------------------------------------------
   12. 아바타
   -------------------------------------------------------------------------- */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  background: var(--blue-soft-line); color: var(--blue-strong);
}
.avatar--sq { border-radius: var(--r-10); }
.avatar--28 { width: 28px; height: 28px; font-size: 10px; }
.avatar--32 { width: 32px; height: 32px; font-size: 11px; }
.avatar--40 { width: 40px; height: 40px; font-size: 13px; }
.avatar--44 { width: 44px; height: 44px; font-size: 13px; border-radius: var(--r-11); }
.avatar--64 { width: 64px; height: 64px; font-size: 22px; }

.avatar--amber  { background: var(--amber-av);  color: var(--warn); }
.avatar--green  { background: var(--green-av);  color: var(--ok); }
.avatar--violet { background: var(--violet-bg); color: var(--violet); }
.avatar--blue-l { background: var(--blue-soft); color: var(--blue-strong); }
.avatar--gray   { background: var(--surface-3); color: var(--ink-4); }

/* --------------------------------------------------------------------------
   13. 공고 카드
   -------------------------------------------------------------------------- */
.job {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-14); padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  color: inherit;
}
a.job { transition: border-color .15s, box-shadow .15s, transform .15s; }
a.job:hover {
  text-decoration: none; border-color: var(--blue-soft-line);
  box-shadow: var(--shadow-card); transform: translateY(-1px);
}
.job__top   { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job__corp  { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.job__title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.job__meta  { font-size: 13px; color: var(--ink-3); }
.job__tags  { display: flex; gap: 6px; flex-wrap: wrap; }
.job--float { border-radius: var(--r-16); padding: 20px; gap: 9px; box-shadow: var(--shadow-float); }
.job--float .job__title { font-size: 17px; }

/* --------------------------------------------------------------------------
   14. 통계 / 테이블 / 진행바
   -------------------------------------------------------------------------- */
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-14); padding: 18px;
  display: flex; flex-direction: column; gap: 5px;
}
.stat__label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.stat__value { font-size: 26px; font-weight: 800; }

.table { display: flex; flex-direction: column; }
.table__row {
  display: grid; align-items: center; gap: 12px;
  padding: 13px 20px; border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}
.table__row:last-child { border-bottom: 0; }
.table__head {
  padding: 10px 20px; border-bottom: 1px solid var(--line-2);
  font-size: 12px; font-weight: 700; color: var(--ink-3);
}
.table__cell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.table__cell-user span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.table__cell-user small { font-size: 11.5px; color: var(--ink-3); }

/* 지원자 테이블 · 결제 내역 컬럼 */
.cols--applicants { grid-template-columns: 2fr 1.6fr 1fr 1fr 0.9fr; }
.cols--billing    { grid-template-columns: 1.4fr 1.6fr 1fr 0.9fr 0.9fr; }

.progress {
  height: 7px; border-radius: var(--r-full);
  background: var(--blue-track); overflow: hidden; display: block;
}
.progress > span { display: block; height: 100%; background: var(--blue); border-radius: var(--r-full); }

/* 미니 막대 차트 (4b 최근 7일 조회) */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.spark i { width: 9px; border-radius: 2px; background: var(--blue-soft-line); display: block; }
.spark i.mid  { background: var(--blue-mid); }
.spark i.high { background: var(--blue); }

/* 위저드 스텝 */
.steps { display: flex; align-items: center; }
.steps__item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.steps__num {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--line); color: var(--ink-3);
  font-size: 13px; font-weight: 800;
}
.steps__bar { width: 56px; height: 2px; background: var(--line-3); margin: 0 10px; }
.steps__item.is-done .steps__num,
.steps__item.is-now  .steps__num { background: var(--blue); color: #fff; }
.steps__item.is-done, .steps__item.is-now { color: var(--blue-strong); font-weight: 700; }
.steps__bar.is-done { background: var(--blue); }

/* 이미지 플레이스홀더 */
.ph {
  background: repeating-linear-gradient(45deg, #DEE6F0 0 10px, #E8EEF6 10px 20px);
  display: grid; place-items: center; position: relative;
}
.ph--thumb { width: 96px; height: 72px; border-radius: var(--r-10); background-size: 16px 16px; }
.ph__label {
  font-family: var(--mono); font-size: 12px; color: var(--ink-4);
  background: rgba(255, 255, 255, .75); padding: 4px 10px; border-radius: var(--r-sm);
}
.ph__dots { position: absolute; bottom: 14px; right: 16px; display: flex; gap: 5px; }
.ph__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.ph__dots i.on { width: 14px; border-radius: var(--r-full); background: #fff; }

/* 정의형 목록 (근무조건) */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 14px; color: var(--ink-2); }
.dl > div {
  display: flex; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line-2); padding: 8px 0;
}
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; font-weight: 700; }

/* 리스트 아이템 (커뮤니티 사이드 · 비슷한 공고) */
.list-item { display: flex; flex-direction: column; gap: 3px; padding-bottom: 11px; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { padding-bottom: 0; border-bottom: 0; }
.list-item__title { font-size: 14px; font-weight: 700; }

/* 커뮤니티 사이드 메뉴 */
.sidemenu { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.sidemenu a { font-size: 14px; font-weight: 600; color: var(--ink-2); border-radius: 9px; padding: 10px 13px; }
.sidemenu a:hover { background: var(--surface-2); text-decoration: none; }
.sidemenu a[aria-current="page"] { color: var(--blue-strong); font-weight: 700; background: var(--blue-soft); }

/* 게시글 카드 */
.post { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; }
.post__title { font-size: 16px; font-weight: 700; line-height: 1.4; }
.post__body  { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.post__meta  { display: flex; gap: 12px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }

/* 히어로 (랜딩) */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding-block: 56px 48px;
  background: linear-gradient(180deg, #F5F9FF 0%, #FFFFFF 100%);
}
.hero__stats { display: flex; gap: 32px; margin-top: 8px; flex-wrap: wrap; }
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat b { font-size: 24px; font-weight: 800; color: var(--blue-strong); }
.hero__stat span { font-size: 13px; color: var(--ink-3); }
.hero__cards { display: flex; flex-direction: column; gap: 12px; }
.hero__cards > :nth-child(2) { margin-left: 36px; }

.feature {
  border: 1px solid var(--line); border-radius: var(--r-16); padding: 24px;
  display: flex; flex-direction: column; gap: 10px; background: var(--surface);
}
.feature__icon { width: 44px; height: 44px; border-radius: var(--r-12); display: grid; place-items: center; }
.feature__icon--blue  { background: var(--blue-soft); }
.feature__icon--green { background: var(--ok-bg); }
.feature__icon--amber { background: var(--warn-bg); }
.feature h3 { font-size: 16.5px; font-weight: 800; }
.feature p  { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* 푸터 */
.footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding-block: 28px; margin-top: auto;
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.footer__links a { color: var(--ink-3); }
.footer__copy { font-size: 12.5px; color: var(--ink-3); }

/* 빈 상태 */
.empty {
  display: none; flex-direction: column; align-items: center; gap: 8px;
  padding: 56px 20px; text-align: center;
  border: 1px dashed var(--line-4); border-radius: var(--r-16); background: var(--surface);
}
.empty.is-shown { display: flex; }
.empty__title { font-size: 15.5px; font-weight: 800; }

/* --------------------------------------------------------------------------
   15. 반응형
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --page-pad: 32px; }
  .split--feed { grid-template-columns: 200px 1fr; }
  .split--feed > :last-child { display: none; }
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 32px; }
  .h-hero { font-size: 36px; }
  .hero__cards > :nth-child(2) { margin-left: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split--filter, .split--detail, .split--teams,
  .split--resume, .split--form, .split--create, .split--feed { grid-template-columns: 1fr; }
  .split--feed > :last-child { display: flex; }
  .biz-layout { grid-template-columns: 1fr; }
  .biz-nav {
    position: static; height: auto; flex-direction: row; align-items: center;
    gap: 4px; overflow-x: auto; padding: 12px;
  }
  .biz-nav__brand { padding: 0 12px 0 4px; }
  .biz-nav__me, .biz-nav .spacer { display: none; }
  .biz-nav a { white-space: nowrap; padding: 9px 12px; }
}

@media (max-width: 760px) {
  :root { --page-pad: 20px; }
  .nav-toggle { display: grid; }
  .topnav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .topnav.is-open { display: flex; }
  .topnav a { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .topbar__left { gap: 0; flex: 1; }
  .grid-2, .grid-4, .dl { grid-template-columns: 1fr; }
  .h-hero { font-size: 30px; }
  .h-lg { font-size: 22px; }
  .biz-main { padding: 20px 20px 48px; }
  .table__row, .table__head { grid-template-columns: 1fr !important; gap: 6px; }
  .table__head { display: none; }
  .table__row { padding: 14px 16px; }
  .steps__bar { width: 20px; margin: 0 6px; }
  .steps__item span:last-child { display: none; }
}

@media print {
  .topbar, .biz-nav, .footer, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
