/* ============================================================================
   THE PACE LOGO, HANDWRITTEN (owner D-0466, 18 Nov 2026) — "Pace" in one joined pen line, in the person's own colour (--fx-main,
   which follows their chosen colour in light and night). NEW PACE ONLY: every rule starts with html[data-new-pace].
   The line: public/js/99zn-pace-script.js. Where: the menu (in place of the typed "PACE"; the "P" tile stays for the folded menu)
   and the sign-in screen (99zm). It writes itself where the typed word typed itself — 04 puts 'typing' on the menu's word for the
   first seconds of a visit and on a click — and once as the sign-in screen opens. Less movement asked for: already written.
   Guard: test/pace-script-smoke.mjs.
   ============================================================================ */
html[data-new-pace] .pace-script{display:block;overflow:visible;color:var(--fx-main)}
html[data-new-pace] .pace-script path{fill:none;stroke:currentColor;stroke-width:9;stroke-linecap:round;stroke-linejoin:round}

/* the menu: the word's place, sized to the open menu; the tile is the folded menu's logo, so beside the open word it is not drawn */
html[data-new-pace] body.ui-kit .rail-word.rail-script{margin-left:0;line-height:0;letter-spacing:0;text-shadow:none}
html[data-new-pace] body.ui-kit .rail-word.rail-script .pace-script{width:128px;height:42px}
html[data-new-pace] body.ui-kit #sidebar.pinned .sb-brand:has(.rail-script) .rail-mark{display:none}
@media (max-width:860px){ html[data-new-pace] body.ui-kit #sidebar .sb-brand:has(.rail-script) .rail-mark{display:none} }
/* the folded menu: the handwritten capital P in the person's colour, on no tile (D-0466) — a heavier line, so it reads at this size */
html[data-new-pace] body.ui-kit .rail-mark.rail-mark-script{background:none;border:0;box-shadow:none;color:var(--fx-main)}
html[data-new-pace] body.ui-kit .rail-mark.rail-mark-script .pace-script{width:26px;height:32px}
html[data-new-pace] body.ui-kit .rail-mark.rail-mark-script .pace-script path{stroke-width:13}
/* in the open menu the word is small too: a little heavier than on the sign-in screen */
html[data-new-pace] body.ui-kit .rail-word.rail-script .pace-script path{stroke-width:11}

/* the sign-in screen */
html[data-new-pace] .np-login-brand .pace-script{width:172px;height:56px}

/* it writes itself */
@keyframes pace-write{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
html[data-new-pace] .rail-word.rail-script.typing .pace-script path{stroke-dasharray:1;animation:pace-write 1.9s cubic-bezier(.6,.05,.3,1) both;animation-delay:calc(.15s - var(--el,0s))}
html[data-new-pace] .pace-script.is-writing path{stroke-dasharray:1;animation:pace-write 2.2s cubic-bezier(.6,.05,.3,1) both;animation-delay:calc(.2s - var(--el,0s))}
@media (prefers-reduced-motion:reduce){ html[data-new-pace] .pace-script path{animation:none!important;stroke-dasharray:none!important} }
