/* BidEquity redesign: story 3, Learn, detailed (BEP-2310, 4 November 2026).
   The picture of the accepted decisions, traceability and learning story, drawn in stories 1 and 2's grammar: three
   columns that open with a top rule, aqua while their moment plays; cards and controls take 6px corners; text 12px
   and over; the record, the lesson and the memory are sand sheets with navy words. #story[data-beat] (0 to 6, one per
   accepted beat, then 7, the finale) is set by learn.js; the markup ships at the finale for a visitor without the
   script. In the finale the first two columns rest, dimmed, and the memory and its guidance hold the frame.
   body.compact (below 851px) shows the moment's own column only, as story 2 does. Every transition sits inside the
   no-preference block at the end, so with reduced motion nothing here moves. */

.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}
/* the board keeps the longest moment's height, so the controls do not move */
.board{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1.12fr) 28px minmax(0,1.12fr);align-items:stretch;min-height:660px}
@media (max-width:1350px){.board{min-height:700px}}

/* eight moments, one button each */
.steps{grid-template-columns:repeat(8,minmax(0,1fr))}

/* the three columns */
.lane{min-width:0;border-top:2px solid var(--be-navy-500)}
.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)}

/* 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}

/* ---------- 01 the pursuit record: a sand sheet with navy words ---------- */
.record-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:20px;line-height:1.25}
.pursuit-name{margin-top:4px !important;font-size:14px;color:var(--be-navy-500)}
.record-kinds{margin-top:6px !important;font-size:12px;line-height:1.5;color:var(--be-navy-500)}
.strategy{margin-top:10px;padding:8px 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:2px;font-size:14px;font-weight:500;line-height:1.4}
.record-rows{margin:0;padding:0;list-style:none}
.record-row{padding:7px 0 7px 10px;border-bottom:1px solid var(--be-navy-100);border-left:3px solid transparent}
.record-row span,.record-row strong{display:block}
.record-row span{font-size:12px;font-weight:600;line-height:1.4;color:var(--be-navy-500)}
.record-row b{margin-left:6px;padding:0 6px;border-radius:6px;background:var(--be-navy);color:var(--be-sand);font-size:12px;font-weight:600}
.record-row strong{margin-top:1px;font-size:14px;font-weight:500;line-height:1.4}
/* the decision being asked about: a fill and the word Selected */
.record-row.selected{border-radius:4px;background:var(--be-pale-aqua);border-left-color:var(--be-navy)}
/* the feedback and the earlier discussion it connects to: a navy rule and the word Connected */
.record-row.linked{border-left-color:var(--be-navy)}
/* from moment 3 the entries from stories 1 and 2 fold to their names, so what is added since stays in view */
.record-paper.folded .record-kinds{display:none}
.record-paper.folded .record-rows{padding-top:4px}
.record-paper.folded .record-row.past{display:inline-block;margin:4px 4px 2px 0;padding:2px 8px;border:1px solid var(--be-navy-200);border-radius:6px}
.record-paper.folded .record-row.past strong{display:none}
.record-paper.folded .record-row.past+.record-row:not(.past){margin-top:6px;border-top:1px solid var(--be-navy-100)}
.record-context{margin-top:10px !important;padding-top:8px;border-top:1px solid var(--be-navy-100);font-size:12px;line-height:1.5;color:var(--be-navy-500)}
.record-context span{display:block;font-weight:600}

/* ---------- 02 examine and challenge: one panel per moment ---------- */
/* the panels keep the tallest one's height, so the board does not move between moments */
.panels{min-height:540px}
.team-choice>span,.coaching>span,.examines>span,.assessment-row>span,.incoming>span,.connected>span,.refined>span,.selected-decision>span,.known-later>span{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;line-height:1.4}
.team-choice .icon,.coaching .icon{width:15px;height:15px}
.team-choice>strong,.coaching>strong,.assessment-row>strong,.incoming>strong,.connected>strong,.selected-decision>strong,.known-later>strong{display:block;margin-top:4px;font-size:14px;font-weight:500;line-height:1.45;color:var(--be-sand)}
.team-choice{margin-top:12px;padding-top:10px;border-top:1px solid var(--be-navy-700)}
.team-choice>span,.coaching>span,.examines>span,.selected-decision>span,.connected>span,.refined>span,.incoming>span{color:var(--be-bright-aqua)}
.panel>.team-choice:first-child{margin-top:0;padding-top:0;border-top:0}
.coaching{padding:10px 12px;border-left:2px solid var(--be-bright-aqua);border-radius:0 6px 6px 0;background:var(--be-navy-700)}
.selected-decision{margin-top:10px;padding:8px 12px;border:1px solid var(--be-bright-aqua);border-radius:6px}
.known-label{margin-top:12px !important;font-size:12px;font-weight:600;color:var(--be-bright-aqua)}
.ledger{margin:4px 0 0}
.ledger>div{padding:6px 0;border-top:1px solid var(--be-navy-700)}
.ledger dt{font-size:12px;font-weight:600;line-height:1.4;color:var(--be-navy-200)}
.ledger dd{margin:2px 0 0;font-size:14px;line-height:1.45;color:var(--be-sand)}
/* what became known later sits apart, in a dashed box */
.known-later{margin-top:10px;padding:10px 12px;border:1px dashed var(--be-navy-300);border-radius:6px}
.known-later>span{color:var(--be-navy-200)}
.examines{margin-top:12px}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.chips span{padding:4px 8px;border:1px solid var(--be-navy-500);border-radius:6px;font-size:12px;line-height:1.4;color:var(--be-sand)}
.examines>p{margin-top:8px !important;font-size:14px;line-height:1.45;color:var(--be-navy-200)}
.assessment-row{margin-top:12px;padding:10px 12px;border:1px solid var(--be-navy-500);border-radius:6px}
.assessment-row>span{color:var(--be-terracotta)}
.incoming{margin-top:12px;padding:10px 12px;border:1px solid var(--be-bright-aqua);border-radius:6px;background:var(--be-navy-700)}
.connected{margin-top:10px;padding-left:12px;border-left:2px solid var(--be-bright-aqua)}
.beat-caption{margin-top:14px !important;padding-top:10px;border-top:1px solid var(--be-navy-700);font-size:14px;line-height:1.5;color:var(--be-bright-aqua)}
/* the refined lesson: the moment's result */
.refined{margin-top:14px;padding:12px;border:1px solid var(--be-bright-aqua);border-radius:6px;background:var(--be-navy-700);color:var(--be-sand)}
.refined>strong{display:block;margin-top:6px;font-size:16px;font-weight:500;line-height:1.45;color:var(--be-sand)}

/* ---------- 03 organisational knowledge ---------- */
.knowledge-pending{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;min-height:320px;padding:28px 18px;border:1px dashed var(--be-navy-500);border-radius:6px}
.knowledge-pending>.icon{width:36px;height:36px;color:var(--be-bright-aqua)}
.knowledge-pending>strong{font-family:'Spline Sans',sans-serif;font-weight:500;font-size:22px;color:var(--be-sand)}
.knowledge-pending>p{font-size:14px;line-height:1.6;color:var(--be-navy-200)}
/* the lesson for approval: a sand sheet; approval is a word and a filled mark, not colour alone */
.lesson-paper{padding:14px;border-radius:6px;background:var(--be-sand);color:var(--be-navy)}
.lesson-paper .paper-top span{flex:none;padding:2px 8px;border:1px solid var(--be-navy-200);border-radius:6px;font-size:12px;font-weight:600;color:var(--be-navy-500)}
.lesson-paper.approved .paper-top span{border-color:var(--be-navy);background:var(--be-navy);color:var(--be-sand)}
.lesson-text{margin-top:10px !important;font-size:14px;font-weight:500;line-height:1.5}
.lesson-rows{margin:10px 0 0}
.lesson-rows>div{padding:7px 0;border-top:1px solid var(--be-navy-100)}
.lesson-rows dt{font-size:12px;font-weight:600;line-height:1.4;color:var(--be-navy-500)}
.lesson-rows dd{margin:2px 0 0;font-size:14px;line-height:1.45}
.bid-lead{margin-top:8px;padding-top:10px;border-top:1px solid var(--be-navy-100)}
.bid-lead>p{font-size:12px;font-weight:600;line-height:1.4;color:var(--be-navy-500)}
.bid-marks{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.bid-marks span{padding:4px 10px;border:1px solid var(--be-navy-200);border-radius:6px;font-size:12px;font-weight:600;color:var(--be-navy-500)}
.bid-marks .chosen{border-color:var(--be-navy);background:var(--be-navy);color:var(--be-sand)}
.knowledge-line{margin-top:10px !important;padding-top:8px;border-top:1px solid var(--be-navy-100);font-size:12px;line-height:1.5;color:var(--be-navy-500)}
/* the next pursuit, and the approved lesson put to work on it */
.next-pursuit{margin-top:12px;padding:12px;border:1px solid var(--be-bright-aqua);border-radius:6px;background:var(--be-navy-700)}
.next-pursuit>span{display:block;font-size:12px;font-weight:600;color:var(--be-bright-aqua)}
.next-pursuit>strong{display:block;margin-top:4px;font-size:14px;font-weight:600;line-height:1.4;color:var(--be-sand)}
.guidance{margin-top:10px;padding:10px 12px;border-radius:6px;background:var(--be-pale-aqua);color:var(--be-navy)}
.guidance>span{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--be-navy-700)}
.guidance>span .icon{width:15px;height:15px}
.guidance ul{margin:6px 0 0;padding:0;list-style:none}
.guidance li{display:flex;align-items:flex-start;gap:8px;padding:4px 0;font-size:14px;font-weight:500;line-height:1.45}
.guidance li .icon{width:16px;height:16px;margin-top:2px}
.guidance small{display:block;margin-top:6px;font-size:12px;line-height:1.4;color:var(--be-navy-500)}
.decision-summary{margin-top:10px;padding-top:10px;border-top:1px solid var(--be-navy-500)}
.decision-summary strong{display:block;font-size:14px;font-weight:600;color:var(--be-sand)}
.decision-summary p{margin-top:4px !important;font-size:14px;line-height:1.45;color:var(--be-navy-200)}

/* the finale: the organisation's memory, the lesson held in it, the agents that draw on it, and a line down to the
   guidance it now gives on the next pursuit */
.memory{padding:14px;border-radius:6px;background:var(--be-sand);color:var(--be-navy)}
.memory .paper-top span{flex:none;padding:2px 8px;border-radius:6px;background:var(--be-navy);color:var(--be-sand);font-size:12px;font-weight:600}
.memory-entry{margin-top:10px;padding:8px 10px;border-radius:4px;background:var(--be-pale-aqua)}
.memory-entry span,.memory-entry strong{display:block}
.memory-entry span{font-size:12px;font-weight:600;line-height:1.4;color:var(--be-navy-500)}
.memory-entry strong{margin-top:2px;font-size:14px;font-weight:500;line-height:1.45}
.memory-agents{margin-top:10px;padding-top:8px;border-top:1px solid var(--be-navy-100)}
.memory-agents>span{display:block;font-size:12px;font-weight:600;color:var(--be-navy-500)}
.memory-agents .chips span{border-color:var(--be-navy-200);color:var(--be-navy)}
.memory-feed{position:relative;height:20px;margin-left:22px;border-left:2px solid var(--be-bright-aqua)}
.memory-feed i{position:absolute;left:-4px;top:0;width:6px;height:6px;border-radius:50%;background:var(--be-bright-aqua);opacity:0}
.memory-feed+.next-pursuit{margin-top:0}
/* guidance that now comes from the memory: a navy rule and the words "From your organisational memory" */
.guidance.from-memory{border-left:3px solid var(--be-navy)}

/* a sheet or card carried from one column to the next (learn.js); no shadow */
.ghost{position:fixed;z-index:20;margin:0;pointer-events:none;list-style:none}
.record-row.ghost,.lesson-text.ghost{padding:8px 10px;border-radius:6px;background:var(--be-pale-aqua);color:var(--be-navy)}

/* ---------- the moments: what is dimmed, what is marked ---------- */
#story[data-beat="0"] .examine-lane .lane-body,#story[data-beat="0"] .knowledge-lane .lane-body,
#story[data-beat="1"] .knowledge-lane .lane-body,#story[data-beat="2"] .knowledge-lane .lane-body,
#story[data-beat="3"] .knowledge-lane .lane-body,#story[data-beat="4"] .knowledge-lane .lane-body{opacity:.35}
#story[data-beat="5"] .examine-lane .lane-body,#story[data-beat="6"] .examine-lane .lane-body{opacity:.45}
/* the finale: the work that produced the lesson rests, and the memory holds the frame */
#story[data-beat="7"] .record-lane .lane-body,#story[data-beat="7"] .examine-lane .lane-body{opacity:.35}
#story[data-beat="0"] .record-lane,
#story[data-beat="1"] .examine-lane,#story[data-beat="2"] .examine-lane,#story[data-beat="3"] .examine-lane,#story[data-beat="4"] .examine-lane,
#story[data-beat="5"] .knowledge-lane,#story[data-beat="6"] .knowledge-lane,#story[data-beat="7"] .knowledge-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:160px}
  .board{min-height:860px}
  .narrative .count{grid-column:1/-1}
}
@media (min-width:1001px) and (max-width:1100px){
  .board{min-height:720px}
  .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 .panels{min-height:0}
.compact #story[data-beat="0"] .examine-lane,.compact #story[data-beat="0"] .knowledge-lane,
.compact #story[data-beat="1"] .record-lane,.compact #story[data-beat="1"] .knowledge-lane,
.compact #story[data-beat="2"] .record-lane,.compact #story[data-beat="2"] .knowledge-lane,
.compact #story[data-beat="3"] .record-lane,.compact #story[data-beat="3"] .knowledge-lane,
.compact #story[data-beat="4"] .record-lane,.compact #story[data-beat="4"] .knowledge-lane,
.compact #story[data-beat="5"] .record-lane,.compact #story[data-beat="5"] .examine-lane,
.compact #story[data-beat="6"] .record-lane,.compact #story[data-beat="6"] .examine-lane,
.compact #story[data-beat="7"] .record-lane,.compact #story[data-beat="7"] .examine-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}
  .panels{min-height:0}
}
@media (max-width:700px){
  .steps{grid-template-columns:repeat(4,minmax(0,1fr))}
  .steps button{padding:6px 4px;font-size:13px;line-height:1.25}
}
@media (prefers-reduced-motion:reduce){
  .ghost{display:none}
}

/* ---------- motion: only for visitors who have not asked for reduced motion ---------- */
@media (prefers-reduced-motion:no-preference){
  .lane{transition:border-color 400ms var(--e)}
  .lane-body{transition:opacity 400ms var(--e)}
  .record-row{transition:background-color 300ms var(--e),border-color 300ms var(--e)}
  .lesson-paper .paper-top span,.bid-marks span{transition:background-color 300ms var(--e),border-color 300ms var(--e),color 300ms var(--e)}
}
