/* User Provided Stylesheet */

#fig-interactive-experimental-design .relative.inline-block {
  height: 704px;
  padding-bottom: 0 !important;
}

#fig-interactive-experimental-design,
#fig-supp-neuropixels-unit-yield,
#fig-supp-neuropixels-recorded-trajectories {
  width: 100%;
  display: block;
  justify-self: center;
}

#fig-interactive-experimental-design {
  max-width: 760px;
}

#fig-supp-neuropixels-unit-yield {
  max-width: 660px;
}

#fig-supp-neuropixels-recorded-trajectories {
  max-width: 1200px;
}

#fig-interactive-experimental-design > div,
#fig-supp-neuropixels-unit-yield > div,
#fig-supp-neuropixels-recorded-trajectories > div {
  min-width: 0;
}

#fig-interactive-experimental-design > figcaption,
#fig-supp-neuropixels-unit-yield > figcaption,
#fig-supp-neuropixels-recorded-trajectories > figcaption {
  margin-top: 0.75rem;
}

.manuscript-wip-inline {
  padding: 0.08rem 0.24rem;
  border-bottom: 2px solid #b45309;
  background: #fef3c7;
  color: #78350f;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

html[data-theme="dark"] .manuscript-wip-inline {
  border-bottom-color: #f59e0b;
  background: #451a03;
  color: #fde68a;
}

#fig-graphical-abstract {
  grid-column: body-outset-start / body-outset-end;
}

article > figure:not(.table-hover-source) img {
  display: block;
  max-width: min(100%, 1200px);
  height: auto;
  margin-inline: auto;
}

.myst-tab-set table th:first-child,
.myst-tab-set table td:first-child {
  min-width: 9rem;
}

article > figure.table-hover-source {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hover-card-content:has(.table-hover-source) .hover-document {
  max-height: min(460px, calc(100vh - 2rem));
}

.publication-data-source {
  display: none !important;
}

@media (max-width: 640px) {
  #fig-interactive-experimental-design .relative.inline-block {
    height: 560px;
  }
}

/* Publication tables */
article table {
  width: 100%;
  margin: 1rem 0;
  overflow: hidden;
  border: 1px solid #d0d4d2;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 5px;
  background: #fff;
  color: #303536;
  font-size: 0.86rem;
  line-height: 1.35;
}

article table.publication-data-table {
  min-width: 860px;
}

article table th,
article table td {
  padding: 0.62rem 0.72rem;
  border-right: 1px solid #e2e4e3;
  border-bottom: 1px solid #e2e4e3;
  vertical-align: top;
}

article table th:last-child,
article table td:last-child {
  border-right: 0;
}

article table tr:last-child td {
  border-bottom: 0;
}

article table th {
  background: #4b5052;
  color: #fff;
  font-weight: 650;
  text-align: left !important;
}

article table tr:first-child th[colspan] {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  background: #383d3f;
  font-size: 0.9rem;
}

article table tr:first-child th[colspan] p {
  margin: 0.12rem 0;
}

article table tr:first-child th[colspan] a {
  color: #e4e9eb;
}

article table.publication-data-table tr:nth-child(2) th {
  background: #eceeee;
  color: #303536;
  border-bottom: 2px solid #c3c8c6;
}

article table tbody td {
  text-align: left !important;
}

article table tbody tr:nth-child(even) td {
  background: #f6f7f7;
}

article table tbody tr:nth-child(odd) td {
  background: #fff;
}

article table tbody tr:hover td {
  background: #ecefee;
}

article table tbody td:first-child {
  font-weight: 600;
}

article table tr.modality-mesoscope td:first-child {
  border-left: 4px solid #9ea5a2;
}

article table tr.modality-neuropixels td:first-child {
  border-left: 4px solid #9ea5a2;
}

article table tr.modality-slap2 td:first-child {
  border-left: 4px solid #9ea5a2;
}

article .table-laser-power table,
article table.table-laser-power {
  max-width: 650px;
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}

article .table-laser-power table th,
article .table-laser-power table td,
article table.table-laser-power th,
article table.table-laser-power td {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

article .table-laser-power table th:first-child,
article .table-laser-power table td:first-child,
article table.table-laser-power th:first-child,
article table.table-laser-power td:first-child {
  text-align: left !important;
}

.id-disclosure {
  min-width: 8.5rem;
}

.id-disclosure summary {
  width: max-content;
  cursor: pointer;
  color: #496375;
  font-weight: 600;
  white-space: nowrap;
}

.id-disclosure summary:hover {
  color: #30383c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.id-list {
  margin-top: 0.45rem;
  padding: 0.55rem;
  border-left: 3px solid #b5bab8;
  background: #f7f8f8;
  color: #4d5351;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#fig-recording-session-inventory .relative.inline-block {
  height: 650px;
  padding-bottom: 0 !important;
}

#table-supplementary-oddball-studies .relative.inline-block {
  height: 590px;
  padding-bottom: 0 !important;
}

#fig-aligned-neural-signals .relative.inline-block {
  height: 690px;
  padding-bottom: 0 !important;
}

#fig-aligned-neural-signals {
  width: 100%;
  container-type: inline-size;
}

#fig-supp-neuropixels-unit-yield .relative.inline-block {
  height: 415px;
  padding-bottom: 0 !important;
}

#fig-behavior-tracking .relative.inline-block {
  height: 980px;
  padding-bottom: 0 !important;
}

#fig-behavior-tracking {
  container-type: inline-size;
}

@media (min-width: 1280px) {
  .myst-primary-sidebar {
    display: none !important;
  }

  main.article-grid,
  article.article-grid,
  section.myst-bibliography.article-grid {
    grid-template-columns:
      [screen-start] 0.5rem
      [screen-inset-start] 1fr
      [page-start] 1rem
      [page-inset-start body-outset-start] minmax(0, 2rem)
      [body-start gutter-left-start] 1rem
      [body-inset-start] minmax(10ch, 20ch)
      [middle-start] minmax(10ch, 20ch)
      [gutter-left-end] minmax(10ch, 20ch) minmax(10ch, 20ch)
      [gutter-right-start] minmax(10ch, 20ch)
      [middle-end] minmax(10ch, 20ch)
      [body-inset-end] 1rem
      [body-end gutter-right-end] 2rem
      [body-outset-end] minmax(12rem, 16rem)
      [page-inset-end] 1rem
      [page-end] 1fr
      [screen-inset-end] 0.5rem
      [screen-end];
  }

  #fig-interactive-experimental-design,
  #fig-supp-neuropixels-unit-yield {
    max-width: 984px;
    display: grid;
    grid-template-columns: minmax(0, 660px) minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
  }

  #fig-interactive-experimental-design > figcaption,
  #fig-supp-neuropixels-unit-yield > figcaption {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  main.article-grid {
    overflow-x: clip;
  }

  #fig-recording-session-inventory .relative.inline-block {
    height: 830px;
  }

  #table-supplementary-oddball-studies .relative.inline-block {
    height: 700px;
  }

  #fig-supp-neuropixels-unit-yield .relative.inline-block {
    height: 500px;
  }

}

@container (max-width: 560px) {
  #fig-behavior-tracking .relative.inline-block {
    height: 1240px;
  }
}

@container (max-width: 800px) {
  #fig-aligned-neural-signals .relative.inline-block {
    height: 620px;
  }
}

@container (max-width: 400px) {
  #fig-aligned-neural-signals .relative.inline-block {
    height: 500px;
  }
}

@container (max-width: 400px) {
  #fig-behavior-tracking .relative.inline-block {
    height: 1160px;
  }
}
