/* Co-author graph, including responsive and browser-specific fullscreen states. */
.author-graph-panel {
  border-top: 0.25rem solid #2f7d7e !important;
}

.author-graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.author-graph-legend-item {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.author-graph-legend-swatch {
  border: 1px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(18, 38, 58, 0.2);
  display: inline-block;
  flex: 0 0 auto;
  height: 0.85rem;
  width: 0.85rem;
}

.author-graph-legend-line {
  background: transparent;
  border-top-width: 0.2rem;
  display: inline-block;
  flex: 0 0 auto;
  height: 0;
  width: 2rem;
}

.author-graph-legend-swatch-autistic,
.author-graph-status-autistic {
  background: #2f7d7e;
}

.author-graph-legend-swatch-not-identified,
.author-graph-status-not-identified {
  background: #8a6f3d;
}

.author-graph-status-badge {
  color: #fff;
}

.author-graph-legend-line-autistic-autistic {
  border-top-color: #0072b2;
  border-top-style: solid;
}

.author-graph-legend-line-mixed {
  border-top-color: #111827;
  border-top-style: dashed;
}

.author-graph-legend-line-not-identified {
  border-top-color: #6b7280;
  border-top-style: dotted;
}

.author-graph-canvas-wrap {
  background: #fff;
  position: relative;
}

.author-graph-canvas-wrap:fullscreen {
  height: 100vh;
  overflow: hidden;
  padding: 0;
  width: 100vw;
}

.author-graph-canvas-wrap:fullscreen .author-graph-canvas {
  border: 0;
  border-radius: 0;
  height: 100vh !important;
  min-height: 0 !important;
  width: 100vw;
}

.author-graph-canvas-wrap:-webkit-full-screen {
  height: 100vh;
  overflow: hidden;
  padding: 0;
  width: 100vw;
}

.author-graph-canvas-wrap:-webkit-full-screen .author-graph-canvas {
  border: 0;
  border-radius: 0;
  height: 100vh !important;
  min-height: 0 !important;
  width: 100vw;
}

.author-graph-canvas {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  height: min(80vh, 56rem);
  min-height: 38rem;
  overflow: hidden;
  width: 100%;
}

.author-graph-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  box-shadow: 0 0.35rem 1rem rgba(18, 38, 58, 0.12);
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 5;
}

.author-graph-controls .btn-group {
  box-shadow: 0 0.35rem 1rem rgba(18, 38, 58, 0.08);
}

.author-graph-search-results {
  max-height: 18rem;
  overflow-y: auto;
  position: absolute;
  width: calc(100% - var(--bs-gutter-x));
  z-index: 20;
}

.author-graph-node-panel {
  background: #fff;
}

.author-graph-node-metrics {
  display: grid;
  gap: 0.65rem;
}

.author-graph-node-metric {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

@media (max-width: 575.98px) {
  .author-graph-canvas {
    height: 32rem;
    min-height: 32rem;
  }

  .author-graph-search-results {
    position: static;
    width: 100%;
  }

  .author-graph-controls {
    right: 0.5rem;
    top: 0.5rem;
  }
}
