/* The top bar standard, version 1 (Jai, 27 Nov 2026). The master is Rules/Design/top-bar/top-bar.css.
   Every app and site copies this file unchanged, loads it last, and marks its top bar with data-top-bar.
   On iPhone, opened from the Home Screen, nothing fades, blurs or dims behind the logo and the status bar.

   The app sets one colour, its solid page ground, on :root:  --top-ground: #...;
   The status bar, the top bar and the page behind them are all that one colour. */

html { background-color: var(--top-ground); }

/* The top bar scrolls away with the page, at full strength, on a solid ground. */
[data-top-bar] {
  position: relative !important;
  top: auto !important;
  background-color: var(--top-ground) !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  filter: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

/* No fade layer of its own, before or after it. */
[data-top-bar]::before,
[data-top-bar]::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  background-image: none !important;
}

/* The space under the phone's status bar is the app's own padding-top env(safe-area-inset-top), on the solid ground of
   the top bar or the page, never on a see through layer (README rule 4). */
