/*
 lvi/eye-diagram
 An eye cross-section on a soft panel. Every colour is a --lvi-* context
 variable, so the diagram also works inside a deep-teal band. Labels are
 HTML placed over the SVG by percentage (--x / --y set per label in the
 condition partial) so they keep a readable size at phone width.
 The draw-in motion lives in sass/modules/_motion.scss (front end only).
========================================================================== */
:where(.lvi-eye-diagram) {
  margin: 0;
}

:root .lvi-eye-diagram {
  position: relative;
  width: 100%;
  background: var(--lvi-surface-alt);
  border-radius: 24px;
  overflow: hidden;
  container-type: inline-size;
}
:root .lvi-eye-diagram__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
:root .lvi-eye-diagram__globe,
:root .lvi-eye-diagram__nerve {
  fill: var(--lvi-surface);
  stroke: var(--lvi-heading);
  stroke-width: 2;
  stroke-linejoin: round;
}
:root .lvi-eye-diagram__cornea,
:root .lvi-eye-diagram__lens {
  fill: var(--lvi-chip-bg);
  stroke: var(--lvi-accent);
  stroke-width: 1.5;
}
:root .lvi-eye-diagram__lens {
  fill-opacity: 0.85;
}
:root .lvi-eye-diagram__iris {
  fill: none;
  stroke: var(--lvi-heading);
  stroke-width: 6;
  stroke-linecap: round;
}
:root .lvi-eye-diagram__retina {
  fill: none;
  stroke: var(--lvi-heading);
  stroke-width: 4;
  stroke-linecap: round;
}
:root .lvi-eye-diagram__blur {
  fill: none;
  stroke: var(--lvi-badge-bg);
  stroke-width: 16;
  stroke-linecap: round;
}
:root .lvi-eye-diagram__ray {
  fill: none;
  stroke: var(--lvi-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root .lvi-eye-diagram__ray--b {
  stroke: var(--lvi-heading);
}
:root .lvi-eye-diagram__ghost {
  fill: none;
  stroke: var(--lvi-accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.7;
}
:root .lvi-eye-diagram__focus {
  fill: var(--lvi-badge-bg);
  stroke: var(--lvi-heading);
  stroke-width: 2;
}
:root .lvi-eye-diagram__focus--ghost {
  fill: var(--lvi-surface);
  stroke-dasharray: 3 3;
}
:root .lvi-eye-diagram__source {
  fill: var(--lvi-heading);
}
:root .lvi-eye-diagram__leader {
  fill: none;
  stroke: var(--lvi-fine);
  stroke-width: 1.25;
  stroke-dasharray: 3 4;
}
:root .lvi-eye-diagram__label {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  font-family: var(--wp--preset--font-family--primary);
  font-size: clamp(12px, 2.4cqi, 15px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--lvi-text-strong);
  white-space: nowrap;
}
:root .lvi-eye-diagram__label--start {
  translate: 0 -50%;
}
:root .lvi-eye-diagram__label--end {
  translate: -100% -50%;
}
