/* tokens.css */
/* Innovadata design tokens: the one place for colour, type, spacing, control
   and motion values on /new. Every page loads this first: the hand-built pages
   (base.css), the reskinned live site pages (skin-site.css), the portal
   (skin-portal.css) and the monitoring page (monitor.css). Component files use
   these names only; a hex value outside this file is a bug.

   Source: the developer's DESIGN.md / COMPONENTS.md (2026-10-05) with the
   owner's decisions: Onest 700 for display and page headings (no Data Corner),
   IBM Plex Sans 400/500 for everything else. */

:root{
  /* Palette (DESIGN.md). Verdite is decorative only: never a primary action,
     selection or status colour. */
  --carbon:#1C262C; --carbon-hover:#10191E;
  --lime:#D5F05B; --lime-hover:#DDF37C;
  --paper:#F5F7F4; --surface:#FCFDF9; --selection:#F1F4EC;
  --muted:#58615E; --border:#CBD2C8; --control-rule:#778276;
  --dark-muted:#B8C3BA; --dark-surface:#2B373C;
  --verdite:#9E98D6; --support-surface:#F0EEF8;
  /* Status: the colour never carries the meaning alone; the text does. */
  --error:#8D3928; --error-surface:#F6ECE9;
  --warning:#80591D; --warning-surface:#F5EEDF;
  --success:#047857;
  --scrim:rgb(28 38 44 / 55%);
  /* The only shadow: transient overlays (menus, dialogs). */
  --shadow-overlay:0 8px 32px rgb(28 38 44 / 16%);

  /* Families */
  --font-body:Plex,system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-display:Onest,Plex,system-ui,sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,Menlo,monospace;

  /* Type roles. display = the home H1; page = the H1 of every other page and
     portal screen; section = H2; sub = H3 and leads; body; label = short
     metadata and field labels; control = buttons and inputs. */
  --text-display:56px; --lh-display:1.12;
  --text-page:40px;    --lh-page:1.12;
  --text-section:28px; --lh-section:1.25;
  --text-lead:20px;    --lh-sub:1.25; --lh-lead:1.5;
  --text-body:16px;    --lh-body:1.5;
  --text-sm:14px;      --text-label:14px; --lh-label:1.5;
  --text-control:16px; --lh-control:1.25;
  --text-mono:13px;
  --text-number:40px;
  --tracking-display:-.025em;
  --weight-regular:400; --weight-medium:500; --weight-display:700;

  /* Spacing (4 / 8 / 12 / 16 / 24 / 32 / 48 / 64, plus the 96 chapter gap). */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s6:24px; --s8:32px; --s12:48px; --s16:64px; --s24:96px;

  /* Shape and controls. Touch targets at least 44 px; standard controls 48 px. */
  --radius-control:4px; --radius-panel:8px; --rule:1px;
  --touch-min:44px; --control-size:48px; --control-size-sm:44px;
  --icon:20px; --icon-large:24px; --corner-size:24px;
  --support-corner:20px; --brand-cut:24px; --panel-corner:12px;
  --focus-ring:3px solid var(--carbon); --focus-offset:2px;

  /* Motion (COMPONENTS.md: corner grows 240 ms, pulses in a 600 ms cycle,
     returns in 160 ms). */
  --time-hover:140ms; --time-select:170ms; --time-press:70ms;
  --time-enter:240ms; --time-exit:160ms; --time-pulse:300ms;
  --ease:cubic-bezier(.2,.8,.2,1);
  --corner-rest:.38; --corner-hover:2.3005; --corner-pulse:2.3861;

  /* Layout */
  --max-width:1280px; --gutter:64px; --section-space:96px; --hero-space:64px; --header-space:24px;
  --logo-width:184px; --app-main:1120px;

  /* Light surface (default). Components read these instead of fixed colours,
     so a dark surface only has to swap them (see .nd-dark below). */
  --fg:var(--carbon); --fg-muted:var(--muted); --rule-color:var(--border); --link-mark:var(--verdite);
  --focus-color:var(--carbon); --panel-bg:var(--surface); --panel-border:var(--border);

  /* The tree checkbox (components.css): a 20 px box drawn inside a 44 px target,
     Lime tick on Carbon when checked. */
  --check-off:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='.5' y='.5' width='19' height='19' rx='2' fill='%23FCFDF9' stroke='%23778276'/%3E%3C/svg%3E");
  --check-hover:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='.5' y='.5' width='19' height='19' rx='2' fill='%23F1F4EC' stroke='%231C262C'/%3E%3C/svg%3E");
  --check-on:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='.5' y='.5' width='19' height='19' rx='2' fill='%231C262C' stroke='%231C262C'/%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23D5F05B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --mark-fail:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' rx='2' fill='%238D3928'/%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7' stroke='%23FCFDF9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --check-mixed:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='.5' y='.5' width='19' height='19' rx='2' fill='%231C262C' stroke='%231C262C'/%3E%3Cpath d='M5 10h10' stroke='%23D5F05B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");

  /* Button roles (components.css). */
  --btn-primary-bg:var(--carbon); --btn-primary-fg:var(--surface); --btn-primary-border:var(--carbon);
  --btn-primary-cell:var(--lime); --btn-primary-arrow-hover:var(--carbon); --btn-primary-hover-bg:var(--carbon);
  --btn-accent-bg:var(--lime); --btn-accent-fg:var(--carbon); --btn-accent-border:var(--carbon);
  --btn-accent-cell:var(--carbon); --btn-accent-arrow-hover:var(--lime); --btn-accent-hover-bg:var(--lime-hover);
  --btn-secondary-bg:transparent; --btn-secondary-fg:var(--carbon); --btn-secondary-border:var(--control-rule);
  --btn-secondary-hover-bg:var(--selection); --btn-secondary-hover-border:var(--carbon);
  --btn-destructive-fg:var(--error); --btn-destructive-border:var(--error); --btn-destructive-hover-bg:var(--error-surface);
  --btn-disabled-bg:var(--selection); --btn-disabled-fg:var(--carbon); --btn-disabled-border:var(--border); --btn-disabled-cell:var(--border);

  color-scheme:light;
}

@media(max-width:1023px){:root{--gutter:32px;--section-space:64px;--hero-space:48px}}
@media(max-width:767px){:root{--gutter:24px;--section-space:56px;--hero-space:32px;--header-space:16px;--logo-width:168px;
  --text-display:40px;--text-page:32px;--text-section:24px;--text-number:32px}}
@media(max-width:374px){:root{--gutter:16px;--text-display:36px}}

/* Dark surface: Carbon ground, Surface text, Dark-muted secondary text
   (9.4:1 on Carbon), Lime focus. A primary action on Carbon would vanish, so
   inside a dark surface the primary role takes the Lime accent look. */
.nd-dark,.on-dark{
  --fg:var(--surface); --fg-muted:var(--dark-muted); --rule-color:var(--control-rule); --link-mark:var(--lime);
  --focus-color:var(--lime); --panel-bg:var(--carbon); --panel-border:var(--carbon);
  --btn-primary-bg:var(--lime); --btn-primary-fg:var(--carbon); --btn-primary-border:var(--lime);
  --btn-primary-cell:var(--carbon); --btn-primary-arrow-hover:var(--lime); --btn-primary-hover-bg:var(--lime-hover);
  --btn-secondary-fg:var(--surface); --btn-secondary-border:var(--dark-muted);
  --btn-secondary-hover-bg:var(--dark-surface); --btn-secondary-hover-border:var(--surface);
  --btn-disabled-bg:var(--dark-surface); --btn-disabled-fg:var(--surface); --btn-disabled-border:var(--control-rule);
  background:var(--panel-bg); color:var(--fg);
}
/* fonts.css */
/* Font faces only (same as base.css), for reskinned live pages that must not
   take base.css element rules. */
@font-face{font-family:Onest;src:url('../fonts/onest-700-latin.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap;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:Onest;src:url('../fonts/onest-700-latin-ext.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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:Plex;src:url('../fonts/plex-sans-400-latin1.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02}
@font-face{font-family:Plex;src:url('../fonts/plex-sans-400-latin2.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0100-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E}
@font-face{font-family:Plex;src:url('../fonts/plex-sans-500-latin1.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02}
@font-face{font-family:Plex;src:url('../fonts/plex-sans-500-latin2.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0100-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E}
/* layout.css */

/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio.
   Put this @layer first; product CSS outside the layer always wins. The live
   stylesheets of the reskinned pages sit in the earlier layer `legacy`
   (tools/live.py), so these primitives also win over them. */
@layer legacy, od-layout;
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }
  .od-stack { display:flex; flex-direction:column; gap:var(--od-gap,8px); }
  .od-row { display:flex; align-items:center; gap:var(--od-gap,8px); }
  .od-row-top { display:flex; align-items:flex-start; gap:var(--od-gap,8px); }
  .od-cluster { display:flex; flex-wrap:wrap; align-items:center; gap:var(--od-gap,8px); }
  .od-fill { flex:1 1 0; min-width:0; }
  .od-fixed { flex:none; }
  .od-grid { display:grid; gap:var(--od-gap,12px); grid-template-columns:repeat(var(--od-cols,3),minmax(0,1fr)); }
  .od-stat,.od-field,.od-cell { display:grid; gap:var(--od-gap,2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display:block; }
  .od-tile { display:grid; grid-template-rows:auto 1fr; }
  :where(.od-tile) > :where(*) { display:block; }
  .od-media { display:block; width:100%; height:auto; aspect-ratio:var(--od-ratio,auto); }
  .od-media-cover { object-fit:cover; }
  .od-truncate { display:block; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .od-clamp-2,.od-clamp-3 { display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
  .od-clamp-2 { -webkit-line-clamp:2; }
  .od-clamp-3 { -webkit-line-clamp:3; }
  .od-lines-2 { min-height:calc(2 * 1.4em); }
  .od-nowrap { white-space:nowrap; }
  .od-keep { word-break:keep-all; overflow-wrap:anywhere; }
  .od-screen { display:grid; grid-template-rows:auto minmax(0,1fr) auto; height:100%; }
  .od-scroll { overflow-y:auto; overscroll-behavior:contain; min-height:0; }
  .od-rail { display:flex; gap:var(--od-gap,8px); overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none; padding-inline:var(--od-rail-pad,16px); scroll-padding-inline:var(--od-rail-pad,16px); }
  .od-rail::-webkit-scrollbar { display:none; }
  :where(.od-rail) > :where(*) { flex:none; scroll-snap-align:start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end:var(--od-rail-pad,16px); }
  .od-spacer { flex:none; visibility:hidden; pointer-events:none; }
  .od-touch { min-width:44px; min-height:44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */
