/* 연구비 지원 성장 단계별 지원 체계 차트 — 4단계 그리드(1칸 = 1단계) */
.stage_chart { --sg-line:#ebe5df; --sg-ink:#222; margin-top:50px; color:var(--sg-ink); }

/* 단계 축 */
.stage_axis { position:relative; display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; margin-bottom:18px; padding-bottom:6px; }
.stage_axis::before { content:''; position:absolute; left:0; right:0; bottom:12px; height:2px; border-radius:2px; background:linear-gradient(90deg, #f1dbe6 0%, #d8579a 55%, #c8005f 100%); }
.stage_step { position:relative; display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; }
.stage_step em { font-style:normal; font-size:16px; font-weight:700; letter-spacing:-0.32px; line-height:1.3; word-break:keep-all; }
.stage_step::after { content:''; width:14px; height:14px; box-sizing:border-box; border-radius:50%; background:#fff; border:3px solid #c8005f; }
.stage_step.s1::after { border-color:#e3a3c2; }
.stage_step.s2::after { border-color:#d8579a; }
.stage_step.s3::after { border-color:#cf3a85; }

/* 카드 그리드 */
.stage_grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; }
.stage_card { --sg-accent:#c8005f; --sg-soft:#f7dde9; --sg-chip:#b0004f; position:relative; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:8px; min-height:92px; box-sizing:border-box; padding:24px 22px; background:#fff; border:1px solid var(--sg-line); border-radius:12px; overflow:hidden; }
.stage_card::before { content:''; position:absolute; left:0; top:0; right:0; height:4px; background:var(--sg-accent); }
.stage_range { display:inline-block; padding:3px 10px; border-radius:20px; background:var(--sg-soft); color:var(--sg-chip); font-size:13px; font-weight:700; letter-spacing:-0.26px; }
.stage_tit { font-size:18px; font-weight:700; line-height:1.35; letter-spacing:-0.36px; word-break:keep-all; }

/* 단계별 색 (배지 글자색은 명도대비 4.5:1 이상) */
.stage_card.band1 { --sg-accent:#d9769f; --sg-soft:#fbf0f5; --sg-chip:#a8346a; }
.stage_card.band2 { --sg-accent:#cf3a85; --sg-soft:#f9e6ef; --sg-chip:#a8175f; }
.stage_card.band3 { --sg-accent:#c8005f; --sg-soft:#f7dde9; --sg-chip:#b0004f; }
.stage_card.band34 { --sg-soft:#f7dde9; --sg-chip:#b0004f; background:#fdf9fb; }
.stage_card.band34::before { background:linear-gradient(90deg, #c8005f, #9e004b); }

/* 신규 임용 ~ 승진 이후 묶음 카드 */
.stage_list { display:grid; grid-template-columns:repeat(2, 1fr); gap:8px; width:100%; margin-top:4px; }
.stage_item { display:flex; align-items:center; gap:10px; box-sizing:border-box; min-height:58px; padding:12px 16px; background:#fff; border:1px solid #f0e3ea; border-radius:8px; font-size:17px; font-weight:700; line-height:1.35; letter-spacing:-0.34px; word-break:keep-all; }
.stage_item::before { content:''; flex:none; width:6px; height:6px; border-radius:50%; background:#c8005f; }

/* 배치 */
.stage_card.c_pioneer { grid-column:1; grid-row:1; }
.stage_card.c_piuri   { grid-column:2; grid-row:1; }
.stage_card.c_newfac  { grid-column:3; grid-row:1; }
.stage_card.c_faculty { grid-column:3 / 5; grid-row:2; }

@media screen and (max-width:1024px) {
  .stage_step em { font-size:14px; }
  .stage_card { padding:20px 18px; }
  .stage_tit { font-size:16px; }
  .stage_item { font-size:15px; }
}
@media screen and (max-width:768px) {
  .stage_axis { display:none; }
  .stage_grid { grid-template-columns:1fr; gap:10px; }
  .stage_card[class*="c_"] { grid-column:auto; grid-row:auto; min-height:0; padding:18px 18px 16px; }
  .stage_list { grid-template-columns:1fr; }
  .stage_item { min-height:0; font-size:14px; }
}