/* No, Pero Why? educator editions (production/editions-spec.md, sections 2.2, 2.5 and 5.3).
   A sheet is landscape letter: 1056 x 816 CSS px with a 24 px margin. The student page sits on the left at 72.727%
   (593.45 x 768), then a 20 px gutter and the educator column (about 394 px). Nothing in the column passes y = 792.
   Educator text is 14.67/20 (11 pt). Answers on the student page are blue italic 20.5 px (11.2 pt after reduction). */
.te-sheet,.te-demo-sheet{position:relative;width:1056px;height:816px;flex:none;padding:24px;box-sizing:border-box;overflow:hidden;
 display:grid;grid-template-columns:593.45px minmax(0,1fr);column-gap:20px;background:#fff;color:var(--ink);text-align:left;
 font:500 14.67px/20px var(--body);box-shadow:0 0 0 1px var(--hair),0 12px 28px -14px rgba(20,43,70,.45)}
.te-sheet *,.te-demo-sheet *{box-sizing:border-box}
.te-fac{width:593.45px;height:768px;overflow:hidden;outline:1.5px solid var(--ink);background:var(--paper)}
.te-fac>.bk-page{transform:scale(.72727);transform-origin:0 0;box-shadow:none}
.te-side{display:flex;flex-direction:column;gap:8px;min-width:0;height:768px;overflow:hidden}
/* educator text: the site's paragraph sizes never reach it (the facsimile keeps the student page's own rules) */
:is(.te-side,.te-body,.te-plan-cols,.te-cover) :where(p,li,dd,dt,td,th,span,b,i,em,strong,a,figcaption,div){font-size:inherit;line-height:inherit;color:inherit;letter-spacing:0;word-spacing:normal}
:is(.te-side,.te-body,.te-plan-cols,.te-cover) :where(p,figure){margin:0;max-width:none}
:is(.te-side,.te-body,.te-plan-cols,.te-cover) :where(ul,ol){margin:0;padding:0 0 0 18px}
:is(.te-side,.te-body,.te-plan-cols,.te-cover) :where(li+li){margin-top:2px}
.te-head{display:flex;flex-wrap:wrap;align-items:center;min-height:24px;padding-bottom:4px;border-bottom:2px solid var(--ink);font:800 13px/18px var(--body)}
.te-head span+span::before{content:"|";margin:0 .5em;font-weight:500}
.te-blk{display:flex;flex-direction:column;gap:4px}
.te-blk+.te-blk{border-top:1.5px solid var(--ink);padding-top:8px}
.te-sheet :is(h2,h3,h4){margin:0;color:var(--ink);letter-spacing:0!important;word-spacing:.12em!important;text-wrap:pretty;max-width:none}
.te-sheet :is(h2,h3,h4) *{font-family:inherit!important}
.te-blk h3{display:flex;gap:6px;align-items:center;font:650 15px/20px var(--display)!important}
.te-blk h3 .npw-icon{width:18px;height:18px;stroke-width:2}
.te-cut{display:flex;gap:6px;align-items:flex-start}
.te-cut .npw-icon,.te-tbl .npw-icon{width:16px;height:16px;margin-top:2px}
.te-heat{display:inline-flex;gap:2px;margin-right:6px;vertical-align:-1px}
.te-heat i{display:block;width:10px;height:12px;border:1.5px solid var(--ink);border-radius:2px;background:#fff}
.te-heat i.on{background:var(--ink)}
.te-heatmap{list-style:none;padding:0!important;display:flex;flex-direction:column;gap:4px}

/* educator-only sheets: plan, front and back matter */
.te-full,.te-plan{display:flex;flex-direction:column;gap:12px}
.te-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}
.te-sheet h2{font:650 26px/30px var(--display)!important}
.te-sheet h3{font:650 16px/20px var(--display)!important}
.te-folio{margin-top:auto;display:flex;justify-content:center}
.te-folio span{min-width:28px;height:24px;padding:0 10px;border-radius:99px;background:var(--ink);color:#fff;display:grid;place-items:center;font:700 12px/24px var(--body)}
.te-sheet h2.te-plan-t{font:650 24px/28px var(--display)!important}
.te-plan-cols{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:20px;align-items:start}
.te-plan-cols>div,.te-cols>div{display:flex;flex-direction:column;gap:12px;min-width:0}
.te-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;align-items:start}
.te-pl{display:flex;flex-direction:column;gap:4px}
.te-pl h3{font:650 15px/20px var(--display)!important;padding-bottom:2px;border-bottom:1.5px solid var(--ink)}
.te-tbl{width:100%;border-collapse:collapse;font:inherit}
.te-tbl th,.te-tbl td{text-align:left;vertical-align:top;padding:3px 6px 3px 0;border-bottom:1px solid var(--hair)}
.te-tbl thead th{font-weight:800;border-bottom:1.5px solid var(--ink);white-space:nowrap}
.te-tbl tbody th{font-weight:600}
.te-tbl .bk-n,.te-sheet .bk-n:not(.te-fac .bk-n){display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;margin-right:2px;border-radius:99px;background:var(--ink);color:#fff;font:800 14.67px/22px var(--body)}
.te-course,.te-track{table-layout:fixed}
.te-course thead th,.te-track thead th{white-space:normal;vertical-align:bottom}
.te-course td,.te-course th{padding:6px 10px 6px 0}

.te-track td{border-left:1px solid var(--hair);height:28px}
.te-cols>div:has(.te-std){gap:6px}
.te-std a,.te-url a{color:var(--ink);text-decoration:underline;text-underline-offset:2px}
.te-cases{font-weight:700}
.te-note{background:var(--quiet);border-radius:10px;padding:8px 12px}
.te-codecard{display:flow-root;padding:10px 12px;border:1.5px solid var(--ink);border-radius:12px}
.te-codecard .bk-qr{float:right;width:72px;height:72px;margin:0 0 6px 10px}
.te-codecard p+p{margin-top:4px}
.te-url{font-size:13px!important;line-height:20px!important}
.te-2col{columns:2;column-gap:32px}
.te-2col section{break-inside:avoid;margin-bottom:16px;display:flex;flex-direction:column;gap:6px}
.te-2col ul{margin:0;padding-left:18px}
.te-src{overflow-wrap:anywhere}

/* how to use: a real sheet at 50% with callouts */
.te-how{display:grid;grid-template-columns:528px minmax(0,1fr);gap:24px;height:100%}
.te-how-demo{display:flex;flex-direction:column;gap:12px}
.te-demo{width:528px;height:408px;overflow:hidden;outline:1.5px solid var(--ink)}
.te-demo>.te-demo-sheet{transform:scale(.5);transform-origin:0 0;box-shadow:none}
.te-callouts{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:4px}
.te-how-text{display:flex;flex-direction:column;gap:8px;min-width:0}
.te-icons{list-style:none;padding:0!important;display:flex;flex-direction:column;gap:4px}
.te-icons li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;align-items:start}
.te-icons .npw-icon{width:18px;height:18px;margin-top:1px}
.te-legend .bk-ans{font-size:16px!important;line-height:20px!important;margin-right:6px}
.te-legend .bk-ans-key{width:16px;height:16px}

/* cover */
.te-cover{grid-template-columns:560px minmax(0,1fr);column-gap:32px;align-items:center;padding:48px;background:var(--fill);color:var(--on)}
.te-cover .bk-cv-text{gap:12px}
.te-cover .bk-cv-title{font-size:44px!important;line-height:48px!important}


/* Educator edition: make the teaching layer visually scannable beside the student facsimile. */
.te-side{--te-story:#eaf0ff;--te-evidence:#fff6c9;--te-check:#ffe6ef}
.te-head{background:var(--ink);color:#fff;padding:5px 8px;border-radius:8px;border-bottom:0}
.te-head span{color:#fff!important}
.te-blk{padding:7px 9px;border-radius:10px}
.te-blk:nth-child(3n+1){background:var(--te-story)}
.te-blk:nth-child(3n+2){background:var(--te-evidence)}
.te-blk:nth-child(3n){background:var(--te-check)}
.te-blk+.te-blk{border-top:0;padding-top:7px}
.te-blk h3{padding-bottom:3px;border-bottom:2px solid currentColor}
.te-note{background:var(--te-check);border-left:6px solid var(--pink)}
.te-pl{padding:8px 10px;border-radius:10px;background:#fff;border:1.5px solid var(--ink)}
.te-plan-cols>div:nth-child(1) .te-pl{box-shadow:4px 4px 0 var(--blue)}
.te-plan-cols>div:nth-child(2) .te-pl{box-shadow:4px 4px 0 var(--gold)}
.te-plan-cols>div:nth-child(3) .te-pl{box-shadow:4px 4px 0 var(--pink)}

/* ---------- narrower screens: the educator column follows the student page ---------- */
@media screen and (max-width:1099px){
 .te-sheet{width:100%;height:auto;display:flex;flex-direction:column;gap:16px;padding:16px;overflow:visible}
 .te-fac{width:auto;height:auto;overflow:visible;outline:0;background:none;display:flex;justify-content:center}
 .te-fac>.bk-page{transform:none}
 .te-side{height:auto;overflow:visible}
 .te-2col{columns:1}
 .te-plan-cols,.te-cols{grid-template-columns:minmax(0,1fr);row-gap:12px}
 .te-how{grid-template-columns:minmax(0,1fr);height:auto}
 .te-demo{display:none}
 .te-cover{grid-template-columns:minmax(0,1fr);padding:24px 16px}
 .te-course,.te-course tbody,.te-course tr,.te-course th,.te-course td,.te-track,.te-track tbody,.te-track tr,.te-track th,.te-track td,
 .te-plan .te-tbl,.te-plan .te-tbl tbody,.te-plan .te-tbl tr,.te-plan .te-tbl th,.te-plan .te-tbl td{display:block;width:auto!important}
 .te-course thead,.te-track thead,.te-plan .te-tbl thead{display:none}
 .te-course tr,.te-track tr,.te-plan .te-tbl tr{padding:8px 0;border-bottom:1.5px solid var(--ink)}
 .te-course td,.te-track td,.te-plan .te-tbl td{border:0;height:auto}
 .te-course td::before,.te-track td::before,.te-plan .te-tbl td::before{content:attr(data-l);font-weight:800;margin-right:6px}
 .te-track td:empty{display:none}
}

@media print{
 .te-sheet{width:1056px;height:816px;margin:0!important;box-shadow:none;break-after:page;break-inside:avoid}
}
