/* Enamel 3D (2026-11-14). See enamel3d.js. The original icon stays as the fallback and keeps its box. */
.e3d-box{position:relative;display:inline-block;line-height:0;vertical-align:top}
.e3d-box>svg.e3d-src{visibility:hidden}
.e3d-box.e3d-off>svg.e3d-src{visibility:visible}
.e3d-box.e3d-off>.e3d{display:none}
/* the home practice cards clip their icon box; a turned object needs a few pixels more than its flat drawing */
.pcard__icon.e3d-host{overflow:visible}
.e3d{position:absolute;inset:0;display:block;pointer-events:none;--rx:0;--ry:0;--pop:0;--enter:0;--lift:1;
  --gap:calc(var(--e3d-size,116px)*.052);--step:calc(var(--e3d-size,116px)*-.0125)}
/* No CSS perspective on purpose. With perspective, a browser keeps the layers of a turning object as bitmaps drawn
   once at device scale 1 and stretches them, so everything looked soft and stair-stepped on phones and other
   high-density screens (seen at device scale 3, 14 Nov). In parallel projection the layers are drawn sharp at any
   density. What perspective gave is rebuilt by hand: a layer that is nearer is drawn slightly larger (--zs), by the
   amount the old viewing distance of 4.6 icon widths gave (.052 / 4.6 = .0113 per depth unit). */
.e3d__rig{position:absolute;inset:0;display:block;transform-style:preserve-3d;
  transform:rotateX(calc(var(--rx)*1deg)) rotateY(calc(var(--ry)*1deg))}
.e3d__layer{position:absolute;inset:0;display:block;transform-style:preserve-3d;--bz:0px;--bs:0;--sa:.38;
  --zs:calc(1 + var(--z,0)*var(--lift)*(1 + var(--pop)*.28)*.0113 + var(--bs) + var(--enter)*.122);
  --zt:calc(var(--z,0)*var(--gap)*var(--lift)*(1 + var(--pop)*.28) + var(--bz) + var(--enter)*var(--e3d-size,116px)*.5);
  transform:translateZ(var(--zt)) scale(var(--zs));opacity:calc(1 - var(--enter))}
.e3d__layer--badge{--bz:calc(var(--pop)*var(--gap)*1.5);--bs:calc(var(--pop)*.017)}
.e3d.is-entering .e3d__layer{transition:opacity .7s cubic-bezier(.22,1,.36,1) calc(var(--i,0)*110ms),transform 1s cubic-bezier(.2,.9,.25,1.1) calc(var(--i,0)*110ms)}
.e3d__layer svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;display:block}
/* While the depth is still growing out of a flat drawing (--lift 0 to 1, only for a copy that takes over a finished
   drawing) the sides fade in with it. At --lift 0 the copy is the drawing, pixel for pixel: stacked sides exactly
   behind a face showed as a dark hairline round its outline. Everywhere else --lift is 1 and this is opacity 1. */
.e3d__slice{transform:translateZ(calc(var(--k)*var(--step)*var(--lift)));opacity:min(1,calc(var(--lift)*4))}
.e3d__slice *{stroke:#5d7c9c}
.e3d__slice .e3d-f{fill:#1a3350}
/* Gold sides. A face's own soft shadow is drawn in front of its sides and darkens them; on gold that read as dull
   mustard (#ad8c03 measured on a side meant to be #d2a900). What shows of a side is mostly the outline of each
   stacked copy, so outline and fill are one gold, a step lighter than before, and a gold part's shadow is lighter
   (--sa). Seen under its shadow the side now measures about #c8a300: gold, and still darker than the face. */
.e3d__layer--gold{--sa:.24}
.e3d__layer--gold .e3d__slice *{stroke:#dcb400}
.e3d__layer--gold .e3d__slice .e3d-f{fill:#dcb400}
.e3d__slice [stroke="#f9e900"]{stroke:#dcb400}
/* opt-in (data-e3d-edge="metal"): a part made of the silver-blue metal shows a metal side, not a navy one */
.e3d__layer--metal .e3d__slice *{stroke:#7d99b3}
.e3d__layer--metal .e3d__slice .e3d-f{fill:#8ea8c0}
.e3d__face{filter:brightness(max(1,calc(1 + var(--ry)*.0035 - var(--rx)*.002)))
  drop-shadow(calc(var(--ry)*-.02*var(--gap)*var(--lift)) calc((var(--gap)*.42 + var(--rx)*.02*var(--gap))*var(--lift)) calc(var(--gap)*.42*var(--lift)) rgba(3,12,32,calc(var(--sa)*var(--lift))))}
.e3d__glint{transform:translate(calc(var(--ry)*1.7px),calc(var(--rx)*-1.3px));opacity:var(--lift)}
.e3d__ground{position:absolute;left:14%;right:14%;bottom:1%;height:11%;border-radius:50%;
  background:radial-gradient(closest-side,rgba(3,12,32,.34),rgba(3,12,32,0));
  transform:translate(calc(var(--ry)*-.25%),calc(var(--rx)*.2%)) scale(calc(1 - var(--pop)*.06));opacity:calc((1 - var(--enter))*.9*var(--lift))}
@keyframes e3d-spin{from{transform:translateZ(var(--zt)) scale(var(--zs)) rotateY(0deg)}to{transform:translateZ(var(--zt)) scale(var(--zs)) rotateY(360deg)}}
.e3d__layer--badge.is-spin{animation:e3d-spin .85s cubic-bezier(.3,.1,.2,1)}
/* large showpieces get a touch more separation between layers */
.e3d--hero{--gap:calc(var(--e3d-size,280px)*.06)}
@media (prefers-reduced-motion:reduce){.e3d.is-entering .e3d__layer{transition:none}.e3d__layer--badge.is-spin{animation:none}}
@media (forced-colors:active){.e3d__slice,.e3d__ground{display:none}}
@media print{.e3d{display:none}.e3d-box>svg.e3d-src{visibility:visible}}
