/* Shared access-card pattern. Keep feature cards, including future additions,
   on the same hover, height, and action alignment standard. */
.hub-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hub-card:hover,
.hub-card:focus-within {
  transform: translateY(-4px);
  border-color: #a8d4db;
  box-shadow: 0 18px 38px rgba(11, 52, 66, .14);
}

.hub-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.hub-grid > .hub-card {
  height: 100%;
  min-height: 216px;
}

.hub-grid > .hub-card > .btn {
  width: min(100%, 220px);
  min-height: 48px;
  justify-content: center;
  text-align: center;
  margin-top: auto;
  white-space: normal;
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .hub-card { transition: none; }
  .hub-card:hover,
  .hub-card:focus-within { transform: none; }
}

.hub-grid > .hub-card > .hub-share-row {
  margin-top: auto;
}

@media (max-width: 760px) {
  .hub-grid > .hub-card {
    min-height: 0;
  }
}
