/* Detailed research workflows, using the paper's typography and theme. */
.research-workflows {
  margin: 38px 0 30px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  scroll-margin-top: 24px;
}
.research-workflows .uc-list { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.research-workflows .uc-row {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  scroll-margin-top: 24px;
}
.research-workflows .uc-row::before {
  content: '';
  position: absolute;
  left: 50px;
  top: -1px;
  bottom: -17px;
  width: 1px;
  background: var(--line-2);
  pointer-events: none;
}
.research-workflows .uc-row:first-child::before { top: 50px; }
.research-workflows .uc-row:last-child::before { bottom: calc(100% - 50px); }
.research-workflows .uc-content { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; align-items: start; }
.research-workflows .uc-stage { position: relative; }
.research-workflows .uc-step {
  display: grid;
  place-items: center;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--ft);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
}
.research-workflows .uc-copy { min-width: 0; container-type: inline-size; container-name: paper-workflow; }
.research-workflows .uc-header { display: grid; gap: 24px; }
.research-workflows .uc-phase {
  display: block;
  width: fit-content;
  margin-bottom: 16px;
  font-family: var(--ft);
  font-size: 12px;
  line-height: 44px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.research-workflows .card-h3 { margin-bottom: 10px; font-family: var(--ft); font-size: 24px; line-height: 1.3; font-weight: 500; }
.research-workflows .uc-p { max-width: 46ch; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.research-workflows .uc-eq { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 16px; width: fit-content; max-width: 100%; }
.research-workflows .eqv-study { grid-column: 1 / -1; margin-bottom: 16px; font-family: var(--ft); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.research-workflows .eqv-n { font-family: var(--ft); font-size: 48px; line-height: 1; font-weight: 500; }
.research-workflows .eqv-u { align-self: center; font-size: 16px; color: var(--ink-2); }
.research-workflows .uc-bench { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.research-workflows .uc-bench-caption { margin-bottom: 12px; font-size: 12px; line-height: 1.5; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.research-workflows .uc-bench-row { display: grid; grid-template-columns: 136px 64px minmax(0, 1fr) 56px; align-items: center; gap: 12px; }
.research-workflows .uc-bench-row + .uc-bench-row { margin-top: 10px; }
.research-workflows .uc-bench-who, .research-workflows .uc-bench-duration { font-size: 12px; line-height: 1.3; color: var(--ink-2); }
.research-workflows .uc-bench-duration { white-space: nowrap; }
.research-workflows .uc-bench-track { height: 16px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.research-workflows .uc-bench-fill { display: block; height: 100%; background: var(--bench-human, var(--line-2)); border-radius: 3px 0 0 3px; }
.research-workflows .reference .uc-bench-fill { background: repeating-linear-gradient(135deg, var(--line-2) 0 6px, transparent 6px 12px); border-radius: 3px; }
.research-workflows .sunzu .uc-bench-fill { background: var(--g); }
.research-workflows .uc-bench-value { font-family: var(--ft); font-size: 18px; line-height: 1; font-weight: 500; text-align: right; color: var(--ink-3); }
.research-workflows .sunzu .uc-bench-value { font-size: 22px; justify-self: end; }
.research-workflows .uc-phase, .research-workflows .eqv-n, .research-workflows .sunzu .uc-bench-value {
  background: var(--gtext);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@container paper-workflow (max-width: 420px) {
  .research-workflows .uc-bench-row { grid-template-columns: minmax(0, 1fr) 56px; gap: 7px 12px; }
  .research-workflows .uc-bench-who { grid-column: 1; grid-row: 1; }
  .research-workflows .uc-bench-duration { grid-column: 2; grid-row: 1; text-align: right; }
  .research-workflows .uc-bench-track { grid-column: 1; grid-row: 2; }
  .research-workflows .uc-bench-value { grid-column: 2; grid-row: 2; }
  .research-workflows .uc-bench-row + .uc-bench-row { margin-top: 12px; }
}
@media (max-width: 640px) {
  .research-workflows .uc-row { padding: 20px; }
  .research-workflows .uc-row::before { left: 38px; }
  .research-workflows .uc-row:first-child::before { top: 38px; }
  .research-workflows .uc-row:last-child::before { bottom: calc(100% - 38px); }
  .research-workflows .uc-content { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .research-workflows .uc-step { height: 36px; font-size: 13px; }
  .research-workflows .uc-phase { line-height: 36px; }
  .research-workflows .card-h3 { font-size: 22px; }
  .research-workflows .uc-eq { column-gap: 10px; }
  .research-workflows .eqv-n { font-size: 40px; }
  .research-workflows .eqv-u { font-size: 14px; }
}
@media print {
  .research-workflows { break-before: page; }
  .research-workflows .bmk-lede { break-after: avoid; }
  .research-workflows .uc-list { display: block; }
  .research-workflows .uc-row { break-inside: avoid; padding: 20px; }
  .research-workflows .uc-row + .uc-row { margin-top: 16px; }
  .research-workflows .uc-row::before { left: 38px; }
  .research-workflows .uc-row:first-child::before { top: 38px; }
  .research-workflows .uc-row:last-child::before { bottom: calc(100% - 38px); }
  .research-workflows .uc-content { grid-template-columns: 36px minmax(0, 1fr); gap: 16px; }
  .research-workflows .uc-step { height: 36px; }
  .research-workflows .uc-header { grid-template-columns: minmax(0, 1fr) 172px; }
  .research-workflows .uc-phase { line-height: 36px; margin-bottom: 8px; }
  .research-workflows .card-h3 { font-size: 22px; }
  .research-workflows .uc-p { font-size: 14px; }
  .research-workflows .uc-eq { align-self: end; padding-bottom: 2px; column-gap: 10px; }
  .research-workflows .eqv-study { margin-bottom: 12px; }
  .research-workflows .eqv-n { font-size: 40px; }
  .research-workflows .eqv-u { font-size: 14px; }
  .research-workflows .uc-bench { margin-top: 18px; padding-top: 16px; }
  .research-workflows .uc-phase, .research-workflows .eqv-n, .research-workflows .sunzu .uc-bench-value {
    background: none;
    -webkit-text-fill-color: #ff274f;
    color: #ff274f;
  }
}
