/* Case study copies shown in place (cs-copies.js). While one is shown, it is the whole case studies section: the
   section's own heading, its toggle to the website wall, the layouts and the wall step aside, and the copy brings its
   own ground, heading, spacing and motion. Off removes the class and the section is as it was. */
html.cpy-on #work{padding:0 !important;background:none !important;overflow:visible !important;overflow-x:clip !important;min-height:0 !important;height:auto !important}
html.cpy-on #work::before,html.cpy-on #work::after{display:none !important}
html.cpy-on #work > :not(.cpy-host){display:none !important}
/* Keep the section's space while the default cards load. A failed load restores the original board. */
html.cpy-loading #work > :not(.cpy-host){visibility:hidden;opacity:0 !important;pointer-events:none}
/* the page's cursor dot steps aside over a copy: the copies bring their own pointer (Rise at Seven's disc, Ragged Edge's label) and have no dot standalone */
html.cpy-on:has(#work .cpy-host:hover) #vx-cursor{visibility:hidden !important}
/* the copy starts from a blank page's inherited type, as it does standalone; its own html and body rules (scoped onto
   this wrapper by embed-css.mjs, more specific) then set what it sets */
:where(#work) .cpy-host{all:initial;display:block;position:relative;width:100%;isolation:isolate;
  font-family:'Times New Roman',serif;font-size:16px;line-height:normal;color:#000;text-align:start}

/* the page's own unscoped rules stay out of the copy: nav.css's .frame button style, for one, would turn Valid's and Ragged
   Edge's .frame blocks into buttons. Every element in a copy is reverted to the browser's defaults first, as on its
   standalone page; the copy's own rules are more specific and set everything it sets. SVG and images are left out,
   because reverting would also drop their fill, stroke, width and height attributes. */
:where(#work) .cpy-host :where(*:not(svg,svg *,img,video,canvas,picture,iframe)),
:where(#work) .cpy-host *::before,:where(#work) .cpy-host *::after{all:revert}

/* the bar (folded into the Design options panel by options-panel.js; this is its look when it stands alone) */
.c2-copy-sw{position:fixed;right:16px;bottom:280px;z-index:62;display:flex;flex-wrap:wrap;align-items:center;gap:3px;padding:5px;background:#211e1aee;border-radius:24px;box-shadow:0 8px 24px #0004;max-width:min(560px,calc(100vw - 32px))}
.c2-copy-sw button{border:0;background:none;color:#e9e2d6;font:500 13px/1 var(--font,system-ui);padding:9px 14px;border-radius:30px;cursor:pointer;white-space:nowrap}
.c2-copy-sw button[aria-pressed=true]{background:#f6f4ef;color:#211e1a}
html.c2-shot .c2-copy-sw{display:none !important}
