/* Probashi cluster (/bd/probashi/ and its 10 tool pages). Built 2026-10-28.
   Readers: Bangladeshi workers going to the Gulf or Malaysia, often on a cheap Android phone,
   often not used to forms. So: one big action per box, 18px inputs, 48px tap targets, Bangla
   first with the English word under it, no colour without a word next to it.
   Tokens only (CLAUDE.md Rule 1): text on --accent is always --accent-text. */

.pb-lead { font-size: var(--text-md); color: var(--text); margin: 0.5rem 0 0; }
.pb-en { display: block; font-size: var(--text-sm); color: var(--text-muted); font-weight: 400; margin-top: 0.15rem; }

/* journey strip: the whole trip in 7 steps, current one marked */
.pb-journey { margin: 1rem 0 0; }
.pb-journey ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; }
.pb-journey li a { display: flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.5rem 0.65rem; border: 1px solid var(--border); border-radius: 0.6rem; background: var(--surface); color: var(--text); text-decoration: none; font-size: var(--text-sm); line-height: 1.3; }
.pb-journey li a:hover { border-color: var(--heading); }
.pb-journey li a[aria-current="page"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 700; color: var(--heading); }
.pb-journey .pb-n { flex: 0 0 auto; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--border); font-weight: 700; color: var(--heading); font-size: var(--text-xs); }
.pb-journey li a[aria-current="page"] .pb-n { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.pb-journey li.pb-done .pb-n { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.pb-journey-title { font-size: var(--text-sm); color: var(--text-muted); margin: 0 0 0.4rem; font-weight: 600; }

/* form. The primary button uses the /bd/ hub pair (--heading on --bg, like .bd-btn), not --accent. */
.pb-field { margin-bottom: 1rem; }
.pb-field > label, .pb-label { display: block; margin-bottom: 0.4rem; font-weight: 700; color: var(--heading); font-size: var(--text-md); }
.pb-input, .pb-select { width: 100%; min-height: 52px; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: 0.6rem; background: var(--surface); color: var(--text); font-family: inherit; font-size: 1.15rem; box-sizing: border-box; }
.pb-input:focus, .pb-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pb-hint { display: block; font-size: var(--text-sm); color: var(--text-muted); margin-top: 0.3rem; }
.pb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pb-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 1rem; }
.pb-chips button { min-height: 44px; min-width: 64px; background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 0.45rem 0.9rem; border-radius: 2rem; cursor: pointer; font-family: inherit; font-size: var(--text-md); touch-action: manipulation; }
.pb-chips button:hover, .pb-chips button.on { border-color: var(--heading); color: var(--heading); font-weight: 700; }
.pb-check { display: flex; align-items: flex-start; gap: 0.65rem; min-height: 48px; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 0.6rem; background: var(--surface); cursor: pointer; color: var(--text); }
.pb-check input { width: 1.4rem; height: 1.4rem; margin: 0.1rem 0 0; flex: 0 0 auto; accent-color: var(--heading); }
.pb-btn { display: block; width: 100%; min-height: 54px; background: var(--heading); color: var(--bg); border: none; padding: 0.8rem 1.25rem; border-radius: 0.6rem; font-weight: 800; cursor: pointer; font-family: inherit; font-size: 1.1rem; touch-action: manipulation; }
.pb-btn:hover { opacity: 0.9; }
.pb-btn-2 { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 0.5rem 1rem; border-radius: 0.6rem; font-weight: 600; cursor: pointer; font-family: inherit; font-size: var(--text-sm); text-decoration: none; }
.pb-btn-2:hover { border-color: var(--heading); }
.pb-err { color: var(--danger); font-size: var(--text-sm); margin-top: 0.4rem; min-height: 1.2em; font-weight: 600; }

/* result */
.pb-result { margin-top: 1.25rem; }
.pb-big { border: 2px solid var(--accent); border-radius: 0.9rem; padding: 1.1rem; text-align: center; background: var(--surface); }
.pb-big .pb-k { display: block; font-size: var(--text-sm); color: var(--text-muted); }
.pb-big .pb-v { display: block; font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.2; margin: 0.2rem 0; }
.pb-big .pb-s { display: block; font-size: var(--text-sm); color: var(--text); }
.pb-lines { list-style: none; margin: 0.9rem 0 0; padding: 0; border-top: 1px solid var(--border); }
.pb-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: var(--text-md); color: var(--text); }
.pb-lines li b { color: var(--heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-rate { font-size: var(--text-sm); color: var(--text-muted); margin: 0.6rem 0 0; }
.pb-rate a { color: inherit; }

/* notes, warnings, steps */
.pb-note { border: 1px solid var(--info-border); background: var(--info-bg-subtle); border-radius: 0.75rem; padding: 0.85rem 1rem; margin: 1rem 0; color: var(--text); font-size: var(--text-md); }
.pb-warn { border: 1px solid var(--warning-border); background: var(--warning-bg-subtle); border-radius: 0.75rem; padding: 0.85rem 1rem; margin: 1rem 0; color: var(--text); font-size: var(--text-md); }
.pb-warn strong, .pb-note strong { color: var(--heading); }
.pb-official { border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.9rem 1rem; margin: 1rem 0; background: var(--surface); }
.pb-official a.pb-out { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 48px; padding: 0.4rem 0; color: var(--heading); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.pb-official a.pb-out:last-child { border-bottom: none; }
.pb-official a.pb-out span { font-weight: 400; color: var(--text-muted); font-size: var(--text-sm); }
.pb-steps { counter-reset: pb; list-style: none; margin: 0.5rem 0 0; padding: 0; }
.pb-steps > li { counter-increment: pb; position: relative; padding: 0.15rem 0 0.9rem 2.6rem; color: var(--text); }
.pb-steps > li::before { content: counter(pb); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pb-steps > li strong { color: var(--heading); }

/* checklist with saved progress */
.pb-list { display: grid; gap: 0.5rem; margin: 0.75rem 0; }
.pb-progress { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0 0.25rem; font-weight: 700; color: var(--heading); }
.pb-bar { flex: 1; height: 0.7rem; background: var(--bar-track, var(--border)); border-radius: 1rem; overflow: hidden; }
.pb-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 200ms ease-out; }
.pb-check.done { border-color: var(--success-border); background: var(--success-bg-subtle); }
.pb-check.done .pb-t { color: var(--text); font-weight: 600; }

/* "which number do you have" picker + link checker verdicts */
.pb-pick { display: grid; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.pb-pick button { text-align: left; min-height: 52px; padding: 0.6rem 0.85rem; border: 1px solid var(--border); border-radius: 0.6rem; background: var(--surface); color: var(--text); font-family: inherit; font-size: var(--text-md); cursor: pointer; }
.pb-pick button.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--heading); font-weight: 700; }
.pb-answer { border-left: 4px solid var(--accent); padding: 0.4rem 0 0.4rem 0.9rem; margin: 0.5rem 0 1rem; }
.pb-verdict { border-radius: 0.75rem; padding: 0.85rem 1rem; margin-top: 0.75rem; font-size: var(--text-md); }
.pb-verdict.ok { border: 1px solid var(--success-border); background: var(--success-bg-subtle); color: var(--text); }
.pb-verdict.bad { border: 1px solid var(--danger-border); background: var(--danger-bg-subtle); color: var(--text); }
.pb-verdict.maybe { border: 1px solid var(--warning-border); background: var(--warning-bg-subtle); color: var(--text); }
.pb-verdict strong { color: var(--heading); }

/* the interview step: honest, practice only */
.pb-ib { display: flex; gap: 0.9rem; align-items: center; border: 1px solid var(--border); border-radius: 0.9rem; padding: 0.9rem 1rem; margin: 1.25rem 0; background: var(--surface); }
.pb-ib img { width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto; }
.pb-ib p { margin: 0; color: var(--text); font-size: var(--text-md); }
.pb-ib strong { color: var(--heading); }
.pb-ib .pb-btn-2 { margin-top: 0.5rem; }

.pb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.75rem 0; border: 1px solid var(--border); border-radius: 0.75rem; }
.pb-table { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.pb-table th, .pb-table td { padding: 0.55rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); color: var(--text); }
.pb-table th { background: var(--surface); color: var(--heading); font-weight: 700; }
.pb-table td.num, .pb-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-table tr:last-child td { border-bottom: none; }
.pb-checked { display: block; font-size: var(--text-sm); color: var(--text-muted); margin-top: 0.75rem; }

@media (max-width: 600px) {
  .tool-content h2, .tool-calculator h2 { font-size: var(--text-lg); }
  .pb-row { grid-template-columns: 1fr; }
  .pb-journey ol { grid-template-columns: 1fr 1fr; }
  .pb-ib { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .pb-bar i { transition: none; } }
