/* The content ground and the glass, for the pages the Mac app draws on its own glass: the home, the pane,
   the panel and the glass viewer. The values are os.css's --os-page, --os-page-2 and --os-tint
   (DESIGN.md, Glass and Appearance). Content sits on --ground, never on glass; glass is for navigation. */
:root{
  --ground:#ffffff;
  --ground-2:#f4f5f8;
  --glass-tint:rgb(255 255 255 / .5);
  --glass-rim:rgb(255 255 255 / .75);
  --glass-hi:rgb(255 255 255 / .9);
  --glass-blur:blur(30px) saturate(175%);
  --glass-lift:0 8px 28px rgb(0 0 0 / .14), 0 1px 2px rgb(0 0 0 / .08);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ground:#1e1e1e;
    --ground-2:#2a2a2c;
    --glass-tint:rgb(50 50 54 / .42);
    --glass-rim:rgb(255 255 255 / .16);
    --glass-hi:rgb(255 255 255 / .22);
    --glass-lift:0 8px 28px rgb(0 0 0 / .45), 0 1px 2px rgb(0 0 0 / .3);
  }
}
:root[data-theme="dark"]{
  --ground:#1e1e1e;
  --ground-2:#2a2a2c;
  --glass-tint:rgb(50 50 54 / .42);
  --glass-rim:rgb(255 255 255 / .16);
  --glass-hi:rgb(255 255 255 / .22);
  --glass-lift:0 8px 28px rgb(0 0 0 / .45), 0 1px 2px rgb(0 0 0 / .3);
}
/* Reduce Transparency: the glass is the ground. :root three times outranks the Dark rules above */
@media (prefers-reduced-transparency: reduce){
  :root:root:root{ --glass-tint:var(--ground); --glass-blur:none; }
}
/* A glass control over the solid page: a toolbar capsule (DESIGN.md, Layout). Never on glass, never content. */
.m-glass{background:var(--glass-tint); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 0 0 .5px var(--glass-rim), inset 0 1px 0 var(--glass-hi), var(--glass-lift)}
@media (prefers-reduced-transparency: reduce){ .m-glass{box-shadow:inset 0 0 0 .5px var(--glass-rim)} }
