
/* Slightly tighten H4 (section) spacing and show section symbol before numbered headings */
.md-typeset h4 { margin-top: 1.2em; }
.md-typeset h5, .md-typeset h6 { margin-top: 0.8em; }

/* Make code section numbers (e.g., PC §231) stand out a bit */
.md-typeset h4 code { font-weight: 600; }

/* Optional: readable width for long legal text */
.md-grid { max-width: 1100px; }

/* Toast container fixed at top center */
.md-toast-container {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;             /* above header */
  pointer-events: none;      /* clicks pass through */
}

/* Individual toast */
.md-toast {
  pointer-events: auto;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.08);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;

  /* Respect Material color variables if present, with sensible fallbacks */
  background: var(--md-default-bg-color, #fff);
  color: var(--md-default-fg-color, #111);
}

/* Visible state */
.md-toast.show {
  opacity: 1;
  transform: translateY(0);
}