/* 과정: 지원사업 페이지(support.css)와 같은 짜임과 치수. 공통 style.css의 변수·모양(각진 칸, 원형 표식, 노선 점·선, 아치)만 쓴다. */
body[data-page="program"] { --pg-rule: rgba(239,229,210,.25); --pg-rule-2: rgba(239,229,210,.45); --pg-text: #e4dac7; }
body[data-page="program"] main { overflow-x: clip; }
body[data-page="program"] .section { scroll-margin-top: 12px; }
body[data-page="program"] .section > .intro { word-break: keep-all; overflow-wrap: anywhere; }

/* 위쪽 두 단추: 메뉴 카드·지도 표식과 같은 모양. 고르지 않은 쪽 표식에 맥동 고리 */
.pg-tracks { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pg-track {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; align-items: center;
  padding: 22px; text-align: left; font: inherit; cursor: pointer; color: var(--line);
  background: var(--land); border: 2px solid rgba(239,229,210,.5); word-break: keep-all;
}
.pg-track:hover, .pg-track.on { border-color: var(--line); }
.pg-track:focus-visible { outline: 2px solid var(--line); outline-offset: 4px; }
.pg-track .seal {
  position: relative; grid-row: span 3; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 24px;
}
.pg-track .seal::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--line); animation: pulse 2.6s ease-out infinite; }
.pg-track:hover .seal { background: var(--line); color: var(--ink); }
.pg-track.on .seal { background: var(--line); color: var(--ink); box-shadow: 0 0 0 4px var(--land), 0 0 0 6px var(--line); }
.pg-track.on .seal::before { display: none; }
.pg-track b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.2; }
.pg-track .sub { font-size: 14px; color: var(--soft); }
.pg-track .n { font-size: 13px; letter-spacing: .06em; color: var(--soft); }
@media (prefers-reduced-motion: reduce) { .pg-track .seal::before { animation: none; } }
@media (max-width: 600px) { .pg-track { padding: 18px; } .pg-track b { font-size: 22px; } }

/* 머리 현황 줄 */
.pg-head-meta { margin-top: 6px; font-size: 14px; color: var(--line); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* 과정 안내 */
.pg-overview { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pg-scope { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2vw, 21px); line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.pg-guide { margin: 24px 0 0; display: grid; }
.pg-guide > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 16px; padding-block: 12px; border-top: 1px solid var(--pg-rule); }
.pg-guide dt { display: flex; gap: 10px; font-weight: 700; font-size: 14px; color: var(--line); }
.pg-guide dt::before { content: ''; flex: none; width: 14px; height: 7px; margin-top: 8px; border: 2px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; }
.pg-guide dd { margin: 0; font-size: 14px; color: var(--soft); word-break: keep-all; overflow-wrap: anywhere; }
.pg-figures { margin: 0; border: 2px solid var(--line); outline: 1px solid rgba(239,229,210,.4); outline-offset: 4px; }
.pg-figures > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 16px; padding: 14px 20px; align-items: baseline; }
.pg-figures > div + div { border-top: 1px solid rgba(239,229,210,.35); }
.pg-figures dt { font-size: 13px; color: var(--soft); letter-spacing: .06em; }
.pg-figures dd { margin: 0; display: grid; gap: 2px; min-width: 0; }
.pg-figures dd > b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pg-sub { font-size: 12px; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.pg-tally { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.pg-tally li { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.pg-tally span { color: var(--soft); }
.pg-tally b { font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 찾기 도구 */
.pg-tools { margin-top: 28px; padding: 22px 24px; background: var(--deep); border: 1px solid rgba(239,229,210,.3); display: grid; gap: 18px; min-width: 0; }
.pg-search { display: grid; grid-template-columns: 76px minmax(0, 560px); align-items: center; gap: 8px 12px; }
.pg-search label, .pg-legend { font-size: 14px; color: var(--soft); }
.pg-search input {
  font: inherit; color: var(--line); background: var(--land); border: 1px solid var(--pg-rule-2);
  padding: 10px 14px; min-height: 46px; width: 100%; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.pg-search input::placeholder { color: var(--muted); }
.pg-group { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 12px; align-items: start; min-width: 0; }
.pg-legend { padding-top: 9px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pg-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--pg-rule-2); border-radius: 20px; background: transparent; color: var(--line);
  font: inherit; font-size: 14px; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; text-align: left;
}
.pg-chip:hover { border-color: var(--line); }
.pg-chip[aria-pressed="true"] { background: var(--line); color: var(--ink); border-color: var(--line); font-weight: 700; }
.pg-chip[aria-pressed="true"]::before { content: '✓'; font-size: 12px; }
.pg-chip:disabled { cursor: default; color: var(--muted); border-style: dashed; border-color: rgba(169,159,141,.6); }
.pg-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pg-chip[aria-pressed="true"] .pg-n { color: var(--ink); }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-actions .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* 연도 노선: 메뉴 노선과 같은 점·선 */
.pg-years { --dot: 14px; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: 560px; min-width: 0; }
.pg-stop { position: relative; min-width: 0; }
.pg-stop::before { content: ''; position: absolute; top: calc(10px + var(--dot) / 2 - 1px); left: 0; right: 0; height: 2px; background: var(--line); }
.pg-stop:first-child::before { left: 50%; }
.pg-stop:last-child::before { right: 50%; }
.pg-stop.is-empty::before { height: 0; background: none; border-top: 2px dashed var(--muted); }
.pg-stop-btn { position: relative; width: 100%; min-height: 64px; padding: 10px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: var(--line); font: inherit; cursor: pointer; }
.pg-stop-dot { position: relative; z-index: 1; width: var(--dot); height: var(--dot); border-radius: 50%; border: 2px solid var(--line); background: var(--deep); transition: background .2s; }
.pg-stop-name { font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-stop-n { font-size: 11px; line-height: 1.3; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-stop-btn:hover .pg-stop-dot { background: var(--line); }
.pg-stop-btn[aria-pressed="true"] .pg-stop-dot { width: 18px; height: 18px; margin-block: -2px; background: var(--line); box-shadow: 0 0 0 4px var(--deep), 0 0 0 6px rgba(239,229,210,.5); }
.pg-stop-btn[aria-pressed="true"] .pg-stop-name { font-weight: 700; }
.pg-stop-btn:disabled { cursor: default; color: var(--muted); }
.pg-stop-btn:disabled .pg-stop-dot { border-color: var(--muted); border-style: dashed; background: var(--deep); }
.pg-stop-btn:disabled .pg-stop-n { color: var(--muted); }

/* 결과 수와 빈 상태 */
.pg-count { margin-top: 24px; font-size: 14px; color: var(--soft); letter-spacing: .04em; word-break: keep-all; overflow-wrap: anywhere; }
.pg-state { margin-top: 20px; padding: 24px; border: 2px dashed var(--muted); display: grid; gap: 10px; justify-items: start; color: var(--soft); }
.pg-state[hidden] { display: none; }
.pg-state strong { font-family: var(--display); font-size: 20px; color: var(--line); }
.pg-unknown { color: var(--muted); }
.pg-aside { display: block; margin-top: 4px; font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--muted); }

/* 과정 줄: 지원사업 공고 줄과 같은 날짜 칸 + 점선 절취선 */
.pg-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.pg-item[hidden] { display: none; }
.pg-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); border: 1px solid rgba(239,229,210,.35); min-width: 0; }
.pg-row.is-next { border: 2px solid var(--line); background: var(--land); }
.pg-when { background: var(--deep); display: grid; align-content: center; justify-items: center; gap: 2px; padding: 14px 6px; text-align: center; }
.pg-when small { font-size: 11px; letter-spacing: .14em; color: var(--soft); font-variant-numeric: tabular-nums; }
.pg-when b { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-row-main { padding: 14px 18px; border-left: 2px dashed rgba(239,229,210,.4); display: grid; gap: 4px; align-content: center; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.pg-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pg-kind { display: inline-block; font-size: 11px; letter-spacing: .08em; line-height: 1.7; padding: 0 8px; border: 1px solid rgba(239,229,210,.4); border-radius: 10px; color: var(--soft); }
.pg-flag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .06em; line-height: 1.7; padding: 0 8px; border-radius: 10px; border: 1px dashed var(--muted); color: var(--muted); }
.pg-flag.is-next { background: var(--line); color: var(--ink); border: 1px solid var(--line); font-weight: 700; }
.pg-row h3 { font-size: 18px; line-height: 1.4; margin-top: 2px; }
.pg-row-sub { font-size: 13px; color: var(--soft); }

/* 교육과정과 창업·취업과정: 지원사업 선정 결과와 같은 명함 칸 */
.pg-cases { margin-top: 28px; display: grid; gap: 24px; }
#pg-area .pg-case { margin-top: 28px; }
.pg-case > .pg-case-facts:first-child { border-top: 0; }
.pg-case { background: var(--land); border: 2px solid var(--line); min-width: 0; word-break: keep-all; overflow-wrap: anywhere; scroll-margin-top: 16px; }
.pg-case-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px 26px; background: var(--deep); }
.pg-case-seal { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--line); box-shadow: 0 0 0 5px var(--deep), 0 0 0 7px rgba(239,229,210,.4); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 30px; }
.pg-case-title { display: grid; gap: 4px; min-width: 0; }
.pg-case-title h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; }
.pg-case-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr 2fr 2fr; border-top: 2px dashed rgba(239,229,210,.5); border-bottom: 1px solid var(--pg-rule); }
.pg-case-facts > div { padding: 14px 16px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.pg-case-facts > div + div { border-left: 1px solid var(--pg-rule); }
.pg-case-facts dt { font-size: 12px; letter-spacing: .1em; color: var(--soft); }
.pg-case-facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.45; }
.pg-case-facts dd .pg-unknown { font-family: var(--body); font-weight: 400; font-size: 15px; }
.pg-case-body { padding: 20px 26px 24px; display: grid; gap: 12px; }
.pg-case-body h4 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--body); font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--soft); }
.pg-case-body h4::before { content: ''; flex: none; width: 14px; height: 7px; border: 2px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; }
.pg-case-note { font-size: 14px; color: var(--soft); max-width: 60em; }
.pg-names { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.pg-names li { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border: 1px solid rgba(239,229,210,.35); background: var(--sea); min-width: 0; }
.pg-names b { font-size: 16px; font-weight: 700; }
.pg-names span { font-size: 13px; color: var(--pg-text); }
.pg-names em { display: block; font-style: normal; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.pg-names small { font-size: 12px; color: var(--muted); }
.pg-jump { font-size: 14px; text-underline-offset: 4px; justify-self: start; min-height: 32px; display: inline-flex; align-items: center; }

/* 창업·취업 단계: 연도 노선과 같은 점·선 */
.pg-path { padding: 14px 16px 6px; border: 1px solid rgba(239,229,210,.35); background: var(--sea); }
.pg-path h5 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 16px; }
.pg-route { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.pg-route li { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 12px 6px 10px; text-align: center; min-width: 0; }
.pg-route li::before { content: ''; position: absolute; top: 19px; left: 0; right: 0; height: 2px; background: var(--line); }
.pg-route li:first-child::before { left: 50%; }
.pg-route li:last-child::before { right: 50%; }
.pg-route-dot { position: relative; z-index: 1; width: 16px; height: 16px; margin-bottom: 6px; border-radius: 50%; border: 2px solid var(--line); background: var(--sea); }
.pg-route li:last-child .pg-route-dot { background: var(--line); }
.pg-route b { font-size: 14px; }
.pg-route span:not(.pg-route-dot) { font-size: 12px; color: var(--soft); }

@media (max-width: 960px) {
  .pg-overview { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pg-figures { outline-offset: 3px; }
  .pg-case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-case-facts > div + div { border-left: 0; }
  .pg-case-facts > div { border-top: 1px solid var(--pg-rule); }
  .pg-case-facts > div:nth-child(-n+2) { border-top: 0; }
  .pg-case-facts > div:nth-child(even) { border-left: 1px solid var(--pg-rule); }
}
@media (max-width: 600px) {
  .pg-guide > div { grid-template-columns: minmax(0, 1fr); }
  .pg-figures > div { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; }
  .pg-tools { padding: 18px 16px; }
  .pg-search, .pg-group { grid-template-columns: minmax(0, 1fr); }
  .pg-legend { padding-top: 0; }
  .pg-years { max-width: none; }
  .pg-row { grid-template-columns: 72px minmax(0, 1fr); }
  .pg-when { padding: 12px 4px; }
  .pg-when b { font-size: 17px; }
  .pg-when small { letter-spacing: .04em; }
  .pg-row-main { padding: 12px 12px; }
  .pg-row h3 { font-size: 16px; }
  .pg-case-head { padding: 18px 16px; gap: 14px; }
  .pg-case-seal { width: 56px; height: 56px; font-size: 24px; box-shadow: 0 0 0 4px var(--deep), 0 0 0 6px rgba(239,229,210,.4); }
  .pg-case-facts { grid-template-columns: minmax(0, 1fr); }
  .pg-case-facts > div, .pg-case-facts > div:nth-child(even) { padding: 10px 16px; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: baseline; border-left: 0; border-top: 1px solid var(--pg-rule); }
  .pg-case-facts > div:first-child { border-top: 0; }
  .pg-case-body { padding: 16px 16px 20px; }
  /* 단계는 세로 노선으로 */
  .pg-route { grid-template-columns: minmax(0, 1fr); }
  .pg-route li { grid-template-columns: 16px minmax(0, 1fr); justify-items: start; column-gap: 12px; row-gap: 0; padding: 6px 0; text-align: left; }
  .pg-route li::before { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .pg-route li:first-child::before { top: 14px; left: 7px; }
  .pg-route li:last-child::before { bottom: auto; height: 14px; right: auto; }
  .pg-route-dot { grid-row: span 2; margin: 6px 0 0; }
}
@media (max-width: 480px) {
  .pg-row { grid-template-columns: minmax(0, 1fr); }
  .pg-when { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 0 8px; padding: 8px 14px; text-align: left; border-bottom: 2px dashed rgba(239,229,210,.4); }
  .pg-row-main { border-left: 0; padding: 12px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-stop-dot { transition: none; }
}
