/* RAMP 90S November 5 prelaunch experience: visual emphasis only.
   Uses already-rendered, source-grounded values. No new state, actions or data. */
:root {
  --r90-prelaunch-review: var(--r90-stage-review);
  --r90-prelaunch-align: var(--r90-stage-align);
  --r90-prelaunch-mobilize: var(--r90-stage-mobilize);
  --r90-prelaunch-prove: var(--r90-stage-prove);
  --r90-prelaunch-sustain: var(--r90-stage-sustain);
  --r90-prelaunch-ink: #173348;
}

/* Owner's November 11 card correction: reuse the original simple output
   divider, typography, icons and navy buttons instead of highlighted boxes.
   Equal grid rows keep stacked mobile cards consistent without fixed heights. */
#view.r90-home-positioning .workflow-grid {grid-auto-rows:1fr;}
#view.r90-home-positioning .workflow-card .btn:focus-visible,
#view.r90-home-refined .workflow-card .btn:focus-visible {
  outline: 3px solid var(--r90-prelaunch-review);
  outline-offset: 3px;
}

/* Review: material source findings and what is not yet established stay prominent. */
body[data-r90-phase="review"] #view .r90-contract-summary-primary,
body[data-r90-phase="review"] #view .r90-parity-review-layer {
  border-top: 5px solid var(--r90-prelaunch-review);
}
body[data-r90-phase="review"] #view .r90-parity-counts strong,
body[data-r90-phase="review"] #view .r90-contract-summary-primary h2 {
  color: var(--r90-prelaunch-review);
}
body[data-r90-phase="review"] #view .r90-parity-priority {
  border-left-width: 5px;
}
body[data-r90-phase="review"] #view .r90-parity-priority h3 {
  font-size: 17px;
  line-height: 1.35;
}

/* Align: open choices before supporting explanation, with clear keyboard focus. */
body[data-r90-phase="align"] #view .r90-simple-align-summary {
  border-left: 5px solid var(--r90-prelaunch-align);
}
body[data-r90-phase="align"] #view .r90-simple-finding > summary {
  border-left: 5px solid var(--r90-prelaunch-align);
  gap: 14px;
}
body[data-r90-phase="align"] #view .r90-simple-finding > summary strong {
  color: var(--r90-prelaunch-ink);
  line-height: 1.35;
}
body[data-r90-phase="align"] #view .r90-simple-finding > summary:focus-visible {
  outline: 3px solid var(--r90-prelaunch-review);
  outline-offset: -3px;
}

/* Mobilize: existing 30/60/90 windows and real Action / Owner / When / Done when. */
body[data-r90-phase="mobilize"] #view .r90-simple-plan-group-head {
  border-bottom: 3px solid var(--r90-prelaunch-mobilize);
  padding-bottom: 10px;
  align-items: center;
}
body[data-r90-phase="mobilize"] #view .r90-simple-plan-group-head h2 {
  color: var(--r90-prelaunch-ink);
  font-size: clamp(18px, 2vw, 23px);
}
body[data-r90-phase="mobilize"] #view .r90-simple-plan-group-head > span {
  font-size: 12px;
  font-weight: 700;
  color: #385768;
}
body[data-r90-phase="mobilize"] #view .r90-simple-action {
  border-left: 5px solid var(--r90-prelaunch-mobilize);
  box-shadow: 0 2px 8px rgba(9, 46, 72, .05);
}
body[data-r90-phase="mobilize"] #view .r90-simple-action-main h3 {
  font-size: 18px;
  line-height: 1.35;
  color: var(--r90-prelaunch-ink);
}
body[data-r90-phase="mobilize"] #view .r90-simple-four > div:not(.wide) {
  padding: 9px 11px;
  background: #f4faf9;
  border: 1px solid #d5e9e5;
  border-radius: 7px;
  min-width: 0;
}
body[data-r90-phase="mobilize"] #view .r90-simple-four > div:not(.wide) strong {
  font-size: 14px;
  color: var(--r90-prelaunch-ink);
  overflow-wrap: anywhere;
}
body[data-r90-phase="mobilize"] #view .r90-period-card-head h3,
body[data-r90-phase="mobilize"] #view .r90-parity-period-head h3 {
  color: var(--r90-prelaunch-ink);
  line-height: 1.3;
}
body[data-r90-phase="mobilize"] #view .r90-simple-action-buttons .btn:focus-visible,
body[data-r90-phase="mobilize"] #view .r90-simple-action-details > summary:focus-visible {
  outline: 3px solid var(--r90-prelaunch-review);
  outline-offset: 2px;
}

/* Prove: evidence-verified, still open and insufficient remain semantically distinct. */
body[data-r90-phase="prove"] #view .r90-simple-prove-action {
  border-left: 5px solid var(--r90-prelaunch-prove);
}
body[data-r90-phase="prove"] #view .r90-simple-prove-action h3 {
  color: var(--r90-prelaunch-ink);
  font-size: 17px;
  line-height: 1.35;
}
body[data-r90-phase="prove"] #view .r90-simple-proof-state {
  border: 1px solid #e2e7e9;
}
body[data-r90-phase="prove"] #view .r90-simple-proof-state.supported {
  border-left: 5px solid #267144;
}
body[data-r90-phase="prove"] #view .r90-simple-proof-state.insufficient,
body[data-r90-phase="prove"] #view .r90-awaiting-proof {
  border-left-color: var(--r90-prelaunch-prove);
}

/* Sustain: what to monitor, owner and frequency are the useful result. */
body[data-r90-phase="sustain"] #view .r90-simple-sustain {
  border-top: 4px solid var(--r90-prelaunch-sustain);
}
body[data-r90-phase="sustain"] #view .r90-simple-sustain > div:first-child {
  border-left: 4px solid var(--r90-prelaunch-sustain);
  background: #fcfaf0;
  border-radius: 6px;
  padding: 8px 10px;
  min-width: 0;
}
body[data-r90-phase="sustain"] #view .r90-simple-sustain > div:first-child strong,
body[data-r90-phase="sustain"] #view .r90-simple-sustain > div strong {
  color: var(--r90-prelaunch-ink);
  overflow-wrap: anywhere;
}

/* Management report: visible plan, supported proof status and persistent controls. */
#view .report-main-section.report-findings { border-left-color: var(--r90-prelaunch-review) !important; }
#view .report-management-plan th {
  border-bottom: 3px solid var(--r90-prelaunch-mobilize);
  color: var(--r90-prelaunch-ink);
}
#view .report-management-plan tbody tr > td:first-child > strong {
  font-size: 12px;
  line-height: 1.45;
  color: var(--r90-prelaunch-ink);
}
#view .report-proof-summary > div {
  border-top: 4px solid var(--r90-prelaunch-prove);
}
#view .report-proof-summary > div > strong {
  font-size: 24px;
  color: var(--r90-prelaunch-ink);
}
#view .report-sustain-row {
  border-top: 3px solid var(--r90-prelaunch-sustain);
}

@media (max-width: 620px) {
  body[data-r90-phase="mobilize"] #view .r90-simple-action-main h3 { font-size: 17px; }
  body[data-r90-phase="mobilize"] #view .r90-simple-four > div:not(.wide) { padding: 8px 10px; }
  #view .report-management-plan tbody tr > td:first-child > strong { font-size: 11px; }
}
@media print {
  /* Keep report structure, labels, proof counts and source text; avoid screen-only shading. */
  #view .report-proof-summary > div { background: #fff; box-shadow: none; }
  #view .report-sustain-row { background: #fff; }
}
