/* The old mirrored header/footer logo assets remain in source snapshots for
   layout compatibility, but the public clone no longer shows that brand mark.
   Keep the original boxes from changing page geometry. */
img[src*="logo11666578782185"],
img[src*="logo21666578787268"] {
  visibility: hidden !important;
}

/* Legacy article bodies often contain inline image widths from the original
   CMS. Keep those assets inside the dark article panel on every viewport. */
.maintenance-details-text {
  min-width: 0;
  overflow-x: hidden;
}

.imageContainer {
  box-sizing: border-box;
  max-width: 100% !important;
  overflow-x: hidden;
}

.imageContainer img,
.imageContainer video,
.imageContainer iframe,
.maintenance-details-text img,
.maintenance-details-text video,
.maintenance-details-text iframe,
.local-troubleshoot-article-image img {
  display: block;
  box-sizing: border-box;
  max-width: 100% !important;
  height: auto !important;
  margin-inline: auto;
  object-fit: contain;
}

.local-troubleshoot-article-image {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 24px auto;
  overflow: hidden;
  text-align: center;
}

/* Small compatibility fixes for the mirrored pages.  The original pages use
   absolute/float positioning that is fragile when a title is longer than the
   source viewport or when the local font metrics differ. */
.training-performance-video.maintenance .training-performance-box > h3 {
  box-sizing: border-box;
  display: block;
  max-width: 100%;
  padding-right: 64px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.training-performance-video.maintenance .pro-shouji-button {
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.training-performance-video.maintenance .pro-shouji-button svg {
  display: block;
  width: 30px !important;
  height: 30px !important;
}

.training-performance-video.maintenance .training-date > a[download] {
  cursor: pointer;
}

.training-performance-video.maintenance .training-date[hidden] {
  display: none !important;
}

/* A missing CMS upload is emitted as a relative `?attname=` link. It must
   never look like a working download button (and must not download the HTML
   article itself). repairTrainingMedia() replaces this href when a matching
   fallback video is available. */
.training-performance-video.maintenance .training-date > a[href="?attname="] {
  display: none !important;
}

.training-performance-video.maintenance .training-up[hidden] {
  display: none !important;
}

.local-troubleshoot-article-video {
  max-width: 860px;
  margin: 24px auto;
  padding: 18px;
  background: #686868;
  color: #fff;
  text-align: center;
}

.local-troubleshoot-article-video h4 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.35;
}

.local-troubleshoot-article-video video {
  display: block;
  width: 100%;
  max-height: 520px;
  margin: 0 auto 14px;
  background: #111;
}

.local-troubleshoot-video-download {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  color: #111;
  background: #ffdc3d;
  font-weight: 700;
  text-decoration: none;
}

.local-admin-preview-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: #1d252b;
  box-shadow: 0 8px 22px rgba(16, 22, 26, .22);
  font-size: 12px;
  font-weight: 700;
}

@media screen and (max-width: 1024px) {
  .training-performance-video.maintenance .training-performance-box > h3 {
    padding-right: 48px;
    line-height: 1.35;
  }

  .training-performance-video.maintenance .pro-shouji-button {
    top: 4px;
    right: 4px;
    width: 34px;
    height: 34px;
  }

  .training-performance-video.maintenance .pro-shouji-button svg {
    width: 26px !important;
    height: 26px !important;
  }
}
