/* Copyright (c) 2026, Cognosys (Pty) Ltd */

/* ==========================================================================
   BuildDesk shared design tokens.

   Values that must be identical across desk and portal surfaces.
   Loaded by BOTH hooks.py::app_include_css (desk) and
   hooks.py::web_include_css (portal) so a single edit here changes
   both surfaces at once.

   Scope: :root. The FCA uses FF desk tokens for anything FF provides
   (colours, borders, spacing where FF has them). This file covers the
   one class FF's token system does not cover: values that must be
   identical on a desk page and a portal page. FF's design system does
   not span the desk/portal boundary, so shared-across-both values have
   no FF token to inherit and would otherwise be duplicated as literals
   in two files — which is how the desk's mark ended up at 24px while
   the portal's stayed at 28px.

   Naming: --bd-* prefix. Identifiable with the FCA; no collision with
   FF's --text-color / --card-bg / --primary / etc.

   Only values that (a) have no FF equivalent and (b) are duplicated
   between desk and portal rules belong here. Structural properties
   that never drift (border-radius: 50%, line-height: 1, etc.) stay as
   literals in the rules that own them. Tokenizing everything is
   over-engineering; the pattern collapses under its own weight when
   every number becomes a token.

   Consumers MUST use var(--token) without fallbacks. A fallback would
   re-duplicate the literal in each rule and recreate the drift problem
   the file exists to solve. If a consumer's surface fails to load this
   file, that is a wiring bug in hooks.py — not a runtime condition to
   guard against in CSS. Phase 1 tests verify both surfaces load the
   file.

   Current tokens:

     --bd-mark-size          The circle diameter of the phase mark
                             (desk .bd-phase-mark) and the status mark
                             (portal .bd-portal .bd-mark). Both render
                             the same primitive: a coloured circle with
                             a single character inside, filled by the
                             phase/status canonical hex.

     --bd-mark-font-size     The character size inside that circle.
                             The 2:1 circle-to-character ratio is the
                             design (the character occupies the middle
                             half of the circle). Literal px, not rem,
                             because a fixed-size element must not
                             reflow with a parent's base font-size —
                             see the .bd-phase-mark and .bd-mark rule
                             comments for the fuller rationale.
   ========================================================================== */

:root {
	--bd-mark-size: 28px;
	--bd-mark-font-size: 14px;
}