/* /how-its-made: the manufacturing path. Markup from web/scripts/build-path.mjs; theme tokens only. Phone first. */

.mp-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; color: var(--text-muted); }
.mp-big { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.75rem; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.mp-small { font-size: 0.8125rem; color: var(--text-muted); }
.mp-h3 { margin-top: 28px; }

.mp-chip { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: 1px; }
.mp-chip.actual { background: var(--accent); color: var(--accent-ink); }
.mp-chip.quoted { border: 1.5px solid var(--teal); color: var(--teal-text); background: var(--teal-bg); }
.mp-chip.estimate { border: 1.5px dashed var(--gold); color: var(--text); }
.mp-legend { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; color: var(--text-muted); padding: 0; margin: 8px 0 16px; }

.mp-phases { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.mp-phases th, .mp-phases td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.mp-phases th[scope="row"], .mp-phases thead th:first-child { text-align: left; }
.mp-phases thead th { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.mp-phases small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--text-muted); }

.mp-graph-wrap { margin: 12px 0 8px; max-width: 520px; }
.mp-graph { display: block; width: 100%; height: auto; font-family: inherit; }
.mp-band { fill: var(--surface); stroke: var(--line); }
.mp-band-t { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--text-muted); }
.mp-edge { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.mp-edge.crit { stroke: var(--accent); stroke-width: 2; }
.mp-edge.opt { stroke-dasharray: 3 3; }
.mp-arrowhead { fill: var(--line-strong); }
.mp-node rect { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.5; }
.mp-node.quoted rect { stroke: var(--teal); }
.mp-node.actual rect { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); }
.mp-node.estimate rect { stroke: var(--gold); stroke-dasharray: 4 3; }
.mp-node.opt rect { opacity: 0.6; }
.mp-node.crit rect { stroke-width: 2.5; }
.mp-node:hover rect, .mp-node:focus rect { fill: var(--surface-3); }
.mp-node-t { font-size: 11px; font-weight: 700; fill: var(--text); }
.mp-node-n { font-size: 9.5px; fill: var(--text-muted); font-variant-numeric: tabular-nums; }

.mp-phase { margin-top: 32px; }
.mp-phase-sum { font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-step { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 14px 10px; margin: 12px 0; background: var(--surface); scroll-margin-top: 80px; }
.mp-step:target { outline: 2px solid var(--accent); outline-offset: 2px; }
.mp-step.opt { border-style: dashed; }
.mp-step h4 { margin: 0 0 8px; font-size: 1.0625rem; line-height: 1.3; }
.mp-done, .mp-ifneeded { font-size: 0.75rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; vertical-align: 2px; }
.mp-done { background: var(--accent); color: var(--accent-ink); }
.mp-ifneeded { border: 1.5px dashed var(--line-strong); color: var(--text-muted); }
.mp-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 0.9375rem; }
.mp-facts div { display: contents; }
.mp-facts dt { color: var(--text-muted); }
.mp-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.mp-when { position: relative; height: 8px; margin: 12px 0 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.mp-when span { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.mp-when-hi { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.mp-when-lo { background: var(--accent); }
.mp-when-t, .mp-src { font-size: 0.8125rem; color: var(--text-muted); margin: 4px 0; }
.mp-lines { margin: 8px 0; }
.mp-lines summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.mp-lines table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.mp-lines th, .mp-lines td { padding: 6px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.mp-lines td { text-align: right; padding-left: 8px; width: 38%; }
.mp-v { white-space: nowrap; display: block; }
.mp-lines small { display: block; color: var(--text-muted); font-size: 0.75rem; }
.mp-qty { color: var(--text-muted); }
.mp-lines th { overflow-wrap: anywhere; }
.mp-part th { padding-left: 14px; color: var(--text-muted); }
.mp-part td { color: var(--text-muted); }
.mp-notes { margin: 10px 0 4px; padding: 8px 12px; border-radius: var(--r-sm); font-size: 0.9rem; }
.mp-notes h5 { margin: 0 0 4px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.mp-notes ul { margin: 0; padding-left: 18px; }
.mp-notes.lesson { background: var(--teal-bg); }
.mp-notes.open { background: var(--surface-2); }

.mp-compare { margin: 16px 0; padding: 12px 14px; border: 1px solid var(--accent); border-radius: var(--r-md); background: var(--surface); }
.mp-compare h4 { margin: 0 0 8px; }
.mp-compare table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.mp-compare th, .mp-compare td { padding: 6px 4px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.mp-compare thead th { font-weight: 600; border-top: 0; }
.mp-compare p { font-size: 0.875rem; margin: 8px 0 0; }
