/* PPM Compass free tools: hub + Business Case Builder.
   Plain CSS (the site's Tailwind build is pre-compiled and purged, so new layout lives here). */

:root {
  --ft-ink: #0f172a;
  --ft-ink-2: #334155;
  --ft-muted: #64748b;
  --ft-line: #e2e8f0;
  --ft-line-2: #cbd5e1;
  --ft-bg: #fcfdfd;
  --ft-panel: #ffffff;
  --ft-soft: #f8fafc;
  --ft-blue: #2563eb;
  --ft-blue-d: #1d4ed8;
  --ft-blue-soft: #eff6ff;
  --ft-green: #059669;
  --ft-green-soft: #ecfdf5;
  --ft-amber: #b45309;
  --ft-amber-soft: #fffbeb;
  --ft-red: #dc2626;
  --ft-radius: 14px;
}

.ft-wrap { max-width: 80rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .ft-wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .ft-wrap { padding: 0 32px; } }

/* ---------- Hero ---------- */
.ft-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--ft-line); background: linear-gradient(180deg, rgba(239,246,255,.6), rgba(248,250,252,.2) 60%, transparent); }
.ft-hero-inner { max-width: 48rem; margin: 0 auto; text-align: center; }
.ft-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #dbeafe; border: 1px solid #bfdbfe; color: #1e40af; }
.ft-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ft-blue); }
.ft-hero h1 { margin: 16px 0 0; font-size: clamp(28px, 4.5vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; color: var(--ft-ink); }
.ft-hero p.lead { margin: 16px auto 0; max-width: 40rem; font-size: 16px; line-height: 1.6; color: #475569; }
.ft-badges { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ft-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--ft-line); font-size: 12px; font-weight: 600; color: var(--ft-ink-2); }
.ft-cta-row { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Buttons ---------- */
.ft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.ft-btn-primary { background: var(--ft-blue); color: #fff; }
.ft-btn-primary:hover { background: var(--ft-blue-d); }
.ft-btn-ghost { background: #fff; color: var(--ft-ink-2); border-color: var(--ft-line-2); }
.ft-btn-ghost:hover { background: var(--ft-soft); }
.ft-btn-text { background: none; border: none; color: var(--ft-blue); padding: 6px 4px; }
.ft-btn-text:hover { text-decoration: underline; }
.ft-btn-danger { background: none; border: none; color: var(--ft-muted); padding: 6px 4px; }
.ft-btn-danger:hover { color: var(--ft-red); }
.ft-btn:focus-visible, .ft-input:focus-visible { outline: 2px solid var(--ft-blue); outline-offset: 2px; }
.ft-btn[disabled] { opacity: .55; cursor: default; }

/* ---------- Generic sections ---------- */
.ft-section { padding: 56px 0; }
.ft-section + .ft-section { border-top: 1px solid var(--ft-line); }
.ft-h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -0.01em; color: var(--ft-ink); margin: 0; }
.ft-sub { margin-top: 8px; color: var(--ft-muted); font-size: 14px; line-height: 1.6; max-width: 44rem; }
.ft-grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 768px) { .ft-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.ft-card { background: var(--ft-panel); border: 1px solid var(--ft-line); border-radius: var(--ft-radius); padding: 20px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.ft-card h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ft-ink); }
.ft-card p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: #475569; }
.ft-num { display: inline-flex; width: 28px; height: 28px; border-radius: 8px; align-items: center; justify-content: center; background: var(--ft-blue-soft); color: var(--ft-blue); font-weight: 800; font-size: 13px; margin-bottom: 10px; }

/* Hub tool cards */
.ft-tools { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 900px) { .ft-tools { grid-template-columns: repeat(3, 1fr); } }
.ft-tool { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ft-line); border-radius: 16px; padding: 22px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.ft-tool.is-featured { border-color: #93c5fd; box-shadow: 0 8px 24px -12px rgba(37,99,235,.35); }
.ft-tool-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ft-tool-icon { font-size: 26px; }
.ft-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; }
.ft-tag-new { background: #d1fae5; color: #065f46; }
.ft-tag-free { background: #dbeafe; color: #1e40af; }
.ft-tag-soon { background: #f1f5f9; color: #475569; }
.ft-tool h3 { margin: 14px 0 0; font-size: 18px; font-weight: 800; color: var(--ft-ink); }
.ft-tool p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: #475569; flex: 1; }
.ft-tool ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ft-ink-2); }
.ft-tool li { padding: 3px 0 3px 20px; position: relative; }
.ft-tool li::before { content: "✓"; position: absolute; left: 0; color: var(--ft-green); font-weight: 700; }
.ft-tool .ft-btn { margin-top: 18px; align-self: flex-start; }

/* Flow strip */
.ft-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--ft-ink-2); }
.ft-flow span.step { padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--ft-line); }
.ft-flow span.arrow { color: var(--ft-muted); }

/* CTA band */
.ft-band { margin: 0; padding: 28px; border-radius: 18px; background: linear-gradient(120deg, #eff6ff, #eef2ff 60%, #ecfdf5); border: 1px solid #bfdbfe; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .ft-band { flex-direction: row; align-items: center; justify-content: space-between; } }
.ft-band h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ft-ink); }
.ft-band p { margin: 6px 0 0; font-size: 13.5px; color: #475569; line-height: 1.6; max-width: 40rem; }
.ft-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Notify form */
.ft-notify { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ft-notify input[type=email] { flex: 1 1 220px; min-width: 0; }
.ft-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; color: var(--ft-muted); margin-top: 8px; line-height: 1.5; }
.ft-consent input { margin-top: 2px; }
.ft-form-status { font-size: 12px; margin-top: 8px; min-height: 1em; }
.ft-form-status.ok { color: var(--ft-green); }
.ft-form-status.err { color: var(--ft-red); }

/* FAQ */
.ft-faq { margin-top: 24px; display: grid; gap: 10px; max-width: 52rem; }
.ft-faq details { background: #fff; border: 1px solid var(--ft-line); border-radius: 12px; padding: 14px 16px; }
.ft-faq summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ft-ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ft-faq summary::-webkit-details-marker { display: none; }
.ft-faq summary::after { content: "+"; color: var(--ft-muted); font-weight: 600; }
.ft-faq details[open] summary::after { content: "–"; }
.ft-faq details p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.65; color: #475569; }

/* ---------- Inputs ---------- */
.ft-input, .ft-select, .ft-textarea { width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--ft-line-2); background: #fff; font: inherit; font-size: 13.5px; color: var(--ft-ink); line-height: 1.45; }
.ft-textarea { resize: vertical; min-height: 84px; }
.ft-input:focus, .ft-select:focus, .ft-textarea:focus { outline: none; border-color: var(--ft-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.ft-input::placeholder, .ft-textarea::placeholder { color: #94a3b8; }

/* ================================================================
   Business Case Builder
   ================================================================ */
.bcb { padding: 32px 0 56px; }
.bcb-shell { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1100px) {
  .bcb-shell { grid-template-columns: 210px minmax(0, 1fr) 290px; }
  .bcb-shell.is-wide { grid-template-columns: 210px minmax(0, 1fr); }
  .bcb-shell.is-wide .bcb-side { grid-column: 2; position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .bcb-shell.is-wide .bcb-privacy { grid-column: 1 / -1; }
}

/* Stepper */
.bcb-steps { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
@media (min-width: 1100px) { .bcb-steps { flex-direction: column; overflow: visible; position: sticky; top: 84px; } }
.bcb-step { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ft-ink-2); cursor: pointer; text-align: left; white-space: nowrap; }
.bcb-step:hover { background: #f1f5f9; }
.bcb-step .n { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; background: #e2e8f0; color: #475569; }
.bcb-step.is-done .n { background: var(--ft-green); color: #fff; }
.bcb-step.is-active { background: #fff; border-color: #bfdbfe; color: var(--ft-blue); box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.bcb-step.is-active .n { background: var(--ft-blue); color: #fff; }

/* Panel */
.bcb-panel { background: #fff; border: 1px solid var(--ft-line); border-radius: 16px; box-shadow: 0 1px 3px rgba(15,23,42,.05); min-width: 0; }
.bcb-panel-head { padding: 20px 22px 0; }
.bcb-kicker { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ft-blue); }
.bcb-panel-head h2 { margin: 4px 0 0; font-size: 20px; font-weight: 800; color: var(--ft-ink); }
.bcb-panel-head p { margin: 6px 0 0; font-size: 13.5px; color: var(--ft-muted); line-height: 1.55; }
.bcb-body { padding: 18px 22px 8px; }
.bcb-section[hidden] { display: none; }
.bcb-field { margin-bottom: 16px; }
.bcb-field > label, .bcb-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ft-ink-2); margin-bottom: 6px; }
.bcb-field .opt { font-weight: 500; color: #94a3b8; }
.bcb-help { font-size: 12px; color: var(--ft-muted); margin-top: 6px; line-height: 1.5; }
.bcb-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bcb-row.c2 { grid-template-columns: 1fr 1fr; } .bcb-row.c3 { grid-template-columns: 1fr 1fr 1fr; } .bcb-row.c4 { grid-template-columns: repeat(4, 1fr); } .bcb-row.c-risk { grid-template-columns: 2.2fr 1fr 1fr; } }
.bcb-hint { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.55; background: var(--ft-amber-soft); border: 1px solid #fde68a; color: #92400e; }
.bcb-hint[hidden] { display: none; }
.bcb-tip { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.55; background: var(--ft-blue-soft); border: 1px solid #dbeafe; color: #1e3a8a; }
.bcb-tip b { font-weight: 700; }
.bcb-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #f1f5f9; gap: 2px; flex-wrap: wrap; }
.bcb-seg button { border: none; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: #475569; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.bcb-seg button.is-on { background: #fff; color: var(--ft-blue); box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.bcb-sizes { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .bcb-sizes { grid-template-columns: repeat(4, 1fr); } }
.bcb-size { border: 1px solid var(--ft-line-2); border-radius: 12px; background: #fff; padding: 12px; text-align: left; font: inherit; cursor: pointer; }
.bcb-size b { display: block; font-size: 18px; font-weight: 800; color: var(--ft-ink); }
.bcb-size span { display: block; font-size: 12px; color: var(--ft-muted); margin-top: 2px; }
.bcb-size.is-on { border-color: var(--ft-blue); background: var(--ft-blue-soft); box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.bcb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.bcb-chip { border: 1px dashed var(--ft-line-2); background: #fff; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; color: var(--ft-ink-2); cursor: pointer; }
.bcb-chip:hover { border-color: var(--ft-blue); color: var(--ft-blue); }

/* Repeater rows */
.bcb-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.bcb-item { border: 1px solid var(--ft-line); border-radius: 12px; padding: 12px; background: var(--ft-soft); }
.bcb-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--ft-muted); }
.bcb-item .ft-input, .bcb-item .ft-select, .bcb-item .ft-textarea { background: #fff; }
.bcb-item .ft-textarea { min-height: 56px; }
.bcb-mini-label { display: block; font-size: 11px; font-weight: 700; color: var(--ft-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.bcb-empty { font-size: 13px; color: var(--ft-muted); padding: 14px; border: 1px dashed var(--ft-line-2); border-radius: 12px; text-align: center; }
.bcb-total { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 14px; border-radius: 12px; background: #f1f5f9; font-size: 13px; color: var(--ft-ink-2); }
.bcb-total b { color: var(--ft-ink); }

/* Panel footer nav */
.bcb-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--ft-line); margin-top: 8px; flex-wrap: wrap; }
.bcb-nav .left { display: flex; gap: 6px; flex-wrap: wrap; }
.bcb-saved { font-size: 11.5px; color: var(--ft-muted); }

/* Side panel: score */
.bcb-side { display: grid; gap: 14px; }
@media (min-width: 1100px) { .bcb-side { position: sticky; top: 84px; } }
.bcb-score { background: #fff; border: 1px solid var(--ft-line); border-radius: 16px; padding: 16px; }
.bcb-score-top { display: flex; align-items: center; gap: 14px; }
.bcb-ring { position: relative; width: 76px; height: 76px; flex: 0 0 76px; }
.bcb-ring svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.bcb-ring .val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--ft-ink); }
.bcb-score h3 { margin: 0; font-size: 13px; font-weight: 800; color: var(--ft-ink); }
.bcb-band { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.bcb-band.b0 { background: #fee2e2; color: #991b1b; }
.bcb-band.b1 { background: #fef3c7; color: #92400e; }
.bcb-band.b2 { background: #d1fae5; color: #065f46; }
.bcb-checks { list-style: none; margin: 14px 0 0; padding: 0; font-size: 12.5px; }
.bcb-checks li { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; color: var(--ft-muted); }
.bcb-checks li .ic { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; border: 1.5px solid #cbd5e1; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }
.bcb-checks li.ok { color: var(--ft-ink-2); }
.bcb-checks li.ok .ic { background: var(--ft-green); border-color: var(--ft-green); color: #fff; }
.bcb-checks li.part .ic { border-color: #f59e0b; color: #b45309; }
.bcb-checks li .pts { margin-left: auto; font-size: 11px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.bcb-checks li button { all: unset; cursor: pointer; }
.bcb-checks li button:hover { text-decoration: underline; }
.bcb-figs { background: #fff; border: 1px solid var(--ft-line); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bcb-fig .k { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ft-muted); }
.bcb-fig .v { font-size: 16px; font-weight: 800; color: var(--ft-ink); margin-top: 2px; font-variant-numeric: tabular-nums; }
.bcb-fig .v.pos { color: var(--ft-green); }
.bcb-fig .v.neg { color: var(--ft-red); }
.bcb-figs .note { grid-column: 1 / -1; font-size: 11px; color: #94a3b8; line-height: 1.45; }
.bcb-privacy { font-size: 11.5px; line-height: 1.55; color: var(--ft-muted); padding: 0 4px; }

/* Review: one-page preview */
.bcb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.bcb-doc { border: 1px solid var(--ft-line); border-radius: 6px; background: #fff; box-shadow: 0 10px 30px -18px rgba(15,23,42,.35); padding: 28px; font-size: 12px; color: var(--ft-ink-2); line-height: 1.5; max-width: 820px; }
.bcb-doc-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--ft-blue); padding-bottom: 12px; }
.bcb-doc-head h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ft-ink); line-height: 1.2; }
.bcb-doc-meta { margin-top: 4px; font-size: 11px; color: var(--ft-muted); }
.bcb-doc-score { text-align: right; flex: 0 0 auto; font-size: 10px; color: var(--ft-muted); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.bcb-doc-score b { display: block; font-size: 22px; color: var(--ft-ink); letter-spacing: 0; }
.bcb-doc-decision { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--ft-blue-soft); border-left: 4px solid var(--ft-blue); color: #1e3a8a; }
.bcb-doc-cols { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 720px) { .bcb-doc-cols { grid-template-columns: 1.35fr 1fr; } }
.bcb-doc h4 { margin: 12px 0 4px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ft-blue); }
.bcb-doc h4:first-child { margin-top: 0; }
.bcb-doc p { margin: 0; white-space: pre-line; }
.bcb-doc .muted { color: #94a3b8; font-style: italic; }
.bcb-doc-fin { border: 1px solid var(--ft-line); border-radius: 8px; padding: 10px 12px; background: var(--ft-soft); }
.bcb-doc-fin div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.bcb-doc-fin b { color: var(--ft-ink); font-variant-numeric: tabular-nums; }
.bcb-doc table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.bcb-doc th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--ft-muted); border-bottom: 1px solid var(--ft-line); padding: 4px 6px 4px 0; }
.bcb-doc td { border-bottom: 1px solid #f1f5f9; padding: 5px 6px 5px 0; vertical-align: top; }
.bcb-doc ul { margin: 0; padding-left: 16px; }
.bcb-doc-foot { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--ft-line); font-size: 10px; color: #94a3b8; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* Post-download CTA */
.bcb-next { margin-top: 20px; padding: 18px; border-radius: 14px; border: 1px solid #a7f3d0; background: var(--ft-green-soft); }
.bcb-next[hidden] { display: none; }
.bcb-next h3 { margin: 0; font-size: 15px; font-weight: 800; color: #064e3b; }
.bcb-next p { margin: 6px 0 0; font-size: 13px; color: #065f46; line-height: 1.6; }
.bcb-next .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Toast */
.ft-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; background: var(--ft-ink); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100vw - 32px); }
.ft-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.sr-only-ft { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Financials (cash flow, ranges, results) ---------- */
.bcb-subhead { margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--ft-line); font-size: 13px; font-weight: 800; color: var(--ft-ink); }
.bcb-subhead .opt { font-weight: 500; color: #94a3b8; }
.bcb-rate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bcb-chip.is-on { border-style: solid; border-color: var(--ft-blue); background: var(--ft-blue-soft); color: var(--ft-blue); font-weight: 700; }
.bcb-seg button[hidden] { display: none; }
.bcb-checks-opt { display: grid; gap: 8px; margin: 4px 0 4px; }
.bcb-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ft-ink-2); cursor: pointer; line-height: 1.45; }
.bcb-check[hidden] { display: none; }
.bcb-check input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--ft-blue); }

.bcb-cf-wrap { overflow-x: auto; border: 1px solid var(--ft-line); border-radius: 12px; background: #fff; }
.bcb-cf { border-collapse: collapse; width: 100%; min-width: 880px; font-size: 12.5px; }
.bcb-cf select[data-key="type"] { min-width: 128px; }
.bcb-cf th { position: sticky; top: 0; background: #f8fafc; text-align: left; font-size: 11px; font-weight: 700; color: var(--ft-muted); padding: 8px 6px; border-bottom: 1px solid var(--ft-line); white-space: nowrap; line-height: 1.25; }
.bcb-cf th span { font-weight: 500; color: #94a3b8; }
.bcb-cf td { padding: 5px 6px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.bcb-cf .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bcb-cf td.lbl { min-width: 240px; }
.bcb-cf .ft-input, .bcb-cf .ft-select { padding: 6px 8px; font-size: 12.5px; border-radius: 7px; }
.bcb-cf input.num { width: 84px; text-align: right; }
.bcb-cf td.rng .rngw { display: flex; gap: 4px; justify-content: flex-end; }
.bcb-cf td.rng input.num { width: 52px; }
.bcb-cf td.ro { color: var(--ft-ink-2); }
.bcb-cf td.tot { font-weight: 700; color: var(--ft-ink); }
.bcb-cf tr.is-benefit td.lbl { border-left: 3px solid #a7f3d0; }
.bcb-cf tr.is-cost td.lbl { border-left: 3px solid #fecaca; }
.bcb-cf-linked { font-size: 12px; font-weight: 600; color: var(--ft-ink-2); margin-bottom: 4px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcb-cf-ramp { max-width: 230px; }
.bcb-cf-type { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.bcb-cf-type.benefit { background: var(--ft-green-soft); color: #065f46; }
.bcb-cf-hint { font-size: 10.5px; color: #94a3b8; white-space: nowrap; }
.bcb-cf-empty { text-align: center; color: var(--ft-muted); padding: 16px !important; }
.bcb-cf tfoot td { background: #f8fafc; font-weight: 600; color: var(--ft-ink-2); border-bottom: 1px solid var(--ft-line); }
.bcb-cf tfoot tr.net td { font-weight: 800; color: var(--ft-ink); }
.bcb-cf tfoot tr.cum td, .bcb-cf tfoot tr.disc td { font-weight: 500; color: var(--ft-muted); }
.bcb-cf td.neg { color: var(--ft-red); }
.bcb-cf-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }

.bcb-fin { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 14px; }
.bcb-fin th { text-align: right; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ft-muted); padding: 6px 8px; border-bottom: 1px solid var(--ft-line); }
.bcb-fin th:first-child { text-align: left; }
.bcb-fin td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; }
.bcb-fin td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bcb-fin .is-base { color: var(--ft-ink); font-weight: 800; background: #f8fafc; }

.bcb-chart { border: 1px solid var(--ft-line); border-radius: 12px; padding: 12px; background: #fff; }
.bcb-chart-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ft-muted); margin-bottom: 4px; }
.bcb-chart svg { width: 100%; height: auto; display: block; }
.bcb-chart polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.bcb-chart polyline.base { stroke: var(--ft-blue); }
.bcb-chart polyline.down { stroke: var(--ft-red); stroke-width: 1.6; stroke-dasharray: 5 4; }
.bcb-chart polyline.up { stroke: var(--ft-green); stroke-width: 1.6; stroke-dasharray: 5 4; }
.bcb-chart line.zero { stroke: #94a3b8; stroke-width: 1; }
.bcb-chart text { font-size: 11px; fill: var(--ft-muted); font-family: inherit; }
.bcb-legend { display: flex; gap: 14px; justify-content: flex-end; font-size: 11.5px; color: var(--ft-muted); margin-top: 4px; }
.bcb-legend span::before { content: ""; display: inline-block; width: 16px; height: 0; border-top: 2.5px solid var(--ft-blue); vertical-align: middle; margin-right: 6px; }
.bcb-legend span.down::before { border-top: 2px dashed var(--ft-red); }
.bcb-legend span.up::before { border-top: 2px dashed var(--ft-green); }

.bcb-fig .r { font-size: 10.5px; color: #94a3b8; margin-top: 1px; font-variant-numeric: tabular-nums; }

.bcb-doc2 { margin-top: 18px; }
.bcb-doc2[hidden] { display: none; }
.bcb-doc-small { font-size: 11px; color: var(--ft-muted); margin-top: 6px !important; }
.bcb-doc-scroll { overflow-x: auto; }
.bcb-doc .bcb-fin { font-size: 11.5px; }
.bcb-doc tr.sum td { font-weight: 700; color: var(--ft-ink); background: #f8fafc; }
.bcb-doc tr.cum td { color: var(--ft-muted); }
.bcb-doc td.num, .bcb-doc th.num { text-align: right; white-space: nowrap; }

/* Custom calculator CTA */
.bcb-custom { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px dashed #93c5fd; background: var(--ft-blue-soft); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .bcb-custom { flex-direction: row; align-items: center; justify-content: space-between; } .bcb-custom .ft-btn { flex: 0 0 auto; } }
.bcb-custom h3 { margin: 0; font-size: 14px; font-weight: 800; color: #1e3a8a; }
.bcb-custom p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.55; color: #1e40af; max-width: 46rem; }
.ft-link-btn { all: unset; color: var(--ft-blue); cursor: pointer; text-decoration: underline; }
.ft-link-btn:focus-visible { outline: 2px solid var(--ft-blue); outline-offset: 2px; }

/* Suggested lines per business case type */
.bcb-sug { margin: 0 0 16px; padding: 14px; border-radius: 12px; background: var(--ft-soft); border: 1px solid var(--ft-line); }
.bcb-sug-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.bcb-sug-head label { font-size: 12.5px; font-weight: 700; color: var(--ft-ink-2); }
.bcb-sug-head .ft-select { width: auto; min-width: 240px; max-width: 100%; padding: 7px 10px; font-size: 13px; background: #fff; }
.bcb-chip.is-added { border-style: solid; border-color: #a7f3d0; background: var(--ft-green-soft); color: #065f46; cursor: default; }
.bcb-cf-tip { font-size: 10.5px; color: #94a3b8; margin-top: 3px; line-height: 1.35; max-width: 260px; }

/* Fixes: the [hidden] attribute must win over component display rules */
#bcb-app [hidden], .ft-section [hidden] { display: none !important; }

/* Preview: full-width financial table, no label wrapping */
.bcb-doc .bcb-fin th, .bcb-doc .bcb-fin td { padding: 5px 8px; white-space: nowrap; }
.bcb-doc-finwide { margin-top: 4px; overflow-x: auto; }
.bcb-fig .r { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Phone: stack the risk table in the preview instead of four squeezed columns */
@media (max-width: 640px) {
  .bcb-doc { padding: 18px; }
  .bcb-doc table.bcb-risks thead { display: none; }
  .bcb-doc table.bcb-risks tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--ft-line); }
  .bcb-doc table.bcb-risks td { display: inline; border: 0; padding: 0; }
  .bcb-doc table.bcb-risks td.r-desc { display: block; font-weight: 700; color: var(--ft-ink); margin-bottom: 2px; }
  .bcb-doc table.bcb-risks td[data-l]::before { content: attr(data-l) ": "; color: var(--ft-muted); }
  .bcb-doc table.bcb-risks td[data-l="Impact"]::before { content: " · Impact: "; }
  .bcb-doc table.bcb-risks td[data-l="Mitigation"] { display: block; margin-top: 2px; }
  .bcb-doc { padding: 14px; }
  .bcb-doc .bcb-fin { font-size: 10.5px; }
  .bcb-doc .bcb-fin th { font-size: 9.5px; letter-spacing: 0; }
  .bcb-doc .bcb-fin th, .bcb-doc .bcb-fin td { padding: 5px 3px; }
}
