/* Figures keep their data and explanatory labels in the article's reading column. */
.journal-figure {
  --jf-blue: #548add;
  --jf-purple: #8d72c3;
  --jf-slate: #929da9;
  --jf-line: #dedfe1;
  --jf-muted: #505258;
  max-width: 100%;
  min-width: 0;
  margin: clamp(38px, 5vw, 62px) 0;
  color: #161617;
  background: white;
  font: inherit;
  letter-spacing: normal;
}
.article-body .journal-figure h3,
.journal-figure h3 {
  margin: 0 0 17px;
  color: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.018em;
}
.journal-figure figcaption {
  display: block;
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.64;
  font-style: italic;
  font-synthesis: style;
  color: #353535;
}
.journal-figure figcaption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.journal-figure .jf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin: 0 0 21px;
  padding: 0;
  list-style: none;
}
.jf-legend li {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.jf-key, .jf-dots i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.jf-blue { background: var(--jf-blue); }
.jf-purple { background: var(--jf-purple); }
.jf-slate { background: var(--jf-slate); }
.journal-figure .jf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.jf-phase, .jf-pair {
  border-top: 1px solid var(--jf-line);
  padding: 15px 0;
}
.jf-phase > strong, .jf-pair > strong {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}
.jf-bar-row, .jf-percent-row, .jf-cost-row {
  display: grid;
  grid-template-columns: 82px 1fr 61px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 9px;
}
.jf-bar-row b, .jf-percent-row b, .jf-cost-row b {
  text-align: right;
  font-size: 13px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.jf-bar-row em {
  grid-column: 2 / -1;
  padding-left: 15.625%;
  font-style: normal;
  font-size: 13px;
  color: var(--jf-muted);
}
.jf-diverge {
  display: block;
  position: relative;
  height: 19px;
  background: linear-gradient(to right, transparent calc(15.625% - .5px), #75777d calc(15.625% - .5px), #75777d calc(15.625% + .5px), transparent calc(15.625% + .5px));
}
.jf-diverge i {
  position: absolute;
  top: 2px;
  bottom: 2px;
}
.jf-pair {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 18px;
}
.jf-percent-row { grid-template-columns: 1fr 52px; margin-top: 5px; }
.jf-percent-row:first-child { margin-top: 0; }
.jf-percent-track {
  display: block;
  height: 13px;
  background: #f4f5f6;
}
.jf-percent-track i { display: block; height: 100%; }
.jf-week {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.jf-week th, .jf-week td {
  border: 0;
  border-bottom: 1px solid var(--jf-line);
  text-align: center;
  padding: 15px 0;
  font-weight: 450;
}
.jf-week thead td { width: 27%; }
.jf-week th[scope="row"] { text-align: left; }
.jf-dots {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
}
.jf-dots i { width: 9px; height: 9px; background: var(--jf-purple); }
.journal-figure .jf-stages {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  list-style: none;
  gap: 0;
  margin: 40px 0 22px;
  padding: 0;
}
.jf-stages li {
  position: relative;
  min-width: 0;
  margin: 0;
  border-top: 1px solid #a6b1bb;
  padding: 23px 17px 0 0;
  font-size: 14px;
  line-height: 1.52;
}
.jf-stages li:last-child { border-color: transparent; padding-right: 0; }
.jf-point {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1.5px solid #4d72a4;
  border-radius: 50%;
  background: #7293ca;
}
.jf-stages li strong { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 550; }
.jf-stages li > span:last-child { color: var(--jf-muted); }
.jf-milestones li:last-child .jf-point { background: #fff; border-style: dashed; }
.jf-notes .jf-point { border-color: #8663a7; background: #a186bd; }
.jf-fork { margin: 32px 0; }
.jf-stem {
  width: fit-content;
  max-width: 90%;
  margin: 0 auto 42px;
  padding: 12px 16px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  background: #edf2fa;
  border-radius: 3px;
}
.jf-arms {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 5%;
  position: relative;
  padding-top: 0;
}
.jf-arms::before {
  content: "";
  position: absolute;
  height: 21px;
  left: 50%;
  bottom: calc(100% + 21px);
  border-left: 1px solid #abb3c0;
}
.jf-arms::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 23.75%;
  right: 23.75%;
  height: 21px;
  border: 1px solid #abb3c0;
  border-bottom: 0;
}
.jf-arms > div { background: #f5f5f5; padding: 14px 16px; border-radius: 3px; }
.jf-arms strong { display: block; font-size: 14px; font-weight: 550; }
.article-body .journal-figure .jf-arms p {
  margin: 5px 0 0;
  color: var(--jf-muted);
  font-size: 14px;
  line-height: 1.5;
}
.jf-parts, .jf-reps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 28px 0 16px;
  border-block: 1px solid var(--jf-line);
}
.jf-parts > div, .jf-reps > div { min-width: 0; }
.jf-wheel {
  display: block;
  width: clamp(56px,10vw,100px);
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: repeating-conic-gradient(from 0deg, #fff 0deg 1.3deg, transparent 1.3deg calc(var(--slice) - 1.3deg), #fff calc(var(--slice) - 1.3deg) var(--slice)),
              conic-gradient(var(--jf-purple) var(--angle), #e8e7ed var(--angle));
}
.jf-parts strong, .jf-fraction { font-size: 27px; font-weight: 450; }
.jf-parts > div > span:last-child, .jf-reps > div > span {
  display: block;
  color: var(--jf-muted);
  font-size: 13px;
}
.jf-rep {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 114px;
  margin-bottom: 9px;
}
.jf-rep strong { max-width: 130px; font-size: clamp(16px,2.3vw,22px); line-height: 1.3; font-weight: 500; }
.jf-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols),1fr);
  width: min(100%,100px);
  aspect-ratio: 1;
  gap: 1px;
}
.jf-grid i { background: #e6e9ee; }
.jf-grid .jf-mark { background: var(--jf-blue); }
.jf-fraction { display: inline-grid; text-align: center; width: 1.25em; line-height: 1.2; }
.jf-fraction span:first-child { border-bottom: 1px solid #666; }
.jf-scale {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  padding: 0 4px;
}
.jf-scale > div {
  flex: 1;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.jf-scale b { font-size: 25px; font-weight: 500; line-height: 1.4; }
.jf-scale i {
  position: relative;
  height: 10px;
  width: 100%;
  background: linear-gradient(#969da8,#969da8) center / 100% 1px no-repeat;
}
.jf-scale i::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: calc(50% - 4px);
  top: 1px;
  border-radius: 50%;
  background: #406da9;
}
.jf-scale > div:first-child i { background-position: right; background-size: 50% 1px; }
.jf-scale > div:last-child i { background-position: left; background-size: 50% 1px; }
.jf-scale > div > span:last-child { color: var(--jf-muted); }
.jf-cost-row {
  grid-template-columns: 80px 1fr 53px;
  border-top: 1px solid var(--jf-line);
  padding: 20px 0;
  margin: 0;
}
.jf-units { display: grid; grid-template-columns: repeat(12,1fr); gap: 3px; }
.jf-units i { height: clamp(20px,4vw,34px); }
.jf-empty { background: #efeff2; }
@media (max-width: 520px) {
  .journal-figure figcaption { font-size: 13px; }
  .journal-figure .jf-stages {
    display: block;
    margin: 28px 0;
  }
  .jf-stages li {
    border-top: 0;
    border-left: 1px solid #a6b1bb;
    padding: 0 0 24px 20px;
  }
  .jf-stages li:last-child { padding-bottom: 0; }
  .jf-point { top: 4px; left: -6px; }
  .jf-stages li strong { margin-bottom: 4px; }
  .jf-pair { grid-template-columns: 56px 1fr; gap: 8px; }
  .jf-bar-row { grid-template-columns: 62px 1fr 48px; gap: 8px; }
  .jf-week thead td { width: 24%; }
  .jf-dots { gap: 2px; }
  .jf-dots i { width: 6px; height: 6px; }
  .jf-arms { gap: 5%; }
  .jf-arms > div { padding: 9px; }
  .jf-cost-row { grid-template-columns: 60px 1fr 43px; gap: 8px; }
  .jf-units { gap: 2px; }
  .jf-rep { height: 92px; }
}
@media print {
  .journal-figure { break-inside: avoid; }
  .journal-figure * { print-color-adjust: exact; }
}
