.workflow-example { margin: 1rem 0; padding: 0; border: 0; min-inline-size: 0; }
.workflow-example legend { font-size: .88rem; font-weight: 650; padding: 0; color: var(--ink-secondary); }
.example-switch { display: inline-flex; margin: .45rem 0 .65rem; padding: 3px; gap: 2px; border: 1px solid var(--line); background: var(--surface-subtle); border-radius: 10px; }
.example-switch label { position: relative; cursor: pointer; }
.example-switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.example-switch span { display: block; padding: .68rem .85rem; min-height: 44px; color: var(--ink-secondary); font: 600 .85rem/1.35 system-ui,sans-serif; border-radius: 7px; }
.example-switch input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px #24203425; }
.example-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.workflow-example figure { margin: 0; }
.workflow-example .example-before, .workflow-example:has(input[value=before]:checked) .example-after { display: none; }
.workflow-example:has(input[value=before]:checked) .example-before { display: block; }
.example-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(13rem, 28vw, 22rem); background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.example-stage a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-width: 0; cursor: zoom-in; }
.example-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.example-pair { padding: 10px; gap: 8px; }
.example-pair a:first-child { flex: 0 1 36%; }
.example-pair a:last-child { flex: 1; }
.workflow-example figcaption { margin: .5rem 0 0; font-size: .85rem; line-height: 1.45; color: var(--ink-secondary); }
.workflow-example samp { margin-left: .5em; color: var(--ink); user-select: all; }
.example-extra { margin: .8rem 0 1rem; }
.example-extra summary { cursor: pointer; color: var(--accent); font-weight: 600; }
@media (forced-colors:active) { .example-switch input:checked + span { outline: 2px solid Highlight; } }
