/* Loading screen ("Wipe & line"). Inlined into the home page's <head> by templates/layouts/site.php (one nonce'd <style>), so it
   is painted with the first frame. Hidden unless JavaScript has switched it on (html.ld) or it is finishing (.ldr.end); without
   JavaScript, or after it has failed, nothing is ever drawn over the page.
   --p (0 to 1) is set by loader.js from measured loading progress; it drives the logo reveal and the line. */
.ldr { display: none; position: fixed; inset: 0; z-index: 10000; place-content: center; justify-items: center; background: #f7f8fb; --p: 0; }
html.ld .ldr, .ldr.end { display: grid; }
.ldr-tile { display: grid; place-items: center; width: 116px; height: 116px; border-radius: 28px; background: #fff; border: 1px solid #dde5f0; box-shadow: 0 18px 40px -22px rgba(18, 25, 79, 0.55); clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0 round 28px); transition: clip-path 0.25s ease; }
.ldr-tile img { display: block; width: 96px; height: 96px; }
.ldr-line { width: min(200px, 56vw); height: 4px; margin-top: 30px; border-radius: 99px; background: rgba(18, 25, 79, 0.12); overflow: hidden; }
.ldr-line i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #00598c, #3a9bd9); transform: scaleX(var(--p)); transform-origin: left; transition: transform 0.25s ease; }
/* Until a measurable share of the page's resources is known, the line only says "working": it moves, but does not claim a percentage. */
.ldr.ind .ldr-line i { width: 40%; transform: none; transition: none; animation: ldr-slide 1.1s ease-in-out infinite; }
@keyframes ldr-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
/* Finished: the reveal completes and the overlay fades. It no longer takes clicks, so the page is usable at once. (The page is deliberately not scroll-locked: removing the scrollbar would shift the layout by its width when the loader lets go.) */
.ldr.end { opacity: 0; pointer-events: none; transition: opacity 0.16s ease; }
.ldr.end .ldr-tile, .ldr.end .ldr-line i { transition-duration: 0.12s; }
@media (prefers-reduced-motion: reduce) {
  .ldr-tile { clip-path: none; transition: none; }
  .ldr-line i { transition: none; }
  .ldr.ind .ldr-line i { animation: none; transform: none; width: 100%; opacity: 0.35; }
  .ldr.end, .ldr.end .ldr-tile, .ldr.end .ldr-line i { transition: none; }
}
@media (max-width: 520px) { .ldr-tile { width: 100px; height: 100px; border-radius: 24px; } .ldr-tile img { width: 82px; height: 82px; } }
@media print { .ldr { display: none !important; } }
