/* ============================================================================
   SRH ALOQOD — صرح العقود للعقارات
   shadow.tokens.css · shadow layer
   ----------------------------------------------------------------------------
   Inherited from ds/tokens/shadows.css, which is registered in
   _ds_manifest.json and already loaded through globalCssPaths.

   ONE channel was corrected: the colour.

     offsets, blur, spread, layer count and every alpha are reproduced
     verbatim — not one number moved.

     rgba(46,27,26,…)  ->  rgba(47,28,27,…)   the inherited value was the
                          superseded ink #2E1B1A, voided in the colour round.
     rgba(0,0,0,…)     ->  rgba(47,28,27,…)   pure black is not warm; bar.md
                          M10 requires "warm rgba(47,28,27,…), low opacity".

   47,28,27 is the approved ink #2F1C1B. Alphas are untouched, so the dark
   shadows keep their original 0.3 and 0.35 strength and only lose the cold cast.

   Provenance:
     [INHERITED]  geometry and alpha, verbatim
     [CORRECTED]  colour channel only, to the approved ink
   ========================================================================= */

:root {

  /* ==========================================================================
     PRIMITIVES — the five inherited steps, names preserved.
     No semantic elevation role is defined: the audit found no evidence for
     elevated / modal / popover / dropdown / overlay anywhere in the project.
     ====================================================================== */

  /* --- light surfaces ---------------------------------------------------- */
  --shadow-sm:
    0 1px 2px rgba(47, 28, 27, 0.06),
    0 1px 1px rgba(47, 28, 27, 0.04);

  --shadow-md:
    0 8px 24px rgba(47, 28, 27, 0.08),
    0 2px 6px rgba(47, 28, 27, 0.05);

  --shadow-lg:
    0 20px 48px rgba(47, 28, 27, 0.12),
    0 6px 16px rgba(47, 28, 27, 0.06);

  /* --- dark surfaces ----------------------------------------------------- */
  --shadow-dark-sm: 0 1px 2px rgba(47, 28, 27, 0.3);
  --shadow-dark-md: 0 12px 32px rgba(47, 28, 27, 0.35);


  /* ==========================================================================
     COMPONENT MAPPING          [DECIDED]
     ----------------------------------------------------------------------
     This is NOT an inheritance. The original muted tone carried no shadow.

     Why it changed: sand-50 was removed in the colour round, which deleted
     the "light" tone entirely. The muted tone therefore has to serve as the
     primary card as well, and sand-200 against a sand-100 page measures 1.04
     — below the threshold at which the eye separates them. Four cards in a
     grid read as one grey block.

     shadow-sm is the lightest intervention available in the inherited scale
     (alpha 0.06 and 0.04). It separates without drawing a line and without
     disturbing the dominance of sand.

     Scope: this role belongs to the current Card and nothing else. It does
     NOT make shadow-sm a default elevation for the system. The other four
     primitives keep no consumer.
     ====================================================================== */
  --card-shadow: var(--shadow-sm);
}


/* ============================================================================
   CONSUMERS
   ----------------------------------------------------------------------------
   HISTORICALLY INHERITED — the original Card carried three tones, and only
   two of them used a shadow:

       tone="light"   surface sand-50 (LIGHTER than the page)   --shadow-md
       tone="muted"   surface sand-200 (DARKER than the page)   none
       tone="dark"    surface ink-900                           --shadow-dark-md

   Our card resolves to sand-200, which is the muted tone exactly — and the
   muted tone carried neither shadow nor border. It separated itself by being
   darker than the page. The light tone cannot exist here at all: sand-50 was
   deliberately removed in the colour round.

   CURRENT APPROVED SYSTEM — the muted tone now takes --shadow-sm, because it
   has to carry the primary-card role that the deleted light tone used to hold.
   This is a declared decision, not a recovery:

       muted (historically)  ->  no shadow
       muted (approved now)  ->  --shadow-sm  via --card-shadow

   Every other primitive still has no consumer. --shadow-md, --shadow-lg,
   --shadow-dark-sm and --shadow-dark-md are inherited and kept because the
   scale is registered in the manifest, not because a role was found for them.

   ============================================================================
   GUARD RAILS
   ----------------------------------------------------------------------------
   · The scale lives here and nowhere else — never duplicate it.
   · No raw box-shadow in components.css.
   · The card's shadow comes from --card-shadow. Do not hard-code one, and do
     not remove it on the grounds that the historical muted tone had none —
     that guidance was superseded by an explicit decision.
   · Do not reintroduce sand-50 to recreate the light tone.
   · Do not give the remaining four primitives a consumer without evidence.
   · Button's `inset 0 0 0 1.5px` is a border drawn with box-shadow, not
     elevation. It does not belong to this system.
   · Badge, Input, Notice and Divider carry no shadow.
   · No semantic elevation roles until a reference justifies them.
   · This file has no effect on the frozen SRH ALOQOD master logotype.
   ========================================================================= */
