/* ============================================================================
   material-removal / removal.css

   Every colour is a theme token. Gold marks the solid removed in the time
   shown - a fill, never text (contrast rule 1 in the token layer). The
   stock's three visible faces are one tint at three strengths so the block
   reads as a solid in either theme.
   ==========================================================================*/

.mr-svg { display: block; width: 100%; height: auto; }

.mr-stock-top   { fill: color-mix(in srgb, var(--msu-liteblue) 14%, var(--surface)); stroke: var(--ink-soft); stroke-width: 1.2; stroke-linejoin: round; }
.mr-stock-front { fill: color-mix(in srgb, var(--msu-liteblue) 24%, var(--surface-2)); stroke: var(--ink-soft); stroke-width: 1.2; stroke-linejoin: round; }
.mr-stock-side  { fill: color-mix(in srgb, var(--msu-liteblue) 34%, var(--surface-2)); stroke: var(--ink-soft); stroke-width: 1.2; stroke-linejoin: round; }
.mr-cut-floor   { fill: color-mix(in srgb, var(--ink) 10%, var(--surface-2)); stroke: var(--ink-soft); stroke-width: 1; stroke-linejoin: round; }
.mr-cut-wall    { fill: color-mix(in srgb, var(--ink) 18%, var(--surface-2)); stroke: var(--ink-soft); stroke-width: 1; stroke-linejoin: round; }

.mr-removed {
  fill: var(--msu-gold); fill-opacity: .62;
  stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round;
}
.mr-removed-front { fill-opacity: .8; }
.mr-removed-hidden { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 4; }
.mr-start { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 4; }

.mr-cutter { fill: var(--paper); fill-opacity: .42; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.mr-cutter-top { fill: none; stroke: var(--ink); stroke-width: 1.4; }

.mr-feed { stroke: var(--accent); stroke-width: 3; fill: none; }
.mr-feed-head { fill: var(--accent); }
.mr-dim { stroke: var(--ink); stroke-width: 1.3; fill: none; }
.mr-scale { stroke: var(--ink); stroke-width: 2; fill: none; }

.mr-t {
  font-family: var(--f-display); font-size: 15px; font-weight: 600;
  fill: var(--ink);
  paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round;
}
.mr-t-small { font-size: 14px; }
.mr-svg-compact .mr-t-small { font-size: 18px; }

/* ---- power across the materials: HTML bars on one shared axis ----------*/
.mr-chart { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.mr-chart-head {
  margin: 0; display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: .75rem;
  font-family: var(--f-display); font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.mr-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .15rem; }
.mr-row {
  display: grid; align-items: center; gap: .2rem .75rem;
  grid-template-columns: minmax(9rem, 13rem) minmax(6rem, 1fr) 7.5rem;
  padding: .3rem .4rem; border-radius: var(--radius-xs);
}
.mr-row::before { content: none; }
.mr-row.is-current { background: var(--surface-2); box-shadow: inset .25rem 0 0 var(--accent); }
.mr-name { font-family: var(--f-display); font-weight: 600; font-size: .92rem; line-height: 1.25; }
.mr-row.is-current .mr-name { font-weight: 800; }
.mr-track {
  position: relative; height: .9rem; min-width: 0;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px;
}
.mr-band {
  position: absolute; top: -1px; bottom: -1px; min-width: .55rem;
  background: var(--msu-gold); border: 1.5px solid var(--ink); border-radius: 999px;
}
.mr-band.is-single { min-width: .55rem; margin-left: -.275rem; }
.mr-val { font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums; font-size: .9rem; text-align: end; white-space: nowrap; }
.mr-note { display: block; color: var(--ink-soft); font-size: .76rem; }
.mr-axis-row { padding-block: 0; }
.mr-axis {
  position: relative; height: 1.3rem; min-width: 0;
  font-family: var(--f-display); font-size: .78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--ink-soft);
}
.mr-axis span { position: absolute; top: .15rem; transform: translateX(-50%); white-space: nowrap; }
.mr-axis span:first-child { transform: none; }
.mr-axis span:last-child { transform: translateX(-100%); }

@media (max-width: 40rem) {
  .mr-chart-head { grid-template-columns: 1fr; }
  .mr-chart-head span:first-child { display: none; }
  .mr-row { grid-template-columns: minmax(0, 1fr) auto; }
  .mr-track, .mr-axis { grid-column: 1 / -1; grid-row: 2; }
  .mr-axis-row > span:not(.mr-axis) { display: none; }
}

@media print {
  .mr-row.is-current { background: #EEE !important; }
  .mr-track { background: #FFF !important; }
}
