
/* what-session-replay-captures figures. This article-local stylesheet loads after resources.css.
   Replaces dom-replay-vs-screen-video.svg, session-replay-capture-pipeline.svg
   and session-replay-captured-vs-not-captured.svg. */

.wc-fig {
  margin: 38px 0;
  padding: 34px 36px 32px;
  border: 1px solid #cfdcf0;
  border-radius: 20px;
  background: #f4f7fb;
  color: #071b3a;
}

h3.wc-h {
  margin: 0 0 26px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #071b3a;
}

p.wc-note {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #4b5b76;
  text-wrap: pretty;
}

/* ---------- figure 1: recording models ---------- */

.wc-models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.wc-model {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 24px 26px 26px;
  border: 1px solid #d7e2f2;
  border-radius: 16px;
  background: #fff;
}

p.wc-model__t {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #071b3a;
}

.wc-viz {
  display: grid;
  align-content: center;
  gap: 7px;
  height: 92px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f7fb;
}

.wc-tree {
  display: block;
  height: 9px;
  border-radius: 3px;
  background: #16408f;
}

.wc-viz--frames {
  grid-template-columns: repeat(4, 1fr);
  align-content: center;
  gap: 8px;
}

.wc-viz--frames span {
  display: block;
  height: 46px;
  border-radius: 4px;
  background: #5a6a80;
}

.wc-frame {
  display: block;
  height: 20px;
  border-radius: 4px;
  background: #5a6a80;
}

.wc-diag {
  display: block;
  height: 9px;
  border-radius: 3px;
  background: #8a5a06;
}

p.wc-model__d {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #4b5b76;
  text-wrap: pretty;
}

p.wc-model__lim {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #e6edf7;
  font-size: 15px;
  line-height: 1.5;
  color: #8a5a06;
  text-wrap: pretty;
}

/* ---------- figure 2: pipeline ---------- */

.wc-pipe {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.wc-stage {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 20px 22px;
  border: 1px solid #d7e2f2;
  border-radius: 14px;
  background: #fff;
}

.wc-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 0;
  height: 0;
  margin-top: -7px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #8a94a6;
}

p.wc-stage__n {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #5a6a80;
}

p.wc-stage__t {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #071b3a;
  text-wrap: pretty;
}

p.wc-stage__d {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #4b5b76;
  text-wrap: pretty;
}

p.wc-stage__warn {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #8a5a06;
  text-wrap: pretty;
}

/* ---------- figure 3: four tiers ---------- */

.wc-tiers {
  display: grid;
  gap: 10px;
}

.wc-tier {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
  padding: 22px 26px 24px;
  border: 1px solid #d7e2f2;
  border-radius: 16px;
  background: #fff;
}

.wc-tier--optional { border-left: 6px solid #d09b1f; }
.wc-tier--outside { border-left: 6px solid #8a94a6; }

.wc-tier--common { border-left: 6px solid #16408f; }

.wc-tier--never {
  border-color: #cfdcf0;
  border-left: 6px solid #071b3a;
  background: #f4f7fb;
}

p.wc-tier__t {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #071b3a;
}

.wc-set {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wc-set span {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: #33465f;
  background: #f4f7fb;
  box-shadow: inset 0 0 0 1px #dfe7f3;
}

.wc-tier--optional .wc-set span {
  background: #fdf9f1;
  box-shadow: inset 0 0 0 1px #e6cd9a;
  color: #6b4e08;
}

.wc-tier--never .wc-set span {
  background: #fff;
  box-shadow: inset 0 0 0 1px #cfdcf0;
  color: #5a6a80;
  text-decoration: line-through;
  text-decoration-color: #b0bdcd;
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .wc-pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .wc-stage:nth-child(3)::after { display: none; }

  .wc-tier { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 940px) {
  .wc-fig { padding: 26px 22px 24px; }

  h3.wc-h { font-size: 22px; }

  .wc-models { grid-template-columns: minmax(0, 1fr); }

  .wc-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .wc-stage::after { display: none; }

  .wc-tier {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 620px) {
  .wc-pipe { grid-template-columns: minmax(0, 1fr); }
}
