/* AxiDraw article media layout. */
.article-cover { position: relative; width: 100%; margin: 18px 0; }
.article-cover > img { display: block; width: 100%; height: auto; }
.cmyk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 18px 0; width: 100%; }
.cmyk-grid figure { margin: 0; min-width: 0; }
.cmyk-grid .plate { overflow: hidden; }
.cmyk-grid .plate img { display: block; width: 100%; max-width: 100%; height: auto; mix-blend-mode: screen; }
.cmyk-grid figcaption { color: var(--muted); font-size: 12.2px; line-height: 17px; padding-top: 4px; }
.cmyk-grid .c { background: #00AEEF; }
.cmyk-grid .m { background: #EC008C; }
.cmyk-grid .y { background: #FFF200; }
.cmyk-grid .k { background: #181818; }
.plot-video { display: block; width: 100%; max-width: 100%; height: auto; margin: 14px 0; }
.component-overlay { position: absolute; left: 3%; bottom: 4%; width: 20%; max-width: 140px; min-width: 85px; height: fit-content; box-shadow: 0 4px 18px #0006; }
.component-overlay img { display: block; width: 100%; height: auto; }
.svg-import-callout { display: flow-root; margin: 0 0 12.2px; }
.svg-import-callout p { margin: 0; }
.svg-import-figure { float: right; width: 90px; height: 90px; margin: 0 0 4px 12px; }
.svg-import-figure img { display: block; width: 90px; height: 90px; object-fit: contain; }
.pen-test-button { display: inline-grid; vertical-align: middle; margin: 0 .2em; }
.pen-test-button img { grid-area: 1 / 1; display: block; height: 10px; width: auto; max-width: none; }
.pen-test-button .pen-test-pressed { opacity: 0; }
.pen-test-button:hover .pen-test-default { opacity: 0; }
.pen-test-button:hover .pen-test-pressed { opacity: 1; }
.status-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 12px 0 4px; color: var(--muted); font-size: 12.2px; line-height: 17px; }
.status-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.status-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; }
.status-dot.connecting, .status-dot.connected { background: #1ce646; }
.status-dot.error { background: #ee1c1c; }
.status-dot.connecting { animation: axidraw-fast-led 120ms linear infinite; }
.status-dot.connected { animation: axidraw-connected-led 2345ms linear infinite; }
.status-dot.error { animation: axidraw-error-led 1500ms linear infinite; }
@keyframes axidraw-fast-led { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: .18; } }
@keyframes axidraw-connected-led { 0%, 15.56% { opacity: 1; } 15.57%, 31.12% { opacity: .18; } 31.13%, 84.43% { opacity: 1; } 84.44%, 100% { opacity: .18; } }
@keyframes axidraw-error-led { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: .18; } }
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; opacity: .8; } }
@media (max-width: 480px) { .cmyk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .component-overlay { width: 24%; min-width: 70px; } }

.archive-workflow { position: relative; overflow: hidden; aspect-ratio: 2560 / 1400; background: var(--paper); }
.archive-workflow > img { width: 100%; height: 100%; object-fit: contain; }
.archive-workflow.cms-fixed-ratio > img { position: absolute; inset: 0; object-fit: cover; }
.project-image[data-preview-fit="cover"] > .archive-workflow { aspect-ratio: auto; }
.project-image[data-preview-fit="cover"] > .archive-workflow > img { height: auto; }
.project-image[data-preview-fit="cover"] > video { object-fit: cover; }
