:root {
  --sidebar-margin-top: 2rem;
  --sidebar-padding-x: 2rem;
  --sidebar-section-margin-bottom: 2rem;
  --sidebar-section-gap: 0.25rem;
  --show-more-margin-top: 1rem;
  --sidebar-section-font-size: 0.85rem;
  --row-margin-y: 0.3125rem;
  --row-padding: 0.25rem;
  --input-margin-right: 0.625rem;
  --input-size: 1rem;
  --count-margin-left: auto;
  --count-bg: var(--ast-sidebar-hover-background);
  --count-radius: 50%;
  --count-padding: 0.25rem 0.75rem;
  --selected-gap: 0.5rem;
  --remove-family-color: black;
  --remove-family-weight: bold;
  --projects-grid-gap: 2rem;
  --projects-margin-bottom: 1.5rem;
  --project-card-radius: 0.5rem;
  --project-card-bg: #fff;
  --project-title-size: 1.2rem;
  --project-title-weight: bold;
  --project-title-padding: 0.5rem 0 0.5rem 1rem;
  --project-description-margin-top: 1rem;
  --project-description-padding: 0.5rem 0 0.5rem 1rem;
  --sd-bg-muted-radius: 999px;
  --sd-bg-muted-font-size: 0.75rem;
  --sd-bg-muted-line-height: 1rem;
  --selected-tag-padding: 0.25rem 0.5rem;
  --selected-tag-radius: 0.25rem;
  --selected-tag-margin: 0.25em;
  --selected-tag-weight: 600;
  --ansys-icon-size: 1.5rem;
  --ansys-icon-margin-right: 0.3125rem;
  --ansys-icon-padding: 0rem;
  --project-thumbnail-radius: 0.5rem;
}

html {
  overflow-y: scroll !important;
}

.projects-page-sidebar {
  margin-top: var(--sidebar-margin-top);
  display: flex;
  flex-direction: column;
  padding: 0 var(--sidebar-padding-x);
}
.projects-page-sidebar-section {
  margin-bottom: var(--sidebar-section-margin-bottom);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-section-gap);
}

.show-more {
  margin-top: var(--show-more-margin-top);
}

.projects-page-sidebar-section span {
  font-size: var(--sidebar-section-font-size);
}

.family-row,
.tag-row {
  display: flex;
  align-items: center;
  margin: var(--row-margin-y) 0;
  font-weight: 400;
  padding: var(--row-padding);
}

.family-row input,
.tag-row input {
  margin-right: var(--input-margin-right);
  height: var(--input-size);
  width: var(--input-size);
}

.family-count,
.tag-count {
  margin-left: var(--count-margin-left);
  background-color: var(--count-bg);
  border-radius: var(--count-radius);
  padding: var(--count-padding);
}
.selected-families {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--selected-gap);
}

.remove-family {
  cursor: pointer;
  color: var(--remove-family-color);
  font-weight: var(--remove-family-weight);
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--projects-grid-gap);
  margin-bottom: var(--projects-margin-bottom);
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--project-card-radius);
  background-color: var(--project-card-bg);
}
.project-card:hover {
  cursor: pointer;
}

.project-thumbnail {
  padding: 0;
  border-top-right-radius: var(--project-thumbnail-radius);
  border-top-left-radius: var(--project-thumbnail-radius);
}

.project-title {
  font-size: var(--project-title-size);
  font-weight: var(--project-title-weight);
  margin-bottom: 0;
  padding: var(--project-title-padding);
}

.project-description {
  margin-top: var(--project-description-margin-top);
  padding: var(--project-description-padding);
}
.sd-bg-muted {
  background-color: var(--ast-sidebar-hover-background) !important;
  border-radius: var(--sd-bg-muted-radius);
  font-size: var(--sd-bg-muted-font-size);
  line-height: var(--sd-bg-muted-line-height);
}

[data-theme="dark"] .sd-bg-muted {
  background-color: #3d3d3d !important;
}

@media screen and (max-width: 48rem) {
  .projects {
    grid-template-columns: 1fr;
  }

  .projects-page-sidebar {
    padding: 1rem;
  }

  .project-card {
    margin: 0 auto;
    width: 90%;
  }
}

.selected-tag,
.selected-family {
  display: inline-block;
  background-color: var(--ast-sidebar-hover-background);
  padding: var(--selected-tag-padding);
  border-radius: var(--selected-tag-radius);
  margin: var(--selected-tag-margin);
  font-weight: var(--selected-tag-weight);
}

.ansys-icon {
  width: var(--ansys-icon-size);
  height: var(--ansys-icon-size);
  margin-right: var(--ansys-icon-margin-right);
  vertical-align: middle;
  padding: var(--ansys-icon-padding);
}
