﻿/* ==========================================================================
   DERIVED COPY - DO NOT EDIT.
   Source: 00_Templates/brand/altv-brand.css
   Run 00_Templates/brand/sync_brand.ps1 to refresh.
   Any hand-edit here is a bug that will be overwritten on next sync.
   ========================================================================== */
/* ==========================================================================
   alt·v LAW — Portable Identity (Navy & Teal)
   altv-brand.css — v1.5.1 — 20261108
   --------------------------------------------------------------------------
   THIS FILE IS THE ONLY PLACE A COLOUR, FONT OR SIZE IS DEFINED.
   A hex code anywhere else in the codebase is a bug. Fix it here, not there.

   Changes require a line in CHANGELOG at the bottom and a version bump.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------
   Paste into <head> of every tool:

   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Jost:wght@300;400;500;600&family=Prata&family=Figtree:wght@400;500;600;700&display=swap">

   Prata + Figtree are loaded alongside the house pair because the editorial
   type stacks (--serif-editorial / --sans-editorial) are available from this
   file as well, for one-off hero deliverables rendered without the shared
   altv_report package (standalone HTML covers, pitch pages). Prata stands in
   for the licensed Higuen Elegant Serif; Figtree stands in for Nourd. See
   DESIGN.md for when these — and the acid-green --c-signature — are permitted.
   ------------------------------------------------------------------------- */

:root {

  /* == PRIMITIVES ========================================================
     Raw values. Nothing outside this block should contain a hex code.     */

  --c-navy:          #16294B;   /* structure, headers, ink            */
  --c-navy-2:        #27406B;   /* secondary navy, report subheads    */
  --c-navy-deep:     #0E1C33;   /* gradient shade, dark hover         */

  --c-teal:          #3E6B78;   /* THE accent. Actions, links, ticks  */
  --c-teal-deep:     #2A4B54;   /* accent hover, eyebrows, logo teal  */
  --c-teal-lift:     #4E8A9C;   /* THE action colour on light (derived)*/
  --c-teal-band:     #83ACB6;   /* bands, ticks, action on teal        */
  --c-teal-on-band:  #12333A;   /* text on band teal (derived)         */
  --c-teal-tint:     #EEF4F1;   /* selected fills, callouts           */
  --c-teal-darkest:  #1E383F;   /* hover on teal surfaces (derived)   */
  --c-mist:          #C4D7DF;   /* gradient mid-stop                  */

  --c-success:       #166534;   /* confirmations ONLY                 */
  --c-alarm:         #b91c1c;   /* errors, "behind" status            */

  /* Traffic-light status (v1.5.0). SEMANTIC ONLY: it shows status, and is never
     brand, action, heading or frame. Conventional hues, contrast-checked 3 Nov 2026:
     white on green 5.1:1, white on red 5.6:1, --c-rag-amber-on on amber 7.9:1, each ink
     on its own tint 5.7:1 or better. Amber fill alone is 2.1:1 on white, so an amber
     mark or outline on white takes --c-rag-amber-edge (3.8:1). Pair every status colour
     with a word or a shape. Values match coo_dashboard\status.py, approved 28 Oct 2026. */
  --c-rag-green:      #2E7D32;   /* fill; white text on it             */
  --c-rag-green-ink:  #1E6B24;   /* text on white or on the green tint */
  --c-rag-green-tint: #E4F3E5;
  --c-rag-amber:      #F5A300;   /* fill; --c-rag-amber-on text on it  */
  --c-rag-amber-on:   #2B1E00;
  --c-rag-amber-ink:  #7A4D00;   /* text on white or on the amber tint */
  --c-rag-amber-edge: #B37700;   /* outline or mark on white           */
  --c-rag-amber-tint: #FFF1CC;
  --c-rag-red:        #C62828;   /* fill; white text on it             */
  --c-rag-red-ink:    #A31515;   /* text on white or on the red tint   */
  --c-rag-red-tint:   #FDE7E7;

  /* Editorial signature — masthead-only on hero deliverables.
     Never body, UI, buttons, chips or report furniture. See DESIGN.md. */
  --c-signature:     #D7FF3D;
  --c-signature-ink: #0B0B0B;

  --c-ink:           #1C2530;   /* body text                          */
  --c-slate:         #56646F;   /* secondary text                     */
  --c-slate-soft:    #93A1AC;   /* captions, tertiary                 */
  --c-line:          #DCE3EA;   /* borders, rules                     */
  --c-panel:         #F4F7F9;   /* panel / callout background         */
  --c-panel-2:       #ECF1F5;   /* deeper panel (report)              */
  --c-bg:            #ffffff;   /* page                               */

  /* == SEMANTIC ALIASES ==================================================
     Use these in your rules, not the primitives above.                    */

  --brand:           var(--c-teal-deep);      /* surfaces: header, masthead  */
  --brand-2:         var(--c-teal);           /* secondary surface / subhead */
  --brand-deep:      var(--c-teal-darkest);   /* hover on brand surfaces     */

  /* Navy is retained as a primitive but no longer bound to any surface.
     To bring it back for headings only:  --heading: var(--c-navy);        */
  --heading:         var(--c-teal-deep);

  /* Accent is LIFTED teal, deliberately brighter than the teal-deep
     furniture around it. Luminance separates the action, not hue.      */
  --accent:          var(--c-teal-lift);
  --accent-hover:    var(--c-teal);
  --accent-deep:     var(--c-teal-deep);
  --accent-band:     var(--c-teal-band);
  --accent-soft:     var(--c-teal-tint);
  --accent-on-dark:  var(--c-teal-band);      /* actions/ticks on teal       */
  --on-accent-dark:  var(--c-teal-on-band);   /* text on band-teal buttons   */

  --ink:             var(--c-ink);
  --slate:           var(--c-slate);
  --slate-soft:      var(--c-slate-soft);
  --slate-light:     var(--c-slate-soft);
  --line:            var(--c-line);
  --panel:           var(--c-panel);
  --panel-2:         var(--c-panel-2);
  --bg:              var(--c-bg);
  --green:           var(--c-success);
  --alarm:           var(--c-alarm);

  --rag-green:       var(--c-rag-green);
  --rag-green-ink:   var(--c-rag-green-ink);
  --rag-green-tint:  var(--c-rag-green-tint);
  --rag-amber:       var(--c-rag-amber);
  --rag-amber-on:    var(--c-rag-amber-on);
  --rag-amber-ink:   var(--c-rag-amber-ink);
  --rag-amber-edge:  var(--c-rag-amber-edge);
  --rag-amber-tint:  var(--c-rag-amber-tint);
  --rag-red:         var(--c-rag-red);
  --rag-red-ink:     var(--c-rag-red-ink);
  --rag-red-tint:    var(--c-rag-red-tint);

  /* == TYPE ============================================================== */

  --ui:              'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif:           'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --doc:             'Jost', 'Century Gothic', system-ui, sans-serif;

  /* Editorial type pair — reserved for hero deliverables (briefings, decks,
     proposal covers). Prata stands in for the licensed Higuen Elegant Serif;
     Figtree stands in for Nourd. Pair with --c-signature on the masthead
     only. Do not use these for standard web-tool chrome. */
  --serif-editorial: 'Prata', 'Higuen Elegant Serif', Georgia, serif;
  --sans-editorial:  'Figtree', 'Nourd', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --caps-editorial:  'Century Gothic', 'URW Gothic', 'Avant Garde', sans-serif;

  --fs-h1:           clamp(28px, 4.5vw, 40px);
  --fs-h2:           clamp(22px, 3vw, 28px);
  --fs-h3:           20px;
  --fs-body:         15px;
  --fs-sm:           13px;
  --fs-xs:           11px;

  --lh-tight:        1.2;
  --lh-body:         1.55;

  --track-eyebrow:   .16em;      /* uppercase eyebrows / overlines     */
  --track-band:      .14em;      /* document band caps                 */

  /* == GEOMETRY ========================================================== */

  --radius-sm:       6px;
  --radius-md:       8px;
  --radius-lg:       10px;
  --radius-pill:     999px;

  --shadow:          0 4px 14px rgba(15, 42, 68, .08);
  --shadow-lg:       0 12px 32px rgba(15, 42, 68, .14);

  --border-w:        1.5px;

  /* == SIGNATURE ========================================================= */

  --gradient-footer: linear-gradient(90deg,
                       var(--c-teal)      0%,
                       var(--c-teal-band) 42%,
                       var(--c-mist)      68%,
                       #fff             100%);

  --gradient-hero:   linear-gradient(135deg,
                       var(--c-teal-deep) 0%,
                       var(--c-teal)    100%);
}

/* ==========================================================================
   REPORT / PRINT SCOPE
   --------------------------------------------------------------------------
   The print scopes historically carried their OWN hardcoded copy of the
   palette under --altv-* names, which is why re-themes used to land on
   screen but not in the PDF. They now MAP onto the primitives above, so a
   single edit propagates everywhere. Do not put literal values in here.
   ========================================================================== */

.altv-report,
.altv-cover {
  /* Names kept so existing tool rules keep resolving; values now teal. */
  --altv-navy:        var(--c-teal-deep);
  --altv-navy-2:      var(--c-teal);
  --altv-navy-deep:   var(--c-teal-darkest);

  /* Print has no CTA competing for attention, so the report keeps the
     deeper teal for accents. Large figures take the brand teal; navy is
     not used on the house surface (v1.5.1).                              */
  --altv-accent:      var(--c-teal);
  --altv-figure:      var(--brand);
  --altv-accent-deep: var(--c-teal-deep);
  --altv-accent-band: var(--c-teal-band);
  --altv-accent-soft: var(--c-teal-tint);
  --altv-accent-on-dark: var(--c-teal-band);

  --altv-ink:         var(--c-ink);
  --altv-slate:       var(--c-slate);
  --altv-slate-soft:  var(--c-slate-soft);
  --altv-line:        var(--c-line);
  --altv-panel:       var(--c-panel);
  --altv-panel-2:     var(--c-panel-2);
  --altv-green:       var(--c-success);
  --altv-alarm:       var(--c-alarm);

  --altv-sans:        var(--ui);
  --altv-serif:       var(--serif);
  --altv-doc:         var(--doc);

  /* Print density — deliberately smaller than the app. Do not scale up. */
  --altv-fs-body:     10.5px;
  --altv-fs-h1:       30px;
  --altv-fs-h2:       18px;
}

/* ==========================================================================
   CHANGELOG
   --------------------------------------------------------------------------
   v1.5.1 · 20261108 · Navy out of the report scope's figures (Derek, 8 Nov 2026:
            "I don't want anything in the navy scheme as it is out of sync with all
            other tools", then "Edit it" for this line). --altv-figure, the colour
            of large figures and headings inside .altv-report, was --c-navy; it is
            now --brand. One line changed; no primitive added or removed, and
            --c-navy, --c-navy-2 and --c-navy-deep stay defined for the report
            package and archived pages. Pages that read --altv-figure (the Roadmap
            Builder's stat values, the Engagement Pricer quote print) now render
            brand teal instead of navy once they take this version.
   v1.5.0 · 20261103 · Traffic-light status colours added to the house style
            (Derek, 3 Nov 2026: "I want standard red/green/amber colours for traffic
            light sections, so whatever is needed to standardise these colours as part
            of the house scheme should be enacted"). New primitives --c-rag-green,
            --c-rag-amber, --c-rag-red with ink, tint and (amber) on-fill and edge
            variants, and semantic aliases --rag-*. Values are the ones the COO
            Dashboard already ships (coo_dashboard\status.py, 28 Oct 2026). Semantic
            status only: amber stays retired as a brand, accent or action colour, and
            nothing existing was rebound, so no tool changes appearance until it adopts
            a --rag-* token. The report package's tokens.css is a separate system and is
            unchanged.
   v1.4.0 · 20261003 · Editorial type pair + acid-green signature added as
            available tokens on the house surface, for one-off hero
            deliverables assembled outside the shared altv_report package.
            New: --serif-editorial (Prata, stand-in for Higuen Elegant Serif),
            --sans-editorial (Figtree, stand-in for Nourd), --caps-editorial
            (Century Gothic), --c-signature (#D7FF3D) and --c-signature-ink
            (#0B0B0B). Google-Fonts <link> adds Prata + Figtree alongside the
            house trio. The house default remains teal + Inter + Source
            Serif 4; nothing in the standard tool chrome changed. The
            editorial pair and signature green are permitted ONLY where
            DESIGN.md says they are: hero deliverables, signature on the
            masthead, never body/UI/furniture.
   v1.3.0 · 20260729 · Compatibility shim retired. --amber / --altv-amber
            aliases removed. All ten Alt-V web tools now consume --accent /
            --altv-accent directly. Anything still amber-coloured breaks
            loudly on this version — which is the point.
   v1.2.0 · 20260728 · Accent lifted. Primary actions now --c-teal-lift
            (#4E8A9C) on light surfaces and --c-teal-band (#83ACB6) on teal
            surfaces, so the action is separated from the furniture by
            luminance rather than hue. Navy given a real job again: large
            figures and headings in the print scope only (--altv-figure).
            Both #4E8A9C and #12333A are derived values, not from any guide.
   v1.1.0 · 20260728 · Teal promoted from accent to surface colour. Header,
            hero, masthead and headings now teal-deep; navy retained as a
            primitive but unbound from every surface. Added --c-teal-darkest
            (derived) for hover on teal, and --accent-on-dark for actions and
            ticks sitting on teal surfaces.
   v1.0.0 · 20260728 · Frozen. Portable Teal adopted as the Alt-V house
            style. Amber retired. Navy foundation retained. Report scope
            remapped onto primitives so screen and PDF cannot diverge.
   ========================================================================== */
