/* Inherit the Anatomy material palette used by the other illustrations. */
.city-figure{width:100%;margin:0}.city-stage{position:fixed;inset:0;z-index:0;width:100vw;height:100vh;height:100svh;margin:0;overflow:hidden;touch-action:none;cursor:grab}.city-stage .iso-svg{display:block;width:100%;height:100%;max-height:none;overflow:hidden;user-select:none}.city-stage .iso-line{stroke-width:.55px}.city-stage .iso-edge{stroke:var(--anatomy-lo)}
.city-base-shadow{fill:var(--anatomy-halo);opacity:.08}.city-ground{fill:var(--anatomy-shade-3)}.road{fill:var(--anatomy-shade-0)}.road-stripes{fill:none;stroke:var(--anatomy-top);stroke-width:.75;stroke-dasharray:3.5 4.5;stroke-linecap:round}.crosswalk{fill:var(--anatomy-top);opacity:.85}.sidewalk{--anatomy-top:var(--anatomy-paper)}
.building-windows{fill:none;stroke:var(--anatomy-mid);stroke-width:1.1;stroke-linecap:butt;opacity:.65}.building-shadow{fill:var(--anatomy-halo);opacity:.1}.roof-machine .iso-top{fill:var(--anatomy-shade-2)}.solar>path{fill:var(--anatomy-mid);stroke:none}.solar .iso-line{stroke:var(--anatomy-top);stroke-width:.5}
.park-ground{fill:var(--anatomy-shade-1)}.park-path{fill:var(--anatomy-paper)}.tree .iso-top{fill:var(--anatomy-shade-1)}.tree .iso-line{stroke-width:.4}.tree-shadow{fill:var(--anatomy-halo);opacity:.12}.water{fill:var(--anatomy-shade-1);stroke:var(--anatomy-lo);stroke-width:.5}.street-light .iso-line{stroke:var(--anatomy-mid)}.street-light .iso-top{fill:var(--anatomy-top)}
.city-car{--car-top:var(--anatomy-mid);--car-side:var(--anatomy-text);--car-roof:var(--anatomy-lo)}.car-1{--car-top:var(--anatomy-top);--car-side:var(--anatomy-lo);--car-roof:var(--anatomy-paper)}.car-2{--car-top:var(--anatomy-lo);--car-side:var(--anatomy-mid);--car-roof:var(--anatomy-shade-0)}.car-3{--car-top:var(--anatomy-shade-1);--car-side:var(--anatomy-lo);--car-roof:var(--anatomy-top)}.car-4{--car-top:var(--anatomy-text);--car-side:var(--anatomy-hi);--car-roof:var(--anatomy-mid)}
/* Cars are painted on a canvas (see app.mjs), which reads the --car-* colours above. */
.city-cars{position:absolute;top:-96px;left:-96px;pointer-events:none;will-change:transform}
.city-caption{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:0 12px 20px;color:var(--anatomy-muted);font-size:12px}.city-live{display:flex;gap:7px;align-items:center}.city-live:before{content:'';height:5px;width:5px;border-radius:50%;background:var(--anatomy-mid)}
 .city-stage.is-dragging{cursor:grabbing}.city-stage:focus-visible{outline:1px solid var(--anatomy-lo);outline-offset:3px}
@media(max-width:760px){.city-caption{padding:0;font-size:11px}}
@media(prefers-reduced-motion:reduce){.city-live{display:none}}

/* City is a full-bleed 100vh page: the map sits behind the sidebar and title, no frame, no scroll. */
html:has(.city-stage),body:has(.city-stage){height:100%;overflow:hidden}
body:has(.city-stage) .site-header,body:has(.city-stage) .page-intro{position:relative;z-index:1}
body:has(.city-stage) .site-header{position:sticky}
body:has(.city-stage) .page-intro{pointer-events:none;width:max-content}
body:has(.city-stage) .iso-page{min-height:0;padding-bottom:0}
.city-stage:focus-visible{outline:none}
/* Neutral greys set as tokens, not with a CSS filter: a filter over the whole map forced a full
   re-raster of the city on every animation frame. */
.city-stage{--anatomy-mid:#8b8b8b;--anatomy-hi:#444;--anatomy-lo:#b9b9b9;--anatomy-faint:#e8e8e8;--anatomy-text:#575757;--anatomy-halo:#888;--anatomy-shade-0:#dcdcdc;--anatomy-shade-1:#e5e5e5;--anatomy-shade-2:#ededed;--anatomy-shade-3:#f4f4f4;--anatomy-lit-shade:#eee}
/* The camera moves the drawn city with a transform (see controls.mjs). */
.city-stage .iso-svg{position:absolute;top:0;left:0;width:auto;height:auto;max-width:none;transform-origin:0 0;will-change:transform}
body:has(.city-stage) .site-header{user-select:none}
/* Christmas: pines in the parks, a big decorated tree at each park centre. */
.pine{--anatomy-paper:#3f6f48;--anatomy-top:#5d8c62;--anatomy-shade-0:#2c5435;--anatomy-shade-1:#33603d;--anatomy-shade-2:#3a6a44;--anatomy-shade-3:#41744b;--anatomy-lo:#2a4d31;--anatomy-faint:#2a4d31}
.pine-trunk{--anatomy-paper:#7a5a40;--anatomy-top:#8a6a4c;--anatomy-shade-0:#5c4330;--anatomy-shade-1:#654a35;--anatomy-shade-2:#6e513a;--anatomy-shade-3:#775840;--anatomy-lo:#4e3828}
.bauble circle{stroke:#fff;stroke-width:.4}.bauble-0 circle{fill:#c8372d}.bauble-1 circle{fill:#e2b53e}.bauble-2 circle{fill:#f4f1ea}
.xmas-star{fill:#f2c94c;stroke:#b8891b;stroke-width:.5;stroke-linejoin:round}
.cone-side{fill:#4f8256}.cone-shade{fill:#36633d}.cone-edge{fill:none;stroke:#2a4d31;stroke-width:.45;stroke-linejoin:round}
/* Christmas traffic: a few red and green cars among the greys. */
.car-2{--car-top:#c8372d;--car-side:#9e2a22;--car-roof:#e2564b}.car-4{--car-top:#3f7a4a;--car-side:#2c5a35;--car-roof:#5d9466}
.city-snow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
/* Winter: settled snow on roofs, trees, kerbs and cars. The car canvas reads these two tokens too. */
.city-stage{--snow:#fff;--snow-shade:#c5d5e6}
.snow-top{fill:var(--snow);stroke:var(--snow-shade);stroke-width:.4;stroke-linejoin:round}.snow-side{fill:var(--snow-shade)}
.snow-ground{stroke-width:.3}.snowcone-side{fill:#f8fbfe}.snowcone-shade{fill:#cddbea}
/* Christmas night. The page chrome goes midnight blue; the map trades its daylight greys for
   moonlit blues, and everything that shines is a plain fill or stroke (no filters), so the static
   map is still rasterised only once. */
body.iso:has(.city-stage){--anatomy-page:#070c18;--surface:rgba(16,23,40,.94);--anatomy-strong:#f3f6fb;--anatomy-text:#b9c4d6;--anatomy-muted:#8492aa}
.city-stage{background:#070c18;--anatomy-paper:#243049;--anatomy-top:#34425f;--anatomy-shade-0:#18213a;--anatomy-shade-1:#1e2843;--anatomy-shade-2:#25304d;--anatomy-shade-3:#2c3857;--anatomy-lo:#43527a;--anatomy-mid:#566892;--anatomy-hi:#9aabcf;--anatomy-faint:#2a3554;--anatomy-text:#0d1424;--anatomy-halo:#00040c;--snow:#dfe9f8;--snow-shade:#8196ba;--car-beam:#ffe6a3}
.city-ground{fill:#0f1627}.road{fill:#161e33}.road-stripes{stroke:#7f8fb1;opacity:.7}.crosswalk{fill:#8d9cbd;opacity:.55}
.sidewalk{--anatomy-top:#8b9dbd;--anatomy-lo:#5d6f95}.park-ground{fill:#9eb0cd}.park-path{fill:#5b6c8f}
.building-shadow{opacity:.35}.tree-shadow{opacity:.3}.city-base-shadow{opacity:.5}
.tree{--anatomy-paper:#1f4030;--anatomy-top:#2b553d;--anatomy-shade-0:#16301f;--anatomy-shade-1:#1b3a27;--anatomy-shade-2:#21442e;--anatomy-shade-3:#274e35;--anatomy-lo:#122819}.tree .iso-top{fill:#2b553d}
.pine{--anatomy-lo:#17301d}.cone-side{fill:#356b45}.cone-shade{fill:#234a2f}.cone-edge{stroke:#17301d}
.snowcone-side{fill:#dfe9f8}.snowcone-shade{fill:#93a7c9}
.roof-machine .iso-top{fill:#3d4c6c}.solar>path{fill:#101829}.solar .iso-line{stroke:#3d5a8f}
/* Windows: the dark ones barely show, the lit ones glow warm (a wide faint stroke under a crisp one). */
.building-windows{stroke:#34415f;opacity:1}.building-windows.window-lit{stroke:#ffd98a}
.window-glow{fill:none;stroke:#ffb347;stroke-width:4.5;stroke-linecap:round;opacity:.16}
.fairy,.fairy-glow{fill:none;stroke-linecap:round}.fairy{stroke-width:2.1}.fairy-glow{stroke:#fff2c9;stroke-width:5.5;opacity:.2}
.fairy-0{stroke:#ff5b4d}.fairy-1{stroke:#ffd35a}.fairy-2{stroke:#58d68d}.fairy-3{stroke:#6db7ff}
.street-light .iso-top{fill:#fff3c4}.street-light .iso-solid{--anatomy-paper:#ffe9a8;--anatomy-shade-0:#f3cf74;--anatomy-shade-1:#f7d785;--anatomy-shade-2:#fbe096;--anatomy-shade-3:#ffe9a8;--anatomy-mid:#d9b256;--anatomy-lo:#d9b256}
.lamp-pool path{fill:url(#lamp-pool)}.lamp-halo{fill:url(#lamp-halo);stroke:none}
.bauble circle{stroke:none}.bauble-0 circle{fill:#ff5b4d}.bauble-1 circle{fill:#ffd35a}.bauble-2 circle{fill:#fff6dc}
.xmas-star{fill:#ffe27a;stroke:#f0b429}
/* Cars at night: darker bodies so the snow, headlights and tail lights stand out. */
.city-car{--car-top:#5b6a8c;--car-side:#3a4664;--car-roof:#6c7ca0}.car-1{--car-top:#c9d3e6;--car-side:#8f9dba;--car-roof:#e2e9f5}.car-3{--car-top:#2c3650;--car-side:#1b2338;--car-roof:#3a4664}
.car-2{--car-top:#c8372d;--car-side:#8f241c;--car-roof:#e2564b}.car-4{--car-top:#3f7a4a;--car-side:#28532f;--car-roof:#5d9466}
/* Minimisable sidebar: a button folds it down to a small pill so the map is unobstructed. */
.menu-toggle{appearance:none;border:0;padding:0;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex:none;order:3;background:transparent;color:var(--anatomy-text);cursor:pointer}
.menu-toggle:hover{background:rgba(255,255,255,.09);color:var(--anatomy-strong)}
.menu-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.menu-toggle .icon-open,.site-header.is-min .menu-toggle .icon-close{display:none}.site-header.is-min .menu-toggle .icon-open{display:block}
.site-header.is-min .iso-nav,.site-header.is-min .side-foot{display:none}
body:has(.city-stage) .site-header.is-min{width:max-content;height:auto;flex-direction:row;align-items:center;gap:6px;padding:8px 8px 8px 6px;justify-self:start}
.site-header:not(.is-min) .menu-toggle{position:absolute;top:15px;right:12px}
@media(max-width:900px){.site-header:not(.is-min) .menu-toggle{top:6px;right:6px}}
/* No visible heading on this page; it stays in the document for screen readers. */
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Brighter lights with flare: stronger window glow, coloured halos on the fairy lights with a
   white-hot core, and a four-point flare on every street lamp. Still plain fills and strokes. */
.building-windows.window-lit{stroke:#ffeab0;stroke-width:1.3}.window-glow{stroke:#ffae3d;stroke-width:6;opacity:.3}
.fairy{stroke-width:2.6}.fairy-glow{stroke-width:8;opacity:.38}.fairy-core{fill:none;stroke:#fff;stroke-width:1;stroke-linecap:round;opacity:.9}
.fairy-0{stroke:#ff4a4a}.fairy-1{stroke:#ffd84a}.fairy-2{stroke:#3dff95}.fairy-3{stroke:#4ab4ff}
.lamp-flare{fill:url(#lamp-halo);stroke:none}.lamp-pool .tree-pool{fill:url(#tree-pool)}
.street-light .iso-top{fill:#fffbe6}
/* Frozen lake around the city. */
.city-stage,.city-stage .iso-svg{background:#123650}
.ice-frost{fill:#cdeafa;opacity:.1}.ice-rim{fill:#6fa8c6;opacity:.5}
.ice-cracks{fill:none;stroke:#c4e9fb;stroke-width:.8;stroke-linecap:round;stroke-linejoin:round;opacity:.5}.ice-glint{fill:#e9f7ff;opacity:.55}
/* Central square: a giant snowman in scarf and Santa hat, and a gilded reindeer statue. */
.ball{fill:url(#snowball)}.coal{fill:#131928}.carrot{fill:#ff8a3d}.twig{fill:none;stroke:#8a623e;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.scarf{--anatomy-paper:#d8382e;--anatomy-top:#f0584a;--anatomy-shade-0:#a3241c;--anatomy-shade-1:#b52b22;--anatomy-shade-2:#c63228;--anatomy-shade-3:#d8382e;--anatomy-lo:#861b14;--anatomy-mid:#861b14}.scarf-tail{fill:#c63228}
.hat-brim{--anatomy-paper:#eef4fc;--anatomy-top:#fff;--anatomy-shade-0:#aebfda;--anatomy-shade-1:#c0cfe6;--anatomy-shade-2:#d3dff0;--anatomy-shade-3:#e6eefa;--anatomy-lo:#93a7c9;--anatomy-mid:#93a7c9}
.hatcone-side{fill:#e2463b}.hatcone-shade{fill:#ae2a22}
.statue{--anatomy-paper:#d2a947;--anatomy-top:#f6dc8e;--anatomy-shade-0:#a57c24;--anatomy-shade-1:#b98d2f;--anatomy-shade-2:#cc9f3c;--anatomy-shade-3:#deb24c;--anatomy-lo:#7d5c14;--anatomy-mid:#7d5c14}
.plinth{--anatomy-paper:#6d7c9c;--anatomy-top:#b9c6da;--anatomy-shade-0:#4c5a79;--anatomy-shade-1:#56658a;--anatomy-shade-2:#617096;--anatomy-shade-3:#6d7c9c;--anatomy-lo:#3d4a66;--anatomy-mid:#3d4a66}
.antler{fill:none;stroke:#f3d47c;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.rudolph{fill:#ff3b30}.nose-glow{fill:url(#nose-glow)}
.snow-drip{stroke-width:.35}
/* A pine tier is outlined by the stroke of its own side. */
.cone-side{stroke:#17301d;stroke-width:.45;stroke-linejoin:round}
.tree .trunk{fill:#2a2019}
/* The map is a layer of bitmap tiles (see map.mjs) moved by the camera with a transform. */
.city-map{position:absolute;top:0;left:0;transform-origin:0 0;will-change:transform;user-select:none}
.city-map canvas{position:absolute;display:block}
.ice-sheet{fill:#123650}
/* Christmas music sits with the menu control. music.mjs switches the label and which icon shows. */
.music-toggle{appearance:none;border:0;padding:0;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex:none;order:2;background:transparent;color:var(--anatomy-text);cursor:pointer}
.music-toggle:hover{background:rgba(255,255,255,.09);color:var(--anatomy-strong)}
.music-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.music-toggle .icon-on{display:none}
.music-toggle[aria-pressed="true"]{color:#ffe27a}
.music-toggle[aria-pressed="true"] .icon-off{display:none}
.music-toggle[aria-pressed="true"] .icon-on{display:block}
.site-header:not(.is-min) .music-toggle{position:absolute;top:15px;right:52px}
@media(max-width:900px){.site-header:not(.is-min) .music-toggle{top:6px;right:46px}}
