/* Mainframes: shared Monarch tokens, page-scoped layout. */
.mainframe-page { --mf-green: #183c30; --mf-terminal: #11291f; }
.mainframe-page :is(p, figure, dl, dd, ol) { margin: 0; }
.mainframe-page :is(h1, h2) { text-wrap: balance; }
.mainframe-page h2 { font-size: clamp(1.875rem, 3.25vw, 2.65rem); line-height: 1.17; letter-spacing: -.035em; }
.mainframe-page .eyebrow { margin-bottom: 20px; }
.mainframe-page .mf-text-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; color: var(--blue); font-size: 14px; font-weight: 600; text-decoration: none; }
.mainframe-page .mf-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.mainframe-page .button { justify-content: space-between; gap: 34px; }
.mainframe-page :is(a, summary):focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.mf-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding: 66px 0 56px; }
.mainframe-page .mf-hero h1 { font-size: clamp(2.75rem, 4.5vw, 3.75rem); font-weight: 400; line-height: 1.12; letter-spacing: -.045em; }
.mainframe-page .mf-hero h1 em { display: inline; }
.mainframe-page .mf-lede { max-width: 510px; color: var(--text-soft); font-size: 18px; line-height: 1.65; margin-top: 25px; }
.mf-actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 30px; }
.mf-art { position: relative; min-width: 0; }
.mf-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.mainframe-page .mf-timing { margin-top: 16px; max-width: 490px; color: var(--text-soft); font-size: 16px; line-height: 1.6; }
.mf-capabilities { padding: 52px 0 62px; border-top: 1px solid var(--line-strong); }
.mf-section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 38px; align-items: start; margin-bottom: 38px; }
.mf-section-head .eyebrow { margin-top: 8px; }
.mf-capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.mf-capability-grid article { padding-top: 20px; border-top: 1px solid var(--line); }
.mf-capability-grid h3 { font-family: var(--font-body); font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.mainframe-page .mf-capability-grid p { max-width: 450px; color: var(--text-soft); font-size: 16px; line-height: 1.6; margin-top: 12px; }
.mf-access { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.mf-access h3 { margin: 0 0 22px; font-family: var(--font-body); font-size: 19px; font-weight: 500; }
.mf-access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.mf-access-grid li { padding-left: 18px; border-left: 2px solid var(--gold); }
.mf-access-grid h4 { margin: 0 0 8px; font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.mainframe-page .mf-access-grid p { max-width: 290px; color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.mf-workflow { padding: 32px; background: var(--mf-green); color: #f3f0e7; }
.mainframe-page .mf-workflow > .eyebrow { margin: 0 0 20px; color: #c8b17d; font: 500 12px/1.5 var(--font-body); letter-spacing: .16em; text-align: left; }
/* Share the heading row and three equal step rows across all desktop cards. */
.mf-industry-workflows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(3, 1fr); column-gap: 24px; }
.mf-industry-workflows article { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; min-width: 0; background: #214636; border: 1px solid #5d7769; }
.mf-industry-workflows header { padding: 18px 20px; }
.mf-label { display: block; color: #c8b17d; font: 10px/1.5 var(--font-mono); letter-spacing: .1em; }
.mf-industry-workflows h3 { font-family: var(--font-body); font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -.02em; margin: 10px 0 0; }
.mf-system-flow { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; list-style: none; padding: 0; counter-reset: workflow; }
.mf-system-flow li { position: relative; padding: 16px 20px 16px 46px; counter-increment: workflow; border-top: 1px solid #536e5d; }
.mf-system-flow li::before { content: counter(workflow, decimal-leading-zero); position: absolute; left: 16px; top: 19px; color: #b6c9b8; font: 10px/1.5 var(--font-mono); }
.mainframe-page .mf-system-flow p { font-size: 15px; line-height: 1.6; color: #f3f0e7; }
.mf-system-flow .mf-host-step { background: var(--mf-terminal); border-left: 3px solid #c8b17d; padding-left: 43px; }
.mf-system-flow .mf-host-step::before { left: 13px; }
.mf-ownership { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 68px 0; border-bottom: 1px solid var(--line); }
.mf-ownership .mf-text-link { margin-top: 26px; }
.mf-ownership dl > div { padding: 22px 0; border-top: 1px solid var(--line); }
.mf-ownership dl > div:first-child { padding-top: 0; border: 0; }
.mf-ownership dl > div:last-child { padding-bottom: 0; }
.mf-ownership dt { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.mf-ownership dd { color: var(--text-soft); font-size: 16px; line-height: 1.6; max-width: 420px; }
.mf-questions { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; padding: 60px 0 68px; }
.mf-questions h2 { max-width: 330px; }
.mf-faq details { border-bottom: 1px solid var(--line); }
.mf-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 16px; font-weight: 500; cursor: pointer; }
.mf-faq details:first-child summary { padding-top: 0; }
.mf-faq summary::-webkit-details-marker { display: none; }
.mf-faq summary span { color: var(--gold); font-size: 22px; font-weight: 400; }
.mf-faq details[open] summary span { transform: rotate(45deg); }
.mainframe-page .mf-faq p { padding-bottom: 22px; color: var(--text-soft); font-size: 15px; line-height: 1.65; }
.mf-cta { display: flex; justify-content: space-between; align-items: center; gap: 48px; padding: 44px 48px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold); margin-bottom: 16px; }
.mainframe-page .mf-cta .eyebrow { margin-bottom: 14px; }
.mainframe-page .mf-cta p:not(.eyebrow) { margin-top: 16px; max-width: 500px; font-size: 16px; line-height: 1.6; color: var(--text-soft); }
.mf-cta .button { flex: 0 0 auto; }
[data-theme="dark"] .mf-art img { mix-blend-mode: normal; border-radius: 2px; }
@media (max-width: 1050px) {
  .mf-hero { gap: 22px; }
  .mainframe-page .mf-hero h1 { font-size: 3rem; }
  .mf-workflow { padding: 24px; }
  .mf-industry-workflows { column-gap: 16px; }
  .mf-industry-workflows h3 { font-size: 18px; }
  .mf-ownership, .mf-questions { gap: 48px; }
}
@media (max-width: 900px) {
  .mf-industry-workflows { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 24px; }
  .mf-industry-workflows article { grid-row: auto; grid-template-rows: auto 1fr; }
  .mf-system-flow { grid-row: auto; grid-template-rows: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .mf-hero { grid-template-columns: 1fr; padding: 38px 0 36px; gap: 20px; }
  .mainframe-page .mf-hero h1 { font-size: clamp(2.55rem, 6.8vw, 3.4rem); }
  .mainframe-page .mf-lede { font-size: 17px; max-width: 560px; }
  .mf-art { max-width: 430px; justify-self: center; width: 100%; }
  .mf-art img { aspect-ratio: 1.3; object-fit: cover; object-position: 50% 52%; }
  .mf-section-head { grid-template-columns: 1fr; gap: 0; margin-bottom: 30px; }
  .mf-capabilities { padding: 40px 0; }
  .mf-access-grid { grid-template-columns: 1fr; gap: 22px; }
  .mf-access { margin-top: 30px; }
  .mf-capability-grid { grid-template-columns: 1fr; gap: 24px; }

  .mainframe-page .mf-capability-grid p { max-width: none; margin-top: 8px; font-size: 15px; }
  .mf-capability-grid h3 { font-size: 18px; }
  .mf-workflow { padding: 24px 20px; }
  .mf-industry-workflows h3 { font-size: 20px; }
  .mf-ownership, .mf-questions { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .mf-ownership .mf-text-link { margin-top: 14px; }
  .mf-ownership dd { max-width: none; }
  .mf-questions h2 { max-width: none; }
  .mf-faq details:first-child summary { padding-top: 16px; }
  .mf-faq details:first-child { border-top: 1px solid var(--line); }
  .mf-cta { flex-direction: column; align-items: flex-start; gap: 24px; padding: 30px 24px; }
}
@media (max-width: 380px) {
  .mainframe-page .mf-hero h1 { font-size: 2.3rem; }
  .mf-actions { gap: 12px; }


}
@media (prefers-reduced-motion: reduce) {
  .mainframe-page *, .mainframe-page *::before, .mainframe-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
