/* Brand Guide 1.2 (November 2026): the site's only palette (Ditte, 22 Nov 2026).
   This file maps the tokens in tokens.css to the colors of the guide and holds the rules that follow from it.
   `html:root` keeps the weight these rules had while they were one of two palettes.
   To do: fold the token values into tokens.css.

   Brand guide:  Deep Navy #0A2740 · Teal #0097A9 · Ocean Blue #00768A · Cool White #F8FAFC ·
                 Fog Gray #E5EBEF · Graphite #2F3C46 · Sandstone #D9CAB3 · Muted Copper #B48E68 ·
                 Soft Slate Blue #6A8CA9 · Cool Lilac #B9C0D1 · Deep Sea Green #005F5E · Steel Blue Gray #4B5D68 */
html:root {
    --navy-deep: #0A2740;                         /* was #06121E  -> Deep Navy */
    --navy-raise: rgba(106, 140, 169, .18);       /* was #103352  -> Soft Slate Blue at 18% */
    --navy-line: #4B5D68;                         /* was #1D4566  -> Steel Blue Gray */
    --teal-bright: #0097A9;                       /* was #00B5CA  -> Teal */
    --sand-tint: #D9CAB3;                         /* was #F4EFE6  -> Sandstone */
    --white: #F8FAFC;                             /* was #FFFFFF  -> Cool White */
    --muted: #4B5D68;                             /* was #4A6072  -> Steel Blue Gray */
    --soft: #4B5D68;                              /* was #8598A6  -> Steel Blue Gray (Soft Slate Blue is 3.4:1 on Cool White) */
    --border: #B9C0D1;                            /* was #D8E2EA  -> Cool Lilac */
    --on-navy-muted: #B9C0D1;                     /* was #A9BDCC  -> Cool Lilac */
    --success: #005F5E;                           /* was #1E8A5E  -> Deep Sea Green */
    --amber: #B48E68;                             /* was #B45309  -> Muted Copper */
    --rec: #B48E68;                               /* was #C93C3C  -> Muted Copper */
    --rec-tint: rgba(180, 142, 104, .18);         /* was #FDECEC  -> Muted Copper at 18% */
    --bezel: #2F3C46;                             /* was #0B1722  -> Graphite */
    --bezel-line: #4B5D68;                        /* was #2A4257  -> Steel Blue Gray */
}
/* With one navy only, the second navy section needs a line to separate it from the hero */
html:root .theme-deep { border-top: 1px solid var(--navy-line); }

/* Ocean Blue on Sandstone is 3.3:1, so teal text in the sand band becomes Deep Navy */
html:root .theme-sand { --ocean: #0A2740; --muted: #2F3C46; }

/* Nothing outside the guide. Sandstone is a background only for content about people.
   The twelve colors above plus the signal colors on pages 9 to 11. The two old exceptions are gone:
   recording red is now Signal Red, and bright teal on navy is plain Teal.

   Signal colors, light surfaces:  Red #A5492E · Yellow #C4922A · Green #2E7A62
   Signal colors, Deep Navy:       Red #D9805F · Yellow #DDB052 · Green #5DB59A  (icon, dot or edge only)
   Rules applied here: no tinted backgrounds, no signal color as text, a signal color always with a mark
   or a word, not a chart series color (it may mark a limit), red = outside limit or blocked,
   yellow = pending, green = completed or approved. */
html:root,
html:root .theme-navy :is(.hh-screen, .cut, .form, .qms, .xcard, .action) {
    --sig-red: #A5492E; --sig-yellow: #C4922A; --sig-green: #2E7A62;
    --success: #2E7A62;                           /* completed, approved, signed */
    --amber: #A5492E;                             /* on this site amber marked late and refused: outside limit, blocked */
    --rec: #A5492E;                               /* recording state: nearest signal, see docs/claims.md 17d */
    --rec-tint: #E5EBEF;                          /* Fog Gray, no tinted background */
}
html:root :is(.theme-navy, .footer, .ins-sumbox, .sys-rail, .mods-out, .fmp) {
    --sig-red: #D9805F; --sig-yellow: #DDB052; --sig-green: #5DB59A;
    --success: #5DB59A; --amber: #D9805F; --rec: #D9805F;
}

/* A status is a mark plus words in Deep Navy, on a surface the guide already has */
html:root :is(.signed-box, .ins-stage .l.on, .ins-xrow em.on) { background: var(--white); color: var(--navy); }
html:root :is(.chip-ok, .hh-banner) { background: var(--fog); color: var(--navy); }
html:root :is(.chip-ok, .ins-stage .l.on, .ins-xrow em.on, .ins-head b.late)::before { content: "\25CF"; margin-right: .35em; font-size: .75em; vertical-align: .1em; }
html:root .chip-ok::before { color: var(--sig-green); }
html:root :is(.ins-stage .l.on, .ins-xrow em.on, .ins-head b.late)::before { color: var(--sig-red); }
html:root :is(.ins-stage .l.on, .ins-xrow em.on) { box-shadow: inset 0 0 0 1px var(--border); }
html:root :is(.ins-head b.late, .ins-drill tr.late td b, .trail .hu .who, .sys-wire .w-in) { color: var(--navy); }
html:root .recording .l-rec { color: var(--graphite); }
html:root .signed-box { border: 1px solid var(--fog); border-left: 4px solid var(--sig-green); }
html:root .signed-box::before { color: var(--sig-green); }
html:root .diff ins { background: none; box-shadow: inset 0 -2px 0 var(--sig-green); border-radius: 0; }
html:root .checks li.wait::before { color: var(--sig-yellow); }

/* Series and type colors come from the brand palette, never from the signal colors */
html:root .t-person { --c: #005F5E; }                    /* Deep Sea Green */
html:root .t-cause { --c: #B48E68; }                     /* Muted Copper */
html:root :is(.ins-stack .r, .k-r) { --c: #4B5D68; }     /* Steel Blue Gray, white text 6.85 */
html:root .sys-wire::after { background-image: repeating-linear-gradient(180deg, #B48E68 0 6px, transparent 6px 12px); }

/* Strict reading (Janus, 22 Nov): nothing outside the guide, also in glows, shadows and tints.
   Glows are Teal, shadows are Deep Navy, and a tinted light surface becomes Fog Gray with Deep Navy text. */
html:root {
    --shadow-card: 0 1px 2px rgba(10, 39, 64, .06), 0 12px 32px -12px rgba(10, 39, 64, .18);
    --shadow-stage: 0 30px 80px -30px rgba(10, 39, 64, .55);
}
html:root :is(.pcp.fill, .cps .cp, .route .cp)::before { box-shadow: 0 0 0 4px rgba(0, 151, 169, .2); }
html:root .sheet { box-shadow: 0 -12px 30px -12px rgba(10, 39, 64, .45); }
html:root .wrong-note { box-shadow: 0 -10px 24px -14px rgba(10, 39, 64, .4); }
html:root :is(.chip-teal, .ai-pill) { background: var(--fog); color: var(--navy); }
html:root :is(.synth-text, .proof-icon) { background: var(--fog); }

/* Classification is a filled label with the class written in it (guide, "Classification Colors"):
   Major = Signal Yellow with Deep Navy text. The status beside it stays a dot plus words. */
html:root .chip-ok:has(.cls) { display: inline-flex; align-items: center; gap: .4rem; padding: 0; background: none; }
html:root .cls-major { padding: .3rem .5rem; border-radius: 6px; background: #C4922A; color: #0A2740; }

/* First-Mover facts: Deep Navy cells between Steel Blue Gray lines, labels in Cool White */
html:root .fmp-facts div { background: var(--navy); }
html:root .fmp-facts dt { color: var(--on-navy); }
