/* Restrained MDAS branding; the Book Theme supplies responsive navigation. */
html {
  --pst-font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pst-font-family-heading: var(--pst-font-family-base);
  --pst-font-family-monospace: "Cascadia Code", Consolas, monospace;
}
html[data-theme="light"] {
  --pst-color-primary: #007c89;
  --pst-color-secondary: #496785;
  --pst-color-link: #006e7a;
  --pst-color-link-hover: #004f5a;
  --pst-color-background: #ffffff;
  --pst-color-on-background: #f5f8fa;
}
html[data-theme="dark"] {
  --pst-color-primary: #6dd8dc;
  --pst-color-link: #81dce0;
}
.bd-header {
  border-top: 3px solid var(--pst-color-primary);
}
.bd-sidebar-primary {
  padding-top: 1.5rem;
}
.navbar-brand.logo {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding-bottom: 1rem;
}
.navbar-brand img {
  width: 100%;
  max-width: 150px;
  height: auto;
  max-height: none !important;
  background: white;
  border-radius: .35rem;
}
.navbar-brand .logo__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.bd-article h1 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}
.bd-article h2 {
  font-size: 1.55rem;
  margin-top: 2rem;
}
.mdas-home-logo {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: .5rem;
  background: white;
}
.bd-article table {
  width: 100%;
  font-size: .94rem;
}
.bd-article table th {
  white-space: normal;
}
.bd-article table td {
  vertical-align: top;
}
.bd-article pre {
  border-radius: .4rem;
}
.bd-article .admonition {
  border-radius: .4rem;
}
.bd-sidebar-primary .caption {
  margin-top: 1.3rem;
  letter-spacing: .025em;
}
@media (max-width: 767px) {
  .bd-article h1 { font-size: 1.85rem; }
  .mdas-home-logo { margin-bottom: 1rem; }
}

/* Expanded teaching layout; DOM nodes and notebook kernels stay in place. */
.mdas-presentation-toggle:focus-visible {
  outline: 3px solid var(--pst-color-primary);
  outline-offset: 3px;
}
html.mdas-presentation .bd-sidebar-primary,
html.mdas-presentation .bd-sidebar-secondary,
html.mdas-presentation .sidebar-toggle,
html.mdas-presentation .pst-primary-sidebar-modal,
html.mdas-presentation .pst-secondary-sidebar-modal,
html.mdas-presentation .bd-footer,
html.mdas-presentation .prev-next-area {
  display: none !important;
}
html.mdas-presentation .bd-container,
html.mdas-presentation .bd-container__inner,
html.mdas-presentation .bd-main,
html.mdas-presentation .bd-content,
html.mdas-presentation .bd-article-container,
html.mdas-presentation .bd-header-article {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}
html.mdas-presentation .bd-main {
  flex-grow: 1;
}
html.mdas-presentation .bd-article {
  padding-inline: clamp(1rem, 4vw, 4rem);
}
html.mdas-presentation .bd-header-article {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--pst-color-background);
}
@media (max-width: 575px) {
  .mdas-presentation-label { display: none; }
}
