/* tools-hub.module — module-scoped, no .tlpi-wrap dependency */
.thub { width: 100%; }

/* ── Card grid section ─────────────────────────────────────────────────────── */
.thub__section { padding: 40px 0 72px; }

/* Widen the inner container to use more of the page width */
.thub__inner {
  max-width: 1320px;
  margin: 0 auto !important;
  padding: 0 32px;
}

/* ── Two-column layout: sidebar + main content ─────────────────────────────── */
.thub__layout {
  display: flex;
  align-items: flex-start;
  gap: 52px;
}

/* ── Side navigation ──────────────────────────────────────────────────────── */
.thub__sidenav {
  width: 210px;
  flex-shrink: 0;
  position: sticky;
  top: 86px; /* clear the sticky nav bar */
  padding-top: 8px;
}

.thub__sidenav-label {
  font-family: "Space Grotesk", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7a8aaa;
  margin: 0 0 10px 16px;
}

.thub__sidenav nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thub__sidenav-link {
  display: block;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  border-left: 3px solid transparent;
  line-height: 1.3;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.thub__sidenav-link:hover {
  color: #174074;
  background: rgba(23, 64, 116, 0.06);
  border-left-color: #d96d8a;
}

.thub__sidenav-link.active {
  color: #174074;
  background: rgba(23, 64, 116, 0.07);
  border-left-color: #f098ab;
  font-weight: 600;
}

/* ── Main content area ────────────────────────────────────────────────────── */
.thub__content {
  flex: 1;
  min-width: 0; /* prevent flex overflow */
}

/* ── Card grid ─────────────────────────────────────────────────────────────── */
.thub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.thub__empty {
  display: none;
  text-align: center;
  color: #5f6b82;
  padding: 48px 0;
  font-size: 16px;
}

/* ── Cover image ───────────────────────────────────────────────────────────── */
.thub__cov {
  height: 180px;
  background-color: #eef2f7;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid #e7ecf3;
  flex-shrink: 0;
  position: relative;
}

.thub__cov--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #e9f3fb 0%, #f4f7fb 100%);
}
.thub__cov--icon svg {
  width: 52px;
  height: 52px;
  color: #0078BE;
  opacity: 0.45;
}

/* ── Card ──────────────────────────────────────────────────────────────────── */
.thub__card {
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.thub__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(13, 34, 64, 0.1);
  border-color: #cfe0f1;
}

.thub__bd {
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.thub__lab   { margin-bottom: 10px; }
.thub__lab-t {
  font-family: "Space Grotesk", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0078BE;
}
.thub__lab-p {
  font-family: "Space Grotesk", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7a8aaa;
  margin-left: 4px;
}

.thub__title {
  font-size: 19px;
  font-weight: 800 !important;
  color: #0f1f38 !important;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  display: block !important; /* override any template h3 flex injection */
}

.thub__desc {
  font-size: 14.5px;
  color: #5f6b82;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0;
}

.thub__cta {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  font-size: 14px;
  color: #0078BE;
  transition: color 0.15s;
}
.thub__card:hover .thub__cta { color: #0057a0; }

/* ── Corner badge (type icon on card image) ────────────────────────────────── */
.thub__badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(13, 34, 64, 0.14);
}
.thub__badge svg {
  width: 20px;
  height: 20px;
  color: #0078BE;
}

/* ── Grouped sections ──────────────────────────────────────────────────────── */
.thub__group { margin-top: 52px; }
.thub__group:first-child { margin-top: 0; }

.thub__gh {
  font-size: 22px;
  font-weight: 800 !important;
  color: #0f1f38 !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e7ecf3;
  display: block !important; /* override any template h2 flex injection */
}
.thub__gh::before {
  content: "";
  displ