body {
  background-color: #f5f6f7;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1f2f61;
}

.dashboard-title h1 {
  margin: 0;
  font-weight: 500;
  text-align: center;
}

.dashboard-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.dashboard-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 11rem;
  padding: 1.25rem 1rem 1rem;
  border-radius: 8px;
  border: 1px solid #e7edf2;
  background-color: #fff;
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.dashboard-item:hover {
  box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.dashboard-item .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  overflow: hidden;
}

/* The <a> is the flex item, not the img: give it a definite size so the
   img's max-width/max-height percentages resolve against a fixed box
   (otherwise they collapse the image to zero). */
.dashboard-item .logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.dashboard-item .logo img {
  max-width: 100%;
  max-height: 100%;
}

/* Light-but-colourful logo: dark plate behind it (added by portal.js). */
.dashboard-item.logo-is-light .logo {
  background-color: #1f2f61;
  padding: 0.5rem;
}

.dashboard-item .title {
  display: flex;
  align-items: flex-end;
  flex-grow: 1;
  text-align: center;
  font-size: 0.95rem;
}

.dashboard-item .title a {
  color: #1f2f61;
  text-decoration: none;
}
