/* Projects 페이지: 진행 중 · 완료 탭 + 과제 목록. 색·모서리는 site.css 변수만 쓴다. */

/* 과제: 진행 중 · 완료 탭 + 목록 (탭 고르기는 site.js) */
.tabs { display: flex; gap: 28px; margin-bottom: 8px; }
.tabs button { padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button span { margin-left: 4px; font-weight: 400; }
.tabs button:hover { color: var(--navy); }
.tabs button[aria-selected="true"] { border-bottom-color: var(--navy); color: var(--navy); }
.project-list { border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.project[hidden] { display: none; }
.project time { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.project h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.project p { margin-top: 4px; font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; gap: 2px; }
}


/* 진행 중 과제 기간 표 (projects.js): 왼쪽 과제 이름, 오른쪽 같은 눈금의 막대. 진한 부분 = 지난 기간, 세로선 = 오늘. 줄을 낮게 해서 한눈에 */
/* 진행 중 과제 달력 카드: 한 장씩, 달력 넘기듯 세로로 넘긴다(projects.js). 카드는 한 격자 칸에 겹쳐 두고(.tl-stack) 보이는 건 .is-active 하나 — 높이는 가장 긴 카드에 맞춰 자동이라 넘겨도 아래 목록이 안 밀림.
   위 = 기간, 가운데 = 진행 막대(지난 기간만큼 남색), 아래 = 과제명·기관·남은 달 */
.tl-wrap { position: relative; }   /* 달력 카드는 회색 구간, 목록은 아래 흰 구간 (구간 여백이 간격 노릇) */
.tl-stack { display: grid; align-items: start; }   /* 카드마다 제 높이로 (겹친 카드 중 긴 것에 맞춰 늘어나면 로고 칸이 내용보다 길어짐) */
.tl-card { grid-area: 1 / 1; padding: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: stretch; opacity: 0;   /* 상자 없이 회색 구간 위에 바로 (구간이 곧 틀) */ visibility: hidden; transform: translateY(-28px); transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.tl-card.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease; }
.tl-card.is-leaving { transform: translateY(28px); }   /* 지금 장은 아래로 내려가며 사라짐, 다음 장은 위에서 내려옴 */
.tl-stack.rev .tl-card { transform: translateY(28px); }   /* 이전 장으로 갈 땐 반대 방향 */
.tl-stack.rev .tl-card.is-active { transform: none; }
.tl-stack.rev .tl-card.is-leaving { transform: translateY(-28px); }
/* 넘김 묶음: 카드 안 오른쪽 위에 "n / 전체" 와 둥근 단추 두 개(위·아래 꺾쇠). 눌린 느낌은 테두리·바탕만 살짝 */
.tl-nav { position: absolute; top: 0; right: 0; z-index: 1; display: flex; align-items: center; gap: 6px; }
.tl-btn { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--navy); cursor: pointer; position: relative; transition: border-color .2s ease, background .2s ease; }
.tl-btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.tl-btn.prev::before { transform: translate(-50%, -25%) rotate(-45deg); }   /* 위 꺾쇠 */
.tl-btn.next::before { transform: translate(-50%, -75%) rotate(135deg); }   /* 아래 꺾쇠 */
.tl-btn:hover { border-color: var(--navy); background: var(--bg2); }
@media (prefers-reduced-motion: reduce) { .tl-card, .tl-card.is-active { transition: none; } }
/* 왼쪽 로고 칸: 흰 상자 안에 기관 로고, 없으면 약자 글자. 높이는 옆 달력 내용(기간~남은 달)과 같게 늘어남(stretch) — 위·아래 줄이 맞음 */
.tl-logo { box-sizing: border-box; width: 180px; display: flex; align-items: center; justify-content: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tl-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tl-logo span { font-size: 18px; font-weight: 700; letter-spacing: .04em; color: var(--navy); }
.tl-body { min-width: 0; }
.tl-range { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.tl-range i { margin: 0 10px; font-style: normal; font-weight: 400; color: var(--muted); }
.tl-count { margin: 0 6px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-count b { color: var(--ink); font-weight: 600; }
.tl-bar { height: 10px; margin-top: 20px; border-radius: 5px; background: #fff; border: 1px solid var(--line); overflow: hidden; }   /* 회색 구간 위라 남은 부분은 흰색 */   /* 진행 막대: 카드마다 같은 길이, 지난 기간만큼 채움 */
.tl-bar i { display: block; height: 100%; border-radius: 5px; background: var(--navy); transition: width .6s ease; }
.tl-card h3 { margin-top: 18px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.tl-meta { margin-top: 6px; font-size: 14px; color: var(--muted); }
.tl-left { font-weight: 600; color: var(--accent); }
@media (max-width: 640px) {
  .tl-card { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  .tl-logo { width: 112px; padding: 12px; }
  .tl-logo span { font-size: 14px; }
  .tl-range { font-size: 18px; }
  .tl-wrap { padding-bottom: 46px; }
  .tl-nav { top: auto; bottom: 0; right: auto; left: 50%; transform: translateX(-50%); }   /* 휴대폰: 카드 아래 가운데 (카드 위쪽은 기간 글자와 자리가 겹침) */
  .tl-card h3 { font-size: 16px; }
}
