/* Partner careers pages: native profiles, their own content and useful links. */
.bhm-careers-stories-heading {
  margin: 12px 0 26px;
  color: var(--bhm-ink, #222);
  font: 400 clamp(28px, 3vw, 38px)/1.2 var(--bhm-display, Georgia, serif);
  letter-spacing: -.015em;
}
.bhm-careers-profile,
.bhm-careers-hub {
  --bhm-careers-ink: #222222;
  --bhm-careers-muted: #565b60;
  --bhm-careers-paper: #f6f3ec;
  --bhm-careers-line: #ddd8cf;
  --bhm-careers-red: var(--bhm-dark-red, #951b24);
  min-width: 0;
  color: var(--bhm-careers-ink);
  font-family: var(--bhm-font, Arial, sans-serif);
}
.bhm-careers-profile *,
.bhm-careers-hub * { box-sizing: border-box; }
.bhm-careers-hub { margin: 0 0 36px; padding: 0 0 36px; border-bottom: 1px solid var(--bhm-careers-line); }
.bhm-careers-directory { container: bhm-careers-directory / inline-size; }
.bhm-careers-eyebrow {
  margin: 0 0 18px;
  color: var(--bhm-careers-red);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.bhm-careers-eyebrow a { color: inherit; text-decoration: none; }
.bhm-careers-eyebrow a:hover { text-decoration: underline; text-underline-offset: .25em; }
.bhm-careers-hero {
  display: grid;
  align-items: center;
  gap: 40px;
  padding: clamp(28px, 3.6vw, 50px);
  margin-bottom: 44px;
  border-top: 3px solid var(--bhm-red, #c51e26);
  background: var(--bhm-careers-paper);
}
.bhm-careers-hero--logo { grid-template-columns: minmax(0, 1fr) minmax(190px, 260px); }
.bhm-careers-hero-copy { min-width: 0; }
.bhm-careers-profile .bhm-careers-title {
  margin: 0;
  color: var(--bhm-careers-ink);
  font-family: var(--bhm-display, Georgia, serif);
  font-size: clamp(40px, 4.8vw, 68px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.bhm-careers-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--bhm-careers-muted);
  font-size: 13px;
  line-height: 1.5;
}
.bhm-careers-meta li { margin: 0; }
.bhm-careers-meta li + li { margin-left: 16px; padding-left: 16px; border-left: 1px solid #c7c0b5; }
.bhm-careers-intro {
  max-width: 44em;
  margin: 24px 0 0;
  color: #434950;
  font-size: 19px;
  line-height: 1.7;
  text-wrap: pretty;
}
.bhm-careers-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.bhm-careers-profile .bhm-careers-button,
.bhm-careers-hub .bhm-careers-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  max-width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--bhm-careers-red);
  border-radius: 0;
  color: #fff;
  background: var(--bhm-careers-red);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.bhm-careers-profile .bhm-careers-button:hover,
.bhm-careers-hub .bhm-careers-button:hover { color: #fff; background: #76151d; border-color: #76151d; }
.bhm-careers-profile .bhm-careers-text-link,
.bhm-careers-hub .bhm-careers-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 0;
  color: var(--bhm-careers-red);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
  overflow-wrap: anywhere;
}
.bhm-careers-profile .bhm-careers-text-link:hover,
.bhm-careers-hub .bhm-careers-text-link:hover { color: #76151d; text-decoration-thickness: 2px; }
.bhm-careers-button > [aria-hidden],
.bhm-careers-text-link > [aria-hidden] { flex: 0 0 auto; font-size: 19px; line-height: 1; }
.bhm-careers-hero-brand { min-width: 0; padding: 28px 22px; border: 1px solid #e5e0d6; background: #fff; }
.bhm-careers-logo { display: flex; align-items: center; justify-content: center; min-height: 140px; }
.bhm-careers-logo img,
.bhm-careers-card-brand img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 150px;
  height: auto !important;
  margin: 0;
  object-fit: contain;
}
.bhm-careers-profile[data-bhm-career="manchester"] .bhm-careers-logo img,
.bhm-careers-card[data-bhm-career="manchester"] .bhm-careers-card-brand img { max-width: min(100%, 206px); }
.bhm-careers-layout { display: grid; grid-template-columns: minmax(0, 780px); justify-content: center; align-items: start; gap: 44px; }
.bhm-careers-layout--sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); }
.bhm-careers-main,
.bhm-careers-sidebar { min-width: 0; }
.bhm-careers-profile .post-article.bhm-careers-prose {
  float: none;
  width: 100%;
  max-width: 780px;
  margin: 0;
  color: #353b42;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.bhm-careers-prose > :first-child { margin-top: 0; }
.bhm-careers-prose > :last-child { margin-bottom: 0; }
.bhm-careers-story { min-width: 0; }
.bhm-careers-story--separated { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--bhm-careers-line); }
.bhm-careers-profile .bhm-careers-section-title,
.bhm-careers-profile .bhm-careers-panel h2 {
  margin: 0 0 22px;
  color: var(--bhm-careers-ink);
  font-family: var(--bhm-display, Georgia, serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.bhm-careers-story-intro { max-width: 780px; margin: 0 0 24px; color: #434950; font-size: 19px; line-height: 1.7; }
.bhm-careers-story-intro p { font: inherit; }
.bhm-careers-story-intro > :first-child { margin-top: 0; }
.bhm-careers-story-intro > :last-child { margin-bottom: 0; }
.bhm-careers-media { min-width: 0; margin: 0 0 26px; }
.bhm-careers-media .bhm-article-media { display: block; float: none; width: 100%; max-width: none; margin: 0; padding: 0; }
.bhm-careers-media .bhm-article-media img { display: block; float: none; width: auto; max-width: 100%; max-height: 660px; height: auto !important; margin-inline: auto; object-fit: contain; }
.bhm-careers-media .bhm-reader-gallery { display: block; width: 100%; }
.bhm-careers-media :is(iframe, video, object, embed) { max-width: 100%; }
.bhm-careers-media figcaption,
.bhm-careers-credits { color: var(--bhm-careers-muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.bhm-careers-media figcaption { margin-top: 12px; }
.bhm-careers-credits { margin: -12px 0 24px; }
.bhm-careers-credits p { margin: 0; }
.bhm-careers-media .bhm-editorial-video { margin: 0; padding: 24px; border-left: 3px solid var(--bhm-careers-red); background: var(--bhm-careers-paper); overflow-wrap: anywhere; }
.bhm-careers-sidebar { display: grid; gap: 24px; }
.bhm-careers-panel { padding: 26px; border: 1px solid var(--bhm-careers-line); border-top: 3px solid var(--bhm-careers-red); background: var(--bhm-careers-paper); }
.bhm-careers-panel--information { background: #fff; border-top-width: 1px; }
.bhm-careers-profile .bhm-careers-panel h2 { font-size: 28px; }
.bhm-careers-role-list { margin: 0; padding: 0; list-style: none; }
.bhm-careers-role-list li { margin: 0; padding: 12px 0; border-top: 1px solid var(--bhm-careers-line); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.bhm-careers-role-list li:first-child { padding-top: 0; border-top: 0; }
.bhm-careers-panel-note { margin: 18px 0 8px; color: var(--bhm-careers-muted); font-size: 13px; line-height: 1.7; }
.bhm-careers-useful-info { color: #434950; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.bhm-careers-useful-info p { margin: 0 0 1em; font: inherit; }
.bhm-careers-useful-info > :first-child { margin-top: 0; }
.bhm-careers-useful-info > :last-child { margin-bottom: 0; }
.bhm-careers-useful-info :is(h2, h3, h4, h5, h6) { margin: 1.2em 0 .5em; font: 700 17px/1.4 var(--bhm-font, Arial, sans-serif); }
.bhm-careers-useful-info :is(ul, ol) { padding-left: 1.2em; }
.bhm-careers-useful-info a { color: var(--bhm-careers-red); text-decoration: underline; text-underline-offset: .2em; }
.bhm-careers-useful-info :is(img, figure, .wp-caption) { max-width: 100% !important; height: auto !important; margin-inline: 0; }
.bhm-careers-useful-info :is(video, audio, iframe, object, embed) { max-width: 100% !important; }
.bhm-careers-useful-info :is(table, pre) { display: block; max-width: 100%; overflow: auto; }
.bhm-careers-useful-info :is(p, li, span, div)[style*="font"] { font: inherit !important; }
.bhm-careers-information-links { margin: 22px 0 0; padding: 0; list-style: none; }
.bhm-careers-information-links:first-of-type { margin-top: 0; }
.bhm-careers-useful-info + .bhm-careers-information-links { margin-top: 22px; }
.bhm-careers-information-links li { margin: 0; border-top: 1px solid var(--bhm-careers-line); }
.bhm-careers-information-links a { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 48px; padding-block: 12px; color: var(--bhm-careers-red); font-size: 14px; font-weight: 650; line-height: 1.6; text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.bhm-careers-information-links [aria-hidden] { flex: 0 0 auto; }
.bhm-careers-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.bhm-careers-pagination > :is(a, span) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--bhm-careers-line); }
.bhm-careers-pagination > [aria-current="page"] { border-color: var(--bhm-careers-red); background: var(--bhm-careers-paper); font-weight: 700; }
.bhm-careers-hub-header { margin-bottom: 26px; }
.bhm-careers-hub .bhm-careers-hub-header h2 { margin: 0 0 14px; color: var(--bhm-careers-ink); font: 400 clamp(32px, 3.5vw, 44px)/1.12 var(--bhm-display, Georgia, serif); letter-spacing: -.02em; text-wrap: balance; }
.bhm-careers-hub-intro { max-width: 46em; margin: 0; color: #434950; font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.bhm-careers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 26px; }
.bhm-careers-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 3vw, 38px); border: 1px solid var(--bhm-careers-line); border-top: 3px solid var(--bhm-careers-red); background: #fff; }
.bhm-careers-directory .bhm-careers-card { padding: 24px; }
.bhm-careers-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; min-height: 100px; margin-bottom: 28px; }
.bhm-careers-card-brand { display: flex; align-items: center; width: 190px; max-width: 100%; min-height: 90px; }
.bhm-careers-card-brand img { max-height: 100px; }
.bhm-careers-card-meta { flex: 1 1 140px; margin: 0; padding: 0; list-style: none; color: var(--bhm-careers-muted); font-size: 12px; line-height: 1.65; text-align: right; }
.bhm-careers-card-meta li { margin: 0; }
.bhm-careers-card-meta li:first-child { color: var(--bhm-careers-red); font-weight: 700; }
.bhm-careers-hub .bhm-careers-card h3 { margin: 0 0 18px; color: var(--bhm-careers-ink); font: 400 30px/1.15 var(--bhm-display, Georgia, serif); letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; }
.bhm-careers-card-intro { margin: 0 0 28px; color: #4d535a; font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.bhm-careers-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--bhm-careers-line); }
.bhm-careers-discover { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; padding: 26px; border-top: 3px solid var(--bhm-red, #c51e26); background: #222428; color: #fff; }
.bhm-careers-discover > div { max-width: 700px; min-width: 0; }
.bhm-careers-discover .bhm-careers-eyebrow { color: #e4b6b9; }
.bhm-careers-hub .bhm-careers-discover h3 { margin: 0 0 10px; color: #fff; font: 400 30px/1.15 var(--bhm-display, Georgia, serif); letter-spacing: -.02em; text-wrap: balance; }
.bhm-careers-discover p:last-child { margin: 0; color: #e4e3e0; font-size: 16px; line-height: 1.7; }
.bhm-careers-hub .bhm-careers-button--light { flex: 0 0 auto; max-width: 340px; background: #fff; border-color: #fff; color: #222428; }
.bhm-careers-hub .bhm-careers-button--light:hover { background: #eee9df; border-color: #eee9df; color: #222428; }
.bhm-careers-profile :is(a, button, summary, input, select, textarea):focus-visible,
.bhm-careers-hub :is(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid var(--bhm-careers-red); outline-offset: 4px; }
.bhm-careers-discover .bhm-careers-button:focus-visible { outline-color: #fff; }

/* The Careers category keeps a sidebar: respond to its actual feed width. */
@container bhm-careers-directory (max-width: 620px) {
  .bhm-careers-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .bhm-careers-card-top { justify-content: flex-start; }
  .bhm-careers-card-meta { text-align: left; }
  .bhm-careers-card-actions { flex-direction: column; align-items: flex-start; }
  .bhm-careers-discover { flex-direction: column; align-items: flex-start; }
  .bhm-careers-hub .bhm-careers-button--light { flex-shrink: 1; max-width: 100%; }
}
@media (max-width: 699px) {
  .bhm-careers-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
}

@media (max-width: 1059px) {
  .bhm-careers-hero--logo { grid-template-columns: minmax(0, 1fr) 200px; gap: 28px; }
  .bhm-careers-hero-brand { padding: 24px 18px; }
  .bhm-careers-logo { min-height: 110px; }
  .bhm-careers-layout--sidebar { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
  .bhm-careers-panel { padding: 22px; }
  .bhm-careers-card-top { align-items: flex-start; gap: 16px; }
  .bhm-careers-card-meta { flex-basis: 100%; text-align: left; }
  .bhm-careers-card-actions { flex-direction: column; align-items: flex-start; }
  .bhm-careers-discover { align-items: flex-start; flex-direction: column; gap: 24px; }
}
@media (max-width: 799px) {
  .bhm-careers-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px; }
  .bhm-careers-hero-brand { grid-row: 1; width: min(240px, 100%); padding: 20px; }
  .bhm-careers-logo { min-height: 80px; }
  .bhm-careers-logo img { max-height: 100px; }
  .bhm-careers-layout--sidebar { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .bhm-careers-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .bhm-careers-sidebar > :only-child { grid-column: 1 / -1; }
  .bhm-careers-grid { gap: 20px; }
  .bhm-careers-card { padding: 24px; }
}
@media (max-width: 599px) {
  .bhm-careers-hub { margin-bottom: 28px; padding-bottom: 28px; }
  .bhm-careers-hero { gap: 24px; margin-bottom: 30px; padding: 24px 20px; }
  .bhm-careers-hero-brand { padding: 14px 18px; }
  .bhm-careers-profile .bhm-careers-title { font-size: clamp(34px, 9vw, 46px); line-height: 1.1; }
  .bhm-careers-eyebrow { margin-bottom: 14px; font-size: 10px; }
  .bhm-careers-meta { margin-top: 18px; font-size: 12px; }
  .bhm-careers-meta li + li { margin-left: 12px; padding-left: 12px; }
  .bhm-careers-intro { margin-top: 20px; font-size: 18px; line-height: 1.65; }
  .bhm-careers-actions { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 24px; }
  .bhm-careers-actions .bhm-careers-button { width: 100%; }
  .bhm-careers-profile .post-article.bhm-careers-prose { font-size: 17px; line-height: 1.75; }
  .bhm-careers-story--separated { margin-top: 30px; padding-top: 28px; }
  .bhm-careers-story-intro { font-size: 18px; line-height: 1.65; }
  .bhm-careers-sidebar { grid-template-columns: minmax(0, 1fr); }
  .bhm-careers-panel { padding: 24px; }
  .bhm-careers-hub-header { margin-bottom: 24px; }
  .bhm-careers-hub-intro { font-size: 17px; line-height: 1.65; }
  .bhm-careers-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .bhm-careers-card-top { margin-bottom: 24px; }
  .bhm-careers-card-meta { flex-basis: 130px; text-align: left; }
  .bhm-careers-hub .bhm-careers-card h3 { font-size: 30px; }
  .bhm-careers-card-actions { align-items: stretch; padding-top: 20px; }
  .bhm-careers-card-actions .bhm-careers-text-link { align-self: flex-start; }
  .bhm-careers-discover { gap: 22px; margin-top: 24px; padding: 24px; }
  .bhm-careers-hub .bhm-careers-button--light { width: 100%; max-width: 100%; }
}
@media print {
  .bhm-careers-hub { padding: 0; }
  .bhm-careers-hero,
  .bhm-careers-layout,
  .bhm-careers-hub-header { display: block; }
  .bhm-careers-hero,
  .bhm-careers-panel,
  .bhm-careers-discover { color: #222; background: #fff; border-color: #aaa; }
  .bhm-careers-hero { padding: 0 0 24px; border: 0; }
  .bhm-careers-hero-brand { max-width: 240px; margin-top: 24px; }
  .bhm-careers-sidebar { display: block; margin-top: 28px; }
  .bhm-careers-panel { margin-top: 20px; break-inside: avoid; }
  .bhm-careers-profile .post-article.bhm-careers-prose { font-size: 12pt; line-height: 1.6; }
  .bhm-careers-grid { display: block; }
  .bhm-careers-card { margin-bottom: 24px; break-inside: avoid; }
  .bhm-careers-hub .bhm-careers-discover h3,
  .bhm-careers-discover p:last-child,
  .bhm-careers-discover .bhm-careers-eyebrow { color: #222; }
}
