/* 출판사 쪽 '직접 해 보기'(2026-10-30 사용자 — 출판사 직원이 '와' 하게. 2026-11-30 새 사이트의 1비트 결로 다시):
   교재 단어를 붙여 넣으면 이 자리에서 잠긴 교재 단어책 · 학생 카드 · A4 시험지가 만들어져요. 모두 브라우저 안에서만(서버로 안 보냄) — 동작은 try.js.
   검정 · 흰색만(어두운 화면은 순흑 종이): 칸은 창(.win), 단추는 .btn.notch, 둥근 모서리 · 흐린 그림자 · 파랑 없음.
   이름은 모두 try- · dk- · tc- · tp-로 시작해요(공통 부품 .rows · .cover 같은 이름과 겹치지 않게). */

/* 머리 — 왼쪽 큰 제목('지금'만 뒤집어 강조), 오른쪽 설명 */
.try-head { align-items: end; }
.row-head .try-kicker { margin-bottom: 10px; color: var(--soft); }
.try-head > p { max-width: 30em; font-family: var(--sans); font-size: 15.5px; line-height: 1.7; }
.try-head em { font-style: normal; padding: 0 .12em; background: var(--ink); color: var(--on); }

.try-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .try-grid { grid-template-columns: 1fr; } }

/* 왼쪽 — 붙여 넣는 창(입력 칸은 신청서와 같은 도트 테두리, 초점은 안쪽 굵은 테두리) */
.try-in { display: grid; gap: 16px; padding: 20px 20px 22px; }
.try-f { display: grid; gap: 8px; }
.try-f small { font-family: var(--sans); font-size: 13px; color: var(--soft); }
.try-in input, .try-in textarea { display: block; width: 100%; padding: 12px 14px; font-family: var(--pixel); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper);
  border: var(--dot) solid var(--ink); border-radius: 0; outline: 0; -webkit-appearance: none; appearance: none; }
.try-in textarea { min-height: 300px; resize: vertical; tab-size: 6; white-space: pre; overflow: auto; }
.try-in input:focus, .try-in textarea:focus { box-shadow: inset 0 0 0 var(--dot) var(--ink); }
.try-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.try-tools .tally { margin-left: auto; color: var(--soft); }
.try-note { display: flex; gap: 10px; padding: 12px 14px; border: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); font-family: var(--sans); font-size: 13.5px; line-height: 1.65; color: var(--read); }
.try-note svg { flex: none; margin-top: 3px; }

/* 오른쪽 — 미리 보기 무대: 세 갈래 단추(누른 것만 검게) + 칸. 무대 높이는 늘 같아요 */
.try-stage { display: grid; grid-template-rows: auto 1fr; min-height: 660px; padding: 18px 18px 26px; border: var(--dot) solid var(--ink); }
.try-tabs { display: flex; justify-self: center; margin-bottom: 24px; background: var(--paper); border: var(--dot) solid var(--ink); }
.try-tabs button { all: unset; box-sizing: border-box; padding: 6px 16px; cursor: pointer; font-family: var(--pixel); font-size: 16px; line-height: 1.6; color: var(--ink); white-space: nowrap; }
.try-tabs button + button { border-left: var(--dot) solid var(--ink); }
.try-tabs button[aria-selected="true"] { background: var(--ink); color: var(--on); }
.try-tabs button:focus-visible { outline: 2px dashed currentColor; outline-offset: -6px; }
.try-panel { display: grid; place-items: center; min-width: 0; }
.try-panel[hidden] { display: none; }
.try-empty { padding: 22px 26px; text-align: center; color: var(--soft); border: var(--dot) dashed var(--ink); }
@media (max-width: 480px) { .try-stage { min-height: 600px; padding: 14px 10px 20px; } .try-tabs button { padding: 6px 9px; } }

/* 교재 단어책(잠김) — 앱 표지처럼 책등 · 그림, 아래 단원 줄과 구매 확인 줄 */
.dk { width: min(380px, 100%); display: grid; gap: 10px; padding: 14px 16px 16px; }
.dk-cover { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; min-height: 150px; padding: 14px 14px 14px 26px; border: var(--dot) solid var(--ink); }
.dk-cover::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: var(--dot); background: var(--ink); }
.dk-name { align-self: start; font-weight: 400; font-size: 24px; line-height: 1.35; overflow-wrap: anywhere; }
.dk-cover img { width: 84px; image-rendering: pixelated; }
.dk-lock { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; background: var(--ink); color: var(--on); line-height: 1.75; }
.dk-sub { font-family: var(--sans); font-size: 13.5px; color: var(--soft); }
.dk-rows { list-style: none; margin: 0; padding: 0; border-top: var(--dot) solid var(--ink); }
.dk-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent); font-family: var(--sans); font-size: 14px; }
.dk-rows b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dk-rows span { flex: none; color: var(--soft); }
.dk-rows .more { justify-content: center; color: var(--soft); }
.dk-req { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 2px dashed var(--ink); font-family: var(--sans); font-size: 13.5px; }
.dk-req .btn { pointer-events: none; }

/* 학생 카드 — 앞면은 단어를 크게, 누르면 같은 자리에서 뜻(높이는 늘 같아요 — 사용자 '박스 세로 길이 달라지는 거 마음에 안 들어') */
.tc { width: min(380px, 100%); display: grid; gap: 12px; padding: 14px 16px 14px; }
.tc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tc-chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px; border: 2px solid var(--ink); font-family: var(--sans); font-size: 12.5px; font-weight: 600; line-height: 1.9; }
.tc-say { flex: none; min-height: 36px; padding: 0 10px; }
.tc-face { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 240px; padding: 16px 8px; text-align: center;
  border-block: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent); }
.tc-face:focus-visible { outline: 2px dashed var(--ink); outline-offset: -4px; }
.tc-word { max-width: 100%; font-size: 48px; line-height: 1.15; overflow-wrap: anywhere; }
.tc-hint { font-family: var(--sans); font-size: 14px; color: var(--soft); }
.tc-mean { display: none; max-width: 100%; font-family: var(--sans); font-size: 22px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.tc.back .tc-word { font-size: 32px; }
.tc.back .tc-hint { display: none; }
.tc.back .tc-mean { display: block; }
.tc-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tc-after { display: grid; place-items: center; height: 34px; }
.tc-after span { visibility: hidden; padding: 0 12px; border: 2px solid var(--ink); font-family: var(--sans); font-size: 13.5px; line-height: 1.9; }
.tc.done .tc-after span { visibility: visible; }
.tc-pos { text-align: center; color: var(--soft); }

/* A4 시험지 — 범위 · 문제 수 · 방향을 고르고 미리 보기(종이는 어두운 화면에서 순흑), 인쇄는 새 창에 답안지까지 */
.tp { width: min(420px, 100%); display: grid; gap: 12px; }
.tp-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tp-opts select { max-width: 100%; min-height: 40px; padding: 4px 30px 4px 10px; font-family: var(--pixel); font-size: 16px; color: var(--ink); cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 6 4' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h6v1H0zM1 1h4v1H1zM2 2h2v1H2z' fill='%23000'/%3E%3C/svg%3E") no-repeat right 10px center / 12px 8px;
  border: var(--dot) solid var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
@media (prefers-color-scheme: dark) {
  .tp-opts select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 6 4' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h6v1H0zM1 1h4v1H1zM2 2h2v1H2z' fill='%23f5f7fa'/%3E%3C/svg%3E"); }
}
.tp-opts select:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
.tp-sheet { position: relative; overflow: hidden; aspect-ratio: 210 / 297; padding: 24px 24px 20px; background: var(--paper); color: var(--ink); border: var(--dot) solid var(--ink); box-shadow: var(--shadow); font-family: var(--sans); }
.tp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.tp-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; }
.tp-head span { flex: none; font-size: 11px; color: var(--soft); }
.tp-meta { display: flex; gap: 16px; margin: 8px 0 12px; font-size: 11px; color: var(--soft); }
.tp-meta i { display: inline-block; width: 64px; margin-left: 6px; border-bottom: 1px solid var(--ink); }
.tp-sheet ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; font-size: 12.5px; }
.tp-sheet li { display: flex; gap: 6px; align-items: baseline; min-width: 0; white-space: nowrap; }
.tp-sheet li em { flex: none; min-width: 16px; font-style: normal; font-size: 10.5px; color: var(--soft); }
.tp-sheet li span { overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.tp-sheet li u { flex: 1; min-width: 20px; height: 13px; border-bottom: 1px solid var(--ink); text-decoration: none; }
.tp-fade { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 0 12px; text-align: center; background: var(--paper); border-top: 2px dashed var(--ink); font-size: 11.5px; font-weight: 700; }
.tp-print { width: 100%; }
