/* Hirelings on Melee Sections in the combat scene (option hireSections): the Deployment sheet, the Sections step of the Melee stepper and the round's review. Targets are 44px at least, text 12px at least. */

/* ---- the Deployment sheet: one scrolling body between the question line and the foot, so the primary never leaves the screen ---- */
.cb-sheet[data-kind=deploy], .cb-sheet[data-kind=sections] { display: flex; flex-direction: column; max-height: calc(100% - 330px); min-height: 0; }
.cb-sheet[data-kind=deploy] .q, .cb-sheet[data-kind=deploy] .ds-actions, .cb-sheet[data-kind=deploy] .dp-refuse { flex: none; }
.dp-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; -webkit-mask-image: linear-gradient(#000 calc(100% - 14px), transparent); mask-image: linear-gradient(#000 calc(100% - 14px), transparent); }
.dp-scroll > * { flex: none; }
.dp-scroll > .cb-hint { margin: 0; }
.dp-intro, .dp-note { color: var(--ink-3); }
.cb[data-mode=deploy] .cb-stage { min-height: 110px; }
.cb[data-mode=deploy] .cb-hero .gcol, .cb[data-step=sections] .cb-hero .gcol, .cb[data-step=sections] .cb-allies { display: none; }          /* the Deployment is a decision: the stage keeps the foes and who you are, the belongings are one tap away in the bar */
.dp-card { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-3); flex: none; }
.dp-card.open { border-color: var(--gold); }
.dp-card.grey { opacity: .72; border-style: dashed; }
.dp-card > .cb-hint { margin: 0; padding: 0 10px 8px; }
.dp-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 4px 10px; text-align: left; }
.dp-head .ds-i { flex: none; color: var(--ink-3); width: 20px; height: 20px; }
.dp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dp-name b { font: 700 calc(16px * var(--ts, 1))/1.2 var(--font-ui); overflow-wrap: anywhere; }
.dp-name small { font: 400 calc(13px * var(--ts, 1))/1.2 var(--font-ui); color: var(--ink-2); }
.cs-box { flex: none; display: inline-block; border-radius: 8px; overflow: hidden; }
.cs-box svg { display: block; width: 100%; height: 100%; }
.cs-horse { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-4); border: 1px solid var(--line-2); font: 600 calc(12px * var(--ts, 1))/1 var(--font-ui); color: var(--ink-2); }
.dp-body { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 10px; }
.dp-jobs { margin: 0; flex-wrap: nowrap; }
.dp-jobs .ds-btn { flex: 1 1 0; min-width: 0; padding: 0 6px; }
.dp-body .cb-hint { margin: 0; }
.dp-pick .cb-aim, .dp-taker .cb-aim, .dp-horse .cb-aim { margin-bottom: 0; }
.dp-den { gap: 8px; padding: 0 12px 0 6px; text-align: left; }
.dp-dname { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.dp-dname small, .dp-hname small { font: 400 calc(12px * var(--ts, 1))/1.1 var(--font-ui); color: var(--ink); }          /* (ink-3 on a lit or dim card read 3.1 to 4.0:1) */
.dp-hname { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
/* (scoped to the Deployment and Sections steps: it was global, so every dim button on every screen, "Start the day" and "Play online" among them, was halved to 2.5:1 on top of its own dim ink; ui_screens contrast) */
.cb-sheet[data-kind=deploy] .ds-btn.is-dim, .cb-sheet[data-kind=sections] .ds-btn.is-dim { opacity: .9; border-style: dashed; }          /* (75%: the pony's "moves 5" under it read 3.1:1 at half) */
.dp-turnblock { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-1); padding-top: 8px; }
.dp-turn { display: flex; gap: 10px; }
.dp-side { flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); }
.dp-side small { font: 600 calc(12px * var(--ts, 1))/1.1 var(--font-ui); color: var(--ink-2); }
.dp-side.on { border: 2px solid var(--gold); background: var(--gold-wash-2); padding: 5px 3px; }
.dp-side.on small { color: var(--gold-hi); }
.dp-side .ds-cs-wrap svg { display: block; }
.dp-order { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 calc(14px * var(--ts, 1))/1.2 var(--font-ui); }
.dp-hero { display: flex; flex-direction: column; gap: 4px; flex: none; }
.dp-hero .ds-btn { width: 100%; justify-content: flex-start; min-height: 48px; }
.dp-hero .ds-btn.on { border: 2px solid var(--gold); background: var(--gold-wash-2); color: var(--gold-hi); }
.dp-hero .cb-hint { margin: 0; }
.dp-taker { display: flex; flex-direction: column; gap: 6px; flex: none; }
.dp-taker .cb-hint { margin: 0; }
.dp-refuse { margin: 6px 0 0; }
@media (max-height: 700px) { .cb-sheet[data-kind=deploy], .cb-sheet[data-kind=sections] { max-height: calc(100% - 262px); } }

/* ---- the Hires step (Melee Sections): cards of three lanes ---- */
.cb-sheet.sec-step { display: flex; flex-direction: column; max-height: calc(100% - 330px); min-height: 0; }
.cb-sheet.sec-step .cb-steps, .cb-sheet.sec-step .ds-actions { flex: none; }
.sx-head { min-height: 52px; }
.dp-card.bad { border-color: var(--danger); }
.sx-body { gap: 4px; }
.sx-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; font: 700 calc(13px * var(--ts, 1))/1.15 var(--font-ui); color: var(--ink-2); }
.sx-cols small { display: block; font: 400 calc(12px * var(--ts, 1))/1.15 var(--font-ui); color: var(--ink-3); }
.sx-row { display: flex; flex-direction: column; gap: 2px; }
.sx-lbl { margin: 4px 0 0; font: 600 calc(12px * var(--ts, 1))/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sx-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sx-cell { min-height: 52px; display: flex; flex-direction: column; gap: 4px; border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); padding: 3px; background: var(--surface-2); }
.sx-cell.empty { opacity: .6; }
.sx-chip { display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 2px 4px; border-radius: 8px; border: 1px solid var(--line-gold); background: var(--surface-3); text-align: left; width: 100%; min-width: 0; }
.sx-chip.fixed { border-color: var(--line-2); border-style: dotted; }
.sx-mini.cs-box { border-radius: 5px; }
.sx-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font: 600 calc(12px * var(--ts, 1))/1.15 var(--font-ui); overflow-wrap: anywhere; }
.sx-name small { font: 400 calc(12px * var(--ts, 1))/1.1 var(--font-ui); color: var(--ink-3); }
.sx-pick { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line-1); padding-top: 6px; }
.sx-pick .cb-aim { margin-bottom: 0; }
.sx-err { margin: 2px 0 0; }
.dp-mini.cs-box, .dp-den .cs-box { border-radius: 5px; }

/* ---- the round's review (the sheet opened from the result) ---- */
.rv-list { display: flex; flex-direction: column; gap: 14px; }
.rv-sec { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-3); padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.rv-head b { font: 700 calc(16px * var(--ts, 1))/1.2 var(--font-ui); }
.rv-dice-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.rv-roll { display: flex; align-items: flex-start; gap: 8px; }
.rv-dice { display: inline-flex; gap: 3px; flex: none; }
.rv-t { font: 400 calc(14px * var(--ts, 1))/1.3 var(--font-ui); color: var(--ink-2); }
.rv-blows { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; border-top: 1px solid var(--line-1); padding-top: 6px; }
.rv-blow { margin: 0; font: 400 calc(14px * var(--ts, 1))/1.3 var(--font-ui); color: var(--ink-2); }
.sx-moved { color: var(--gold-hi); } .sx-turned { color: var(--gold-hi); font-weight: 600; }

@media (max-height: 700px) { .cb[data-step=sections] .cb-lanewrap { display: none; } }          /* a short phone: the cards need the room (the lanes are the plays of the Strike and Guard steps) */
