/* Docs browser — same tokens as graphics.css (1rem radius, #e9ecef border,
   var(--brand-primary)), a plain row list instead of an image-tile grid
   since documents open in their own viewer rather than a lightbox. */

/* A folder's own README.md, rendered inline above its file list (see
   docs/__init__.py's _readme_html) — same typographic rules as render.py's
   standalone page CSS, just scoped under .dx-readme instead of body, since
   this is one fragment embedded in a larger page rather than a page of its
   own. */
.dx-readme {
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
}

.dx-readme > :first-child {
  margin-top: 0;
}

.dx-readme > :last-child {
  margin-bottom: 0;
}

.dx-readme pre {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
}

.dx-readme code {
  background: #f8f9fa;
  border-radius: 0.25rem;
  padding: 0.1em 0.35em;
}

.dx-readme pre code {
  background: none;
  padding: 0;
}

.dx-readme table {
  width: 100%;
  margin: 1rem 0;
}

.dx-readme th,
.dx-readme td {
  border: 1px solid #e9ecef;
  padding: 0.4rem 0.6rem;
}

.dx-readme blockquote {
  border-left: 3px solid #dee2e6;
  color: #555;
  margin-left: 0;
  padding-left: 1rem;
}

.dx-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dx-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.dx-row:hover {
  background: #f8f9fa;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

.dx-row-icon {
  font-size: 1.3rem;
  color: var(--brand-primary);
  flex: 0 0 auto;
  width: 1.6rem;
  text-align: center;
}

.dx-row-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.dx-row-meta {
  flex: 0 0 auto;
  font-size: 0.78rem;
  color: #868e96;
}

/* Children pills — same behavior as graphics: each is either a real
   subdirectory or the next component of an in-progress date/timestamp
   breakdown (see docs/taxonomy.py's browse_position). */
.dx-child-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dx-child-count {
  opacity: 0.65;
  font-size: 0.78rem;
}
