/* Motion spec v3, section 10: the pixels travel locked, and the iMac turns round. */

/* The pixels travel locked */
.tbl { --tbl-locked: #2B2622; margin: 0; padding: clamp(14px, 2vw, 22px); border-radius: 24px; background: var(--card); box-shadow: var(--sh1), inset 0 0 0 1px var(--line); max-width: 640px; justify-self: end; width: 100%; box-sizing: border-box; }
:root[data-theme="dark"] .tbl { --tbl-locked: #9A948C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tbl { --tbl-locked: #9A948C; } }
.tbl-fit { position: relative; aspect-ratio: 820 / 280; overflow: hidden; }
.tbl-stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; }
.tbl-stage.is-scaled { width: 820px; height: 280px; }
.tbl-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tbl-px { position: absolute; left: 0; top: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 2px; opacity: 0; offset-rotate: 0deg; z-index: 1; }
.tbl-lk { position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--ink); box-sizing: border-box; display: grid; place-items: center; z-index: 2; }
.tbl-lk.a { left: 34.634%; top: 56.429%; }
.tbl-lk.b { left: 73.415%; top: 61.429%; }
.tbl-lk svg { width: 34px; height: 34px; display: block; overflow: visible; }
.tbl-shackle { transform-box: view-box; transform-origin: -6px -1px; transform: rotate(0deg); }
/* The heading stays beside the drawing; the sentence sits under it. */
.s4-locked { grid-template-rows: auto auto; row-gap: 16px; }
.s4-locked .s4-copy { display: contents; }
.s4-locked .s4-copy h2 { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.s4-locked .tbl { grid-column: 2; grid-row: 1; }
.s4-locked .s4-copy p { grid-column: 2; grid-row: 2; justify-self: end; width: 100%; max-width: 640px; }
@media (max-width: 860px) {
  .s4-locked .s4-copy h2, .s4-locked .tbl, .s4-locked .s4-copy p { grid-column: 1; grid-row: auto; }
  .s4-locked .tbl { order: 1; justify-self: stretch; }
  .s4-locked .s4-copy p { order: 2; justify-self: start; }
}

/* The iMac turns round */
.tbt { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.tbt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tbt-chips button { height: 32px; padding: 0 14px; border: 0; border-radius: 16px; display: inline-flex; align-items: center; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); cursor: pointer; }
.tbt-chips button.on { color: var(--onKey); background: var(--key); box-shadow: none; }
.tbt-stage { position: relative; max-width: 640px; }
.tbt-flip { perspective: 1100px; }
.tbt-card { position: relative; aspect-ratio: 640 / 300; transform-style: preserve-3d; }
.tbt-face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tbt-back { transform: rotateY(180deg); }
.tbt-ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.tbt-adp { opacity: 0; transform-box: fill-box; transform-origin: center; }
.tbt-cable { stroke-dasharray: 100; stroke-dashoffset: 100; }
.tbt-cap { position: absolute; left: 65.625%; right: 0; top: 74%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tbt-cap p { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ink); opacity: 0; }
.tbt-cap a { font-size: 12px; color: var(--ink2); text-decoration: underline; opacity: 0; }
@media (max-width: 640px) { .tbt-cap { position: static; margin-top: 10px; } }
