/* /v2 illustration library support (templates/graphics.mjs). Frame, colour and the .lift re-draw live in base.css.
   Tokens only. Strokes inherit currentColor; .acc takes the signal colour from base.css. */

/* Secondary detail lines: same hue, quieter. */
.gfx .dim { opacity: .5; }
.panel .gfx .dim, .on-panel .gfx .dim { opacity: .55; }

/* Tinted accents read too dark on navy at the light-ground opacity. */
.panel .gfx .acc[fill], .on-panel .gfx .acc[fill] { fill-opacity: .14; }

/* Fixed-size use (gfx.x({ size })) keeps its intrinsic width instead of filling the container. */
.gfx[width] { width: auto; max-width: 100%; }

/* Large decorative use: thinner line so a 400px hero reads at the same weight as a 96px card. */
.gfx-fine .gfx, .gfx.gfx-fine { stroke-width: 1; }

/* ctGrid backdrop: absolutely filled, behind content, never interactive. Parent needs position: relative. */
.gfx.gfx-ctGrid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--ink); opacity: .5; }
.panel .gfx.gfx-ctGrid, .on-panel .gfx.gfx-ctGrid { color: var(--on-panel); opacity: .35; }

/* Re-draw companion: the accent fades back in as the structure finishes drawing. Rest state is fully visible. */
@keyframes gfx-acc-in { 0%, 45% { opacity: 0; } 100% { opacity: 1; } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .lift:hover .gfx .acc, .lift:focus-within .gfx .acc { animation: gfx-acc-in 1s var(--ease) both; }
}

@media (forced-colors: active) { .gfx, .gfx .acc { color: CanvasText; } }
@media print { .gfx.gfx-ctGrid { display: none; } }
