/* Accessible dashboard nav cards — full-card link, focus ring, disabled state */
#dashboardNav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 0 auto 30px;
  max-width: 1000px;
  position: relative;
  z-index: 2;
}

#dashboardNav a.nav-card {
  text-decoration: none;
  color: inherit;
  display: block;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(102, 126, 234, 0.25);
  touch-action: manipulation;
}

/* Clicks/taps hit the <a>, not inner nodes — fixes inconsistent navigation on iOS/Android */
#dashboardNav a.nav-card:not(.nav-card--disabled) .nav-card-icon,
#dashboardNav a.nav-card:not(.nav-card--disabled) h3,
#dashboardNav a.nav-card:not(.nav-card--disabled) p {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

#dashboardNav a.nav-card:focus {
  outline: none;
}

#dashboardNav a.nav-card:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 3px;
  border-radius: 10px;
}

#dashboardNav a.nav-card.nav-card--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#dashboardNav a.nav-card.nav-card--disabled:focus-visible {
  outline-color: #999;
}
