/* ================================================================
   SUB/step_line1 — 가로 단계 (번호·연도 알약) · 2026-11-26
   위: 작은 라벨 · 큰 제목 / 가운데: 가로선 + 번호 원(3글자↑ = 알약) + 단계 제목·설명 / 아래(선택): 강조 상자
   모양 = [설정] 창 CSS 변수 --hs-* (없으면 아래 기본값) · 모션 = .hs_wrap.hs_in (step_line1.js) · 767px 이하 = 세로 타임라인
   ================================================================ */
.step_line1 { width: 100%; float: left; }
.step_line1 .hs_wrap { width: 100%; float: left; }
.step_line1 .hs_empty { color: #9ca3af; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* ── 위 글 */
.step_line1 .hs_head { text-align: var(--hs-ha, center); word-break: keep-all; }
.step_line1 .hs_lab { color: var(--hs-lc2, #6b7280); font-size: var(--hs-lfs, 13px); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; line-height: 1.4; margin-bottom: 18px; }
.step_line1 .hs_tit { color: var(--hs-tc, #111111); font-size: var(--hs-tfs, 46px); font-weight: var(--hs-tfw, 700); line-height: 1.2; letter-spacing: -0.03em; }

/* ── 단계 */
.step_line1 .hs_steps { position: relative; display: grid; grid-template-columns: repeat(var(--hs-n, 3), minmax(0, 1fr)); column-gap: var(--hs-cg, 40px); margin-top: var(--hs-gap, 70px); }
.step_line1 .hs_line { position: absolute; z-index: 0; left: 0; right: 0; top: calc(var(--hs-bs, 48px) / 2); height: 1px; background: var(--hs-lc, #e5e7eb); transform-origin: left center; }
.step_line1 .hs_it { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; word-break: keep-all; }
.step_line1 .hs_badge { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: var(--hs-bs, 48px); height: var(--hs-bs, 48px); padding: 0; border-radius: 999px;
  border: 1px solid var(--hs-bc, #e5e7eb); background: var(--hs-bbg, #ffffff); color: var(--hs-nc, #555555); font-size: var(--hs-nfs, 13px); font-weight: 600; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.step_line1 .hs_badge.hs_pill { padding: 0 var(--hs-pp, 20px); }
.step_line1 .hs_it_t { margin-top: var(--hs-tg, 26px); color: var(--hs-ic, #111111); font-size: var(--hs-ifs, 19px); font-weight: var(--hs-ifw, 700); line-height: 1.35; letter-spacing: -0.02em; }
.step_line1 .hs_it_d { margin-top: 12px; max-width: var(--hs-dw, 300px); color: var(--hs-c, #6b7280); font-size: var(--hs-fs, 15px); line-height: var(--hs-lh, 165%); }
.step_line1 .empty_li { color: #9ca3af; grid-column: 1 / -1; text-align: center; }

/* ── 강조 상자 (선택) */
.step_line1 .hs_box { width: 100%; float: left; box-sizing: border-box; margin-top: var(--hs-xg, 60px); padding: var(--hs-xp, 28px) 24px; border-radius: var(--hs-xr, 12px); background: var(--hs-xbg, #e6f4f7); text-align: center; word-break: keep-all; }
.step_line1 .hs_box_t { color: var(--hs-xtc, #111111); font-size: var(--hs-xtfs, 20px); font-weight: 700; line-height: 1.35; }
.step_line1 .hs_box_d { margin-top: 6px; color: var(--hs-xdc, #6b7280); font-size: var(--hs-xdfs, 15px); letter-spacing: .03em; line-height: 1.5; }
.step_line1 .hs_box.hs_box_off { background: transparent; border: 1px dashed #cbd5e1; }

/* ── 모션 (기본 = 켜짐 · [설정] 모션 끄기) */
.step_line1 .hs_up { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.step_line1 .hs_tit.hs_up { transition-delay: .1s; }
.step_line1 .hs_box.hs_up { transition-delay: 1.1s; }
.step_line1 .hs_line { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.77, 0, .18, 1) .25s; }
.step_line1 .hs_badge { opacity: 0; transform: scale(.5); transition: opacity .5s ease, transform .7s cubic-bezier(.34, 1.56, .64, 1); transition-delay: var(--hs-d, .35s); }
.step_line1 .hs_it_t, .step_line1 .hs_it_d { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--hs-d, .35s) + .12s); }
.step_line1 .hs_in .hs_up, .step_line1 .hs_in .hs_badge, .step_line1 .hs_in .hs_it_t, .step_line1 .hs_in .hs_it_d { opacity: 1; transform: none; }
.step_line1 .hs_in .hs_line { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .step_line1 .hs_up, .step_line1 .hs_line, .step_line1 .hs_badge, .step_line1 .hs_it_t, .step_line1 .hs_it_d { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── 모바일 — 세로 타임라인 (왼쪽 번호 · 오른쪽 글) */
@media (max-width: 767px) {
  .step_line1 .hs_tit { font-size: max(24px, calc(var(--hs-tfs, 46px) * .6)); }
  .step_line1 .hs_lab { margin-bottom: 10px; }
  .step_line1 .hs_steps { grid-template-columns: minmax(0, 1fr); row-gap: 30px; margin-top: calc(var(--hs-gap, 70px) * .55); }
  /* 번호 칸 폭 고정(--hs-mcw) — 알약(2015)이 있어도 글 시작 줄이 같게 · 세로선은 번호 칸 가운데 */
  .step_line1 .hs_line { left: calc(var(--hs-mcw, 74px) / 2); right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: center top; }
  .step_line1 .hs_it { display: grid; grid-template-columns: var(--hs-mcw, 74px) minmax(0, 1fr); column-gap: 14px; align-items: start; text-align: left; }
  .step_line1 .hs_badge { grid-row: 1 / span 2; justify-self: center; max-width: var(--hs-mcw, 74px); }
  .step_line1 .hs_badge.hs_pill { padding: 0 10px; }
  .step_line1 .hs_it_t { margin-top: calc((var(--hs-bs, 48px) - 1.35em) / 2); font-size: max(16px, calc(var(--hs-ifs, 19px) * .9)); }
  .step_line1 .hs_it_d { grid-column: 2; margin-top: 6px; max-width: none; font-size: max(14px, calc(var(--hs-fs, 15px) * .95)); }
  .step_line1 .hs_line { transform: scaleY(0); }
  .step_line1 .hs_in .hs_line { transform: scaleY(1); }
  .step_line1 .hs_box { margin-top: calc(var(--hs-xg, 60px) * .6); padding: 20px 16px; }
}

/* ★1125 줄 간격 — 공통 리셋(html,body,div,span,p…{line-height:130%})이 안쪽 태그마다 행간을 박아 [설정] 줄 간격이 안 먹던 것 → 안쪽 태그는 상자 행간을 물려받음 (자체 class 규칙이 있는 칸은 그대로) */
html :where(.step_line1 .hs_tit, .step_line1 .hs_it_t, .step_line1 .hs_it_d, .step_line1 .hs_box_t, .step_line1 .hs_box_d) :is(p,div,span,a,b,strong,em,i,u,small,font,li,ul,ol,mark,sub,sup,label,h1,h2,h3,h4,h5,h6) { line-height: inherit; }
