/* lite.css: the lite render tier (EUDR css/background.css §3, 238-267).
 *
 * core/render-tier.js sets html.ct-lite before the first paint for reduced
 * motion or transparency, 4 GB of memory or less, 4 cores or fewer, or a
 * frame-rate probe under 50 fps; `?ct-render=lite|full` forces a tier. Then:
 *   - no backdrop-filter anywhere (the scrims' 4 px blur included);
 *   - the large shadows are flattened to one small one;
 *   - decorative animations and transitions finish at once (0.001 ms, so
 *     `animationend` / `transitionend` still fire for code that waits on them);
 *   - the login video never starts and stops if the tier drops late
 *     (core/bg-video.js); its poster stays;
 *   - real progress keeps moving, slowed: the three loading dots, a loading
 *     bar and a spinner say "still working", and a frozen one reads as hung.
 * Loaded last (base.html), after mobile.css and phone-kit.css. */

/* ── Elevation: one small shadow instead of the layered ones ──
   A token that reads another (--page-card-shadow) is resolved where it is
   declared, so it is declared again here, beside the ones it reads. */
html.ct-lite body {
  --shadow-md: 0 1px 3px rgb(var(--storm-rgb) / 0.1);
  --shadow-lg: 0 2px 6px rgb(var(--storm-rgb) / 0.14);
  --glass-shadow: 0 1px 3px rgb(var(--storm-rgb) / 0.1);
  --action-glow: 0 1px 2px rgb(var(--storm-rgb) / 0.14);
  --page-card-shadow: var(--shadow-md);
}
html.ct-lite body.dark-mode {
  --shadow-md: 0 1px 3px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4);
  --glass-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
  --action-glow: 0 1px 2px rgb(0 0 0 / 0.3);
}

/* ── No blur, no decorative motion ──
   Everything except the progress indicators, which keep their own animation
   (and its stagger) and are only slowed below. */
html.ct-lite *:not(.ct-loading-dot, .ct-spinner, [class*="loading-bar"], .ct-splash-bar, .ct-route-progress),
html.ct-lite *::before,
html.ct-lite *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  animation-duration: 0.001ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0s !important;
}
html.ct-lite .ct-loading-dot,
html.ct-lite .ct-spinner,
html.ct-lite [class*="loading-bar"],
html.ct-lite .ct-splash-bar,
html.ct-lite .ct-route-progress {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition-duration: 0.001ms !important;
}

/* ── Progress, slowed (EUDR splash.css:45-47 slows its bar rather than
   stopping it): the dots (states.css, feedback.js), the spinner, a loading
   bar (the splash's, the phone kit's .ph-loading-bar, feedback.js's) and the
   router's top line. A bar's runner is its ::before/::after, so those get
   their animation back too. */
html.ct-lite .ct-loading-dot {
  animation-duration: 2.4s !important;
  animation-iteration-count: infinite !important;
}
html.ct-lite .ct-spinner {
  animation-duration: 1.6s !important;
  animation-iteration-count: infinite !important;
}
html.ct-lite :is([class*="loading-bar"], .ct-splash-bar, .ct-route-progress),
html.ct-lite :is([class*="loading-bar"], .ct-splash-bar, .ct-route-progress)::before,
html.ct-lite :is([class*="loading-bar"], .ct-splash-bar, .ct-route-progress)::after {
  animation-duration: 3s !important;
  animation-delay: 0s !important;
  animation-iteration-count: infinite !important;
}
