/* Cross-Functional Performance Pulse: tool-specific styles.
   The shared TrustFlow tools design system lives in ../shared/toolkit.css. */

/* Legend chips wrap on narrow screens (long performance labels) */
.fs-ranked-head .fs-legend { flex-wrap: wrap; row-gap: 0.4rem; }

/* Research attribution line below the method grid */
.pp-research-note {
  max-width: 58rem;
  margin: 2.25rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-light);
}

/* Two stacked item groups inside the single domain rating fieldset */
.pp-item-groups { display: grid; gap: 2rem; }
.pp-item-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.pp-item-group > legend {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--navy-dark);
}
.pp-item-group > legend .fs-group-tag { flex: none; margin-top: 0.28rem; }
.pp-item-text { min-width: 0; }

/* Five-bar domain profile inside the navy results card */
.pp-profile {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 1rem;
}
.pp-profile-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr 9rem;
  gap: 1.1rem;
  align-items: center;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.pp-profile-row:first-child { border-top: 0; }
.pp-profile-name {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--white);
}
.pp-track {
  height: 0.55rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.pp-fill { display: block; height: 100%; border-radius: 3px; }
.pp-fill.pp-meet { background: #66BB6A; }
.pp-fill.pp-usually { background: var(--blue-flow); }
.pp-fill.pp-mixed { background: #FFD97A; }
.pp-fill.pp-missing { background: var(--orange-activate); }
.pp-fill.pp-ns { background: rgba(255, 255, 255, 0.25); }
.pp-cls { text-align: right; line-height: 1.35; }
.pp-cls b {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}
.pp-cls small { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 700px) {
  .pp-profile-row { grid-template-columns: 1fr; gap: 0.45rem; padding: 0.85rem 0; }
  .pp-cls { text-align: left; }
  .pp-cls b { display: inline; margin-right: 0.4rem; }
}

@media print {
  .pp-profile-name, .pp-cls b { color: var(--navy-dark) !important; }
  .pp-profile-row { border-top-color: rgba(13, 71, 161, 0.15); }
  .pp-track { background: rgba(13, 71, 161, 0.12); }
  .pp-cls small { color: var(--muted-light) !important; }
}
