/* BidEquity redesign: story 1, Identify, detailed (BEP-2310, 4 November 2026).
   The owner's Codex picture (details/story-one) on the site's rules: the three columns open with a top rule,
   aqua while their moment plays, instead of boxed lanes; cards and controls take 6px corners; text 12px and over.
   #story[data-beat] (0 Today, 1 AI platform, 2 The output, 3 The outcome) is set by identify.js; the markup
   ships at beat 3, the finished story, for a visitor without the script. */

.story-body{display:grid;grid-template-columns:minmax(220px,23%) minmax(0,1fr);gap:28px;padding:24px 0}
/* the picture keeps the longest moment's height, so the controls do not move between moments */
.flow{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1.16fr);align-items:stretch;min-height:580px}

/* the three columns */
.lane{min-width:0;border-top:2px solid var(--be-navy-500);transition:border-color 400ms var(--e)}
.lane-head{display:flex;align-items:baseline;gap:10px;min-height:64px;padding:12px 0 10px}
.lane-icon{flex:none;font-size:12px;font-weight:600;color:var(--be-bright-aqua)}
.lane-head strong,.lane-head small{display:block}
.lane-head strong{font-size:14px;font-weight:600;line-height:1.35;color:var(--be-sand)}
.lane-head small{margin-top:2px;font-size:12px;line-height:1.4;color:var(--be-navy-200)}
.lane-body{position:relative;transition:opacity 400ms var(--e)}

/* the three tasks, in both the Today and the AI platform columns */
.task{display:flex;align-items:center;gap:10px;min-height:68px;margin-bottom:8px;padding:10px 12px;border:1px solid var(--be-navy-500);border-radius:6px;transition:opacity 400ms var(--e),border-color 400ms var(--e)}
.task-icon{flex:none;width:16px;font-size:18px;line-height:1;text-align:center;color:var(--be-bright-aqua)}
.task strong,.task small{display:block}
.task strong{font-size:14px;font-weight:600;line-height:1.35;color:var(--be-sand)}
.task small{margin-top:2px;font-size:14px;line-height:1.4;color:var(--be-navy-200)}
.lane-caption,.current-gap{margin-top:14px !important;font-size:14px;line-height:1.5;color:var(--be-navy-200)}
.current-gap{padding-top:12px;border-top:1px solid var(--be-navy-700);color:var(--be-sand)}
#story:not([data-beat="0"]) .current-gap{display:none}

/* the worked example and the context the platform brings to it */
.signal{margin-top:14px;padding-top:12px;border-top:1px solid var(--be-navy-700)}
.signal>span{font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--be-bright-aqua)}
.signal>strong,.signal>small{display:block;margin-top:4px}
.signal>strong{font-size:14px;font-weight:600;line-height:1.35;color:var(--be-sand)}
.signal>small{min-height:40px;font-size:14px;line-height:1.4;color:var(--be-navy-200)}
.context-inputs{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.context-inputs span{padding:4px 8px;border:1px solid var(--be-navy-500);border-radius:6px;font-size:12px;line-height:1.4;color:var(--be-bright-aqua)}

/* the arrows between the columns; a label runs along one while its moment plays */
.connection{position:relative;display:flex;align-items:center;justify-content:center;color:var(--be-navy-300)}
.connector-line{width:100%;height:1px;background:var(--be-navy-500)}
.arrow{position:absolute;right:0;padding-left:2px;background:var(--be-navy);font-size:18px;line-height:1}
.moving-token,.moving-profile{position:absolute;z-index:3;padding:4px 8px;border-radius:6px;background:var(--be-bright-aqua);color:var(--be-navy);font-size:12px;font-weight:600;white-space:nowrap;opacity:0}

/* the opportunity profile: a sand sheet with navy words */
.profile{padding:14px;border-radius:6px;background:var(--be-sand);color:var(--be-navy)}
.profile-label{display:block;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--be-navy-700)}
.profile>strong{display:block;margin-top:4px;font-family:'Spline Sans',sans-serif;font-weight:500;font-size:18px;line-height:1.3}
.profile-detail{margin-top:8px;padding-top:8px;border-top:1px solid var(--be-navy-100)}
.field-label{display:block;font-size:12px;font-weight:600;color:var(--be-navy-500)}
.profile p{margin-top:2px !important;font-size:14px;line-height:1.45}
.score{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600;color:var(--be-navy-500)}
.score strong{padding:2px 8px;border-radius:6px;background:var(--be-pale-aqua);color:var(--be-navy);font-size:12px}
.profile-evidence{font-size:12px;line-height:1.5;color:var(--be-navy-500)}
.profile-compact{display:none}

/* the outcome: the other signals and what each becomes */
.wider-outputs{display:none;margin-top:4px}
.output-card{padding:8px 0;border-bottom:1px solid var(--be-navy-700)}
.output-card span,.output-card strong,.output-card small{display:block}
.output-card span{margin-bottom:2px;font-size:12px;font-weight:600;color:var(--be-bright-aqua)}
.output-card strong{font-size:14px;font-weight:600;line-height:1.35;color:var(--be-sand)}
.output-card small{margin-top:2px;font-size:14px;line-height:1.4;color:var(--be-navy-200)}
.decision-summary{margin-top:10px;padding-top:10px;border-top:1px solid var(--be-navy-700)}
.decision-summary strong,.decision-summary span{display:block}
.decision-summary strong{font-size:14px;font-weight:600;color:var(--be-sand)}
.decision-summary span{margin-top:4px;font-size:12px;font-weight:500;color:var(--be-bright-aqua)}

/* the moments: what is dimmed, what is marked */
#story[data-beat="0"] .platform-lane .lane-body,#story[data-beat="0"] .decision-lane .lane-body,#story[data-beat="1"] .decision-lane .lane-body{opacity:.35}
#story[data-beat="0"] .manual-assemble{opacity:.65}
#story:not([data-beat="0"]) .manual-search,#story:not([data-beat="0"]) .manual-triage{opacity:.45}
#story:not([data-beat="0"]) .manual-assemble,#story:not([data-beat="0"]) .platform-lane .task{border-color:var(--be-bright-aqua)}
#story[data-beat="0"] .person-lane,#story[data-beat="1"] .platform-lane,#story[data-beat="2"] .decision-lane,#story[data-beat="3"] .decision-lane{border-top-color:var(--be-bright-aqua)}
#story[data-beat="3"] .profile-detail,#story[data-beat="3"] .profile>strong{display:none}
#story[data-beat="3"] .profile-compact,#story[data-beat="3"] .wider-outputs{display:block}
#story[data-beat="3"] .profile-compact{margin-top:6px;font-size:14px;line-height:1.45}
#story[data-beat="3"] .context-inputs{visibility:hidden}

/* a task carried from the Today column to the AI platform column (identify.js, at AI platform); no shadow */
.task-ghost{position:fixed;z-index:20;margin:0;background:var(--be-navy);border-color:var(--be-bright-aqua);color:var(--be-sand);pointer-events:none}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .story-body{grid-template-columns:minmax(0,1fr);gap:20px}
  /* the narration above the picture keeps the longest moment's height */
  .explanation{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:32px;align-items:end;min-height:132px}
  .explanation .narration{margin-top:0 !important;max-width:none}
}
@media (max-width:700px){
  .explanation{display:block;min-height:0}
  .explanation .narration{margin-top:12px !important}
  .flow{grid-template-columns:minmax(0,1fr);min-height:0}
  .connection{height:32px}
  .connector-line{width:1px;height:100%}
  .arrow{right:auto;padding:2px 0 0;transform:rotate(90deg)}
  .task{min-height:56px}
}
@media (prefers-reduced-motion:reduce){
  .task-ghost{display:none}
}
