/* The status slides: GW150914's data and the crop (gw150914.js), the LVK
   figure, and the walking posterior (messy.js). Plots are SVG over the
   whole slide, so their colours follow the theme. */

.g1-plot, .ms-plot {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
}

/* ----- GW150914: data, waveform, crop ------------------------------- */

.g1-axes line { stroke: var(--hair); stroke-width: 1.5; }
.g1-axes text { fill: var(--muted); font: 24px ETbb, Georgia, serif; text-anchor: middle; }

.g1-data, .g1-data-off { fill: none; stroke-width: 2; stroke-linejoin: round; }
.g1-data { stroke: var(--muted); }
.g1-data-off { stroke: var(--hair); }                 /* what the cut threw away */
.g1-nr {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.8s;
}
#gw150914:not([data-s="0"]) .g1-nr { opacity: 1; }

.g1-cut { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 10 8; }
.g1-snr-curve { fill: none; stroke: var(--ink); stroke-width: 3; }
.g1-snr-dot { fill: var(--accent); }
.g1-snr text { fill: var(--muted); font: 22px ETbb, Georgia, serif; }

.g1-legend {
  position: absolute;
  right: 140px;
  top: 70px;
  display: flex;
  gap: 40px;
  font-size: 28px;
}
.g1-legend span::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 4px;
  margin-right: 12px;
  vertical-align: middle;
  background: currentColor;
}
.g1-k-data { color: var(--muted); }
.g1-k-nr { color: var(--accent); }

.g1-readout {
  position: absolute;
  right: 140px;
  top: 705px;
  width: 520px;
  text-align: right;
}
.g1-rho-label { font-size: 28px; color: var(--muted); }
.g1-rho {
  font-size: 80px;
  line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent);
}
.g1-rho-note { font-size: 20px; color: var(--muted); }

.g1-cite { position: absolute; left: 140px; bottom: 120px; font-size: 22px; }

/* ----- the LVK figure ----------------------------------------------- */

#lvk150914 .lvk-fig {
  width: 1000px;
  margin: 10px auto 0;
}

/* ----- data is messy ------------------------------------------------- */

.ms-axes line, .ms-axes rect { stroke: var(--hair); stroke-width: 1.5; fill: none; }
.ms-axes text { fill: var(--muted); font: 26px ETbb, Georgia, serif; }

.ms-gr path { fill: var(--accent-2); fill-opacity: 0.55; stroke: var(--accent-2); stroke-width: 2; }
.ms-gr text { fill: var(--accent-2); font: 30px ETbb, Georgia, serif; }

/* a start-time walk (walk.js): the current t0 filled, passed ones as outlines */
.wk-run { transition: opacity 0.5s ease; }
.wk-run .c90 { fill: var(--accent); fill-opacity: 0.12; stroke: var(--accent); stroke-width: 2.5; }
.wk-run .c50 { fill: var(--accent); fill-opacity: 0.3; stroke: none; }
/* a second damped sinusoid, dashed as LVK draws its 221 */
.wk-m1 .c90 { fill: var(--accent-2); fill-opacity: 0.1; stroke: var(--accent-2); stroke-dasharray: 10 7; }
.wk-m1 .c50 { fill: var(--accent-2); fill-opacity: 0.28; }
/* a start time already passed: its 90% outline only, fading with age */
.wk-run.past .c90 { fill: none; stroke-width: 1.5; }
.wk-run.past .c50 { display: none; }

.ms-side {
  position: absolute;
  left: 1250px;
  top: 220px;
  width: 560px;
}

.ms-t { font-size: 64px; }
.ms-tval {
  display: inline-block;
  min-width: 1.2em;
  text-align: center;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent);
}

/* 0 … 10, one bead per start time, as on the progress bar */
.ms-beads {
  display: flex;
  justify-content: space-between;
  margin: 26px 0 70px;
  padding-top: 8px;
  border-top: 2px solid var(--hair);
}
.wk-bead {
  width: 18px;
  height: 18px;
  margin-top: -18px;
  border-radius: 50%;
  border: 2px solid var(--hair);
  background: var(--bg);
  font-size: 18px;
  line-height: 50px;
  text-indent: -2px;
  color: var(--muted);
  font-variant-numeric: lining-nums;
  transition: background 0.3s, border-color 0.3s;
}
.wk-bead.past { background: var(--accent); border-color: var(--accent); }
.wk-bead.here { border-color: var(--accent); border-width: 4px; }

.ms-key { font-size: 26px; line-height: 1.8; color: var(--muted); }
.ms-sw {
  display: inline-block;
  width: 30px;
  height: 18px;
  margin-right: 14px;
  vertical-align: -2px;
  border-radius: 4px;
}
.ms-sw-post { background: color-mix(in srgb, var(--accent) 40%, transparent); border: 2px solid var(--accent); }
.ms-sw-gr { background: color-mix(in srgb, var(--accent-2) 55%, transparent); border: 2px solid var(--accent-2); }

.ms-cite { position: absolute; left: 1250px; top: 760px; font-size: 26px; }

/* ----- ten years later: LIGO's own comparison ------------------------ */

#loud .loud-fig {
  width: 1480px;
  margin: 0 auto;
}
#loud .loud-fig img {
  border-radius: 10px;
  max-height: none;
  width: 100%;
}
#loud .loud-fig .cite { text-align: right; }

/* ----- GW250114: LVK and silencio side by side (side250.js) ---------- */

.sd-plot {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
}

.sd-head {
  font-size: 30px;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

#side250 .sd-lvk {
  position: absolute;
  left: 140px;
  top: 170px;
  width: 770px;
  text-align: left;
}
#side250 .sd-lvk img { width: 100%; max-height: none; }
#side250 .sd-lvk .cite { font-size: 22px; }

.sd-head-ours { position: absolute; left: 1080px; top: 170px; }
.sd-head-ours .sd-n1, .sd-head-ours .sd-n2, .sd-head-ours .sd-tval { color: var(--accent); }
#side250 .sd-n2 { display: none; }
#side250:not([data-s="0"]) .sd-n1 { display: none; }
#side250:not([data-s="0"]) .sd-n2 { display: inline; }

.sd-axes rect, .sd-axes line { stroke: var(--hair); stroke-width: 1.5; fill: none; }
.sd-axes text { fill: var(--muted); font: 24px ETbb, Georgia, serif; }

.sd-one, .sd-two { transition: opacity 0.7s ease; }
#side250:not([data-s="0"]) .sd-one { opacity: 0; }

.sd-gr path { fill: var(--ink); stroke: var(--ink); stroke-width: 2; }
.sd-gr circle { fill: none; stroke: var(--ink); stroke-width: 2; }
.sd-gr text { fill: var(--ink); font: 26px ETbb, Georgia, serif; }
.sd-tval { display: inline-block; min-width: 1.1em; text-align: center; font-variant-numeric: lining-nums tabular-nums; }

.sd-cite { position: absolute; left: 1080px; top: 905px; font-size: 22px; }
