/* D-238: the homepage alone owns this short, cancellable preparation screen. */
#homeLoading { display: none; }
html.home-is-loading { overflow: hidden; }
html.home-is-loading #homeLoading {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 28px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f7faf5;
  color: #173d36;
  opacity: 1;
  font: 400 16px/1.6 ManropeHome, Manrope, Arial, sans-serif;
  text-align: center;
  transition: opacity 180ms ease-out;
}
html.home-is-loading #homeLoading.is-leaving { opacity: 0; pointer-events: none; }
#homeLoading .home-loading-content { width: min(100%, 360px); margin: auto; }
#homeLoading .home-loading-flower { display: block; width: 128px; height: 128px; margin: 0 auto 32px; overflow: visible; animation: homeLoadingTurn 18s linear infinite; }
#homeLoading .home-loading-petal { transform: translateY(calc(-1 * var(--home-loading-scatter, 18px))); transition: transform 400ms cubic-bezier(.16,1,.3,1); }
#homeLoading .home-loading-ring--inner .home-loading-petal { transform: translateY(calc(-.45 * var(--home-loading-scatter, 18px))); }
#homeLoadingTitle { margin: 0 0 10px; font: 650 clamp(22px, 4vw, 28px)/1.25 ManropeHome, Manrope, Arial, sans-serif; letter-spacing: -.025em; }
#homeLoadingCopy { margin: 0 auto 28px; max-width: 30ch; color: #4c6658; font: inherit; }
#homeLoading .home-loading-meter { position: relative; height: 4px; max-width: 280px; margin: 0 auto; overflow: hidden; border-radius: 4px; background: #dce7df; }
#homeLoadingBar { display: block; width: 100%; height: 100%; background: #387953; transform: scaleX(0); transform-origin: left center; transition: transform 180ms ease-out; }
#homeLoadingCount { margin: 12px 0 0; color: #4c6658; font-size: 13px; font-variant-numeric: tabular-nums; }
#homeLoadingSkip { min-height: 44px; margin: 16px 0 0; padding: 8px 16px; border: 0; border-radius: 8px; background: transparent; color: #173d36; font: 550 14px/1.5 ManropeHome, Manrope, Arial, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
#homeLoadingSkip:hover { background: #e7efe6; }
#homeLoadingSkip:focus-visible { outline: 2px solid #387953; outline-offset: 3px; }
#homeLoadingSkip[hidden] { display: none; }
#homeLoading::selection, #homeLoading ::selection { background: #cce0ce; color: #173d36; }
html.home-loading-paused #homeLoading .home-loading-flower { animation-play-state: paused; }
@keyframes homeLoadingTurn { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  #homeLoading .home-loading-flower { width: 104px; height: 104px; margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  :where(html:not([data-home-motion="full"])) #homeLoading .home-loading-flower { animation: none; }
  :where(html:not([data-home-motion="full"])) #homeLoading .home-loading-petal, :where(html:not([data-home-motion="full"])) #homeLoading .home-loading-ring--inner .home-loading-petal { transform: none; transition: none; }
  html:not([data-home-motion="full"]).home-is-loading #homeLoading, :where(html:not([data-home-motion="full"])) #homeLoadingBar { transition: none; }
}
@media (forced-colors: active) {
  html.home-is-loading #homeLoading { background: Canvas; color: CanvasText; }
  #homeLoading .home-loading-meter { border: 1px solid CanvasText; }
  #homeLoadingBar { background: Highlight; }
}
@media print { html.home-is-loading { overflow: visible; } html.home-is-loading #homeLoading { display: none; } }
