/* 오늘의 판례 — 하루 화면의 머리(일력 모양)·푼 정도·쟁점 차례·맺음·맨 위로 단추, 지난 쟁점 목록의 날짜 칸.
   색·글자 값은 색과글자.css에만 있다. 조각은 하루.js(지난 쟁점 목록은 그리기.js)가 만든다. */

/* 일력(하루 한 장 달력): 날짜 숫자를 크게 두고 그 옆에 날짜·제목·덧말. 이 화면에서 눈에 띄는 것은 이 숫자 하나뿐이다.
   맨 위 점선은 일력에서 한 장을 뜯어 낸 자리다 */
.일력 { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 16px; margin-top: 8px; padding-top: 20px; }
.일력::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: radial-gradient(circle, var(--선진한) 1px, transparent 1.2px) 0 0 / 8px 2px repeat-x; }
.일력일 { font: var(--글-일력) var(--글꼴); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--강조); margin: 0; }
.일력글 { min-width: 0; padding-bottom: 3px; }
.일력이름 { font: var(--글-큰제목) var(--글꼴); margin: 0; }
.일력덧말 { font: var(--글-보조) var(--글꼴); color: var(--글자2); margin: 2px 0 0; }

/* 그날 OX를 다 풀면 날짜 옆에 찍히는 도장. 방금 다 풀었을 때만 눌러 찍는 움직임이 있다 */
.도장 { position: absolute; right: 0; top: 18px; width: 60px; height: 60px; margin: 0; display: grid; place-content: center; border-radius: 50%; transform: rotate(-12deg); text-align: center; color: var(--강조); font: var(--글-이름표) var(--글꼴); box-shadow: inset 0 0 0 2px currentColor, inset 0 0 0 4px var(--바탕), inset 0 0 0 5px currentColor; }
.도장[hidden] { display: none; }
.도장 span { display: block; }
.도장.찍힘 { animation: 도장찍힘 0.36s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes 도장찍힘 { from { opacity: 0; transform: rotate(-12deg) scale(1.7); } }

/* 푼 정도: OX가 있는 쟁점 수만큼의 칸 + 한 줄 글 */
.진행줄 { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.진행막대 { flex: none; display: flex; gap: 4px; width: 88px; }
.진행막대 span { flex: 1; height: 6px; border-radius: var(--모서리-알약); background: var(--선); transition: background-color 0.2s; }
.진행막대 span.찬 { background: var(--강조); }
.진행말 { font: var(--글-보조) var(--글꼴); color: var(--글자2); margin: 0; }

/* 쟁점 차례: 누르면 그 쟁점 자리로 간다. 번호 동그라미는 아래 쟁점 머리의 것과 같다 */
.차례 { list-style: none; margin: 12px 0 0; padding: 0; }
.차례 li + li { border-top: 1px solid var(--선); }
.차례줄 { width: 100%; min-height: var(--줄높이); display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; text-align: left; }
.차례줄:active { background: var(--눌림); }
.차례과목 { display: block; font: var(--글-작은) var(--글꼴); color: var(--글자2); }
.차례첫줄 { display: block; font: var(--글-줄) var(--글꼴); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.차례상태 { font: var(--글-이름표) var(--글꼴); color: var(--강조글자); font-variant-numeric: tabular-nums; }
.순번 { flex: none; width: 24px; height: 24px; display: grid; place-content: center; border-radius: 50%; background: var(--강조옅은); color: var(--강조글자); font: var(--글-이름표) var(--글꼴); font-variant-numeric: tabular-nums; }
.차례줄.풀었음 .순번 { background: var(--강조); color: var(--강조위글자); }

/* 차례를 눌러 왔을 때 윗줄에 바짝 붙지 않게 */
.사건, .쟁점 { scroll-margin-top: 12px; }

/* 맺음: 다 풀었을 때의 한 줄 */
.맺음말 { font: var(--글-줄굵은) var(--글꼴); color: var(--강조글자); margin: 0 0 16px; }
.맺음말[hidden] { display: none; }

/* 맨 위로: 조금 내려가면 오른쪽 아래에 떠 있다. bottom은 본문의 아래 여백 안쪽에서 재므로 0이어야 맨 끝에서 안내 글을 덮지 않는다 */
.위로단추 { position: sticky; bottom: 0; z-index: 1; width: 44px; height: 44px; margin: 8px 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--바탕); box-shadow: inset 0 0 0 1px var(--선진한), 0 2px 10px rgba(0, 0, 0, 0.1); }
.위로단추[hidden] { display: none; }
.위로단추:active { background: var(--눌림); }

/* 지난 쟁점 목록의 날짜 칸: 작은 일력 */
.날줄일력 { width: 44px; height: 48px; display: grid; place-content: center; text-align: center; border-radius: var(--모서리-칸); background: var(--면); }
.날줄일 { display: block; font: var(--글-제목2) var(--글꼴); font-variant-numeric: tabular-nums; }
.날줄요일 { display: block; font: var(--글-작은) var(--글꼴); color: var(--글자2); margin-top: -2px; }
.날줄글 { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  .도장.찍힘 { animation: none; }
  .진행막대 span { transition: none; }
}
