/* Board deck builder, in Blueprint Equity Design System v4.
   Every rule is scoped under #bd-root. Tokens only (tokens.css). Mirrors the pitch deck builder. */

#bd-root { color: var(--fg-1); font-family: var(--font-sans); }
#bd-root *, #bd-root *::before, #bd-root *::after { box-sizing: border-box; }
#bd-root .bd-loading { padding: var(--space-7) 0; color: var(--fg-2); font-size: 14px; }
#bd-root .bd-app { min-width: 0; }

#bd-root .bd-kicker { font-size: 12.5px; line-height: 1.3; font-weight: 600; letter-spacing: .005em; color: var(--fg-2); }
#bd-root .bd-hint { font-size: 13px; line-height: 1.45; color: var(--fg-2); }
#bd-root .bd-hint-block { margin-top: var(--space-4); font-size: 14px; }
#bd-root .bd-hint a, #bd-root .bd-hint-block a { color: var(--fg-link); }
#bd-root .bd-help { font-size: 17px; line-height: 1.55; color: var(--fg-2); max-width: var(--measure); margin: var(--space-3) 0 var(--space-6); }
#bd-root .bd-title { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; margin-top: var(--space-1); }

/* Masthead: company and the step rail. Sticks to the top of the viewport while you work. */
#bd-root .bd-masthead { position: sticky; top: var(--ws-nav-offset, 0px); transition: top var(--ws-nav-ease, 0s); z-index: 20; background: var(--bg-raised); border-bottom: 1px solid var(--rule); }
#bd-root .bd-masthead-row { padding: var(--space-4) 0 var(--space-3); display: flex; align-items: flex-end; gap: var(--space-3); flex-wrap: wrap; }
#bd-root .bd-masthead-title { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
#bd-root .bd-masthead-name { font-size: 21px; line-height: 1.28; font-weight: 600; letter-spacing: -.01em; }
#bd-root .bd-steps { padding: 0 0 var(--space-2); display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule); }
#bd-root .bd-step {
  appearance: none; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--fg-2);
  border-radius: 0; padding: var(--space-3) 0 10px; margin-right: var(--space-3);
  font: 500 13.5px/1.2 var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2);
}
#bd-root .bd-step:hover { color: var(--fg-1); }
#bd-root .bd-step.is-active { color: var(--fg-1); border-bottom-color: var(--bp-primary); font-weight: 600; }
#bd-root .bd-step-n { font-size: 12.5px; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
#bd-root .bd-step-dot { width: 7px; height: 7px; border-radius: var(--radius-dot); background: var(--data-ghost); flex: none; }
#bd-root .bd-step.is-done .bd-step-dot { background: var(--status-positive); }

/* Inputs: sunken fills, square, a hairline that turns blue on focus. */
#bd-root .bd-input {
  appearance: none; -webkit-appearance: none;
  background: var(--bg-sunken); border: 0; border-bottom: 1px solid var(--rule-input); border-radius: var(--radius-sheet);
  padding: 10px 12px 9px; font: 400 16px/1.4 var(--font-sans); color: var(--fg-1); width: 100%; min-width: 0;
}
#bd-root .bd-input:hover { border-bottom-color: var(--rule-strong); }
#bd-root .bd-input:focus, #bd-root .bd-input:focus-visible { outline: none; border-bottom: 2px solid var(--focus); padding-bottom: 8px; }
#bd-root .bd-input::placeholder { color: var(--fg-2); opacity: .7; }
#bd-root .bd-input-company { width: 220px; font-weight: 600; }
#bd-root .bd-input-headline { font-size: 18px; font-weight: 600; letter-spacing: -.005em; }
#bd-root .bd-textarea { line-height: 1.5; resize: vertical; }
#bd-root .bd-numeric { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
#bd-root .bd-select { appearance: auto; -webkit-appearance: menulist; width: auto; font-size: 14px; font-weight: 600; padding: 6px 8px; cursor: pointer; }

/* Buttons: soft corners for pressing. Ink primary, outlined secondary. */
#bd-root .bd-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-press);
  font: 500 15px/1 var(--font-sans); cursor: pointer; white-space: nowrap;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
#bd-root .bd-btn svg { flex: none; }
#bd-root .bd-btn-primary { background: var(--action-primary); color: var(--fg-on-action); }
#bd-root .bd-btn-primary:hover { background: var(--action-primary-hover); color: var(--fg-on-action-hover); }
#bd-root .bd-btn-secondary, #bd-root .bd-btn-ghost { background: transparent; color: var(--fg-1); border-color: var(--rule-strong); }
#bd-root .bd-btn-secondary:hover, #bd-root .bd-btn-ghost:hover { background: var(--fg-1); color: var(--bg-page); }
#bd-root .bd-btn-ghost { border-color: var(--rule); color: var(--fg-2); }
#bd-root .bd-btn-dashed { align-self: flex-start; height: 38px; padding: 0 14px; background: transparent; border: 1px dashed var(--rule-input); color: var(--fg-1); font-size: 14px; }
#bd-root .bd-btn-dashed:hover { border-style: solid; border-color: var(--rule-strong); }
#bd-root .bd-btn-back { background: transparent; color: var(--fg-1); padding: 0 4px; }
#bd-root .bd-btn-back:hover { color: var(--fg-link); }
#bd-root .bd-x {
  appearance: none; flex-shrink: 0; display: inline-grid; place-items: center; width: 32px; height: 32px;
  background: transparent; border: 0; border-radius: var(--radius-press); color: var(--fg-2); cursor: pointer; padding: 0;
}
#bd-root .bd-x:hover { color: var(--status-negative); background: var(--bg-sunken); }
#bd-root .bd-link { appearance: none; background: none; border: 0; padding: 0; font: 500 14px/1.2 var(--font-sans); color: var(--fg-link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* A slide step: the number, the job, then the form beside the live slide and the guidance. */
#bd-root .bd-content { padding-top: var(--space-6); }
#bd-root .bd-head { display: flex; align-items: flex-start; gap: var(--space-5); }
#bd-root .bd-num { font-size: 64px; font-weight: 600; letter-spacing: -.045em; line-height: .85; font-variant-numeric: tabular-nums lining-nums; }
#bd-root .bd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-6); align-items: start; }
#bd-root .bd-form { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
#bd-root .bd-side { position: sticky; top: calc(var(--ws-nav-offset, 0px) + 132px); transition: top var(--ws-nav-ease, 0s); display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }

#bd-root .bd-card {
  background: var(--bg-page); border: 1px solid var(--rule); border-radius: var(--radius-sheet);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); min-width: 0;
}
#bd-root .bd-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
#bd-root .bd-inline { display: inline-flex; align-items: center; gap: var(--space-2); }
#bd-root .bd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#bd-root .bd-field.is-wide { grid-column: 1 / -1; }
#bd-root .bd-label { font-size: 12.5px; line-height: 1.3; font-weight: 600; letter-spacing: .005em; color: var(--fg-1); }
#bd-root .bd-grid { display: grid; gap: var(--space-3) var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); align-items: start; }
#bd-root .bd-grid-pair { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
#bd-root .bd-list { display: flex; flex-direction: column; gap: var(--space-4); }
#bd-root .bd-list-item { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--rule); }
#bd-root .bd-list-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
#bd-root .bd-list.is-compact { gap: var(--space-2); }
#bd-root .bd-list-row { display: flex; align-items: center; gap: var(--space-2); }
#bd-root .bd-list.is-compact > .bd-btn-dashed { margin-top: var(--space-1); }
#bd-root .bd-stack { display: flex; flex-direction: column; gap: var(--space-3); }
#bd-root .bd-grid-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
#bd-root .bd-grid-kr { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); }
#bd-root .bd-grid-action { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1.2fr); }
#bd-root .bd-field .bd-select { width: 100%; font-size: 15px; padding: 10px 8px 9px; }
#bd-root .bd-check { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 15px; font-weight: 500; cursor: pointer; }
#bd-root .bd-check input { width: 18px; height: 18px; accent-color: var(--bp-primary); margin: 0; }
#bd-root .bd-hint.is-warn { color: var(--status-negative); }

/* Chart images on the financial detail step */
#bd-root .bd-file { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
#bd-root .bd-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
#bd-root .bd-btn-sm { position: relative; height: 38px; padding: 0 14px; font-size: 14px; }
#bd-root .bd-btn-sm:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
#bd-root .bd-thumb { width: 120px; aspect-ratio: 16 / 10; object-fit: contain; background: #FFFFFF; border: 1px solid var(--rule); display: block; }

/* Slides written by this step, under the preview */
#bd-root .bd-slides { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); margin-top: calc(-1 * var(--space-3)); }
#bd-root .bd-slide-tab {
  appearance: none; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--fg-2); border-radius: 0;
  padding: var(--space-2) 0 6px; font: 500 13px/1.2 var(--font-sans); cursor: pointer; display: inline-flex; gap: 6px; align-items: baseline;
}
#bd-root .bd-slide-tab:hover { color: var(--fg-1); }
#bd-root .bd-slide-tab.is-active { color: var(--fg-1); border-bottom-color: var(--bp-primary); font-weight: 600; }

/* Live slide and the framework's guidance */
#bd-root .bd-preview { border: 1px solid var(--rule); border-radius: var(--radius-sheet); overflow: hidden; background: var(--bg-inverse); }
#bd-root .bd-preview-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
#bd-root .bd-preview-wait { aspect-ratio: 16 / 9; }
#bd-root .bd-guide { border-top: 1px solid var(--rule-strong); display: flex; flex-direction: column; }
#bd-root .bd-guide-block { padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
#bd-root .bd-guide-block p, #bd-root .bd-guide-block ul { margin: var(--space-2) 0 0; font-size: 15px; line-height: 1.5; }
#bd-root .bd-guide-block ul { padding-left: 1.1em; }
#bd-root .bd-guide-block li + li { margin-top: 4px; }
#bd-root .bd-guide-q p { font-size: 18px; font-weight: 600; letter-spacing: -.005em; }

/* Review */
#bd-root .bd-review-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
#bd-root .bd-review-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
#bd-root .bd-score { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-5) 0; padding-top: var(--space-4); border-top: 1px solid var(--rule-strong); }
#bd-root .bd-score-n { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }
#bd-root .bd-score-label { font-size: 17px; color: var(--fg-2); }
#bd-root .bd-preview-full { margin-top: var(--space-2); }
#bd-root .bd-review { margin-top: var(--space-6); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--space-5) var(--space-6); }
#bd-root .bd-review-slide { border-top: 1px solid var(--rule-strong); padding-top: var(--space-3); }
#bd-root .bd-review-slide-head { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-2); }
#bd-root .bd-review-n { font-size: 14px; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
#bd-root .bd-review-name { font-size: 18px; font-weight: 600; margin-right: auto; }
#bd-root .bd-checks { list-style: none; margin: 0; padding: 0; }
#bd-root .bd-checks li { position: relative; padding: 7px 0 7px 20px; font-size: 14px; line-height: 1.45; border-bottom: 1px solid var(--rule); }
#bd-root .bd-checks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: var(--radius-dot); }
#bd-root .bd-checks li.is-ok { color: var(--fg-2); }
#bd-root .bd-checks li.is-ok::before { background: var(--status-positive); }
#bd-root .bd-checks li.is-gap::before { background: var(--status-negative); }
#bd-root .bd-rehearse { margin-top: var(--space-7); }
#bd-root .bd-rehearse-lede { margin: 0; font-size: 16px; line-height: 1.55; color: var(--fg-2); max-width: var(--measure); }
#bd-root .bd-questions { margin: 0; padding: 0; list-style: none; counter-reset: q; columns: 2; column-gap: var(--space-6); }
#bd-root .bd-questions li { counter-increment: q; break-inside: avoid; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.45; }
#bd-root .bd-questions li span { display: block; font-size: 12.5px; font-weight: 600; color: var(--fg-2); margin-bottom: 2px; }
#bd-root .bd-questions li span::before { content: counter(q, decimal-leading-zero) "  "; }

/* Footer nav */
#bd-root .bd-footer-nav { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--rule); }

@media (max-width: 1000px) {
  #bd-root .bd-split { grid-template-columns: minmax(0, 1fr); }
  #bd-root .bd-side { position: static; order: -1; }
}
@media (max-width: 900px) {
  #bd-root .bd-masthead-title { flex-basis: 100%; }
  #bd-root .bd-input-company { flex: 1 1 140px; width: auto; }
  #bd-root .bd-card { padding: var(--space-4); }
  #bd-root .bd-num { font-size: 48px; }
  #bd-root .bd-title { font-size: 24px; }
}
@media (max-width: 560px) {
  #bd-root .bd-masthead { position: static; }
  #bd-root .bd-masthead-row .bd-btn { flex: 1 1 auto; }
  #bd-root .bd-step { margin-right: var(--space-3); font-size: 13px; }
  #bd-root .bd-head { gap: var(--space-3); }
  #bd-root .bd-grid-pair, #bd-root .bd-grid-stage, #bd-root .bd-grid-action { grid-template-columns: minmax(0, 1fr); }
  #bd-root .bd-grid-kr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #bd-root .bd-grid-kr > .bd-field:last-child { grid-column: 1 / -1; }
  #bd-root .bd-review-actions .bd-btn { flex: 1 1 auto; }
  #bd-root .bd-questions { columns: 1; }
}
