a.ressource {
  display: block;
  padding: var(--p--spacing--3-4);
  text-decoration: none;
  background-color: var(--p--theme--color--background-highlight);
  color: var(--p--theme--color--text);
}
.document + .document {
  margin-top: 1px;
}
a.ressource:hover {
  background-color: var(--p--theme--color--text);
  color: var(--p--theme--color--background);
}
.ressource--name {
  font-size: var(--p--font-size--0);
}
.ressource--download-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--p--spacing--1-2);
}

ul.ressource--meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: var(--p--font-size--n1);
}
.ressource--type {
  text-transform: uppercase;
}
.ressource--meta li:not(:first-child)::before {
  content: "\00a0•\00a0";
  display: inline-block;
}

.ressource .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--p--spacing--3-2);
  aspect-ratio: 1;
}
.ressource .icon svg {
  width: var(--p--spacing--1);
}

@container (min-width: 10rem) {
  a.ressource {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--p--spacing--3-2);
  }
  .ressource--download-info {
    justify-content: flex-start;
  }
}
