/* Plant Pigments: only what's specific to this lab. Shared chrome is in ../lab.css. */

/* ---------- backgrounds per zoom level ---------- */
.bg-paper, .zoom-lens.bg-paper { background: radial-gradient(1400px 900px at 58% 35%, #fffdf8 0%, #f4f0e4 50%, #e6e0cf 100%); }
.bg-mol, .zoom-lens.bg-mol { background: radial-gradient(1400px 900px at 58% 35%, #fdfefb 0%, #eef2ea 50%, #dde5d8 100%); }
body[data-scale='paper'] .bg-paper, body[data-scale='mol'] .bg-mol { opacity: 1; }

/* ---------- the chromatogram panel ---------- */
.pig-panel {
  right: var(--gutter);
  bottom: calc(var(--timeline-h) + var(--gutter) * 2);
  width: 340px;
  padding-bottom: 12px;
  display: none;
}
body.pig-panel-open .pig-panel { display: block; }
.pig-hint { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pig-body { display: flex; gap: 6px; padding: 0 12px; align-items: flex-start; }
.pig-body canvas { flex: none; cursor: crosshair; }
.pig-side { flex: 1; min-width: 0; padding-top: 6px; }
.pig-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pig-table td { padding: 6px 2px; border-top: 1px solid var(--line); vertical-align: top; }
.pig-table tr:first-child td { border-top: 0; }
.pig-table td b { white-space: nowrap; }
.pig-table td small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.pig-table td.num { text-align: right; white-space: nowrap; }
.pig-table .sw { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-top: 2px; border: 1px dashed var(--line); }
.pig-table tr.got .sw { border: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.pig-table .dash { color: var(--faint, #b4bcc6); }
.pig-front { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pig-front b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* the card centres in the space left of the panel while it is open */
@media (min-width: 821px) {
  body.pig-panel-open .lab-card {
    left: calc(280px + (100% - 280px - 350px) / 2);
    width: min(470px, calc(100% - 280px - 350px - var(--gutter) * 2));
    min-width: 0;
  }
  body.pig-panel-open .lab-captions { right: calc(330px + var(--gutter) * 2); }
  body.pig-panel-open .zoom-insets { top: 66px; transform: none; flex-direction: row; gap: 18px; right: calc(var(--gutter) + 20px); }
  body.pig-panel-open .zoom-inset { width: 112px; height: 112px; }
  body.pig-panel-open .zi-dir { display: none; }
}
@media (max-width: 820px) {
  .pig-panel { left: var(--gutter); right: var(--gutter); width: auto; }
}

/* ---------- info modal ---------- */
.equation {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin: 14px 0; padding: 12px; border-radius: 12px;
  background: #f4f7f4;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; color: var(--ink);
}
