/* Manufacturing Enterprise AI page: surfaces added on top of real-estate.css and real-estate-surfaces.css. */
.re-anchor{display:block;height:0;scroll-margin-top:24px}

/* Nine-stage chain */
.re-chain.re-chain-9{grid-template-columns:repeat(9,minmax(0,1fr))}
.re-chain-9 strong{font-size:clamp(15px,1.1vw,18px)}
.re-chain-9 .re-chain-question{font-size:13px}
@media(max-width:1300px){.re-chain.re-chain-9{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:22px;border-top:0}.re-chain-9 li{border-top:2px solid #6a405e}}
@media(max-width:760px){.re-chain.re-chain-9{grid-template-columns:minmax(0,1fr);row-gap:0;border-top:0}.re-chain-9 li{border-top:0}}

/* Shared SVG text */
.mf-t{font:400 11px Instrument,sans-serif;fill:#3a2836}
.mf-t-b{font-weight:650}
.mf-t-s{font-size:10px;fill:#6b5866}
.mf-t-warn{fill:#9a3a16;font-weight:650}
.mf-t-w{fill:#fff;font-weight:700}

/* Cropped world maps */
.mf-map{margin:0 clamp(14px,2vw,24px) 8px}
.re-map-main .re-main>.mf-map{flex:none}
.mf-map .re-mapfig-box{flex:none;min-height:0}
.mf-map .re-mapfig-box image{opacity:1}
.mf-pin rect{stroke-width:.7}
.mf-mk circle{fill:#7d6476;stroke:#fff;stroke-width:1.2}
.mf-mk text{font-family:Instrument,sans-serif;font-weight:700;fill:#fff;text-anchor:middle}
.mf-mk-ok circle{fill:#3f6a4a}.mf-mk-warn circle{fill:#c27a2c}
.mf-plant rect{fill:#3a2438;stroke:#fff;stroke-width:1}
.mf-dist rect{fill:#3d5f8c;stroke:#fff;stroke-width:.8}
.mf-down circle{fill:#b0451f;stroke:#fff;stroke-width:1}.mf-down path{stroke:#fff;stroke-width:1.2}
.mf-leader{stroke:#a06a1e;stroke-width:.8;fill:none;stroke-dasharray:2 2}
.mf-link{stroke-width:1.2;stroke-dasharray:2.5 2}
.mf-link-label{font:650 6.5px Instrument,sans-serif;fill:#5a2a2a;paint-order:stroke;stroke:#dfe8ea;stroke-width:2px}
.mf-mapnote{font:650 5px Instrument,sans-serif;fill:#2f4c6e;paint-order:stroke;stroke:#e6dccb;stroke-width:1.5px}
.mf-map .re-dots-faint circle{fill:#8e7d88;opacity:.55}

/* Lists beside a visual */
.mf-list{list-style:none;margin:0 clamp(14px,2vw,24px) 10px;padding:0;display:grid;gap:6px 14px;font-size:12.5px}
.mf-list-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.mf-list-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.re-viz-col .mf-list{margin:0}
.mf-list li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;align-items:center;padding:6px 8px;background:#fff;border:1px solid #e4d9e0;border-radius:6px}
.mf-list li>b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#6a405e;color:#fff;font-size:11px}
.mf-list li span{display:grid;line-height:1.3;min-width:0}
.mf-list small{color:#6b5866;font-size:11px}
.mf-list em{font-style:normal}
.mf-list .re-tag{white-space:nowrap}

/* Landed cost */
.mf-seg-price{fill:#6a405e}.mf-seg-freight{fill:#3d5f8c}.mf-seg-duty{fill:#c4552c}.mf-seg-port{fill:#8c6a2c}.mf-seg-haul{fill:#9aa7a0}
.mf-seg-ghost{fill:none;stroke:#c4552c;stroke-width:1.5;stroke-dasharray:4 3}

/* Small suppliers */
.mf-bar{fill:#b9a2b3}.mf-bar-warn{fill:#c27a2c}
.mf-lane{stroke:#e4d9e0;stroke-width:1}
.mf-inv{opacity:.85;stroke:#fff;stroke-width:1.5}
.mf-inv-us{fill:#3d5f8c}.mf-inv-uk{fill:#6a405e}.mf-inv-uae{fill:#8c6a2c}.mf-inv-in{fill:#3f6a4a}

/* Drawings and documents */
.mf-sheet{fill:#fff;stroke:#d9ccd4}
.mf-drawing circle{fill:none;stroke:#3a2836;stroke-width:1.6}
.mf-drawing .mf-hole,.mf-hole{fill:#fbf7f4;stroke:#3a2836;stroke-width:1.4}
.mf-fin{stroke:#3a2836;stroke-width:1.4}
.mf-drawing-past circle,.mf-drawing-past .mf-fin{stroke:#8a7a84}
.mf-housing{fill:#f4eef1;stroke:#3a2836;stroke-width:1.8}
.mf-bore{fill:#fff;stroke:#3a2836;stroke-width:1.6}.mf-bore-in{fill:#efe6ea;stroke:#3a2836;stroke-width:1.2;stroke-dasharray:4 3}
.mf-boss{fill:#e7dde3;stroke:#3a2836;stroke-width:1.4}
.mf-port{fill:none;stroke:#3a2836;stroke-width:1.6}

/* Press hours, turnaround and claim bars */
.mf-hours,.mf-turn,.mf-claims,.mf-gauge,.mf-chain,.mf-tally{background:#fff;border:1px solid #e4d9e0;border-radius:10px;padding:10px 14px;font-size:13px}
.mf-hour-row{display:grid;grid-template-columns:130px minmax(0,1fr) 110px auto;gap:10px;align-items:center;margin:6px 0}
.mf-hour-track{position:relative;height:12px;border-radius:6px;background:#f2ebef}
.mf-hour-track i{position:absolute;inset:0 auto 0 0;width:calc(var(--w)*100%);border-radius:6px}
.mf-hour-track em{position:absolute;top:-4px;bottom:-4px;left:calc(var(--s)*100%);width:2px;background:#2c2230}
.mf-ok{background:#3f6a4a}.mf-short{background:#c4552c}
.mf-hour-row small{color:#6b5866;white-space:nowrap}
.mf-hour-row strong{white-space:nowrap}
.mf-chain-note{margin:8px 0 0;font-size:12.5px;color:#4a3848}

/* Rev C stock chain */
.mf-chain ol{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.mf-chain li{position:relative;display:grid;gap:2px;padding:8px 8px 10px;border-radius:6px;background:#f7f1f4;overflow:hidden}
.mf-chain li::after{content:"";position:absolute;left:0;bottom:0;height:4px;width:calc(var(--w)*100%);background:#c4552c}
.mf-chain li b{font-size:17px}.mf-chain li span{font-size:11.5px;color:#5a4558;line-height:1.3}

/* PPAP matrix */
.mf-tile-base{fill:#fff;stroke:#e4d9e0}
.mf-tile-ok{fill:#e8f1e5;stroke:#8fae95}
.mf-tile-na{fill:#f2eef0;stroke:#d9ccd4}
.mf-tile-gap{fill:#fde9df;stroke:#c4552c;stroke-width:1.5}
.mf-tile-missing{fill:#fff;stroke:#b0451f;stroke-width:1.5;stroke-dasharray:5 3}
.mf-ppap-link{fill:none;stroke:#c4552c;stroke-width:2;stroke-dasharray:5 3}

/* Gantt */
.mf-bar-mod{background:repeating-linear-gradient(135deg,#3d5f8c 0 6px,#5b7aa6 6px 12px)}
.mf-side-table{margin:0 clamp(14px,2vw,28px) 12px;width:calc(100% - 2 * clamp(14px,2vw,28px));font-size:13px}

/* Plant schematics */
.mf-floor{fill:#f6f1ee;stroke:#d9ccd4}
.mf-machine rect{fill:#fff;stroke:#7d6476;stroke-width:1.4}
.mf-machine-hot rect{stroke:#c4552c;stroke-width:2}
.mf-cage rect{stroke-dasharray:5 3}
.mf-machine-ctrl rect{fill:#efe9f3}
.mf-flowpath{fill:none;stroke:#b9a2b3;stroke-width:3;stroke-dasharray:6 4}
.mf-hyd{fill:none;stroke:#3d5f8c;stroke-width:3}
.mf-alarm{fill:#b0451f;stroke:#fff;stroke-width:2}
.mf-alarm-t{font:700 10px Instrument,sans-serif;fill:#fff;text-anchor:middle}
.mf-hot{fill:none;stroke:#c4552c;stroke-width:2.5;stroke-dasharray:5 3}
.mf-board{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(200px,.8fr);gap:12px;padding:0 clamp(14px,2vw,24px) 12px;align-items:start}
.mf-tally ol{list-style:none;margin:6px 0 10px;padding:0;display:grid;gap:4px}
.mf-tally li{display:flex;justify-content:space-between;gap:10px}
.mf-minus{color:#9a3a16}
.mf-total{border-top:1px solid #e4d9e0;padding-top:4px;font-weight:700}

/* Loss tree */
.mf-tree-node rect{fill:#fff;stroke:#b9a2b3;stroke-width:1.3}
.mf-tree-root rect{fill:#3a2438;stroke:#3a2438}.mf-tree-root text{fill:#fbeef3}
.mf-tree-top rect{fill:#fde9df;stroke:#c4552c;stroke-width:2}
.mf-tree-line{fill:none;stroke:#b9a2b3;stroke-width:1.5}

/* Outside processors */
.mf-plant-node rect{fill:#3a2438}.mf-plant-node text{fill:#fbeef3}
.mf-proc rect{fill:#fff;stroke:#b9a2b3;stroke-width:1.3}
.mf-proc-gap rect{stroke:#c4552c;stroke-width:2}
.mf-flow-out{fill:none;stroke:#6a405e;stroke-width:2}
.mf-flow-back{fill:none;stroke:#3f6a4a;stroke-width:2;stroke-dasharray:5 3}
.mf-gap rect{fill:#c4552c}.mf-okpill rect{fill:#3f6a4a}

/* Maintenance history */
.mf-band-old{fill:#f2eef0}
.mf-wo circle{fill:#8a7a84;stroke:#fff;stroke-width:2}
.mf-wo-new circle{fill:#3f6a4a}
.mf-wo-no circle{fill:#fff;stroke:#b0451f;stroke-width:2;stroke-dasharray:3 2}

/* Genealogy */
.mf-g-in circle{fill:#e3ecf3;stroke:#3d5f8c}
.mf-g-lot circle{fill:#fff;stroke:#6a405e}
.mf-g-watch circle{fill:#f2eef0;stroke:#a58b9d;stroke-dasharray:4 3}
.mf-g-ours circle{fill:#fff1dc;stroke:#a06a1e}
.mf-g-cust circle{fill:#fde9df;stroke:#b0451f}

/* Exports */
.mf-row{grid-template-columns:minmax(0,1.6fr) minmax(220px,.8fr);align-items:start}
.mf-shipdot rect{fill:#6a405e}
.mf-owe circle{stroke:#fff;stroke-width:1.5}.mf-owe line{stroke:#d9ccd4;stroke-width:1.5}
.mf-owe-ref circle{fill:#c4552c}.mf-owe-proof circle{fill:#3d5f8c}.mf-owe-origin circle{fill:#8c6a2c}.mf-owe-pay circle{fill:#6b5866}
.mf-gauge-track{height:16px;border-radius:8px;background:#f2ebef;overflow:hidden;margin:8px 0}
.mf-gauge-track i{display:block;height:100%;width:calc(var(--w)*100%);background:#3f6a4a}
.mf-gauge p{margin:0}

/* Emissions */
.mf-em-0{fill:#6a405e}.mf-em-1{fill:#3d5f8c}.mf-em-2{fill:#8c6a2c}.mf-em-3{fill:#3f6a4a}.mf-em-4{fill:#9a6a8a}
.mf-em-gap{stroke:#b0451f;stroke-width:2;stroke-dasharray:4 3}
.mf-era circle{fill:#6a405e;stroke:#fff;stroke-width:2}
.mf-era-prop circle{fill:#fff;stroke:#c4552c;stroke-width:2;stroke-dasharray:3 2}

/* Portal waterfall */
.mf-zero{stroke:#2c2230;stroke-width:1}

/* Metal index */
.mf-window-0{fill:#3d5f8c14;stroke:#3d5f8c55}.mf-window-1{fill:#8c6a2c14;stroke:#8c6a2c55}
.mf-base{stroke-width:1.5;stroke-dasharray:5 4}.mf-base-0{stroke:#3d5f8c}.mf-base-1{stroke:#8c6a2c}
.mf-claim{display:grid;grid-template-columns:minmax(0,1fr) 90px auto;gap:10px;align-items:center;margin:8px 0}
.mf-claim span{display:grid;line-height:1.3}.mf-claim small{color:#6b5866;font-size:11px}
.mf-claim i{display:block;height:12px;border-radius:6px;width:calc(var(--w)*100%);background:#6a405e}
.mf-claim b{white-space:nowrap}

/* Site search */
.mf-flood{fill:#9fbfc8;opacity:.75;stroke:#5f8a96;stroke-dasharray:3 2}
.mf-radius{fill:none;stroke:#6a405e;stroke-width:1.5;stroke-dasharray:6 5}
.mf-oem rect{fill:#3a2438}
.mf-sub circle{fill:#fff;stroke:#3d5f8c;stroke-width:2}
.mf-power{fill:none;stroke:#3d5f8c;stroke-width:1.5;stroke-dasharray:2 3}
.mf-parcel rect{fill:#f5d9c2;stroke:#a5582a;stroke-width:1.5}
.mf-parcel line{stroke:#a5582a;stroke-width:1.5;stroke-dasharray:3 2}
.mf-parcel-ok{fill:none;stroke:#3f6a4a;stroke-width:3.5}
.mf-parcel-no{fill:#ffffff99;stroke:#b0451f;stroke-width:2;stroke-dasharray:4 3}

/* Channel badge for customer portals */
.re-ch-portal .re-ch-badge{background:#8c6a2c}

/* Fit the scroll stage */

.re-scrub .mf-map .re-mapfig-box{width:100%;max-width:calc(44svh * var(--ar));margin-inline:auto}
.re-scrub .mf-viz-ppap svg,.re-scrub .mf-viz-tree svg,.re-scrub .mf-viz-landed svg{max-height:44svh}
.re-scrub .mf-viz-gene svg,.re-scrub .mf-viz-site svg{max-height:46svh}
.re-scrub .mf-viz-rfq svg,.re-scrub .mf-viz-change svg,.re-scrub .mf-viz-proc svg,.re-scrub .mf-viz-portal svg,.re-scrub .mf-viz-runway svg{max-height:40svh}
.re-scrub .mf-viz-press svg{max-height:26svh}.re-scrub .mf-viz-hist svg{max-height:16svh}
.re-scrub .mf-viz-cell svg{max-height:40svh}
.re-viz svg{display:block;margin-inline:auto}

@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){
  .mf-list-2,.mf-list-3{grid-template-columns:minmax(0,1fr)}
  .mf-board,.mf-row{grid-template-columns:minmax(0,1fr)}
  .mf-chain ol{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mf-hour-row{grid-template-columns:minmax(70px,auto) minmax(0,1fr);row-gap:2px}
  .mf-hour-row small,.mf-hour-row strong{grid-column:2}
  .mf-side-table{display:block;overflow-x:auto}
}
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){
  .mf-list li{grid-template-columns:22px minmax(0,1fr)}
  .mf-list em{grid-column:2}
}

/* Context-first page (shared cx- styles come from construction.css): nine stages in rows of three, five data cards */
.cx-flow{grid-template-columns:repeat(3,minmax(0,1fr))}
.cx-flow li:nth-child(3n)::after{display:none}
.cx-data-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1200px){
  .cx-data-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .cx-flow,.cx-data-grid{grid-template-columns:minmax(0,1fr)}
}
