/* Activity rings (activity-rings.js), ported from KokonutUI's "Apple Activity Card" (MIT). The site's text colors,
 * the original's ring hues; in light mode the hues are capped in lightness (hue and chroma kept) so they don't wash out
 * on white. Rings and legend side by side once the card is 28rem wide, stacked below that. */
.activity-rings{position:relative;box-sizing:border-box;width:100%;max-width:48rem;margin:0 auto;padding:32px;border-radius:24px;color:var(--text,#edf2f9);container-type:inline-size}
.ar-inner{display:flex;flex-direction:column;align-items:center;gap:32px}
.ar-title{margin:0;color:var(--text,#edf2f9);font-size:24px;font-weight:500;line-height:1.3;text-align:center}
.ar-body{display:flex;flex-direction:column;align-items:center;gap:32px}
@container (min-width:28rem){.ar-body{flex-direction:row}}
.ar-box{position:relative;flex:none}
.ar-ring{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.ar-svg{--ring-from:var(--ring);--ring-to:var(--ring-end);display:block;overflow:visible;border-radius:50%;outline:none;transform:rotate(-90deg);transition:opacity .2s ease-out}
.ar-svg:focus-visible{box-shadow:0 0 0 2px #a1a1aa}
.ar-svg.is-dimmed{opacity:.25}
.ar-track{stroke:rgba(39,39,42,.6)}
.ar-lap{opacity:0;stroke:var(--ring-to)}
.ar-cap{opacity:0;transform-box:view-box;transform-origin:center}
.ar-cap circle{fill:var(--ring-to)}
.ar-pulse{opacity:0;stroke:var(--ring-to);transform-box:fill-box;transform-origin:center}
.ar-legend{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}
.ar-item{display:flex;flex-direction:column;transition:opacity .2s ease-out}
.ar-item.is-dimmed{opacity:.4}
.ar-label{color:var(--muted,#a1a1aa);font-size:14px;font-weight:500;line-height:1.4}
.ar-value{color:var(--activity-color);font-size:24px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}
.ar-unit{margin-left:4px;color:var(--muted,#a1a1aa);font-size:16px}
:root.light .ar-track{stroke:rgba(228,228,231,.6)}
@supports (color:oklch(from red l c h)){
  :root.light .ar-svg{--ring-from:oklch(from var(--ring) min(l,.8) c h);--ring-to:oklch(from var(--ring) min(l,.7) c h)}
  :root.light .ar-value{color:oklch(from var(--activity-color) .6 c h)}
}
/* Coming into view: the title drops in, each ring fades up in turn, the legend slides in from the right. */
.ar-title{opacity:0;transform:translateY(-12px);transition:opacity .5s cubic-bezier(.23,1,.32,1),transform .5s cubic-bezier(.23,1,.32,1)}
.ar-ring{opacity:0;transform:scale(.96);transition:opacity .3s cubic-bezier(.23,1,.32,1) calc(var(--i,0) * .18s),transform .3s cubic-bezier(.23,1,.32,1) calc(var(--i,0) * .18s)}
.ar-legend{opacity:0;transform:translateX(16px);transition:opacity .5s cubic-bezier(.23,1,.32,1) .3s,transform .5s cubic-bezier(.23,1,.32,1) .3s}
.activity-rings.is-in .ar-title,.activity-rings.is-in .ar-ring,.activity-rings.is-in .ar-legend{opacity:1;transform:none}
/* Reduced motion keeps the fades and drops the movement (the rings are drawn at once by the script). */
@media (prefers-reduced-motion:reduce){.ar-title,.ar-ring,.ar-legend{transform:none!important}}
