/* Capability openings share a clear copy-left / visual-right hierarchy. */
body.capability-page main#main>section.cx-data-delivery .cx-data-delivery__grid article{background:#fffdf9;border:1px solid #d3d9e0;border-top:2px solid #da121f}
body.capability-page main#main>section.cx-data-delivery .cx-data-delivery__grid article:hover{background:#fff8f5;border-color:#da121f}
body.capability-page main#main>section.cx-data-delivery .cx-data-delivery__grid h3{color:#102030}
body.capability-page main#main>section.cx-data-delivery .cx-data-delivery__grid p{color:#526171}
body.capability-page main#main>section.cx-data-delivery .cx-data-delivery__grid article>span{color:#da121f}
body.capability-page .cx-ai-hero{padding-block:calc(var(--header-h) + 56px) 72px}
body.capability-page .cx-ai-hero__grid,body.capability-page .cx-pm-hero__grid{grid-template-columns:minmax(0,1.08fr) minmax(0,.82fr);gap:clamp(36px,6vw,85px);align-items:center}
body.capability-page .cx-ai-hero__grid>div{display:block}
body.capability-page .cx-ai-hero__grid>div>p{margin-top:24px;max-width:620px}
body.capability-page .cx-ai-hero__grid .cx-actions{margin-top:28px;display:flex;flex-wrap:wrap}
body.capability-page .cx-ai-hero__image{height:470px;margin:0}
body.capability-page .cx-pm-hero__grid>div:first-child{grid-column:1;grid-row:1}
body.capability-page .cx-pm-hero__grid>figure{grid-column:2;grid-row:1}
body.capability-page .cx-pm-hero__image{height:470px}
/* Text and cards follow their surface instead of inheriting their old theme. */
body.capability-page main#main>section[data-surface^="paper"] :is(h2,h3,strong){color:#102030}
body.capability-page main#main>section[data-surface^="paper"] :is(p,small){color:#526171}
body.capability-page main#main>section[data-surface^="paper"] :is(.cx-kicker,.site-heading-accent,article>span){color:#da121f!important}
body.capability-page main#main>section[data-surface^="ink"] :is(h2,h3,strong){color:#f7f8fa}
body.capability-page main#main>section[data-surface^="ink"] :is(p,small){color:#c5ced8}
body.capability-page main#main>section[data-surface^="ink"] .site-heading-accent{color:#ff3038!important}
body.capability-page .cx-ai-inputs__grid article,body.capability-page .cx-pm-operating__grid article{background:#fff;border:1px solid #d6dbe1;border-top:2px solid #da121f;min-height:180px;padding:26px}
body.capability-page .cx-ai-inputs__grid article:hover,body.capability-page .cx-pm-operating__grid article:hover{background:#fff8f5;border-color:#da121f}
body.capability-page .cx-ai-flow__track article,body.capability-page .cx-ai-controls__grid article{background:rgba(8,18,30,.75);border-color:rgba(255,255,255,.2)}
body.capability-page .cx-ai-flow__track article :is(p,h3),body.capability-page .cx-ai-controls__grid article :is(p,h3){color:#e2e8ee}
body.capability-page .cx-pm-view__board{background:#0d1b2b;border-color:rgba(255,255,255,.2)}
body.capability-page .cx-pm-view__board>div{padding:22px;border-color:rgba(255,255,255,.18)}
body.capability-page .cx-pm-rhythm__list article{border-color:#cdd4dc;background:rgba(255,255,255,.5)}
body.capability-page .cx-pm-rhythm__list span{color:#da121f}
body.capability-page .cx-pm-disciplines__list{border-color:rgba(255,255,255,.2)}
body.capability-page .cx-pm-disciplines__list article{border-color:rgba(255,255,255,.2)}
body.capability-page .cx-pm-disciplines__grid>div:first-child>p{color:#c5ced8}
body.capability-page .cx-ai-proof__impact{border-color:#cad2da;background:#fff}
body.capability-page .cx-ai-proof__impact span{color:#526171}
/* Federal organizations are distinct, padded cards with real insignia. */
body.phase08-federal-hub .fh-agencies__line{border:0;gap:14px;grid-template-columns:repeat(5,minmax(0,1fr))}
body.phase08-federal-hub .fh-agencies__line>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:168px;padding:24px 16px;background:#fff;border:1px solid #d3dae1!important;text-align:center}
body.phase08-federal-hub .fh-agencies__line img{width:58px;height:58px;object-fit:contain}
body.phase08-federal-hub .fh-agencies__line strong{font-size:.82rem;line-height:1.45}
/* Separated credential panels with consistent, readable typography. */
body.phase08-naics .nh-credgrid{border:0;gap:20px}
body.phase08-naics .nh-cred{position:relative;min-height:245px;padding:28px;border:1px solid rgba(255,255,255,.22);border-top:2px solid #ff3038;background:#101f30;box-shadow:0 16px 36px rgba(0,0,0,.12)}
body.phase08-naics .nh-cred:nth-child(2){background:#192333}
body.phase08-naics .nh-cred:nth-child(3){background:#211b2a}
body.phase08-naics .nh-cred .credential-symbol{width:46px;height:46px;margin-bottom:20px}
body.phase08-naics .nh-cred>span{color:#b7c2ce}
body.phase08-naics .nh-cred strong{font-size:clamp(1.7rem,2.4vw,2.6rem);line-height:1.12;margin:18px 0 12px}
body.phase08-naics .nh-cred strong br{display:none}
body.phase08-naics .nh-cred p{color:#c5ced8;margin:0;line-height:1.6}
/* Agency rows retain a stable inset on hover. */
body.phase08-ecosystem .eh-agency,body.phase08-ecosystem .eh-agency:hover{padding:24px;grid-template-columns:70px minmax(0,1fr) 120px;gap:24px;transform:none}
/* A compact network directory with a useful invitation, separate from the logos. */
body.foundation-v8.phase08-ecosystem .eh-rel__grid{grid-template-columns:1fr;gap:30px;align-items:start}
body.phase08-ecosystem .eh-rel__copy{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:12px 64px}
body.phase08-ecosystem .eh-rel__copy>.eyebrow{grid-column:1/-1}
body.phase08-ecosystem .eh-rel__copy h2{grid-column:1;grid-row:2;max-width:730px;margin:4px 0}
body.phase08-ecosystem .eh-rel__copy p{grid-column:2;grid-row:2;align-self:center;margin:0;line-height:1.7}
body.phase08-ecosystem .eh-rel__intro-link{grid-column:1/-1;justify-self:start;color:#da121f;font-size:.8rem;font-weight:700;padding:12px 0;border-bottom:1px solid #da121f}
body.foundation-v8.phase08-ecosystem .eh-rel__logos{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:0;background:none;padding:0;min-height:0}
body.foundation-v8.phase08-ecosystem .eh-rel__logo{min-height:154px;border:1px solid #d3d9e0;background:#fff;border-radius:0;padding:24px;gap:14px;box-shadow:0 12px 28px rgba(15,30,45,.035)}
body.foundation-v8.phase08-ecosystem .eh-rel__logo:hover{background:#fff8f5;border-color:#da121f}
body.foundation-v8.phase08-ecosystem main .eh-rel__invite,body.foundation-v8.phase08-ecosystem main .eh-rel__invite:hover{background:linear-gradient(125deg,#102030,#301725)!important;color:#fff;border-top:2px solid #ff3038;align-items:flex-start}
body.foundation-v8.phase08-ecosystem .eh-rel__invite strong{color:#fff;font-size:1.2rem;line-height:1.35}
body.foundation-v8.phase08-ecosystem .eh-rel__invite span{color:#d5dce5}
body.foundation-v8.phase08-ecosystem .eh-rel__invite small{color:#ff4551}
body.phase08-ecosystem .eh-evidence__rail{gap:16px;border:0}
body.phase08-ecosystem .eh-evidence__rail a{min-height:148px;padding:24px;gap:16px;background:#fff;border:1px solid #d3d9e0;border-top:2px solid #da121f}
body.phase08-ecosystem .eh-evidence__rail strong{margin:0;font-size:1.15rem;line-height:1.35}
body.phase08-ecosystem .eh-evidence__rail em{margin-top:auto}
/* Related opportunities are independent cards with a deliberate browse action. */
body.phase09-role .r09-related{padding-block:64px}
body.phase09-role .r09-related__head{align-items:center;gap:28px;margin-bottom:28px}
body.phase09-role .r09-related__head h2{font-size:clamp(1.8rem,3.1vw,2.8rem);max-width:760px;line-height:1.1}
body.phase09-role .r09-related__head>a{padding:12px 16px;border:1px solid rgba(255,255,255,.3);color:#fff;white-space:nowrap}
body.phase09-role .r09-related__grid{border:0;gap:18px}
body.phase09-role .r09-related-card{display:grid;grid-template-columns:minmax(0,1fr) 24px;gap:20px;align-content:start;min-height:178px;padding:26px;border:1px solid rgba(255,255,255,.23);border-top:2px solid #ff3038;background:#101e2e}
body.phase09-role .r09-related-card span{grid-column:1/-1;color:#bbc6d2;line-height:1.5}
body.phase09-role .r09-related-card h3{grid-column:1;margin:0;line-height:1.4;font-size:1.08rem}
body.phase09-role .r09-related-card b{grid-column:2;align-self:center;margin:0}
body.phase09-role .r09-related-card:last-child{background:linear-gradient(125deg,#271b29,#411926)}
@media(max-width:1000px){body.phase08-federal-hub .fh-agencies__line{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){
 body.capability-page .cx-ai-hero__grid,body.capability-page .cx-pm-hero__grid{grid-template-columns:1fr;gap:30px}
 body.capability-page .cx-pm-hero__grid>div:first-child,body.capability-page .cx-pm-hero__grid>figure{grid-column:1;grid-row:auto}
 body.capability-page .cx-ai-hero__image,body.capability-page .cx-pm-hero__image{height:340px}
 body.phase08-ecosystem .eh-rel__copy{grid-template-columns:1fr;gap:18px}
 body.phase08-ecosystem .eh-rel__copy h2,body.phase08-ecosystem .eh-rel__copy p{grid-column:1;grid-row:auto}
 body.foundation-v8.phase08-ecosystem .eh-rel__logos{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.phase09-role .r09-related__head{align-items:flex-start;flex-direction:column}
}
@media(max-width:600px){
 body.phase08-federal-hub .fh-agencies__line{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.phase08-ecosystem .eh-agency,body.phase08-ecosystem .eh-agency:hover{grid-template-columns:58px minmax(0,1fr);padding:20px 16px;gap:18px}
 body.phase08-ecosystem .eh-agency__mark{width:58px;height:58px}
 body.phase08-ecosystem .eh-agency>a,body.phase08-ecosystem .eh-agency>em{grid-column:2;text-align:left}
 body.foundation-v8.phase08-ecosystem .eh-rel__logos{grid-template-columns:1fr}
 body.phase08-naics .nh-credgrid{grid-template-columns:1fr}
 body.phase08-naics .nh-cred{grid-column:auto!important}
 body.phase09-role .r09-related__grid{grid-template-columns:1fr}
 body.phase09-role .r09-related-card{min-height:146px}
}
