/* A room supplies the physical display. Its contents stay native DOM, with
   the exact same logical dimensions across the exhibit and the paper camera. */
.ev-location{position:absolute;inset:0;z-index:2;overflow:hidden;isolation:isolate;background:#373e37;direction:ltr}
.ev-location[hidden],.ev-paper-rig[hidden]{display:none}
.ev-location,.ev-location *{box-sizing:border-box}
.ev-room,.ev-plate,.ev-atmosphere{position:absolute;inset:0;pointer-events:none}
.ev-plate{background-position:center 63%;background-size:cover;background-repeat:no-repeat}
.ev-atmosphere{background:radial-gradient(ellipse at 49% 44%,transparent 50%,#07141038 100%);transition:background .4s}
.ev-location[data-locale=monitor] .ev-room{background:#566560}
.ev-location[data-locale=monitor] .ev-plate{background-position:center 85%}
.ev-location[data-locale=whiteboard] .ev-room{background:#dddace}
.ev-location[data-locale=whiteboard] .ev-plate{background-position:center 53%}
.ev-location[data-locale=archive] .ev-room{background:#253c32}
.ev-location[data-locale=archive] .ev-plate{background-position:center 67%}
.ev-location[data-locale=notebook] .ev-room{background:#a8aa90}
.ev-location[data-locale=notebook] .ev-plate{background-position:50% 51%}
.ev-location[data-locale=notebook] .ev-atmosphere{background:radial-gradient(ellipse at 36% 39%,transparent 56%,#383a2417)}
.ev-rig,.ev-paper-rig{position:absolute;z-index:2;left:50%;top:50%;width:var(--ev-w);height:var(--ev-h);transform:translate(-50%,-50%) scale(var(--ev-scale));transform-origin:center;pointer-events:none}
.ev-instrument{position:relative;width:100%;height:100%;isolation:isolate;transition:filter .5s,opacity .45s,scale .54s}
.ev-instrument>div,.ev-lens,.ev-ribbon,.ev-stand>*,.ev-marker-tray>*{position:absolute;pointer-events:none}
.ev-glass{inset:0;z-index:3}
.ev-content,.ev-idle{position:absolute;inset:0;isolation:isolate}
.ev-location .ev-content>*{width:100%;height:100%;position:relative;inset:auto;pointer-events:auto}
.ev-idle{background:transparent}
.ev-stand,.ev-cover,.ev-backpages,.ev-frame,.ev-chin,.ev-marker-tray,.ev-bindings,.ev-ribbon,.ev-lens{display:none}
.ev-location[data-filled=no] .ev-content{visibility:hidden}
.ev-location[data-reading=true] .ev-instrument{scale:.96;filter:brightness(.81) saturate(.9)}
/* A slim aluminium desktop display. Its foot rests on the manager's desk. */
.ev-location[data-locale=monitor] .ev-frame{display:block;inset:-10px -12px calc(-1 * var(--ev-chin) - 2px);background:linear-gradient(112deg,#d0d0c4,#f5f2e4 18%,#777f77 53%,#c5c9b9 89%,#eef0dd);border:1px solid #869087;border-radius:16px;box-shadow:3px 9px 16px #07171668,0 0 1px 1px #cdd4c0,inset 0 -2px 1px #6c776e}
.ev-location[data-locale=monitor] .ev-glass{background:#0b2226;box-shadow:0 0 0 6px #202825,0 0 0 7px #536157;border-radius:4px;overflow:hidden}
.ev-location[data-locale=monitor] .ev-idle{background:radial-gradient(ellipse at 23% 10%,var(--surface),var(--surface-alt) 78%)}
.ev-location[data-locale=monitor][data-filled=no] .ev-idle:after{content:"";position:absolute;inset:0;background:url('assets/brand.svg') center / 64px 64px no-repeat;opacity:.6}
.ev-location[data-locale=monitor] .ev-chin{display:block;z-index:2;left:-6px;right:-6px;top:calc(100% + 7px);height:calc(var(--ev-chin) - 5px);border-radius:0 0 10px 10px;background:linear-gradient(113deg,#bdc8bd,#dce4d6 25%,#a5b5ac 69%,#879d94);box-shadow:inset 0 -1px 0 #50685e56}
.ev-location[data-locale=monitor] .ev-lens{display:block;z-index:5;top:-6.7px;left:50%;width:4px;height:4px;border-radius:50%;background:#263c3e;box-shadow:inset 0 0 0 .7px #598094}
.ev-location[data-locale=monitor] .ev-stand{display:block;z-index:-1;left:50%;top:calc(100% + var(--ev-chin));height:var(--ev-stand);width:195px;transform:translateX(-50%)}
.ev-stand i{width:52%;left:24%;height:90%;top:-4%;clip-path:polygon(12% 0,90% 0,83% 75%,100% 90%,86% 100%,8% 100%,0 91%,15% 70%);background:linear-gradient(104deg,#666e64,#c5cabb 22%,#bac3ad 55%,#68796d 96%)}
.ev-stand b{left:0;right:0;height:14%;bottom:3%;border-radius:50% 50% 7% 7% / 74% 74% 25% 25%;background:linear-gradient(#bfc6b7,#8c9a8f 50%,#b7c0ac 75%,#718274);box-shadow:0 3px 2px #3d4439,3px 6px 8px #1d281e45}
.ev-stand:after{content:"";position:absolute;bottom:-9%;left:-38%;width:179%;height:21%;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,#1e241989,transparent 70%);filter:blur(3px)}
/* The classroom is seen from the seats. Hardware, markers and eraser sit
   outside the ink surface rather than consuming its interactive hit targets. */
.ev-location[data-locale=whiteboard] .ev-frame{display:block;inset:-11px -12px -12px;border-radius:7px;background:linear-gradient(135deg,#b3c2b9,#f8f8f1 10%,#7d8f87 26%,#d4dfd0 57%,#61786f 84%,#bdc9ba);box-shadow:0 4px 2px #515d53,3px 9px 14px #3941374d,inset 0 0 0 1px #65796f}
.ev-location[data-locale=whiteboard] .ev-glass{border-radius:2px;background:linear-gradient(117deg,var(--surface),var(--surface-alt) 86%);box-shadow:0 0 0 2px #687d70}
.ev-location[data-locale=whiteboard] .ev-frame:before,.ev-location[data-locale=whiteboard] .ev-frame:after{content:"";position:absolute;top:2px;width:14px;height:8px;background:linear-gradient(#5a6660,#72857c);border-radius:3px}
.ev-location[data-locale=whiteboard] .ev-frame:before{left:2px}.ev-location[data-locale=whiteboard] .ev-frame:after{right:2px}
.ev-location[data-locale=whiteboard] .ev-marker-tray{display:block;z-index:3;left:17%;width:48%;top:calc(100% + 7px);height:10px;border-radius:2px 2px 4px 4px;background:linear-gradient(#eff0e8,#85978b 45%,#bdc9ba 70%,#748b7c);box-shadow:0 5px 5px #40534459}
.ev-marker-tray i{width:45px;height:6px;border-radius:4px;bottom:7px;background:linear-gradient(0deg,#b3c1b3,#f8faf2 48%,#c1cabe);box-shadow:0 1px 1px #697d6f}
.ev-marker-tray i:nth-child(1){right:18px;border-left:12px solid #257675;transform:rotate(2deg)}.ev-marker-tray i:nth-child(2){right:69px;border-right:12px solid #bd5941;transform:rotate(-2deg)}.ev-marker-tray i:nth-child(3){right:117px;border-left:12px solid #425a7d}
.ev-marker-tray b{left:21px;bottom:7px;width:43px;height:10px;border-radius:3px;background:linear-gradient(#2b4744 65%,#6e8477 66%);box-shadow:0 1px 2px #3f4e45}
/* Seen from above, the book touches the linen. The window falls to its left. */
.ev-location[data-locale=notebook] .ev-instrument{transform:rotate(-1.55deg)}
.ev-location[data-locale=notebook] .ev-cover{display:block;inset:-5px -10px -10px;background:repeating-linear-gradient(33deg,#34564a 0 1px,#2b4a40 1px 3px);border:1px solid #314338;border-radius:6px 10px 8px 6px;transform:rotate(-.2deg);box-shadow:inset 1px 1px 0 #b9c6a585,1px 2px 1px #253223bd,4px 5px 5px #28332172,9px 10px 14px -4px #2c352a51}
.ev-location[data-locale=notebook] .ev-backpages{display:block;inset:0 -5px -6px;border:1px solid #a69a7e;border-radius:3px 6px 5px 2px;background:repeating-linear-gradient(0deg,#ddd3b9 0 1px,#b4a88b 1px 2px,#eae0c5 2px 3px);transform:rotate(.1deg)}
.ev-location[data-locale=notebook] .ev-glass{background:linear-gradient(90deg,#f5ecd5,#fff5df 47%,#c6bba0 50%,#f6ecd4 53%,#f8eed6);border-radius:3px 7px 4px 2px;box-shadow:1px 2px 3px #6e634746}
.ev-location[data-locale=notebook] .ev-glass:after{position:absolute;content:"";inset:0;pointer-events:none;z-index:4;border-radius:inherit;box-shadow:inset 1px 1px 0 #fffbebad,inset -1px -1px 1px #806e4b37}
.ev-location[data-locale=notebook] .ev-ribbon{display:block;z-index:1;top:100%;left:68%;width:19px;height:34px;clip-path:polygon(0 0,100% 0,100% 100%,51% 80%,0 100%);background:linear-gradient(90deg,#9e603e,#c28050,#965435);transform:rotate(-3deg)}
/* The archive pieces already have their own drawers and cabinet hardware. */
.ev-location[data-locale=archive] .ev-idle{background:transparent}
.ev-location[data-locale=archive][data-filled=no] .ev-instrument{opacity:0}
.ev-location[data-locale=archive] .ev-content{filter:drop-shadow(0 7px 8px #101b1633)}
/* The same physical printed page can be raised in any room, without a cut
   to the student's table. Its flip layers must extend past the paper edges. */
.ev-paper-rig{z-index:6;left:50%;top:50%;width:var(--ev-pw);height:var(--ev-ph);transform:translate(-50%,-50%) scale(var(--ev-paper-scale))}
.ev-paper-deck,.ev-paper-host{position:absolute;inset:0;isolation:isolate}
.ev-paper-deck{filter:drop-shadow(2px 15px 19px #15251d60)}
.ev-paper-deck>i{position:absolute;inset:2px -2px -4px;background:var(--surface-alt);transform:rotate(-1.4deg);box-shadow:0 0 0 1px var(--border)}
.ev-paper-host>#articleSurface,.ev-paper-host>.ev-print-clone{pointer-events:auto;width:100%;height:100%;position:relative}
.ev-location[data-reading=true] .ev-atmosphere{background:linear-gradient(#13251c1c,#13251c30),radial-gradient(ellipse,transparent 34%,#14251d36)}
.ev-location.ev-ghost,.ev-sheet-ghost{pointer-events:none!important}
.ev-location.ev-ghost{z-index:3}
.ev-location.ev-ghost *,.ev-sheet-ghost *{pointer-events:none!important}
.ev-location[data-format=compact] .ev-plate{background-position:50% 65%}
.ev-location[data-format=compact][data-locale=monitor] .ev-plate{background-position:57% 80%}
.ev-location[data-format=compact][data-locale=whiteboard] .ev-plate{background-position:48% 59%}
.ev-location[data-format=compact] .ev-marker-tray{width:69%}
.ev-location[data-format=compact] .ev-stand{width:115px}
@media(prefers-reduced-motion:reduce){.ev-instrument,.ev-atmosphere{transition:none}}
/* Casters and the rear legs fix the mobile whiteboard to the seminar floor. */
.ev-location[data-locale=whiteboard] .ev-stand{display:block;z-index:-1;inset:calc(100% + 6px) 11% auto;height:62px}
.ev-location[data-locale=whiteboard] .ev-stand :is(i,b){width:9px;left:auto;right:auto;top:0;height:100%;border-radius:1px 1px 3px 3px;clip-path:none;box-shadow:2px 0 2px #586c6130;background:linear-gradient(90deg,#a5b8ad,#dde6dd 24%,#9caea4 65%,#73897e)}
.ev-location[data-locale=whiteboard] .ev-stand i{left:0}.ev-location[data-locale=whiteboard] .ev-stand b{right:0}
.ev-location[data-locale=whiteboard] .ev-stand :is(i,b):before{content:"";position:absolute;bottom:2px;left:-16px;width:39px;height:5px;border-radius:46%;background:linear-gradient(#d4dfd1,#829789 66%);transform:rotate(-8deg);box-shadow:0 2px 1px #43574d}
.ev-location[data-locale=whiteboard] .ev-stand :is(i,b):after{content:"";position:absolute;bottom:-3px;left:-10px;width:7px;height:7px;border-radius:48%;background:#45594f;box-shadow:25px -3px 0 -1px #4b5e52}
.ev-location[data-locale=whiteboard] .ev-stand:after{left:-5%;width:110%;height:11px;bottom:-6px;filter:blur(3px);opacity:.48}
.ev-location[data-format=compact][data-locale=monitor] .ev-plate{background-position:79% 80%}
.ev-location[data-format=compact][data-locale=notebook] .ev-plate{background-position:50% 51%}
.ev-location[data-format=compact][data-locale=notebook] .ev-instrument{transform:rotate(-.7deg)}
.ev-location[data-format=compact][data-locale=archive] .ev-plate{background-position:78% 66%}
.ev-location[data-format=compact][data-locale=whiteboard] .ev-plate{background-position:16% 55%}
.ev-location[data-format=compact][data-locale=whiteboard] .ev-stand{height:38px}
