/* Reference pages */
.references-list {
    padding-left: 0;
}

.reference-pagination.pagination {
    display: inline-block;
    float: none;
    margin: 12px 0;
    padding: 0 0 1em;
    height: auto;
    width: auto;
}
.reference-pagination {
  & ul.pagination-list {
    height: auto;
    margin: auto;
    padding: 0;
    list-style: none;
    cursor: default;
  }
  & li.pagination-range {
    height: auto;
    line-height: initial;
    display: initial;
    margin-right: 2px;
    & a,
    & span {
      display: inline-block;
      margin-right: 0px;
      padding: 0.375em 9px;
      vertical-align: top;
    }
    & a {
      border: 1px solid #000000;
      text-decoration: none;
    }
    & span {
      border: 1px solid transparent;
    }
    & a:hover {
      background-color: #CCCCCC;
      color: #000;
      text-decoration: none;
    }
    &.active a {
      background-color: #DDDDDD;
    }
  }
}

ul.references {
    list-style: inside none disc;
}
ol.references {
    list-style: inside none decimal;
}
ul.references ul,
ol.references ul {
    list-style: inside none circle;
    margin-left: 15px;
}
ol.references ol,
ul.references ol {
    list-style: inside none lower-latin;
    margin-left: 15px;
}
ul.references li {
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Use flexbox when there is a thumbnail. */
.reference-record {
  display: flex;
  gap: 12px;
  align-items: center;
  & a {
    display: inline-flex;
    align-items: center;
    & img {
      height: auto;
      width: 36px;
      margin-right: 6px;
    }
  }
}

/* Recursive list */
.list-unstyled {
    padding-left: 0;
    list-style: none;
}
.recursive-list {
  & .resource-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    & img {
      height: 36px;
      margin-right: 6px;
    }
    & .resource-name {
      flex: 1;
      min-width: 0;
    }
  }
  & .see-all {
    font-style: italic;
    list-style: none;
  }
}

/* Grid */
.reference-grid {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 12px;
  & .reference-record {
    & a {
      display: flex;
      flex-direction: column;
      align-items: initial;
      & img {
        height: auto;
        width: 200px;
      }
    }
  }
}
