/* Faz 3 shared drawings (src/pages/faz3-visuals.mjs; package visual-qa). Ships only while uvir or flicker is open
   (faz3VisualsAsset in build/publish-filter.mjs). Accents only inside drawings, never as text colour (UV §6.2, epilepsy §5.8).
   Motion: one reveal, nothing loops, nothing blinks; static under reduced motion. */
.f3-uvir { --f3-accent: #8a2638; }
.f3-flicker { --f3-accent: #4f6df5; }

/* ---------- U0: band strip (UV §5.1.1) ---------- */
.f3-bands { margin: 28px 0 0; padding: 14px; max-width: 640px; border-radius: 16px; background: rgba(7, 18, 15, 0.72); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); }
.f3-band-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.f3-band { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.f3-swatch { display: block; height: 34px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.14); }
.f3-band-name { font-size: 0.78rem; font-weight: 700; line-height: 1.25; color: #eef4f0; overflow-wrap: anywhere; hyphens: auto; }
.f3-band[data-band='uvc'] .f3-swatch { background: repeating-linear-gradient(45deg, #6a4fd6 0 2px, transparent 2px 8px), repeating-linear-gradient(-45deg, #6a4fd6 0 2px, transparent 2px 8px), rgba(106, 79, 214, 0.3); }
.f3-band[data-band='uvb'] .f3-swatch { background: repeating-linear-gradient(45deg, #6a4fd6 0 2.5px, transparent 2.5px 8px), rgba(106, 79, 214, 0.3); }
.f3-band[data-band='uva'] .f3-swatch { background: repeating-linear-gradient(45deg, #8f73f0 0 2.5px, transparent 2.5px 8px), rgba(143, 115, 240, 0.3); }
.f3-band[data-band='vis'] .f3-swatch { background: linear-gradient(90deg, #6b55c9, #3f6fd1 18%, #2fa98a 38%, #c9c24a 56%, #d98b3a 74%, #b8323a); opacity: 0.82; }
.f3-band[data-band='fr'] .f3-swatch { background: repeating-linear-gradient(45deg, #8a2638 0 2.5px, transparent 2.5px 8px), rgba(138, 38, 56, 0.34); }
.f3-band[data-band='nir'] .f3-swatch { background: repeating-linear-gradient(45deg, #5c1a26 0 2.5px, transparent 2.5px 8px), rgba(92, 26, 38, 0.4); }
@media (max-width: 560px) {
  .f3-bands { padding: 12px; }
  .f3-band-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .f3-bands.reveal { transform: none; }
  .js .f3-bands .f3-band { opacity: 0; transition: opacity 0.5s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
  .js .f3-bands.is-in .f3-band { opacity: 1; }
}

/* ---------- Illustrated card media (UV cuts, epilepsy icons) in the .ac-card slot ---------- */
.ac-media.is-illus { display: grid; place-items: center; padding: 18px 18px 84px; background: radial-gradient(70% 60% at 50% 34%, color-mix(in srgb, var(--f3-accent) 20%, transparent), transparent 72%), linear-gradient(160deg, #12291f, var(--ink-1)); }
.ac-media.f3-cut svg { width: 100%; max-width: 360px; height: auto; }
.ac-media.f3-icmedia { color: #dcece4; }
.ac-media.f3-icmedia svg { width: 104px; height: 104px; }
a.ac-card:hover .ac-media.is-illus svg { transform: translateY(-2px); }
.ac-media.is-illus svg { transition: transform 0.6s var(--ease); }
@media (max-width: 560px) { .ac-media.is-illus { padding-bottom: 72px; } .ac-media.f3-icmedia svg { width: 80px; height: 80px; } }

/* ---------- S1: modulation plane (epilepsy §4.1.1) ---------- */
.f3-plane { margin: 28px 0 0; max-width: 620px; }
.f3-plane .aw-badge { color: #9fb4ff; }
.f3-plane-svg { display: block; width: 100%; height: auto; }
.f3-plane .f3-axis { fill: none; stroke: #a9bbb3; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.f3-plane .f3-band-zone { fill: var(--f3-accent); fill-opacity: 0.14; }
.f3-plane .f3-limit { fill: none; stroke: #9fb4ff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.f3-plane .f3-ax-label { fill: #c9d6d0; font-size: 14px; font-weight: 600; font-family: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .js .f3-plane.reveal { transform: none; }
  .js .f3-plane .f3-band-zone { opacity: 0; transition: opacity 0.6s var(--ease); }
  .js .f3-plane .f3-limit { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.6s var(--ease); }
  .js .f3-plane.is-in .f3-band-zone { opacity: 1; }
  .js .f3-plane.is-in .f3-limit { stroke-dashoffset: 0; }
}

/* ---------- Static icons (epilepsy §4.1.2, §4.1.4, §4.1.5) ---------- */
.f3-ic { width: 40px; height: 40px; flex: none; }
.f3-ic .a { stroke: var(--f3-accent); }
.f3-icons { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.f3-icons li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 600; min-width: 0; }
:is(.dark, .hero, .section.surface, .band) .f3-icons li { color: #eef4f0; }
:is(.dark, .hero, .section.surface, .band) .f3-flicker { --f3-accent: #8ea4ff; }
@media (max-width: 560px) { .f3-icons { flex-direction: column; gap: 10px; } }

/* ---------- Status labels next to the drawings ---------- */
.f3-status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.f3-window .tag.st, .f3-bands .tag.st { background: rgba(7, 18, 15, 0.55); border-color: rgba(255, 255, 255, 0.18); }
.f3-window .tag.st.development, .f3-bands .tag.st.development { color: #f3cf83; }
.f3-window .tag.st.concept, .f3-bands .tag.st.concept { color: #d3c5ff; }
