/* ILE vector kit — helper classes for the SVGs in img/vector/ (see img/vector/README.md).
   All graphics are decorative: give them alt="" or aria-hidden="true".
   No JS. Motion only when the visitor has not asked for reduced motion. */

/* Icons (sprite: img/vector/icons.svg, 24px grid, 2px stroke, currentColor) */
.v-icon { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }
.v-icon--16 { width: 16px; height: 16px; }
.v-icon--20 { width: 20px; height: 20px; }
.v-icon--32 { width: 32px; height: 32px; }
.v-icon--48 { width: 48px; height: 48px; }
.v-icon--mint { color: var(--color-mint); }
.v-icon--loss { color: var(--color-loss); }   /* red: losses only */
.v-icon--void { color: var(--color-void); }

/* Backgrounds (CSS images: cheap, cached, no layout cost) */
.v-bg-floodlight { background: url("../img/vector/bg-floodlight.svg") center top / cover no-repeat; }
.v-bg-grid { background-image: url("../img/vector/pattern-grid.svg"); background-size: 48px 48px; }
.v-bg-edge { background: url("../img/vector/edge-line-section.svg") center bottom / 100% 200px no-repeat; }
.v-bg-flare { background: url("../img/vector/bg-flare.svg") right -160px top -200px / 560px 560px no-repeat; }
@media (min-width: 768px) {
  .v-bg-edge { background-size: 100% 280px; }
}

/* Section dividers: inline the SVG so fill="currentColor" picks up the NEXT section's colour */
.v-divider { display: block; width: 100%; height: 40px; margin: 0; color: var(--color-surface); pointer-events: none; }
.v-divider > svg { display: block; width: 100%; height: 100%; }
.v-divider--black { color: var(--color-black); }
.v-divider--flip { transform: scaleX(-1); }
@media (min-width: 768px) { .v-divider { height: 72px; } }

/* Corner accents (position:relative on the parent) */
.v-corner { position: absolute; width: 44px; height: 44px; pointer-events: none; }
.v-corner--tl { top: 12px; left: 12px; }
.v-corner--br { right: 12px; bottom: 12px; }
.v-accent-bar { display: block; width: 72px; height: 9px; }

/* Edge line, inline version: draws itself once on load */
.v-edge { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .v-draw .el-line, .v-draw .el-core, .v-draw .el-glow {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: v-draw 2.2s cubic-bezier(0.45, 0, 0.2, 1) 0.15s forwards;
  }
  .v-draw .el-end, .v-draw .el-marks { opacity: 0; animation: v-fade 0.5s ease-out 2.1s forwards; }
  .v-draw .el-area { opacity: 0; animation: v-fade 1.2s ease-out 1.1s forwards; }
}
@keyframes v-draw { to { stroke-dashoffset: 0; } }
@keyframes v-fade { to { opacity: 1; } }
