/* Publication-style figures: typography, fine rules and blue/gray signals. */
.features-section .editorial-figure,
.blog-story .editorial-figure {
  --ef-blue: #4c66df;
  --ef-ink: #272a34;
  --ef-muted: #7e8593;
  --ef-line: #e5e8ef;
  min-width: 0;
  margin-inline: 0;
  overflow: hidden;
  border: 1px solid var(--ef-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.editorial-figure .ef-canvas {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 3.5vw, 28px);
  color: var(--ef-ink);
  background: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  text-align: start;
}
.editorial-figure .ef-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  margin-bottom: 28px;
  color: var(--ef-muted);
  font-size: 11px;
  line-height: 1.5;
}
.editorial-figure .ef-kicker { min-width: 0; color: #687184; font-size: 11px; font-weight: 400; line-height: 1.5; }
.editorial-figure .ef-brand { flex: none; color: #a0a6b2; font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.editorial-figure figcaption.ef-caption {
  display: block;
  margin: 0;
  padding: 13px 20px;
  border: 0;
  border-top: 1px solid var(--ef-line);
  color: #788192;
  background: #fafbfc;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.65;
  text-align: start;
}
.editorial-figure figcaption.ef-caption::before { content: none; display: none; }
.editorial-figure [aria-hidden="true"] { user-select: none; }
.editorial-figure svg { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.editorial-figure .ef-rule { display: block; height: 3px; border-radius: 1px; background: #d7dce6; }
.editorial-figure .ef-rule--blue { background: #7187e9; }
@media (max-width: 600px) {
  .editorial-figure .ef-canvas { padding: 19px 17px; }
  .editorial-figure .ef-topline { gap: 12px; margin-bottom: 24px; }
  .editorial-figure figcaption.ef-caption { padding: 12px 17px; font-size: 10.5px; }
}

/* Draft / passage review / revision: a readable process figure, not a stock object. */
.editorial-figure .ef-editing { min-height: 320px; }
.editorial-figure .ef-workflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.editorial-figure .ef-workflow-stage { min-width: 0; }
.editorial-figure .ef-workflow-label { display: flex; align-items: flex-start; gap: 7px; min-height: 39px; }
.editorial-figure .ef-step-number { padding-top: 1px; color: #9ca5b8; font-size: 9px; font-variant-numeric: tabular-nums; line-height: 1.7; }
.editorial-figure .ef-workflow-label strong { color: #41495b; font-size: 11px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.editorial-figure .ef-paper { display: grid; align-content: start; gap: 10px; height: 144px; padding: 20px 14px; border: 1px solid #e2e6ee; border-radius: 5px; background: #fcfcfe; }
.editorial-figure .ef-paper .ef-rule { height: 3px; }
.editorial-figure .ef-paper .ef-rule:first-child { width: 62%; height: 5px; margin-bottom: 5px; background: #a9b3c7; }
.editorial-figure .ef-paper .ef-rule:nth-child(4) { width: 83%; }
.editorial-figure .ef-paper .ef-rule:last-child { width: 65%; }
.editorial-figure .ef-paper--review { border-color: #bdc9f4; background: #f6f8ff; }
.editorial-figure .ef-paper--review .ef-rule:nth-child(3),
.editorial-figure .ef-paper--review .ef-rule:nth-child(5) { height: 5px; margin-block: -1px; background: #7289ed; }
.editorial-figure .ef-paper--revised { border-color: #b4c3ed; background: #fff; }
.editorial-figure .ef-paper--revised .ef-rule:first-child { background: var(--ef-blue); }
.editorial-figure .ef-paper--revised .ef-rule:nth-child(3) { width: 72%; }
.editorial-figure .ef-paper--revised .ef-rule:nth-child(4) { width: 90%; }
.editorial-figure .ef-paper--revised .ef-rule:nth-child(5) { width: 56%; }
.editorial-figure .ef-workflow-note { display: block; margin-top: 13px; color: #8a93a3; font-size: 10px; line-height: 1.6; }
.editorial-figure .ef-flow-arrow { width: 20px; height: 16px; margin-top: 14px; color: #9caddc; }
html[dir="rtl"] .editorial-figure .ef-flow-arrow { transform: rotate(180deg); }
.editorial-figure .ef-workflow-baseline { display: flex; align-items: center; gap: 9px; margin-top: 27px; padding-top: 15px; border-top: 1px solid #edf0f5; color: #7e8a9f; font-size: 10px; line-height: 1.6; }
.editorial-figure .ef-workflow-baseline svg { width: 13px; height: 13px; color: #627ed3; }

/* The real fixed-dark workspace, shown in its two supported reading densities. */
.editorial-figure .ef-reading { min-height: 320px; }
.editorial-figure .ef-reading-layouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.editorial-figure .ef-reading-view { min-width: 0; }
.editorial-figure .ef-reading-label { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #48536a; font-size: 11px; line-height: 1.6; }
.editorial-figure .ef-reading-label i { width: 6px; height: 6px; border-radius: 50%; background: #6f85dd; }
.editorial-figure .ef-reading-frame { display: grid; grid-template-columns: 31px minmax(0, 1fr); min-height: 167px; overflow: hidden; border: 1px solid #32343a; border-radius: 6px; background: #111; }
.editorial-figure .ef-reading-sidebar { display: grid; align-content: start; justify-items: center; gap: 9px; padding: 15px 7px; border-inline-end: 1px solid #2b2b2b; background: #181818; }
.editorial-figure .ef-reading-sidebar i { display: block; width: 14px; height: 2px; background: #444; }
.editorial-figure .ef-reading-sidebar i:first-child { width: 10px; height: 10px; margin-bottom: 6px; border-radius: 3px; background: #6e7fae; }
.editorial-figure .ef-reading-page { display: grid; align-content: start; gap: 12px; padding: 17px 13px; }
.editorial-figure .ef-reading-page .ef-rule { height: 2px; background: #575961; }
.editorial-figure .ef-reading-page .ef-rule:first-child { width: 65%; height: 4px; margin-bottom: 6px; background: #b3b7c2; }
.editorial-figure .ef-reading-page .ef-rule:nth-child(4) { width: 80%; background: #6a7eb7; }
.editorial-figure .ef-reading-page .ef-rule:last-child { width: 63%; }
.editorial-figure .ef-reading-view--compact .ef-reading-page { gap: 7px; }
.editorial-figure .ef-reading-view--compact .ef-reading-page .ef-rule:first-child { margin-bottom: 3px; }
.editorial-figure .ef-reading-footnote { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 24px; color: #8892a3; font-size: 10px; line-height: 1.6; }
.editorial-figure .ef-language-marks { display: flex; align-items: center; gap: 8px; color: #7b89ae; font-size: 12px; }
.editorial-figure .ef-language-marks i { width: 1px; height: 10px; background: #dfe4ed; }
@media (max-width: 500px) {
  .editorial-figure .ef-workflow { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr); gap: 4px; }
  .editorial-figure .ef-workflow-label { display: block; min-height: 52px; }
  .editorial-figure .ef-step-number { display: block; margin-bottom: 3px; }
  .editorial-figure .ef-workflow-label strong { font-size: 10.5px; }
  .editorial-figure .ef-paper { height: 131px; padding: 18px 10px; gap: 10px; }
  .editorial-figure .ef-flow-arrow { width: 12px; margin-top: 26px; }
  .editorial-figure .ef-workflow-note { min-height: 32px; font-size: 9px; }
  .editorial-figure .ef-workflow-baseline { margin-top: 19px; }
  .editorial-figure .ef-reading-layouts { gap: 11px; }
  .editorial-figure .ef-reading-frame { grid-template-columns: 22px minmax(0, 1fr); min-height: 151px; }
  .editorial-figure .ef-reading-sidebar { padding-inline: 5px; }
  .editorial-figure .ef-reading-sidebar i { width: 11px; }
  .editorial-figure .ef-reading-page { padding-inline: 9px; gap: 11px; }
}
