/* Risk classification assessment — aligns with aiar.services (navy #000080, green accent) */
body {
  font-family: "Inter", system-ui, sans-serif;
}
.title-font {
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.flow-map {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flow-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: default;
}

.flow-node.active {
  border-color: #000080;
  background: #eef0ff;
  color: #000080;
  box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.12);
}

.flow-node.done {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.flow-node-ans {
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #000080;
  color: #fff;
}

.flow-node.done .flow-node-ans {
  background: #16a34a;
}

.trail-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.8rem;
}

.trail-item:last-child {
  border-bottom: none;
}

.trail-step {
  font-weight: 800;
  color: #000080;
  font-size: 0.7rem;
}

.trail-q {
  color: #4b5563;
}

.trail-a {
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.trail-a.yes {
  background: #dcfce7;
  color: #166534;
}

.trail-a.no {
  background: #f3f4f6;
  color: #374151;
}

#outcome-card.outcome-positive {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 40%);
}

#outcome-card.outcome-negative {
  border-color: #e5e7eb;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}

#step-help p {
  margin: 0 0 0.5rem;
}

#step-help p:last-child {
  margin-bottom: 0;
}

@media print {
  .print\:hidden {
    display: none !important;
  }
  body {
    background: #fff;
  }
  #panel-outcome {
    display: block !important;
  }
  #outcome-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
