:root {
  --text: #566477;
}

html {
  scroll-padding-top: 96px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 85, 181, 0.22);
  outline-offset: 3px;
}

.resource-groups {
  display: grid;
  gap: 30px;
}

.resource-group {
  min-width: 0;
}

.resource-group:not(:has(.module-card:not([hidden]))) {
  display: none;
}

.resource-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
  padding: 12px 15px;
  border-left: 3px solid var(--blue);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, var(--blue-soft), rgba(238, 245, 255, 0));
}

.resource-group-heading h3 {
  margin: 3px 0 0;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.resource-group-heading p {
  margin: 0;
  color: #647287;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

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

.module-card {
  border-color: #dde5ef;
}

.module-card:active {
  transform: scale(0.985);
}

.module-copy small,
.quick-card small,
.care-card small,
.list-item small,
.event-title span,
.social-card small {
  color: #68768a;
}

.module-icon-svg,
.nav-icon-svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-nav-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
}

.bottom-nav {
  bottom: calc(9px + env(safe-area-inset-bottom));
}

.bottom-nav button.active {
  box-shadow: inset 0 0 0 1px rgba(15, 85, 181, 0.06);
}

.bottom-nav small {
  font-size: 11px;
  font-weight: 650;
}

.panel-main {
  padding-bottom: calc(118px + env(safe-area-inset-bottom));
}

@media (min-width: 821px) {
  body {
    padding-bottom: 0;
  }

  .panel-main {
    padding-bottom: 40px;
  }
}

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

@media (max-width: 620px) {
  body {
    padding-bottom: calc(106px + env(safe-area-inset-bottom));
  }

  .resource-groups {
    gap: 25px;
  }

  .resource-group-heading {
    display: block;
    padding: 10px 12px;
  }

  .resource-group-heading h3 {
    font-size: 17px;
  }

  .resource-group-heading p {
    margin-top: 4px;
    font-size: 12px;
    text-align: left;
  }

  .resource-group .module-grid {
    gap: 10px;
  }

  .resource-group .module-card {
    min-height: 116px;
  }

  .module-copy small,
  .quick-card small,
  .care-card small {
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 360px) {
  .resource-group .module-grid {
    grid-template-columns: 1fr;
  }
}
