/* Investor-safe presentation rules loaded last. */

.restricted-research-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d7e8ff;
  border-color: rgba(118,184,255,.24);
  background: rgba(74,122,235,.09);
}

.restricted-research-link:hover {
  border-color: rgba(118,184,255,.46);
  background: rgba(74,122,235,.16);
}

.investor-safe-mode .primary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.investor-safe-mode .investor-safe-pipeline .funnel-stage {
  min-height: 126px;
}

.investor-safe-mode .investor-safe-pipeline .funnel-stage.validated {
  border-color: rgba(77,227,164,.22);
  background:
    linear-gradient(145deg, rgba(77,227,164,.11), rgba(76,126,255,.07)),
    rgba(255,255,255,.018);
}

.investor-safe-mode .investor-safe-pipeline .funnel-stage.validated::before,
.investor-safe-mode .investor-safe-pipeline .funnel-stage.gated::before {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 9px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.investor-safe-mode .investor-safe-pipeline .funnel-stage.validated::before {
  content: "MEASURED";
  color: #82ebbd;
}

.investor-safe-mode .investor-safe-pipeline .funnel-stage.gated {
  border-color: rgba(255,199,103,.22);
  background:
    linear-gradient(145deg, rgba(255,199,103,.08), rgba(76,126,255,.04)),
    rgba(255,255,255,.018);
}

.investor-safe-mode .investor-safe-pipeline .funnel-stage.gated::before {
  content: "GATED";
  color: #ffd58b;
}

.investor-safe-mode .timeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: visible;
  gap: 12px;
}

.investor-safe-mode .timeline-item {
  min-width: 0;
  min-height: 210px;
  overflow: hidden;
}

.investor-safe-mode .timeline-release,
.investor-safe-mode .timeline-status,
.investor-safe-mode .timeline-title,
.investor-safe-mode .timeline-detail {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.investor-safe-mode .timeline-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.investor-safe-mode .timeline-detail {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.investor-safe-mode .timeline-item.validated .timeline-status {
  background: rgba(77,227,164,.09);
  color: #91efc6;
}

.investor-safe-mode .timeline-item.in-progress .timeline-status {
  background: rgba(118,184,255,.10);
  color: #9ac6ff;
}

.investor-safe-mode .timeline-item.review .timeline-status {
  background: rgba(247,184,76,.10);
  color: #ffd58b;
}

.investor-safe-mode .timeline-item.measured .timeline-status {
  background: rgba(146,166,207,.10);
  color: #bdc9e5;
}

.timeline-archive-note {
  margin-left: auto;
  color: rgba(173, 194, 225, .68);
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
  max-width: 290px;
}

.investor-safe-mode .persistence-summary-panel,
.investor-safe-mode .account-capability-panel,
.investor-safe-mode .current-account-panel,
.investor-safe-mode .controls-panel,
.investor-safe-mode .top-routes-panel,
.investor-safe-mode .intelligence-lower-grid,
.investor-safe-mode #routeModal {
  display: none !important;
}

.investor-safe-mode .intelligence-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.investor-safe-mode .investor-safe-kpi {
  min-width: 0;
  min-height: 126px;
}

.investor-safe-mode .intel-kpi-label,
.investor-safe-mode .intel-kpi-value {
  overflow-wrap: anywhere;
}

.investor-safe-mode .intel-kpi-value {
  font-size: clamp(22px, 2.6vw, 34px);
}

.investor-safe-mode #intelligenceSection {
  padding-bottom: 28px;
}

.investor-safe-mode #intelligenceSection .section-heading > p {
  max-width: 760px;
}

.investor-safe-mode .metric-detail,
.investor-safe-mode .secondary-detail,
.investor-safe-mode .takeaway {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .investor-safe-mode .primary-grid,
  .investor-safe-mode .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .investor-safe-mode .intelligence-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .investor-safe-mode .primary-grid,
  .investor-safe-mode .timeline,
  .investor-safe-mode .intelligence-kpi-grid {
    grid-template-columns: 1fr;
  }

  .timeline-archive-note {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    text-align: left;
  }

  .restricted-research-link {
    width: 100%;
  }
}
