/* Floating chrome (.lgc-float), 2 November 2026. The partner portal's docked Videos bar recipe as
   a material role: controls that hover over moving content outside any panel (a docked bar, the
   theme button, map controls). A see-through tinted glass with a strong blur and saturation, so
   what passes underneath stays visible in colour while labels and icons stay legible.
   Menus, popups, tooltips and toasts keep the overlay material. --lg-float-solid is the
   near-opaque surface for a menu that opens inside a blurred parent, where its own blur cannot
   reach the page. Dark is the default; html.lg-light switches to daylight. Pack rule: reduced
   transparency never switches it to solid.
   One source (fix plan K3.3, 16 November 2026): this file holds the float tokens. The dark default is at zero
   specificity, so a surface's own base (the Pixotope layer, a navy dashboard, lg-carbon.css, lg-amoled.css) always
   wins; light keeps html.lg-light so a surface's dark base never leaks into Light. lg-theme.css carries a fallback copy
   of the same default for pages that load the theme switch without this file. */
:where(html) {
  --lg-float-glass: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)), rgba(28, 28, 30, .72);
  --lg-float-glass-hover: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)), rgba(28, 28, 30, .76);
  --lg-float-edge: rgba(255, 255, 255, .10);
  --lg-float-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), var(--lg-shadow-2);
  --lg-float-shadow-sm: inset 0 1px 0 rgba(255, 255, 255, .10), var(--lg-shadow-2);
  --lg-float-blur: blur(24px) saturate(1.8);
  --lg-float-solid: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)), rgba(28, 28, 30, .98);
}
/* Per-surface dark base (Fan, 3 November 2026). The default above is the portal's black-page base. The dashboards
   (Renewals, Performance, Partner Region Map) sit on a navy page, so they take a navy base at a lower alpha and their
   floating chrome reads as glass no darker than the page: html[data-lg-page="navy"] here, or the same values in each
   dashboard adapter's BEGIN SHARED FLOAT GLASS R8 block. The sheen, edge role and blur stay the same. */
html[data-lg-page="navy"]:not(.lg-light) {
  --lg-float-glass: linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)), rgba(28, 28, 30, .40);
  --lg-float-glass-hover: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)), rgba(28, 28, 30, .48);
  --lg-float-edge: rgba(255, 255, 255, .14);
  --lg-float-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), var(--lg-shadow-2);
  --lg-float-shadow-sm: inset 0 1px 0 rgba(255, 255, 255, .12), var(--lg-shadow-2);
  --lg-float-blur: blur(24px) saturate(1.8);
  --lg-float-solid: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)), rgba(36, 36, 38, .98);
}
html.lg-light {
  --lg-float-glass: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(247, 247, 247, .62));
  --lg-float-glass-hover: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(247, 247, 247, .78));
  --lg-float-edge: rgba(255, 255, 255, .90);
  --lg-float-shadow: inset 0 1.5px 1px #fff, var(--lg-shadow-2);
  --lg-float-shadow-sm: inset 0 1.5px 1px #fff, var(--lg-shadow-2);
  --lg-float-solid: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(247, 247, 247, .96));
}

/* Small chrome (buttons, map controls) takes the short shadow; a bar adds data-float="bar". */
.lgc-float { border: 1px solid var(--lg-float-edge); background: var(--lg-float-glass); box-shadow: var(--lg-float-shadow-sm); backdrop-filter: var(--lg-float-blur); -webkit-backdrop-filter: var(--lg-float-blur); color: var(--lg-text); }
.lgc-float[data-float="bar"] { box-shadow: var(--lg-float-shadow); }
@media (hover: hover) { .lgc-float.lgc-button:hover:not(:disabled) { background: var(--lg-float-glass-hover); } }
