@charset "utf-8";
/* ==========================================================================
   sub.css — 서브 페이지 공통 (서브 비주얼 / 사이드 내비 LNB / 본문)
   그룹: 1.서브 비주얼 2.레이아웃 3.LNB(스크롤스파이) 4.본문 구획 5.트랙 소개
         6.단계 표 7.자리표시 영역 8.프로그램 목록
   ========================================================================== */

/* 1. 서브 비주얼: 능선 캔버스 + 제목 --------------------------------------- */
.sub-visual { position: relative; height: min(48vh, 460px); min-height: 360px; background: var(--ink); color: #fff; overflow: hidden; }
.sub-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sub-visual::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; background: linear-gradient(to top, rgba(var(--ink-shade),.78), rgba(var(--ink-shade),0)); pointer-events: none; }
.sub-visual .wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 48px; }
.crumb { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 14px; font-size: 14px; color: var(--on-ink-sub); }
.crumb li + li::before { content: "›"; margin-right: 10px; }
.crumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.sub-visual h1 { font-size: 52px; line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
@media (max-width: 767px) { .sub-visual h1 { font-size: 36px; } }	/* 제목 52px (사용자 지정 2026-11-03), 휴대폰은 줄넘침 방지로 36px — 제목 아래 설명(desc)은 표시하지 않음(sub_top.php) */

/* 2. 레이아웃 -------------------------------------------------------------- */
.sub-body { padding: 0 0 120px; }
.sub-grid { display: grid; gap: 0; }
.sub-grid > * { min-width: 0; }
@media (min-width: 1100px) { .sub-body { padding-top: 72px; } .sub-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 88px; } }

/* 3. LNB: 스크롤 위치를 따라 현재 구획이 표시된다(모바일은 가로 띠) --------- */
.lnb { position: sticky; top: var(--hd-h); z-index: 60; align-self: start; background: #fff; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); transition: top .6s var(--ease); }
.lnb h2 { display: none; }
.lnb ol { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
.lnb ol::-webkit-scrollbar { display: none; }
.lnb a { position: relative; display: block; white-space: nowrap; padding: 10px 14px; border-radius: 999px; font-weight: 600; color: var(--text-sub); transition: color .25s, background-color .25s; }
.lnb a:hover { color: var(--text); }
.lnb a.is-active { color: #fff; background: var(--ink); font-weight: 700; }
@media (min-width: 1100px) {
  .lnb { top: calc(var(--hd-h) + 28px); margin: 0; padding: 0; border: 0; background: none; }
  .lnb h2 { display: block; margin-bottom: 18px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
  .lnb ol { flex-direction: column; gap: 0; overflow: visible; padding: 0; border-top: 1px solid var(--ink); }
  .lnb a { padding: 15px 4px; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; color: var(--text-sub); display: flex; justify-content: space-between; align-items: center; }
  .lnb a::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: transform .5s var(--ease); }
  .lnb a.is-active { color: var(--blue); font-weight: 800; }
  .lnb a.is-active::after { transform: scale(1); }
}

/* 4. 본문 구획 ------------------------------------------------------------- */
.sec { scroll-margin-top: 140px; padding: 56px 0 24px; }
@media (min-width: 1100px) { .sec { scroll-margin-top: 104px; padding: 0 0 112px; } }
.sec h2 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.sec .lead { margin-top: 16px; max-width: 62ch; }
.sec p.body { margin-top: 20px; max-width: 68ch; color: var(--text); font-size: 17px; }

/* 5. 트랙 소개: 트랙 색 면으로 채운 머리말 ---------------------------------- */
.track-hero { position: relative; margin-top: 28px; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); background: var(--t); color: #fff; overflow: hidden; }
.track-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/main/ridge.svg") right bottom / cover no-repeat; opacity: .28; pointer-events: none; }
.track-hero > * { position: relative; }
.track-hero .en { font-size: clamp(40px, 6vw, 88px); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.track-hero .ko { margin-top: 12px; font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; }
.track-hero p { margin-top: 14px; max-width: 56ch; opacity: .94; }

/* 6. 단계 표 --------------------------------------------------------------- */
.lv-table { width: 100%; margin-top: 28px; border-collapse: collapse; }
.lv-table caption { position: absolute; left: -9999px; }
.lv-table th, .lv-table td { padding: 20px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lv-table thead th { padding-top: 0; font-size: 13px; color: var(--text-sub); border-bottom-color: var(--ink); }
.lv-table tbody th { width: 96px; font-size: 20px; font-weight: 800; color: var(--ink); }
.lv-table td { color: var(--text); }
.lv-table td small { display: block; margin-top: 4px; color: var(--text-sub); font-size: 13px; }
@media (max-width: 599px) { .lv-table thead { display: none; } .lv-table tr, .lv-table th, .lv-table td { display: block; width: 100% !important; } .lv-table tbody tr { padding: 14px 0; border-bottom: 1px solid var(--line); } .lv-table th, .lv-table td { border: 0; padding: 4px 0; } }

/* 7. 자리표시 영역: 발주기관 자료가 들어갈 곳 -------------------------------- */
.ph { margin-top: 28px; display: grid; place-items: center; min-height: 240px; padding: 24px; border-radius: var(--radius); background: var(--paper); color: var(--text-sub); text-align: center; font-weight: 600; }
.ph small { display: block; margin-top: 6px; font-weight: 500; }

/* 8. 프로그램 유형 목록 ------------------------------------------------------ */
.plist { margin-top: 32px; border-top: 1px solid var(--ink); }
.plist li { display: grid; gap: 4px; padding: 26px 4px; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.plist li:hover { background: var(--paper); }
.plist h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 800; letter-spacing: -0.01em; }
.plist p { color: var(--text-sub); }
@media (min-width: 900px) { .plist li { grid-template-columns: 280px 1fr; gap: 40px; align-items: baseline; padding: 30px 12px; } }

/* LNB 없는 페이지(사이트맵·검색): 본문이 전체 폭을 쓴다 */
.sub-grid.no-lnb { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .sub-grid.no-lnb { grid-template-columns: minmax(0, 1fr); } }
