/* Category Hub adopts the existing shared Topic Navigation renderer.
   The native archive header, article loop and semantic modules remain site-owned. */
.td-category-taxonomy--shared .td-category-hub-nav {
  width: 100%;
}

.td-category-taxonomy--shared .td-category-hub-nav__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.td-category-taxonomy--shared .td-category-hub-nav__card {
  display: flex;
  min-width: 0;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d7e1e9;
  border-radius: 18px;
  padding: 18px 20px;
  background: linear-gradient(155deg, #fff 0%, #f7fafc 100%);
  color: #183a58;
  text-decoration: none;
  box-shadow: 0 5px 20px rgb(10 26 60 / 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.td-category-taxonomy--shared .td-category-hub-nav__card:hover,
.td-category-taxonomy--shared .td-category-hub-nav__card:focus-visible {
  border-color: #44759c;
  box-shadow: 0 11px 27px rgb(10 26 60 / 0.12);
  transform: translateY(-2px);
}

.td-category-taxonomy--shared .td-category-hub-nav__card:focus-visible {
  outline: 3px solid #245e8c;
  outline-offset: 3px;
}

.td-category-taxonomy--shared .gik25-hub-topic-nav__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.td-category-taxonomy--shared .gik25-hub-axis-strip__label {
  font-size: clamp(0.96rem, 1.3vw, 1.14rem);
  font-weight: 750;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.td-category-taxonomy--shared .gik25-hub-axis-strip__count {
  font-size: 0.8rem;
  font-weight: 500;
  color: #41617b;
}

@media (max-width: 900px) {
  .td-category-taxonomy--shared .td-category-hub-nav__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .td-category-taxonomy--shared .td-category-hub-nav__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .td-category-taxonomy--shared .td-category-hub-nav__card {
    min-height: 80px;
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-category-taxonomy--shared .td-category-hub-nav__card {
    transition: none;
    transform: none;
  }
}

/* Nested Esame di Stato archive navigation reuses the same shared cards. */
.td-category-hub-nav__subsection {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #d7e1e9;
}
.td-category-hub-nav__subsection-title {
  margin: 0 0 14px;
  color: #183a58;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 700;
}
