/* B-I1 isolated renderer. No global selectors, tokens, fonts, or clock. */
.teaching-image { width:100%; min-width:0; color:#202124; font:400 1rem/1.6 var(--font-sans, sans-serif); }
.teaching-image-viewport { position:relative; width:100%; height:clamp(16rem,65dvh,48rem); overflow:hidden; background:#EEECE7; touch-action:none; overscroll-behavior:contain; }
.teaching-image-pixels,.teaching-image-overlay { position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none; }
.teaching-image-viewport:focus-visible,.teaching-image button:focus-visible,.teaching-image summary:focus-visible { outline:3px solid #285B91; outline-offset:3px; }
.teaching-image-tools { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; padding:.65rem 0; }
.teaching-image-tools button { min-width:44px; min-height:44px; padding:.4rem .7rem; font:inherit; color:inherit; background:#F8F6F1; border:1px solid #7A887E; border-radius:4px; cursor:pointer; }
.teaching-image-tools button:disabled { cursor:default; opacity:.6; }
.teaching-image-tools button[hidden] { display:none; }
.teaching-image-reading { flex-basis:100%; color:#505750; font-size:1rem; }
.teaching-image-notice { margin:.65rem 0 0; }
.teaching-image-notice:empty { display:none; }
.teaching-image-comments { margin:.4rem 0; padding:.5rem .5rem .5rem 2.5rem; background:#F8F6F1; }
.teaching-image-comments li,.teaching-image-descriptions li { overflow-wrap:anywhere; padding:.25rem; }
.teaching-image-descriptions { margin:.5rem 0; }
.teaching-image-descriptions summary { min-height:44px; cursor:pointer; }
.teaching-image-descriptions ol { padding-left:2.5rem; }
.teaching-image-node { display:block; margin:.4rem 0; width:12rem; max-width:100%; pointer-events:none; }
.teaching-image-node canvas { display:block; width:100%; height:auto; object-fit:contain; background:#EEECE7; }
@media(max-width:559px) { .teaching-image-node { width:8rem; } }
@media(forced-colors:active) { .teaching-image-tools button,.teaching-image-viewport { border:1px solid CanvasText; } }

/* The integrated shell owns a bounded teaching surface. Keep long commentary
   inside that surface so it can never cover the parent audio controls. */
.visual-polish-c #teaching-image-slot { position:absolute; inset:0; overflow:auto; overscroll-behavior:contain; padding:.5rem; }
.visual-polish-c #teaching-image-slot .teaching-image-viewport { height:clamp(12rem,48dvh,40rem); }
#image-boundary-notice { padding:.5rem .75rem; background:#F8F6F1; border:1px solid #7A887E; }
#image-boundary-notice p { margin:0 0 .25rem; }
#image-boundary-notice button { min-height:44px; font:inherit; }
