/* Aetter Icons 1.2.0 — looks and movement for aetter-icons.js. One colour (currentColor); tones come from the
   theme's tokens when the page has them, otherwise from the fallbacks written here. */

/* ---- the glyph ---- */
.ae-icon{display:inline-flex;flex:none;align-items:center;justify-content:center;box-sizing:border-box;width:1.5em;height:1.5em;vertical-align:middle;line-height:1}
.ae-svg{display:block;width:100%;height:100%;overflow:visible}

/* ---- on a tinted tile ---- */
.ae-icon.tile{--ae-ink:var(--accent-text,#CF0079);--ae-soft:var(--accent-soft,#FDEAF4);--ae-bg:var(--ae-soft);width:36px;height:36px;border-radius:10px;background:var(--ae-soft);color:var(--ae-ink);border:1px solid color-mix(in srgb,var(--ae-ink) 22%,transparent)}
.ae-icon.tile .ae-svg{width:24px;height:24px;stroke-width:2.5}
.ae-icon.tile.sm{width:28px;height:28px;border-radius:8px}
.ae-icon.tile.sm .ae-svg{width:19px;height:19px;stroke-width:2.9}
.ae-icon.tile.lg{width:44px;height:44px;border-radius:12px}
.ae-icon.tile.lg .ae-svg{width:30px;height:30px;stroke-width:2.3}
.ae-icon.tile.xl{width:56px;height:56px;border-radius:14px}
.ae-icon.tile.xl .ae-svg{width:38px;height:38px;stroke-width:2.2}
/* small glyphs without a tile need a heavier line to stay readable */
.ae-icon:not(.tile) .ae-svg{stroke-width:2.6}

/* ---- tones ---- */
.ae-icon.t-warn{--ae-ink:var(--warn,#8A4B00);--ae-soft:var(--warn-soft,#FFF1D6)}
.ae-icon.t-ok{--ae-ink:var(--ok,#15803D);--ae-soft:var(--ok-soft,#DCFCE7)}
.ae-icon.t-danger{--ae-ink:var(--danger,#B91C1C);--ae-soft:var(--danger-soft,#FEE2E2)}
.ae-icon.t-info{--ae-ink:var(--info,#1D4ED8);--ae-soft:var(--info-soft,#E3ECFF)}
.ae-icon.t-muted{--ae-ink:var(--text-2,#414855);--ae-soft:var(--surface-3,#EEF0F4)}
.ae-icon:not(.tile)[class*=" t-"]{color:var(--ae-ink)}

/* ---- movement: slow and small, so a page full of icons stays calm ---- */
.ae-svg .a-pulse{animation:aePulse 2.4s ease-in-out infinite}
.ae-svg .a-blink{animation:aeBlink 2.8s steps(1,end) infinite}
.ae-svg .a-fall{animation:aeFall 1.8s linear infinite}
.ae-svg .a-drift{animation:aeDrift 3.2s ease-in-out infinite}
.ae-svg .a-drift.rev{animation-direction:reverse}
.ae-svg .a-flash{animation:aeFlash 3.6s steps(1,end) infinite}
.ae-svg .a-glint{animation:aeGlint 3s ease-in-out infinite}
.ae-svg .a-flicker{animation:aeFlicker 2.2s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 100%}
.ae-svg .a-spin{animation:aeSpin 9s linear infinite;transform-box:view-box;transform-origin:20px 20px}
.ae-svg .a-spin.slow{animation-duration:22s}
.ae-svg .a-turn{animation:aeTurn 4.5s ease-in-out infinite;transform-box:view-box;transform-origin:20px 20px}
.ae-svg .a-turn.half{animation-name:aeTurnHalf;animation-duration:5s}
.ae-svg .a-swing{animation:aeSwing 2.6s ease-in-out infinite;transform-box:view-box}
.ae-svg .a-swing.soft{animation-name:aeSwingSoft;animation-duration:3.4s}
.ae-svg .a-swing.wide{animation-name:aeSwingWide;animation-duration:3.8s}
.ae-svg .a-bob{animation:aeBob 2.2s ease-in-out infinite}
.ae-svg .a-bob.soft{animation-name:aeBobSoft;animation-duration:1.6s}
.ae-svg .a-slide{animation:aeSlide 3.6s ease-in-out infinite}
.ae-svg .a-nudge{animation:aeNudge 2.2s ease-in-out infinite}
.ae-svg .a-nudge.diag{animation-name:aeNudgeDiag}
.ae-svg .a-dash{animation:aeDash 1.2s linear infinite}
.ae-svg .a-draw{stroke-dasharray:1;animation:aeDraw 3.6s ease-in-out infinite}
.ae-svg .a-grow{animation:aeGrow 2.8s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 100%}
.ae-svg .a-flap{animation:aeFlap 2.6s ease-in-out infinite;transform-box:fill-box;transform-origin:0 50%}
/* Where in its cycle a part is: the page clock (--ae-t, set by the script) plus the part's own shift (--ae-d):
   one after another (d2, d3) or opposite (dh). */
.ae-svg [class^="a-"],.ae-svg [class*=" a-"]{animation-delay:calc(var(--ae-t,0s) + var(--ae-d,0s))}
.ae-svg .d2{--ae-d:.4s}
.ae-svg .d3{--ae-d:.8s}
.ae-svg .dh{--ae-d:-1.2s}
.ae-svg .a-blink.dh{--ae-d:-1.4s}
.ae-svg .a-slide.dh{--ae-d:-1.8s}
.ae-svg .a-slide.d2{--ae-d:-.9s}
.ae-svg .a-fall.d2{--ae-d:-.6s}
.ae-svg .a-fall.d3{--ae-d:-1.2s}

@keyframes aePulse{0%,100%{opacity:1}50%{opacity:.22}}
@keyframes aeBlink{0%,100%{opacity:1}50%{opacity:.25}}
@keyframes aeFall{0%{transform:translateY(-2px);opacity:0}25%,70%{opacity:1}100%{transform:translateY(3px);opacity:0}}
@keyframes aeDrift{0%,100%{transform:translateX(-1.5px)}50%{transform:translateX(1.5px)}}
@keyframes aeFlash{0%,62%,70%,78%,100%{opacity:1}66%,74%{opacity:.25}}
@keyframes aeGlint{0%{transform:translateX(0);opacity:0}15%,85%{opacity:1}100%{transform:translateX(22px);opacity:0}}
@keyframes aeFlicker{0%,100%{transform:scale(1,1)}35%{transform:scale(.97,1.04)}70%{transform:scale(1.02,.97)}}
@keyframes aeSpin{to{transform:rotate(360deg)}}
@keyframes aeTurn{0%,55%{transform:rotate(0)}85%,100%{transform:rotate(90deg)}}
@keyframes aeTurnHalf{0%,55%{transform:rotate(0)}90%,100%{transform:rotate(180deg)}}
@keyframes aeSwing{0%,100%{transform:rotate(-9deg)}50%{transform:rotate(9deg)}}
@keyframes aeSwingSoft{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
@keyframes aeSwingWide{0%,100%{transform:rotate(-52deg)}50%{transform:rotate(22deg)}}
@keyframes aeBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-2.5px)}}
@keyframes aeBobSoft{0%,100%{transform:translateY(0)}50%{transform:translateY(-.8px)}}
@keyframes aeSlide{0%,100%{transform:translateY(-3px)}50%{transform:translateY(5px)}}
@keyframes aeNudge{0%,100%{transform:translateX(0)}50%{transform:translateX(2.5px)}}
@keyframes aeNudgeDiag{0%,100%{transform:translate(0,0)}50%{transform:translate(1.6px,-1.6px)}}
@keyframes aeDash{to{stroke-dashoffset:-10}}
@keyframes aeDraw{0%{stroke-dashoffset:1;opacity:0}6%{stroke-dashoffset:1;opacity:1}40%,84%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
@keyframes aeGrow{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.55)}}
@keyframes aeFlap{0%,100%{transform:scaleX(1) skewY(0)}50%{transform:scaleX(.92) skewY(-3deg)}}

/* ---- Font Awesome markup drawn with these icons (AetterIcons.observe({ fontAwesome: true })) ----
   The element keeps its classes: size comes from its font size, colour from its text colour. Its glyph is replaced
   by our drawing with a line of constant thickness, so a 12 px icon is as readable as a 24 px one.
   The box rules have no specificity (:where), so a page's own classes (hidden, absolute, widths) still decide. */
[data-ae]::before,[data-ae]::after{content:none!important}
:where([data-ae]){display:inline-block;position:relative;width:1.25em;height:1em;line-height:1;vertical-align:-.125em;font-style:normal}
[data-ae]>.ae-svg{position:absolute;left:50%;top:50%;width:1.2em;height:1.2em;margin:-.6em 0 0 -.6em;stroke-width:1.6px}
[data-ae]>.ae-svg :not([stroke-width]):not([stroke-dasharray]){vector-effect:non-scaling-stroke}
[data-ae]>.ae-svg .a-draw{stroke-dasharray:none;animation:none}
/* small icons stand still; they move while their button, link or menu item is pointed at, or is the active one */
[data-ae]>.ae-svg:not(:is(a,button,summary,label,[role="button"]):hover *):not(.is-active *) *{animation:none}

/* no movement: asked for by the place (class "still") or by the person (reduced motion) */
.ae-icon.still .ae-svg *,.ae-still .ae-svg *{animation:none}
@media (prefers-reduced-motion:reduce){.ae-svg *{animation:none!important}}
