/* Reach charts stay inside the fleet cards; their full images are never cropped. */
.equipment-chart {
  display: block;
  margin: auto 0 18px;
  overflow: hidden;
  border: 1px solid var(--c-border, #ddd);
  border-radius: 12px;
  color: var(--c-ink, #171719);
  background: #fff;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.equipment-chart:hover { border-color: #b89600; box-shadow: 0 0 0 3px rgba(255,214,10,.2); }
.equipment-chart:focus-visible { outline: 3px solid #997d00; outline-offset: 3px; }
.equipment-chart__preview { position: relative; display: block; padding: 12px; background: #fff; }
.equipment-chart .equipment-chart__preview img { display: block; width: 100%; height: 152px; object-fit: contain; }
.equipment-chart__zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-accent, #ffd60a); font-size: 22px; }
.equipment-chart__caption { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-top: 1px solid #e9e9e9; background: #fafafa; font-size: 13px; line-height: 1.4; }
.equipment-chart__caption > span { font-size: 12px; color: #626269; }
.equipment-chart + .card-eq-cta { margin-top: 0; }
html.equipment-chart-open { overflow: hidden; }
.equipment-chart-dialog:not([open]) { display: none; }
.equipment-chart-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(1080px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #171719;
  box-shadow: 0 28px 100px rgba(0,0,0,.35);
  overscroll-behavior: contain;
}
.equipment-chart-dialog::backdrop { background: rgba(12,14,18,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.equipment-chart-dialog__panel { padding: 24px; }
.equipment-chart-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.equipment-chart-dialog__head p { margin: 0 0 4px; font-size: 12px; color: #626269; }
.equipment-chart-dialog__head h2 { margin: 0; font-size: clamp(18px, 3vw, 26px); line-height: 1.3; }
.equipment-chart-dialog__close { flex: 0 0 44px; height: 44px; border: 1px solid #ddd; border-radius: 50%; background: #f4f4f4; color: #171719; font: 30px/1 sans-serif; cursor: pointer; }
.equipment-chart-dialog__close:hover { background: #ffd60a; }
.equipment-chart-dialog__close:focus-visible, .equipment-chart-dialog__foot a:focus-visible { outline: 3px solid #997d00; outline-offset: 3px; }
.equipment-chart-dialog__image { display: flex; justify-content: center; align-items: center; min-height: 160px; }
.equipment-chart-dialog__image img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 260px); object-fit: contain; }
.equipment-chart-dialog__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e9e9e9; }
.equipment-chart-dialog__foot p { max-width: 660px; margin: 0; color: #626269; font-size: 12px; line-height: 1.5; }
.equipment-chart-dialog__foot a { flex-shrink: 0; color: #171719; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .equipment-chart-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
  .equipment-chart-dialog__panel { padding: 16px; }
  .equipment-chart-dialog__foot { display: block; margin-top: 14px; padding-top: 12px; }
  .equipment-chart-dialog__foot a { display: inline-block; padding: 12px 0 2px; }
  .equipment-chart-dialog__image img { max-height: calc(100dvh - 290px); }
}
@media (prefers-reduced-motion: reduce) { .equipment-chart { transition: none; } }
