/* PacWest Projection Chart styles — pairs with proj-chart.js.
 * All visual decisions match hockey-stick-breakeven-spec.md §1 (brand tokens)
 * and §9 (responsive + print).
 *
 * Tokens used:
 *   teal       #36595C
 *   teal-deep  #2A4447
 *   orange     #F97330
 *   ink        #27393A
 *   muted      #6B7C7B
 */

.proj-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: 'Poppins', system-ui, sans-serif;
}

/* Phase labels (PILOT / ONGOING) */
.proj-chart-phase {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.proj-chart-phase.pilot   { fill: #F97330; }
.proj-chart-phase.ongoing { fill: #36595C; }

/* Per-dot value labels */
.proj-chart-value {
  font-size: 11px;
  font-weight: 700;
  fill: #27393A;
}

/* X-axis month labels */
.proj-chart-x-label {
  font-size: 11px;
  font-weight: 600;
  fill: #6B7C7B;
  letter-spacing: 0.02em;
}

/* Break-even caption on the dashed line */
.proj-chart-be-label {
  font-size: 10.5px;
  font-weight: 700;
  fill: #F97330;
  letter-spacing: 0.01em;
}

/* Break-even marker label above the crossing dot */
.proj-chart-be-marker-label {
  font-size: 11px;
  font-weight: 800;
  fill: #F97330;
  letter-spacing: 0.01em;
}

/* The curve itself — keep crisp on retina */
.proj-chart-curve {
  vector-effect: non-scaling-stroke;
}

/* Compact variant for homepage / BOFU strips — same chart, tighter padding.
 * The widget's outer container already scales the SVG, so we just shrink
 * label sizes slightly for visual density. */
.proj-widget--compact .proj-chart-phase       { font-size: 9px; }
.proj-widget--compact .proj-chart-value       { font-size: 10px; }
.proj-widget--compact .proj-chart-x-label     { font-size: 10px; }
.proj-widget--compact .proj-chart-be-label    { font-size: 9.5px; }
.proj-widget--compact .proj-chart-be-marker-label { font-size: 10px; }

/* ─── §9 Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  /* SVG already scales fluidly via width:100%. The text inside the viewBox
   * scales with it — these media-query overrides only kick in for the
   * inputs/cards rendered outside the SVG. The chart itself remains legible
   * because the labels are placed at fixed positions inside the viewBox.
   */
  .proj-chart-be-label    { font-size: 9.5px; }
}

/* ─── §9 Print rules ────────────────────────────────────────────────────── */
@media print {
  .proj-chart-svg { page-break-inside: avoid; }

  /* Hide screen-only affordances: the pre-fill link + the call-quality toggle
   * row sit OUTSIDE the SVG, so they're targeted on their own selectors.
   * The chart + break-even annotations DO print. */
  .proj-prefill-link,
  .proj-quality-row { display: none !important; }

  .proj-peek { background: none; border-color: #ccc; }
}

/* ── Numbers peek — compact "punchline" strip below the chart ──────────────
 * Used on the homepage (mirrors the live ongoing-rev outputs via setOut())
 * and on the 5 BOFU landing pages (static, hardcoded defaults).
 * Designed for the 7-second scanner: three KPIs, big numbers, soft seps. */
.proj-peek {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.4rem 1rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, #fff5ef 0%, #fff8f3 100%);
  border: 1.5px solid rgba(249, 115, 48, 0.25);
  border-radius: 14px;
}
.proj-peek-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 0.6rem;
}
.proj-peek-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 1.6rem;
  color: #27393A;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.proj-peek-num-accent { color: #F97330; }
.proj-peek-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.72rem;
  color: #6b7d80;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}
.proj-peek-sep {
  color: rgba(54, 89, 92, 0.35);
  font-weight: 300;
  font-size: 1.4rem;
  user-select: none;
}
@media (max-width: 560px) {
  .proj-peek { padding: 0.85rem 0.6rem; gap: 0.3rem 0.5rem; }
  .proj-peek-num  { font-size: 1.3rem; }
  .proj-peek-label { font-size: 0.66rem; }
  .proj-peek-sep   { display: none; }
}
