/* Organisation profiles: a full-width introduction with a readable body.
   Loaded only for post_profile; all copy and links come from the native fields. */
.bhm-profile {
  --bhm-profile-surface: #f5f5f2;
  width: 100%;
  min-width: 0;
  color: var(--bhm-ink, #20222a);
  font-family: var(--bhm-font);
}
.bhm-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  margin: 0 0 44px;
  border-top: 3px solid var(--bhm-red, #bf1824);
  background: var(--bhm-profile-surface);
}
.bhm-profile-hero--media {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}
.bhm-profile-header {
  min-width: 0;
  padding: clamp(28px, 3.2vw, 48px);
}
.bhm-profile-kicker {
  margin: 0 0 20px;
  color: var(--bhm-dark-red, #9f1d24);
  font: 700 12px/1.55 var(--bhm-font);
  letter-spacing: .11em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.bhm-profile-kicker a { color: inherit; text-decoration: none; }
.bhm-profile-kicker a:hover { text-decoration: underline; text-underline-offset: .22em; }
.bhm-article-main .bhm-profile-title {
  margin: 0;
  color: #181818;
  font-family: var(--bhm-display, Georgia, serif);
  font-size: clamp(38px, 4.4vw, 66px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.bhm-profile-standfirst {
  max-width: 38em;
  margin: 24px 0 0;
  color: #4b535c;
  font: 400 clamp(18px, 1.5vw, 21px)/1.65 var(--bhm-font);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.bhm-profile-standfirst p { margin: 0 0 .75em; font: inherit; }
.bhm-profile-standfirst > :last-child { margin-bottom: 0; }
.bhm-profile-hero--text .bhm-profile-header { max-width: 1040px; padding-block: 40px 44px; }
.bhm-profile-media { align-self: center; min-width: 0; padding: 24px 24px 24px 0; }
.bhm-profile-media .bhm-article-media {
  display: block;
  float: none;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}
.bhm-profile-media .bhm-article-media img {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  max-height: 600px;
  height: auto !important;
  margin: 0 auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}
.bhm-profile-hero--portrait .bhm-profile-media .bhm-article-media img { width: auto; max-height: 560px; }
.bhm-profile-media .bhm-reader-gallery { width: 100%; }
.bhm-profile-media figcaption,
.bhm-profile-credits {
  margin: 12px 0 0;
  color: #5c6269;
  font: 400 13px/1.6 var(--bhm-font);
  overflow-wrap: anywhere;
}
.bhm-profile-media figcaption p { margin: 0 0 .5em; }
.bhm-profile-credits p { margin: 0; }
.bhm-profile-media .bhm-editorial-video {
  margin: 0;
  padding: 28px;
  border-left: 3px solid var(--bhm-red, #bf1824);
  background: #fff;
  overflow-wrap: anywhere;
}
.bhm-profile-media .bhm-editorial-video a,
.bhm-profile-media figcaption a { color: var(--bhm-dark-red, #9f1d24); text-underline-offset: .18em; }
.bhm-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
  align-items: start;
  gap: 44px clamp(32px, 4vw, 64px);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.bhm-profile-layout--sidebar { grid-template-columns: minmax(0, 780px) minmax(260px, 320px); }
.bhm-profile-prose,
.bhm-profile-sidebar { min-width: 0; }
.bhm-article-main .post-article.bhm-profile-prose {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
}
.bhm-profile-prose > :last-child { margin-bottom: 0; }
.bhm-profile-card {
  padding: 26px;
  border: 1px solid #deded8;
  border-top: 3px solid var(--bhm-red, #bf1824);
  background: var(--bhm-profile-surface);
}
.bhm-profile-logo { padding: 4px 0 24px; }
.bhm-profile-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto !important;
  max-height: 120px;
  margin: 0;
  object-fit: contain;
}
.bhm-profile-logo--header { max-width: 220px; padding: 0 0 28px; }
.bhm-profile-logo--header img { max-height: 88px; }
.bhm-article-main .bhm-profile-info-title {
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid #d7d7d1;
  color: #20222a;
  font: 700 21px/1.3 var(--bhm-font);
  letter-spacing: -.02em;
}
.bhm-profile-info {
  color: #3b434c;
  font: 400 15px/1.75 var(--bhm-font);
  overflow-wrap: anywhere;
}
.bhm-profile-info p { margin: 0 0 1em; font: inherit; }
.bhm-profile-info > :last-child { margin-bottom: 0; }
.bhm-profile-info a { color: var(--bhm-dark-red, #9f1d24); text-decoration: underline; text-underline-offset: .2em; }
.bhm-profile-info a:hover { text-decoration-thickness: 2px; }
.bhm-editorial .bhm-profile-info-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 14px; color: var(--bhm-dark-red, #9f1d24); font: 650 15px/1.5 var(--bhm-font); text-decoration: underline; text-underline-offset: 4px; }
.bhm-editorial .bhm-profile-info-link:hover { text-decoration-thickness: 2px; }
.bhm-profile-info-title { scroll-margin-top: 110px; }
.bhm-profile-info :is(h2, h3, h4, h5, h6) { margin: 1.25em 0 .5em; font: 700 17px/1.45 var(--bhm-font); }
.bhm-profile-info :is(ul, ol) { margin: 0 0 1em; padding-left: 1.25em; }
.bhm-profile-info li { margin-bottom: .5em; }
.bhm-profile-info :is(img, figure, .wp-caption) { max-width: 100% !important; height: auto !important; margin-inline: 0; }
.bhm-profile-info :is(video, audio, iframe, object, embed) { max-width: 100% !important; }
.bhm-profile-info video { height: auto !important; }
.bhm-profile-info :is(table, pre) { display: block; max-width: 100%; overflow: auto; }
.bhm-profile-info :is(p, div, ul, ol, table, pre, figure)[style] { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
.bhm-profile-info :is(p, li, span, div)[style*="font"] { font: inherit !important; }
.bhm-profile-info :is(p, li, span, div)[style*="line-height"] { line-height: inherit !important; }
.bhm-profile :is(a, button):focus-visible { outline: 3px solid #b51d28; outline-offset: 4px; }
@media (max-width: 959px) {
  .bhm-profile-hero--media { grid-template-columns: minmax(0, 1fr); }
  .bhm-profile-header { padding: 30px; }
  .bhm-profile-media { padding: 0 30px 30px; }
  .bhm-profile-media .bhm-article-media img,
  .bhm-profile-hero--portrait .bhm-profile-media .bhm-article-media img { max-height: 540px; }
  .bhm-profile-layout--sidebar { grid-template-columns: minmax(0, 1fr); }
  .bhm-profile-sidebar { width: 100%; max-width: 780px; margin: 0 auto; }
  .bhm-profile-card { padding: 26px 30px; }
}
@media (max-width: 599px) {
  .bhm-profile-hero { margin-bottom: 30px; }
  .bhm-profile-header { padding: 24px 20px; }
  .bhm-profile-hero--text .bhm-profile-header { padding: 28px 20px; }
  .bhm-article-main .bhm-profile-title { font-size: clamp(34px, 9vw, 46px); line-height: 1.08; }
  .bhm-profile-kicker { margin-bottom: 16px; font-size: 11px; }
  .bhm-profile-standfirst { margin-top: 18px; font-size: 18px; line-height: 1.6; }
  .bhm-profile-media { padding: 0 20px 24px; }
  .bhm-profile-media .bhm-reader-gallery__label { right: 8px; bottom: 8px; padding: 6px 9px; font-size: 12px; }
  .bhm-profile-media .bhm-editorial-video { padding: 20px; }
  .bhm-profile-layout { gap: 30px; }
  .bhm-article-main .post-article.bhm-profile-prose { font-size: 17px; line-height: 1.75; }
  .bhm-profile-card { padding: 24px 20px; }
  .bhm-profile-logo--header { padding-bottom: 24px; }
}
@media print {
  .bhm-profile-hero,
  .bhm-profile-layout { display: block; border: 0; background: transparent; }
  .bhm-profile-header,
  .bhm-profile-hero--text .bhm-profile-header { padding: 0 0 24px; }
  .bhm-profile-media { max-width: 650px; padding: 0 0 24px; }
  .bhm-profile-media .bhm-article-media img,
  .bhm-profile-hero--portrait .bhm-profile-media .bhm-article-media img { max-height: 380px; }
  .bhm-profile-sidebar { margin-top: 28px; }
  .bhm-article-main .post-article.bhm-profile-prose { font-size: 12pt; line-height: 1.6; }
  .bhm-profile-card { border: 1px solid #bbb; background: transparent; break-inside: avoid; }
}

/* Royal British Legion client profile; scoped to its dedicated presentation. */
.bhm-rbl-profile { --bhm-rbl-surface: #f6f3eb; --bhm-rbl-line: #dcd9d1; }
.bhm-rbl-profile .bhm-profile-hero { margin-bottom: 0; background: var(--bhm-rbl-surface); }
.bhm-rbl-profile .bhm-rbl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; }
.bhm-rbl-profile .bhm-rbl-button,
.bhm-rbl-profile .bhm-rbl-text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 46px; font: 700 15px/1.5 var(--bhm-font); text-decoration: none; }
.bhm-rbl-profile .bhm-rbl-button { padding: 12px 20px; border: 1px solid var(--bhm-dark-red, #9f1d24); background: var(--bhm-dark-red, #9f1d24); color: #fff; }
.bhm-rbl-profile .bhm-rbl-button:hover { background: #791727; border-color: #791727; color: #fff; }
.bhm-rbl-profile .bhm-rbl-text-link { padding-block: 8px; color: var(--bhm-dark-red, #9f1d24); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.bhm-rbl-profile .bhm-rbl-text-link:hover { text-decoration-thickness: 2px; }
.bhm-rbl-profile .bhm-rbl-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; padding: 20px 0; margin-bottom: 46px; border-bottom: 1px solid var(--bhm-rbl-line); }
.bhm-rbl-profile .bhm-rbl-nav > span { margin-right: auto; color: #272727; font: 700 14px/1.5 var(--bhm-font); }
.bhm-rbl-profile .bhm-rbl-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #424640; font: 500 14px/1.5 var(--bhm-font); text-decoration: none; }
.bhm-rbl-profile .bhm-rbl-nav a:hover { color: var(--bhm-dark-red, #9f1d24); text-decoration: underline; text-underline-offset: 4px; }
.bhm-rbl-profile .bhm-rbl-introduction { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 340px); align-items: start; gap: clamp(32px, 5vw, 72px); }
.bhm-rbl-profile .bhm-rbl-section { min-width: 0; }
.bhm-rbl-profile .bhm-rbl-eyebrow { display: block; margin: 0 0 14px; color: var(--bhm-dark-red, #9f1d24); font: 700 11px/1.6 var(--bhm-font); letter-spacing: .1em; text-transform: uppercase; }
.bhm-article-main .bhm-rbl-profile h2 { margin: 0 0 24px; color: #20221f; font: 400 clamp(28px, 3vw, 42px)/1.18 var(--bhm-display, Georgia, serif); letter-spacing: -.02em; text-wrap: balance; }
.bhm-rbl-profile :is(h2, .bhm-rbl-support) { scroll-margin-top: 110px; }
.bhm-rbl-profile .bhm-rbl-prose { max-width: 780px; color: #414740; font: 400 17px/1.8 var(--bhm-font); overflow-wrap: anywhere; }
.bhm-rbl-profile .bhm-rbl-prose p { margin: 0 0 1.1em; font: inherit; }
.bhm-rbl-profile .bhm-rbl-prose > :last-child { margin-bottom: 0; }
.bhm-rbl-profile .bhm-rbl-prose a { color: var(--bhm-dark-red, #9f1d24); text-decoration: underline; text-underline-offset: .18em; }
.bhm-rbl-profile .bhm-rbl-prose :is(h3, h4, h5, h6) { margin: 24px 0 14px; font: 700 20px/1.4 var(--bhm-font); }
.bhm-rbl-profile .bhm-rbl-support { padding: 28px; border-top: 3px solid var(--bhm-dark-red, #9f1d24); background: var(--bhm-rbl-surface); }
.bhm-rbl-profile .bhm-rbl-support .bhm-profile-logo { max-width: 180px; }
.bhm-rbl-profile .bhm-rbl-support h2 { font-size: 32px; margin-bottom: 20px; }
.bhm-rbl-profile .bhm-rbl-actions--stacked { align-items: stretch; flex-direction: column; gap: 12px; }
.bhm-rbl-profile .bhm-rbl-actions--stacked .bhm-rbl-text-link { font-size: 14px; }
.bhm-rbl-profile .bhm-rbl-films { margin-top: 52px; padding-top: 38px; border-top: 1px solid var(--bhm-rbl-line); }
.bhm-rbl-profile .bhm-rbl-section-intro { max-width: 760px; margin: -8px 0 26px; color: #535950; font: 400 17px/1.7 var(--bhm-font); }
.bhm-rbl-profile .bhm-rbl-featured-film { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin: 0 0 24px; border: 1px solid var(--bhm-rbl-line); background: var(--bhm-rbl-surface); color: #20221f; text-decoration: none; }
.bhm-rbl-profile .bhm-rbl-featured-film__image { position: relative; align-self: center; display: block; min-width: 0; }
.bhm-rbl-profile .bhm-rbl-featured-film__image img { display: block; width: 100%; height: auto; margin: 0; }
.bhm-rbl-profile .bhm-rbl-play { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 42px; height: 42px; padding-left: 3px; border: 1px solid currentColor; border-radius: 50%; color: var(--bhm-dark-red, #9f1d24); font-size: 14px; }
.bhm-rbl-profile .bhm-rbl-featured-film__image .bhm-rbl-play { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .7); color: #fff; }
.bhm-rbl-profile .bhm-rbl-featured-film__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; min-width: 0; padding: clamp(24px, 3vw, 42px); font: 400 16px/1.65 var(--bhm-font); }
.bhm-rbl-profile .bhm-rbl-featured-film__copy .bhm-rbl-eyebrow { margin: 0; }
.bhm-rbl-profile .bhm-rbl-featured-film__title { font: 400 clamp(28px, 2.6vw, 38px)/1.2 var(--bhm-display, Georgia, serif); }
.bhm-rbl-profile .bhm-rbl-film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.bhm-rbl-profile .bhm-rbl-film-grid li { min-width: 0; margin: 0; padding: 0; }
.bhm-rbl-profile .bhm-rbl-film { display: flex; flex-direction: column; gap: 20px; height: 100%; min-width: 0; padding: 26px; border: 1px solid var(--bhm-rbl-line); border-top: 3px solid var(--bhm-dark-red, #9f1d24); color: #20221f; text-decoration: none; transition: background-color .15s ease; }
.bhm-rbl-profile .bhm-rbl-film:hover,
.bhm-rbl-profile .bhm-rbl-featured-film:hover { background: #eeebe2; }
.bhm-rbl-profile .bhm-rbl-film-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bhm-rbl-profile .bhm-rbl-film-top .bhm-rbl-eyebrow { margin: 0; }
.bhm-article-main .bhm-rbl-profile .bhm-rbl-film h3 { margin: 0; color: inherit; font: 600 22px/1.35 var(--bhm-font); letter-spacing: -.02em; overflow-wrap: break-word; }
.bhm-rbl-profile .bhm-rbl-film-action { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; color: var(--bhm-dark-red, #9f1d24); font: 700 14px/1.5 var(--bhm-font); text-decoration: underline; text-underline-offset: 4px; }
.bhm-rbl-profile .bhm-rbl-careers { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 52px); align-items: center; margin-top: 52px; padding: clamp(24px, 3vw, 44px); background: var(--bhm-rbl-surface); }
.bhm-rbl-profile .bhm-rbl-careers__person,
.bhm-rbl-profile .bhm-rbl-careers__copy { min-width: 0; }
.bhm-rbl-profile .bhm-rbl-careers__person :is(figure, .wp-caption) { width: auto !important; max-width: 100%; margin: 0; }
.bhm-rbl-profile .bhm-rbl-careers__person img { display: block; width: 100%; max-width: 100%; height: auto !important; margin: 0; }
.bhm-rbl-profile .bhm-rbl-careers__person :is(p, figcaption, .wp-caption-text, .bhm-rbl-person-title) { margin: 12px 0 0; color: #535950; font: 400 13px/1.65 var(--bhm-font); }
.bhm-rbl-profile .bhm-rbl-careers__person .wp-caption + .bhm-rbl-person-title { display: none; }
.bhm-rbl-profile .bhm-rbl-continue { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-top: 42px; padding: 32px 0; border-top: 1px solid var(--bhm-rbl-line); border-bottom: 1px solid var(--bhm-rbl-line); }
.bhm-rbl-profile .bhm-rbl-continue h2 { font-size: clamp(27px, 2.5vw, 34px); margin-bottom: 12px; }
.bhm-rbl-profile .bhm-rbl-continue p:not(.bhm-rbl-eyebrow) { max-width: 760px; margin: 0; font: 400 16px/1.7 var(--bhm-font); color: #535950; }
@media (max-width: 959px) {
  .bhm-rbl-profile .bhm-rbl-introduction { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .bhm-rbl-profile .bhm-rbl-nav { margin-bottom: 34px; gap: 4px 24px; }
  .bhm-rbl-profile .bhm-rbl-nav > span { flex-basis: 100%; }
  .bhm-rbl-profile .bhm-rbl-film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bhm-rbl-profile .bhm-rbl-featured-film { grid-template-columns: minmax(0, 1fr); }
  .bhm-rbl-profile .bhm-rbl-careers { grid-template-columns: minmax(0, 1fr); }
  .bhm-rbl-profile .bhm-rbl-careers__person { max-width: 600px; }
  .bhm-rbl-profile .bhm-rbl-continue { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bhm-rbl-profile .bhm-rbl-continue > a { justify-self: start; }
}
@media (max-width: 599px) {
  .bhm-rbl-profile .bhm-rbl-film-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bhm-rbl-profile .bhm-rbl-film { padding: 22px; gap: 14px; }
  .bhm-rbl-profile .bhm-rbl-films { margin-top: 34px; padding-top: 28px; }
  .bhm-rbl-profile .bhm-rbl-careers { margin-top: 34px; padding: 22px; }
  .bhm-rbl-profile .bhm-rbl-support { padding: 24px 22px; }
  .bhm-rbl-profile .bhm-rbl-prose { font-size: 17px; line-height: 1.75; }
  .bhm-rbl-profile .bhm-rbl-nav { gap: 0 20px; }
}
@media print {
  .bhm-rbl-profile .bhm-rbl-nav,
  .bhm-rbl-profile .bhm-rbl-play { display: none; }
  .bhm-rbl-profile .bhm-rbl-introduction,
  .bhm-rbl-profile .bhm-rbl-careers { display: block; }
  .bhm-rbl-profile .bhm-rbl-support { margin-top: 24px; }
  .bhm-rbl-profile .bhm-rbl-film { break-inside: avoid; }
}
