/* Dynamic Zone additions plus narrowly scoped staging compatibility fixes.
   Core layout, cards, hero, sidebar and buttons remain owned by news.css and
   news-detai.css. */

.va-block {
  margin-block: 1.75rem;
}

.va-block-rule {
  height: 0;
  margin-block: 2rem;
  border: 0;
  border-block-start: 1px solid var(--detail-line, #d9d9d4);
}

.va-block-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: var(--focal, center);
}

.va-block-image--float_left,
.va-block-image--float_right {
  max-width: 46%;
}

.va-block-image--float_left {
  float: left;
  margin-right: 1.5rem;
}

.va-block-image--float_right {
  float: right;
  margin-left: 1.5rem;
}

.va-block-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

.va-block-gallery__grid .va-block-image {
  margin: 0;
}

.va-block-gallery__grid img {
  aspect-ratio: 4 / 3;
}

.va-block-table > figcaption {
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.va-block-table__note,
.va-source-keys {
  color: var(--detail-muted, #6c6c68);
  font-size: 0.875rem;
}

.va-source-keys {
  display: block;
  margin-top: 0.5rem;
}

.va-block-callout {
  padding: 1.25rem 1.4rem;
  border-left: 0.25rem solid var(--detail-accent, #f0a500);
  background: var(--detail-bg-soft, #f5f5f2);
}

.va-block-callout > :first-child {
  margin-top: 0;
}

.va-block-callout--warning,
.va-block-callout--safety {
  border-left-color: #a24432;
}

.va-block-callout--procurement {
  border-left-color: var(--detail-accent-strong, #9c6800);
}

.va-block-subsection {
  padding-left: 1rem;
  border-left: 2px solid var(--detail-line, #d9d9d4);
}

.va-block-case-study > .va-block-subsection + .va-block-subsection,
.va-block-purchase-guidance > .va-block-subsection + .va-block-subsection {
  margin-top: 1.25rem;
}

.va-block-faq details > :last-child {
  margin-bottom: 0;
}

.va-block-cta-inline .mos-cms-button {
  margin-top: 0.75rem;
}

@media (max-width: 43.75rem) {
  .va-block-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .va-block-image--float_left,
  .va-block-image--float_right {
    float: none;
    max-width: none;
    margin-inline: 0;
  }
}

/* The formal detail stylesheet centers the breadcrumb. On narrow screens a
   long trail then overflows from both sides, making its beginning unreachable.
   Keep the formal DOM and base styling, but make the staging breadcrumb a
   left-origin, single-line horizontal scroller. */
@media (max-width: 31.25rem) {
  .mos-article-detail .mos-detail-breadcrumb {
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: transparent transparent;
    scrollbar-width: none;
  }

  .mos-article-detail .mos-detail-breadcrumb::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .mos-article-detail .mos-detail-breadcrumb [aria-current="page"] {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }
}
