/* Area Redesign Digital Twin: design tokens ONLY
 * (docs/BRAND_ALIGNMENT_SPEC.md section 1).
 *
 * The :root block below is the Neighbourhood DT palette, copied verbatim from
 * aadorp-energy-dt-backend/web/index.html, so the two tools read as one product.
 * Dark is the only theme.
 *
 * No component rules in this file: those live in css/app.css (shared),
 * css/scene.css (stage-2 scene) and css/panels.css (stage-2 panels).
 *
 * Fonts are vendored into the image at build time (web/Dockerfile) rather than
 * fetched from Google Fonts, because this tool makes no CDN call at run time.
 * Family names and weights match the reference, so --font-head / --font-body
 * resolve to the same faces. Both families are SIL OFL 1.1; the licence travels
 * with the files in /vendor/fonts/<family>/LICENSE.
 */

/* ---------------- Space Grotesk (headings): 500, 600, 700 ---------------- */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/vendor/fonts/space-grotesk/space-grotesk-latin-500-normal.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: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/vendor/fonts/space-grotesk/space-grotesk-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/vendor/fonts/space-grotesk/space-grotesk-latin-600-normal.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: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/vendor/fonts/space-grotesk/space-grotesk-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/vendor/fonts/space-grotesk/space-grotesk-latin-700-normal.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: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/vendor/fonts/space-grotesk/space-grotesk-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------- IBM Plex Sans (body): 400, 500, 600, 700 ---------------- */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/vendor/fonts/ibm-plex-sans/ibm-plex-sans-latin-400-normal.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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/vendor/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/vendor/fonts/ibm-plex-sans/ibm-plex-sans-latin-500-normal.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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/vendor/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/vendor/fonts/ibm-plex-sans/ibm-plex-sans-latin-600-normal.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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/vendor/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/vendor/fonts/ibm-plex-sans/ibm-plex-sans-latin-700-normal.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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/vendor/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* TwinLink brand palette, sampled from the logo (web/Logo-twinlink.eu_.png):
     deep navy #002050, brand blues #0050a0 / #0070d0, leaf green #80b020. */
  --bg:#071228; --glass:rgba(8,18,39,.86); --glass2:rgba(13,26,52,.92);
  --brd:rgba(158,190,232,.20); --brd2:rgba(158,190,232,.11);
  --ink:#edf3fa; --ink2:#b3c2d4; --ink3:#8196ac;
  --accent:#3f92e0; --accent2:#155a9e; --leaf:#8db829;
  --warn:#ffb454; --bad:#ff7a70; --good:#a9cf4b;
  --blur:16px; --r:16px; --r2:11px; --shadow:0 10px 34px rgba(2,10,28,.5);
  --topbar-h:54px; --below:calc(var(--topbar-h) + 12px);
  --ease:cubic-bezier(.4,0,.2,1); --t:200ms var(--ease);
  --font-head:"Space Grotesk","IBM Plex Sans",Segoe UI,sans-serif;
  --font-body:"IBM Plex Sans",Segoe UI,Arial,sans-serif;

  /* ---- map layers (this tool has layers the reference does not; js/scene.js
     reads these through PocUtil.cssVar, so the rail swatches and the Cesium
     materials can never drift apart) ---- */
  --existing:#7d8ea3;        /* neutral slate: reads as context under the accent */
  --planned:var(--accent);   /* the plan is the subject: brand blue */
  --tree:var(--leaf);

  /* ---- sensor domains ---- */
  --dom-weather:#e0a33f;
  --dom-heat:var(--bad);
  --dom-indoor:#3fd0c0;      /* teal, distinct from --accent */
  --dom-energy:#a98cf0;
  --dom-air:var(--good);

  /* ---- semantic bands (the WBGT scale in js/panels.js) ---- */
  --ok:var(--good);
  --caution:var(--warn);
  --high:#e0813f;
  --danger:var(--bad);
  --extreme:#a98cf0;

}

/* Presentation mode scales the readable text for a projector at the back of a
 * room. The rules live in css/app.css and css/panels.css next to the elements
 * they scale; js/main.js only toggles body.presentation. */
