/* DealCommander — board memo and partner brief work product.
 * Treatment for the draft banner, the copy/download action bar, the plain-text
 * preview and the memo section cards. Colour comes only from tokens.css. */

/* ---- Draft banner: the memo is never final advice, and it says so ---- */

.draft-banner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-left: 3px solid var(--caution);
  border-top: var(--stroke-hairline);
  border-right: var(--stroke-hairline);
  border-bottom: var(--stroke-hairline);
  border-radius: var(--radius-md);
  background: var(--bg-panel-alt);
}

.draft-banner-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.draft-banner-title {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--caution);
}

.draft-banner-text {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 92ch;
}

/* ---- Copy / download action bar ---- */

.work-product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: var(--stroke-hairline);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}

.work-product-meta {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: var(--fs-micro);
  color: var(--text-tertiary);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .work-product-meta { margin-left: 0; }
}

.work-product-preview {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  padding: var(--space-4);
  border: var(--stroke-hairline);
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-family: var(--font-num);
  font-size: var(--fs-micro);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.work-product-preview[hidden] { display: none; }

/* Off-screen textarea used by the execCommand copy fallback. It must stay in
 * the document long enough to be selected, but must never be visible or move
 * the page, so it is parked outside the viewport rather than display:none —
 * a hidden element cannot be selected. */
.offscreen-copy {
  position: fixed;
  top: -1000px;
  left: -1000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- Memo sections ---- */

.memo-section .card-title {
  margin-bottom: var(--space-1);
}

.memo-section-note {
  margin-bottom: var(--space-3);
  font-size: var(--fs-micro);
  color: var(--text-tertiary);
}

.memo-lines {
  margin: 0;
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.memo-lines li {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.55;
}

.memo-lines li::marker {
  color: var(--accent-muted);
}

.memo-recommendation {
  border-left: 3px solid var(--accent);
}

.memo-recommendation p {
  margin: var(--space-2) 0 0;
  color: var(--text-primary);
  font-size: var(--fs-lead);
  line-height: 1.5;
}
