/* hub.css -- the training hub's front page (/ai-ml/training/): the studies with their live status
   lines, and the jobs list. Loaded after /styles.css and research/research.css, whose tokens,
   page head, navigation and ruled rows it uses. CSP style-src 'self': every style lives here.
   Created by LT Sean Egan, PhD
   Modified: SDE 2026-10-11  align the queue column beside every job */

/* ---- the studies: research.css's ruled rows, with a live status line under each ---- */

.projects > li { padding-bottom: 12px; }
.projects .project-link { padding-bottom: 8px; }
.projects .where {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  white-space: nowrap;
}
.project-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 18px;
}
.project-foot .rh-live { min-height: 36px; }

.line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  text-wrap: pretty;
}
.line .when { color: var(--text-3); font-family: var(--mono); font-size: 0.75rem; white-space: nowrap; }
.line.stale .when { color: var(--k-amber); }
.line.none { color: var(--text-3); }

/* ---- jobs on the supercomputer ---- */

.jobs-head { margin-bottom: 10px; }
.jobs-head .line { color: var(--text-2); }
/* the watcher's ticket line with its last pass (SDE 2026-10-05) */
.jwatch { margin-top: 4px; }
.jwatch .wline { color: var(--text-3); font-size: 0.8125rem; }
.jwatch .wline.stale { color: var(--k-amber); }
.jgroup { border-top: 1px solid var(--rule); }
.jgroup:last-child { border-bottom: 1px solid var(--rule); }
.jgroup > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.jgroup > summary::-webkit-details-marker,
.job > summary::-webkit-details-marker { display: none; }
.jgroup > summary::marker,
.job > summary::marker { content: ""; }
.jgroup > summary::after {
  content: "+";
  flex: none;
  width: 1ch;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
}
.jgroup[open] > summary::after { content: "\2212"; }
.jgroup > summary:hover { color: var(--accent); }
.gname { flex: 1 1 auto; }
.gcount { color: var(--text-3); font-family: var(--mono); font-size: 0.8125rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.gnone, .gnote { margin: 0 0 10px; color: var(--text-3); font-family: var(--sans); font-size: 0.875rem; }
.jstudy {
  margin: 6px 0 2px;
  color: var(--k, var(--accent));
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.jlist { margin: 0 0 8px; padding: 0; list-style: none; }
.job > summary, .jcolumns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10ch, 18ch) minmax(14ch, 24ch);
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: 36px;
  padding: 7px 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  list-style: none;
  cursor: pointer;
}
.jcolumns { min-height: 0; color: var(--text-3); }
.jcolumns .jlabel { color: inherit; }
.jqueue { color: var(--text-2); font-family: var(--mono); font-size: 0.75rem; overflow-wrap: anywhere; }
.job > summary:hover .jlabel { color: var(--accent); }
.job[open] > summary { color: var(--text); }
.jlabel { flex: 1 1 auto; min-width: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jwhen { flex: 0 0 auto; color: var(--text-3); font-family: var(--mono); font-size: 0.75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border: 1px solid var(--rule);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 0.6875rem;
}
.jdetail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  margin: 0 0 10px;
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.8125rem;
}
.jdetail dt { color: var(--text-3); }
.jdetail dd { margin: 0; color: var(--text-2); }

@media (max-width: 560px) {
  .projects .where { white-space: normal; }
  .job > summary, .jcolumns { grid-template-columns: minmax(0, 1fr) minmax(8ch, 12ch); }
  .jwhen { grid-column: 1 / -1; white-space: normal; }
  .jdetail { grid-template-columns: minmax(0, 1fr); }
  .jdetail dt { margin-top: 4px; }
}
