/* The tender's journey bar and the prepare stepper (public/journey.js, stream FLOW). Logical properties only, so it
   mirrors in RTL; the arrows flip with the page direction. jb- prefix (never ad-: ad blockers hide it). */
.app:has(> #jb-journey:not([hidden])){grid-template-rows:64px 44px auto 1fr auto}
@media (max-width:960px){ .app:has(> #jb-journey:not([hidden])){grid-template-rows:auto auto auto auto auto} }
.jb-journey{display:flex;align-items:center;gap:14px;padding:6px 24px;border-bottom:1px solid var(--border);background:rgba(10,15,28,.62);position:relative;z-index:6;min-width:0;font:500 12.5px var(--font-b);color:var(--fg)}
.jb-journey[hidden]{display:none}
.jb-steps{display:flex;align-items:center;gap:4px;list-style:none;margin:0;padding:0;min-width:0;flex:0 1 auto}
.jb-step{display:flex;align-items:center;gap:6px;padding:4px 10px 4px 6px;border-radius:999px;color:var(--muted);white-space:nowrap;position:relative}
.jb-step+.jb-step::before{content:"";inline-size:14px;block-size:1px;background:var(--border);margin-inline-end:6px}
.jb-dot{display:inline-grid;place-items:center;inline-size:20px;block-size:20px;border-radius:50%;border:1px solid var(--border);font:700 11px var(--font-h);flex:none}
.jb-step.is-done{color:var(--fg)}
.jb-step.is-done .jb-dot{background:rgba(45,212,191,.16);border-color:rgba(45,212,191,.55);color:var(--teal)}
.jb-step.is-current{background:rgba(45,212,191,.12);color:var(--fg);font-weight:700}
.jb-step.is-current .jb-dot{background:var(--teal);border-color:var(--teal);color:#06251f}
.jb-sr{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.jb-now{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;color:var(--muted);flex-wrap:wrap}
.jb-now-l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-inline-size:100%}
.jb-block{padding:2px 8px;border-radius:999px;border:1px solid rgba(245,158,11,.45);color:#FBBF24;background:rgba(245,158,11,.1);font-size:11.5px;white-space:nowrap}
.jb-block-deadline_passed,.jb-block-gate_failed,.jb-block-read_failed{border-color:rgba(239,68,68,.5);color:#FCA5A5;background:rgba(239,68,68,.1)}
.jb-next{margin-inline-start:auto;display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:var(--r,10px);border:0;background:linear-gradient(135deg,var(--teal),var(--teal-dim));color:#06251f;font:700 12.5px var(--font-h);letter-spacing:.02em;cursor:pointer;white-space:nowrap;min-block-size:36px;flex:none}
.jb-next:hover:not(:disabled){filter:brightness(1.08)}
.jb-next:disabled{opacity:.6;cursor:default;background:rgba(45,212,191,.18);color:var(--fg)}
.jb-next:focus-visible,.jb-btn:focus-visible,.jb-prep a:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.jb-arrow{display:inline-block}
html[dir="rtl"] .jb-arrow{transform:scaleX(-1)}
.jb-outcome{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-inline-start:auto}
.jb-outcome>span{color:var(--muted)}
.jb-btn{padding:6px 12px;border-radius:var(--r,10px);border:1px solid var(--border);background:rgba(30,41,59,.5);color:var(--fg);font:600 12px var(--font-h);cursor:pointer;min-block-size:34px}
.jb-btn:hover{border-color:var(--teal)}
.jb-link{background:none;border:0;color:var(--muted);font:500 12px var(--font-b);cursor:pointer;text-decoration:underline;min-block-size:34px}

/* on a page (Proposal, Response matrix, Proposal check, Planner): the same bar in a card, then the prepare stepper */
.jb-page-journey{margin-block:0 18px;display:grid;gap:10px}
.jb-journey-page{border:1px solid var(--border);border-radius:var(--r-lg,14px);padding:8px 12px;background:rgba(17,24,39,.6)}
.jb-prep{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.jb-ps a{display:inline-flex;align-items:center;gap:6px;padding:5px 12px 5px 6px;border-radius:999px;border:1px solid var(--border);color:var(--muted);text-decoration:none;font:500 12.5px var(--font-b);min-block-size:32px}
.jb-ps a small{color:var(--muted);font-size:11px}
.jb-ps.is-done a{color:var(--fg)}
.jb-ps.is-done .jb-dot{background:rgba(45,212,191,.16);border-color:rgba(45,212,191,.55);color:var(--teal)}
.jb-ps.is-current a{border-color:rgba(45,212,191,.6);color:var(--fg)}
.jb-ps.is-page a{background:rgba(45,212,191,.14);border-color:var(--teal);color:var(--fg);font-weight:700}
.jb-ps+.jb-ps::before{content:"→";color:var(--muted);margin-inline-end:6px;display:inline-block}
html[dir="rtl"] .jb-ps+.jb-ps::before{transform:scaleX(-1)}
.jb-ps{display:flex;align-items:center}

/* the question cards: a paid analysis says so, a qualification question says it is free (stream FLOW, AUDIT step 5) */
.jb-tag{margin-inline-start:8px;padding:1px 7px;border-radius:999px;font:700 9.5px var(--font-h);letter-spacing:.08em;text-transform:uppercase;vertical-align:middle;white-space:nowrap}
.jb-tag-paid{color:#1a1200;background:var(--gold)}
.jb-tag-free{color:var(--teal);border:1px solid rgba(45,212,191,.45)}
.card.paid{border-style:dashed}
.jb-spend{display:flex;flex-wrap:wrap;align-items:center;gap:8px;inline-size:100%}
.jb-spend-q{flex:1 1 100%;font-size:12.5px;color:var(--fg)}

/* the brief: what comes after the decision */
.jb-brief-next{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-block:4px 14px}
.jb-brief-line{flex:1 1 100%;margin:0;color:var(--muted);font-size:13px}
.jb-brief-go{display:inline-flex;align-items:center;gap:8px}
.m2reason{display:flex;flex-wrap:wrap;align-items:center;gap:8px;inline-size:100%;margin-block-start:8px}
.m2reason label{display:flex;flex-direction:column;gap:4px;flex:1 1 220px;font-size:12px;color:var(--muted)}
.m2reason input{padding:8px 10px;border-radius:var(--r,10px);border:1px solid var(--border);background:rgba(10,15,28,.6);color:var(--fg);font:500 13px var(--font-b);min-block-size:36px}
.pp-export-warn .pp-row{margin-block-start:8px}

/* the Checks tab (public/bid-workspace.css, fixed on tablets and phones) waits under the bar instead of covering it */
/* tablets only: on a phone the Checks button is in the flow (public/home.css), and this offset pushed it onto the cards (polish walk) */
@media (min-width:641px) and (max-width:960px){ body:has(#jb-journey:not([hidden])) #bid-rail-toggle{top:calc(var(--hdr-h,64px) + var(--tray-h,44px) + var(--jb-journey-h,0px) + 12px)} }
/* phone: the current step and the Next button; the other steps as dots; nothing scrolls sideways */
@media (max-width:640px){
  .jb-journey{flex-wrap:wrap;gap:8px;padding:8px 16px}
  .jb-steps{gap:2px;flex:1 1 auto}
  .jb-step{padding:2px}
  .jb-step+.jb-step::before{inline-size:8px;margin-inline-end:2px}
  .jb-step .jb-step-l{display:none}
  .jb-step.is-current{padding-inline-end:10px}
  .jb-step.is-current .jb-step-l{display:inline;max-inline-size:38vw;overflow:hidden;text-overflow:ellipsis}
  .jb-now{flex:0 1 auto}
  .jb-now-l{display:none}
  .jb-next{inline-size:100%;justify-content:center;margin-inline-start:0;white-space:normal;text-align:center}
  .jb-outcome{inline-size:100%;margin-inline-start:0}
  .jb-next,.jb-btn,.jb-link,.jb-ps a{min-block-size:44px}
  .jb-ps+.jb-ps::before{display:none}
}


/* "Save the brief as PDF": the browser's print view shows only the brief */
@media print{
  body.jb-print-brief>*:not(#modal){display:none !important}
  body.jb-print-brief .bg{display:none !important}
  body.jb-print-brief #modal{position:static;display:block;background:none;backdrop-filter:none}
  body.jb-print-brief #modal .box{inline-size:auto;max-block-size:none;overflow:visible;border:0;background:#fff;color:#111;animation:none;padding:0}
  body.jb-print-brief #modal .box *{color:#111 !important;background:none !important;box-shadow:none !important}
  body.jb-print-brief #modal .row,body.jb-print-brief #modal button,body.jb-print-brief #modal .m2decision,body.jb-print-brief #modal .jb-brief-next,body.jb-print-brief #modal .m2memhead{display:none !important}
}
/* light-theme:begin — generated by tools/light-theme.mjs from the rules above; do not edit by hand (hand-tuned light rules go after the end marker) */
html[data-theme="light"] .jb-journey{background:rgba(243,245,249,.62)}
html[data-theme="light"] .jb-step.is-done .jb-dot{background:rgba(45,212,191,.16);border-color:rgba(45,212,191,.55)}
html[data-theme="light"] .jb-step.is-current{background:rgba(45,212,191,.12)}
html[data-theme="light"] .jb-step.is-current .jb-dot{color:#06251f}
html[data-theme="light"] .jb-block{border:1px solid rgba(245,158,11,.45);color:#996e00;background:rgba(245,158,11,.1)}
html[data-theme="light"] .jb-block-deadline_passed,html[data-theme="light"] .jb-block-gate_failed,html[data-theme="light"] .jb-block-read_failed{border-color:rgba(239,68,68,.5);color:#790101;background:rgba(239,68,68,.1)}
html[data-theme="light"] .jb-next{color:#06251f}
html[data-theme="light"] .jb-next:disabled{background:rgba(45,212,191,.18)}
html[data-theme="light"] .jb-btn{background:rgba(230,234,240,.5)}
html[data-theme="light"] .jb-journey-page{background:rgba(239,241,246,.6)}
html[data-theme="light"] .jb-ps.is-done .jb-dot{background:rgba(45,212,191,.16);border-color:rgba(45,212,191,.55)}
html[data-theme="light"] .jb-ps.is-current a{border-color:rgba(45,212,191,.6)}
html[data-theme="light"] .jb-ps.is-page a{background:rgba(45,212,191,.14)}
html[data-theme="light"] .jb-tag-paid{color:#1a1200}
html[data-theme="light"] .jb-tag-free{border:1px solid rgba(45,212,191,.45)}
html[data-theme="light"] .m2reason input{background:rgba(243,245,249,.6)}
@media print{
  html[data-theme="light"] body.jb-print-brief #modal .box{background:#fff;color:#111}
  html[data-theme="light"] body.jb-print-brief #modal .box *{color:#111 !important}
}
/* light-theme:end */

/* polish walk: "Next: …" on the page that does it brings the page's own control into view and marks it for a moment */
.jb-pulse{outline:2px solid var(--teal,#2dd4bf);outline-offset:3px;animation:jb-pulse 1.4s ease-out 1}
@keyframes jb-pulse{0%{box-shadow:0 0 0 0 rgba(45,212,191,.55)}100%{box-shadow:0 0 0 14px rgba(45,212,191,0)}}
@media (prefers-reduced-motion:reduce){.jb-pulse{animation:none}}

/* final walk: the question cards fit the canvas under the bar. At 1440x900 the bar, the documents row and the figures
   left about 635 px for three cards of 300 px, whose titles ran to three lines: the columns scrolled and the lower cards
   were cut. With the bar shown, a wide screen gives the cards more width (fewer lines) and a short one a tighter card. */
/* about 78 % of a side column (the staggered slots then keep clear of the Checks rail at the screen's edge), 300 to 380 px */
@media (min-width:1281px){ .app:has(> #jb-journey:not([hidden])) .stage{--card-w:clamp(300px,calc((100vw - 512px) * .39),380px)}
  .app:has(> #jb-journey:not([hidden])) .col.left .slot:nth-child(2){margin-inline-end:12%}
  .app:has(> #jb-journey:not([hidden])) .col.right .slot:nth-child(2){margin-inline-start:12%} }
@media (min-width:961px) and (max-height:940px){
  .app:has(> #jb-journey:not([hidden])) .card{padding:9px 12px}
  .app:has(> #jb-journey:not([hidden])) .card .head{margin-bottom:4px}
  .app:has(> #jb-journey:not([hidden])) .card h3{font-size:13.5px}
  .app:has(> #jb-journey:not([hidden])) .card p.hint{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:11.5px;margin-bottom:5px}
  .app:has(> #jb-journey:not([hidden])) .card .src.on{margin:-2px 0 6px}
  .app:has(> #jb-journey:not([hidden])) .card .opts{gap:5px}
  .app:has(> #jb-journey:not([hidden])) .card .opt{padding:5px 10px;font-size:12px}
  .app:has(> #jb-journey:not([hidden])) .slot{min-height:90px}
  .app:has(> #jb-journey:not([hidden])) .col{gap:8px}
}
