.public-loading {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1rem;
    background: #fff;
    color: #142238;
    animation: leadfirst-loader-failsafe 12s step-end forwards;
}
.public-loading[hidden] { display: none; }
.public-loading img { width: min(185px, 55vw); height: auto; }
.public-loading span {
    width: min(240px, 68vw);
    height: 5px;
    border-radius: 8px;
    background: #eee;
    overflow: hidden;
}
.public-loading span::before {
    content: "";
    display: block;
    height: 100%;
    background: #b62030;
    transform-origin: left;
    transform: scaleX(0);
    animation: leadfirst-fill 3s linear forwards;
}
.public-loading.complete span::before { background: #198047; transform: scaleX(1); animation: none; }
@keyframes leadfirst-fill {
    0% { transform: scaleX(0); background: #b62030; }
    33.32% { background: #b62030; }
    33.33%,66.65% { background: #d6a700; }
    66.66% { background: #198047; }
    100% { transform: scaleX(1); background: #198047; }
}
.public-loading.filling span::before { animation-name: leadfirst-fill-cycle; }
@keyframes leadfirst-fill-cycle {
    0% { transform: scaleX(0); background: #b62030; }
    33.32% { background: #b62030; }
    33.33%,66.65% { background: #d6a700; }
    66.66% { background: #198047; }
    100% { transform: scaleX(1); background: #198047; }
}
.public-loading.complete span::before { animation: none; }
@media (prefers-reduced-motion: reduce) {
    .public-loading span::before { transform: scaleX(1); animation-timing-function: steps(1,end); }
    @keyframes leadfirst-fill-cycle {
        0% { transform: scaleX(1); background: #b62030; }
        33.333% { background: #d6a700; }
        66.666%,100% { background: #198047; }
    }
}
.public-loading:not([hidden]) + .public-page {
    animation: leadfirst-page-failsafe 12s step-end forwards;
}
@keyframes leadfirst-loader-failsafe { to { visibility: hidden; } }
@keyframes leadfirst-page-failsafe { from { visibility: hidden; } to { visibility: visible; } }
@media (prefers-reduced-motion: no-preference) {
    .public-loading img { animation: leadfirst-mark-in .24s ease-out; }
}
@keyframes leadfirst-mark-in { from { opacity: 0; } }

