/* A local, readable distance–time model. HTML labels retain their size on phones. */
.arch-march{--march-walk:var(--accent,#2457d6);--march-rest:var(--play-accent,#d98b00);display:grid;gap:20px;min-width:0;color:var(--ink)}
.arch-march p{margin:0;line-height:1.55}
.arch-march .arch-march-readouts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:10px}
.arch-march .arch-march-readout{display:grid;gap:3px;background:var(--play-stage,#fff);border:1px solid var(--play-line,#e1d7c7);border-radius:16px;padding:14px;min-width:0}
.arch-march .arch-march-readout span{font-size:15px;color:var(--ink-2)}
.arch-march .arch-march-readout strong{font-size:clamp(23px,4vw,32px);font-variant-numeric:tabular-nums;line-height:1.2;white-space:nowrap}
.arch-march .arch-march-state{padding:12px 16px;border-left:4px solid var(--march-walk);background:var(--play-stage,#fff);border-radius:0 12px 12px 0;min-height:3.2em}
.arch-march .arch-march-state[data-rest=true]{border-left-color:var(--march-rest)}
.arch-march .arch-march-state strong{display:block;margin-bottom:3px}
.arch-march .arch-march-state span{color:var(--ink-2);font-size:15px}
.arch-march .arch-march-control{display:grid;gap:4px;min-width:0}
.arch-march .arch-march-control label{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;font-size:16px}
.arch-march input[type=range]{width:100%;min-width:0;min-height:44px;margin:0;accent-color:var(--march-walk);cursor:pointer;touch-action:pan-y}
.arch-march .arch-march-range-ends{display:flex;justify-content:space-between;font-size:14px;color:var(--ink-2);margin-top:-4px}
.arch-march .arch-march-actions{display:flex;flex-wrap:wrap;gap:8px}
.arch-march .arch-march-actions button{background:var(--play-stage,#fff);color:var(--ink);border:1px solid var(--ink-3);min-height:44px;min-width:44px;border-radius:999px;padding:9px 14px;font:inherit;font-size:16px;line-height:1.4;cursor:pointer}
.arch-march .arch-march-actions .arch-march-play{background:var(--ink);color:var(--on-ink,#fff);border-color:var(--ink)}
.arch-march .arch-march-actions button[aria-disabled=true]{opacity:.5;cursor:default}
.arch-march :is(button,input,summary):focus-visible{outline:3px solid var(--accent,#2457d6);outline-offset:3px}
.arch-march .arch-march-static{display:flex;align-items:center;gap:8px;min-height:44px;font-size:15px;font-weight:400}
.arch-march .arch-march-static input{width:20px;height:20px;accent-color:var(--march-walk);margin:0}
.arch-march .arch-march-note{font-size:15px;color:var(--ink-2)}
.arch-march .arch-march-graph{padding:16px 12px 16px 8px;background:var(--play-stage,#fff);border:1px solid var(--play-line,#e1d7c7);border-radius:18px;min-width:0}
.arch-march .arch-march-axis-title{font-size:16px;font-weight:600;margin:0 0 18px 8px;line-height:1.4}
.arch-march .arch-march-axis-bottom{text-align:right;margin:12px 0 0;font-size:15px;color:var(--ink-2)}
.arch-march .arch-march-plot-wrap{display:grid;grid-template-columns:34px minmax(0,1fr);padding-right:12px}
.arch-march .arch-march-y-labels{position:relative;height:240px}
.arch-march .arch-march-y-labels span{position:absolute;right:9px;transform:translateY(-50%);font-size:15px;font-variant-numeric:tabular-nums;color:var(--ink-2)}
.arch-march .arch-march-plot{position:relative;height:240px;border-left:1px solid var(--ink-3);border-bottom:1px solid var(--ink-3);min-width:0}
.arch-march .arch-march-plot svg{display:block;width:100%;height:100%;overflow:visible}
.arch-march .arch-march-grid{stroke:var(--line-2,#dae1ed);stroke-width:1;vector-effect:non-scaling-stroke}
.arch-march .arch-march-line{fill:none;stroke:var(--march-walk);stroke-width:3;stroke-linecap:round;vector-effect:non-scaling-stroke}
.arch-march .arch-march-line[data-rest=true]{stroke:var(--march-rest);stroke-width:4}
.arch-march .arch-march-cursor{position:absolute;top:0;bottom:0;width:1px;background:var(--ink-3);opacity:.45;pointer-events:none}
.arch-march .arch-march-dot{position:absolute;width:17px;height:17px;border-radius:50%;background:var(--march-walk);border:3px solid var(--play-stage,#fff);outline:2px solid var(--march-walk);transform:translate(-50%,-50%);pointer-events:none;box-sizing:border-box}
.arch-march .arch-march-dot[data-rest=true]{background:var(--march-rest);outline-color:var(--march-rest)}
.arch-march .arch-march-x-labels{position:relative;grid-column:2;height:25px;margin-top:9px;font-size:15px;font-variant-numeric:tabular-nums;color:var(--ink-2)}
.arch-march .arch-march-x-labels span{position:absolute;transform:translateX(-50%)}
.arch-march .arch-march-x-labels span:first-child{transform:none}
.arch-march .arch-march-x-labels span:last-child{transform:translateX(-100%)}
.arch-march .arch-march-legend{display:flex;gap:10px 18px;flex-wrap:wrap;margin-top:12px;padding-left:8px;font-size:15px;color:var(--ink)}
.arch-march .arch-march-legend span{display:flex;align-items:center;gap:7px}
.arch-march .arch-march-swatch{width:24px;height:4px;flex-shrink:0;background:var(--march-walk);border-radius:4px}
.arch-march .arch-march-swatch[data-rest=true]{background:var(--march-rest)}
.arch-march .arch-march-experiment{border-top:1px solid var(--play-line,#e1d7c7);padding-top:14px}
.arch-march .arch-march-experiment summary{min-height:44px;cursor:pointer;font-weight:600;line-height:1.5;padding:8px 0}
.arch-march .arch-march-experiment-body{display:grid;gap:14px;padding-top:14px}
.arch-march .arch-march-comparison{border-radius:12px;padding:14px;background:var(--play-stage,#fff);border:1px solid var(--play-line,#e1d7c7)}
.arch-march .arch-march-comparison strong{display:block;margin-bottom:4px}
@media(max-width:360px){.arch-march .arch-march-readout{padding:11px}.arch-march .arch-march-readout strong{font-size:23px}.arch-march .arch-march-actions button{padding-inline:12px}.arch-march .arch-march-graph{padding-right:8px;padding-left:4px}}
@media(prefers-reduced-motion:reduce){.arch-march *{scroll-behavior:auto}}
