/*
 * tokens.css: the look of the whole viewer, in one place.
 *
 * Change a value here and it changes everywhere, including the labels and
 * outline drawn on the 3D map (JavaScript reads the "map colours" block).
 * Every other stylesheet only uses these variables, never raw values.
 */

/* ---------------------------------------------------------------- Fonts
   Served from our own site (assets/fonts/), never from Google Fonts: a visitor's browser then tells no one else
   it opened the page (Resources/privim-data-rules.md 8; tools/check-pages.mjs fails if a page loads them from
   Google again). Both are variable fonts under the SIL Open Font License (assets/fonts/OFL-*.txt), the same files
   Google serves: Latin, and Latin Extended for Romanian's ă â î ș ț. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---------------------------------------------------------------- Colour */
  --ink:        #10222b;   /* text, dark buttons */
  --ink-muted:  #56666b;   /* secondary text (5.5:1 on --sheet) */
  --sheet:      #f6f7f4;   /* panel and control background */
  --sheet-sunk: #eceee9;   /* hover states */
  --sheet-raised: #ffffff; /* the plan drawing's background */
  --line:       #d6dcd7;   /* hairlines and borders */
  --agent-face: #e3e9e6;   /* the round place of an agent's photo, and its initials when it has none (2026-11-04) */
  --ink-hover:  #1f3a46;   /* a dark (--ink) button under the pointer */
  --ink-soft:   var(--ink-muted);  /* (another name for secondary text, used by finder.css) */
  /* One light theme everywhere (2026-11-04, the owner): no dark mode on any page. Every panel is --sheet (frosted on
     the map), cards and text boxes in it --sheet-raised, a page behind cards --sheet-sunk. */
  --swatch-edge: rgb(16 34 43 / 0.15);  /* the thin ring round a colour dot, so a pale colour still shows */
  --flag-tint:   rgb(255 47 109 / 0.08); /* a pink-tinted card (the public site's) ... */
  --flag-tint-line: rgb(255 47 109 / 0.3); /* ... and its edge */

  --flag:       #ff2f6d;   /* survey-flag pink: the plot outline and the one bright accent */
  --qr-dark:    #10222b;   /* a listing's QR code (src/share-kit.js): dark squares, as --ink */
  --qr-light:   #ffffff;   /* and its background: white, so every phone camera reads it */
  --flag-text:  #c8103f;   /* pink that is dark enough for small text */
  --ok:         #1c6b4a;   /* "numbers check out" */
  --warn:       #b4232c;   /* "something is wrong" */

  /* Status badges in "Upload extracts" (background, then text where it differs) */
  --badge-wait-bg:  #fff4e0;  --badge-wait-text: #8a5a00;   /* waiting for review */
  --badge-ok-bg:    #e3f3ea;                                 /* approved (text: --ok) */
  --badge-bad-bg:   #fbe4e4;                                 /* infected, unreadable, rejected (text: --warn) */
  --badge-odd-bg:   #ece4fb;  --badge-odd-text:  #5b3fae;   /* duplicate, unsupported */
  /* The lawyer's review (/legal-review): text added and removed in a pending legal text. Never by colour alone: added
     text is also underlined, removed text struck through. */
  --diff-add-bg:    #e3f3ea;  --diff-add-text:   #1c6b4a;
  --diff-del-bg:    #fbe4e4;  --diff-del-text:   #b4232c;

  /* ------------------------------------------------- Map colours (read by JavaScript)
     Use #hex or rgba(r, g, b, a) here. Names like "red" also work. */
  --map-void:           #e8ece6;                   /* ground colour where no map tiles are drawn */
  --parcel-stroke:      #ff2f6d;                   /* the plot outline */
  --parcel-casing:      #ffffff;                   /* the white edge under the outline, and corner dots */
  --parcel-fill:        rgba(255, 47, 109, 0.18);  /* tint inside the plot */
  /* ANCPI's parcels that aren't ours (staff's land assembly, src/parcels.js; 2026-11-20): one per status, always with
     its words beside it in the list (never colour alone). Our own plots keep their owners' colours. */
  --assembly-picked:    #10222b;                   /* the parcel just clicked, no status yet */
  --assembly-extract:   #d98a00;                   /* its extract asked for */
  --assembly-approach:  #1f6fd1;                   /* to approach */
  --assembly-no:        #7d8790;                   /* the owner said no: left out of the land */
  --assembly-outline:   #10222b;                   /* the land the assembly makes, dashed */
  --assembly-casing:    #ffffff;
  --label-text:         #10222b;                   /* side-length labels */
  --label-bg:           #f6f7f4;
  --length-text:        #10222b;                   /* a side's length in its bubble (the lot's colour) when the lot is pale */
  --length-on-colour:   #ffffff;                   /* ... and on every other lot colour */
  --label-accent-text:  #ffffff;                   /* the area label in the middle */
  --label-accent-bg:    #d90f52;
  --label-tag-text:     #ffffff;                   /* numbered corner tags */
  --label-tag-bg:       #10222b;
  --corner-dot:         #ffffff;                   /* "Corners and coordinates": a dot on each corner of the land */
  --corner-ring:        #10222b;
  --corner-text:        #10222b;                   /* ... and its name and coordinates beside it */
  --corner-bg:          #ffffff;
  /* Zoning (staff's "Zoning" page, src/zone-map.js, 2026-11-20): the PUG zones' outlines over the plan image */
  --zone-line:          #3b2bd1;                   /* a zone's outline */
  --zone-fill:          rgba(59, 43, 209, 0.14);
  --zone-puz:           #0f8a6a;                   /* a PUZ's zone (it changes the PUG there) */
  --zone-active:        #ff2f6d;                   /* the zone or outline being drawn or chosen */
  --zone-vertex:        #ffffff;
  --zone-label-text:    #ffffff;
  --zone-label-bg:      #3b2bd1;
  --zone-pin:           #ff2f6d;                   /* a point pinning the plan image to the map */
  --road-line:         #10222b;                   /* the finder's "Around the land" road rows (their left edge) */
  /* The way from a lot to its nearest road (map and listing photos): white dots like a walking route, a soft ring */
  --road-dot:           #ffffff;
  --road-dot-ring:      rgba(16, 34, 43, 0.42);
  --road-end:           #10222b;                   /* the ring of the dot where it meets the road */
  --road-label-bg:      #ffffff;
  --road-label-text:    #10222b;
  --photo-frame-dim:    rgb(16 34 43 / 0.38);      /* the map outside the listing photo's frame (src/present.js showPhotoView) */
  --photo-frame-line:   rgb(255 255 255 / 0.9);    /* ... its edge; its corners are the flag pink */
  --road-highlight:     #ffd23f;                   /* the nearest road itself, highlighted on the listing photos */
  --road-highlight-edge: rgba(16, 34, 43, 0.55);   /* ... its dark edge, so it reads on any photo */
  --road-highlight-mark: rgba(16, 34, 43, 0.35);   /* ... and a fine dashed line down its middle */
  --road-street:        rgba(255, 255, 255, 0.9);  /* every road on the photos but the nearest (the network, the main roads) */
  --road-street-edge:   rgba(16, 34, 43, 0.4);
  --road-track:         rgba(255, 255, 255, 0.7);  /* ... a farm track among them, lighter and dashed */
  --border-line:        #ffffff;                   /* a commune's or town's border, dashed, on the photos and film */
  --border-line-edge:   rgba(16, 34, 43, 0.6);
  --border-label-bg:    #10222b;
  --border-label-text:  #ffffff;
  /* The roads' and borders' names on the photos' map, the 3D photo, the film and the photo from above (2026-11-20, the
     owner: no "huge white label over the roads"): text beside the line, no box. Since 2026-11-21 (the owner: not "black
     with white background") white with a thin, soft dark halo, as satellite maps write names (Google's and Apple's
     hybrid maps, Mapbox Satellite Streets): it reads on fields, woods and roofs alike. */
  --road-name:          #ffffff;
  --road-name-halo:     rgba(8, 18, 24, 0.62);
  --border-name:        #ffffff;
  --border-name-halo:   rgba(8, 18, 24, 0.62);
  --power-line:         #f2a900;                   /* /admin's "Power grid": high-voltage lines and substations (OpenStreetMap) */
  --power-minor:        #c77dff;                   /* ... local (low/medium-voltage) lines */
  --power-casing:       #10222b;                   /* ... the dark edge that keeps them visible on the photo */
  /* "Places": the pins of what is around (src/places.js kinds), a white symbol on each, like Google Maps' */
  /* Each kind its own colour again (the owner, 2026-11-09: "different colours for different purposes, not the pink");
     none near the lots' pink (health is a deeper red than it was). --place-pin is what an unknown kind falls back to. */
  --place-pin:          #4f6a80;                   /* a place of no known kind */
  --place-health:       #c9383e;                   /* hospitals, doctors, pharmacies */
  --place-education:    #7c66dc;                   /* schools, kindergartens */
  --place-civic:        #5d6b7d;                   /* town hall, post office, police */
  --place-transit:      #2f7ff0;                   /* bus stops, stations */
  --place-shop:         #e09a12;                   /* supermarkets, shops */
  --place-food:         #f26b2a;                   /* restaurants, cafés */
  --place-fuel:         #129a8c;                   /* petrol stations */
  --place-worship:      #a0785a;                   /* churches */
  --place-leisure:      #2f9e5b;                   /* parks, playgrounds, sports */
  --place-logistics:    #3f4a56;                   /* motorway exits, warehouses, industrial areas ("For business") */
  /* "Getting around" (src/transit.js): how far one can go, drawn on the map (src/map.js setReach) as a soft tinted area
     with an outline, and the stops reached as small dots. A calm blue, apart from the plots' pink. */
  --reach-fill:         rgba(47, 127, 240, 0.16);
  --reach-line:         #2f7ff0;
  --reach-casing:       rgba(255, 255, 255, 0.85);
  --reach-stop:         #2f7ff0;
  --reach-stop-ring:    #ffffff;
  /* The transport lines near an open listing (src/map.js setTransitLines, the finder's "Getting around" bar): a line's
     own OpenStreetMap colour where it has one, else its mode's. Kept apart from the plots' pink and the reach's blue. */
  --transit-subway:     #6741d9;
  --transit-light-rail: #0c8599;
  --transit-tram:       #e8590c;
  --transit-train:      #495057;
  --transit-casing:     rgba(255, 255, 255, 0.9);
  --transit-station:    #ffffff;
  --transit-station-ring: #10222b;
  /* "What surrounds the land" on the presentation (ESA WorldCover's classes, src/layers.js COVER_CLASSES): the bar and
     its legend. Told apart by lightness as well as hue (crops light, trees dark), for colour-blind readers. */
  --cover-crops:        #e2c94f;
  --cover-grass:        #93c66f;
  --cover-trees:        #2f6e4a;
  --cover-shrubs:       #6f9c58;
  --cover-built:        #7f8791;
  --cover-bare:         #c9b79c;
  --cover-water:        #3d8fd6;
  --cover-wetland:      #5fb0b4;
  --cover-snow:         #e8eef2;
  --cover-moss:         #a6b48c;
  --cover-mangroves:    #2b7d6b;
  /* The presentation's chapters: the number badge and the progress line (the survey pink). */
  --chapter-badge:      #ff2f6d;
  --chapter-badge-text: #ffffff;
  --place-symbol:       #ffffff;                   /* ... the symbol, and the pin's edge */
  --place-shadow:       rgb(16 34 43 / 0.35);      /* ... the soft shadow under a pin */
  --place-text:         #10222b;                   /* a place's name under its pin */
  --growth-empty:       #f1f2ee;                   /* "How the area grew": a cell with no building */
  --growth-built:       #3d4f5c;                   /* ... built-up land (shaded by how much of the cell) */
  --growth-new:         #ff2f6d;                   /* ... built up since the year before */
  --growth-ring:        #10222b;                   /* ... the circle the figures count, dashed */
  --walk-you:           #2f7ff0;                   /* "Walk to the corners": where the phone is */
  --walk-you-ring:      #ffffff;                   /* ... its white edge */
  --walk-accuracy:      rgba(47, 127, 240, 0.15);  /* ... how sure the GPS is, a soft circle */
  --walk-line:          #2f7ff0;                   /* ... the dashed way to the corner */
  --building:           #f1f2ee;                   /* "3D buildings": the blocks around the land, like an architect's white model */
  --buildable-fill:     rgba(255, 255, 255, 0.82); /* "What could stand here": the largest building allowed, a white model */
  --buildable-edge:     #ff2f6d;                   /* ... its outline on the ground */
  --buildable-zone:     rgba(255, 255, 255, 0.95); /* ... the line the setback leaves (where one may build), dashed */
  --buildable-ghost:    rgba(255, 255, 255, 0.16); /* ... the same, see-through, round a design drawn inside it */
  /* The designs drawn in "What could stand here" (src/designs.js, src/design-3d.js): each a tint over its real texture
     (assets/textures/), so white leaves the photo's own colour. Rendered walls warm white, tiles terracotta, cedar
     honey, the garden's greens apart from the lots' pink. */
  --design-plaster:      #f4efe6;
  --design-plinth:       #9a978f;
  --design-trim:         #fbfaf7;
  --design-roof-clay:    #f0d2c0;
  --design-roof-grey:    #c9cdd1;
  --design-roof-flat:    #c4c8c9;
  --design-metal:        #3a3f45;
  --design-metal-light:  #dfe3e6;
  --design-steel:        #b8bec4;
  --design-cedar:        #d2c0ab;
  --design-black-planks: #8a8a8a;
  --design-frame-dark:   #2b2f33;
  --design-glass:        #2f4552;
  --design-greenhouse:   #e8f3f1;
  --design-fence:        #9ea7ad;
  --design-pavers:       #e6e1d8;
  --design-deck:         #d6c2aa;
  --design-gravel:       #e2e0dc;
  --design-road:         #6b6e70;   /* asphalt: a lot that is the parcel's own access road */
  --design-lawn:         #b9d98a;
  --design-lawn-mown:    #d3e8a6;
  --design-hedge:        #86b45e;
  --design-leaves:       #9ccb68;
  --design-crops:        #9fd06a;
  --design-soil:         #b89a80;
  --design-bark:         #c8b4a0;
  --design-solar-tint:   #ffffff;
  --design-solar-cell:   #1d2c4a;
  --design-solar-frame:  #c9ced6;
  /* The cheerful touches (2026-11-14, the owner: "a bit more joyful, not grey"): each lot's house its own wall colour,
     painted shutters and front door, flowers, blossom, a pool, a car in the drive; containers, a playground. */
  --design-plaster-1:    #fbefd8;
  --design-plaster-2:    #f7d9c0;
  --design-plaster-3:    #e2ecd6;
  --design-plaster-4:    #f5d8d3;
  --design-shutter-1:    #8fb89c;
  --design-shutter-2:    #7fa5cb;
  --design-shutter-3:    #d98a6c;
  --design-door-1:       #2f7a73;
  --design-door-2:       #c2453c;
  --design-door-3:       #e9b949;
  --design-accent-1:     #f2b33d;
  --design-accent-2:     #3f9a8c;
  --design-accent-3:     #e2725b;
  --design-flower-1:     #ee4f78;
  --design-flower-2:     #f7c843;
  --design-flower-3:     #a77ad9;
  --design-flower-4:     #ffffff;
  --design-flower-5:     #f58a4c;
  --design-leaves-2:     #bddc74;
  --design-leaves-3:     #7cb35c;
  --design-blossom:      #f8c8dc;
  --design-fruit:        #d8463c;
  --design-water:        #4aa8cf;
  --design-canvas:       #f47e64;
  --design-canvas-2:     #f6f2ea;
  --design-car-1:        #d0473b;
  --design-car-2:        #3a73b8;
  --design-car-3:        #f3f1ec;
  --design-container-1:  #c9523f;
  --design-container-2:  #2f6fb3;
  --design-container-3:  #3e9160;
  --design-container-4:  #e3a63a;
  --design-play:         #ef7d5f;
  --design-sand:         #f1dfb0;
  --design-court:        #3e8f7b;
  --design-hive:         #f5cf55;
  /* Privim's own 3D map (tools/build-3d.mjs bakes these into its tiles: run it again after changing one). */
  --building-roof:      #d9d2ca;                   /* ... a pitched roof */
  --building-roof-flat: #e6e7e2;                   /* ... a flat roof */
  --road-3d:            #f8f8f4;                   /* ... a road */
  --path-3d:            #efeee6;                   /* ... a footpath, cycle path or field track */
  --road-3d-major:      #fbefc9;                   /* ... a trunk or primary road (warmer, like a printed map) */
  --road-3d-motorway:   #f6d995;                   /* ... a motorway */
  --road-3d-edge:       #d4d1c5;                   /* ... the thin line along each side of a road */
  /* The Model map's streets, drawn on the ground by the browser (src/street-layer.js; 2026-11-04, after Apple Maps). */
  --street-road:        #ffffff;                   /* a street */
  --street-major:       #fde9b0;                   /* a trunk, primary or secondary road */
  --street-motorway:    #f7cf7a;                   /* a motorway */
  --street-path:        #e6e1d6;                   /* a footway, path or track */
  --street-edge:        #cfcabd;                   /* the line along each side of a road */
  --street-name:        #4a5560;                   /* a street's name along it */
  --street-halo:        #ffffff;                   /* the light outline around a name */
  --town-name:          #1d1d1f;                   /* a town's or village's name over the Model map (Apple Maps' ink) */
  --town-quarter:       #6e6e73;                   /* a quarter's name: smaller, grey, spaced out */
  --town-halo:          #ffffff;                   /* the soft light outline around them */
  --tree:               #a8bf9c;                   /* ... a broadleaf tree's crown */
  --tree-dark:          #94ae8b;                   /* ... the same, a little darker (mixed in for depth) */
  --tree-conifer:       #86a28b;                   /* ... a conifer */
  --tree-trunk:         #b3a596;                   /* ... a trunk */
  /* ... houses: walls and pitched roofs, picked per house (an OSM building:colour / roof:colour wins, softened) */
  --building-flats:     #f4ebdc;                   /* a block of flats (a building that isn't a house) */
  --building-shop:      #ecdfe9;                   /* shops, offices, hotels */
  --building-industry:  #dde3ea;                   /* factories, warehouses */
  --building-public:    #f3e8c4;                   /* schools, universities, town halls */
  --building-health:    #f3dcd8;                   /* hospitals, clinics */
  --building-church:    #efe2cc;                   /* churches and other places of worship */
  /* A tower of flats on the map (src/residence-3d.js, 2026-11-04): the blueprint's three parts, crown, body, podium. */
  --residence-stone:      #e7dccb;                 /* the podium: honed travertine */
  --residence-slab:       #f4f1ea;                 /* a slab's edge, a line at every floor */
  --residence-glass:      #4c5560;                 /* the floors' glass, a cool grey bronze */
  --residence-glass-warm: #c99a5b;                 /* a lit room behind it (some floors, and the lobby) */
  --residence-glass-lit:  #ffd27a;                 /* the floor chosen: the light that runs up the building */
  --residence-rail:       #dfeaf0;                 /* the balconies' glass rails */
  --residence-crown:      #d8c7a6;                 /* the crown's champagne frame */
  /* The show flat inside (src/residence-interior.js): warm minimal Mediterranean-modern at dusk. Textures are drawn
     around mid-grey and tinted by these. */
  --residence-oak:        #d2b48f;                 /* light oak boards, herringbone in the living room */
  --residence-plaster:    #e4d9c8;                 /* limestone-coloured lime plaster */
  --residence-ceiling:    #ece5da;
  --residence-travertine: #e2d6c3;                 /* honed travertine: the island, the bathroom */
  --residence-walnut:     #6b4b35;                 /* fluted walnut joinery */
  --residence-boucle:     #e2d7c5;                 /* the oat bouclé sofa */
  --residence-rug:        #cdbfa8;
  --residence-linen:      #efe9df;
  --residence-bedding:    #ddd2c1;
  --residence-bronze:     #9a7650;                 /* brushed bronze: taps, handles, lamp stems */
  --residence-ceramic:    #e7ddcd;                 /* cream glazed ceramics */
  --residence-ceramic-dark: #6d5a4a;
  --residence-terracotta: #b97452;
  --residence-porcelain:  #f6f3ee;
  --residence-olive-leaf: #7f8e6c;                 /* an olive tree's silver-green */
  --residence-olive-leaf-light: #9aa587;
  --residence-olive-trunk:#6e6252;
  --residence-art-warm:   #b4835c;                 /* the picture's ochre shape */
  --residence-mirror:     #a9b0b2;
  --residence-hob:        #1e1c1b;
  --residence-shadow-gap: #3a322b;                 /* the dark gap under plinths */
  --residence-lamp:       #ffd9a0;                 /* a lamp shade, lit */
  --residence-light:      #ffc690;                 /* the lamps' light, 2700 K */
  --residence-ambient:    #625549;                 /* the warm light bounced round the rooms */
  --residence-window-light: #6f84a8;               /* the dusk through the glass */
  --residence-glass-pane: #dfeaf0;
  --residence-mullion:   #3b3f42;                  /* the dark frames between the tower's panes */
  --residence-glow:      #ffcf8a;                  /* a lit window seen from outside */
  --residence-cove:      #ffe2b0;                  /* the warm light along a ceiling's edge */
  --residence-art:       #d8ccb8;                  /* a big canvas, sand (the flat's picture) */
  --residence-curtain:   #ece4d6;                  /* linen curtains */
  --residence-cushion:   #a99a7e;                  /* an olive-grey cushion */
  --residence-cushion-warm: #b36a45;               /* rust linen */
  --residence-film-backdrop: #101417;              /* behind the film's clips (src/residence-film-player.js) while one loads */
  --residence-film-spot:  #ffd27a;                 /* a hotspot's dot on the film's picture: the lit floor's colour */
  --house-1:            #f5f2eb;                   /* warm white */
  --house-2:            #f1e5cd;                   /* cream */
  --house-3:            #eedccb;                   /* apricot */
  --house-4:            #e1e9df;                   /* pale sage */
  --house-5:            #dfe6ee;                   /* pale blue */
  --roof-1:             #c98f77;                   /* terracotta tiles */
  --roof-2:             #a88a7b;                   /* brown metal tiles */
  --roof-3:             #9ea4aa;                   /* slate grey */
  --roof-4:             #bd7b6c;                   /* red tiles */
  /* ... the ground (tiles painted by tools/build-3d.mjs): */
  --land:               #e8e6d6;                   /* open land */
  --land-farm:          #ece3c1;                   /* fields */
  --land-grass:         #d4e6bf;                   /* grass, meadows */
  --land-park:          #c3e0ad;                   /* parks, gardens */
  --land-pitch:         #b7daa1;                   /* sports pitches */
  --land-forest:        #b2cf9e;                   /* under woods */
  --land-canopy:        #9bbd88;                   /* a wood's crowns, painted from above */
  --land-canopy-light:  #bcd8a8;                   /* ... their side towards the sun */
  --land-orchard:       #cfe0b2;                   /* orchards, vineyards */
  --land-scrub:         #d6ddc0;                   /* scrub */
  --land-wetland:       #cde0d4;                   /* marsh */
  --land-built:         #eceae3;                   /* houses' land */
  --land-industrial:    #e2e1e8;                   /* industry, car parks, railways */
  --land-commercial:    #f0e0e7;                   /* shops and offices (2026-11-04: more colour where we know) */
  --land-education:     #f2eac6;                   /* schools, universities, kindergartens */
  --land-health:        #f3dbd7;                   /* hospitals, clinics */
  --land-cemetery:      #d2dcc6;                   /* cemeteries */
  --land-sand:          #efe5c8;                   /* sand, beaches */
  --land-high:          #e9dcc8;                   /* high ground, mixed in from 600 m up */
  --water:              #aed6ea;                   /* lakes and rivers at the shore (shallow) */
  --water-deep:         #7db2d3;                   /* ... and 80 m out (deep): the colour fades from one to the other */
  --water-edge:         #8dbfd9;                   /* (not drawn since 2026-11-04: the shore is the fade) */
  --place-halo:         #ffffff;                   /* ... the light edge that keeps it readable on the photo */
  --map-box-line:       #ff2f6d;                   /* the box drawn to select plots (Shift + drag, group editor) */
  --map-box-fill:       rgba(255, 47, 109, 0.12);

  /* Client palette, for the "all plots" map: each client is auto-assigned one of these,
     in order, and repeats if there are more clients than colours. Add more --client-color-N
     entries (and raise clientPaletteSize in src/config.js) if you often have many clients. */
  --client-color-1: #2f6fed;
  --client-color-2: #12b3a8;
  --client-color-3: #e2892e;
  --client-color-4: #8452d5;
  --client-color-5: #d5455e;
  --client-color-6: #4c9a2a;
  --client-color-7: #c9994a;
  --client-color-8: #4472a8;
  --client-color-none: #93a0a3; /* a plot with no client, or an unknown clientId */

  /* ------------------------------------------ Market study (pitch.css, report.css) */
  --paper:           #ffffff;   /* the study's page, and the price cards */
  --impact-high:     #1c6b4a;   /* the dot beside "strong benefit to people and nature" */
  --impact-medium:   #6f9c83;   /* "some benefit" */
  --impact-low:      #b3bdbf;   /* "conventional use" (a word always goes with the dot) */
  --sdg-chip-bg:     #e7f0ea;   /* UN Sustainable Development Goal chips */
  --sdg-chip-text:   #1d4b37;

  /* The price chart (report.css, .chart). The two mark colours were checked with a colour-blindness
     validator (protanopia and deuteranopia): keep them far apart if you change them. */
  --chart-range:     #ff2f6d;   /* each use's indicative price range: the point of the chart */
  --chart-listing:   #2f6fed;   /* one listing's asking price */
  --chart-reference: #10222b;   /* the notary grid minimum */
  --chart-grid:      #d6dcd7;
  --chart-surface:   #ffffff;
  /* The price index over time (index-chart.css, 2026-11-20): asking prices as --chart-listing (a line and a band), the
     likely sale price as --chart-range (the point), the notary grid as --chart-reference (dashed). Known sales are squares
     in --chart-sale: told apart from the pink and blue by their shape too, not only their colour. */
  --chart-band:      rgba(47, 111, 237, 0.14);
  --chart-sale:      #b86e00;

  /* ------------------------------------------------------------------ Type
     Display: headings and big numbers. Body: everything else.
     The fonts are loaded by the <link> in admin.html. Keep the fallbacks. */
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace; /* codes to copy (two-step recovery codes) */

  --text-2xs:    0.6875rem;  /* the map's credits */
  --text-xs:     0.75rem;
  --text-sm:     0.8125rem;
  --text-base:   0.9375rem;
  --text-md:     1rem;       /* the public site's body text */
  --text-small:  var(--text-sm); /* (another name, used by finder.css) */
  --text-lg:     1.125rem;
  --text-title:  1.5rem;
  --text-figure: 3.25rem;    /* the big area number */
  --text-print:       9.5pt; /* the market study's PDF: body text */
  --text-print-small: 7.5pt; /* ...and its widest table (the listings) */

  --leading-tight: 1.12;
  --leading-body:  1.5;

  /* ---------------------------------------------------------------- Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;

  /* ----------------------------------------------------------------- Shape
     One scale on every page (2026-11-04, the owner: "make it cohesive"):
       --radius-pill    every button, segmented group, chip, badge and status line (round ends)
       --radius-control a text box, a select, a small square icon, a row's highlight
       --radius-card    a card or box (in a panel, on a page), the panel itself, a popover over the map
       --radius-bottom-sheet  the phone's sheet over the map and the finder's floating bubble (rounder, like the phone)
       --radius-small   tiny marks only: a legend's square, a drawn tick box
     Circles (dots, round icon buttons) use 50%. */
  --radius-control: 10px;
  --radius-card:    16px;
  --radius-sheet:   var(--radius-card);  /* the panel and popovers: the same corner as a card */
  --radius-small:   4px;
  /* Concentric corners, the web version of Apple's ConcentricRectangle (SwiftUI): a shape set inside another, with a
     gap around it, gets the outer corner minus that gap, so the two curves run parallel instead of pinching. Change
     --radius-control or a gap and the outer shapes follow. */
  --inset-segmented: 3px;    /* the gap around the buttons inside a .segmented group (EN / RO, 3D / Top down) */
  --radius-segmented: calc(var(--radius-control) + var(--inset-segmented));
  /* Round ends (2026-11-04, the owner: the map styles and EN / RO as round as "Rotate"): every segmented group and the
     buttons in it, the round chips on the map. */
  --radius-pill: 999px;
  --inset-sheet: var(--space-2); /* the gap between the panel's edge and the round buttons floating inside it */

  /* ------------------------------------------------------------ Controls
     One family of buttons, links and fields on every page (2026-11-14, the owner: "Apple level ... clean and cohesive";
     styles/controls.css, docs/DESIGN.md "Controls"). Nothing falls back to the browser's own grey buttons or blue links. */
  --accent:        #d90f52;  /* the one filled button per screen (pink, dark enough for white text: 5:1) */
  --accent-hover:  #c00a48;
  --accent-text:   #ffffff;
  --tick-pick:     #007aff;  /* the ticks in "Photos for listings" (iOS's blue, apart from the plots' pink on the map) */
  --fill:          rgb(16 34 43 / 0.06);  /* a secondary button in a panel or card: a soft tint, no border, no shadow */
  --fill-hover:    rgb(16 34 43 / 0.10);
  --hover:         rgb(16 34 43 / 0.06);  /* the soft wash under a link or text button under the pointer */
  --press:         rgb(16 34 43 / 0.12);  /* ... and while pressed */
  --thumb:         #ffffff;               /* the chosen part of a segmented control (like iOS's) */
  --shadow-thumb:  0 1px 2px rgb(16 34 43 / 0.12), 0 2px 6px rgb(16 34 43 / 0.08);
  --link-line:     rgb(16 34 43 / 0.28);  /* the faint underline of a link inside a sentence */
  --control-height:    2.25rem;  /* a button */
  --control-height-sm: 1.75rem;  /* a small one: in a row, a segmented group in a panel */
  --field-height:      2.375rem; /* a text box or a select */
  --field-height-sm:   2rem;     /* ... in a row of a list */
  /* A select's chevrons (macOS's "up and down"), in --ink-muted: written out because a picture can't read a variable. */
  --chevron-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M2 5l3-3 3 3M2 9l3 3 3-3' fill='none' stroke='%2356666b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  --shadow-sheet:   0 1px 2px rgb(16 34 43 / 0.10), 0 14px 36px rgb(16 34 43 / 0.18);
  --shadow-sheet-up: 0 -1px 2px rgb(16 34 43 / 0.08), 0 -10px 30px rgb(16 34 43 / 0.16); /* the phone's sheet over the map */
  --shadow-control: 0 1px 2px rgb(16 34 43 / 0.14), 0 4px 12px rgb(16 34 43 / 0.10);
  --shadow-card:    0 6px 20px rgb(16 34 43 / 0.08); /* an open client card on /admin */

  /* Frosted glass (the client's presentation and /admin, styles/glass.css): the panel and the buttons on the map let the map
     show through, blurred, with a bright rim like Apple's Liquid Glass. Kept frosted enough to read on any photo. */
  --glass-opacity:       74%;    /* how much of --sheet covers the map (100% = solid) */
  --glass-opacity-panel: 84%;    /* the big panel on a computer, which holds a lot of text */
  --glass-blur:          22px;
  --glass-saturate:      170%;
  --glass-rim:   inset 0 1px 0 rgb(255 255 255 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.22);
  --glass-shadow: 0 1px 3px rgb(16 34 43 / 0.10), 0 10px 30px rgb(16 34 43 / 0.16);
  /* Liquid glass (the public pages, 2026-11-04, the owner: "very glassy, like Apple Music"): clearer than --glass-*,
     more blur and colour from what is behind, a bright rim on top and a soft one below, like a pane catching the light. */
  --liquid-opacity:  52%;
  --liquid-opacity-panel: 70%;   /* the list floating over the map holds text: a little more frosted */
  --liquid-blur:     30px;
  --liquid-saturate: 190%;
  --liquid-rim:      inset 0 1px 0.5px rgb(255 255 255 / 0.85), inset 0 -1px 0.5px rgb(255 255 255 / 0.30), inset 0 0 0 0.5px rgb(255 255 255 / 0.45);
  --liquid-shadow:   0 1px 2px rgb(16 34 43 / 0.08), 0 12px 40px rgb(16 34 43 / 0.18);
  --liquid-sheen:    linear-gradient(180deg, rgb(255 255 255 / 0.38), rgb(255 255 255 / 0) 55%);
  --finder-tabs-height: 3.6rem;  /* the tab bar at the bottom */
  --radius-bottom-sheet: 26px;   /* the phone's sheet over the map (and the finder's bubble, --radius-bubble) */

  /* ---------------------------------------------------------------- Layout */
  --sheet-width: 26rem;      /* width of the info panel on desktop (/admin; 23.5rem until 2026-11) */
  --sheet-width-present: 26rem; /* the same panel on the client's presentation, which holds the price cards */
  --edge:        1rem;       /* gap between panels and the screen edge */
  --report-width:  54rem;    /* the market study's page on screen (report.html) */
  --report-gutter: 3.25rem;  /* its side margins on screen (printed pages use @page in report.css) */

  /* ---------------------------------------------------------------- Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration: 160ms;
  /* The phone's sheet over the map springs by itself (src/bottom-sheet.js, RESPONSE and DAMPING); this is iOS's sheet
     curve, for things that fade or move with it. */
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-sheet: 440ms;

  /* ------------------------------------------------- Public site (index.html, styles/site.css)
     Sizes grow with the window between a phone and a wide screen (clamp: smallest, preferred, largest). */
  --site-width:      78rem;                              /* the widest the content gets */
  --site-gutter:     clamp(1rem, 4vw, 3rem);             /* space at the left and right edges */
  --site-section:    clamp(4.5rem, 11vw, 9rem);          /* space between sections */
  --site-bar-height: 4rem;
  --site-text-hero:  clamp(2.4rem, 5.6vw, 4.75rem);      /* the first headline */
  --site-text-h2:    clamp(1.75rem, 3.6vw, 2.9rem);      /* section headlines */
  --site-text-big:   clamp(1.5rem, 3.2vw, 2.6rem);       /* the "About us" statement, the contact links */
  --site-text-lead:  clamp(1.05rem, 1.4vw, 1.25rem);     /* the first paragraph under a headline */
  --site-ease:       cubic-bezier(0.16, 1, 0.3, 1);      /* sections fading in */
  --radius-tile:     var(--radius-card);                 /* the "Who it is for" tiles and the example pictures' frames: a card */
  --radius-phone:    34px;                               /* a phone's screenshot frame, as round as the phone */
  --inset-tile:      10px;                               /* the gap inside a picture's frame ... */
  --radius-shot:     calc(var(--radius-tile) - var(--inset-tile)); /* ... so the picture's corners run parallel (concentric) */

  /* ------------------------------------------------- The home page's land finder (index.html, styles/finder.css)
     and a listing's page (listing.html, styles/listing-page.css) */
  --finder-bar-height:   3.75rem;
  --finder-list-width:   clamp(23rem, 36vw, 33rem);       /* the list beside the map on a computer */
  --finder-map-phone:    44svh;                           /* the map at the top of a phone's page */
  --finder-float:        var(--space-3);                  /* the gap round the list floating over a computer's map */
  --sheet-gap:           12px;                            /* an open listing's bubble: its gap from the screen's edges at first */
  --sheet-peek:          13rem;                           /* its height at first (src/finder.js measures the listing's head into it) */
  --sheet-rise:          240px;                           /* how far it scrolls before it fills out to the edges */
  --radius-bubble:       var(--radius-bottom-sheet);      /* its corners while it floats */
  --finder-bubble-width: 13.5rem;                         /* the photo bubble over the map */
  --finder-stake:        2.25rem;                         /* the bubble's stake down to the land */
  --finder-photo-ratio:  16 / 10;
  --finder-grid:         rgb(16 34 43 / 0.045);           /* the faint survey grid behind the list */
  --finder-scrim:        rgb(16 34 43 / 0.55);            /* the dark band under a photo's price */
  --finder-scrim-text:   #ffffff;
  --listing-side:        22rem;                           /* the agency's card beside a listing, on a computer */
  --use-arabil:          #c9a227;                         /* land uses in a listing's "How the land is used" bar */
  --use-pasune:          #7fb35a;
  --use-faneata:         #a7c957;
  --use-livada:          #d97b4a;
  --use-vie:             #8e4a8f;
  --use-padure:          #2f6b3f;
  --use-curti:           #5c7c8a;
  --use-other:           #9aa5a8;

  /* The landscape at the top (src/site-scene.js reads these) */
  --scene-bg:        #f6f7f4;                            /* must match the page behind it */
  --scene-line:      #10222b;                            /* the ground lines */
  --scene-plot:      #ff2f6d;                            /* the staked-out plot and its pin (the logo) */
  --scene-plot-fill: rgba(255, 47, 109, 0.16);
  --scene-dot:       #10222b;                            /* corner stakes */

  /* "Where to look" (/admin?screen=1, src/screening.js, 2026-11-20): a cell's score, low to high (one hue rising, so
     it reads without colour too), the cells left out, and the ranked zones' outline and number. */
  --screen-1:            #f4efd6;
  --screen-2:            #d3e2a4;
  --screen-3:            #8cc58c;
  --screen-4:            #3c9f8c;
  --screen-5:            #156a78;
  --screen-out:          #b9bfc0;                         /* left out (Natura 2000, flood, too steep, too far...) */
  --screen-zone:         #ff2f6d;                         /* a ranked zone's outline and its number's pill */
  --screen-zone-casing:  #ffffff;
  --screen-label-text:   #ffffff;
}
