/* English handwriting practice sheets (דפי כתיבה באנגלית). Plain, no library.
   Controls are Hebrew/RTL; the writing sheet itself is LTR (English). */

.in4u-ew {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	margin: 16px 0;
	font-family: inherit;
	color: #212529;
	direction: rtl;
	text-align: right;
}

.in4u-ew-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin-bottom: 12px; }
.in4u-ew-ctrl { display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin: 0; }
.in4u-ew-ctrl > span { font-weight: 600; color: #495057; }
.in4u-ew-ctrl select,
.in4u-ew-ctrl input[type="text"] {
	padding: 6px 10px; border: 1px solid #ced4da; border-radius: 4px;
	background: #fff; font-size: 14px; font-family: inherit; min-width: 140px; direction: rtl;
}
.in4u-ew-ctrl input[type="text"] { direction: ltr; text-align: left; }

.in4u-ew-actions {
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
	margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0;
}
.in4u-ew-btn { padding: 8px 16px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; font-family: inherit; cursor: pointer; transition: filter 0.15s; }
.in4u-ew-btn:hover { filter: brightness(0.95); }
.in4u-ew-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.in4u-ew-btn-primary { background: #2271b1; color: #fff; }
.in4u-ew-btn-secondary { background: #fff; color: #2271b1; border: 1px solid #2271b1; }
.in4u-ew-status { font-size: 13px; color: #6c757d; }

/* The sheet is LTR (English). */
.in4u-ew-sheet { background: #fff; padding: 8px; direction: ltr; text-align: left; }
.in4u-ew-caption { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 16px; }

.in4u-ew-block { margin-bottom: 20px; break-inside: avoid; page-break-inside: avoid; }
.in4u-ew-model { font-weight: 700; color: #212529; margin-bottom: 6px; line-height: 1; }

/* English 3-line ruling: top solid, dashed x-height midline, solid baseline. */
.in4u-ew-line {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 4px;
	padding: 0 6px 2px;
	border-top: 1px solid #cfd4d9;
	border-bottom: 2px solid #333;
	margin-bottom: 8px;
}
.in4u-ew-line::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 50%;
	border-top: 1px dashed #c4c9ce;
}
.in4u-ew-trace { color: #d0d0d0; font-weight: 700; line-height: 1; letter-spacing: 2px; white-space: pre-wrap; }

.ew-big .in4u-ew-line { height: 84px; }
.ew-big .in4u-ew-trace { font-size: 52px; }
.ew-big .in4u-ew-model { font-size: 40px; }

.ew-medium .in4u-ew-line { height: 62px; }
.ew-medium .in4u-ew-trace { font-size: 36px; }
.ew-medium .in4u-ew-model { font-size: 28px; }

@media print {
	.in4u-ew-controls, .in4u-ew-actions { display: none !important; }
	.in4u-ew { border: none; padding: 0; margin: 0; }
}
