.artifacts-page { max-width: none; }
body:has(.artifacts-page) { max-width: 52rem; }

.artifacts-page .notice {
  border-left: 3px solid var(--accent);
  background: var(--code-bg);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.artifacts-page .notice p { margin: 0.4rem 0; }

.controls { margin: 2rem 0 1rem; }
.controls .search input {
  width: 100%;
  font: inherit;
  padding: 0.5rem 0.7rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: 4px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.filters label {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.filters select {
  font: inherit;
  font-size: 0.8rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: 4px;
  padding: 0.2rem 0.3rem;
  max-width: 13rem;
}
.status { color: var(--muted); font-size: 0.85rem; margin: 0.9rem 0 0; }

.artifact { border-top: 1px solid var(--code-bg); padding: 0.6rem 0; }
/* The ::before marker is itself a grid item, hence the leading auto column. */
.artifact > summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.3rem 0.8rem;
}
.artifact > summary::-webkit-details-marker { display: none; }
.artifact > summary::before { content: "\25B8"; color: var(--muted); }
.artifact[open] > summary::before { content: "\25BE"; }
.artifact .name { font-weight: 600; }
.artifact .badges { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.artifact .badges .tier-root_fda,
.artifact .badges .tier-mdm_pppc,
.artifact .badges .tier-special_entitlement,
.artifact .badges .tier-sip_disabled,
.artifact .badges .tier-unobtainable { color: var(--accent); font-weight: 600; }
.artifact .loc {
  grid-column: 2 / -1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.detail { margin: 0.8rem 0 0.4rem 1.1rem; font-size: 0.9rem; }
.detail > p { margin: 0 0 0.8rem; }
.detail dl {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}
.detail dt { color: var(--muted); font-size: 0.8rem; padding-top: 0.1rem; }
.detail dd { margin: 0; overflow-wrap: anywhere; }
.detail dd ul { margin: 0; padding-left: 1.1rem; }
.detail code { font-size: 0.85em; }
.detail .id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 34rem) {
  .detail dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .detail dt { margin-top: 0.5rem; }
  .artifact > summary { grid-template-columns: auto 1fr; }
  .artifact .badges { grid-column: 2; white-space: normal; }
  .artifact .loc { grid-column: 2; }
}
