/* המורה החדש · designed exam (tools/design_test.py) */
.tdxbody{background:#F5F0E6}
.tdx{font-family:"Heebo","Assistant","Rubik",system-ui,Arial,sans-serif;color:#14121F;font-size:12pt;line-height:1.55}
.tdx .tband{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 12px;background:#14121F;color:#fff;border-radius:14px;padding:11px 16px 10px;margin:0 0 12px;box-shadow:4px 4px 0 #FF5B2E;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.tdx .tlogo{font-size:19pt;font-weight:800;line-height:1.1;letter-spacing:-.3px}.tdx .tlogo b{color:#FF5B2E}
.tdx .tkind{grid-row:1/3;grid-column:2;background:#B6F03C;color:#14121F;font-weight:800;font-size:12pt;padding:5px 14px;border-radius:99px;border:2px solid #fff;white-space:nowrap}
.tdx .kband{box-shadow:4px 4px 0 #B6F03C}.tdx .kband .tkind{background:#FF5B2E;color:#fff}
.tdx .tsub{font-size:9.5pt;color:#D9D4C8;line-height:1.35}
.tdx .ttitle{font-size:20pt;font-weight:800;line-height:1.25;margin:4px 0 8px}
.tdx .tchips{display:flex;flex-wrap:wrap;gap:6px 8px;margin:0 0 10px}
.tdx .tchip{background:#F5F0E6;border:1.5px solid #14121F;border-radius:99px;padding:2px 12px;font-weight:700;font-size:10.5pt}.tdx .tchip i{font-style:normal;font-weight:500;color:#555}
.tdx .tfields{display:grid;grid-template-columns:2.2fr 1fr 1.2fr 1fr;gap:8px;margin:0 0 12px}
.tdx .tf{border:2px solid #14121F;border-radius:10px;padding:5px 10px 18px;display:flex;justify-content:space-between;align-items:flex-start;font-weight:700;font-size:10.5pt;background:#fff}
.tdx .tf i{font-style:normal;color:#888;font-weight:500;align-self:flex-end;margin-bottom:-14px}
.tdx .tscore{background:#FFF7E8;border-color:#FF5B2E}
.tdx .tinstr{background:#F5F0E6;border-inline-start:6px solid #FF5B2E;border-radius:8px;padding:8px 12px;font-weight:500;font-size:10.5pt;margin:0 0 14px}
.tdx .tsec{display:flex;align-items:center;gap:10px;border:2px solid #14121F;border-radius:12px;padding:6px 12px;margin:16px 0 4px;box-shadow:3px 3px 0 #14121F;break-inside:avoid;break-after:avoid-page;page-break-after:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.tdx .tsec.a-o{background:#FF5B2E;color:#fff}.tdx .tsec.a-b{background:#3B4BFF;color:#fff}.tdx .tsec.a-p{background:#FF7CC8}.tdx .tsec.a-l{background:#B6F03C}
.tdx .tlet{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;color:#14121F;border:2px solid #14121F;font-weight:800;font-size:13pt;flex:none}
.tdx .tname{font-weight:800;font-size:13.5pt;flex:1}
.tdx .tpts{background:#fff;color:#14121F;border:2px solid #14121F;border-radius:99px;padding:1px 11px;font-weight:800;font-size:10pt;white-space:nowrap}
.tdx .tsecsub{margin:4px 2px 8px;font-size:10.5pt;color:#444;break-after:avoid-page;page-break-after:avoid}
.tdx .titems,.tdx .tkeys{list-style:none;margin:0;padding:0}
.tdx .titems>li,.tdx .tkeys>li{position:relative;padding-inline-start:40px;margin:0 0 12px;min-height:28px;break-inside:avoid;page-break-inside:avoid}
.tdx .qn{position:absolute;inset-inline-start:0;top:1px;width:28px;height:28px;border-radius:8px;background:#14121F;color:#fff;display:grid;place-items:center;font-weight:800;font-size:11pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.tdx .tkeys .qn{background:#FF5B2E}
.tdx .titems .q{margin:0 0 3px;white-space:normal}
.tdx .pts{display:inline-block;margin-inline-start:6px;background:#FFF0EA;color:#C2401C;border:1.5px solid #FF5B2E;border-radius:99px;padding:0 8px;font-size:9pt;font-weight:800;line-height:1.5;vertical-align:1px;white-space:nowrap}
.tdx .opts{list-style:none;margin:5px 0 2px;padding:0;display:flex;flex-wrap:wrap;gap:6px 22px}
.tdx .opts .o{display:inline-grid;place-items:center;width:22px;height:22px;border:1.8px solid #14121F;border-radius:50%;font-size:9.5pt;font-weight:800;margin-inline-end:4px;background:#fff}
.tdx .ln{border-bottom:1.2px solid #B9B3A6;height:28px}
.tdx .passage{border:1.5px solid #14121F;border-inline-start:6px solid #3B4BFF;border-radius:8px;padding:7px 12px;margin:4px 0 6px;background:#FAF7F0}
.tdx .passage p[dir=rtl]{font-family:"Frank Ruhl Libre","David CLM",serif;font-size:13.5pt!important;line-height:1.75!important}
.tdx table.frm{border-collapse:collapse;margin:6px 0;width:100%}.tdx .frm th{background:#14121F;color:#fff;padding:4px 8px}.tdx .frm td{border:1.5px solid #14121F;padding:4px 8px}
.tdx .tkeys li>div{white-space:normal}
.tdx.key>.instr{background:#F5F0E6;border-inline-start:6px solid #B6F03C;border-radius:8px;padding:8px 12px;font-weight:500;font-size:10.5pt}
.tdx .tfoot{margin:18px 0 0;font-size:8.5pt;color:#888;text-align:center;border-top:1px solid #E2DCCF;padding-top:6px}
@media(max-width:640px){.tdx .tfields{grid-template-columns:1fr 1fr}.tdx .ttitle{font-size:17pt}.tdx .tlogo{font-size:15pt}.tdx .tkind{font-size:10pt;padding:3px 10px}.tdx .opts{display:block}.tdx .opts li{margin:3px 0}}
@page{size:A4;margin:13mm 13mm 15mm;
 @top-center{content:"";font-family:"Heebo",Arial,sans-serif;font-size:8pt;color:#888;direction:rtl}
 @bottom-center{content:"עמוד " counter(page) " מתוך " counter(pages);font-family:"Heebo",Arial,sans-serif;font-size:8.5pt;color:#555;direction:rtl}
 @bottom-left{content:"המורה החדש";font-family:"Heebo",Arial,sans-serif;font-size:8pt;font-weight:700;color:#FF5B2E}
 @bottom-right{content:"חומרי לימוד חינם";font-family:"Heebo",Arial,sans-serif;font-size:8pt;color:#999;direction:rtl}}
@media print{
 .tdxbody{background:#fff}
 .tdx.sheet{padding:0;margin:0;box-shadow:none}
 .tdx.key{break-before:page;page-break-before:always}
 .tdx.key.alone{break-before:auto;page-break-before:auto}
}
