.press3d { color:#1e2d48; font-family:system-ui,sans-serif; }
.press3d-stage { position:relative; width:100%; height:0; padding-bottom:75%; background:#edf0f2; overflow:hidden; }
.press3d-stage canvas { position:absolute; top:0; left:0; display:block; width:100%; height:100%; }
.press3d-label { position:absolute; pointer-events:none; transform:translate(-50%,-50%); background:#fff; color:#1e2d48; box-sizing:border-box; width:32px; text-align:center; padding:.2em 0; border-radius:3px; font-size:14px; font-weight:700; }
.press3d-controls { display:flex; gap:.6rem; padding:.5rem 0; height:64px; align-items:center; }
.press3d-controls button { background:#ff8000; color:#111; border:0; padding:.55rem .9rem; cursor:pointer; font:inherit; }
.press3d-controls button:hover { background:#c86400; }
.press3d-controls button:focus-visible { outline:3px solid #1e2d48; outline-offset:2px; }
.press3d-caption { font-size:.9rem; line-height:1.5; }
.press3d-fallback { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:contain; }

[data-press3d-fallback] { position:relative; }
[data-press3d-load] { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); background:#ff8000; color:#111; border:0; padding:.65rem 1rem; cursor:pointer; font:inherit; }
[data-press3d-load]:hover { background:#c86400; }
[data-press3d-load]:focus-visible { outline:3px solid #1e2d48; outline-offset:2px; }
[data-press3d-fallback][hidden] { display:none; }
/* Card 3 only: keep the media alongside its long specification table. */
#station-test-marking-system .spec-body { overflow:hidden; overflow:clip; }
#station-test-marking-system .spec-inner { grid-template-columns:minmax(0,1fr) clamp(420px,44%,600px); }
#station-test-marking-system .spec-media { min-width:0; position:sticky; top:124px; max-width:none; }
#station-test-marking-system .press-media { max-width:none; }
#station-test-marking-system [data-press3d-fallback] { height:0; padding-bottom:75%; margin-bottom:64px; overflow:hidden; background:#edf0f2; }
#station-test-marking-system [data-press3d-fallback] img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:contain; }
#station-test-marking-system [data-press3d-notice] { position:absolute; bottom:0; left:0; right:0; margin:0; background:#fff; }
.press3d-small .press3d-label { width:28px; font-size:12px; padding:.1em 0; }
.press3d-backdrop { overscroll-behavior:contain; position:fixed; top:0; right:0; bottom:0; left:0; z-index:1000; background:rgba(0,0,0,.72); display:flex; align-items:center; justify-content:center; }
.press3d-backdrop .press3d { overscroll-behavior:contain; position:relative; width:min(92vw, calc(114.6667vh - 85.3333px)); background:#fff; }
.press3d-close { position:absolute; top:8px; right:8px; z-index:5; background:#ff8000; color:#111; border:0; padding:.35rem .65rem; }
.press3d-backdrop .press3d-controls { padding:.5rem; }
@media (min-width:800px) and (max-width:1099px) {
  #station-test-marking-system .spec-inner { grid-template-columns:minmax(0,1fr) clamp(360px,40vw,420px); }
  #station-test-marking-system .spec-media { order:0; top:104px; }
}
@media (max-width:799px) {
  #station-test-marking-system .spec-inner { grid-template-columns:minmax(0,1fr); }
  #station-test-marking-system .spec-media { order:-1; position:static; width:100%; max-width:640px; margin-left:auto; margin-right:auto; }
}

.press3d-status:empty { display:none; }
