/*
 * Caldura v4 — Caldura Capital · Variant C: Blue Institutional
 *
 * Apply: <body class="caldura-capital variant-blue-institutional">
 *
 * Strategic position: full conformance to the institutional pack (Brookfield,
 * KKR, Apollo, Blackstone). Deep navy primary, paper-white ground, parent gold
 * as the only non-navy color (cross-references only). No warm amber. No paper
 * texture. The brand thesis "warm not cold" is set aside in this variant in
 * favor of LP pattern-matching.
 *
 * Direction (the option deferred in the 2026-05-11 strategic brief, surfaced
 * 2026-05-14 for explicit comparison):
 *   • Default mode: light (paper-white)
 *   • Motion:       still
 *   • Mark:         Horizon (in deep navy, no amber endcaps)
 *   • Type weights: heavier (same as variant warm-distinctive)
 *   • Density:      editorial
 *   • Section motif: Horizon-derived, monochromatic navy
 *   • Voice:        declarative (same Capital register)
 *   • Palette:      deep navy + parent gold cross-refs · NO warm secondary
 *
 * Status: v4 cycle — added 2026-05-14 to give the comparison three Capital
 * positions: warm-distinctive (warm exception), warm-steel (middle ground),
 * blue-institutional (full conformance).
 */

.caldura-capital.variant-blue-institutional {
  /* Mode — paper-white default (not cream — registers as institutional white) */
  --bg-base:           var(--bg-base-paper);
  --bg-surface:        var(--bg-surface-paper);
  --bg-surface-hover:  var(--bg-surface-hover-paper);
  --text-primary:      var(--text-primary-light);
  --text-secondary:    var(--text-secondary-light);
  --text-tertiary:     var(--text-tertiary-light);
  --border:            var(--border-paper);
  --border-hover:      var(--border-hover-paper);

  /* Entity accent — deep institutional navy (9.44 contrast on cream,
     11.22 on paper-white, AA pass with margin to spare) */
  --accent:        27 54 93;       /* #1B365D Brookfield-pack navy */
  --accent-light:  67 104 143;     /* #43688F secondary blue; AA on paper and cream */
  --subtle:        220 230 240;    /* #DCE6F0 cool-tinted */

  /* No --accent-secondary. The whole point of this variant is monochromatic
     navy. Cross-references to the parent use --gold-parent-light, defined
     in foundation. */

  /* Focus — navy on paper-white */
  --focus-ring:    27 54 93;

  /* Motion — still */
  --motion-mode:        0;
  --motion-play-state:  paused;

  /* Type weights — same as variant warm-distinctive (Capital register) */
  --weight-display:    600;
  --weight-h1:         700;
  --weight-body:       400;
  --weight-wordmark:   500;     /* lockup "Caldura" — shared connected-brand wordmark weight */
  --weight-suffix:     400;     /* lockup " Capital" — entity suffix stays lighter than Caldura */
  --letter-spacing-display: 0.02em;

  /* Density */
  --density: editorial;

  /* No paper texture — institutional sites are flat surfaces, not paper. */
  --paper-texture-opacity: 0;

  /* CTA — navy on paper-white gives 11.22 contrast, AAA strong */
  --cta-bg:   27 54 93;     /* #1B365D navy */
  --cta-text: 248 246 240;  /* paper-white */

  /* Deck Tier-2 tokens for light paper ground */
  --deck-display-text:    rgb(26 18 16);
  --deck-subtitle-muted:  rgb(0 0 0 / 0.6);
  --deck-chrome-text:     rgb(0 0 0 / 0.65);
  --deck-kpi-hero:        color-mix(in srgb, rgb(var(--accent)) 80%, rgb(26 18 16));
  --deck-highlight-bg:    color-mix(in srgb, rgb(var(--accent)) 25%, transparent);
  --deck-section-band:    color-mix(in srgb, rgb(var(--accent)) 15%, rgb(var(--bg-base)));
}

/* Section labels in all-caps with wider tracking — same as other Capital variants */
.caldura-capital.variant-blue-institutional .section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* Cross-references to the parent (caldura.com) use parent gold — the ONLY
   non-navy color on the surface. */
.caldura-capital.variant-blue-institutional .parent-link {
  color: rgb(var(--gold-parent-light));
}

/* Links inside the variant are navy, NOT amber (no heat retention). */
.caldura-capital.variant-blue-institutional a:not(.parent-link) {
  color: rgb(var(--accent));
}

/* CTAs use --cta-bg / --cta-text declared above (navy + paper-white, 11.22).
   No per-variant .cta-primary override needed — the compare-page CSS reads
   the tokens directly. */

/* Manual dark override (for users who toggle to dark) */
.caldura-capital.variant-blue-institutional[data-color-scheme="dark"] {
  --bg-base:           var(--bg-base-dark);
  --bg-surface:        var(--bg-surface-dark);
  --bg-surface-hover:  var(--bg-surface-hover-dark);
  --text-primary:      var(--text-primary-dark);
  --text-secondary:    var(--text-secondary-dark);
  --text-tertiary:     var(--text-tertiary-dark);
  --border:            var(--border-dark);
  --border-hover:      var(--border-hover-dark);
  --accent:            112 144 176;   /* #7090B0 institutional pale, 5.54 on warm-black */
  --accent-light:      184 204 220;   /* #B8CCDC distinct pale blue for dark-mode accents */
  --subtle:            16 28 45;      /* #101C2D deep navy on dark */
  --focus-ring:        184 204 220;

  /* CTA in dark mode — pale-navy on warm-black */
  --cta-bg:   112 144 176;
  --cta-text: 26 18 16;

  /* Revert deck tokens to dark defaults */
  --deck-display-text:    rgb(255 255 255);
  --deck-subtitle-muted:  rgb(255 255 255 / 0.65);
  --deck-chrome-text:     rgb(255 255 255 / 0.50);
  --deck-kpi-hero:        color-mix(in srgb, rgb(var(--accent)) 80%, white);
  --deck-highlight-bg:    color-mix(in srgb, rgb(var(--accent)) 20%, transparent);
  --deck-section-band:    color-mix(in srgb, rgb(var(--accent)) 18%, rgb(var(--bg-base)));
}
