/* ============================================================
   IMAGES — full-width by default, zoomable, with captions
   ============================================================ */

/* All content images: full width, rounded, subtle shadow */
.md-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  margin: 1.5rem 0;
}

/* Broken / missing image placeholder */
.md-content img:not([src]),
.md-content img[src=""],
.md-content img[alt]:not([src*="."]) {
  display: none;
}

img[alt]:after {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: var(--md-code-bg-color);
  border: 2px dashed var(--md-default-fg-color--lighter);
  border-radius: 0.5rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.85rem;
  padding: 2rem;
  content: "📷  Photo coming soon — " attr(alt);
  font-family: var(--md-text-font);
  text-align: center;
}

/* Figure captions */
figure {
  margin: 1.5rem 0;
}

figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Two-column comparison grid (wrong vs right) */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 600px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Step number callouts — large and prominent like Prusa
   ============================================================ */
/* Step number callouts — large and prominent like Prusa */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* Step header layout */
h2 {
  display: flex;
  align-items: center;
}

/* Progress bar at top of each chapter */
.chapter-progress {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

/* Parts checklist styling */
.parts-list {
  background: var(--md-code-bg-color);
  border-left: 4px solid var(--md-accent-fg-color);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.parts-list h4 {
  margin-top: 0;
  color: var(--md-accent-fg-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Wire color indicators */
.wire-blue   { color: #1565C0; font-weight: 600; }
.wire-orange { color: #E65100; font-weight: 600; }
.wire-teal   { color: #00695C; font-weight: 600; }
.wire-yellow { color: #F57F17; font-weight: 600; }
.wire-black  { color: #212121; font-weight: 600; }
.wire-red    { color: #C62828; font-weight: 600; }

/* Pacing marker — "You're X% done" */
.pacing-marker {
  background: linear-gradient(135deg, #4e342e 0%, #6d4c41 100%);
  color: white;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  text-align: center;
  font-size: 1.05rem;
}

.pacing-marker strong {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.25rem;
}

/* Wrong / Right comparison */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.comparison-wrong {
  border: 2px solid #ef5350;
  border-radius: 0.5rem;
  padding: 1rem;
}

.comparison-correct {
  border: 2px solid #66bb6a;
  border-radius: 0.5rem;
  padding: 1rem;
}

.comparison-wrong .comparison-label {
  color: #ef5350;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.comparison-correct .comparison-label {
  color: #66bb6a;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Expert breakout box */
details.expert-note > summary {
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
}

/* Chapter completion badge */
.chapter-done {
  display: inline-block;
  background: #66bb6a;
  color: white;
  border-radius: 1rem;
  padding: 0.25rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1.5rem;
}
