/* News and feature articles: a photographic lead, a clear reading column,
   and related material after the story. Other readers keep their own layout. */
.bhm-editorial .bhm-article-layout.bhm-article-layout--news {
  --bhm-news-reader-max: 1040px;
  --bhm-news-prose-max: 780px;
  --bhm-news-rail-width: clamp(220px, 20vw, 280px);
  --bhm-news-rail-gap: clamp(24px, 2.4vw, 36px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "reader";
  grid-template-rows: auto;
  justify-content: stretch;
  max-width: var(--bhm-news-reader-max);
  margin-inline: auto;
  gap: 28px;
}
.bhm-editorial .bhm-article-layout.bhm-article-layout--news > .bhm-reader {
  grid-area: reader;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: none;
  container: bhm-news / inline-size;
}
.bhm-editorial .bhm-article-layout.bhm-article-layout--news > .bhm-reader-sidebar {
  grid-area: sidebar;
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  width: 100%;
  max-width: none;
  margin: 0;
}
.bhm-editorial .bhm-article-layout.bhm-article-layout--news > .bhm-reader-ad-rail {
  grid-area: rail;
  grid-column: 1;
  grid-row: 3;
  align-self: start;
}
.bhm-article-layout--news .bhm-reader-lead {
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dce1e9;
}
.bhm-article-layout--news .bhm-reader-lead .bhm-reader-header { max-width: 980px; margin: 0; padding: 0; }
.bhm-article-layout--news .bhm-reader-kicker { margin-bottom: 15px; color: var(--bhm-red); font-size: 12px; letter-spacing: .09em; }
.bhm-article-main .bhm-article-layout--news .bhm-reader-title {
  color: #252a40;
  font: 400 clamp(32px, 3.2vw, 44px)/1.12 var(--bhm-display, Georgia, serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.bhm-article-layout--news .bhm-reader-standfirst { max-width: var(--bhm-news-prose-max); margin-top: 22px; color: #596173; font-size: 18px; line-height: 1.65; }
.bhm-article-layout--news .bhm-reader-meta { margin-top: 18px; padding-top: 12px; border-color: #dce1e9; font-size: 13px; line-height: 1.6; }
.bhm-article-main .bhm-article-layout--news .bhm-reader-lead-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 20px 0 0;
  padding: 18px;
  border: 1px solid #e1e6ee;
  background: #f0f4fa;
}
.bhm-article-main .bhm-article-layout--news .bhm-reader-lead-media .bhm-article-media {
  width: 100%;
  max-width: 720px;
  margin: 0;
}
.bhm-article-main .bhm-article-layout--news .bhm-reader-lead-media .bhm-article-media > img,
.bhm-article-main .bhm-article-layout--news .bhm-reader-lead-media .bhm-article-media > a > img {
  display: block;
  width: 100%;
  max-width: 100% !important;
  height: auto !important;
  max-height: 560px;
  margin: 0 auto;
  object-fit: contain !important;
  object-position: center;
}
.bhm-article-layout--news .bhm-reader-lead-media figcaption { margin-top: 14px; color: #596173; font-size: 13px; line-height: 1.6; }
.bhm-article-layout--news .bhm-reader-prose {
  width: 100%;
  max-width: var(--bhm-news-prose-max);
  margin-inline: auto;
}
/* Keep paragraph rhythm and the embedded book panel's own spacing intact. */
.bhm-article-layout--news .bhm-reader-prose :is(h2, h3, h4, h5, h6):not(.bhm-article-book *) { margin: 28px 0 14px; }
.bhm-article-layout--news .bhm-reader-prose h2:not(.bhm-article-book *) { margin-top: 32px; }
.bhm-article-layout--news .bhm-reader-prose > :first-child { margin-top: 0; }
.bhm-article-layout--news .bhm-reader-prose > :is(h2, h3, h4, h5, h6):first-child { margin-top: 0; }
.bhm-article-main .bhm-article-layout--news .bhm-reader-prose p.bhm-reader-intro { font-size: 19px; line-height: 1.7; font-weight: 450; color: #353e4e; }
.bhm-article-layout--news .bhm-reader-more,
.bhm-article-layout--news .bhm-reader-comments {
  max-width: var(--bhm-news-prose-max);
  margin-inline: auto;
}
.bhm-article-layout--news .bhm-reader > .bhm-reader-ad,
.bhm-article-layout--news .bhm-reader > .bhmrj-next {
  width: 100%;
  max-width: var(--bhm-news-prose-max);
  margin-inline: auto;
}

/* Related stories now have room for useful images and normal-size text. */
.bhm-article-main .bhm-article-layout--news .bhm-reader-sidebar .bhm-reader-panel__title {
  color: #252a40;
  font: 700 25px/1.2 var(--bhm-font);
  letter-spacing: -.025em;
}
.bhm-editorial .bhm-article-layout--news .bhm-reader-sidebar .bhm-context-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.bhm-article-layout--news .bhm-reader-sidebar .bhm-context-list > li { min-width: 0; }
.bhm-article-layout--news .bhm-reader-sidebar .bhm-context-list:not(.bhm-context-list--profiles) .bhm-context-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.bhm-article-layout--news .bhm-reader-sidebar .bhm-context-list:not(.bhm-context-list--profiles) .bhm-context-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f4fa;
}
.bhm-article-layout--news .bhm-reader-sidebar .bhm-context-list:not(.bhm-context-list--profiles) .bhm-context-card__image img { width: 100%; height: 100%; object-fit: cover; }
.bhm-article-main .bhm-article-layout--news .bhm-reader-sidebar .bhm-context-card__title { color: #252a40; font-size: 18px; line-height: 1.38; }
.bhm-article-main .bhm-article-layout--news .bhm-reader-sidebar .bhm-context-card__summary { margin-top: 9px; color: #626a79; font-size: 14px; line-height: 1.65; }
.bhm-editorial .bhm-article-layout--news .bhm-reader-sidebar .bhm-context-list--profiles { gap: 12px 28px; }
.bhm-article-main .bhm-article-layout--news .bhm-reader-sidebar .bhm-context-list--profiles .bhm-context-card__title { font-size: 15px; }

@media (min-width: 960px) {
  .bhm-editorial .bhm-article-layout.bhm-article-layout--news.bhm-article-layout--rail {
    grid-template-columns: minmax(0, 1fr) var(--bhm-news-rail-width);
    grid-template-areas: "reader rail" "sidebar rail";
    max-width: none;
    column-gap: var(--bhm-news-rail-gap);
  }
  .bhm-editorial .bhm-article-layout.bhm-article-layout--news.bhm-article-layout--rail > .bhm-reader-ad-rail { grid-area: rail; grid-column: 2; grid-row: 1 / 3; justify-self: center; }
  .bhm-editorial .bhm-article-layout.bhm-article-layout--news.bhm-article-layout--rail:not(.bhm-article-layout--sidebar) { grid-template-areas: "reader rail"; }
  .bhm-editorial .bhm-article-layout.bhm-article-layout--news.bhm-article-layout--rail:not(.bhm-article-layout--sidebar) > .bhm-reader-ad-rail { grid-row: 1; }
}
@container bhm-news (min-width: 840px) {
  .bhm-reader-lead--image { display: grid; grid-template-columns: minmax(0, .44fr) minmax(0, .56fr); gap: 24px; align-items: stretch; }
  .bhm-article-layout--news .bhm-reader-lead--image .bhm-reader-header { grid-column: 2; grid-row: 1; align-self: center; padding: 5px 0; }
  .bhm-article-main .bhm-article-layout--news .bhm-reader-lead--image .bhm-reader-lead-media { grid-column: 1; grid-row: 1; min-height: 300px; margin: 0; }
}
@media (max-width: 719px) {
  .bhm-editorial .bhm-article-layout.bhm-article-layout--news { gap: 24px; }
  .bhm-article-main .bhm-article-layout--news .bhm-reader-title { font-size: 32px; line-height: 1.14; text-wrap: pretty; }
  .bhm-article-layout--news .bhm-reader-lead { margin-bottom: 20px; padding-bottom: 18px; }
  .bhm-article-layout--news .bhm-reader-standfirst { font-size: 17px; margin-top: 18px; }
  .bhm-article-main .bhm-article-layout--news .bhm-reader-lead-media { padding: 16px; margin-top: 18px; }
  .bhm-editorial .bhm-article-layout--news .bhm-reader-sidebar .bhm-context-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .bhm-article-main .bhm-article-layout--news .bhm-reader-sidebar .bhm-context-card__title { font-size: 17px; }
  .bhm-article-main .bhm-article-layout--news .bhm-reader-prose p.bhm-reader-intro { font-size: 18px; }
}
@media (max-width: 479px) {
  .bhm-editorial .bhm-article-layout--news .bhm-reader-sidebar .bhm-context-list { grid-template-columns: minmax(0, 1fr); }
  .bhm-editorial .bhm-article-layout--news .bhm-reader-sidebar .bhm-context-list--profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bhm-article-layout--news .bhm-reader-sidebar .bhm-context-list--profiles .bhm-context-card { display: flex; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 359px) { .bhm-article-main .bhm-article-layout--news .bhm-reader-title { font-size: 29px; } }
@media print {
  .bhm-editorial .bhm-article-layout.bhm-article-layout--news { display: block; }
  .bhm-article-layout--news .bhm-reader-lead { display: block; }
  .bhm-article-main .bhm-article-layout--news .bhm-reader-title { font-size: 30px; }
  .bhm-article-main .bhm-article-layout--news .bhm-reader-lead-media { max-width: 640px; padding: 0; border: 0; background: none; }
  .bhm-article-layout--news .bhm-reader-prose { max-width: none; }
}
