/* =============================================================================
   Grant Review (hub-grant-review.js). Only what has no shared equivalent; cards,
   buttons, banners and hints come from the Hub's own classes. Every selector is
   rooted at .hub-gr so nothing here can reach another page.
   ============================================================================= */

.hub-gr .hub-gr-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}
.hub-gr .hub-gr-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}
.hub-gr .hub-gr-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* The description is what the supervisor decides from, so it keeps its own line
   breaks and scrolls rather than pushing the questions off the screen. */
.hub-gr .hub-gr-desc {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.02);
  font-size: 0.92rem;
}
.hub-gr .hub-gr-q {
  border: 0;
  margin: 0.5rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.hub-gr .hub-gr-q legend {
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.hub-gr .hub-gr-choice,
.hub-gr .hub-gr-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.hub-gr .hub-gr-src {
  font-size: 0.8rem;
  opacity: 0.75;
}
.hub-gr .hub-gr-list {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}
.hub-gr .hub-gr-cat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hub-gr .hub-gr-cat-name {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.hub-gr .hub-gr-item {
  font-size: 0.85rem;
}
.hub-gr .hub-gr-error {
  color: #b42318;
  margin: 0;
}
.hub-gr .hub-gr-ok {
  color: #067647;
}
