/* Flowright office pages — the design family's tokens (docs/HOUSE-RULES.md, "The design family").
   Tokens only, no component rules: every page's own stylesheet loads after this and may extend
   or override. The light palette every page agrees on is below; a page's own light block keeps
   only what that page truly changes.
   The one non-token declaration here is color-scheme, which is a root setting, not a rule. */
:root{
  color-scheme:dark;   /* the native controls' half of the theme: see the pair's note, below */
  --bg:#070b16;
  --panel:rgba(255,255,255,.025);
  --panel2:rgba(255,255,255,.045);
  --line:rgba(255,255,255,.07);
  /* the edge a box to type or choose in is known by: 3:1 on every sheet a box stands on (WCAG 1.4.11). --line is a
     hairline between things, too faint to find a box by */
  --field-edge:rgba(255,255,255,.42);
  --cyan:#22d3ee;
  --on-cyan:#04222b;
  --cyan-ink:#22d3ee;
  --green-ink:#2dd98a;
  --amber-ink:#f5a623;
  --red-ink:#ff4f6a;
  --orange-ink:#fb923c;
  --green:#2dd98a;
  --amber:#f5a623;
  --red:#ff4f6a;
  --on-red:#2b0610;
  --ink-2:rgba(255,255,255,.72);
  --ink-3:rgba(255,255,255,.48);
  --ink-4:rgba(255,255,255,.46);
  --ui:'IBM Plex Sans',system-ui,sans-serif;
  --disp:'IBM Plex Sans',sans-serif;
  --mono:'IBM Plex Sans',system-ui,sans-serif;
}

/* The light palette every programme page agrees on: the grounds, and each status colour's
   INK - the colour as text, the dark form paper needs. A status colour's plain name is its FILL (a dot, a bar, a pin),
   which keeps its hue on paper unless a page says otherwise. html[...] and never :root[...] - :root[data-theme] (0,2,0)
   would outrank a page's own html[data-theme="light"] override (0,1,1), which is how a page keeps what it truly changes.
   Orange is a risk band's alone, the colour RiskBand gives Significant: a band is a word, so only its ink is here, and a
   page paints a band in the ink of the colour RiskBand names, never a value of its own. */
html[data-theme="light"]{
  --bg:#e9edf3;
  --panel:rgba(255,255,255,.55);
  --panel2:rgba(255,255,255,.8);
  --line:rgba(13,20,33,.1);
  --field-edge:#7d899c;
  --cyan-ink:#0c7288;
  --green-ink:#0c6e3f;
  --amber-ink:#8a5a00;
  --red-ink:#bc1f42;
  --orange-ink:#a8480a;
}

/* Native form controls: the white-on-white <select> popup on Windows.
   Chromium builds a select's popup as its own small document (Windows and Linux;
   macOS uses a native menu): color-scheme reaches it as the popup's scheme, so its scrollbar and
   checked-row highlight follow the theme. It does NOT paint the rows: the popup's list takes the
   page select's own computed background and colour, and every select here is a translucent
   panel tint over a body Chromium paints white — so without an opaque `option{background}` in the
   page's sheet the dark theme lists light ink on white (measured 1.17:1). That per-page paint is
   the fix, held level for both themes by SelectPopupPaintedForBothThemesTest; this pair is the
   half color-scheme really does: dark on :root, at the head of the tokens above, and light here.
   Follows the theme switch (fragments/theme :: boot stamps data-theme on <html>); design-system.css
   carries the same pair for the pages that load it. */
:root[data-theme="light"]{color-scheme:light}

/* Focus is not hidden under a pinned bar (WCAG 2.4.11). A browser that scrolls a focused control into view
   stops this far inside the top and bottom edges, so a sticky header or a fixed save bar cannot cover it: 80px
   and 96px clear most of them. A sheet with a taller bar says so with --stick-top or --stick-bottom on :root (the
   stock library, the schedule shell, the field app), and a frame that scrolls inside a page keeps its own
   room with scroll-padding on the frame. A root setting, like color-scheme - not a component rule. */
html{scroll-padding-top:var(--stick-top,80px);scroll-padding-bottom:var(--stick-bottom,96px)}

/* ── Skip link + screen-reader-only text ───────────────────────────────────────────────
   The skip link is the first focusable thing on the page and is off-screen until it is
   focused, so it costs a sighted user nothing and saves a keyboard user tabbing through the
   whole topbar on every page. It is absolutely positioned, which keeps it OUT OF FLOW: it
   cannot become a flex or grid item, and it cannot shift a nth-child rule that counts
   children of the body. .sr-only is the same trick for headings a page shows visually in
   some other way. */
.skip-link{position:absolute;left:-9999px;top:0;width:1px;height:1px;overflow:hidden;z-index:99999}
.skip-link:focus{left:8px;top:8px;width:auto;height:auto;overflow:visible;
    padding:10px 16px;border-radius:8px;background:#22d3ee;color:#04222b;
    font:600 14px/1.2 var(--ui);text-decoration:none;
    outline:2px solid #04222b;outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
    clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* the amber strip a money page shows while the wages export cannot be read or is out of date (fragments/csv-banner) */
.csv-banner{position:relative;z-index:1;flex:none;display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline;justify-content:center;padding:9px 18px;background:#2a1d05;border-bottom:1px solid rgba(245,166,35,.55);color:#f5a623;font:600 13px/1.4 'IBM Plex Sans',system-ui,sans-serif}
.csv-kicker{font-size:10px;letter-spacing:.18em;text-transform:uppercase}
.csv-say{color:#fbd38d;font-weight:500}
.csv-why{color:#c9a25d;font-weight:400}
