/* BidEquity redesign: story 2, Shape, detailed (BEP-2310, 4 November 2026).
   The owner's Codex picture (details/story-two, its detailed version) 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-stage] (0 to 3) and [data-phase] are set by shape.js; the markup
   ships at the finished outcome for a visitor without the script. body.compact (below 851px) shows the
   moment's own column only, as Codex's narrow layout does. */

.icon-library{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}

.story-body{display:grid;grid-template-columns:minmax(220px,21%) minmax(0,1fr);gap:28px;padding:24px 0}
.board{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1.12fr) 28px minmax(0,1.12fr);align-items:stretch;min-height:690px}
/* the board keeps the longest moment's height, so the controls do not move; at laptop widths the outcome's
   two updated sections run longer */
@media (max-width:1350px){.board{min-height:750px}}

/* 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-head>span{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{transition:opacity 400ms var(--e)}

/* Today: the manual work */
.manual-task{display:flex;align-items:start;gap:10px;margin-bottom:8px;padding:10px 12px;border:1px solid var(--be-navy-500);border-radius:6px}
.manual-task>span{margin-top:2px;font-size:12px;font-weight:600;color:var(--be-terracotta)}
.manual-task strong{display:block;font-size:14px;font-weight:600;line-height:1.35;color:var(--be-sand)}
.manual-task p{margin-top:2px !important;font-size:14px;line-height:1.4;color:var(--be-navy-200)}
.category-index{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.category-index span{padding:4px 2px;border-bottom:1px solid var(--be-navy-500);font-size:12px;color:var(--be-bright-aqua)}
.manual-repeat{display:flex;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--be-navy-700)}
.manual-repeat .icon{width:21px;height:21px;color:var(--be-terracotta)}
.manual-repeat strong,.manual-repeat small{display:block}
.manual-repeat strong{font-size:14px;font-weight:600;color:var(--be-sand)}
.manual-repeat small{margin-top:2px;font-size:14px;line-height:1.4;color:var(--be-navy-200)}
.burden{margin-top:14px !important;font-size:14px;line-height:1.5;color:var(--be-navy-200)}

/* the arrows between the columns; a dot runs along one while its moment plays */
.connection{position:relative;display:flex;align-items:center;justify-content:center;color:var(--be-navy-300)}
.connection .icon{width:22px;height:22px}
.connection i{position:absolute;left:0;top:calc(50% - 3px);width:6px;height:6px;border-radius:50%;background:var(--be-bright-aqua);opacity:0}

/* AI platform: its three steps (Baseline, Coach, Options), each a button */
.build-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:16px}
.build-steps button{min-height:48px;padding:6px 4px;border:1px solid var(--be-navy-500);border-radius:6px;background:transparent;color:var(--be-navy-200);font-family:'Inter',sans-serif;font-size:14px;font-weight:500;line-height:1.3;cursor:pointer;transition:color 300ms var(--e),border-color 300ms var(--e),background-color 300ms var(--e)}
.build-steps button span{display:block;font-size:12px;font-weight:600}
.build-steps button:hover{border-color:var(--be-bright-aqua);color:var(--be-sand)}
.build-steps button.done{border-color:var(--be-bright-aqua);color:var(--be-bright-aqua)}
.build-steps button[aria-current]{background:var(--be-bright-aqua);border-color:var(--be-bright-aqua);color:var(--be-navy)}
/* the panels keep the tallest step's height, so the board does not move between steps */
.build-panels{min-height:560px}
.beat-heading>span{display:block;margin-bottom:6px;font-size:12px;font-weight:600;line-height:1.5;color:var(--be-bright-aqua)}
.beat-heading h3{font-family:'Spline Sans',sans-serif;font-weight:500;font-size:22px;line-height:1.2;letter-spacing:-.01em;color:var(--be-sand)}
.beat-heading p{margin-top:8px !important;font-size:14px;line-height:1.5;color:var(--be-navy-200)}
.source-input{display:flex;align-items:center;gap:10px;margin-top:16px;padding:10px 12px;border:1px solid var(--be-navy-500);border-radius:6px}
.source-input .icon{width:21px;height:21px;color:var(--be-bright-aqua)}
.source-input strong{display:block;font-size:14px;font-weight:500;line-height:1.35;color:var(--be-sand)}
.source-input small{display:block;margin-top:2px;font-size:12px;color:var(--be-navy-200)}
.assembly-path{position:relative;display:flex;align-items:center;justify-content:center;height:30px;color:var(--be-bright-aqua)}
.assembly-path span{font-size:18px}
.assembly-path i{position:absolute;left:calc(50% - 2px);top:0;width:4px;height:6px;border-radius:2px;background:var(--be-bright-aqua);opacity:0}
/* the 20 capture-plan sections, filled as evidence arrives; four stay as gaps */
.baseline-map{padding:12px;border:1px solid var(--be-bright-aqua);border-radius:6px}
.map-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.map-heading strong{font-size:14px;font-weight:500;color:var(--be-sand)}
.map-heading>span{font-size:12px;font-weight:600;white-space:nowrap;color:var(--be-bright-aqua)}
.section-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.baseline-tile{position:relative;display:block;height:38px;padding:4px 6px;border:1px solid var(--be-navy-500);border-radius:4px;opacity:.25;transition:opacity 300ms var(--e),border-color 300ms var(--e),background-color 300ms var(--e)}
.baseline-tile b{display:block;font-size:12px;font-weight:500;line-height:1;color:var(--be-navy-200)}
.baseline-tile i{display:block;width:80%;height:1px;margin-top:5px;background:var(--be-bright-aqua);opacity:0}
.baseline-tile i:last-child{width:50%;margin-top:3px}
.baseline-tile.assembled{opacity:1;border-color:var(--be-bright-aqua);background:var(--be-navy-700)}
.baseline-tile.assembled i{opacity:.8}
.baseline-tile.gap.assembled{border-color:var(--be-terracotta);border-style:dashed;background:transparent}
.baseline-tile.gap.assembled i{opacity:.2;background:var(--be-terracotta)}
.map-legend{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:10px;font-size:12px;color:var(--be-navy-200)}
.map-legend span{display:flex;align-items:center;gap:6px}
.map-legend i{width:10px;height:10px;border:1px solid var(--be-bright-aqua);border-radius:2px;background:var(--be-navy-700)}
.map-legend i.gap{border:1px dashed var(--be-terracotta);background:transparent}
.beat-caption{margin-top:16px !important;padding-top:12px;border-top:1px solid var(--be-navy-700);font-size:14px;line-height:1.5;color:var(--be-bright-aqua)}
/* Coach: the gap, why it matters, the coaching question and the team's answer */
.assessment-row{margin-top:16px;padding:10px 12px;border:1px solid var(--be-navy-500);border-radius:6px}
.assessment-row>span{display:block;margin-bottom:4px;font-size:12px;font-weight:600;color:var(--be-terracotta)}
.assessment-row>strong{display:block;font-size:14px;font-weight:500;line-height:1.45;color:var(--be-sand)}
.assessment-row.meaning{margin-top:8px}
.assessment-row.meaning>span{color:var(--be-bright-aqua)}
.coaching{margin-top:12px;padding:10px 12px;border-left:2px solid var(--be-bright-aqua);border-radius:0 6px 6px 0;background:var(--be-navy-700)}
.coaching>span,.team-choice>span{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--be-bright-aqua)}
.coaching .icon,.team-choice .icon{width:15px;height:15px}
.coaching>strong,.team-choice>strong{display:block;margin-top:6px;font-size:14px;font-weight:500;line-height:1.45;color:var(--be-sand)}
.response-prompt{margin-top:6px !important;font-size:12px;line-height:1.5;color:var(--be-navy-200)}
.team-choice{margin-top:12px;padding-top:10px;border-top:1px solid var(--be-navy-700)}
.team-choice>small{display:block;margin-top:4px;font-size:12px;line-height:1.5;color:var(--be-navy-200)}
/* Options: two strategies; the team selects one */
.strategy-option{margin-top:12px;padding:12px;border:1px solid var(--be-navy-500);border-radius:6px;transition:border-color 300ms var(--e),background-color 300ms var(--e)}
.strategy-option>span,.option-label>span{font-size:12px;font-weight:600;color:var(--be-bright-aqua)}
.strategy-option>strong{display:block;margin-top:6px;font-size:16px;font-weight:500;line-height:1.35;color:var(--be-sand)}
.strategy-option>p{margin-top:6px !important;font-size:14px;line-height:1.5;color:var(--be-navy-200)}
.option-label{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px}
.option-label>b{font-size:12px;font-weight:600;color:var(--be-bright-aqua)}
.strategy-option.selected{border-color:var(--be-bright-aqua);background:var(--be-navy-700)}

/* The outcome: new client information reaches two of the plan's sections */
.incoming{margin-bottom:10px;padding:10px 12px;border:1px solid var(--be-bright-aqua);border-radius:6px;background:var(--be-navy-700)}
.incoming span{display:block;font-size:12px;font-weight:600;color:var(--be-bright-aqua)}
.incoming strong{display:block;margin-top:4px;font-size:14px;font-weight:600;color:var(--be-sand)}
.update-scope{margin:0 0 12px !important;font-size:12px;line-height:1.5;color:var(--be-navy-200)}
.category-card{margin-bottom:8px;padding:10px 12px;border:1px solid var(--be-navy-500);border-radius:6px;transition:border-color 300ms var(--e)}
.category-name{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px;font-weight:600;line-height:1.35;color:var(--be-sand)}
.evidence-status{margin-left:auto;font-size:12px;font-weight:500;color:var(--be-navy-200)}
.category-card>p{margin-top:6px !important;font-size:14px;line-height:1.45;color:var(--be-navy-200)}
.insight{margin-top:8px;padding-top:8px;border-top:1px solid var(--be-navy-700)}
.insight span{display:block;font-size:12px;font-weight:600;color:var(--be-bright-aqua)}
.insight strong{display:block;margin-top:4px;font-size:14px;font-weight:400;line-height:1.45;color:var(--be-sand)}
.category-card.changed{border-color:var(--be-bright-aqua)}
.category-card.changed .evidence-status{color:var(--be-bright-aqua)}

/* The output: the capture plan, a sand sheet with navy words */
.plan-pending{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;min-height:360px;padding:28px 18px;border:1px dashed var(--be-navy-500);border-radius:6px}
.plan-pending>.icon{width:36px;height:36px;color:var(--be-bright-aqua)}
.plan-pending>strong{font-family:'Spline Sans',sans-serif;font-weight:500;font-size:22px;color:var(--be-sand)}
.plan-pending>p{font-size:14px;line-height:1.6;color:var(--be-navy-200)}
.capture-paper{padding:14px;border-radius:6px;background:var(--be-sand);color:var(--be-navy)}
.paper-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.paper-top strong{font-family:'Spline Sans',sans-serif;font-weight:500;font-size:22px}
.paper-top span{padding:2px 8px;border:1px solid var(--be-navy-200);border-radius:6px;font-size:12px;font-weight:600;color:var(--be-navy-500)}
.pursuit-name{margin-top:4px !important;font-size:14px;color:var(--be-navy-500)}
.strategy{margin-top:12px;padding:10px 0;border-top:1px solid var(--be-navy-100);border-bottom:1px solid var(--be-navy-100)}
.strategy span{display:block;font-size:12px;font-weight:600;color:var(--be-navy-500)}
.strategy strong{display:block;margin-top:4px;font-size:14px;font-weight:500;line-height:1.45}
.plan-action{display:flex;align-items:start;gap:10px;min-height:68px;padding:12px 0;border-bottom:1px solid var(--be-navy-100);transition:background-color 300ms var(--e)}
.action-number{padding-top:2px;font-size:12px;font-weight:600;color:var(--be-navy-500)}
.plan-action strong{display:block;font-size:14px;font-weight:500;line-height:1.4}
.plan-action small{display:block;margin-top:4px;font-size:12px;line-height:1.4;color:var(--be-navy-500)}
.plan-action em{display:block;margin-top:6px;font-size:12px;font-weight:600;font-style:normal;color:var(--be-navy)}
.plan-action.revised{margin:0 -8px;padding:10px 8px;border-radius:4px;background:var(--be-pale-aqua)}
.plan-status{margin-top:12px;font-size:12px;line-height:1.5;color:var(--be-navy-500)}
.plan-purpose{margin:12px 2px 0;font-size:14px;font-weight:500;color:var(--be-bright-aqua)}
.plan-purpose small{display:block;margin-top:4px;font-size:12px;font-weight:400;line-height:1.5;color:var(--be-navy-200)}

/* the moments: what is dimmed, what is marked */
#story[data-stage="0"] .ai-lane .lane-body,#story[data-stage="0"] .output-lane .lane-body,#story[data-stage="1"] .output-lane .lane-body{opacity:.35}
#story:not([data-stage="0"]) .today-lane .lane-body{opacity:.45}
#story[data-stage="0"] .today-lane,#story[data-stage="1"] .ai-lane,#story[data-stage="2"] .output-lane,#story[data-stage="3"] .ai-lane,#story[data-stage="3"] .output-lane{border-top-color:var(--be-bright-aqua)}

/* ---------- responsive ---------- */
/* a laptop narrower than the board needs: the narration sits above the picture */
@media (min-width:851px) and (max-width:1100px){
  .story-body{grid-template-columns:minmax(0,1fr)}
  .narrative{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:8px 28px;align-content:start;min-height:184px}
  .board{min-height:790px}
  .narrative .count{grid-column:1/-1}
  .narrative .headline{margin-top:0 !important}
  .narrative .narration{margin-top:0 !important;align-self:center;max-width:none}
}
/* a phone or a small tablet (body.compact): the moment's own column alone */
.compact .story-body{display:block;padding:16px 0}
.compact .narrative .narration{max-width:none}
.compact .board{display:block;min-height:0;margin-top:16px}
.compact .connection{display:none}
.compact .lane{width:100%}
.compact .build-panels{min-height:520px}
.compact #story[data-stage="0"] .ai-lane,.compact #story[data-stage="0"] .output-lane,
.compact #story[data-stage="1"] .today-lane,.compact #story[data-stage="1"] .output-lane,
.compact #story[data-stage="2"] .today-lane,.compact #story[data-stage="2"] .ai-lane,
.compact #story[data-stage="3"] .today-lane{display:none}
.compact #story[data-stage="3"]:not([data-phase="revised"]) .output-lane{display:none}
.compact #story[data-stage="3"][data-phase="revised"] .ai-lane{display:none}
.compact #story .lane-body{opacity:1}
/* without the script there is no body.compact: below 851px every column shows, one under another */
@media (max-width:850px){
  .story-body{display:block;padding:16px 0}
  .board{display:block;min-height:0;margin-top:16px}
  .connection{display:none}
  .lane+.connection+.lane{margin-top:24px}
  .narrative .narration{max-width:none}
}
