#sunburst-container {
  position: relative;
  overflow: hidden;
}

#sunburst-container svg {
  display: block;
  overflow: hidden;   /* SVG default is hidden, but themes sometimes override it */
}

/* Status overlay: covers loading, the file picker, and errors. The web app uses a
     jQuery loading modal for this; standalone has no jQuery. */
.status {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  font-family: 'Open Sans', -apple-system, Segoe UI, Roboto, sans-serif;
}

.status[hidden] { display: none; }

.status__box {
  max-width: 32rem;
  padding: 1.75rem 2rem;
  text-align: center;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12);
}

.status__box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: #0037B2; /* Godolphin blue, as used for Darley sires in the chart */
}

.status__box p { margin: 0.5rem 0; color: #333; }

.status__note { font-size: 0.82rem; color: #666; }

.status--error .status__box { border-color: #c0392b; }
.status--error .status__box p { color: #c0392b; }

.spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.75rem;
  border: 3px solid #e3e6ea;
  border-top-color: #0037B2;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
}
