/* Research-page figures. Plain CSS; add to a stylesheet or a <style> block. */
.rf-figure { margin: 1.5rem 0 2rem; }
.rf-grid { display: grid; gap: 1.5rem 1.5rem; }
.rf-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 1.5rem 1.25rem; }
.rf-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 2rem 1.75rem; }
.rf-grid-study { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 2rem 1.75rem; }
.rf-panel { margin: 0; min-width: 0; }
.rf-panel img, .rf-panel svg { display: block; width: 100%; height: auto; }
.rf-cap { font-size: .875rem; line-height: 1.45; margin: .6rem 0 0; }
.rf-figure > figcaption, .rf-subcap { font-size: .875rem; line-height: 1.45; margin: .9rem 0 0; color: #4f6275; }
.rf-subhead { font-size: 1.05rem; font-weight: 700; margin: 2rem 0 .75rem; }
.rf-legend { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-size: .875rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.rf-legend li { display: flex; align-items: center; gap: .4rem; }
.rf-legend svg { flex: none; }
.rf-panel svg.rf-phone { display: none; }
@media (max-width: 880px) {
  .rf-grid-study { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .rf-panel svg.rf-wide { display: none; }
  .rf-panel svg.rf-phone { display: block; }
}
