/* Hub page styles. Loaded in addition to /hut/hut-page.css. */
main.wrap.hub {
  max-width: 1080px;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

main.wrap.hub .lede {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 62ch;
}

.section-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

table.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
}

table.hub-table th,
table.hub-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.hub-table thead th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  background: var(--bg-paper);
  border-bottom: 1px solid var(--border);
}

table.hub-table tbody tr:last-child td {
  border-bottom: none;
}

table.hub-table td.num,
table.hub-table th.num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  text-align: right;
  white-space: nowrap;
}

table.hub-table td.col-name {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
}

table.hub-table td.col-name a {
  color: var(--ink);
  text-decoration: none;
}

table.hub-table td.col-name a:hover {
  color: var(--rust);
}

table.hub-table .book-link {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  background: var(--pine);
  color: var(--bg-paper);
  text-decoration: none;
  transition: all 0.15s;
}

table.hub-table .book-link:hover {
  background: var(--rust);
}

.cross-link {
  margin: 1.5rem 0 2rem;
}

.cross-link a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rust);
  text-decoration: none;
}

.cross-link a:hover {
  color: var(--pine);
}

ul.hub-index {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 2rem;
}

ul.hub-index li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  break-inside: avoid;
}

ul.hub-index a {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}

ul.hub-index a:hover {
  color: var(--rust);
}

ul.hub-index .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink-faint);
  margin-left: 0.4rem;
}

@media (max-width: 720px) {
  table.hub-table th,
  table.hub-table td {
    padding: 0.5rem 0.6rem;
  }
  table.hub-table td.col-name {
    font-size: 0.95rem;
  }
  ul.hub-index {
    columns: 1;
  }
}
