/* Assets website styling. The file-list styles are adapted from the
   rfortherestofus r2-frontend Quarto template. */

.page-intro {
  color: #495057;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

/* File list ---------------------------------------------------------------- */

.file-tree-wrapper {
  max-width: 860px;
  margin: 1.5rem 0;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

.file-tree-header {
  padding: .85rem 1.25rem;
  background: #f1f3f5;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: .9rem;
  color: #495057;
}

.file-tree {
  padding: .5rem 0;
}

.tree-file {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 1.25rem;
  text-decoration: none;
  color: #495057;
  border-radius: 6px;
  margin: 1px .5rem;
  transition: background .15s, color .15s;
  font-size: .9rem;
}

.tree-file:hover {
  background: #e7f5ff;
  color: #1971c2;
}

.tree-file .fa-regular {
  color: #868e96;
  font-size: .95em;
}

.tree-file:hover .fa-regular {
  color: #1971c2;
}

.tree-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-meta {
  font-size: .78rem;
  color: #adb5bd;
  white-space: nowrap;
  padding-left: .5rem;
}

.empty-note {
  max-width: 860px;
  padding: 1.25rem 1.5rem;
  background: #fff8e1;
  border: 1px solid #ffe08a;
  border-radius: 8px;
  color: #664d03;
}

/* Home page cards ---------------------------------------------------------- */

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.home-card {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: #212529;
  transition: border-color .15s, box-shadow .15s;
}

.home-card:hover {
  border-color: #1971c2;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  color: #212529;
}

.home-card h3 {
  font-size: 1.05rem;
  margin: 0 0 .35rem;
}

.home-card p {
  margin: 0;
  font-size: .85rem;
  color: #6c757d;
}
