/* Cyber reference library — 26/09/2026 ergonomics pass.
   The screen had no stylesheet at all (its classes were declared as lint
   exceptions): a dedicated page with a compact filter bar and a readable,
   grouped table. Application tokens only. */

.forge-shell #cyber-sources-view { gap: 16px; }
.forge-shell .cyber-sources-status:empty { display: none; }
.forge-shell .cyber-sources-status { color: var(--tx-2); font-size: 13px; }

/* Summary: one line of facts, not four stacked rows. */
.forge-shell .cyber-sources-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.forge-shell .cyber-sources-summary:empty { display: none; }
.forge-shell .cyber-source-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--tx-2);
  font-size: 12.5px;
}
.forge-shell .cyber-source-metric strong { color: var(--tx); font-size: 13px; }

/* Filters: one compact bar. */
.forge-shell .cyber-sources-filters {
  display: grid;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--line-card);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--sh);
}
.forge-shell .cyber-sources-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.forge-shell .cyber-sources-filter-heading h2 { margin: 0; font-size: 14px; font-weight: 650; }
.forge-shell .cyber-sources-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}
.forge-shell .cyber-sources-filter-grid .field,
.forge-shell .cyber-sources-group-control {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--tx-2);
  font-size: 12px;
  font-weight: 650;
}
.forge-shell .cyber-sources-filter-grid input,
.forge-shell .cyber-sources-filter-grid select,
.forge-shell .cyber-sources-group-control select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--tx);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
}

/* The table. */
.forge-shell .cyber-sources-table-card { display: grid; overflow: hidden; }
.forge-shell .cyber-sources-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.forge-shell .cyber-sources-list-heading h2 { margin: 0; font-size: 15px; font-weight: 650; }
.forge-shell .cyber-sources-list-heading span { color: var(--tx-3); font-size: 12.5px; }
.forge-shell .cyber-sources-group-control { grid-template-columns: auto minmax(180px, 220px); align-items: center; gap: 8px; }
.forge-shell .cyber-sources-table-wrap { overflow-x: auto; }
.forge-shell .cyber-sources-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.forge-shell .cyber-sources-table th,
.forge-shell .cyber-sources-table td { padding: 10px 14px; text-align: left; vertical-align: top; }
.forge-shell .cyber-sources-table thead th {
  border-bottom: 1px solid var(--line);
  color: var(--tx-3);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.forge-shell .cyber-sources-table thead th:first-child { width: 46%; }
.forge-shell .cyber-sources-group-row th {
  padding-top: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--tx);
  font-size: 12.5px;
  font-weight: 700;
}
.forge-shell .cyber-sources-group-row th span { margin-left: 6px; color: var(--tx-3); font-weight: 500; }
.forge-shell .cyber-source-row td { border-bottom: 1px solid var(--line); }
.forge-shell .cyber-source-row.is-open td { border-bottom-color: transparent; background: var(--accent-soft); }
.forge-shell .cyber-source-title-button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tx);
  font: inherit;
  font-weight: 650;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.forge-shell .cyber-source-title-button:hover { color: var(--accent-text); text-decoration: underline; }
.forge-shell .cyber-source-title-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
.forge-shell .cyber-source-reference { display: block; margin-top: 3px; color: var(--tx-3); font-size: 12px; overflow-wrap: anywhere; }
.forge-shell .cyber-source-nowrap { white-space: nowrap; }
.forge-shell .cyber-source-link { color: var(--accent-text); font-weight: 650; text-decoration: none; }
.forge-shell .cyber-source-link:hover { text-decoration: underline; }
.forge-shell .cyber-source-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
.forge-shell .cyber-source-muted { color: var(--tx-3); }

/* A source's details, under its row. */
.forge-shell .cyber-source-detail-row td { padding: 0 14px 14px; border-bottom: 1px solid var(--line); background: var(--accent-soft); }
.forge-shell .cyber-source-detail {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-sm);
  background: var(--card);
}
.forge-shell .cyber-source-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.forge-shell .cyber-source-detail-heading h2 { margin: 2px 0; font-size: 14px; font-weight: 650; }
.forge-shell .cyber-source-detail-heading p { margin: 0; color: var(--tx-2); }
.forge-shell .cyber-source-status {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--tx-2);
  font-size: 11.5px;
  font-weight: 650;
}
.forge-shell .cyber-source-definition-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}
.forge-shell .cyber-source-definition-list dt { color: var(--tx-3); font-size: 11.5px; font-weight: 650; }
.forge-shell .cyber-source-definition-list dd { margin: 2px 0 0; color: var(--tx); }
.forge-shell .cyber-source-availability h3 { margin: 0 0 6px; font-size: 12.5px; font-weight: 650; }
.forge-shell .cyber-source-availability > div { display: flex; flex-wrap: wrap; gap: 6px; }
.forge-shell .cyber-source-availability p,
.forge-shell .cyber-source-governance-note { margin: 6px 0 0; color: var(--tx-3); font-size: 12px; }
.forge-shell .cyber-source-agent-chip {
  padding: 3px 9px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
  font-size: 12px;
}
.forge-shell .cyber-source-detail-actions { display: flex; gap: 8px; }
.forge-shell .cyber-source-detail-actions:empty { display: none; }

@media (max-width: 1180px) {
  .forge-shell .cyber-sources-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .forge-shell .cyber-sources-filter-grid .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .forge-shell .cyber-sources-filter-grid { grid-template-columns: 1fr; }
  .forge-shell .cyber-sources-list-heading { flex-direction: column; align-items: stretch; }
  .forge-shell .cyber-sources-group-control { grid-template-columns: 1fr; }
  .forge-shell .cyber-source-definition-list { grid-template-columns: 1fr; }
}

/* Grouped by authority, the group header already names it (26/09/2026). */
.forge-shell .cyber-sources-table[data-group="publisher"] thead th:nth-child(2),
.forge-shell .cyber-sources-table[data-group="publisher"] .cyber-source-row > td:nth-child(2) { display: none; }
