/* Our Methodology (/execution-control-system/) — page-local styles. */
.mtx-page [id] { scroll-margin-top: calc(var(--ws-header, 72px) + 16px); }
.mtx-page #mtx-questions:focus { outline: 2px solid var(--ws-focus); outline-offset: -3px; }
.mtx-page a:focus-visible, .mtx-page summary:focus-visible { outline: 2px solid var(--ws-focus); outline-offset: 3px; border-radius: 3px; }

.mtx-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.mtx-h1 { max-width: 14ch; }
.mtx-chain { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 13px; color: var(--ws-muted); letter-spacing: .01em; }
.mtx-chain li { display: inline-flex; align-items: center; }
.mtx-chain li + li::before { content: ""; width: 18px; height: 1px; background: var(--ws-line); margin: 0 10px; }
.mtx-chain li:first-child, .mtx-chain li:last-child { color: var(--ws-navy); font-weight: 600; }

.mtx-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-blue); background: var(--ws-ice); padding: 4px 8px; border-radius: 3px; }
.mtx-cap { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--ws-muted); }

.mtx-flow { margin: 0; background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: var(--ws-radius); padding: clamp(20px, 2.5vw, 30px); box-shadow: 0 24px 48px -32px rgba(11,22,40,.28); }
.mtx-flow-top { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--ws-line); }
.mtx-flow-name { font-size: 18px; font-weight: 600; color: var(--ws-ink); }
.mtx-flow-rows { margin: 0; }
.mtx-flow-rows > div { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--ws-line); }
.mtx-flow-rows dt { font-size: 12px; color: var(--ws-muted); }
.mtx-flow-rows dd { margin: 0; font-size: 14.5px; color: var(--ws-text); font-weight: 500; }
.mtx-q { font-size: 11px; color: var(--ws-navy); border: 1px solid var(--ws-line); border-radius: 20px; padding: 2px 9px; white-space: nowrap; }
.mtx-pill { display: inline-block; font-size: 12.5px; padding: 3px 10px; border-radius: 20px; background: var(--ws-ice); color: var(--ws-navy); }
.mtx-pill.is-alert { background: rgba(184,58,46,.09); color: var(--ws-err); }

.mtx-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.mtx-head .ws-lead { margin-top: 18px; }
.mtx-aside { margin-top: 14px; font-size: 14px; color: var(--ws-muted); border-left: 2px solid var(--ws-signal); padding-left: 12px; max-width: 64ch; }

/* Pillars */
.mtx-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--ws-line); }
.mtx-pillar { display: flex; flex-direction: column; min-width: 0; gap: 18px; padding: clamp(28px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--ws-line); }
.mtx-p-label { display: flex; align-items: baseline; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ws-blue); }
.mtx-init { font-size: 28px; font-weight: 300; color: var(--ws-line); letter-spacing: 0; }
.mtx-p-q { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; color: var(--ws-ink); margin: 0 0 12px; letter-spacing: -.01em; }
.mtx-p-body > p { color: var(--ws-text); line-height: 1.65; max-width: 58ch; }
.mtx-ask { margin-top: 16px; }
.mtx-ask summary { cursor: pointer; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ws-navy); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.mtx-ask summary::-webkit-details-marker { display: none; }
.mtx-ask summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--ws-line); border-radius: 50%; font-size: 13px; line-height: 1; }
.mtx-ask[open] summary::before { content: "\2212"; }
.mtx-ask ul { margin: 12px 0 0; padding-left: 18px; color: var(--ws-text); font-size: 14.5px; line-height: 1.6; }
.mtx-ask li + li { margin-top: 4px; }
.mtx-p-impl { background: var(--ws-paper); border-radius: var(--ws-radius); padding: 18px 20px; margin-top: auto; }
.mtx-mini { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--ws-line); color: var(--ws-navy); font-size: 13px; }
.mtx-mini li { min-width: 0; overflow-wrap: anywhere; }
.mtx-mini li + li::before { content: "\2192"; margin-right: 8px; }
.mtx-mini-label { margin: 14px 0 -8px; color: var(--ws-muted); font-size: 12px; }
.mtx-impl-k { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-muted); margin-bottom: 12px; }
.mtx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mtx-chips li { font-size: 13px; color: var(--ws-navy); background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: 3px; padding: 4px 9px; }
.mtx-impl-n { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ws-muted); }

/* Worked example */
.mtx-ex-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.mtx-step { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-blue); margin-bottom: 12px; }
.mtx-h3 { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; color: var(--ws-ink); margin: 0 0 14px; }
.mtx-scn p + p { margin-top: 12px; }
.mtx-scn p { line-height: 1.65; }
.mtx-map { background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: var(--ws-radius); }
.mtx-map-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; padding: 14px 22px; border-bottom: 1px solid var(--ws-line); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-blue); }
.mtx-map dl { margin: 0; }
.mtx-map-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; padding: 16px 22px; position: relative; }
.mtx-map-row + .mtx-map-row { border-top: 1px solid var(--ws-line); }
.mtx-map-row dt b { display: block; font-size: 12px; color: var(--ws-navy); letter-spacing: .04em; margin-bottom: 4px; }
.mtx-map-row dt span { font-size: 14.5px; color: var(--ws-text); line-height: 1.5; }
.mtx-map-row dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ws-ink); padding-left: 18px; border-left: 2px solid var(--ws-signal); align-self: center; }

.mtx-proof { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(24,70,132,.18); }
.mtx-proof-txt p { line-height: 1.65; }
.mtx-proof-txt .ws-case-link { margin-top: 18px; display: inline-flex; gap: 8px; }
.mtx-evidence { margin: 0; }
.mtx-shot { display: block; border-radius: var(--ws-radius); }
.mtx-shot img { display: block; width: 100%; height: auto; max-width: 1436px; }
.mtx-callouts { list-style: none; counter-reset: c; margin: 12px 0 10px; padding: 0; display: grid; gap: 6px; }
.mtx-callouts li { counter-increment: c; color: var(--ws-text); }
.mtx-callouts li::before { content: counter(c); display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; background: var(--ws-navy); color: var(--ws-card); font-size: 11px; }
.mtx-callouts b { color: var(--ws-navy); }
.mtx-cap-n { display: block; }

/* Architecture trace */
.mtx-trace { border: 1px solid var(--ws-line); border-radius: var(--ws-radius); background: var(--ws-card); overflow: hidden; }
.mtx-tr { display: grid; grid-template-columns: repeat(3, 1fr); }
.mtx-tr > span { padding: 18px 22px; font-size: 14.5px; line-height: 1.55; color: var(--ws-text); position: relative; }
.mtx-tr + .mtx-tr { border-top: 1px solid var(--ws-line); }
.mtx-tr > span + span { border-left: 1px solid var(--ws-line); }
.mtx-tr:not(.mtx-tr-h) > span + span::before { content: ""; position: absolute; left: -5px; top: 24px; width: 9px; height: 9px; border-top: 1px solid var(--ws-blue); border-right: 1px solid var(--ws-blue); transform: rotate(45deg); background: var(--ws-card); }
.mtx-tr:not(.mtx-tr-h) > span:last-child { color: var(--ws-ink); font-weight: 500; }
.mtx-tr-h > span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-blue); background: var(--ws-paper); padding-top: 14px; padding-bottom: 14px; }

.mtx-cmp { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 6vw, 80px); }
.mtx-cmp-head p { line-height: 1.65; color: var(--ws-text); }
.mtx-cmp-col { padding: 22px 24px; border-radius: var(--ws-radius); }
.mtx-cmp-col h4 { font-size: 15px; margin: 0 0 12px; }
.mtx-cmp-col ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.6; }
.mtx-cmp-col li + li { margin-top: 6px; }
.mtx-cmp-col.is-before { background: var(--ws-paper); color: var(--ws-muted); }
.mtx-cmp-col.is-before h4 { color: var(--ws-muted); }
.mtx-cmp-col.is-after { background: var(--ws-ice); color: var(--ws-ink); }
.mtx-cmp-col.is-after h4 { color: var(--ws-navy); }

.mtx-note { margin-top: clamp(40px, 5vw, 64px); padding: 24px 0 0; border-top: 1px solid var(--ws-line); display: grid; grid-template-columns: 1fr 2fr; gap: 12px 40px; }
.mtx-note-h { font-size: 18px; color: var(--ws-ink); margin: 0; }
.mtx-note p { line-height: 1.65; color: var(--ws-text); }
.mtx-note-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.mtx-note-links a { display: inline-flex; gap: 8px; }

/* Reading */
.mtx-reads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(24,70,132,.16); border: 1px solid rgba(24,70,132,.16); border-radius: var(--ws-radius); overflow: hidden; }
.mtx-read { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3vw, 34px); background: var(--ws-card); text-decoration: none; color: inherit; transition: background-color .25s var(--ws-ease); }
.mtx-read:hover { background: var(--ws-paper); }
.mtx-read-k { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-blue); }
.mtx-read h3 { font-size: 20px; color: var(--ws-ink); margin: 0; }
.mtx-read p { font-size: 14.5px; line-height: 1.6; color: var(--ws-text); flex: 1; }
.mtx-read .ws-arr { display: inline-block; transition: transform .25s var(--ws-ease); }
.mtx-read:hover .ws-arr { transform: translateX(3px); }

/* CTA */
.mtx-cta .ws-btns { margin-top: 28px; }
.mtx-expect { margin: 0; display: grid; gap: 0; align-self: start; }
.mtx-expect > div { padding: 16px 0; border-top: 1px solid rgba(127,145,170,.35); }
.mtx-expect dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin-bottom: 6px; }
.mtx-expect dd { margin: 0; font-size: 14.5px; line-height: 1.6; }

@media (max-width: 1024px) {
  .mtx-cmp { grid-template-columns: 1fr 1fr; }
  .mtx-cmp-head { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .mtx-hero-grid, .mtx-ex-grid, .mtx-proof { grid-template-columns: 1fr; }
  .mtx-note { grid-template-columns: 1fr; }
  .mtx-note-links { grid-column: 1; }
}
@media (max-width: 767px) {
  .mtx-pillars, .mtx-cmp, .mtx-reads { grid-template-columns: 1fr; }
  .mtx-flow-rows > div { grid-template-columns: 1fr auto; }
  .mtx-flow-rows dt { grid-column: 1 / -1; }
  .mtx-map-head { display: none; }
  .mtx-map-row { grid-template-columns: 1fr; gap: 10px; }
  .mtx-tr { grid-template-columns: 1fr; }
  .mtx-tr-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mtx-tr > span + span { border-left: 0; border-top: 1px dashed var(--ws-line); }
  .mtx-tr:not(.mtx-tr-h) > span[role="cell"]::before { content: attr(data-mtx-label); display: block; position: static; width: auto; height: auto; border: 0; transform: none; background: transparent; margin-bottom: 8px; color: var(--ws-blue); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .mtx-tr > span::after { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .mtx-read, .mtx-read .ws-arr { transition: none; }
  .mtx-read:hover .ws-arr { transform: none; }
}
