body.view-descriptions .descriptions-container {
  display: block;
  height: 100vh;
  overflow-y: auto;
}

.descriptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  gap : 10px;

  margin-left: 3vw;
  margin-right: 3vw;
    margin-bottom: 15vh;

  
  justify-content: center;

}

.descriptions-header, .descriptions-empty-state {
  text-align: center;
  margin-top: 1vh;
  margin-bottom : 1vh;
  color: #858585;
}



.desc-card {
  display: flex ;
  flex-direction: column;
  background: white;
  border: 1px solid var(--description-border-color);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s;

  align-self: start; /*Whether or not the cards bottoms get filled out or cut off*/
  
  max-width: 320px;
  width : 100%;
}

.desc-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.desc-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--description-border-color); /* color of the line between the definition and badges */
}
.desc-card-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.desc-card-remove-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  opacity: 0.4;
  padding: 0;
  margin: 0;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}
.desc-card-remove-btn svg {
  width: 1rem;
  height: 1rem;
}
.desc-card-remove-btn:hover {
  opacity: 1;
}
.desc-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color); /* color of the title text */
  margin-bottom: 0.25rem;
  flex: 1;
}
.desc-card-subtitle {
  font-size: 0.875rem;
  color: #6b7280;  /* color of the subtitle */
  margin-bottom: 0.5rem;
}
.desc-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--lighter-accent-color);  /* color of the badge background */
  color: var(--accent-color); /* color of the badge text */
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.desc-card-content {
  padding: 0;
}
.desc-accordion-item {
  border-bottom: 1px solid var(--description-border-color);
}
.desc-accordion-item:last-child {
  border-bottom: none;
}
.desc-accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: black; /* color of the dropdown title text */
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: left;
}
.desc-accordion-trigger:hover {
  background-color: #f9fafb;
}
.desc-accordion-icon {
  transition: transform 0.2s;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.desc-accordion-trigger.active {
  border-bottom: 1px solid var(--description-border-color); /* -------- Border below button if it's clicked ------- (check if it's good or not) */
}

.desc-accordion-trigger.active .desc-accordion-icon {
  transform: rotate(180deg);
}
.desc-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.desc-accordion-content-inner {
  padding: 0 1rem 0 1rem;
  font-size: 0.875rem;
  color: #4b5563;
}
.desc-accordion-content ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.desc-accordion-content li {
  margin-bottom: 0.25rem;
}

/* See Also list: horizontal flex wrap */
.desc-accordion-content ul.desc-see-also-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.desc-see-also-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #FFFFFF;
  border: 1px solid #D4E4D4;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #1A1A1A;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.desc-see-also-btn:hover {
  background: #F0F6F0;
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

.desc-card .references-list {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.desc-card .reference-link {
  color: #1a1a1a;
}

.desc-card .reference-link:hover {
  color: #000000;
}
