/* block-hub.css — the capability shelf, rendered for a human decision. */

.hub-note {
  border: 1px solid var(--line, #23262d);
  border-left: 3px solid var(--amber, #d99a2b);
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  margin: 0 0 2.5rem;
  background: var(--panel, #14161a);
}
.hub-note h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 0.7rem;
  color: var(--amber, #d99a2b);
}
.hub-note p {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--fg-dim, #9aa3ad);
}
.hub-note p:last-child { margin-bottom: 0; }
.hub-note strong { color: var(--fg, #e6e9ee); }

.tier { margin: 0 0 3rem; }
.tier__head { margin-bottom: 1.3rem; }
.tier__head h2 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.tier__count {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim, #9aa3ad);
  border: 1px solid var(--line, #23262d);
  border-radius: 20px;
  padding: 0.12rem 0.6rem;
}
.tier__head p {
  margin: 0;
  max-width: 68ch;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--fg-dim, #9aa3ad);
}

.fam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1rem;
}

.fam {
  border: 1px solid var(--line, #23262d);
  border-radius: 8px;
  background: var(--panel, #14161a);
  padding: 0.95rem 1rem 1rem;
  min-width: 0; /* never let a long repo name blow the grid track out */
}
.fam__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line, #23262d);
}
.fam__head h3 {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}
.fam__n {
  flex: none;
  font-size: 0.68rem;
  color: var(--fg-dim, #9aa3ad);
  white-space: nowrap;
}

.donors { display: flex; flex-direction: column; gap: 0.65rem; }

.donor {
  border: 1px solid transparent;
  border-left: 2px solid var(--line, #23262d);
  padding: 0.15rem 0 0.15rem 0.7rem;
  min-width: 0;
}
.donor--built { border-left-color: var(--green, #3fb27f); }

.donor__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.donor__repo {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.79rem;
  color: var(--fg, #e6e9ee);
  text-decoration: none;
  border-bottom: 1px dotted var(--line, #23262d);
  overflow-wrap: anywhere;
}
.donor__repo:hover { color: var(--accent, #6aa9ff); border-bottom-style: solid; }

.tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 20px;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
}
.tag--built {
  background: rgba(63, 178, 127, 0.14);
  color: var(--green, #3fb27f);
  border: 1px solid rgba(63, 178, 127, 0.35);
}

.donor__cap {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--fg-dim, #9aa3ad);
  line-height: 1.45;
}
.donor__facts {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--fg-dim, #9aa3ad);
}
.donor__facts li { margin-bottom: 0.15rem; }
.donor__none {
  margin: 0.3rem 0 0;
  font-size: 0.74rem;
  font-style: italic;
  color: var(--fg-faint, #6b7480);
}

.donor__meta {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}
.chip {
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--line, #23262d);
  border-radius: 20px;
  padding: 0.08rem 0.45rem;
  color: var(--fg-dim, #9aa3ad);
  white-space: nowrap;
}
.chip--muted { color: var(--fg-faint, #6b7480); }

@media (max-width: 560px) {
  .fam-grid { grid-template-columns: 1fr; }
}
