/* ─── Notebook embed loading shell ─────────────────────────────────────────
   Shared across all Quarto wrapper pages that embed marimo notebooks.
   The loading shell is an absolutely-positioned thin progress bar overlay.
   It occupies zero vertical space in the page layout — no visible rectangle.
   The shell is hidden via the iframe's onload="..." inline handler.
   ─────────────────────────────────────────────────────────────────────────── */

.notebook-embed-wrapper {
  position: relative;
  min-height: 0;
}

/* Shell is absolutely positioned — takes ZERO vertical space in page flow.
   Only a 3px thin bar at the top of the wrapper is visible. */
.notebook-loading-shell {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  overflow: hidden;
  z-index: 10;
  padding: 0;
  background: transparent;
}

.notebook-loading-bar-container {
  height: 3px;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
}

/* Sliding animation — bar sweeps left to right indefinitely */
.notebook-loading-bar {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #0d6efd 0%, #6ea8fe 100%);
  border-radius: 0;
  animation: nb-loading-slide 1.4s ease-in-out infinite;
}

@keyframes nb-loading-slide {
  0%   { transform: translateX(-130%); }
  100% { transform: translateX(300%); }
}

/* Label completely hidden — no "Rendering…" text visible to the user */
.notebook-loading-label {
  display: none;
}

/* ─── Report sibling navigation bar ────────────────────────────────────────
   Used on individual report wrapper pages to provide compact within-track
   navigation without requiring a second-level top navbar dropdown.
   ─────────────────────────────────────────────────────────────────────────── */

.report-sibling-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0 1rem;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.report-sibling-nav .nav-track-label {
  color: #6c757d;
  font-weight: 600;
  margin-right: 0.25rem;
  white-space: nowrap;
}

.report-sibling-nav .nav-divider {
  color: #dee2e6;
  margin: 0 0.25rem;
}

/* Postmortem synthesis page */

.pm-lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.pm-card {
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #fff;
}

.pm-card h3,
.pm-card h4 {
  margin-top: 0;
}

.pm-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pm-supported {
  background: #d1e7dd;
  color: #0f5132;
}

.pm-repo-supported {
  background: #d1e7dd;
  color: #0f5132;
}

.pm-external {
  background: #cff4fc;
  color: #055160;
}

.pm-mixed {
  background: #ffe5d0;
  color: #7a3e00;
}

.pm-partial {
  background: #fff3cd;
  color: #664d03;
}

.pm-unresolved {
  background: #f8d7da;
  color: #842029;
}
