/* Keep the established theme's named grid tracks and document typography.
   The small runtime supplies interactions without Quarto or Bootstrap JS. */
:root { --site-header-height: 80px; }
body.astro-site { padding-top:0; }
#quarto-header { position:sticky; top:0; z-index:1030; }
#quarto-content { min-height:calc(100vh - var(--site-header-height)); }
#quarto-sidebar, #quarto-margin-sidebar {
  top:var(--site-header-height);
  max-height:calc(100vh - var(--site-header-height));
}
#quarto-document-content { min-width:0; }
body.homepage #quarto-document-content { margin:0; padding:0; }
body.homepage #homepage {
  width:100%; max-width:var(--site-width); margin:0 auto; padding:0 var(--site-gutter);
}
#quarto-document-content :is(h1,h2,h3,h4,h5,h6,section[id],div[id],code.sourceCode > span[id]) {
  scroll-margin-top:calc(var(--site-header-height) + 1rem);
}
.heading-anchor { display:inline-block; margin-left:.35em; color:var(--brand-strong); font-size:.75em; font-weight:400; text-decoration:none; opacity:0; }
.anchored:hover > .heading-anchor,.anchored:target > .heading-anchor,.anchored:focus-within > .heading-anchor,.heading-anchor:focus { opacity:1; }
@media(hover:none) { .heading-anchor { opacity:1; } }
#astro-theme { border:0; background:transparent; cursor:pointer; }
.site-icon { display:inline-block; width:1em; height:1em; flex:0 0 auto; vertical-align:-.125em; }
.navbar .site-icon { width:1rem; height:1rem; }
.quarto-navbar-tools { display:flex; align-items:center; gap:.25rem; }
#astro-theme { display:inline-grid; place-items:center; width:36px; height:36px; padding:0; }
html[data-theme="dark"] .theme-icon-light,
html:not([data-theme="dark"]) .theme-icon-dark { display:none; }
.astro-skip-link { position:fixed; top:-100px; left:1rem; z-index:1100; padding:.5rem 1rem; background:var(--surface-1); color:var(--link); }
.astro-skip-link:focus { top:.5rem; }
#quarto-sidebar [data-sidebar-toggle] {
  display:flex; align-items:baseline; justify-content:space-between; width:100%;
  border:0; background:none; color:inherit; font:inherit; cursor:pointer;
}
#quarto-sidebar [data-sidebar-toggle] i { margin-left:.5rem; font-size:.75em; }
#quarto-sidebar [data-sidebar-toggle][aria-expanded="true"] i { transform:rotate(90deg); }
#quarto-sidebar [hidden] { display:none !important; }
#quarto-sidebar .sidebar-menu-container { overflow:visible; }
#quarto-margin-sidebar { overflow-y:auto; }
#quarto-margin-sidebar .nav-link { overflow-wrap:anywhere; }
.panel-tabset .nav-link { cursor:pointer; }
.tab-content > .tab-pane { display:none; }
.tab-content > .tab-pane.active:not([hidden]) { display:block; }
.callout > summary.callout-header { cursor:pointer; list-style:none; }
.callout > summary.callout-header::-webkit-details-marker { display:none; }
.callout > summary.callout-header::after { content:"⌄"; margin-inline:.5rem; }
.callout[open] > summary.callout-header::after { transform:rotate(180deg); }
.astro-code-block { position:relative; isolation:isolate; }
.astro-copy { position:absolute; top:.2rem; right:.2rem; display:grid; place-items:center; width:2rem; height:2rem; margin:0; padding:.4rem; color:var(--text-2); border:0; border-radius:4px; background:transparent; opacity:0; cursor:pointer; }
.astro-copy svg { width:1rem; height:1rem; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.astro-copy .astro-copy-check,.astro-copy.code-copy-button-checked .astro-copy-icon { display:none; }
.astro-copy.code-copy-button-checked .astro-copy-check { display:block; }
.astro-code-block:hover > .astro-copy,.astro-code-block:focus-within > .astro-copy { opacity:1; }
.astro-copy:hover { color:var(--text-1); }
.astro-copy:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
main table { max-width:100%; }
main img,main svg { max-width:100%; }
.embedded-pdf { display:block; max-width:100%; }
figure.astro-figure { margin:1.5rem 0; text-align:center; }
figure.astro-figure > img { display:block; height:auto; margin-inline:auto; }
figure.astro-figure[data-align="left"] { text-align:left; }
figure.astro-figure[data-align="left"] > img { margin-inline:0 auto; }
figure.astro-figure[data-align="right"] { text-align:right; }
figure.astro-figure[data-align="right"] > img { margin-inline:auto 0; }
figure.astro-figure > figcaption { margin-top:.75rem; color:var(--text-2); font-size:.85rem; }
.figure-grid { display:grid; grid-template-columns:repeat(var(--figure-columns), minmax(0,1fr)); gap:1.5rem; align-items:start; }
.figure-grid > * { min-width:0; }
details.code-fold { margin:1rem 0; }
details.code-fold > summary { width:fit-content; cursor:pointer; color:var(--text-2); font-size:.85rem; padding:.25rem 0; }
details.code-fold > summary:hover { color:var(--brand-strong); }
details.code-fold[open] > summary { margin-bottom:.5rem; }
@media(max-width:600px) { .figure-grid { grid-template-columns:minmax(0,1fr); gap:.5rem; } }
main .mermaid { text-align:center; }
.katex-display { overflow-x:auto; overflow-y:hidden; padding:.4rem 0; }
.astro-post { display:flex; gap:1.5rem; padding:1.5rem 0; border-bottom:1px solid var(--border-1); }
.astro-post img { width:80px; height:70px; object-fit:contain; }
.astro-post h2 { font-size:1.25rem; border:none; margin:.4rem 0; }
.astro-post time,.astro-post small { color:var(--text-2); font-size:.8rem; }
@media(min-width:992px) {
  #quarto-sidebar { height:calc(100vh - var(--site-header-height)); }
  #quarto-margin-sidebar { position:sticky; align-self:start; }
}
@media(max-width:991.98px) {
  #quarto-sidebar.show {
    position:fixed; top:var(--site-header-height); left:0; bottom:0;
    width:min(360px,100vw); min-height:0; padding:1rem; z-index:1020;
    box-shadow:8px 0 24px #0002;
  }
  #quarto-margin-sidebar { display:none; }
  .quarto-secondary-nav .container-fluid { align-items:center; min-height:48px; }
  .quarto-secondary-nav-title { flex:1; min-width:0; margin:0; padding:0; }
  .astro-sidebar-title-toggle {
    display:flex; align-items:center; width:100%; min-height:48px; padding:0;
    border:0; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer;
  }
  .astro-sidebar-title-toggle:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
  #navbarCollapse { flex-basis:100%; }
}
@media(hover:none) { .astro-copy { opacity:.7; } }

/* Numbered references use the same source labels in every output format. */
.numbered-equation { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:1rem; }
.numbered-equation > .equation-number { white-space:nowrap; font-family:var(--bs-body-font-family); }
.numbered-equation > section { min-width:0; }
.numbered-equation .katex-display { margin-block:1rem; }
.blog-page #quarto-content { grid-template-columns:[screen-start page-start body-content-start] minmax(0,1fr) [body-content-end page-end screen-end]; }
.astro-blog { display:grid; grid-template-columns:minmax(0,1fr) 12rem; gap:3rem; align-items:start; }
.blog-page #quarto-content .blog-filters { grid-column:2; grid-row:1; }
.blog-filters { padding-top:1.5rem; }
.blog-filters h2 { margin:0 0 .75rem; font-size:1rem; border:0; }
.blog-category-options { display:flex; flex-direction:column; gap:.25rem; }
.blog-category { display:flex; justify-content:space-between; gap:.75rem; padding:.45rem .65rem; border:1px solid transparent; border-radius:5px; color:var(--text-2); background:transparent; font:inherit; font-size:.85rem; text-align:left; }
.blog-category:hover { color:var(--brand-strong); background:var(--surface-2); }
.blog-category[aria-pressed="true"] { color:var(--brand-strong); border-color:var(--border-1); background:var(--surface-2); }
.blog-category:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.blog-category-count { font-variant-numeric:tabular-nums; }
.blog-result-count { margin:.9rem .65rem 0; color:var(--text-2); font-size:.8rem; }
.astro-blog .astro-posts { grid-column:1; grid-row:1; min-width:0; }
.astro-post[hidden],.blog-no-results[hidden] { display:none; }
@media(max-width:767px) {
  .astro-blog { display:block; }
  .blog-filters { padding:0 0 1rem; }
  .blog-category-options { flex-direction:row; flex-wrap:wrap; gap:.4rem; }
  .blog-category { border-color:var(--border-1); font-size:.75rem; }
  .blog-result-count { margin:.75rem 0 0; }
}
