.notebook-page .entry-body:has(.tm-demo){max-width:1040px}
.notebook-page .entry-body:has(.tm-demo)>:is(p,h2,details,.tm-prose){max-width:720px;margin-left:auto;margin-right:auto}
.tm-demo{background:#fcfbf7;border:1px solid #b7ccce;padding:26px;margin:22px 0 40px;color:#294b60;font:15px/1.6 system-ui,sans-serif}
.tm-demo [hidden]{display:none!important}.tm-demo p{font:inherit;margin:8px 0 14px}
.tm-demo .tm-kicker{font:12px/1.5 ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase;margin:0 0 12px}
.tm-demo h2{font-size:27px!important;margin:4px 0 10px!important;max-width:800px}
.tm-demo h3{font-size:21px!important;margin:0 0 10px!important}
.notebook-page .entry-body .tm-demo figure h3{font-family:var(--dg-heading-family);font-weight:400;color:var(--dg-heading-ink)}
.tm-top{display:flex;justify-content:space-between;gap:24px;align-items:center;border-bottom:1px solid #d3deda;padding-bottom:20px}
.tm-top>div{min-width:0}.tm-demo button,.tm-demo select{min-height:44px;padding:9px 14px;background:#fffefa;border:1px solid #8da6ad;border-radius:3px;font:15px/1.4 system-ui,sans-serif;color:#294b60;cursor:pointer}
.tm-demo .tm-primary{background:#294b60;color:#fffefa;border-color:#294b60;min-width:164px}
.tm-demo button:hover{background:#e1ecee}.tm-demo .tm-primary:hover{background:#1b3c4f}
.tm-demo button:disabled,.tm-demo input:disabled{opacity:.5;cursor:default}
.tm-demo :is(button,input,summary,a):focus-visible{outline:3px solid #9e7944;outline-offset:4px}
.tm-demo button[aria-pressed=true]{background:#dfecef;border-color:#286582;box-shadow:inset 0 -2px #286582}
.tm-states{display:flex;flex-wrap:wrap;gap:8px;padding:18px 0 12px}
.tm-status{display:flex;gap:22px;justify-content:space-between;border-bottom:1px solid #d3deda;padding:0 0 18px;align-items:start}
.tm-status>div{min-width:0}.tm-status .tm-readout{font:13px/1.65 ui-monospace,monospace;min-width:195px}
.tm-current-field{font:13px/1.6 ui-monospace,monospace;white-space:nowrap}
.tm-mini{width:120px;flex:0 0 120px;margin:8px 0 0}.tm-mini figcaption{text-align:center;margin:6px 0 0;font-size:12px}.tm-current-field{display:block;margin:8px 0}
.tm-demo .tm-engine{font:12px/1.6 ui-monospace,monospace;color:#526977}
.tm-view-choice{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:12px 0 24px;border:0;padding:0}
.tm-view-choice legend{float:left;margin-right:18px;padding:0}.tm-view-choice label{min-height:32px;display:inline-flex;align-items:center;gap:7px}
.tm-view-choice input{accent-color:#286582;width:17px;height:17px}
.tm-plates{display:grid;grid-template-columns:1fr 1fr;gap:24px}.tm-plates figure{margin:0;min-width:0}
.tm-demo svg{display:block;width:100%;height:auto}.tm-demo figcaption{font:13px/1.6 system-ui,sans-serif;margin:8px 0 12px}
.tm-turn{padding:18px 0;border-top:1px solid #d3deda;border-bottom:1px solid #d3deda;display:grid;grid-template-columns:1fr 1.5fr;gap:24px;align-items:center}
.tm-turn input[type=range]{display:block;width:100%;min-height:36px;accent-color:#286582}
.tm-turn label{display:block}.tm-turn button{margin-top:10px}.tm-turn output{font-family:ui-monospace,monospace}
.tm-invariants{display:grid;grid-template-columns:.85fr 1.35fr;gap:36px;padding:22px 0}
.tm-invariants figure{margin:0}.tm-projector svg{max-width:260px}.tm-tensors{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tm-tensors figcaption{margin-bottom:6px;font-size:14px}.tm-tensors svg{max-width:240px}
.tm-demo .tm-small{font:13px/1.6 system-ui,sans-serif}.tm-demo .tm-number{font:16px/1.6 ui-monospace,monospace;overflow-wrap:anywhere}
.tm-demo details{margin:16px 0}.tm-demo summary{min-height:32px;cursor:pointer}
.tm-demo pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;background:#edf2ee;color:#294b60;font:13px/1.65 ui-monospace,monospace}
.tm-table-scroll{max-width:100%;overflow-x:auto}.tm-demo table,.tm-recorded table{width:100%;border-collapse:collapse;font:13px/1.6 system-ui,sans-serif}
.tm-demo td,.tm-demo th,.tm-recorded td,.tm-recorded th{text-align:left;padding:10px 12px;border-bottom:1px solid #d3deda;white-space:nowrap}
.tm-demo caption,.tm-recorded caption{text-align:left;margin:10px 0}
.tm-recorded img{width:100%;height:auto;display:block}.tm-recorded{margin:30px 0}.tm-recorded figcaption{font:14px/1.6 system-ui,sans-serif}
.tm-prose li{margin:12px 0}.tm-equation{font:16px/1.8 ui-monospace,monospace;overflow-wrap:anywhere}
.tm-plain-note{border-left:3px solid #ad8c50;background:#f4f5ef;padding:15px 20px}
@media(max-width:700px){.tm-demo{padding:18px 12px;margin:18px -4px 30px}.tm-top{display:block}.tm-top button{width:100%;margin-top:12px}.tm-status{display:block}.tm-status .tm-readout{margin:10px 0 0}.tm-plates{grid-template-columns:1fr;gap:24px}.tm-turn{grid-template-columns:1fr;gap:8px}.tm-invariants{grid-template-columns:1fr;gap:22px}.tm-invariants .tm-projector{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tm-projector svg{min-width:150px}.tm-projector h3{grid-column:1/-1}.tm-tensors{gap:8px}.tm-demo .tm-view-choice legend{float:none;display:block;width:100%}.tm-demo .tm-view-choice{gap:12px}.tm-plates svg text{font-size:17px}.tm-states button{flex:1;padding:9px 6px}.tm-demo h2{font-size:25px!important}}
@media(max-width:360px){.tm-invariants .tm-projector{display:block}.tm-projector svg{max-width:220px}.tm-plates svg text{font-size:18px}.tm-states button{font-size:14px}.tm-demo .tm-number{font-size:14px}}
@media(max-width:700px){.tm-invariants .tm-projector{display:block}.tm-projector svg{max-width:260px}.tm-tensors{grid-template-columns:1fr}.tm-tensors svg{max-width:260px}.tm-status{padding-bottom:8px;margin-bottom:18px}.tm-current-field{display:block;margin:10px 0}.tm-status{scroll-margin-top:14px}}
@media(max-width:700px){.tm-status{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:12px}.tm-mini{width:96px;margin-top:28px}.tm-status h3{font-size:20px!important}.tm-current-field{white-space:normal;overflow-wrap:anywhere}.tm-status .tm-engine{font-size:11px}}
