/*
 * Reusable illuminated-chrome frame and card.
 * Adjust the custom properties per component; all framing stays in HTML/CSS.
 */
.dz-chrome-frame {
  --chrome-radius: 14px;
  --chrome-blue: #079cff;
  --chrome-blue-hot: #31c7ff;
  --chrome-metal: #eaf8ff;
  --chrome-navy: #06172d;
  --chrome-label-color: #ffd34f;
  --chrome-bezel: linear-gradient(132deg,
    #f5fcff 0%, var(--chrome-blue-hot) 5%, var(--chrome-blue) 10%, #073b91 15%,
    #d8f4ff 22%, var(--chrome-metal) 28%, #126dd5 34%, #031f55 42%,
    #f4fbff 49%, #08a5ff 55%, #064a9b 62%, #d7f2ff 70%,
    var(--chrome-blue-hot) 76%, #073778 83%, var(--chrome-metal) 91%, #0787f2 96%, #f7fdff 100%);
  position: relative;
  isolation: isolate;
  border: 2px solid transparent;
  border-radius: var(--chrome-radius);
  background:
    linear-gradient(145deg, #0a2039, #041225) padding-box,
    var(--chrome-bezel) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 0 0 0 1px rgba(8, 112, 222, .9),
    0 2px 5px rgba(0, 0, 0, .34);
}

.dz-chrome-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 3px;
  border: 1px solid rgba(104, 203, 255, .68);
  border-radius: calc(var(--chrome-radius) - 5px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
  pointer-events: none;
}

.dz-industry-home .dz-industry-banner {
  width: 88%;
  max-width: 1000px;
  margin: 0 auto 24px;
}

.dz-industry-home .dz-industry-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.dz-industry-home .dz-industry-grid {
  align-items: stretch;
}

.dz-chrome-frame.dz-chrome-card {
  --chrome-radius: 14px;
  display: flex;
  border-radius: var(--chrome-radius);
  min-height: 0;
  flex-direction: column;
  padding: 4px;
  overflow: hidden;
  color: inherit;
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, #08203b, var(--chrome-navy)) padding-box,
    var(--chrome-bezel) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 0 0 1px rgba(0, 120, 255, .94),
    inset 0 0 8px rgba(0, 149, 255, .28),
    0 0 0 1px rgba(57, 174, 255, .42),
    0 0 10px rgba(0, 149, 255, .32),
    0 2px 5px rgba(0, 0, 0, .36);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.dz-chrome-frame.dz-chrome-card::before {
  inset: 4px;
  border-radius: calc(var(--chrome-radius) - 7px);
  border-color: rgba(80, 190, 255, .84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.52), 0 0 3px rgba(0,156,255,.5);
  opacity: 1;
}

.dz-chrome-frame.dz-chrome-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 11%;
  width: 78%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #50d5ff 19%, #f5fdff 50%, #168cff 78%, transparent);
  box-shadow: 0 0 5px rgba(0, 157, 255, .86);
  opacity: .96;
  pointer-events: none;
}

.dz-chrome-frame.dz-chrome-card > img {
  position: relative;
  z-index: 0;
  flex: 0 0 auto;
  width: 100%;
  height: 116px;
  border-radius: calc(var(--chrome-radius) - 7px);
  object-fit: cover;
}

.dz-chrome-frame.dz-chrome-card .dz-chrome-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  min-height: 54px;
  padding: 10px 10px;
  color: var(--chrome-label-color);
  border-top: 2px solid var(--chrome-blue);
  border-radius: 0 0 calc(var(--chrome-radius) - 7px) calc(var(--chrome-radius) - 7px);
  background:
    linear-gradient(90deg, transparent 0%, rgba(27, 174, 255, .82) 18%, rgba(234, 249, 255, .98) 50%, rgba(14, 133, 255, .88) 82%, transparent 100%) top / 100% 1px no-repeat,
    linear-gradient(180deg, #071b34, #031126);
  box-shadow:
    inset 0 2px 6px rgba(0, 132, 255, .2),
    0 -1px 5px rgba(0, 146, 255, .56);
}

.dz-chrome-frame.dz-chrome-card .dz-chrome-label strong {
  color: var(--chrome-label-color);
  min-width: 0;
  font-family: "Outfit", sans-serif;
  font-size: var(--chrome-label-size, 15px);
  font-weight: 650;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dz-chrome-frame.dz-chrome-card .dz-chrome-label svg {
  color: var(--chrome-label-color);
  width: 18px;
  height: 18px;
  flex: none;
}

.dz-chrome-frame.dz-chrome-card:hover {
  transform: translateY(-2px);
  border-color: transparent;
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 0 0 1px rgba(40, 174, 255, .98),
    0 0 0 1px rgba(55, 161, 255, .62),
    0 4px 12px rgba(0, 96, 210, .32);
}

.dz-chrome-frame.dz-chrome-card:focus-visible {
  outline: 3px solid var(--chrome-label-color);
  outline-offset: 4px;
  box-shadow:
    inset 0 0 0 2px rgba(40, 147, 255, .98),
    0 0 0 2px rgba(4, 18, 37, .95);
}

.dz-industry-home .dz-chrome-frame.dz-chrome-card > img {
  height: 116px;
}

.dz-industry-home .dz-chrome-frame.dz-chrome-card .dz-chrome-label {
  min-height: 54px;
  padding: 10px;
}

.dz-industry-home .dz-equipment-link.dz-chrome-equipment {
  --chrome-radius: 12px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(115px, .62fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  min-width: 0;
  margin-top: 18px;
  padding: 16px 22px;
  border-radius: var(--chrome-radius);
  overflow: hidden;
  border: 3px solid transparent;
  background:
    linear-gradient(110deg, #071a31, #061326 62%, #0b203a) padding-box,
    var(--chrome-bezel) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.94),
    inset 0 0 0 1px rgba(0, 124, 255, .92),
    inset 0 0 9px rgba(0, 147, 255, .2),
    0 0 8px rgba(0, 149, 255, .28),
    0 2px 6px rgba(0, 0, 0, .3);
}

.dz-industry-home .dz-equipment-link.dz-chrome-equipment::before {
  inset: 4px;
  border-radius: 7px;
  border-color: rgba(67, 185, 255, .85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 4px rgba(0, 143, 255, .5);
  opacity: 1;
}

.dz-industry-home .dz-equipment-icons {
  display: block;
  width: 100%;
  max-width: 190px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.dz-industry-home .dz-equipment-copy {
  min-width: 0;
  color: #eff6ff;
  font-size: 13px;
  line-height: 1.55;
}

.dz-industry-home .dz-equipment-link.dz-chrome-equipment .dz-text-link {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  border: 1px solid rgba(255, 211, 79, .55);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 211, 79, .1), rgba(255, 211, 79, .025));
}

.dz-industry-home .dz-equipment-link.dz-chrome-equipment .dz-text-link:focus-visible {
  outline: 3px solid var(--dz-gold);
  outline-offset: 3px;
}

@media (min-width: 1500px) {
  .dz-industry-home .dz-chrome-frame.dz-chrome-card > img { height: 130px; }
}

@media (max-width: 1000px) {
  .dz-industry-home .dz-chrome-frame.dz-chrome-card .dz-chrome-label { padding-inline: 8px; }
}

@media (min-width: 768px) and (max-width: 1000px) {
  .dz-industry-home .dz-chrome-frame.dz-chrome-card .dz-chrome-label {
    --chrome-label-size: 13px;
  }
}

@media (min-width: 340px) and (max-width: 767px) {
  .dz-industry-home .dz-chrome-frame.dz-chrome-card > img { height: 104px; }
  .dz-industry-home .dz-chrome-frame.dz-chrome-card .dz-chrome-label {
    --chrome-label-size: 14px;
    min-height: 66px;
    padding: 10px 9px;
  }
  .dz-industry-home .dz-equipment-link.dz-chrome-equipment {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 12px 14px;
  }
  .dz-industry-home .dz-equipment-icons {
    grid-row: 1 / span 2;
    height: 54px;
  }
  .dz-industry-home .dz-equipment-copy { font-size: 12px; }
  .dz-industry-home .dz-equipment-link.dz-chrome-equipment .dz-text-link {
    justify-self: start;
    padding: 5px 0;
    border: 0;
    background: none;
    font-size: 12px;
  }
}

@media (max-width: 339px) {
  .dz-industry-home .dz-equipment-link.dz-chrome-equipment {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
    padding: 12px;
  }
  .dz-industry-home .dz-equipment-icons { height: 46px; }
  .dz-industry-home .dz-equipment-link.dz-chrome-equipment .dz-text-link { white-space: normal; }
}

.dz-industry-home .dz-equipment-link.dz-equipment-banner {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.dz-equipment-banner > a {
  display: block;
  min-height: 44px;
}
.dz-equipment-banner > a:focus-visible {
  outline: 3px solid #ffdf00;
  outline-offset: 4px;
}
.dz-equipment-banner img {
  display: block;
  width: 100%;
  height: auto;
}
/* Decoration belongs to the moving/hiding Showcase container, not its slides.
   Existing live headings remain the accessible, Command-managed text. */
.dz-industry-home #dz-command-showcase::before {
  content: "";
  display: block;
  width: 88%;
  max-width: 1000px;
  aspect-ratio: 2169 / 505;
  margin: 4px auto 20px;
  background: url("/static/images/industry-home/showcase-heading-chrome.webp") center / contain no-repeat;
  pointer-events: none;
}
.dz-banner-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .dz-chrome-frame.dz-chrome-card { transition: none; }
  .dz-chrome-frame.dz-chrome-card:hover { transform: none; }
}
