.research-figure {
  --rf-ink: #17191b;
  --rf-muted: #585c60;
  --rf-line: #b9bdc1;
  --rf-guide: #e1e3e5;
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 58px auto 64px;
  padding: clamp(28px, 3.3vw, 40px);
  background: #f5f5f4;
  border-radius: 4px;
  color: var(--rf-ink);
  isolation: isolate;
  overflow-wrap: normal;
}
.article-body .research-figure > h3 {
  margin: 0 0 28px;
  font-size: clamp(27px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.rf-stage {
  position: relative;
  width: 100%;
  max-width: 660px;
  height: 300px;
  margin: 0 auto 24px;
}
.rf-drawing {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.rf-drawing path,
.rf-drawing line,
.rf-drawing circle,
.rf-drawing polyline {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.rf-line { stroke: var(--rf-line); stroke-width: 1.6; }
.rf-guide { stroke: var(--rf-guide); stroke-width: 1; }
.rf-dotted { stroke: var(--rf-line); stroke-width: 1.2; stroke-dasharray: 1.5 6; stroke-linecap: round; }
.rf-dark { stroke: var(--rf-ink); stroke-width: 1.8; }
.rf-drawing .rf-fill { fill: #e6e8e9; stroke: none; }
.rf-focus .rf-line,
.rf-focus .rf-dotted { transition: stroke 240ms ease, stroke-width 240ms ease; }
.rf-focus.is-active .rf-line,
.rf-focus.is-active .rf-dotted { stroke: var(--rf-ink); stroke-width: 2; }
.rf-point {
  position: absolute;
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--rf-line);
  border: 0;
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}
.rf-point.rf-dark,
.rf-focus.is-active .rf-point,
.rf-point.is-active { background: var(--rf-ink); }
.rf-terminal { width: 19px; height: 19px; background: var(--rf-ink); }
.rf-hollow { width: 24px; height: 24px; background: #fff; border: 1.5px solid var(--rf-ink); }
.rf-large { width: 32px; height: 32px; }
.rf-faint { background: var(--rf-guide); }
.rf-focus.is-active .rf-point.rf-hollow { background: #fff; border-color: var(--rf-ink); }
.rf-label {
  position: absolute;
  display: block;
  width: max-content;
  max-width: 36%;
  transform: translate(-50%, -50%);
  color: var(--rf-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}
.rf-focus.is-active .rf-label,
.rf-label.rf-dark { color: var(--rf-ink); }
.rf-controls {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 14px auto 22px;
}
.rf-controls button {
  appearance: none;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 46px;
  max-width: 100%;
  padding: 7px 2px 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--rf-muted);
  font: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}
.rf-controls button:hover { color: var(--rf-ink); }
.rf-controls button[aria-pressed="true"] { border-bottom-color: var(--rf-ink); color: var(--rf-ink); }
.rf-controls button:focus-visible,
.rf-map-point:focus-visible,
.rf-select select:focus-visible { outline: 2px solid var(--rf-ink); outline-offset: 4px; }
.rf-result { max-width: 620px; margin: 0 auto; text-align: center; }
.article-body .research-figure .rf-caption {
  min-height: 60px;
  margin: 0;
  color: var(--rf-muted);
  font-size: 20px;
  line-height: 1.5;
  text-wrap: pretty;
}
.article-body .research-figure .rf-context {
  max-width: 560px;
  margin: 0 auto 22px;
  color: var(--rf-muted);
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}
.article-body .research-figure .rf-note {
  margin: 15px 0 0;
  color: #686c70;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}
.rf-state[hidden] { display: none !important; }
.rf-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  min-height: 44px;
  max-width: 100%;
  margin: -7px auto 20px;
  color: var(--rf-muted);
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}
.rf-toggle input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.rf-switch {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 24px;
  border-radius: 15px;
  background: #d0d3d6;
  transition: background 180ms ease;
}
.rf-switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms ease;
}
.rf-toggle input:checked ~ .rf-switch { background: var(--rf-ink); }
.rf-toggle input:checked ~ .rf-switch::after { transform: translateX(16px); }
.rf-toggle:has(input:focus-visible) { outline: 2px solid var(--rf-ink); outline-offset: 5px; }
.rf-capacity { position: absolute; left: 59%; top: 8%; height: 84%; border-left: 1px dashed #92979b; opacity: 0; transition: opacity 240ms ease; }
.research-figure[data-capacity="limited"] .rf-capacity { opacity: 1; }
.rf-perspectives { height: 330px; }
.rf-lens-field { width: 100%; max-width: 480px; height: 330px; margin: 0 auto 22px; position: relative; }
.rf-lens {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  border: 1.4px solid var(--rf-line);
  border-radius: 50%;
  color: var(--rf-muted);
  font-size: 18px;
  line-height: 1.3;
  background: rgba(255,255,255,.04);
  transition: border-color 240ms ease, color 240ms ease, background 240ms ease;
}
.rf-lens-0 { left: 50%; top: 0; transform: translateX(-50%); padding-bottom: 35px; }
.rf-lens-1 { left: 7%; top: 32%; padding-right: 28px; padding-top: 25px; }
.rf-lens-2 { right: 7%; top: 32%; padding-left: 28px; padding-top: 25px; }
.rf-lens.is-active, .rf-focus.is-active > .rf-lens { z-index: 1; border-color: var(--rf-ink); color: var(--rf-ink); background: rgba(235,237,239,.14); }
.rf-lens-field > .rf-point { z-index: 2; }
.rf-weight-open,
.rf-weight-solid {
  position: absolute;
  display: block;
  top: 62%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 240ms ease, height 240ms ease;
}
.rf-weight-open { left: 11.25%; width: 74px; height: 74px; background: #fff; border: 1.7px solid var(--rf-ink); }
.rf-weight-solid { left: 88.75%; width: 34px; height: 34px; background: var(--rf-ink); }
.rf-matrix,
.rf-tilt { height: 330px; max-width: 540px; }
.rf-plot { position: absolute; left: 100px; right: 22px; top: 18px; bottom: 40px; }
.rf-y-labels { position: absolute; inset: 18px auto 40px 0; width: 92px; }
.rf-y-labels > * {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  width: 92px;
  color: var(--rf-muted);
  font-size: 16px;
  line-height: 1.2;
}
.rf-y-labels > :nth-child(1) { top: 10%; }
.rf-y-labels > :nth-child(2) { top: 50%; }
.rf-y-labels > :nth-child(3) { top: 90%; }
.rf-x-labels {
  position: absolute;
  left: 100px;
  right: 22px;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--rf-muted);
  font-size: 16px;
  line-height: 1.2;
}
.rf-x-labels > * { position: absolute; top: 0; width: max-content; transform: translateX(-50%); text-align: center; }
.rf-x-labels > :nth-child(1) { left: 5%; }
.rf-x-labels > :nth-child(2) { left: 50%; }
.rf-x-labels > :nth-child(3) { left: 95%; }
.rf-map-point {
  appearance: none;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.rf-map-point span { width: 12px; height: 12px; border-radius: 50%; background: #b9bdc1; transition: background 180ms ease, box-shadow 180ms ease; }
.rf-map-point:hover span { background: #74797d; }
.rf-map-point[aria-pressed="true"] span { background: var(--rf-ink); box-shadow: 0 0 0 14px rgba(23,25,27,.055); }
.rf-select { display: flex; justify-content: center; align-items: center; margin: 18px auto 24px; }
.rf-select select {
  min-width: 160px;
  min-height: 48px;
  max-width: 100%;
  padding: 7px 32px 7px 10px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: var(--rf-ink);
  font: inherit;
  font-size: 24px;
  line-height: 1.25;
  cursor: pointer;
}
.rf-moving-dot {
  position: absolute;
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--rf-ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px rgba(23,25,27,.04);
  transition: left 300ms ease, top 300ms ease;
}
.rf-origin { position: absolute; top: -3%; left: 50%; transform: translate(-50%, -100%); font-size: 16px; line-height: 1.2; color: var(--rf-muted); }
.rf-kind-modes .rf-stage { height: 230px; }
.rf-kind-modes .rf-drawing { overflow: hidden; }
@media (max-width: 700px) {
  .research-figure { margin: 42px auto 48px; padding: 28px 24px; }
  .article-body .research-figure > h3 { font-size: 27px; margin-bottom: 24px; line-height: 1.23; }
  .rf-stage { height: 230px; margin-bottom: 22px; }
  .rf-perspectives { height: 280px; }
  .rf-label { font-size: 16px; line-height: 1.25; max-width: 40%; }
  .rf-end-label { left: auto !important; right: 0; transform: translateY(-50%); }
  .rf-source-label { left: 15% !important; transform: translate(-50%, -150%); }
  .rf-reflection .rf-state > .rf-label:first-child { left: 17% !important; }
  .rf-reflection .rf-state > .rf-label:last-child { left: 83% !important; }
  .rf-controls { gap: 5px 18px; margin: 12px auto 20px; }
  .rf-controls button { font-size: 16px; min-height: 46px; }
  .article-body .research-figure .rf-caption { font-size: 19px; min-height: 57px; line-height: 1.5; }
  .article-body .research-figure .rf-context { font-size: 16px; }
  .article-body .research-figure .rf-note { font-size: 15px; margin-top: 12px; }
  .rf-lens-field { max-width: 380px; height: 280px; margin-bottom: 22px; }
  .rf-lens { width: 190px; height: 190px; font-size: 16px; }
  .rf-lens-1 { left: 4%; }
  .rf-lens-2 { right: 4%; }
  .rf-weight-open { width: 58px; height: 58px; }
  .rf-weight-solid { width: 29px; height: 29px; }
  .rf-matrix, .rf-tilt { height: 280px; margin-top: 34px; }
  .rf-plot { left: 83px; right: 17px; }
  .rf-y-labels, .rf-y-labels > * { width: 78px; }
  .rf-x-labels { left: 83px; right: 17px; }
  .rf-map-point { width: 44px; min-width: 44px; height: 44px; }
  .rf-map-point[aria-pressed="true"] span { box-shadow: 0 0 0 10px rgba(23,25,27,.055); }
  .rf-select select { font-size: 22px; }
  .rf-kind-modes .rf-stage { height: 200px; }
}
@media (max-width: 420px) {
  .research-figure { padding: 24px 18px; }
  .rf-perspectives { height: 252px; }
  .rf-lens-field { max-width: 340px; height: 252px; }
  .rf-lens { width: 166px; height: 166px; }
  .rf-lens-1 { left: 4%; }
  .rf-lens-2 { right: 4%; }
  .rf-controls { gap: 5px 14px; }
  .rf-kind-reflection .rf-controls { column-gap: 18px; }
  .rf-kind-reflection .rf-controls button { flex-basis: calc(50% - 18px); max-width: 125px; }
  .rf-kind-tilt .rf-controls { gap: 5px 10px; }
  .rf-kind-tilt .rf-controls button { flex: 1 1 0; }
}
@media (max-width: 350px) {
  .rf-perspectives { height: 225px; }
  .rf-lens-field { height: 225px; }
  .rf-lens { width: 146px; height: 146px; }
  .rf-lens-1 { padding-right: 17px; padding-top: 20px; }
  .rf-lens-2 { padding-left: 17px; padding-top: 20px; }
  .rf-lens-1 > span { transform: translate(-12px, 12px); }
  .rf-lens-2 > span { transform: translate(12px, 12px); }
  .rf-lens-0 { padding-bottom: 28px; }
  .rf-label { font-size: 16px; }
  .rf-controls { column-gap: 12px; }
  .rf-matrix, .rf-tilt { height: 260px; }
  .rf-plot { left: 80px; right: 15px; }
  .rf-x-labels { left: 80px; right: 15px; }
  .rf-x-labels > * { flex-basis: 28%; }
  .rf-weight-open { width: 50px; height: 50px; }
  .rf-weight-solid { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .research-figure *, .research-figure *::before, .research-figure *::after { transition: none !important; animation: none !important; }
}
.research-figure [data-rf-balance-handle]{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;touch-action:pan-y;cursor:grab}
.research-figure [data-rf-balance-handle]:active{cursor:grabbing}
.research-figure [data-rf-balance-handle]:focus-visible{outline:2px solid var(--rf-ink);outline-offset:5px}
@media print {
  .research-figure { break-inside: avoid; margin: 24px 0; padding: 24px; }
  .rf-controls, .rf-toggle, .rf-select { display: none; }
  .rf-stage { height: 220px; }
  .article-body .research-figure .rf-caption { font-size: 12pt; min-height: 0; }
}
