/*
 * Full-page chalk loader, shared by the index.html boot screen and <dc-page-loading>.
 * Linked render-blocking from index.html so it applies before Angular boots and survives the
 * org stylesheet swap in AppComponent.createStyleLink(). Must not depend on Bootstrap or
 * sass-style2; theme tokens may not exist yet, so every var() carries a fallback.
 */
.page-loading {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    background-color: var(--surface-container, #fff);
}
[data-theme='dark'] .page-loading {
    background-color: var(--surface-container, #212529);
}
.page-loading__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.loading-chalk-mark {
    width: min(11rem, 45%);
    fill: var(--stencil-tone-highlight, var(--surface-hover, #d7d9e0));
    overflow: visible;
    display: block;
}
.loading-chalk-stick {
    transform-origin: 72px 26px;
    animation: loading-chalk-sweep 1.6s ease-in-out infinite;
    animation-delay: var(--chalk-animation-delay, 0s);
}
.loading-chalk-dust {
    animation: loading-chalk-paint 1.6s ease-in-out infinite;
    animation-delay: var(--chalk-animation-delay, 0s);
}
@keyframes loading-chalk-sweep {
    0%, 8% { transform: translate(-65px, 0) rotate(-8deg); opacity: 0; }
    14% { opacity: 1; }
    62%, 86% { transform: translate(0, 0) rotate(0); opacity: 1; }
    100% { transform: translate(0, -3px) rotate(0); opacity: 0; }
}
@keyframes loading-chalk-paint {
    0%, 8% { clip-path: inset(0 100% 0 0); opacity: 0; }
    14% { opacity: 1; }
    62%, 86% { clip-path: inset(0 0 0 0); opacity: 1; }
    100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .loading-chalk-stick,
    .loading-chalk-dust { animation: none; }
}
