/*
 * Notaring: the waiting ring. One sign for "Notaring is working, give it a second", wherever a whole screen waits:
 * checking a document, signing in and out, loading an account or the notary panel, opening the signing page or the
 * editor, checking a photo of an ID. (A part of a page that loads keeps its words; a button keeps "Saving…".)
 *
 * It's the seal's ring of sixty ticks, a lit stretch sweeping round like a second hand. The ticks are the check page's
 * own vector drawing (each its own colour, round ends: crisp at any size); CSS only moves the lit stretch, so any page can
 * show it with <span class="ntg-ring" aria-hidden="true"></span> (the words beside it say what's happening).
 * .sm: the small one inside a line of text, a band without ticks (too small for them).
 * The colours are the seal's ring (seal.js RING): change the two together (the drawing's sixty lines carry them:
 * tick t is RING at t/60, from 41 to 48 of 100 round the middle, 2.6 wide).
 * Scripts start each ring in step with the clock (animation-delay), so a screen that follows another carries on the sweep.
 */
@property --ntg-ring-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ntg-ring {
    --ntg-ring: 56px;
    flex: none;
    display: inline-block;
    width: var(--ntg-ring);
    height: var(--ntg-ring);
    vertical-align: middle;
    /* the sixty ticks, drawn */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='50.00' y1='9.00' x2='50.00' y2='2.00' stroke='rgb(74,110,224)'/%3E%3Cline x1='54.29' y1='9.22' x2='55.02' y2='2.26' stroke='rgb(70,115,220)'/%3E%3Cline x1='58.52' y1='9.90' x2='59.98' y2='3.05' stroke='rgb(66,121,217)'/%3E%3Cline x1='62.67' y1='11.01' x2='64.83' y2='4.35' stroke='rgb(61,126,213)'/%3E%3Cline x1='66.68' y1='12.54' x2='69.52' y2='6.15' stroke='rgb(57,132,209)'/%3E%3Cline x1='70.50' y1='14.49' x2='74.00' y2='8.43' stroke='rgb(53,137,206)'/%3E%3Cline x1='74.10' y1='16.83' x2='78.21' y2='11.17' stroke='rgb(49,142,202)'/%3E%3Cline x1='77.43' y1='19.53' x2='82.12' y2='14.33' stroke='rgb(44,148,199)'/%3E%3Cline x1='80.47' y1='22.57' x2='85.67' y2='17.88' stroke='rgb(40,153,195)'/%3E%3Cline x1='83.17' y1='25.90' x2='88.83' y2='21.79' stroke='rgb(36,158,191)'/%3E%3Cline x1='85.51' y1='29.50' x2='91.57' y2='26.00' stroke='rgb(32,164,188)'/%3E%3Cline x1='87.46' y1='33.32' x2='93.85' y2='30.48' stroke='rgb(27,169,184)'/%3E%3Cline x1='88.99' y1='37.33' x2='95.65' y2='35.17' stroke='rgb(23,175,180)'/%3E%3Cline x1='90.10' y1='41.48' x2='96.95' y2='40.02' stroke='rgb(19,180,177)'/%3E%3Cline x1='90.78' y1='45.71' x2='97.74' y2='44.98' stroke='rgb(20,182,172)'/%3E%3Cline x1='91.00' y1='50.00' x2='98.00' y2='50.00' stroke='rgb(22,182,168)'/%3E%3Cline x1='90.78' y1='54.29' x2='97.74' y2='55.02' stroke='rgb(24,183,163)'/%3E%3Cline x1='90.10' y1='58.52' x2='96.95' y2='59.98' stroke='rgb(26,184,159)'/%3E%3Cline x1='88.99' y1='62.67' x2='95.65' y2='64.83' stroke='rgb(28,184,154)'/%3E%3Cline x1='87.46' y1='66.68' x2='93.85' y2='69.52' stroke='rgb(30,185,150)'/%3E%3Cline x1='85.51' y1='70.50' x2='91.57' y2='74.00' stroke='rgb(32,186,145)'/%3E%3Cline x1='83.17' y1='74.10' x2='88.83' y2='78.21' stroke='rgb(34,187,140)'/%3E%3Cline x1='80.47' y1='77.43' x2='85.67' y2='82.12' stroke='rgb(36,187,136)'/%3E%3Cline x1='77.43' y1='80.47' x2='82.12' y2='85.67' stroke='rgb(39,188,131)'/%3E%3Cline x1='74.10' y1='83.17' x2='78.21' y2='88.83' stroke='rgb(41,189,127)'/%3E%3Cline x1='70.50' y1='85.51' x2='74.00' y2='91.57' stroke='rgb(43,190,122)'/%3E%3Cline x1='66.68' y1='87.46' x2='69.52' y2='93.85' stroke='rgb(45,190,118)'/%3E%3Cline x1='62.67' y1='88.99' x2='64.83' y2='95.65' stroke='rgb(47,191,113)'/%3E%3Cline x1='58.52' y1='90.10' x2='59.98' y2='96.95' stroke='rgb(60,189,109)'/%3E%3Cline x1='54.29' y1='90.78' x2='55.02' y2='97.74' stroke='rgb(73,187,105)'/%3E%3Cline x1='50.00' y1='91.00' x2='50.00' y2='98.00' stroke='rgb(86,185,101)'/%3E%3Cline x1='45.71' y1='90.78' x2='44.98' y2='97.74' stroke='rgb(99,183,97)'/%3E%3Cline x1='41.48' y1='90.10' x2='40.02' y2='96.95' stroke='rgb(112,182,93)'/%3E%3Cline x1='37.33' y1='88.99' x2='35.17' y2='95.65' stroke='rgb(125,180,89)'/%3E%3Cline x1='33.32' y1='87.46' x2='30.48' y2='93.85' stroke='rgb(138,178,85)'/%3E%3Cline x1='29.50' y1='85.51' x2='26.00' y2='91.57' stroke='rgb(151,176,81)'/%3E%3Cline x1='25.90' y1='83.17' x2='21.79' y2='88.83' stroke='rgb(164,174,77)'/%3E%3Cline x1='22.57' y1='80.47' x2='17.88' y2='85.67' stroke='rgb(177,172,73)'/%3E%3Cline x1='19.53' y1='77.43' x2='14.33' y2='82.12' stroke='rgb(190,170,69)'/%3E%3Cline x1='16.83' y1='74.10' x2='11.17' y2='78.21' stroke='rgb(203,168,65)'/%3E%3Cline x1='14.49' y1='70.50' x2='8.43' y2='74.00' stroke='rgb(216,167,61)'/%3E%3Cline x1='12.54' y1='66.68' x2='6.15' y2='69.52' stroke='rgb(225,164,61)'/%3E%3Cline x1='11.01' y1='62.67' x2='4.35' y2='64.83' stroke='rgb(217,158,79)'/%3E%3Cline x1='9.90' y1='58.52' x2='3.05' y2='59.98' stroke='rgb(210,152,96)'/%3E%3Cline x1='9.22' y1='54.29' x2='2.26' y2='55.02' stroke='rgb(202,146,113)'/%3E%3Cline x1='9.00' y1='50.00' x2='2.00' y2='50.00' stroke='rgb(195,140,131)'/%3E%3Cline x1='9.22' y1='45.71' x2='2.26' y2='44.98' stroke='rgb(187,134,148)'/%3E%3Cline x1='9.90' y1='41.48' x2='3.05' y2='40.02' stroke='rgb(180,128,165)'/%3E%3Cline x1='11.01' y1='37.33' x2='4.35' y2='35.17' stroke='rgb(172,121,183)'/%3E%3Cline x1='12.54' y1='33.32' x2='6.15' y2='30.48' stroke='rgb(165,115,200)'/%3E%3Cline x1='14.49' y1='29.50' x2='8.43' y2='26.00' stroke='rgb(157,109,217)'/%3E%3Cline x1='16.83' y1='25.90' x2='11.17' y2='21.79' stroke='rgb(149,107,224)'/%3E%3Cline x1='19.53' y1='22.57' x2='14.33' y2='17.88' stroke='rgb(141,108,224)'/%3E%3Cline x1='22.57' y1='19.53' x2='17.88' y2='14.33' stroke='rgb(132,108,224)'/%3E%3Cline x1='25.90' y1='16.83' x2='21.79' y2='11.17' stroke='rgb(124,108,224)'/%3E%3Cline x1='29.50' y1='14.49' x2='26.00' y2='8.43' stroke='rgb(116,108,224)'/%3E%3Cline x1='33.32' y1='12.54' x2='30.48' y2='6.15' stroke='rgb(107,109,224)'/%3E%3Cline x1='37.33' y1='11.01' x2='35.17' y2='4.35' stroke='rgb(99,109,224)'/%3E%3Cline x1='41.48' y1='9.90' x2='40.02' y2='3.05' stroke='rgb(91,109,224)'/%3E%3Cline x1='45.71' y1='9.22' x2='44.98' y2='2.26' stroke='rgb(82,110,224)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    /* the lit stretch: brightest at its head, fading behind it */
    -webkit-mask-image: conic-gradient(from calc(var(--ntg-ring-a) - 123deg), rgba(0, 0, 0, .15) 0deg, #000 126deg, rgba(0, 0, 0, .15) 126deg);
    mask-image: conic-gradient(from calc(var(--ntg-ring-a) - 123deg), rgba(0, 0, 0, .15) 0deg, #000 126deg, rgba(0, 0, 0, .15) 126deg);
    animation: ntg-ring 1.2s steps(60) infinite;
}
/* Small, inside a line of text: too small for ticks, so the ring's colours in a band, with the same sweep. */
.ntg-ring.sm {
    --ntg-ring: 16px;
    border-radius: 50%;
    background: conic-gradient(rgb(74, 110, 224) 0%, rgb(18, 181, 176) 22%, rgb(47, 191, 113) 45%, rgb(226, 165, 58) 68%, rgb(154, 107, 224) 84%, rgb(74, 110, 224) 100%);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.1' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E"), conic-gradient(from calc(var(--ntg-ring-a) - 123deg), rgba(0, 0, 0, .18) 0deg, #000 126deg, rgba(0, 0, 0, .18) 126deg);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.1' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E"), conic-gradient(from calc(var(--ntg-ring-a) - 123deg), rgba(0, 0, 0, .18) 0deg, #000 126deg, rgba(0, 0, 0, .18) 126deg);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
.ntg-ring[hidden] { display: none; }
@keyframes ntg-ring { to { --ntg-ring-a: 360deg; } }

/* Less motion: the ring stands still, every tick softly lit. */
@media (prefers-reduced-motion: reduce) {
    .ntg-ring { animation: none; opacity: .6; -webkit-mask-image: none; mask-image: none; }
    .ntg-ring.sm { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.1' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.1' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E"); }
}
