/* Thermal graphic devices. One face, ironbow only, no new color. */

.th-plate {
  position: relative;
  background: #0F0D0B;
  border: 1px solid #5C554B;
  aspect-ratio: 1 / 1;
}
.th-plate canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.th-plate .th-crop {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #9D968B;
  border-style: solid;
  pointer-events: none;
}
.th-plate .th-crop.nw { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.th-plate .th-crop.ne { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.th-plate .th-crop.sw { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.th-plate .th-crop.se { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.th-rail {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0 1rem;
  align-items: baseline;
  min-height: 44px;
  border-bottom: 1px solid color-mix(in srgb, #5C554B 70%, transparent);
}
.th-rail .th-lab {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9D968B;
}
.th-rail .th-val {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  text-align: right;
  color: #EFE9DF;
  font-variant-numeric: tabular-nums slashed-zero;
}

.th-redact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  background: #EFE9DF;
  color: #0F0D0B;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.th-redact .th-held-marks {
  display: flex;
  gap: 14px;
}
.th-redact .th-held-marks i {
  display: block;
  width: 14px;
  height: 1px;
  background: #0F0D0B;
}

.th-quote {
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid #B6502E;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #EFE9DF;
}

.th-step {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 8px;
}
.th-step i:nth-child(1) { background: #0F0D0B; }
.th-step i:nth-child(2) { background: #5C554B; }
.th-step i:nth-child(3) { background: #9D968B; }
.th-step i:nth-child(4) { background: #B6502E; }
.th-step i:nth-child(5) { background: #E0913A; }
.th-step i:nth-child(6) { background: #EFE9DF; }

.th-stack {
  display: grid;
  gap: 3px;
}
.th-stack i {
  display: block;
  height: 2px;
  background: #5C554B;
}
.th-stack i:nth-child(odd) { width: 72%; }
.th-stack i:nth-child(even) { width: 48%; background: #9D968B; }

.th-tear {
  height: 10px;
  background:
    linear-gradient(135deg, #0F0D0B 50%, transparent 50%) 0 0 / 10px 10px repeat-x,
    #161311;
}

.th-gate {
  display: grid;
  gap: 0;
}
.th-gate .th-gate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, #5C554B 70%, transparent);
}

.th-strike {
  position: relative;
  display: block;
  overflow: hidden;
}
.th-strike > span { position: relative; }
.th-strike::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  width: 0;
  background: #B6502E;
  transform: translateY(-50%);
}
.th-strike.is-drawn::after { width: 100%; transition: width 260ms ease-out; }
.th-strike.is-collapsed {
  height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transition: height 220ms ease-in, opacity 220ms ease-in, margin 220ms ease-in, padding 220ms ease-in;
}

@media (prefers-reduced-motion: reduce) {
  .th-strike::after { width: 100%; transition: none; }
  .th-strike.is-collapsed { transition: none; }
}
