/* ============================================================================
   ds-identity.css — THE IDENTITY LAYER, WRITTEN DOWN FOR THE FIRST TIME
   ============================================================================

   WHY THIS FILE EXISTS. Measured 2026-09-02: `--module`, `--module-wash`,
   `--module-ink` and `--module-shell` reach 89, 89, 50 and 37 drawings and are
   defined in NO GOVERNING FILE ANYWHERE. The founder's ten allocations — arcs,
   steps, the reserved band, the spoilage-hue correction — existed only as
   pasted `:root` blocks in eighty-nine separate files.

   That is why a single hue ruling cost 101 drawings re-derived twice in one
   day, and why a stale angle survived in the brand mark after the allocation
   that moved it.

   ONE FACT, ONE HOLDER. A drawing now declares ONE value — its hue angle — and
   inherits the whole family:

       :root { --hue: 209; }        <- the module's declared angle, and nothing else

   ============================================================================
   THE FAMILY, DERIVED AND NEVER TYPED
   ============================================================================

   Four steps off one angle. The lightness and chroma are fixed across every
   module so no module is louder than another, and the whole family sits under
   the mark's chroma so A MODULE HUE IS ALWAYS LESS CHROMATIC THAN THE MARK.

     --module        0.58  0.18   the 5px bar, the dot, the rule
     --module-ink    0.42  0.09   a label on paper, at contrast
     --module-shell  0.885 0.055  THE PAGE SKIN
     --module-wash   0.965 0.020  a field behind a non-working region

   THE SKIN WAS LIGHTENED TO 0.945/0.030 AND RESTORED THE SAME DAY, and the mistake is worth
   keeping. The founder's swatch pick was the MIDDLE of three depths, which the form itself
   labelled as the value already live — so the pick was a CONFIRMATION and this office read it as
   a change. Lightening it to 0.945/0.030 washed the app skin almost to white and the founder
   asked where it had gone.

   A CONFIRMATION AND AN INSTRUCTION ARE NOT THE SAME ANSWER, and a form that offers the status
   quo as one of its options has to be read for which one it was.

   THE SKIN IS LIGHT, AND THIS IS THE CORRECTION OF 2026-09-02. Platform pages
   had no shell token and wore `--unknown` RAW as a page-sized field — the
   mark's own colour at full strength, so a held slot could not survive against
   its own background. Fourteen files shared it, which is how a defect becomes
   a convention. CHROME RECEDES AND THE MARK SURVIVES.

   ============================================================================
   THE REGION RULE — ADR 0123, DECIDED 2026-08-04
   ============================================================================

   Identity colour NEVER touches a figure, a bar, a coverage segment or a state
   mark. Inside a module THE WORKING SURFACE IS INK, PAPER AND VIOLET ONLY, and
   THE WORKING SURFACE IS DEFINED BY THE ELEMENT AND NOT BY THE PAGE — every
   cell that carries a figure or withholds one.

   So identity lives on chrome: the shell, the bar, the wash, the kicker, a
   column label. A row's state edge, a refusal chip and a held slot's ring are
   STATE MARKS, not chrome, and they take no identity colour ever.

   The ban and the reservation are two scopes of one colour and were collapsed
   into a false choice once: *purple is reserved* governs IDENTITY — no module
   may wear violet as its colour. *The working surface is violet only* governs
   FIGURES. They never conflicted.

   ============================================================================
   THE PLATFORM IS NOT A SECOND FAMILY
   ============================================================================

   A `--platform` / `--platform-shell` pair was minted on 2026-09-02 and is
   WITHDRAWN HERE, an hour after it was made. A platform page is a
   module-shaped identity at the reserved angle: it sets `--hue: 295` and uses
   the same four tokens as everything else.

   Two token sets for one derivation is the defect this file exists to end, and
   writing the derivation down is what made it visible.

   THE RESERVATION IS ENFORCED BY WHICH ANGLE YOU MAY SET, not by a second
   family: 275–315 is the identity band and belongs to the platform. No module
   may declare an angle inside it.

   ============================================================================
   THE ALLOCATION LIVES IN ONE PLACE AND IT IS NOT THIS FILE
   ============================================================================

   Twenty-two stepped hues, one per module, live in `Module System.dc.html` as
   `ARCS` — a live founder-ruled derivation. Restating the per-module angles
   here would recreate the exact defect this file corrects, one level up.

   The five family arcs, for orientation only — READ `Module System.dc.html`
   FOR WHICH MODULE HOLDS WHICH ANGLE:

     EXPOSURE  45– 69      REVENUE  149–197      INBOUND  209–233
     PRODUCT  243–267      PEOPLE   340–356      IDENTITY 275–315 (platform)

   ============================================================================ */

:root {
  /* The platform's angle is the default, so a drawing that declares no app
     is correctly platform-skinned rather than accidentally hue-less. */
  --hue: 295;
}

/* THE DERIVATION IS DECLARED ON *, AND THAT IS LOAD-BEARING RATHER THAN LAZY.
   ---------------------------------------------------------------------------
   It sat on :root for four hours and the claim above was FALSE below :root. Per
   the CSS variables spec, a var() inside a custom-property DECLARATION is
   substituted at computed-value time on the element the declaration matches. So
   --module-shell declared on :root resolved against :root's OWN --hue, and the
   already-resolved colour is what inherited. Re-declaring --hue on a descendant
   did nothing at all.

   Whole-page drawings never saw it, because they set --hue in their own :root
   where it does resolve. ONLY PER-ELEMENT AND PER-COMPONENT SCOPING FAILED, and
   silently — which is exactly what the frame needs, one component carrying a
   different app's identity per mount. It rendered a violet rule on a cyan app
   until the verifier measured it, and the JS interpolation added to work around
   it was treating the symptom.

   Declaring the family on * makes it recompute against each element's own
   inherited --hue, which is the behaviour the file claimed all along. */
*, ::before, ::after {
  --module:       oklch(0.58  0.18  var(--hue));
  --module-edge:  oklch(0.58  0.18  var(--hue));
  --module-ink:   oklch(0.42  0.09  var(--hue));
  --module-shell: oklch(0.885 0.055 var(--hue));
  --module-wash:  oklch(0.965 0.020 var(--hue));
}

/* A SURFACE WITH NO ESTABLISHED MODULE CARRIES NO IDENTITY AT ALL, and says so
   rather than borrowing one. `Rent` and `ModuleThirteen` are in this state: the
   record flags their attribution as unread and this office will not guess it.

       <div data-module="unattributed"> … </div>
*/
[data-module="unattributed"], [data-module="unattributed"] *,
[data-module="unattributed"] ::before, [data-module="unattributed"] ::after {
  --module: var(--ink-2);
  --module-edge: var(--edge-hi);
  --module-ink: var(--ink-2);
  --module-shell: var(--surface);
  --module-wash: var(--surface);
}
