/* Line map of Milan: the route from the Duomo to the atelier (markup: src/mappa.mjs, motion: js/mappa.js).
   The figure fills its container: give the container a size. Nothing is hidden here:
   the drawing states are set by mappa.js only when motion is allowed.
   --mp-u = map units per screen pixel, set by mappa.js on the svg while the camera zooms, so strokes
   and type keep the same size on screen at every zoom (the default is the markup's own framing). */
.mappa{position:relative;margin:0;width:100%;height:100%;min-height:320px}
.mappa-svg{--mp-u:1.4;position:absolute;inset:0;display:block;width:100%;height:100%;overflow:hidden}

/* streets: widths are screen pixels (× --mp-u = map units) */
.mappa .mp-major{stroke-width:calc(var(--mp-u) * 1.9px)}
.mappa .mp-medium{stroke-width:calc(var(--mp-u) * 1.4px)}
.mappa .mp-minor{stroke-width:calc(var(--mp-u) * .85px)}
.mappa .mp-route,.mappa .mp-dis{stroke-width:calc(var(--mp-u) * 3.2px)}
.mappa .mp-street{font-family:var(--sans);font-size:calc(var(--mp-u) * 11px);letter-spacing:.02em}
.mappa .mp-dot,.mappa .mp-halo,.mappa .mp-tag{transform-box:fill-box;transform-origin:center}
.mappa .mp-tag{transform-origin:left bottom}
.mappa .mp-tag-bg{fill:#fff} /* white, the address in black (client 23/11) */
.mappa .mp-tag-t{font-family:var(--sans);font-size:26px;font-weight:500;fill:#000;letter-spacing:.01em}
.mappa .mp-tag-s{font-family:var(--sans);font-size:18px;font-weight:400;fill:#333;letter-spacing:.02em}
.mappa .mp-duomo-t{font-family:var(--sans);font-size:15px;font-weight:500;letter-spacing:.04em;fill:#fff}
.mappa .mp-duomo-dot{fill:#fff}
.mappa-attr{position:absolute;right:var(--g);bottom:14px;z-index:2;font-family:var(--sans);font-size:13px;line-height:1.3;color:var(--smoke)}
.mappa-attr a{text-decoration:underline;text-underline-offset:2px}

/* dark: white lines on black, the route in full white, the label on royal */
.mappa--dark .mp-major{stroke:rgba(255,255,255,.62)}
.mappa--dark .mp-medium{stroke:rgba(255,255,255,.46)}
.mappa--dark .mp-minor{stroke:rgba(255,255,255,.27)}
.mappa--dark .mp-route,.mappa--dark .mp-dis{stroke:#fff}
.mappa--dark .mp-street{fill:var(--smoke)}
.mappa--dark .mp-dot{fill:#fff}
.mappa--dark .mp-halo{fill:none;stroke:#fff;stroke-width:1.5;opacity:.6}
.mappa--dark .mp-tag-bg{stroke:none}
.mappa--dark .mp-duomo-t{paint-order:stroke;stroke:#000;stroke-width:3px;stroke-linejoin:round}

/* light: black lines on white, the route in royal */
.mappa--light .mp-major{stroke:rgba(0,0,0,.7)}
.mappa--light .mp-medium{stroke:rgba(0,0,0,.5)}
.mappa--light .mp-minor{stroke:rgba(0,0,0,.28)}
.mappa--light .mp-route,.mappa--light .mp-dis{stroke:var(--royal)}
.mappa--light .mp-street{fill:#6b6b6b}
.mappa--light .mp-dot{fill:var(--royal)}
.mappa--light .mp-halo{fill:none;stroke:var(--royal);stroke-width:1.5;opacity:.6}
.mappa--light .mappa-attr{color:#6b6b6b}
.mappa--light .mp-duomo-t,.mappa--light .mp-duomo-dot{fill:#000}
.mappa--light .mp-duomo-t{paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
.mappa--light .mp-tag-bg{stroke:#000;stroke-width:1} /* the white tag on the white map keeps an edge */
