/* Native editorial figures: layout and data are illustrative, not model benchmarks. */
.ef-context,
.ef-rhythm,
.ef-sources {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 350px;
  padding: 28px;
  aspect-ratio: 16 / 9;
}
.ef-context *, .ef-rhythm *, .ef-sources * { box-sizing: border-box; }
.ef-context .ef-topline,
.ef-rhythm .ef-topline,
.ef-sources .ef-topline { flex: none; margin-bottom: 26px; }
.ef-context-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); align-items: center; flex: 1; gap: 25px; min-width: 0; }
.ef-context-document { min-width: 0; padding-inline-end: 25px; border-inline-end: 1px solid #e4e8ef; }
.ef-context-label { display: block; margin-bottom: 16px; color: #667386; font-size: 10px; font-weight: 500; line-height: 1.6; letter-spacing: .045em; }
.ef-context-document p { margin: 0; color: #7c8696; font: 400 12px/1.85 "DM Sans", system-ui, sans-serif; overflow-wrap: anywhere; }
.ef-context-document p + p { margin-top: 15px; }
.ef-context-document .ef-context-selected { margin-inline: -11px; padding: 8px 11px; border-inline-start: 2px solid #4b78d0; color: #274f96; background: #edf3ff; }
.ef-context-note { position: relative; min-width: 0; padding-block: 13px; }
.ef-context-note::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 28px; height: 2px; background: #4b78d0; }
.ef-context-note .ef-context-label { margin-bottom: 9px; }
.ef-context-note strong { display: block; margin-bottom: 8px; color: #26384d; font-size: 14px; font-weight: 500; line-height: 1.55; }
.ef-context-note p { margin: 0; color: #697789; font-size: 11.5px; line-height: 1.8; overflow-wrap: anywhere; }
.ef-context-key { display: flex; flex-wrap: wrap; gap: 9px 21px; margin-top: 24px; color: #7b8798; font-size: 9.5px; line-height: 1.7; }
.ef-context-key > span { display: inline-flex; align-items: center; gap: 7px; }
.ef-context-key i { flex: none; width: 14px; height: 3px; background: #cbd3df; }
.ef-context-key > span:first-child i { background: #4b78d0; }

.ef-rhythm-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; flex: 1; gap: 32px; min-width: 0; }
.ef-rhythm-panel { display: flex; flex-direction: column; min-width: 0; }
.ef-rhythm-panel h3 { min-height: 2.8em; margin: 0 0 15px; color: #46546a; font: 500 12px/1.5 "DM Sans", system-ui, sans-serif; letter-spacing: 0; overflow-wrap: anywhere; }
.ef-rhythm-bars { display: grid; align-content: center; gap: 12px; min-height: 180px; flex: 1; padding: 8px 12px 8px 0; border-inline-start: 1px solid #dce3ec; background: repeating-linear-gradient(to right, transparent 0, transparent calc(25% - 1px), #edf0f5 calc(25% - 1px), #edf0f5 25%); }
.ef-rhythm-bar { display: block; width: 78%; height: 10px; background: #bec9da; border-radius: 0 2px 2px 0; }
.ef-rhythm-panel--varied .ef-rhythm-bar { background: #4a77d1; }
.ef-rhythm-panel--varied .ef-rhythm-bar:nth-child(1) { width: 95%; }
.ef-rhythm-panel--varied .ef-rhythm-bar:nth-child(2) { width: 43%; }
.ef-rhythm-panel--varied .ef-rhythm-bar:nth-child(3) { width: 73%; }
.ef-rhythm-panel--varied .ef-rhythm-bar:nth-child(4) { width: 56%; }
.ef-rhythm-panel--varied .ef-rhythm-bar:nth-child(5) { width: 86%; }
.ef-rhythm-panel--varied .ef-rhythm-bar:nth-child(6) { width: 35%; }
.ef-rhythm-panel--varied .ef-rhythm-bar:nth-child(7) { width: 67%; }
.ef-rhythm-panel--varied .ef-rhythm-bar:nth-child(8) { width: 91%; }
.ef-rhythm-footnote { display: grid; gap: 4px; margin-top: 21px; color: #778396; font-size: 10px; line-height: 1.7; }
.ef-rhythm-footnote span:first-child { color: #52647e; }

.ef-sources-flow { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr); align-items: stretch; flex: 1; gap: 8px; min-width: 0; }
.ef-source-step { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 20px 15px; border: 1px solid #e1e6ef; border-radius: 4px; background: #fff; }
.ef-source-number { display: block; margin-bottom: 24px; color: #98a3b3; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.ef-source-step h3 { margin: 0 0 13px; color: #46546a; font: 500 11px/1.5 "DM Sans", system-ui, sans-serif; letter-spacing: 0; overflow-wrap: anywhere; }
.ef-source-step p { margin: 0; color: #657388; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.ef-source-step--decision { border-color: #bfd0ee; background: #f7faff; }
.ef-source-step--decision h3 { color: #315fa9; }
.ef-source-connector { display: flex; align-items: center; justify-content: center; color: #9baac1; }
.ef-source-connector svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.ef-sources-note { margin: 22px 0 0; color: #778396; font-size: 10px; line-height: 1.7; }
.ef-sources:dir(rtl) .ef-source-connector svg { transform: scaleX(-1); }
.ef-rhythm:dir(rtl) .ef-rhythm-bars { padding-inline: 0 12px; background: repeating-linear-gradient(to left, transparent 0, transparent calc(25% - 1px), #edf0f5 calc(25% - 1px), #edf0f5 25%); }
.ef-rhythm:dir(rtl) .ef-rhythm-bar { border-radius: 2px 0 0 2px; }

@media (max-width: 600px) {
  .ef-context, .ef-rhythm, .ef-sources { min-height: 0; padding: 22px; aspect-ratio: auto; }
  .ef-context .ef-topline, .ef-rhythm .ef-topline, .ef-sources .ef-topline { margin-bottom: 22px; }
  .ef-context-body { gap: 21px; }
  .ef-context-document { padding-inline-end: 19px; }
  .ef-context-key { margin-top: 21px; }
  .ef-rhythm-panels { gap: 22px; }
  .ef-rhythm-bars { min-height: 165px; gap: 11px; padding-inline-end: 9px; }
  .ef-rhythm-bar { height: 9px; }
  .ef-rhythm-footnote { margin-top: 18px; }
  .ef-source-step { padding: 17px 12px; }
  .ef-sources-note { margin-top: 20px; }
}
@media (max-width: 520px) {
  .ef-context-body { grid-template-columns: 1fr; gap: 21px; }
  .ef-context-document { padding-inline-end: 0; padding-bottom: 22px; border-inline-end: 0; border-bottom: 1px solid #e4e8ef; }
  .ef-context-document p { font-size: 12px; }
  .ef-context-note { padding-bottom: 0; }
  .ef-context-note p { max-width: 330px; font-size: 12px; }
  .ef-context-key { padding-top: 17px; border-top: 1px solid #e4e8ef; font-size: 10px; }
  .ef-rhythm-panels { gap: 18px; }
  .ef-rhythm-panel h3 { min-height: 4.5em; font-size: 11px; }
  .ef-rhythm-bars { min-height: 155px; gap: 10px; }
  .ef-sources-flow { grid-template-columns: 1fr; gap: 9px; }
  .ef-source-step { display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: baseline; gap: 4px 11px; padding: 17px; }
  .ef-source-number { grid-row: 1 / 3; margin: 0; }
  .ef-source-step h3 { margin-bottom: 3px; font-size: 12px; }
  .ef-source-step p { grid-column: 2; font-size: 12px; }
  .ef-source-connector { height: 15px; padding-inline-start: 5px; }
  .ef-source-connector svg { transform: rotate(90deg); }
  .ef-sources:dir(rtl) .ef-source-connector svg { transform: rotate(90deg); }
}
@media (max-width: 360px) {
  .ef-context, .ef-rhythm, .ef-sources { padding: 18px; }
  .ef-rhythm-panels { gap: 15px; }
  .ef-context-key { gap: 7px 14px; }
}
