/* Theme-native Workflow Story. The unenhanced layout remains a readable sequence. */
.workflow-story { --wf-accent: #134254; --wf-surface: #fff; --wf-soft: #eaf2ed; --wf-border: #cfdfd4; --wf-copy: #526771; color: #16313d; background: #f2f7f3; }
.workflow-story.wf-tone-dark { --wf-accent: #c9ec90; --wf-surface: #173a46; --wf-soft: #224b57; --wf-border: #42636c; --wf-copy: #c1d1d4; color: #fff; background: #0c2935; }
.workflow-story .wf-inner { max-width: 1240px; width: calc(100% - 96px); margin-inline: auto; padding-block: 85px; }
.workflow-story .wf-heading { max-width: 850px; margin-bottom: 40px; }
.workflow-story .eyebrow { color: var(--wf-accent); margin: 0 0 20px; font-size: .7rem; font-weight: 800; letter-spacing: .15em; }
.workflow-story h2 { margin: 0; font-size: clamp(2rem,3.6vw,3.3rem); line-height: 1.14; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.workflow-story .section-lead { margin: 22px 0 0; color: var(--wf-copy); max-width: 760px; font-size: 1rem; }
.wf-example { margin: 20px 0 0; font-size: .76rem; color: var(--wf-copy); border-left: 3px solid var(--wf-border); padding: 4px 0 4px 14px; }
.wf-step { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 55px; align-items: start; margin-bottom: 40px; }
.wf-visual { min-width: 0; text-align: center; }
.wf-role { font-size: .83rem; font-weight: 700; color: var(--wf-accent); min-height: 38px; margin: 0 0 8px; }
.wf-phone { width: min(300px,100%); padding: 6px; margin-inline: auto; background: #102d38; border: 1px solid #3d5961; border-radius: 23px; box-shadow: 0 14px 30px #0c29351a; }
.wf-phone-screen { position: relative; aspect-ratio: 9 / 19; border-radius: 16px; overflow: hidden; background: #f8fbf9; }
.wf-image-view, .wf-screenshot, .wf-phone-screen video { width: 100%; height: 100%; }
.wf-screenshot { display: block; object-fit: contain; }
.wf-phone-screen video { display: block; object-fit: contain; background: #102d38; }
.wf-placeholder { height: 100%; padding: 25px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #426252; background: #edf4ef; }
.wf-placeholder-icon { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.6rem; border: 1px solid #c6d8cc; border-radius: 10px; margin-bottom: 12px; }
.wf-placeholder p { margin: 0; font-size: .86rem; line-height: 1.6; }
.wf-placeholder small { font-size: .67rem; line-height: 1.5; margin-top: 14px; color: #526771; }
.wf-copy { min-width: 0; border-bottom: 1px solid var(--wf-border); }
.workflow-story button { font-family: inherit; cursor: pointer; }
.workflow-story button:focus-visible { outline: 3px solid #367988; outline-offset: 4px; }
.wf-tone-dark button:focus-visible { outline-color: #c9ec90; }
.wf-select { width: 100%; min-height: 64px; padding: 14px 16px; display: flex; gap: 16px; align-items: center; text-align: left; color: inherit; background: transparent; border: 0; border-radius: 9px; font-size: .97rem; font-weight: 600; line-height: 1.45; }
.wf-number { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; font-size: .74rem; border: 1px solid var(--wf-border); border-radius: 50%; color: var(--wf-accent); }
.wf-description { padding: 0 16px 22px 64px; color: var(--wf-copy); font-size: .89rem; line-height: 1.75; }
.wf-description p { margin: 0; }
.wf-media-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.wf-media-actions button { display: none; }
.wf-enhanced .wf-media-actions button { display: inline-block; }
.wf-media-actions button { color: var(--wf-accent); border: 1px solid var(--wf-border); background: transparent; border-radius: 7px; font-size: .73rem; padding: 10px 13px; min-height: 44px; }
.wf-media-actions noscript video { width: 100%; }
.wf-navigation { display: none; }
.wf-cta { margin-top: 35px; }
.wf-tone-dark .wf-cta .wp-block-button__link { background: #c9ec90; color: #134254; }
.wf-admin-note, .wf-editor-note { padding: 15px 18px; margin-top: 28px; background: #f7f1e2; border: 1px solid #d8c79b; border-radius: 8px; color: #5b4c27; font-size: .79rem; }
.wf-enhanced .wf-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: repeat(var(--wf-total),minmax(64px,auto)); gap: 0 55px; min-height: 640px; }
.wf-enhanced .wf-step { display: contents; }
.wf-enhanced .wf-visual { grid-column: 1; grid-row: 1 / span var(--wf-total); }
.wf-enhanced .wf-copy { grid-column: 2; grid-row: var(--wf-row); align-self: start; }
.wf-enhanced .wf-copy.is-active .wf-select { color: var(--wf-accent); background: var(--wf-soft); }
.wf-enhanced .wf-copy.is-active .wf-number { background: var(--wf-accent); color: var(--wf-surface); border-color: var(--wf-accent); }
.wf-enhanced .wf-select:hover { background: var(--wf-soft); }
.wf-enhanced .wf-media-actions { display: flex; min-height: var(--wf-actions-height,0px); }
.wf-enhanced .wf-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 0 0 calc(50% + 27.5px); }
.wf-progress { margin: 0; color: var(--wf-copy); font-size: .78rem; }
.wf-nav-buttons { display: flex; gap: 10px; }
.wf-nav-buttons button { min-width: 80px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--wf-border); border-radius: 7px; background: var(--wf-surface); color: var(--wf-accent); font-weight: 600; font-size: .85rem; }
.wf-nav-buttons button:disabled { opacity: .42; cursor: default; }
.wf-zoom { padding: 18px; border: 1px solid #cfdfd4; border-radius: 12px; max-width: calc(100vw - 30px); max-height: calc(100dvh - 30px); width: min(900px,calc(100vw - 30px)); color: #16313d; background: white; }
.wf-zoom::backdrop { background: #0c2935c7; }
.wf-zoom-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 15px; }
.wf-zoom h2 { font-size: 1rem; margin: 0; line-height: 1.4; }
.wf-zoom-close { min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid #c6d8cc; border-radius: 7px; color: #134254; background: #edf4ef; font-family: inherit; cursor: pointer; }
.wf-zoom-close:focus-visible { outline: 3px solid #367988; outline-offset: 3px; }
.wf-zoom-image { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.wf-zoom-image.is-actual-size { max-width: none; }
.wf-zoom-image-wrap { overflow: auto; max-height: calc(100dvh - 145px); }
.workflow-story [hidden] { display: none !important; }
.wf-device-desktop .wf-phone { width: 100%; padding: 0 5px 5px; border-radius: 12px; }
.wf-browser-bar { display: flex; align-items: center; gap: 5px; height: 24px; padding-left: 8px; }
.wf-browser-bar span { width: 5px; height: 5px; border-radius: 50%; background: #83999e; }
.wf-device-desktop .wf-phone-screen { aspect-ratio: 16 / 10; border-radius: 5px; }
.wf-device-desktop.wf-enhanced .wf-layout { min-height: 420px; }
/* The editor exposes all steps for text/media editing and native block movers. */
.wf-editor-parent { padding: 28px; border: 1px solid #cfdfd4; border-radius: 12px; }
.wf-editor-parent .wf-heading { margin-bottom: 25px; }
.wf-editor-step { border: 1px solid #cfdfd4; background: #fff; padding: 22px; border-radius: 10px; color: #16313d; margin-block: 18px; }
.wf-editor-step h3 { font-size: 1.1rem; margin-block: 0 18px; }
.wf-editor-role-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wf-editor-image { display: block; max-height: 300px; width: auto; max-width: 100%; object-fit: contain; margin-block: 15px; }
.wf-editor-media-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-block: 16px; }
.wf-editor-step .components-base-control { margin-bottom: 15px; }
@media (max-width: 1100px) {
 .workflow-story .wf-inner { width: calc(100% - 64px); }
 .wf-enhanced .wf-layout { gap: 0 35px; }
 .wf-enhanced .wf-navigation { margin-left: calc(50% + 17.5px); }
}
@media (max-width: 781px) {
 .workflow-story .wf-inner { width: calc(100% - 40px); padding-block: 50px; }
 .workflow-story .wf-heading { margin-bottom: 28px; }
 .wf-step { grid-template-columns: 1fr; gap: 20px; margin-bottom: 35px; }
 .wf-phone { width: min(220px,100%); padding: 4px; border-radius: 18px; box-shadow: 0 8px 20px #0c293518; }
 .wf-phone-screen { border-radius: 13px; }
 .wf-role { min-height: 44px; margin-bottom: 12px; font-size: .79rem; }
 .wf-enhanced .wf-layout { display: flex; flex-direction: column; min-height: 0; }
 .wf-device-desktop.wf-enhanced .wf-layout { min-height: 0; }
 .wf-enhanced .wf-copy:not(.is-active) { display: none; }
 .wf-enhanced .wf-copy.is-active { margin-top: 20px; }
 .wf-description { min-height: 160px; padding: 5px 8px 20px 16px; }
 .wf-select { padding-inline: 12px; min-height: 80px; cursor: default; }
 .wf-enhanced .wf-navigation { margin: 16px 0 0; gap: 12px; }
 .wf-nav-buttons button { min-width: 73px; padding-inline: 13px; }
 .wf-placeholder { padding: 18px; }
 .wf-editor-role-fields { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
 .workflow-story *, .wf-zoom * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
/* Optional screen variants retain the original single-screen story contract. */
.wf-screen-panel { margin-bottom: 20px; }
.wf-screen-panel.wf-screen-desktop .wf-phone { width:100%; padding:0 5px 5px; border-radius:12px; }
.wf-screen-panel.wf-screen-desktop .wf-phone-screen { aspect-ratio:16/10; border-radius:5px; }
.wf-screen-panel.wf-screen-phone .wf-phone { width:min(300px,100%); padding:6px; border-radius:23px; }
.wf-screen-panel.wf-screen-phone .wf-phone-screen { aspect-ratio:9/19; border-radius:16px; }
.wf-screen-caption { margin:12px 0 0!important; font-size:.76rem; color:var(--wf-copy); }
.wf-screen-switch { display:none; }
.wf-enhanced .wf-screen-switch { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:16px; }
.wf-screen-switch button { min-height:44px; padding:10px 14px; border:1px solid var(--wf-border); background:var(--wf-surface); color:var(--wf-accent); border-radius:7px; font:600 .8rem inherit; }
.wf-screen-switch button[aria-pressed="true"] { background:var(--wf-accent); color:var(--wf-surface); }
.wf-image-stage { position:relative; width:100%; height:100%; }
.wf-hotspot { display:none; position:absolute; transform:translate(-50%,-50%); width:44px; height:44px; border:2px solid white; border-radius:50%; background:#134254; color:white; box-shadow:0 0 0 2px #134254; font-size:20px; }
.wf-enhanced .wf-hotspot:not(:disabled) { display:block; }
.wf-screen-detail:not(:empty) { margin-top:14px!important; border-left:2px solid var(--wf-border); padding-left:12px; }
.wf-closing { margin-top:32px!important; max-width:720px; font-size:1.1rem; font-weight:600; }
.wf-editor-screen { margin-block:20px; padding:18px; border:1px solid #cfdfd4; }
@media(max-width:781px){.wf-screen-panel.wf-screen-phone .wf-phone{width:min(220px,100%);padding:4px;border-radius:18px}.wf-screen-panel.wf-screen-phone .wf-phone-screen{border-radius:13px}}
.wf-enhanced .wf-screens { min-height:680px; }
@media(max-width:781px){.wf-enhanced .wf-screens{min-height:505px}}
