/* AIN4 section placement. Component geometry and states come from the DS packages. */
.ain4-bh-section .ain4-bh-entry {
  margin-top: 0;
}

.ain4-bh-section .sec-head > h2 {
  margin: 0;
}

.ain4-bh-section .ain4-bh-layout {
  align-items: start;
  row-gap: var(--grid-gap);
}

.ain4-bh-layout > *,
.ain4-bh-rows li > div {
  min-width: 0;
}

.ain4-bh-span-3 { grid-column: span 3; }
.ain4-bh-span-4 { grid-column: span 4; }
.ain4-bh-span-5 { grid-column: span 5; }

.ain4-bh-copy {
  font-size: var(--type-16);
  line-height: var(--leading-body);
}

.ain4-bh-copy p {
  margin: 0 0 14px;
}

.ain4-bh-copy p:last-child {
  margin-bottom: 0;
}

.ain4-bh-section .sec-headline {
  margin: 0 0 24px;
  font-size: var(--type-44);
  line-height: 1.10;
  letter-spacing: var(--tracking-heading);
  font-weight: var(--weight-medium);
  text-wrap: balance;
}

.ain4-bh-compact {
  font-size: var(--type-18);
  font-weight: var(--weight-medium);
  line-height: var(--leading-card);
  margin: 0 0 12px;
}

.ain4-bh-middle {
  align-self: center;
}

.ain4-bh-meta {
  font-size: var(--type-13);
  line-height: var(--leading-small);
  color: #555;
}

.ain4-bh-action {
  margin-top: 24px;
}

.ain4-bh-action.ms-site .btn,
.ain4-bh-action.ms-site .product-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  max-width: 100%;
  overflow-wrap: normal;
  white-space: normal;
}

.ain4-bh-section .ain4-bh-rows {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.ain4-bh-section .ain4-bh-rows--first {
  margin-top: 0;
}

.ain4-bh-rows .ms-row--approach {
  grid-template-columns: 48px minmax(0, 1fr);
}

.ain4-bh-rows .ms-row h3,
.ain4-bh-host .team-member h3 {
  margin: 0 0 2px;
  font-size: var(--type-14);
  font-weight: var(--weight-medium);
  line-height: var(--leading-card);
}

.ain4-bh-rows .ms-row p,
.ain4-bh-disclosures .ms-details__body p {
  margin: 0;
}

.ain4-bh-section .ain4-bh-host {
  margin-top: 0;
}

.ain4-bh-host > .team-member {
  grid-column: 1 / -1;
}

.ain4-bh-host .team-member h3 {
  margin: 6px 0 5px;
}

.ain4-bh-disclosures .ms-details:first-child {
  margin-top: 0;
}

.ain4-bh-disclosures .ms-details + .ms-details {
  margin-top: 0;
}

.ain4-bh-disclosures .ms-details__body {
  padding: 0 2px 14px 30px;
  font-size: var(--type-14);
  line-height: var(--leading-body);
}

.ain4-bh-disclosures summary b {
  flex: 1;
  min-width: 0;
}

.ain4-bh-section .ain4-bh-lab-card {
  grid-template-columns: minmax(0, 1fr);
}

.ain4-bh-scene {
  grid-column: span 4;
}

.ain4-bh-scene > li {
  grid-column: 1 / -1;
}

.ain4-bh-section .ain4-bh-morph {
  display: grid;
  align-content: center;
  justify-items: start;
}

.ain4-bh-morph .program-card__morph {
  width: 136px;
  height: 128px;
}

@media (max-width: 700px) {
  .ain4-bh-section .ain4-bh-layout > * {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .ain4-bh-section .sec-headline {
    font-size: var(--type-32);
  }

  .ain4-bh-rows .ms-row--approach {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 14px;
  }
}

/* Match the source's readable secondary ink where the metadata carries event facts. */
.ain4-bh-entry .sec-head .num:not(:first-child),
.ain4-bh-rows .ms-row__key,
.ain4-bh-host .team-role,
.ain4-bh-lab-card .ms-lab-card__meta {
  color: #555;
}

.ain4-bh-program .ain4-bh-meta > * {
  display: block;
}

/* The donor releases offscreen canvas buffers at 1×1. Keep its CSS surface visible
   until the full canvas is ready so the dark platform label never sits on black. */
.ain4-bh-scene canvas[width="1"],
.ain4-bh-scene canvas[height="1"] {
  visibility: hidden;
}

/* Back-half records own their columns; the generic page grid spans every child. */
#page .ain4-grid.ain4-bh-layout > .ain4-bh-span-3{grid-column:span 3}
#page .ain4-grid.ain4-bh-layout > .ain4-bh-span-4{grid-column:span 4}
#page .ain4-grid.ain4-bh-layout > .ain4-bh-span-5{grid-column:span 5}
#page .ain4-grid.ain4-bh-layout > .ain4-bh-span-8{grid-column:1/-1}
#page .ain4-bh-copy{min-width:0}
#page .ain4-bh-copy > p{max-width:62ch}

#page .ain4-bh-outcomes .ain4-bh-copy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 40px;align-items:start}
#page .ain4-bh-outcomes .ain4-bh-copy > :not(.ain4-case-record){grid-column:1/-1}
#page .ain4-bh-outcomes .ain4-bh-copy > .sec-headline{margin-bottom:0}
#page .ain4-bh-outcomes .ain4-bh-copy > p{margin-bottom:0}
#page .ain4-bh-outcomes .ain4-case-record{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;padding:24px 0 0;border-top:1px solid var(--hair);margin:0}
#page .ain4-bh-outcomes .ain4-case-record.has-portrait{grid-template-columns:minmax(0,1fr) 64px}
#page .ain4-bh-outcomes .ain4-case-record > *{min-width:0}
#page .ain4-bh-outcomes .ain4-case-record:first-of-type{margin-top:0}
#page .ain4-case-metric-title{font-size:var(--type-32);font-weight:500;line-height:1.12;letter-spacing:var(--tracking-heading);margin:0 0 10px;max-width:none;text-wrap:balance}
#page .ain4-case-qualifier{font-size:var(--type-14);line-height:var(--leading-body);max-width:27ch;margin:0}
#page .ain4-case-story,#page .ain4-case-record:not(.has-portrait) .ain4-case-story{grid-column:1/-1;max-width:68ch}
#page .ain4-case-story blockquote{font-size:var(--type-16);font-weight:400;line-height:1.55;margin:0 0 12px;padding:0;border:0;max-width:52ch}
#page .ain4-case-story p{font-size:var(--type-14);line-height:var(--leading-body);margin:0 0 10px}
#page .ain4-case-story p:last-child{margin-bottom:0}
#page .ain4-case-story .ain4-source{min-height:44px}
#page .ain4-case-photo{margin:0;grid-column:2;grid-row:1}
#page .ain4-case-photo img{display:block;width:64px;height:76px;object-fit:cover;object-position:50% 30%}

#page .ain4-bh-practice .ain4-bh-layout{column-gap:clamp(32px,4vw,64px);row-gap:32px}
#page .ain4-bh-practice .ain4-bh-copy > p{max-width:58ch}
#page .ain4-bh-practice .sec-headline{max-width:24ch}
#page .ain4-bh-practice aside{padding-top:8px;min-width:0}
#page .ain4-practice-response{display:grid;justify-items:start;gap:16px;margin-top:28px;max-width:100%}
#page .ain4-bh-practice .ain4-practice-response .ain4-bh-action{margin-top:0;max-width:100%;background:transparent;padding:0}
#page .ain4-bh-practice .ain4-practice-caveat{font-size:var(--type-14);line-height:1.6;max-width:46ch;margin:0}
#page .ain4-bh-practice .ain4-bh-action .btn{max-width:100%;text-align:center}

#page .ain4-host-record{display:grid;grid-template-columns:84px minmax(0,1fr);gap:20px;align-items:center}
#page .ain4-host-photo{width:84px;height:100px;object-fit:cover;object-position:50% 25%;display:block}
#page .ain4-host-record > div{min-width:0}
#page .ain4-host-record h4{font-size:var(--type-16);line-height:1.4;font-weight:500;margin:0 0 8px}
#page .ain4-host-record p{font-size:var(--type-14);line-height:1.6;margin:0}
#page .ain4-sprint-visual{min-width:0;padding-top:8px}
#page .ain4-sprint-preview{display:block;border:1px solid var(--hair);background:#101314;max-width:100%}
#page .ain4-sprint-preview img{display:block;width:100%;height:auto;aspect-ratio:1440/900;object-fit:contain}
#page .ain4-sprint-preview:focus-visible{outline:2px solid var(--ain4-cyan);outline-offset:6px}
@media(max-width:1000px){
 #page .ain4-bh-outcomes .ain4-bh-copy{column-gap:28px}
 #page .ain4-host-record{grid-template-columns:72px minmax(0,1fr);gap:14px}
 #page .ain4-host-photo{width:72px;height:88px}
}
@media(max-width:900px){
 #page .ain4-grid.ain4-bh-layout > .ain4-bh-span-3,#page .ain4-grid.ain4-bh-layout > .ain4-bh-span-4,#page .ain4-grid.ain4-bh-layout > .ain4-bh-span-5{grid-column:1/-1}
 #page .ain4-bh-practice aside{padding-top:0;max-width:620px}
 #page .ain4-sprint-visual{max-width:620px;padding-top:0}
}
@media(max-width:700px){
 #page .ain4-bh-outcomes .ain4-bh-copy{grid-template-columns:minmax(0,1fr);row-gap:24px}
 #page .ain4-bh-outcomes .ain4-case-record{gap:16px;padding:20px 0 0}
 #page .ain4-case-record .ain4-case-metric{grid-column:1/-1}
 #page .ain4-case-record.has-portrait .ain4-case-metric{grid-column:1}
 #page .ain4-case-record .ain4-case-story,#page .ain4-case-record:not(.has-portrait) .ain4-case-story{grid-column:1/-1}
 #page .ain4-case-photo{grid-column:2;grid-row:1}
 #page .ain4-case-photo img{width:64px;height:76px}
 #page .ain4-case-metric-title{font-size:var(--type-24);max-width:none;margin-bottom:10px}
 #page .ain4-case-qualifier{max-width:42ch}
 #page .ain4-case-story blockquote{font-size:var(--type-16);margin-bottom:12px}
 #page .ain4-practice-response{gap:14px;margin-top:24px}
 #page .ain4-host-record{grid-template-columns:84px minmax(0,1fr)}
 #page .ain4-host-photo{width:84px;height:100px}
}
#page .ain4-case-qualifier{font-size:var(--type-16)}
#page .ain4-case-story p{font-size:var(--type-16)}
@media(max-width:640px){#page .ain4-bh-section .sec-headline{font-size:var(--type-32);line-height:1.15;max-width:none}}
#page .ain4-bh-copy > p{margin:0 0 16px}
#page .ain4-bh-copy > p:last-child{margin-bottom:0}
#page .ain4-bh-practice .ain4-bh-copy > p+p{margin-top:0}

/* FAQ: preserve native disclosure and accent keyboard focus within the reading column. */
#page #faq .ms-details > summary:not(:focus-visible){outline:none;box-shadow:none}
#page #faq .ms-details > summary:focus-visible{outline:2px solid #0e8aa0;outline-offset:4px;box-shadow:none}
#page #faq .ms-details__body p{max-width:62ch}
#page #faq .ms-row{grid-template-columns:minmax(0,1fr)}

#page #faq .ms-details > summary b{flex:1;min-width:0}

/* The static landing preview is one full-area navigation link. */
#page #sprint .ain4-sprint-preview{cursor:pointer}
#page #sprint .ain4-sprint-preview img{pointer-events:none;user-select:none}
#page #sprint .ain4-sprint-preview:focus-visible{border:0;padding:1px;outline:2px solid var(--ain4-cyan-pale);outline-offset:0;box-shadow:none}
