/* Shared module hub cards — MY EXPENSE tile style */

.mh-page .mh-body {
  padding: 16px 16px 28px;
}

.mh-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.mh-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mh-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px;
  min-height: 168px;
  padding: 28px 16px 22px;
  background: #fff;
  border: 1px solid #ccebe8;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mh-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 183, 167, 0.55);
  box-shadow: 0 14px 32px rgba(37, 183, 167, 0.16);
}

.mh-card__art {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(160deg, #e8f8f6 0%, #fff 72%);
  border: 1px solid #d7efec;
  box-shadow: 0 8px 18px rgba(37, 183, 167, 0.1);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mh-card:hover .mh-card__art {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 22px rgba(37, 183, 167, 0.18);
}

.mh-card__art img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.mh-card__label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f6f69;
  line-height: 1.35;
}

/* Legacy markup: title as label, hide descriptions */
.mh-card__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.mh-card__text strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f6f69;
  line-height: 1.35;
}

.mh-card__text span {
  display: none;
}

@media (max-width: 1200px) {
  .mh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .mh-grid,
  .mh-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .mh-grid,
  .mh-grid--3 { grid-template-columns: 1fr; }
  .mh-card { min-height: 148px; padding: 22px 14px 18px; }
}
