/* ===========================================================================
   Services / Manufacturing — the solution tour.
   Pattern: side-by-side sticky scrollytelling (a pinned picture, a scrolling
   story). Everything is open; nothing waits for a click.
     1. index of eight problems, one column per level
     2. tour: the plant model stays pinned on the left while four chapters
        scroll past on the right. The level being read is lit on the model,
        the other three go dim (svc-manufacturing-ui.js sets data-tier).
     3. one card per solution: problem -> solution -> a screen that says where
        it sits and who looks at it -> what the plant gets
     4. the eight small figures shown inside those screens
   No JS: the model is not pinned to a level, all four stay lit; the level
   list is plain in-page links. Narrow screens: the model is shown once above
   the chapters, not pinned.
   =========================================================================== */

/* --- 1. index of problems ---------------------------------------------------- */
.mf-idx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; margin: 0; padding: 0; list-style: none; }
.mf-idx__g { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 0; min-width: 0; background: var(--white); border: 1px solid var(--line-strong); border-bottom: 5px solid var(--mf-tc); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.mf-idx__k { position: relative; overflow: hidden; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: center; align-items: start; gap: 0 12px; margin: 0; padding: 14px 14px 14px 12px; background: var(--navy-deep); font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--white); text-decoration: none; transition: background .2s var(--ease-out), color .2s var(--ease-out); }
.mf-idx__k i { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; background: var(--mf-tc); font-style: normal; font-size: 26px; font-weight: 900; line-height: 1; color: var(--navy); transition: background .2s var(--ease-out), color .2s var(--ease-out); }
.mf-idx__k b { font-size: 12px; font-weight: 900; letter-spacing: .14em; color: var(--mf-tc); transition: color .2s var(--ease-out); }
/* the column head is one big link: no helper text. It answers the pointer (the head takes the
   tier colour, the column lifts), presses in under a finger, and a light sweeps across the four
   heads once when the row scrolls into view, so it reads as something to press. */
.mf-idx__k::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 42%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .34), transparent); transform: translateX(-130%); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .mf-idx__g:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(16, 42, 67, .16); }
  .mf-idx__k:hover { background: var(--mf-tc); color: var(--navy); }
  .mf-idx__k:hover b { color: var(--navy); }
  .mf-idx__k:hover i { background: var(--navy); color: var(--mf-tc); }
}
.mf-idx__k:active { background: var(--mf-tc); color: var(--navy); }
.mf-idx__k:active b { color: var(--navy); }
.mf-idx__k:active i { background: var(--navy); color: var(--mf-tc); }
@keyframes mf-idx-shine { 0% { transform: translateX(-130%); } 26%, 100% { transform: translateX(330%); } }
@keyframes mf-idx-tap { 0%, 22%, 100% { transform: none; } 9% { transform: scale(1.16); } }
html.js .mf-idx[data-io] .mf-idx__g { opacity: 0; }
/* entry uses an animation that only fills backwards, so afterwards the hover lift is free */
html.js .mf-idx[data-io].is-in .mf-idx__g { opacity: 1; animation: mf-rise .5s var(--ease-out) backwards; }
html.js .mf-idx[data-io].is-in .mf-idx__g:nth-child(2) { animation-delay: 80ms; }
html.js .mf-idx[data-io].is-in .mf-idx__g:nth-child(3) { animation-delay: 160ms; }
html.js .mf-idx[data-io].is-in .mf-idx__g:nth-child(4) { animation-delay: 240ms; }
html.js .mf-idx[data-io].is-in .mf-idx__k::after { animation: mf-idx-shine 3.4s var(--ease-out) .7s 2 both; }
html.js .mf-idx[data-io].is-in .mf-idx__k i { animation: mf-idx-tap 3.4s var(--ease-out) .7s 2 both; }
html.js .mf-idx[data-io].is-in .mf-idx__g:nth-child(2) .mf-idx__k::after, html.js .mf-idx[data-io].is-in .mf-idx__g:nth-child(2) .mf-idx__k i { animation-delay: .88s; }
html.js .mf-idx[data-io].is-in .mf-idx__g:nth-child(3) .mf-idx__k::after, html.js .mf-idx[data-io].is-in .mf-idx__g:nth-child(3) .mf-idx__k i { animation-delay: 1.06s; }
html.js .mf-idx[data-io].is-in .mf-idx__g:nth-child(4) .mf-idx__k::after, html.js .mf-idx[data-io].is-in .mf-idx__g:nth-child(4) .mf-idx__k i { animation-delay: 1.24s; }
.mf-idx__k:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.mf-idx__g > a:not(.mf-idx__k) { display: flex; align-items: baseline; gap: 10px; min-height: 44px; box-sizing: border-box; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: background .2s var(--ease-out), padding .2s var(--ease-out); }
.mf-idx__g > a:not(.mf-idx__k) span { flex: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--mf-blue-text); }
@media (hover: hover) and (pointer: fine) { .mf-idx__g > a:not(.mf-idx__k):hover { background: var(--surface-2); padding-left: 22px; padding-right: 10px; color: var(--navy); text-decoration-color: var(--navy); } }
.mf-idx__g > a:focus-visible, .mf-tab:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
/* a way in for the reader who cannot name the problem yet */
.mf-idx__more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 16px 0 0; padding: 16px 20px 18px; background: var(--white); border: 1px solid var(--line-strong); border-left: 6px solid var(--green); }
.mf-idx__more p { flex: 1 1 340px; margin: 0; font-family: 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 1.8; color: var(--ink); }
.mf-idx__more b { color: var(--navy); }

/* --- 2. tour ----------------------------------------------------------------- */
.mf-tour { margin-top: 44px; }
.mf-tour__rail { padding: 14px 14px 14px; background: var(--navy-deep); }
.mf-tour__fig { margin: 0 0 14px; }
.mf-tour__stage { position: relative; }
.mf-tour__tabs { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mf-tab { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 52px; box-sizing: border-box; padding: 7px 12px 7px 10px; border-left: 4px solid transparent; background: rgba(255, 255, 255, .05); color: var(--white); text-decoration: none; transition: background var(--dur-3) var(--ease-soft), color var(--dur-3) var(--ease-soft); }
.mf-tab b { grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mf-tc); color: var(--navy); font-size: 14px; font-weight: 900; line-height: 1; }
.mf-tab span { font-size: 15px; font-weight: 700; line-height: 1.4; }
.mf-tab em { font-style: normal; font-size: 13px; line-height: 1.4; color: var(--on-dark-muted); }
@media (hover: hover) { .mf-tab:hover { background: rgba(255, 255, 255, .12); } }
.mf-tab[aria-current="true"] { background: var(--white); border-left-color: var(--mf-tc); color: var(--navy); }
.mf-tab[aria-current="true"] em { color: var(--muted); }
/* the survey button rides with the pinned model on tall desktop screens only */
.mf-tour__cta { display: none; }
/* phones: the model is not pinned, so a slim strip under the page index says which level is being read */
.mf-now { display: none; }

/* the model follows the reading: the level in view keeps its colour and its motion, the others dim and hold still */
.mf-tour .mfm-t, .mf-tour .mfm-obj, .mf-tour .mf-model__n { animation: none; }
.mf-tour .mfm-t { transition: filter .45s var(--ease-soft); }
.mf-tour .mf-model__n { transition: background-color .3s var(--ease-soft), color .3s var(--ease-soft), transform .3s var(--ease-out); }
html.js .mf-tour .mfm-t { cursor: pointer; }
.mf-tour[data-tier="1"] .mfm-t:not(.mfm-t1), .mf-tour[data-tier="2"] .mfm-t:not(.mfm-t2),
.mf-tour[data-tier="3"] .mfm-t:not(.mfm-t3), .mf-tour[data-tier="4"] .mfm-t:not(.mfm-t4) { filter: saturate(.18) brightness(.68); }
.mf-tour[data-tier="1"] .mfm-t:not(.mfm-t1) *, .mf-tour[data-tier="2"] .mfm-t:not(.mfm-t2) *,
.mf-tour[data-tier="3"] .mfm-t:not(.mfm-t3) *, .mf-tour[data-tier="4"] .mfm-t:not(.mfm-t4) * { animation-play-state: paused; }
.mf-tour[data-tier="1"] .mf-model__n:not(.mf-model__n1), .mf-tour[data-tier="2"] .mf-model__n:not(.mf-model__n2),
.mf-tour[data-tier="3"] .mf-model__n:not(.mf-model__n3), .mf-tour[data-tier="4"] .mf-model__n:not(.mf-model__n4) { background: #2A3F56; color: #C6D3E0; }
.mf-tour[data-tier="1"] .mf-model__n1, .mf-tour[data-tier="2"] .mf-model__n2,
.mf-tour[data-tier="3"] .mf-model__n3, .mf-tour[data-tier="4"] .mf-model__n4 { transform: scale(1.3); }

/* one level = one block. A spine in the level colour runs down its whole height, the ground behind its
   cards is a pale tint of that colour, and the head says what the level covers and what is inside. */
.mf-ch--t1 { --mf-tint: #FFF3CC; } .mf-ch--t2 { --mf-tint: #FCE4D4; } .mf-ch--t3 { --mf-tint: #DDF1E6; } .mf-ch--t4 { --mf-tint: #DCEDFB; }
.mf-ch { scroll-margin-top: 132px; border-left: 10px solid var(--mf-tc); background: var(--mf-tint); }
.mf-ch + .mf-ch { margin-top: 56px; }
.mf-ch__hd { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: center; padding: 16px 22px 8px 16px; background: var(--navy-deep); }
.mf-ch__no { display: grid; place-items: center; width: 68px; height: 68px; margin: 0; background: var(--mf-tc); font-size: 42px; font-weight: 900; line-height: 1; color: var(--navy); }
.mf-ch__k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--on-dark-muted); }
.mf-ch__k b { font-weight: 900; letter-spacing: .14em; color: var(--mf-tc); }
.mf-ch__t { margin: 0; font-size: clamp(22px, 2.3vw, 28px); font-weight: 900; line-height: 1.35; color: var(--white); }
.mf-ch__meta { grid-column: 1 / -1; display: grid; gap: 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.mf-ch__meta div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 2px 14px; align-items: baseline; padding: 9px 0 0; }
.mf-ch__meta div + div { padding-top: 0; }
.mf-ch__meta div + div dt { align-self: start; padding-top: 12px; }
.mf-ch__meta dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--blue-pale); }
.mf-ch__meta dd { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--white); }
.mf-ch__meta a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 4px; }
.mf-ch__meta a b { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--mf-tc); }
@media (hover: hover) { .mf-ch__meta a:hover { text-decoration-color: var(--white); } }
.mf-ch__meta a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.mf-ch__in { padding: 16px 18px 18px; }
.mf-ch__p { margin: 0; max-width: 46em; font-family: 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 1.85; color: var(--ink); }

/* --- 3. one solution ----------------------------------------------------------- */
.mf-sol { margin-top: 16px; background: var(--white); border: 1px solid var(--line-strong); scroll-margin-top: 132px; }
.mf-sol__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.mf-sol__q { display: grid; align-content: start; gap: 6px; margin: 0; padding: 18px 22px 20px; background: var(--surface-2); }
.mf-sol__q b, .mf-sol__lab { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.mf-sol__q b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); }
.mf-sol__q b i { padding: 2px 8px; background: var(--mf-tc); font-style: normal; font-weight: 900; color: var(--navy); }
.mf-sol__q span { font-size: 17px; font-weight: 700; line-height: 1.55; color: var(--navy); }
.mf-sol__a { padding: 18px 22px 20px; background: var(--navy); }
.mf-sol__lab { margin-bottom: 6px; color: var(--blue-pale); }
.mf-sol__t { margin: 0; font-size: 19px; font-weight: 900; line-height: 1.45; color: var(--white); }
.mf-sol__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--on-dark-muted); }
.mf-sol__name b { font-size: 15px; font-weight: 900; letter-spacing: .04em; color: var(--mf-tc); }
.mf-sol__how { margin: 0; padding: 18px 22px 0; font-family: 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 1.9; color: var(--ink); }
.mf-sol__main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; padding: 18px 22px 22px; }

/* a screen: the bar says where it sits and who looks at it; the window below carries the screen's own name */
.mf-scr { margin: 0; border: 1px solid var(--line-strong); background: var(--surface-2); }
.mf-scr__bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; padding: 8px 14px 9px; background: var(--navy-deep); border-top: 4px solid var(--mf-tc); }
.mf-scr__bar b { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; color: var(--mf-tc); }
.mf-scr__bar span { font-size: 13px; line-height: 1.5; color: var(--on-dark-muted); }
.mf-win { margin: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 14px 26px -18px rgba(11, 32, 54, .55); }
.mf-win__bar { display: flex; align-items: center; margin: 0; padding: 8px 12px; background: var(--white); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.mf-win__bar i { flex: none; width: 8px; height: 8px; margin-right: 38px; border-radius: 50%; background: var(--line-strong); box-shadow: 13px 0 0 var(--line-strong), 26px 0 0 var(--line-strong); }
/* machine, inspection station, hand scanner: a dark panel with the picture and three readouts */
.mf-hmi { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px 12px 10px 6px; background: var(--navy-deep); }
.mf-hmi__pic { font-size: 0; }
.mf-hmi__pic .mfm { height: 136px; }
.mf-hmi__st { display: grid; gap: 5px; margin: 0; }
.mf-hmi__st div { padding: 5px 10px 6px; background: rgba(255, 255, 255, .07); border-left: 3px solid var(--mf-tc); }
.mf-hmi__st dt { font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .1em; color: var(--on-dark-muted); }
.mf-hmi__st dd { margin: 0; font-size: 17px; font-weight: 900; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--white); }
.mf-hmi__st dd.is-ok::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--green); }
.mf-hmi__st dd.is-flag { color: var(--amber); }
.mf-scr > figcaption { padding: 8px 14px 10px; background: var(--white); border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted); }

.mf-get { margin: 0; }
.mf-get__t { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--navy); }
.mf-get ul { margin: 0; padding: 0; list-style: none; }
.mf-get li { position: relative; padding: 5px 0 5px 20px; font-size: 15px; line-height: 1.65; color: var(--ink); }
.mf-get li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; background: var(--blue); }
.mf-case { margin: 16px 0 0; padding: 12px 14px; background: var(--surface); border-left: 4px solid var(--green); font-size: 15px; line-height: 1.7; color: var(--ink); }
.mf-case b { color: var(--mf-green-text); }
.mf-case a { color: var(--mf-blue-text); font-weight: 700; text-underline-offset: 3px; }

@media (min-width: 1000px) {
  .mf-tour { display: grid; grid-template-columns: 348px minmax(0, 1fr); column-gap: 36px; align-items: start; }
  .mf-tour__rail { position: sticky; top: 132px; }
}
@media (min-width: 1000px) and (min-height: 820px) {
  .mf-tour__cta { display: grid; gap: 6px; margin: 12px 0 0; }
  .mf-tour__cta .btn { justify-content: center; box-sizing: border-box; width: 100%; padding-left: 8px; padding-right: 8px; font-size: 15px; text-align: center; }
  .mf-tour__cta span { font-size: 13px; line-height: 1.5; text-align: center; color: var(--on-dark-muted); }
}
@media (min-width: 1000px) and (max-height: 720px) {
  .mf-tab { min-height: 44px; }
  .mf-tab em { display: none; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .mf-tour { grid-template-columns: 300px minmax(0, 1fr); column-gap: 28px; }
  .mf-sol__main { grid-template-columns: 1fr; }
}
@media (max-width: 1040px) {
  .mf-idx { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 999px) {
  .mf-ch, .mf-sol { scroll-margin-top: 166px; }
  html.js .mf-tour[data-tier] .mf-now { position: sticky; top: 117px; z-index: 3; display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 7px 12px 8px; background: var(--navy-deep); font-size: 14px; line-height: 1.5; color: var(--white); }
  .mf-now__st { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
  .mf-now__st i { width: 9px; height: 8px; background: #41566D; }
  .mf-now__st i:nth-child(2) { height: 12px; } .mf-now__st i:nth-child(3) { height: 16px; } .mf-now__st i:nth-child(4) { height: 20px; }
  .mf-now b { display: none; font-weight: 700; }
  .mf-tour[data-tier="1"] .mf-now__t1, .mf-tour[data-tier="2"] .mf-now__t2, .mf-tour[data-tier="3"] .mf-now__t3, .mf-tour[data-tier="4"] .mf-now__t4 { display: block; }
  .mf-tour[data-tier="1"] .mf-now__st i:nth-child(1) { background: var(--amber); }
  .mf-tour[data-tier="2"] .mf-now__st i:nth-child(2) { background: var(--orange); }
  .mf-tour[data-tier="3"] .mf-now__st i:nth-child(3) { background: var(--green); }
  .mf-tour[data-tier="4"] .mf-now__st i:nth-child(4) { background: var(--blue-pale); }
  .mf-tour__rail { margin-bottom: 32px; }
  .mf-tour__fig { max-width: 440px; margin: 0 auto 14px; }
  .mf-tour__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mf-sol__top, .mf-sol__main { grid-template-columns: 1fr; }
  .mf-sol__q, .mf-sol__a { padding: 16px 16px 18px; }
  .mf-sol__how { padding: 16px 16px 0; }
  .mf-sol__main { padding: 16px; }
  .mf-win { margin: 10px; }
  .mf-ch { border-left-width: 6px; }
  .mf-ch__hd { gap: 12px 14px; padding: 14px 14px 8px 12px; }
  .mf-ch__meta div + div dt { padding-top: 6px; }
  .mf-ch__no { width: 52px; height: 52px; font-size: 32px; }
  .mf-ch__meta div { grid-template-columns: 1fr; }
  .mf-ch__in { padding: 14px 10px 14px; }
}
@media (max-width: 600px) {
  .mf-idx { grid-template-columns: 1fr; }
  .mf-idx__g { grid-row: auto; grid-template-rows: none; }
  .mf-tour__tabs { grid-template-columns: 1fr; }
}

/* --- 4. figures: one small picture per problem, each a different form --------- */
.mf-fig { margin: 0; padding: 14px 14px 14px; }
.mf-fig__t { margin: 0 0 12px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.mf-chip { display: inline-block; padding: 3px 9px; font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.mf-chip--ok { background: var(--mf-green-text); color: var(--white); }
.mf-chip--wait { background: var(--amber); color: var(--navy); }
.mf-chip--stop { background: var(--orange); color: var(--navy); }

/* 1. chain of stations on a belt: two rows of three */
.mf-chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.mf-chain li { counter-increment: st; padding: 10px 10px 12px; background: var(--white); border-top: 8px solid var(--blue); font-size: 13px; line-height: 1.5; color: var(--ink); }
.mf-chain li::before { content: counter(st); display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-bottom: 8px; background: var(--navy); color: var(--white); font-size: 14px; font-weight: 700; }
.mf-chain li.is-chk { border-top-color: var(--green); }

/* 2. sampling vs every product */
.mf-dots { display: grid; gap: 14px; margin: 0; }
.mf-dots dt { margin: 0 0 7px; font-size: 14px; font-weight: 700; color: var(--navy); }
.mf-dots dd { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; margin: 0; }
.mf-dots i { display: block; aspect-ratio: 1; max-width: 18px; background: var(--line-strong); }
.mf-dots i.is-chk { background: var(--blue); }
.mf-dots i.is-ng { background: var(--orange); }
.mf-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink); }
.mf-key li { display: inline-flex; align-items: center; gap: 7px; }
.mf-key i { width: 12px; height: 12px; background: var(--line-strong); }
.mf-key i.is-chk { background: var(--blue); }
.mf-key i.is-ng { background: var(--orange); }

/* 3. ranked bars */
.mf-bars { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px 12px; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink); }
.mf-bars li { display: contents; }
.mf-bars b { font-weight: 400; }
.mf-bars span { display: block; height: 16px; background: var(--line); }
.mf-bars span i { display: block; height: 100%; background: var(--navy-mid); }
.mf-bars li:first-child span i { background: var(--orange); }
.mf-bars em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy); text-align: right; }
.mf-w100 { width: 100%; } .mf-w83 { width: 83%; } .mf-w77 { width: 77%; } .mf-w55 { width: 55%; } .mf-w51 { width: 51%; } .mf-w42 { width: 42%; } .mf-w32 { width: 32%; }

/* 4. line board */
.mf-lines { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mf-lines li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 9px 10px; background: var(--white); font-size: 14px; color: var(--ink); }
.mf-lines b { color: var(--navy); }
.mf-lines .mf-chip { justify-self: start; }
.mf-lines span.mf-track { grid-column: 1 / -1; grid-row: 2; display: block; height: 10px; background: var(--line); }
.mf-lines span.mf-track i { display: block; height: 100%; background: var(--blue); }
.mf-lines em { font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 5. order board */
.mf-tbl { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--ink); background: var(--white); }
.mf-tbl th, .mf-tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-variant-numeric: tabular-nums; }
.mf-tbl thead th { background: var(--navy); border-bottom: 0; color: var(--white); font-size: 13px; font-weight: 700; }
.mf-tbl tbody th { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* 6. scan flow: three blocks, each with a small pointer to the next (shapes, not arrow glyphs) */
.mf-flow { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mf-flow li { padding: 10px 16px 20px; background: var(--navy-mid); color: var(--white); font-size: 13px; line-height: 1.55; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 48px calc(100% - 10px), 34px 100%, 20px calc(100% - 10px), 0 calc(100% - 10px)); }
.mf-flow li:last-child { padding-bottom: 12px; clip-path: none; }
.mf-flow li:nth-child(2) { background: var(--blue); }
.mf-flow li:nth-child(3) { background: var(--navy); }
.mf-flow b { display: block; margin-bottom: 2px; font-size: 15px; }

/* 7. lot trace: a rail with stops */
.mf-trace { margin: 0; padding: 0 0 0 22px; list-style: none; border-left: 4px solid var(--blue); }
.mf-trace li { position: relative; margin: 0 0 8px; padding: 9px 12px; background: var(--white); font-size: 14px; line-height: 1.6; color: var(--ink); }
.mf-trace li:last-child { margin-bottom: 0; }
.mf-trace li::before { content: ""; position: absolute; left: -33px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); border: 3px solid var(--surface); box-sizing: border-box; }
.mf-trace b { display: block; font-size: 13px; letter-spacing: .04em; color: var(--mf-blue-text); }
.mf-trace li.is-flag { background: var(--navy); color: var(--white); }
.mf-trace li.is-flag b { color: var(--amber); }
.mf-trace li.is-flag::before { background: var(--orange); }

/* 8. management board tiles */
.mf-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mf-kpi li { display: grid; grid-template-rows: auto 1fr; gap: 2px; padding: 10px 12px 12px; background: var(--white); border-top: 5px solid var(--navy-mid); }
.mf-kpi b { font-size: 28px; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--navy); }
.mf-kpi span { font-size: 14px; line-height: 1.5; color: var(--ink); }
.mf-kpi li.is-flag { border-top-color: var(--orange); }

@media (max-width: 560px) {
  .mf-tbl th, .mf-tbl td { padding: 8px 6px; font-size: 13px; }
  .mf-dots dd { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-tour *, .mf-tab, .mf-idx *, .mf-idx *::after { transition: none !important; animation: none !important; }
  html.js .mf-idx[data-io] .mf-idx__g { opacity: 1; transform: none; }
}
