/* Six main shortcuts: exactly three columns and two rows on desktop. */
#root .content .fs-home-link-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: auto;
  gap: 14px !important;
  align-items: stretch;
}
#root .content .fs-home-link-grid > button {
  min-width: 0 !important;
  min-height: 82px !important;
  height: auto !important;
  margin: 0 !important;
  box-sizing: border-box;
}
#root .content .fs-home-link-grid > button > strong {
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
/* Keep the conditional questionnaire shortcut, without displacing the six. */
#root .content .fs-home-link-grid > button:nth-child(7):last-child {
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  #root .content .fs-home-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 540px) {
  #root .content .fs-home-link-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
}
/* Shared calendar badge for event dates throughout the application. */
#root .content .event-date,
#root .content .event-list .event-card-main > .event-date {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 0 !important;
  width: max-content !important;
  min-width: 62px !important;
  max-width: calc(100% - 32px) !important;
  height: auto !important;
  padding: 0 !important;
  border: 1px solid #cddfe9 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #123c55 !important;
  box-shadow: 0 3px 8px #123c550b !important;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}
#root .content .event-date > small,
#root .content .event-list .event-card-main .event-date > small {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 4px 10px !important;
  box-sizing: border-box;
  background: #16435e !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  white-space: normal !important;
}
#root .content .event-date > strong,
#root .content .event-list .event-card-main .event-date > strong {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 5px 10px 6px !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  color: #123c55 !important;
}
/* The full date remains readable in the event detail and date pickers. */
#root
  :is(.event-slot-picker > button, .inline-slot-picker button)
  > div
  > strong,
#root .inline-slot-picker button > strong {
  display: block !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  color: #16435e;
  white-space: normal !important;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
#root .event-slot-picker > button > div {
  min-width: 0 !important;
}
/* Date metadata follows the same blue palette without changing its wording. */
#root .content .request-main > time,
#root .content .fs-community-card-date {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  width: fit-content !important;
  max-width: 100%;
  margin-top: 5px !important;
  padding: 4px 7px !important;
  border: 1px solid #e1eaf0;
  border-radius: 6px;
  background: #f4f8fb;
  color: #456478 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}
#root .content .fs-date-card > span {
  display: grid !important;
  place-items: center;
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px;
  background: #edf5fa;
  border: 1px solid #d9e7ef;
  border-radius: 10px;
  color: #16435e !important;
}
#root .content .request-main > time::before {
  content: none !important;
}
