/* Editorial reader. Load after the legacy, staging and global editorial CSS. */
.bhm-article-main {
  clear: both;
  padding: 36px 0 64px;
  background: #fff;
  color: #29313a;
  font-family: var(--bhm-font);
}
.bhm-article-main:focus { outline: none; }
.bhm-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  /* Align the reader with the masthead and put any ad rail at the far right. */
  justify-content: space-between;
  align-items: start;
  gap: 40px;
  width: 100%;
  margin: 0;
}
.bhm-reader,
.bhm-reader-sidebar,
.bhm-reader-ad-rail { min-width: 0; }
.bhm-reader {
  width: 100%;
  max-width: 780px;
  margin: 0;
  justify-self: start;
  text-align: left;
  color: #29313a;
  font-family: var(--bhm-font);
  font-size: 18px;
  line-height: 1.75;
}
.bhm-article-main h1,
.bhm-article-main h2,
.bhm-article-main h3,
.bhm-article-main h4,
.bhm-article-main h5,
.bhm-article-main h6 {
  font-family: var(--bhm-headline, var(--bhm-font));
  font-style: normal;
  font-stretch: normal;
  font-weight: 700;
  text-transform: none;
}
.bhm-reader-header { margin: 0 0 28px; }
.bhm-reader-kicker {
  margin: 0 0 14px;
  color: #9f1d24;
  font-family: var(--bhm-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.bhm-reader-kicker a { color: inherit; text-decoration: none; }
.bhm-reader-kicker a:hover { text-decoration: underline; text-underline-offset: .2em; }
.bhm-article-main .bhm-reader-title {
  margin: 0;
  color: #171717;
  font-size: clamp(34px, 3.9vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.bhm-reader-standfirst {
  margin: 22px 0 0;
  color: #525b66;
  font-family: var(--bhm-font);
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}
.bhm-reader-standfirst p { margin: 0 0 .65em; }
.bhm-reader-standfirst > :last-child { margin-bottom: 0; }
.bhm-reader-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 20px;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid #e2e2e2;
  color: #5f6873;
  font-family: var(--bhm-font);
  font-size: 14px;
  line-height: 1.5;
}
.bhm-reader-meta p { margin: 0; font: inherit; }
.bhm-reader-meta .bhm-reader-byline { color: #252525; }
.bhm-reader-byline span { font-weight: 700; }
.bhm-reader-meta a { color: #9f1d24; text-decoration: underline; text-underline-offset: .15em; }

.bhm-article-main .post-article.bhm-article-body {
  display: flow-root;
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #29313a;
  font-family: var(--bhm-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.bhm-article-body p { margin: 0 0 1.25em; font: inherit; }
.bhm-article-body :is(p, li) { text-wrap: pretty; }
.bhm-article-body :is(strong, b) { font-weight: 700; }
.bhm-article-body > :first-child { margin-top: 0; }
.bhm-article-body h1 {
  clear: both;
  margin: 1.6em 0 .65em;
  color: #9f1d24;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}
.bhm-article-body h2 {
  clear: both;
  margin: 1.55em 0 .55em;
  color: #9f1d24;
  font-size: clamp(28px, 2.7vw, 33px);
  line-height: 1.18;
  letter-spacing: 0;
}
.bhm-article-body h3 {
  margin: 1.4em 0 .55em;
  color: #242424;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: 0;
}
.bhm-article-body h4,
.bhm-article-body h5,
.bhm-article-body h6 { margin: 1.4em 0 .55em; color: #29313a; font-size: 23px; line-height: 1.25; letter-spacing: 0; }
.bhm-article-main .bhm-article-body a {
  color: #9f1d24;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}
.bhm-article-main .bhm-article-body a:hover { color: #6e1117; text-decoration-thickness: 2px; }

/* Keep subheadings red, including links and imported inline text colours.
   Scope the override to prose so page titles and surrounding panels keep
   their own treatments. Important is needed for legacy inline colour styles. */
.bhm-article-main .bhm-article-body :is(h2, h3, h4, h5, h6),
.bhm-article-main .bhm-article-body :is(h2, h3, h4, h5, h6) *,
.bhm-bookshop .bhm-author-prose :is(h2, h3, h4, h5, h6),
.bhm-bookshop .bhm-author-prose :is(h2, h3, h4, h5, h6) * {
  color: #a51e2a !important;
}

.bhm-article-body :is(ul, ol) { margin: 0 0 1.25em; padding: 0 0 0 1.4em; }
.bhm-article-body :is(ul, ol) li { margin-bottom: .5em; }
.bhm-article-body :is(ul, ol) :is(ul, ol) { margin: .5em 0; }
.bhm-article-body blockquote {
  margin: 32px 0;
  padding: 8px 0 8px 24px;
  border: 0;
  border-left: 3px solid #9f1d24;
  background: #fff;
  color: #353535;
  font-family: var(--bhm-font);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
}
.bhm-article-body blockquote p:last-child { margin-bottom: 0; }
.bhm-article-body blockquote cite { display: block; margin-top: 12px; font-size: 15px; font-style: normal; }
.bhm-article-body hr { height: 1px; margin: 32px 0; border: 0; background: #dedede; }
.bhm-article-body pre { max-width: 100%; overflow-x: auto; padding: 16px; background: #f6f6f6; }
.bhm-article-body table { display: block; width: 100%; max-width: 100%; margin: 28px 0; overflow-x: auto; border-collapse: collapse; font-family: var(--bhm-font); font-size: 16px; line-height: 1.55; }
.bhm-article-body th,
.bhm-article-body td { padding: 11px 13px; border: 1px solid #d7dce1; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.bhm-article-body th { color: #252c35; background: #f2f4f6; font-weight: 700; }
.bhm-article-body tbody tr:nth-child(even) { background: #fafbfc; }
.bhm-article-body table caption { margin-bottom: 10px; color: #525b66; font-size: 14px; text-align: left; }

/* Originals remain proportional, including inline caption wrappers. */
.bhm-article-main .bhm-article-body img,
.bhm-article-main .bhm-article-body figure,
.bhm-article-main .bhm-article-body .wp-caption,
.bhm-article-main .bhm-article-body .wp-block-image { max-width: 100% !important; }
.bhm-article-main .bhm-article-body img {
  display: block;
  width: auto;
  height: auto !important;
  object-fit: contain;
}
.bhm-article-body figure,
.bhm-article-body .wp-caption { margin: 28px 0; }
.bhm-article-main .bhm-article-body .bhm-article-media { margin: 0 0 30px; }
.bhm-article-main .bhm-article-body .bhm-article-media > img,
.bhm-article-main .bhm-article-body .bhm-article-media > a > img {
  float: none;
  width: auto;
  max-width: 100% !important;
  max-height: 680px;
  height: auto !important;
  margin: 0;
  aspect-ratio: auto;
  object-fit: contain;
}
.bhm-article-body figcaption,
.bhm-article-body .wp-caption-text {
  display: block;
  margin: 10px 0 0;
  padding: 0;
  color: #58616c;
  font-family: var(--bhm-font);
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  text-align: left;
}
.bhm-article-body figcaption p { margin: 0 0 .5em; }
.bhm-article-body .aligncenter { margin-right: auto; margin-left: auto; }
.bhm-article-main .bhm-article-body .alignleft { float: left; max-width: calc(50% - 25px) !important; margin: 8px 25px 16px 0; }
.bhm-article-main .bhm-article-body .alignright { float: right; max-width: calc(50% - 25px) !important; margin: 8px 0 16px 25px; }
.bhm-reader-gallery { position: relative; display: block; }
.bhm-reader-gallery__label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 13px;
  border-radius: 3px;
  background: #191919;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.bhm-article-body .bhm-editorial-video { margin: 0; padding: 24px; border-left: 4px solid #9f1d24; background: #f5f5f5; }

.bhm-reader-sidebar { display: grid; align-content: start; gap: 30px; width: 100%; max-width: 780px; }
.bhm-reader-panel { min-width: 0; margin: 0; padding: 0; background: #fff; color: #252525; }
.bhm-article-main .bhm-reader-panel__title {
  margin: 0;
  padding: 13px 0;
  border-top: 3px solid #9f1d24;
  border-bottom: 1px solid #dedede;
  color: #202020;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}
.bhm-reader-panel__body { padding-top: 17px; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.bhm-reader-panel__body p { margin: 0 0 1em; }
.bhm-reader-panel__body a { color: #9f1d24; text-decoration: underline; text-underline-offset: .15em; }
.bhm-reader-panel__body :is(img, figure, .wp-caption) { max-width: 100%; height: auto; }
.bhm-reader-panel__body :is(ul, ol) { margin: 0 0 1em; padding-left: 1.25em; }
.bhm-reader-profile-logo { padding: 20px 0; }
.bhm-reader-profile-logo img { display: block; width: auto; max-width: 100%; max-height: 180px; height: auto; margin: auto; object-fit: contain; }
.bhm-context-list { margin: 0; padding: 0; list-style: none; }
.bhm-context-list > li { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #e4e4e4; }
.bhm-context-card { display: block; padding: 18px 0; color: #222; text-decoration: none; }
.bhm-context-card--image { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: start; gap: 13px; }
.bhm-context-card__image { display: block; margin: 0; }
.bhm-context-card__image img { display: block; width: 80px; max-width: 100%; height: 64px; aspect-ratio: 5 / 4; object-fit: cover; }
.bhm-context-card--profile .bhm-context-card__image img { object-fit: contain; }
.bhm-context-card__text { display: block; min-width: 0; }
.bhm-context-card__title { display: block; color: #29313a; font: 700 19px/1.2 var(--bhm-headline, var(--bhm-font)); letter-spacing: 0; overflow-wrap: break-word; }
.bhm-context-card__summary { display: block; margin-top: 7px; color: #606975; font: 400 14px/1.55 var(--bhm-font); }
.bhm-context-card:hover .bhm-context-card__title { color: #9f1d24; text-decoration: underline; text-underline-offset: .15em; }
.bhm-context-list--profiles .bhm-context-card { align-items: center; padding: 13px 0; }
.bhm-context-list--profiles .bhm-context-card__image img { height: 46px; }
.bhm-context-list--profiles .bhm-context-card__title { font-family: var(--bhm-font); font-size: 15px; font-weight: 600; line-height: 1.4; }
.bhm-reader-ad { max-width: 100%; margin: 0; }
.bhm-reader-ad--rectangle { width: 300px; }
.bhm-reader-ad-rail { width: 160px; max-width: 100%; margin: 0 auto; }
.bhm-reader-ad img,
.bhm-reader-ad-rail img { max-width: 100%; height: auto; }
.bhm-reader-more { margin-top: 45px; }
.bhm-reader-more .bhm-context-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.bhm-reader-region-link { margin: 20px 0 0; font-size: 15px; line-height: 1.5; }
.bhm-reader-region-link a { color: #9f1d24; font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.bhm-reader-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 30px 0; }
.bhm-reader-pagination > :is(a, span) { padding: 5px 11px; border: 1px solid #d7d7d7; }
.bhm-reader-comments { margin-top: 40px; border-top: 1px solid #dedede; padding-top: 30px; }
.bhm-reader-comments .comments { padding: 0; background: #fff; }
.bhm-reader-comments textarea,
.bhm-reader-comments input { max-width: 100%; border: 1px solid #b7b7b7; background: #fff; color: #242424; }

@media (min-width: 960px) {
  /* Related information follows the article. It never becomes an extra
     centre column between the story and its narrow advertising rail. */
  .bhm-article-layout--rail {
    grid-template-columns: minmax(0, 780px) 160px;
    grid-template-areas: "reader rail";
  }
  .bhm-article-layout--sidebar.bhm-article-layout--rail {
    grid-template-rows: auto auto;
    grid-template-areas: "reader rail" "sidebar rail";
    row-gap: 40px;
  }
  .bhm-article-layout--rail > .bhm-reader { grid-area: reader; }
  .bhm-article-layout--sidebar.bhm-article-layout--rail > .bhm-reader-sidebar { grid-area: sidebar; }
  .bhm-article-layout--rail > .bhm-reader-ad-rail { grid-area: rail; }
}
@media (min-width: 640px) {
  .bhm-reader-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .bhm-reader-sidebar > .bhm-reader-panel:only-child { grid-column: 1 / -1; }
  .bhm-reader-sidebar > .bhm-reader-ad:only-child { grid-column: 1 / -1; }
  .bhm-reader-sidebar > .bhm-reader-panel:only-child .bhm-context-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
@media (max-width: 767px) {
  .bhm-article-main { padding: 28px 0 45px; }
  .bhm-article-layout { gap: 36px; }
  .bhm-reader-header { margin-bottom: 24px; }
  .bhm-reader-standfirst { margin-top: 18px; }
  .bhm-reader-meta { margin-top: 20px; gap: 6px 15px; }
  .bhm-article-body blockquote { padding-left: 18px; font-size: 21px; }
  .bhm-article-main .bhm-article-body .alignleft,
  .bhm-article-main .bhm-article-body .alignright { float: none; max-width: 100% !important; margin: 24px auto; }
  .bhm-reader-more .bhm-context-list { grid-template-columns: 1fr; }
  .bhm-context-card__title { font-size: 20px; }
  .bhm-context-list--profiles .bhm-context-card__title { font-size: 15px; }
  .bhm-article-body table { font-size: 15px; }
  .bhm-article-body :is(th, td) { padding: 10px; }
}
@media print {
  .bhm-reader-sidebar,
  .bhm-reader-ad-rail,
  .bhm-reader-more,
  .bhm-reader-comments { display: none; }
  .bhm-article-main { padding: 0; }
  .bhm-article-layout { display: block; }
  .bhm-reader { max-width: none; }
  .bhm-article-main .bhm-reader-title { font-size: 32px; }
  .bhm-article-main .post-article.bhm-article-body { font-size: 12pt; }
  .bhm-article-body h2,
  .bhm-article-body h3 { break-after: avoid; }
  .bhm-article-body figure { break-inside: avoid; }
}
