@font-face {
	font-family: "HXCS WenKai";
	src: url("vendor/wenkai.woff2") format("woff2");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

.hxt-paper, .hxt-paper * { box-sizing: border-box; }
.hxt-paper {
	--paper-width: 215.9mm;
	--paper-height: 279.4mm;
	width: var(--paper-width);
	height: var(--paper-height);
	padding: 12mm;
	margin: 0;
	background: white;
	color: #17221f;
	font: 12pt/1.3 system-ui, sans-serif;
}
.hxt-paper[data-paper="a4"] { --paper-width: 210mm; --paper-height: 297mm; }
.hxt-paper-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 5mm;
	height: 15mm;
	margin: 0;
}
.hxt-paper-title { font: 700 14pt/1.25 system-ui, sans-serif; }
.hxt-paper-name { font-size: 10pt; }
.hxt-character-block { margin: 0 0 2mm; break-inside: avoid; }
.hxt-stroke-steps {
	display: grid;
	grid-template-columns: repeat(var(--hxt-strokes-per-row), 12mm);
	grid-auto-rows: 14mm;
	margin-bottom: 1mm;
}
.hxt-stroke-step {
	display: grid;
	grid-template-rows: 11mm 3mm;
	justify-items: center;
	font: 7pt/3mm system-ui, sans-serif;
}
.hxt-stroke-step svg { display: block; width: 11mm; height: 11mm; }
.hxt-pronunciation {
	height: 5mm;
	line-height: 5mm;
	width: calc(100% / var(--columns));
	text-align: center;
	font-size: 10pt;
	white-space: nowrap;
}
.hxt-sheet-row {
	display: grid;
	grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
	border-inline-start: .25mm solid #50625b;
	border-block-start: .25mm solid #50625b;
}
.hxt-sheet-row:last-child { border-block-end: .25mm solid #50625b; }
.hxt-cell {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-inline-end: .25mm solid #50625b;
	font: 500 var(--glyph-size)/1 "HXCS WenKai", KaiTi, STKaiti, "Kaiti SC", serif;
}
.hxt-cell::before, .hxt-cell::after {
	position: absolute;
	content: "";
	pointer-events: none;
}
.hxt-cell::before { inset: 50% 0 auto; border-block-start: .2mm dashed #9caaa4; }
.hxt-cell::after { inset: 0 auto 0 50%; border-inline-start: .2mm dashed #9caaa4; }
.hxt-glyph { position: relative; z-index: 1; }
.hxt-trace { color: #979f9b; }
.hxt-print-document { margin: 0; }
@media print {
	.hxt-print-document .hxt-paper { break-after: page; }
	.hxt-print-document .hxt-paper:last-child { break-after: auto; }
}
.hxt-print-document .hxt-paper { print-color-adjust: exact; }
