@font-face{font-family:'IBM Plex Mono';src:url('/fonts/ibm-plex-mono-regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('/fonts/ibm-plex-mono-medium.woff2') format('woff2');font-weight:500 700;font-display:swap}
/* The art and its colours come from the iso kit (iso.js, --ix-* tokens, light and dark); this sheet places the map's own parts. */
.port-map{--water:#b9d9e5;position:relative;overflow:hidden;min-width:0;min-height:0;background:var(--water);isolation:isolate}
[data-theme=dark] .port-map{--water:#102b40}
.port-viewport{width:100%;height:100%;display:block;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;overflow:hidden}.port-viewport:active{cursor:grabbing}.port-map *{user-select:none;-webkit-user-select:none}
.ix-plate.is-shoal .ix-pl{fill:var(--ix-shoal);fill-opacity:.85;stroke:none}.quay-top{fill:transparent;stroke:none}[data-district-target]{cursor:pointer}
.lock-boom{fill:none;stroke:var(--ix-warn);stroke-width:5;stroke-linecap:round}
.station-name,.arrival-copy{font:14px 'IBM Plex Mono',monospace;fill:var(--ix-ink);text-anchor:middle;paint-order:stroke;stroke:var(--ix-quay);stroke-width:4px;stroke-linejoin:round}.station-name{text-anchor:start}
/* Layers: built ones are solid containers; the rest are footprints on the quay; locked ones are faint. */
.port-node{cursor:pointer;outline:none}.box-hit{fill:transparent;stroke:none}.port-node .node-art,.port-node .cg,.port-node text{pointer-events:none}
/* Hit areas follow what is drawn: each node's exact hull is drawn in its slot order, so the container in front wins. On touch sizes map.js grows the
   prisms into one pad path per district, under every container, until each is 44 px; it only catches what no hull does. */
.box-pad{fill:transparent;stroke:none;cursor:pointer}.port-district .box-pad{pointer-events:visiblePainted}
.is-cached .cache-solid{opacity:.6}
/* A locked layer keeps its footprint but as a dotted outline (the kit's slot plate reads these properties). */
.port-node.is-locked{--slot-fill:none;--slot-dash:1 5;--slot-cap:round}
/* Decor is inert: it takes no pointer, shows the default cursor and has no hover state. Only the quay ground, the nodes and their pads, the built image,
   the open incident and the district signs answer the pointer. */
.port-district,.port-land,.arrival-pier,.port-gates,.port-flags,.port-swimmers,.port-geography,.finale-flag,.head-marker,.demo-cargo,.ocean-backdrop{cursor:default;pointer-events:none}
.port-district .quay-top,.port-district .image-stack,.port-district .district-image{pointer-events:visiblePainted}
.port-district .district-image{cursor:pointer}
.port-node,.port-incidents{pointer-events:visiblePainted}
.head-marker .ix-mk{font-weight:700;stroke:var(--ix-paper);stroke-width:5px}.head-marker .ix-chev{fill:var(--ix-sel)}
/* The tag: kind, title and status in screen space; it never takes the pointer. */
.node-tag{position:absolute;left:0;top:0;z-index:3;display:grid;grid-template-columns:1fr auto;gap:1px 12px;align-items:baseline;max-width:min(280px,calc(100% - 16px));padding:7px 11px 8px;border:1px solid var(--line);border-left:3px solid var(--tag,var(--purple));border-radius:8px;background:color-mix(in srgb,var(--paper) 96%,transparent);box-shadow:0 6px 18px -8px #102b4066;pointer-events:none;will-change:transform}
.node-tag .tag-kind{font:600 11px/1.3 'IBM Plex Mono',monospace;letter-spacing:.06em;text-transform:uppercase;color:var(--purple)}
.node-tag .tag-status{font:12px/1.3 'IBM Plex Mono',monospace;color:var(--muted);white-space:nowrap}.node-tag .tag-status:before{content:'';display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:var(--muted)}
.node-tag[data-status=done] .tag-status:before{background:#2f9e62}.node-tag[data-status=cached] .tag-status:before{background:#6f9a9a}.node-tag[data-status=available] .tag-status:before{background:var(--purple)}.node-tag[data-status=locked] .tag-status:before{background:transparent;border:1.5px solid var(--muted)}
.node-tag .tag-title{grid-column:1/-1;font:650 14px/1.3 Manrope,sans-serif;color:var(--ink);overflow-wrap:anywhere}
.port-map[data-moving] .node-tag{display:none}
.box-outline{pointer-events:none;fill:transparent;stroke:transparent;stroke-width:3;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.port-node.is-selected .box-outline,.selection-outline .box-outline{stroke:var(--ink)}.port-node:focus-visible .box-outline{stroke:var(--purple);stroke-width:4}
.port-map:has(.port-node.is-selected:focus-visible) .selection-outline .box-outline{stroke:var(--purple);stroke-width:4}.selection-outline{pointer-events:none}
.port-node.is-highlighted .box-outline{stroke:var(--purple);stroke-width:3;fill:color-mix(in srgb,var(--purple) 14%,transparent)}
.is-locked .ix-pl{fill:none;stroke-dasharray:1 5;stroke-linecap:round}.is-cached polygon.ix-b{opacity:.6}
.cached-stripe{display:none;fill:var(--ix-ink);font:600 12px 'IBM Plex Mono',monospace;paint-order:stroke;stroke:var(--ix-quay);stroke-width:3px}.port-viewport[data-hashes=true] .is-cached .cached-stripe{display:block}
/* The finished image: a tall container on its quay, its flag raised. */
.port-district[data-built=false]:not([data-celebrating=true]) .district-image{display:none}.image-flag[data-built=false]{display:none}.image-flag[data-built=true]{display:inline}
.finale-flag{pointer-events:none}.flag-cloth{fill:var(--paper);stroke:var(--line);stroke-width:1}.flag-text{fill:var(--ink);font:14px 'IBM Plex Mono',monospace}
.port-district.is-highlighted .district-image{filter:drop-shadow(0 0 3px var(--purple)) drop-shadow(0 0 7px var(--purple))}
.finale-flag{opacity:0}.port-map[data-finale] .finale-flag{filter:drop-shadow(0 0 5px #a8e8ff55)}
/* An open incident: the hoist's load jammed over the water. */
.hoist-lamp-over,.incident-halo,.incident-pulse{pointer-events:none}.lamp-green{opacity:0}.incident-badge .ix-hit{fill:transparent}
.port-map[data-focus-district=all] .incident-badge{display:none}
.demo-cargo,.reward-rig{display:none;pointer-events:none;--tone:#bc9468}.cargo-cables{fill:none;stroke:var(--ix-ink);stroke-width:2}
/* District signs: enamel plates on the quays' walls (map.js shears them onto the wall's plane), the same dark plate in both themes as any painted steel of the port; they keep their editable names at every zoom. */
.district-labels{--plate:#17344d;--plate-edge:#8fa3ad;--plate-ink:#f4eee0}
.district-label text{fill:var(--plate-ink);font-family:Manrope,sans-serif}
.label-board{fill:var(--plate);stroke:var(--plate-edge);stroke-width:1}.label-tab{fill:var(--tone)}
.district-number{font:600 14px 'IBM Plex Mono',monospace!important;fill:var(--plate-ink)!important}.district-name{font-size:18px;font-weight:750}.district-concept{font-size:14px;fill:var(--plate-ink)!important}
.district-label foreignObject{overflow:hidden;pointer-events:auto}
.district-label .district-name{font:600 18px/1.2 Manrope,sans-serif;color:var(--plate-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;text-shadow:none}
.district-label .district-concept{font:14px/1.3 Manrope,sans-serif;color:var(--plate-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px;text-shadow:none}
.district-label.label-compact .district-name{font-size:14px}.district-label.label-compact .district-concept{display:none}
/* Short landscapes: the name on one line, 12 px, as wide as its text (map.js paintLabels). */
.district-label.label-line .district-name{display:block;width:max-content;font-size:12px;line-height:1.2;padding-top:1px;white-space:nowrap}.district-label.label-line .district-concept{display:none}
/* Far out, a label is its number alone (as in the portrait Journal) with a 44px touch target. */
.district-label .label-hit{display:none;fill:transparent;stroke:none}.district-label.label-number-only .label-hit{display:block}.district-label.label-number-only foreignObject,.district-label.label-number-only .district-name,.district-label.label-number-only .district-concept{display:none}
.image-stack.is-district-highlighted{filter:drop-shadow(0 0 7px var(--tone))}.district-label.is-district-highlighted{filter:drop-shadow(0 0 4px var(--purple))}
.port-camera{position:absolute;right:12px;bottom:12px;z-index:2;display:flex;gap:2px;align-items:center;height:44px;padding:0 4px;isolation:isolate}.port-camera:before{box-sizing:border-box;content:'';position:absolute;inset:6px 0;z-index:-1;border:1px solid var(--line);border-radius:8px;background:color-mix(in srgb,var(--paper) 88%,transparent);box-shadow:0 2px 8px #102b4014}.port-camera button{position:relative;min-width:44px;min-height:44px;height:44px;padding:6px 10px;border:0;background:var(--paper);color:var(--ink);font:14px 'IBM Plex Mono',monospace;border-radius:6px}.port-camera button:first-child{color:var(--purple)}.port-camera button:hover{background:var(--paper)}
/* Motion: the kit animates the water, the swimmers and the lamps; all of it rests while the camera moves, off screen, hidden or without motion. */
.port-map[data-paused=true] :is(.ix-ca1,.ix-ca2,.ix-tail,.ix-fluke,.ix-pec,.ix-puff,.ix-ring,.ix-lamp-halo,.ix-pulse,.ix-jam-load){animation-play-state:paused!important}
/* A paused animation still makes the whole scene repaint with every camera frame: while the camera moves they are off, and start again when it settles. */
.port-map[data-moving] :is(.ix-ca1,.ix-ca2,.ix-tail,.ix-fluke,.ix-pec,.ix-puff,.ix-ring,.ix-lamp-halo,.ix-pulse,.ix-jam-load){animation:none!important}
.port-map[data-motion=off] :is(.ix-ca1,.ix-ca2,.ix-tail,.ix-fluke,.ix-pec,.ix-puff,.ix-ring,.ix-lamp-halo,.ix-pulse,.ix-jam-load){animation:none!important}
.port-map .ix-sw[data-culled],.port-map .port-district[data-culled]>:not(.image-stack,.quay-top),.port-map [data-incident][data-culled]{visibility:hidden}
/* A scale change re-lays out every SVG text each frame: while a zoom is in hand the small texts rest, and return when the camera settles. */
.port-map[data-moving=zoom] :is(.cached-stripe,.station-name,.arrival-copy:not(.intro-numeral),.flag-text){display:none}
.port-map[data-overview=true] .port-viewport[data-detail=far] .image-flag{visibility:hidden}.port-viewport[data-detail=far] .arrival-copy{display:none}
.port-viewport[data-hashes=false] .station-name,.port-viewport[data-hashes=false] .arrival-copy{display:none}
/* The arrival pier: the introduction's chapters are numbered I–IV and stay legible at every zoom. */
.intro-numeral{font:700 44px 'IBM Plex Mono',monospace;text-anchor:middle;fill:var(--ix-ink)}.port-viewport[data-hashes][data-detail] .arrival-copy.intro-numeral{display:inline}
@media(prefers-reduced-motion:reduce){.port-map *{animation:none!important;transition:none!important}}
/* Far out the animals' fins, the wakes and the drifting caustics are too small to read: only the swimmers' travel stays. */
.port-viewport[data-detail=far] :is(.ix-tail,.ix-fluke,.ix-pec,.ix-ring,.ix-puff,.ix-ca1,.ix-ca2){animation:none!important}
.port-viewport[data-detail=far] :is(.ix-flank,.ix-wl,.hl,.rd,.eye){display:none}.port-viewport[data-detail=far] .ix-back .p{fill:var(--ix-tone)}
/* Animated shapes make every camera frame repaint the whole scene: the animals step out while the camera moves and are back when it settles. */
.port-map[data-moving] .port-swimmers{visibility:hidden}
.port-map .ix-cl{stroke-linecap:butt}
/* The WebGL art (scene.js; map.js sets data-art="gl" once it is mounted) sits in a canvas under the SVG, which stays on top for hit targets, labels, tags, HEAD, the selection and the camera buttons.
   data-art-district (a comma list, or all) hides only the SVG art of those districts: opacity for art that is also a target (the built image), display for the rest. */
.port-scene-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.port-map[data-art=gl] .port-viewport{position:relative;z-index:1}
.port-map[data-art=gl] :is(.ocean-backdrop,.port-geography){display:none}
.port-district[data-gl]>:not(.quay-top,.box-pad,.image-stack,.district-image){display:none}
.port-district[data-gl] .district-image{opacity:0}.port-district[data-gl] :is(.node-art,.cached-stripe){display:none}
/* (P6b-5: the hash captions of cached layers outranked the rule above and were lettered over the 3D sheds) */
.port-viewport[data-hashes=true] .port-district[data-gl] .is-cached .cached-stripe{display:none}
.port-map[data-art=gl][data-art-whale=gl] .bleuene{display:none}
.port-map[data-art=gl][data-art-species=gl] .port-swimmers .ix-sw{display:none}
/* An open incident of a district drawn in 3D: the scene's hoist jams, its beacon turns red; the SVG keeps only the target and its badge. */
.port-incidents>[data-gl] :is(.hoist-jam,.hoist-lamp-over,.incident-halo,.incident-pulse){display:none}
.port-map[data-art=gl][data-art-district=all] :is(.port-land,.port-gates,.port-swimmers,.arrival-pier .ix-slab,.arrival-node .node-art){display:none}
/* the arrival pier (module 9) and the town (module 11) of the scene hide their own SVG art; the ring (10) has none */
.port-map[data-art=gl][data-art-district*="9"] :is(.arrival-pier .ix-slab,.arrival-node .node-art){display:none}
.port-map[data-art=gl][data-art-district*="11"] .port-land{display:none}
/* The lighthouse (map.js): a control over the 3D tower; its drawn twin shows only while the 3D scene is not drawing district 4. */
.port-lighthouse{cursor:default;pointer-events:none}
.port-lighthouse[data-gl] .lh-art{display:none}
.port-lighthouse[data-tower]:not([data-gl]){display:none}
.lh-control{outline:none;pointer-events:visiblePainted;cursor:pointer}
.lh-pad{fill:transparent;stroke:none;pointer-events:visiblePainted}
.lh-hit{fill:transparent;stroke:none;pointer-events:visiblePainted}
.lh-control:hover .lh-hit,.lh-control:focus-visible .lh-hit{fill:color-mix(in srgb,var(--ix-sel) 14%,transparent);stroke:var(--ix-sel);stroke-width:calc(var(--ix-k,1)*2px);stroke-linejoin:round}
.node-tag[data-status=none] .tag-status{display:none}
