/*
 * Hub pages: countries, regulators, graveyard, insights.
 */

.nbd-hub { padding-block: var(--nbd-space-5) var(--nbd-space-7); }

.nbd-hub__head {
  padding-bottom: var(--nbd-space-4);
  margin-bottom: var(--nbd-space-5);
  border-bottom: var(--nbd-hairline);
}

.nbd-hub__eyebrow {
  font-size: var(--nbd-text-sm);
  font-weight: 600;
  color: var(--nbd-muted);
  margin-bottom: var(--nbd-space-1);
}

.nbd-hub__title { font-size: var(--nbd-text-2xl); margin-bottom: var(--nbd-space-2); }

@media (min-width: 768px) { .nbd-hub__title { font-size: var(--nbd-text-3xl); } }

.nbd-hub__lede { color: var(--nbd-muted); max-width: 70ch; margin: 0; }

.nbd-hub__section { margin-bottom: var(--nbd-space-6); }

.nbd-hub__section-title {
  font-size: var(--nbd-text-lg);
  padding-bottom: var(--nbd-space-2);
  margin-bottom: var(--nbd-space-3);
  border-bottom: var(--nbd-hairline);
}

.nbd-hub__note { color: var(--nbd-muted); font-size: var(--nbd-text-sm); max-width: 70ch; }

/* ----------------------------------------------------------- country grid */

.nbd-countrygrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--nbd-space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nbd-countrycard {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 88px;
  padding: var(--nbd-space-3);
  background: var(--nbd-white);
  border: var(--nbd-hairline);
  border-radius: var(--nbd-radius);
  text-decoration: none;
  transition: border-color 120ms ease;
}

.nbd-countrycard:hover,
.nbd-countrycard:focus-visible { border-color: var(--nbd-ink); }

.nbd-countrycard__code {
  font-family: var(--nbd-font-mono);
  font-size: var(--nbd-text-xs);
  font-weight: 700;
  color: var(--nbd-red-deep);
  letter-spacing: 0.06em;
}

.nbd-countrycard__name {
  font-size: var(--nbd-text-base);
  font-weight: 600;
  color: var(--nbd-ink);
  line-height: var(--nbd-leading-tight);
}

.nbd-countrycard__count {
  margin-top: auto;
  font-size: var(--nbd-text-xs);
  color: var(--nbd-muted);
}

/* -------------------------------------------------------------- hub lists */

.nbd-list--hub .nbd-list__item--stacked {
  align-items: flex-start;
  gap: var(--nbd-space-3);
  padding-block: var(--nbd-space-4);
}

.nbd-list__primary { flex: 1 1 20rem; min-width: 0; }

.nbd-list__link { font-size: var(--nbd-text-lg); font-weight: 650; }

.nbd-list__summary {
  margin: var(--nbd-space-1) 0 0;
  color: var(--nbd-muted);
  font-size: var(--nbd-text-sm);
  max-width: 68ch;
}

.nbd-list__metagroup {
  display: flex;
  align-items: center;
  gap: var(--nbd-space-2);
  margin-left: auto;
}
