/* 3D printing page: layout for the interactive visuals (see js/*.js). */
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.3fr 1fr; } .hero-grid h1 { font-size: 2.1rem; } }
.print-hero { margin: 0; }

/* materials */
.mat-grid, .set-grid { display: grid; gap: 1.25rem; }
.mat-grid > *, .set-grid > * { min-width: 0; }
@media (min-width: 760px) { .mat-grid { grid-template-columns: 1.2fr 1fr; } .set-grid { grid-template-columns: 1fr 1fr; } }
.seg-wrap { flex-wrap: wrap; display: flex; }
.seg-wrap button { flex: 1 1 45%; }
.seg-wrap button + button { border-left: 0; }
.seg-wrap button { border-left: 1px solid var(--border-accent) !important; border-top: 1px solid var(--border-accent); margin: -1px 0 0 -1px; }

.thermo { display: grid; gap: 0.6rem; margin-top: 0.4rem; }
.thermo-row { display: grid; grid-template-columns: 3rem 1fr 5.5rem; align-items: center; gap: 0.6rem; font: 600 0.78rem var(--mono-font); }
.thermo-row > span { color: #cbd5e1; }
.thermo-row em { font-style: normal; text-align: right; transition: color 0.2s ease; }
.thermo-row em.ok { color: var(--ok); } .thermo-row em.warn { color: var(--warn); } .thermo-row em.fault { color: var(--fault); }
.thermo-bar { position: relative; height: 12px; border-radius: 6px; background: repeating-linear-gradient(-45deg, #2a1215 0 6px, #1f0e10 6px 12px); }
.thermo-safe { position: absolute; inset: 0 auto 0 0; border-radius: 6px 0 0 6px; opacity: 0.35; }
.thermo-mark { position: absolute; top: -5px; width: 2px; height: 22px; background: #f8fafc; border-radius: 1px; transition: left 0.25s var(--ease-out); }
.mt-verdict { font-size: 0.9rem; color: #e2e8f0; margin-top: 0.9rem; min-height: 2.6em; }

.props { display: grid; gap: 0.55rem; }
.prop { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; font-size: 0.82rem; color: var(--text-muted); }
.pips { display: flex; gap: 4px; }
.pips i { flex: 1; height: 8px; border-radius: 2px; background: #1e293b; transition: background 0.3s ease; }

/* infill / layers */
.set-svg { max-width: 190px; margin: 0 auto; }

/* order flow */
.flow-steps { list-style: none; display: grid; gap: 0.75rem; counter-reset: s; position: relative; }
@media (min-width: 760px) {
  .flow-steps { grid-template-columns: repeat(5, 1fr); }
  .flow-steps::before {
    content: ""; position: absolute; top: 15px; left: 6%; right: 6%; height: 2px; background: var(--border-accent);
  }
  .flow-steps::after {
    content: ""; position: absolute; top: 15px; left: 6%; right: 6%; height: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease-out) 0.2s;
  }
  .flow-steps.is-in::after { transform: scaleX(1); }
}
.flow-steps li { position: relative; z-index: 1; }
.flow-steps li::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-dark); border: 2px solid var(--accent); color: var(--accent);
  font: 700 0.8rem var(--mono-font); margin-bottom: 0.6rem;
}
.flow-steps h3 { font-size: 0.98rem; color: #fff; margin-bottom: 0.25rem; }
.flow-steps p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }
.flow-steps .when { display: inline-block; margin-top: 0.4rem; font: 0.7rem var(--mono-font); color: var(--accent); }

/* gallery polish */
.gallery-item.fade-in { animation: galIn 0.5s var(--ease-out) both; }
@keyframes galIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .gallery-item.fade-in { animation: none; } }
