/* AUP Teaching Labs — layout overrides on top of PyData Sphinx Book theme */

html[data-theme="light"] {
  --pst-color-primary: #176de8;
}

body {
  margin: 0;
}

.navbar-brand.logo {
  text-decoration: none;
  color: inherit;
}

.navbar-brand .logo__title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.bd-sidenav .caption {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pst-color-muted);
  margin: 1rem 0 0.35rem;
}

.bd-sidenav .toctree-l1 > a {
  text-decoration: none;
  color: var(--pst-color-text-base);
  display: block;
  padding: 0.2rem 0;
}

.bd-sidenav .toctree-l1 > a:hover {
  color: var(--pst-color-primary);
}

.bd-sidenav .toctree-l1.current > a {
  color: var(--pst-color-primary);
  font-weight: 600;
}

.sd-card-img-top {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.sd-card.sd-card-hover {
  overflow: visible;
}

.lab-hero {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.25rem;
  margin: 1rem 0 1.5rem;
}

.lab-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.lab-gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0.25rem;
  border: 1px solid var(--pst-color-border);
  background: var(--pst-color-background);
}

.admonition.note {
  border-left: 0.2rem solid var(--pst-color-info);
  background: var(--pst-color-info-bg);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 0.25rem;
}

.admonition.note .admonition-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.lab-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lab-list li {
  margin-bottom: 1.25rem;
}

.lab-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.lab-list p {
  margin: 0;
  color: var(--pst-color-text-muted);
}

.see-also {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pst-color-border);
  color: var(--pst-color-text-muted);
}

@media (max-width: 768px) {
  .sd-row-cols-2 > * {
    width: 100% !important;
    flex: 0 0 auto !important;
  }
}
