/* 문서 탭 — 한글 신청서 채우기 (scenes/hwp.html). 틀은 ta.css, 여기서는 .s-hwp 아래만. */

/* 작업 폴더 목록 */
.s-hwp .hw-list { position: absolute; inset: 0; padding: 10px 10px 0; display: grid; align-content: start; gap: 2px; background: #fff; transition: opacity .35s; }
.s-hwp .hw-row { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 10px; transition: background .25s; }
.s-hwp .hw-row.lit { background: #e9f0ff; box-shadow: inset 0 0 0 1px rgba(22, 89, 239, .28); }
.s-hwp .hw-img { background-image: linear-gradient(170deg, #f6e3c9 0 38%, #a9714a 38% 44%, #d9c2a4 44% 70%, #6e8a6a 70%); }
.s-hwp .ta-ftab:not(:has(.hw-ftab.in)) .hw-all { color: var(--ta-tx); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ta-tx); }
.s-hwp .hw-ftab { display: none; }
.s-hwp .hw-ftab.in { display: inline-grid; animation: hw-tab .35s var(--ta-glide) both; }
@keyframes hw-tab { from { opacity: 0; transform: translateY(6px); } }
.s-hwp .hw-f1 { opacity: 0; }
.s-hwp .hw-ftab.go .hw-f0 { opacity: 0; }
.s-hwp .hw-ftab.go .hw-f1 { opacity: 1; }
.s-hwp .ta-side:has(.hw-doc.in) .hw-note0 { display: none; }

/* 한글 문서 미리보기 — 회색 바탕 위 A4 한 장 */
.s-hwp .hw-doc { position: absolute; inset: 0; padding: 16px 18px 0; overflow: hidden; background: #eceef1; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .55s var(--ta-glide); }
.s-hwp .hw-doc.in { opacity: 1; transform: none; }
.s-hwp .hw-page { padding: 22px 22px 26px; border-radius: 2px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 10px 24px -14px rgba(0, 0, 0, .22); color: #111; }
.s-hwp .hw-t { margin-bottom: 14px !important; text-align: center; font-size: 14.5px; line-height: 1.4; font-weight: 800; letter-spacing: -.02em; }
.s-hwp .hw-tb { width: 100%; border-collapse: collapse; font-size: 12px; }
.s-hwp .hw-tb th { width: 64px; padding: 0 6px; height: 33px; border: 1px solid #47474b; background: #f1f2f4; font-weight: 700; text-align: center; white-space: nowrap; }
.s-hwp .hw-tb td { position: relative; height: 33px; padding: 0 10px; border: 1px solid #47474b; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background .25s; }
.s-hwp .hw-cell::after { content: ""; position: absolute; inset: 3px; border-radius: 3px; border: 1.5px dashed transparent; transition: border-color .3s; pointer-events: none; }
.s-hwp.act2 .hw-cell::after { border-color: rgba(22, 89, 239, .4); }
.s-hwp .hw-cell.lit { background: #edf3ff; }
.s-hwp .hw-cell.lit::after { border-style: solid; border-color: var(--cobalt); }
.s-hwp .hw-cell.checked::after, .s-hwp.act3 .hw-cell::after { border-color: transparent; }
.s-hwp .hw-cell .say, .s-hwp .hw-sn .say { font-weight: 600; color: #0b2e86; }
.s-hwp .hw-page .caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--cobalt); animation: ta-blink 1s steps(1) infinite; }
.s-hwp .hw-pl { margin-top: 16px !important; text-align: center; font-size: 12px; }
.s-hwp .hw-sign { margin-top: 12px !important; text-align: right; font-size: 12px; }
.s-hwp .hw-sn { display: inline-block; min-width: 46px; border-bottom: 1px solid #47474b; text-align: center; }

/* 받은 파일 — 한 번 반짝 */
.s-hwp .hw-file.hit { animation: hw-flash 1.4s var(--ta-glide) both; }
@keyframes hw-flash { 0% { box-shadow: inset 0 0 0 1px var(--ta-bd); background: #fff; } 35% { box-shadow: inset 0 0 0 1.5px var(--cobalt); background: #f2f6ff; } 100% { box-shadow: inset 0 0 0 1px var(--ta-bd); background: #fff; } }

@container tadesk (max-width: 700px) {
  .s-hwp .hw-doc { padding: 12px 12px 0; }
  .s-hwp .hw-page { padding: 18px 14px 20px; }
  .s-hwp .hw-t { font-size: 14px; }
  .s-hwp .hw-tb, .s-hwp .hw-pl, .s-hwp .hw-sign { font-size: 12.5px; }
  .s-hwp .hw-tb th { width: 58px; }
}
@media (max-width: 860px) {
  .s-hwp .ta-desk { --ta-h: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .s-hwp .hw-doc, .s-hwp .hw-list, .s-hwp .hw-ftab.in, .s-hwp .hw-file.hit { transition: none; animation: none; }
}
