/* eitri.io on Cloudflare: only what the live pages did not have. Everything else is the live site's own CSS, unchanged
   (/assets/design/*.css from the core, /static/hosted.css from eitri-hosted). */
/* the demo video on / and /plugin (the same rules as the homepage's demo in eitri-hosted's hosted.css stash); silent */
figure.demo { margin: 18px 0 0; }
figure.demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg-2); }
figure.demo figcaption { margin-top: 6px; color: var(--fg-2); font-size: var(--t-sm); }
.doc .coming { color: var(--fg-2); }
/* /stats */
.doc.stats { max-width: 1100px; }
.stats table { border-collapse: collapse; font: 400 var(--t-sm) var(--font-mono); }
.stats th, .stats td { padding: 4px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.stats th { color: var(--muted); font-weight: 400; }
.stats th:first-child, .stats td:first-child { text-align: left; }
/* the homepage (index.html, static/home.js): the old eitri.io home, plus the note and the card */
.c-cad { color: var(--c-cad); } .c-wires { color: var(--c-wires); } .c-motion { color: var(--c-motion); }
.c-pneumatics { color: var(--c-pneumatics); } .c-firmware { color: var(--c-firmware); } .c-electronics { color: var(--c-electronics); }
.cmdbox { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 8px 8px 8px 12px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r2); }
.cmdbox code, .cmdbox pre { flex: 1; min-width: 0; margin: 0; color: var(--fg); font: 400 var(--t-sm)/1.5 var(--font-mono); }
.cmdbox code { overflow-x: auto; white-space: nowrap; }
.cmdbox pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 30vh; overflow-y: auto; }
.cmdbox.prompt-copy { align-items: flex-start; }
/* the centre card over the ring (index.html .stage): the plugin and the demo, visible without scrolling */
.stage { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.stage > .viewport { grid-area: 1 / 1; }
.stage > .dim { grid-area: 1 / 1; z-index: 5; pointer-events: none;
  background: radial-gradient(ellipse 52% 60% at 50% 50%, color-mix(in srgb, var(--bg) 72%, transparent) 40%, transparent 100%); }
.center-card { grid-area: 1 / 1; z-index: 6; align-self: center; justify-self: center; width: min(640px, calc(100% - 48px)); max-height: calc(100% - 48px);
  overflow-y: auto; box-sizing: border-box; padding: 18px 20px 16px; background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid var(--line-2); border-radius: var(--r3); box-shadow: var(--shadow-2); backdrop-filter: blur(6px); }
.center-card .cc-head { margin: 0; font: 600 var(--t-xl)/1.3 var(--font-ui); color: var(--fg); }
.center-card .hint:empty { display: none; }
.center-card .needs { margin: 10px 0 0; color: var(--fg-2); font-size: var(--t-md); }
.center-card figure.demo { margin: 14px 0 0; }
.center-card figure.demo figcaption { font-size: var(--t-xs); }
.inspector .coming { margin: 8px 0 0; color: var(--fg-2); font-size: var(--t-sm); }
@media (max-width: 760px) {
  .stage { display: flex; flex-direction: column; }
  .stage > .dim { display: none; }
  .center-card { order: -1; width: auto; min-width: 0; max-width: calc(100% - 24px); max-height: none; margin: 12px; padding: 16px; backdrop-filter: none; background: var(--panel); }
  .center-card .cmdbox { min-width: 0; }
  .center-card .cc-head { font-size: var(--t-lg); }
}
dialog.coming-card { width: min(560px, calc(100% - 32px)); }
dialog.coming-card .step { margin: 14px 0 0; color: var(--fg-2); }
dialog.coming-card .step code { font: 400 var(--t-sm) var(--font-mono); color: var(--fg); }
dialog.coming-card .hint:empty { display: none; }
dialog.coming-card .hint { margin-top: 8px; }
