/* bi-modernization
 *
 * Reusable capability-detail section, second of the capability family that hangs off
 * `capability-menu`. Same rail-and-spine construction as `ai-ready-foundation`, so the
 * two sections read as one narrative; the content is a numbered service menu where each
 * path carries either an active deeper link or a muted support label.
 * Approved as a new library template candidate (manifest section `bi-modernization`).
 * Depends on: css/tokens.css, assets-premium/fonts/fonts.css.
 *
 * Page-owner directed exceptions 2026-09-21:
 *  - section padding 120px, 56px between the title block and the section content;
 *  - large rail numeral that ties the section back to the capability menu index.
 */

.bi-modernization,
.bi-modernization *{box-sizing:border-box}

.bi-modernization{
  scroll-margin-top:var(--hdr-h);
  width:100%;
  padding-block:clamp(72px,10vw,120px);
  border-top:1px solid var(--rule);
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
}

/* Content-ruler compliance: the title block spans both columns so the kicker, H2, and
 * lede start on the shared shell ruler. Only the rail numeral and the section body sit
 * in the rail grid, so the numeral spine costs no title indent. */
.bi-modernization__in{
  width:var(--shell);
  margin:0 auto;
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:56px clamp(20px,3vw,44px);
  align-items:start;
}
.bi-modernization__head{grid-column:1 / -1}
.bi-modernization__rail{grid-column:1;grid-row:2}
.bi-modernization__body{grid-column:2;grid-row:2;min-width:0}

.bi-modernization__rail{
  display:flex;
  flex-direction:column;
  gap:20px;
  align-self:stretch;
}
.bi-modernization__rail-index{
  font-family:var(--display);
  font-weight:var(--display-weight);
  font-size:clamp(66px,7vw,104px);
  line-height:.82;
  letter-spacing:-.01em;
  color:var(--gold);
}
.bi-modernization__rail-line{
  flex:1 1 auto;
  width:1px;
  min-height:60px;
  background:linear-gradient(180deg,var(--gold),rgba(212,175,55,.12));
}

.bi-modernization__head{display:flex;flex-direction:column;gap:18px}
.bi-modernization__kicker{color:var(--bronze)}
.bi-modernization__title{color:var(--deep)}
.bi-modernization__lede{color:var(--grey-mid)}

.bi-modernization__paths{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  background:var(--rule);
  border:1px solid var(--rule);
}

.bi-modernization__path{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:32px 30px 30px;
  background:var(--paper);
  color:inherit;
  transition:background .25s var(--ease);
}
.bi-modernization__path--link:hover,
.bi-modernization__path--link:focus-visible{background:var(--gold-10)}
.bi-modernization__path-index{color:var(--gold)}
.bi-modernization__path-title{color:var(--deep)}
.bi-modernization__path-copy{color:var(--grey-mid);flex:1 1 auto}
.bi-modernization__path-cta{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-top:8px;
  padding-bottom:5px;
  border-bottom:1px solid var(--gold);
  align-self:flex-start;
  color:var(--deep);
  transition:gap .2s var(--ease);
}
.bi-modernization__path--link:hover .bi-modernization__path-cta,
.bi-modernization__path--link:focus-visible .bi-modernization__path-cta{gap:15px}
.bi-modernization__path-label{
  margin-top:8px;
  align-self:flex-start;
  padding:7px 11px;
  background:var(--sage-04);
  border:1px solid var(--rule);
  color:var(--grey-mid);
}

@media (max-width:900px){
  .bi-modernization__in{grid-template-columns:96px minmax(0,1fr)}
  .bi-modernization__rail-index{font-size:clamp(52px,12vw,72px)}
  .bi-modernization__paths{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:620px){
  .bi-modernization__in{grid-template-columns:minmax(0,1fr);gap:40px}
  .bi-modernization__rail{grid-column:1;grid-row:auto}
  .bi-modernization__body{grid-column:1;grid-row:auto}
  .bi-modernization__rail-line{display:none}
  .bi-modernization__path{padding:28px 22px}
}
@media (prefers-reduced-motion:reduce){
  .bi-modernization__path,.bi-modernization__path-cta{transition:none}
}

/* Template title standard: section H2 */
[data-section="bi-modernization"][data-section="bi-modernization"] h2,
.bi-modernization.bi-modernization h2{
  font-size:50px !important;
  font-weight:500 !important;
  line-height:var(--lh-tight) !important;
  overflow-wrap:anywhere;
}

/* Title/description stack standard: main title stacks above description at 75% content width. */
[data-section="bi-modernization"] .bi-modernization__title,
[data-section="bi-modernization"] .bi-modernization__lede{
  width:var(--title-description-width) !important;
  max-width:var(--title-description-width) !important;
  margin-left:0 !important;
  margin-right:auto !important;
}
