/* R2.4.1: article detail scoped refinements. No shared site layouts are changed. */
.article-detail-page .article-layout,
.article-detail-page .article-content,
.article-detail-page .article-sidebar { min-width: 0; }
.article-detail-page .article-content { overflow-wrap: break-word; }
.article-detail-page .article-content figure { max-width: 100%; }
.article-detail-page .article-content img,
.article-detail-page .article-content video { display: block; max-width: 100%; height: auto; }
.article-detail-page .article-content iframe { max-width: 100%; }
.article-detail-page .article-cover { margin: 0 0 1.15rem; }
.article-detail-page .article-cover__link { display: block; cursor: zoom-in; border-radius: .7rem; overflow: hidden; }
.article-detail-page .article-cover__link > img { display: block; width: 100%; height: auto; object-fit: contain; }
.article-detail-page .article-cover__caption { margin-top: .6rem; color: #60758a; font-size: .85rem; line-height: 1.55; text-align: center; }
.article-detail-page .article-cover__caption a { display: inline-block; margin-left: .3rem; color: #087ea4; font-weight: 750; text-decoration: underline; text-underline-offset: .15em; }
.article-detail-page .article-byline { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .45rem 1.15rem; margin: 1.1rem 0 1.35rem; color: #60758a; font-size: .92rem; line-height: 1.6; }
.article-detail-page .article-byline__item { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: .3rem; }
.article-detail-page .article-byline__item strong { color: #132139; }
.article-detail-page .article-content .content-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-detail-page .article-content > table { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
@media (max-width: 899px) {
  .article-detail-page .page-hero h1 { overflow-wrap: anywhere; }
  .article-detail-page .article-content .prose { min-width: 0; }
}
@media (max-width: 639px) {
  .article-detail-page .page-hero { padding: .65rem 0 1rem; }
  .article-detail-page .page-hero .breadcrumb { font-size: .77rem; line-height: 1.4; padding: 0 0 .45rem; }
  .article-detail-page .page-hero h1 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); line-height: 1.25; margin-top: .35rem; }
  .article-detail-page .page-hero p { font-size: .94rem; line-height: 1.55; margin-top: .5rem; }
  .article-detail-page .article-detail-section { padding: 1.3rem 0 2.3rem; }
  .article-detail-page .article-layout { gap: 1.5rem; }
  .article-detail-page .article-cover { margin-bottom: .95rem; }
  .article-detail-page .article-byline { flex-direction: column; align-items: flex-start; gap: .25rem; font-size: .9rem; margin: .8rem 0 1.25rem; }
  .article-detail-page .article-content > p,
  .article-detail-page .article-content > ul,
  .article-detail-page .article-content > ol { overflow-wrap: anywhere; }
  .article-detail-page .article-sidebar { padding-bottom: 1rem; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .article-detail-page .article-detail-section { padding-block: 2.25rem 3.4rem; }
}

/* R2.4.1a: desktop article images; retains mobile/tablet rendering and original files.
   On desktop, keep oversized source images inside a readable, centered article column. */
@media (min-width: 900px) {
  .article-detail-page .article-content > .article-cover {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Editor-inserted images within article prose, not product/gallery site-wide images. */
  .article-detail-page .article-content > p > img,
  .article-detail-page .article-content > p > a > img,
  .article-detail-page .article-content > figure:not(.article-cover) img {
    display: block;
    width: auto;
    max-width: min(100%, 760px);
    height: auto;
    margin-left: auto;
    margin-right: auto;
  }
}

/* R2.4.1b: Square/portrait article covers are deliberately narrower on desktop.
   Only cover figures tagged by article.image_width and article.image_height
   are affected. Landscape covers keep the R2.4.1a 760px cap.
   Mobile/tablet and original image links remain unchanged. */
@media (min-width: 900px) {
  .article-detail-page .article-content > .article-cover.article-cover--square-portrait {
    max-width: 620px;
  }
}
