/* 活字 · 浮层：选文、原文、对照、旋刻、印张、完工、木字 */
.hz-ov {
	position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px;
	background: rgba(8, 7, 5, .74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
html.is-embed .hz-ov { padding-top: 52px; }
.ov-card { position: relative; width: 100%; max-width: 640px; max-height: 100%; overflow: auto; padding: 24px 26px; background-color: #12100d; border-color: var(--line2); overscroll-behavior: contain; }
.hz-ov.is-wide .ov-card { max-width: 1120px; }
.ov-x { position: absolute; top: 10px; right: 10px; }
.ov-k { margin: 0 0 6px; font-size: 10.5px; color: var(--gold); letter-spacing: .12em; }
.ov-h { margin: 0 0 12px; font: 600 26px/1.3 var(--serif); letter-spacing: .08em; }
.ov-big { font-size: clamp(40px, 7vw, 60px); letter-spacing: .2em; line-height: 1.1; }
.ov-big small { display: block; margin-top: 8px; font-size: 16px; letter-spacing: .3em; color: var(--mute); font-weight: 400; }
.ov-q { margin: 0 0 12px; padding: 2px 0 2px 14px; border-left: 2px solid var(--ver); font: 16px/1.8 var(--serif); color: var(--paper); }
.ov-q cite { display: block; font-style: normal; font-size: 10.5px; color: var(--dim); }
.ov-q.is-s { font-size: 14px; }
.ov-p { margin: 0 0 14px; font-size: 14px; line-height: 1.85; color: var(--mute); }
.ov-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.ov-act.is-col { flex-direction: column; align-items: stretch; }

/* 选文 */
.pk-l { display: flex; flex-direction: column; gap: 8px; }
.pk {
	display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; row-gap: 2px; align-items: baseline; width: 100%;
	padding: 12px 14px; text-align: left; border: 1px solid var(--line2); background: rgba(242, 235, 222, .03); cursor: pointer; transition: border-color .15s, background .15s;
}
.pk:hover:not(:disabled), .pk:focus-visible { border-color: var(--gold); background: rgba(217, 179, 108, .07); }
.pk:disabled { opacity: .4; cursor: default; }
.pk-n { grid-row: span 2; font-size: 11px; color: var(--gold); }
.pk-t { font: 18px/1.5 var(--serif); letter-spacing: .06em; }
.pk-s { font-size: 10.5px; color: var(--dim); }

/* 原文 */
.tx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tx-chip { padding: 3px 8px; font-size: 11px; border: 1px solid var(--line2); background: none; color: var(--mute); cursor: pointer; }
.tx-chip[aria-pressed="true"] { border-color: var(--ver); color: #fff; background: rgba(226, 70, 43, .2); }
.tx-body { margin: 0 0 14px; font: 17px/2.05 var(--serif); color: rgba(242, 235, 222, .82); text-align: justify; }
.tx-s { transition: background .2s, color .2s; }
.tx-s.is-on { color: #fff; background: rgba(226, 70, 43, .22); box-shadow: 0 1px 0 var(--ver); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tx-note { margin: 0 0 8px; font-size: 12px; line-height: 1.75; color: var(--dim); }

/* 对照 */
.ov-card.ov-cmp { max-width: 980px; }
.cmp-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.cmp-c { position: relative; padding: 14px 16px; border: 1px solid var(--line2); background: rgba(242, 235, 222, .025); overflow: hidden; }
.cmp-k { position: absolute; top: -6px; right: 6px; font: 700 70px/1 var(--serif); color: rgba(242, 235, 222, .06); }
.cmp-w { margin: 0; font-size: 10.5px; color: var(--gold); }
.cmp-c h3 { margin: 4px 0 8px; font: 600 18px/1.4 var(--serif); }
.cmp-c ul { margin: 0; padding-left: 1.1em; font-size: 13px; line-height: 1.75; color: var(--mute); }
.cmp-c li + li { margin-top: 4px; }
@media (max-width: 820px) { .cmp-g { grid-template-columns: 1fr; } }

/* 旋刻 */
.ov-card.ov-carve { max-width: 520px; }
.cv-stage { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 10px; }
.cv-ref { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--dim); }
.cv-ref b { font: 700 34px/1.2 var(--serif); color: var(--paper); margin-bottom: 6px; }
.cv-ref b.is-mir { transform: scaleX(-1); color: var(--gold); }
.cv-c { display: block; touch-action: none; cursor: crosshair; box-shadow: 0 10px 24px rgba(0, 0, 0, .6); }
.cv-bar { display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: var(--dim); }
.cv-bar i { position: relative; flex: 1; height: 4px; background: var(--line); }
.cv-bar b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); }
.cv-hint { margin: 8px 0 0; font-size: 13px; color: var(--mute); min-height: 1.6em; }

/* 印张 */
.ov-card.ov-print { padding: 20px; }
.pr-g { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.pr-sheet { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pr-paper { display: flex; justify-content: center; width: 100%; }
.pr-c { display: block; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; box-shadow: 0 18px 40px rgba(0, 0, 0, .65); }
html.is-embed .pr-c { max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); }
.pr-sheet figcaption, .pr-cmp p { font-size: 10.5px; color: var(--dim); margin: 0; }
.pr-cmp { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.pr-thumb { display: block; border: 1px solid var(--line2); }
.pr-st { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0 0 10px; font-size: 11.5px; }
.pr-st div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.pr-st dt { color: var(--dim); }
.pr-st dd { margin: 0; color: var(--paper); text-align: right; }
.pr-stamps { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 12px; }
.pr-est { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--mute); }
@media (max-width: 760px) {
	.pr-g { grid-template-columns: 1fr; gap: 14px; }
	.pr-c { max-height: 52vh; max-height: 52dvh; }
	html.is-embed .pr-c { max-height: 46vh; max-height: 46dvh; }
}

/* 木字 */
.ov-card.ov-wood { max-width: 640px; }
.wd-c { display: block; margin: 4px auto 6px; }
.wd-cap { margin: 0 0 12px; min-height: 1.6em; text-align: center; font-size: 11px; color: var(--gold); }

@media (max-width: 560px) {
	.ov-card { padding: 18px 16px; }
	.ov-h { font-size: 22px; }
	.pk { padding: 10px 12px; }
	.pk-t { font-size: 16px; }
	.tx-body { font-size: 16px; line-height: 1.95; }
}
