/* Hub-only components: the category grid and the combined tool table.
   Everything else on the hub reuses styles.css, page.css and busyless.css, so
   the tokens here are the ones those files already define. */

.hub-hero { max-width: 56rem; }
.hub-hero .lede + .lede { margin-top: .7rem; }

.sec-lede {
  max-width: 54rem;
  color: var(--muted);
  margin: .2rem 0 1.6rem;
}

/* ---------- category grid ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1rem;
}

.cat {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.3rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  text-decoration: none;
  color: inherit;
}

.cat p { margin: 0; font-size: .97rem; line-height: 1.5; }
.cat-rubric { color: var(--muted); font-size: .9rem !important; }

.cat-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}

.cat-top h3 { margin: 0; font-size: 1.12rem; line-height: 1.25; }

.cat-n {
  flex: none;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--muted);
  white-space: nowrap;
}

.cat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--line-soft);
  font-size: .87rem;
  color: var(--muted);
}

.cat-go { color: var(--accent-ink); font-weight: 500; white-space: nowrap; }

a.cat.is-live:hover {
  border-color: var(--sand);
  background: var(--raise, var(--card));
}

a.cat.is-live:hover .cat-go { text-decoration: underline; }

.cat.is-soon { background: var(--bone); border-style: dashed; }
.cat.is-soon .cat-top h3 { color: var(--muted); }

/* ---------- combined table ---------- */

.tbl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .9rem;
}

.chip {
  font: inherit;
  font-size: .86rem;
  padding: .36rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bone);
  color: var(--muted);
  cursor: pointer;
}

.chip:hover { border-color: var(--sand); color: var(--ink); }

.chip.is-on {
  background: var(--raise, var(--paper));
  border-color: var(--sand);
  color: var(--ink);
}

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }

table.alltools { width: 100%; border-collapse: collapse; font-size: .94rem; }

table.alltools th,
table.alltools td {
  text-align: left;
  padding: .62rem .9rem;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

table.alltools thead th {
  position: sticky;
  top: 0;
  background: var(--card);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--muted);
  z-index: 1;
}

table.alltools tbody th { font-weight: 600; }
table.alltools tbody th a { color: inherit; text-decoration: none; }
table.alltools tbody th a:hover { color: var(--accent-ink); text-decoration: underline; }
table.alltools tbody tr:last-child th,
table.alltools tbody tr:last-child td { border-bottom: 0; }
table.alltools tbody tr:hover { background: var(--card); }
table.alltools tr[hidden] { display: none; }

.note { font-size: .87rem; color: var(--muted); margin-top: .85rem; max-width: 54rem; }

@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; }
  table.alltools th, table.alltools td { padding: .55rem .65rem; }
}
