/* Detail pages (single-m2_service / single-m2_solution / single-m2_talent).
   The layout is new, but every value is borrowed from the design: the dark
   Capabilities hero, the Talent two-column hero, the Home hero badge card,
   the benefit cards and the shared card / bullet / chip components. */

/* ---------- hero (dark band, decorative rotated square) ---------- */
.m2-detail-hero { position: relative; overflow: hidden; background: #020617; color: #fff; }
.m2-detail-hero__square { position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; background: #004aad; transform: rotate(45deg); border-radius: 40px; opacity: .35; pointer-events: none; }
.m2-detail-hero__inner { position: relative; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 48px; align-items: center; }
.m2-detail-hero__copy { max-width: 760px; }
.m2-detail-hero__lede { margin: 0; font-size: 17px; line-height: 1.6; color: #a8c7ef; max-width: 640px; text-wrap: pretty; }
.m2-detail-hero__chips { margin-top: 22px; }
.m2-detail-hero__copy .m2-btn-row { margin-top: 30px; }

/* Right column: featured image with the badge card overlapping its bottom-left corner. */
.m2-detail-hero__media { position: relative; }
.m2-detail-hero__media--badge { margin-bottom: 22px; }
.m2-detail-hero__img { width: 100%; height: 380px; object-fit: cover; border-radius: 12px; display: block; box-shadow: 0 30px 60px -30px rgba(0, 32, 80, .45); }
.m2-detail-hero__media--badge .m2-detail-badge { position: absolute; left: 16px; bottom: -22px; }
@media (min-width: 900px) {
	.m2-detail-hero__media--badge .m2-detail-badge { left: -16px; }
}
/* No featured image: the badge sits alone in a blue-tint panel. */
.m2-detail-hero__media--panel { background: rgba(74, 134, 216, .12); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; min-height: 260px; display: grid; place-items: center; padding: 32px 24px; }

/* "At a glance" badge (Home hero badge card). */
.m2-detail-badge { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 18px; box-shadow: 0 12px 30px -12px rgba(2, 6, 23, .25); display: flex; gap: 14px; align-items: center; max-width: min(100% - 32px, 380px); }
.m2-detail-badge__mark { position: relative; width: 34px; height: 34px; flex: none; }
.m2-detail-badge__mark span { position: absolute; transform: rotate(45deg); border-radius: 4px; }
.m2-detail-badge__mark span:nth-child(1) { inset: 8px 8px 0 0; background: #a8c7ef; }
.m2-detail-badge__mark span:nth-child(2) { inset: 4px; background: #004aad; }
.m2-detail-badge__mark span:nth-child(3) { inset: 0 0 8px 8px; background: #db2d26; opacity: .95; }
.m2-detail-badge__title { font-family: Montserrat, system-ui, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.3; color: #020617; }
.m2-detail-badge__sub { font-size: 13px; line-height: 1.4; color: #64748b; margin-top: 2px; }

/* ---------- body: main column + sticky aside ---------- */
.m2-detail-body { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) {
	.m2-detail-body { grid-template-columns: minmax(0, 1fr) 340px; }
}
.m2-detail-main { min-width: 0; display: grid; gap: clamp(40px, 5vw, 56px); }
.m2-detail-overview .m2-eyebrow { margin-bottom: 20px; }

/* Outcomes: reduced section heading + 2-up cards (benefit-card recipe). */
.m2-detail-outcomes__heading { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 24px; }
.m2-detail-outcome { padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.m2-detail-outcome .m2-diamond { margin: 4px 0 2px 4px; display: block; }
.m2-detail-outcome__title { margin: 0; font-family: Montserrat, system-ui, sans-serif; font-weight: 700; font-size: 17px; line-height: 1.3; color: #020617; }
.m2-detail-outcome__body { margin: 0; font-size: 15px; line-height: 1.6; color: #475569; text-wrap: pretty; }

/* Aside cards. */
.m2-detail-aside { min-width: 0; }
.m2-detail-aside__stack { position: sticky; top: 96px; display: grid; gap: 20px; }
body.admin-bar .m2-detail-aside__stack { top: 128px; }
.m2-detail-aside__card { padding: 26px 24px; display: grid; gap: 18px; }
.m2-detail-aside__card .m2-bullets li { font-size: 15px; line-height: 1.5; }
.m2-detail-aside__card--dark { background: #020617; border-color: #020617; color: #fff; gap: 14px; }
.m2-detail-aside__text { margin: 0; font-size: 15px; line-height: 1.6; color: #94a3b8; text-wrap: pretty; }
.m2-detail-aside__contacts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.m2-detail-aside__contacts a { color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.m2-detail-aside__contacts a:hover { color: #a8c7ef; }
.m2-detail-aside__card--dark .m2-btn { justify-self: start; margin-top: 6px; }

/* ---------- related ---------- */
.m2-detail-related { background: #fff; border-top: 1px solid #e2e8f0; }
.m2-detail-related__head { max-width: 620px; margin-bottom: 40px; }
.m2-detail-related .m2-card__title { font-size: 20px; }
.m2-detail-related .m2-card__footer { justify-content: flex-start; }
