/* 워크숍 공통 틀 — 헤더 + 글 종이. 홈·롤/띠·직조·큐브가 같이 씀 */
/* 대체 글꼴 SUIT (SIL OFL 1.1) — fonts/OFL.txt. 주소는 이 CSS 파일 기준이라 다른 저장소 페이지에서도 맞음 */
@font-face { font-family: "SUIT"; src: url(fonts/SUIT-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap }
@font-face { font-family: "SUIT"; src: url(fonts/SUIT-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap }
@font-face { font-family: "SUIT"; src: url(fonts/SUIT-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap }

:root { --ws-head: 40px; --ws-font: "jjjgothic", "SUIT", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif }

/* 헤더: 검은 줄, 왼쪽 제목(= 홈으로), 오른쪽 버튼 하나 */
.ws-head {
  position: fixed; top: 0; left: 0; right: 0; height: var(--ws-head); z-index: 100;
  background: #000; color: #fff; box-sizing: border-box;
  display: flex; align-items: center; padding: 0 14px;
  font-family: var(--ws-font); font-size: 20px; font-weight: 500; letter-spacing: -.01em; line-height: 1;
}
.ws-head a, .ws-head button { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer }
.ws-head .ws-btn { margin-left: auto }
@media (hover: hover) { .ws-head a:hover, .ws-head .ws-btn:hover { text-decoration: underline; text-underline-offset: 4px } }
.ws-head :focus-visible { outline: 2px solid #fff; outline-offset: 4px }

/* 글 종이: 흰색 90%, 밑이 아주 조금 비침. 글자 크기는 shell.js가 맞춤(--tsize, --bsize) */
.ws-paper {
  position: absolute; box-sizing: border-box; background: rgba(255, 255, 255, .9); color: #000;
  overflow: auto; container-type: size; font-family: var(--ws-font);
}
.ws-paper .ws-in { padding: 2cqi 3.5cqi }
.ws-paper h1 {
  margin: 0 0 .9em; padding-right: 14cqi;   /* EN 버튼 자리 */
  font-size: var(--tsize, 9.5cqi); font-weight: 500; line-height: 1.15; letter-spacing: -.02em;
}
.ws-paper p { margin: 0; font-size: var(--bsize, 16px); font-weight: 500; line-height: 1.55; letter-spacing: -.01em; text-wrap: pretty }
.ws-paper .ws-nb { white-space: nowrap }
.ws-paper .ws-lang {
  position: absolute; top: 2.5cqi; right: 2.5cqi;
  background: #000; color: #fff; border: 0; border-radius: 0; cursor: pointer;
  font: inherit; font-size: clamp(10px, 3.6cqi, 14px); line-height: 1; padding: .45em .6em;
}
@media (hover: hover) { .ws-paper .ws-lang:hover { background: #fff; color: #000; outline: 1px solid #000; outline-offset: -1px } }
.ws-paper .ws-lang:focus-visible { outline: 2px solid #000; outline-offset: 2px }
@media (max-width: 699px) { .ws-paper h1 { margin-bottom: .5em } }   /* 폰: 제목 아래 간격 좁게 → 종이 짧게 */

/* 안쪽 페이지: 종이는 화면에 고정, 위 아이콘 줄은 헤더 밑으로 */
.ws-info { position: fixed; z-index: 99 }
.ws-info[hidden] { display: none }
body.ws-sub #ui, body.ws-sub #pg { top: calc(env(safe-area-inset-top, 0px) + var(--ws-head) + 14px) }

/* 글꼴 글자 받기용 — 안 보이지만 그려지게(display:none이면 글꼴이 안 받아짐) */
.ws-glyphs { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; font-family: var(--ws-font); font-weight: 500; white-space: nowrap }
