/* "Our work" button and panel (play/work.js). Same module as the speech box and HUD: black box, 2px white border,
   4px corners, no shadow; labels and buttons in pixel capitals at the Sound button's size. Four type sizes. */
.wk-btn { position: absolute; z-index: 5; top: 1.5cqw; right: 18cqw; font: 400 clamp(12px, 1cqw, 30px) / 1.1 var(--font-pixel); letter-spacing: .05em; text-transform: uppercase; }   /* the Sound button's look */
.wk-btn.on { border-color: #fcb24f; }
.wk-pnl { position: absolute; z-index: 41; right: 1.5cqw; top: calc(1.5cqw + 4.2em); bottom: calc(1.5cqw + 3.6em); width: 31cqw; box-sizing: border-box; display: flex; flex-direction: column; gap: .9em;
  padding: 1.2em 1.3em; background: rgba(0, 0, 0, .78); border: 2px solid #fff; border-radius: 4px; color: #fff; font: 400 clamp(13px, 1.1cqw, 26px) / 1.4 Inter, system-ui, sans-serif; animation: rise .25s ease-out both; }
.wk-pnl[hidden] { display: none; }
.wk-pix { font: 400 clamp(12px, 1cqw, 30px) / 1.1 var(--font-pixel); letter-spacing: .05em; text-transform: uppercase; }
.wk-eye { color: #fcb24f; }
.wk-pnl header p { margin: 0; }
.wk-h { margin: .3em 0 0; font: 300 1.7em / 1.1 'ivyora-display', Georgia, serif; }
.wk-x { position: absolute; top: calc(1.2 * clamp(13px, 1.1cqw, 26px)); right: calc(1.3 * clamp(13px, 1.1cqw, 26px)); }   /* lines up with the panel's padding (and the scroll bar's right edge); the box has font-size 0, so no em */
.wk-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .8em; padding-right: .2em; overscroll-behavior: contain; }
.wk-card { display: grid; grid-template-columns: 42% 1fr; gap: .9em; padding: .7em; border: 2px solid rgba(255, 255, 255, .35); border-radius: 4px; color: #fff; text-decoration: none; }
.wk-card:hover, .wk-card:focus-visible { border-color: #fff; outline: none; }
.wk-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; background: #1b2033; display: block; }
.wk-txt { display: flex; flex-direction: column; gap: .35em; min-width: 0; }
.wk-txt .wk-eye { font-size: .85em; }
.wk-t { font: 300 1.25em / 1.15 'ivyora-display', Georgia, serif; }
.wk-go { align-self: flex-start; margin-top: auto; padding: .5em .7em; border: 2px solid #fff; border-radius: 4px; }
.wk-card:hover .wk-go { background: #fff; color: #000; }
.wk-all { display: block; text-align: center; padding: .85em; background: #fcb24f; color: #000; border-radius: 4px; text-decoration: none; }
.wk-all:hover { background: #ffc574; }
/* phones held sideways: the right-hand side panel, like the object card and quiz; the corner buttons step aside */
@media (orientation: landscape) and (max-height: 500px) {
  .wk-btn { top: 12px; right: 128px; height: 48px; padding: 0 10px; font-size: 12px; }   /* 10px left of the 48px map button */
  .wk-pnl { top: 0; bottom: 0; right: calc((100cqw - 100vw) / 2); width: 46vw; border-width: 0 0 0 2px; border-radius: 0; padding: 14px 16px max(12px, env(safe-area-inset-bottom)); font-size: 13px; gap: 10px; }
  .wk-pix { font-size: 12px; } .wk-h { font-size: 20px; } .wk-t { font-size: 16px; }
  .wk-x { top: 10px; right: 12px; width: 48px; height: 48px; }
  .wk-card { grid-template-columns: 38% 1fr; padding: 8px; }
  .wk-go, .wk-all { min-height: 48px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
  body.wk-open :is(.wk-btn, .mute, .planet-map, .sb-bar, .sb-people, .next-person, .w3d-joy, .ph-menu-btn) { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .wk-pnl { animation: none; } }
/* the floating name pins step aside while the panel is open, so none shows through it */
body.wk-open .w3d-markers, body.wk-open .name-tag { visibility: hidden; }
.wk-note { margin: .3em 0 0; color: rgba(255, 255, 255, .7); }
/* the case study list scrolls with a thick 25px bar in the game's style (not the thin native one) */
.wk-list { padding-right: .4em; }
@supports (-moz-appearance: none) { .wk-list { scrollbar-width: auto; scrollbar-color: #fff rgba(0, 0, 0, .5); } }   /* Firefox has no custom bar width */
.wk-list::-webkit-scrollbar { width: 25px; }
.wk-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .35); border-radius: 4px; }
.wk-list::-webkit-scrollbar-thumb { background: #fff; border: 5px solid rgba(0, 0, 0, .85); border-radius: 4px; min-height: 48px; }
.wk-list::-webkit-scrollbar-thumb:hover { background: #fcb24f; }
.wk-list::-webkit-scrollbar-button { display: none; }
@media not ((orientation: landscape) and (max-height: 500px)) {
  .wk-btn { right: calc(11.4cqw + 8px); height: calc(max(26px, 2.9cqw) + .7cqw + 4px); display: flex; align-items: center; padding-block: 0; box-sizing: border-box; }
}
/* more room under the heading; project titles in the pixel font (sentence case, like the landing heading) */
.wk-h { margin-bottom: .35em; }
.wk-pnl header { margin-bottom: .4em; }
.wk-t { font: 400 clamp(13px, 1.05cqw, 30px) / 1.3 var(--font-pixel); letter-spacing: .02em; font-variant-ligatures: none; }
@media (orientation: landscape) and (max-height: 500px) { .wk-t { font-size: 13px; } .wk-h { margin-bottom: .25em; } }
