/*
 * styleDebrief.css — end-of-game report styles (EXECUTION_PLAN.md §4
 * Session 5): the debrief grid, risk-reveal map, per-year summary table and
 * the share-code card. Split from styleDashboard.css at the 300-line cap —
 * that sheet now covers the live dashboard only. Display layer only.
 */

/* --- Debrief report --- */

.debrief {
  max-width: 1340px;
  margin-top: 1.4rem;
  padding-top: 0.4rem;
  border-top: 2px solid #d8dce1;
}

.debrief-title { font-size: 1.25rem; margin: 0.6rem 0 0.15rem; }
.debrief-meta { font-size: 0.85rem; color: #6a727b; margin: 0 0 0.9rem; }

.debrief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.debrief-grid .card { margin-bottom: 0; }
.debrief-score, .card-risk { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .debrief-grid { grid-template-columns: 1fr; }
}

/* Report-scale stat tiles: bigger headline numbers than the live panel. */
.debrief-score .stat-value { font-size: 2.4rem; }
.debrief-spend .stat-value { font-size: 1.5rem; }

/* --- Risk-reveal map --- */

.risk-map { max-width: 760px; margin: 0 auto; }

.risk-road { transition: none; } /* static report — no live recolouring */

/* Acquired masked defects: dashed casing over the risk-ramp colour. */
.risk-acquired {
  fill: none;
  stroke: #c62828;
  stroke-width: 2.4;
  stroke-dasharray: 6 4;
  stroke-linecap: butt;
  pointer-events: none;
}

.risk-legend { margin-top: 0.6rem; }

.risk-ramp {
  display: inline-block;
  width: 5.5rem;
  height: 0.7rem;
  border-radius: 3px;
  /* Endpoints match debrief.js RAMP_LOW → RAMP_HIGH. */
  background: linear-gradient(90deg, #a9b3bd, #4a148c);
}

.legend-chip-acquired {
  background: repeating-linear-gradient(90deg,
    #c62828 0 6px, transparent 6px 10px);
  border-radius: 0;
  height: 3px;
}

/* --- Tables (per-year summary, share comparison) --- */

.year-table, .compare-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.year-table th, .compare-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a919a;
  border-bottom: 1px solid #d8dce1;
  padding: 0.3rem 0.6rem 0.3rem 0;
}

.year-table td, .compare-table td {
  padding: 0.28rem 0.6rem 0.28rem 0;
  border-bottom: 1px solid #eef0f3;
  color: #3a444e;
}

.year-table .year-forfeited td:nth-child(5) { color: #c62828; }

/* --- Share code --- */

.share-code, .share-input {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #ccd2d8;
  border-radius: 6px;
  color: #3a444e;
  background: #fafbfc;
}

.share-row { display: flex; gap: 0.5rem; margin-top: 0.6rem; }

.share-button {
  padding: 0.35rem 0.9rem;
  border: none;
  border-radius: 6px;
  background: #2e5e8c;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}
.share-button:hover { background: #24496d; }

/* Copy button: fixed width so the "Copied ✓" confirmation does not make the
   share-code field jump, and a green confirmed state. */
.share-copy { min-width: 6.5rem; }
.share-button.copied { background: #2e7d32; }
.share-button.copied:hover { background: #2e7d32; }

.share-result { margin-top: 0.6rem; font-size: 0.85rem; }
.share-error { color: #c62828; }
.share-note { font-size: 0.75rem; color: #8a919a; margin: 0.4rem 0 0; }
