/* ai-ready-foundation
 *
 * Reusable capability-detail section, first of the capability family that hangs off
 * `capability-menu`. A left rail carries the menu numeral and a spine line so the
 * capability sections read as one continuous narrative; the right column carries the
 * capability head, the editorial intro, the work pillars, and one closing CTA strip.
 * Approved as a new library template candidate (manifest section `ai-ready-foundation`).
 * 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 (display type above --fs-content-index) that ties the section
 *    back to the capability menu index.
 */

.ai-ready-foundation,
.ai-ready-foundation *{box-sizing:border-box}

.ai-ready-foundation{
  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. */
.ai-ready-foundation__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;
}
.ai-ready-foundation__head{grid-column:1 / -1}
.ai-ready-foundation__rail{grid-column:1;grid-row:2}
.ai-ready-foundation__body{grid-column:2;grid-row:2;min-width:0}

.ai-ready-foundation__rail{
  display:flex;
  flex-direction:column;
  gap:20px;
  align-self:stretch;
}
.ai-ready-foundation__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);
}
.ai-ready-foundation__rail-line{
  flex:1 1 auto;
  width:1px;
  min-height:60px;
  background:linear-gradient(180deg,var(--gold),rgba(212,175,55,.12));
}

.ai-ready-foundation__head{display:flex;flex-direction:column;gap:18px}
.ai-ready-foundation__kicker{color:var(--bronze)}
.ai-ready-foundation__title{color:var(--deep)}
.ai-ready-foundation__lede{color:var(--grey-mid)}

.ai-ready-foundation__copy{
  display:flex;
  flex-direction:column;
  gap:18px;
  max-width:72ch;
  color:var(--grey-mid);
}

.ai-ready-foundation__pillars{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  margin-top:40px;
  background:var(--rule);
  border:1px solid var(--rule);
}
.ai-ready-foundation__pillar{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:30px 28px 32px;
  background:var(--paper);
}
.ai-ready-foundation__pillar-index{color:var(--gold)}
.ai-ready-foundation__pillar-title{color:var(--deep)}
.ai-ready-foundation__pillar-copy{color:var(--grey-mid)}

.ai-ready-foundation__close{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:clamp(20px,3vw,40px);
  margin-top:40px;
  padding:32px;
  background:var(--deep);
  border-top:3px solid var(--gold);
  color:var(--paper);
}
.ai-ready-foundation__close-copy{flex:1 1 34ch;min-width:0}
.ai-ready-foundation__close-title{
  font-family:var(--display);
  font-weight:var(--display-weight);
  font-size:var(--fs-content-card-title);
  line-height:var(--lh-tight);
  color:var(--paper);
  margin:0 0 10px;
}
.ai-ready-foundation__close-note{color:var(--on-sage);max-width:52ch}
.ai-ready-foundation__cta{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 26px;
  background:var(--gold);
  color:var(--cta-ink);
  transition:background 160ms var(--ease);
}
.ai-ready-foundation__cta:hover{background:var(--paper);color:var(--deep)}
.ai-ready-foundation__cta:focus-visible{outline:3px solid var(--paper);outline-offset:4px}

@media (max-width:900px){
  .ai-ready-foundation__in{grid-template-columns:96px minmax(0,1fr)}
  .ai-ready-foundation__rail-index{font-size:clamp(52px,12vw,72px)}
  .ai-ready-foundation__pillars{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:620px){
  .ai-ready-foundation__in{grid-template-columns:minmax(0,1fr);gap:40px}
  .ai-ready-foundation__rail{grid-column:1;grid-row:auto}
  .ai-ready-foundation__body{grid-column:1;grid-row:auto}
  .ai-ready-foundation__rail-line{display:none}
  .ai-ready-foundation__cta{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .ai-ready-foundation__cta{transition:none}
}

/* Template title standard: section H2 */
[data-section="ai-ready-foundation"][data-section="ai-ready-foundation"] h2,
.ai-ready-foundation.ai-ready-foundation 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="ai-ready-foundation"] .ai-ready-foundation__title,
[data-section="ai-ready-foundation"] .ai-ready-foundation__lede{
  width:var(--title-description-width) !important;
  max-width:var(--title-description-width) !important;
  margin-left:0 !important;
  margin-right:auto !important;
}
