/* Custom layout overrides for the Antora default UI.
   On desktop (>=1024px) the default UI caps the article at max-width:46rem,
   which leaves empty space on the right and keeps the TOC from sitting flush
   against the right edge. Let the article fill the available width so the
   content spreads out and the TOC is pushed all the way to the right. */
@media screen and (min-width: 1024px) {
  .doc {
    max-width: none;
  }

  /* Optional: give the right-hand TOC a little more room (default is 9rem). */
  aside.toc.sidebar {
    flex: 0 0 12rem;
  }
}

/* Local graph panel (mounted by js/local-graph.js): sidebar variant sits inside
   the right toc below Contents; details variant is the fallback at the end of
   the article (no toc / narrow screens). */
.local-graph.is-sidebar {
  margin-top: 1.25rem;
}

.local-graph.is-sidebar .local-graph-canvas {
  height: 200px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fdfdfd;
  overflow: hidden;
}

details.local-graph {
  margin-top: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

details.local-graph > summary {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-weight: 500;
  color: #5d5d5d;
  user-select: none;
}

details.local-graph .local-graph-canvas {
  height: 280px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
