/* CSS styles */

/* Google Fonts {{{ */

/* NOTE: Fonts are now loaded via <link> in _include/html/header-include.html
   for better performance. The old @import method is commented out below as a
   reminder. Using <link> with preconnect hints eliminates render-blocking
   and improves Lighthouse scores significantly.

   Old method (commented out):
   @import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap");
*/

/* }}} */

/* Back to Top Button {{{ */

.back-to-top {
  position: fixed;
  bottom: 3rem;
  right: 2rem;
  width: 2.25rem;
  height: 2.25rem;
  background-color: #ce63ff;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background-color: #ce63ff;
  transform: translateY(-2px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Mobile styles */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 2.5rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .back-to-top {
    bottom: 2rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* }}} */

/* Custom Selection Colors {{{ */

::selection {
  background-color: #ce63ff;
  color: #ffffff;
}

::-moz-selection {
  background-color: #ce63ff;
  color: #ffffff;
}

/* }}} */

/* Smooth Scrolling {{{ */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* }}} */

/* Enhanced Focus Indicators {{{ */

:focus-visible {
  outline: 2px solid #e65100;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Remove default focus for elements with custom focus */
a:focus,
button:focus,
.nav-link:focus,
.navbar a:focus {
  outline: none;
}

/* Multi-line friendly focus for links using background */
a:focus-visible {
  background-color: rgba(230, 81, 0, 0.25);
  outline: none;
}

/* Keep outline for buttons and nav elements */
button:focus-visible,
.nav-link:focus-visible,
.navbar a:focus-visible {
  outline: 2px solid #e65100;
  outline-offset: 2px;
  border-radius: 2px;
}

/* }}} */

/* Basic Components {{{ */

.page-rows-contents {
  grid-template-rows:
    [content-top] minmax(max-content, 0fr) [content-bottom] minmax(0px,
      max-content) [page-bottom];
}

main,
p {
  font-weight: 400;
  margin-bottom: 0.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Reduce excessive margin from Bootstrap on first paragraph */
main.content > p:has(+ section) {
  margin-bottom: 1rem;
}

h1,
.h1 {
  hyphens: auto;
  word-break: break-word;
  word-wrap: break-word;
  opacity: 1;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 2.25rem;
  text-wrap: balance;
}

h2,
.h2 {
  hyphens: auto;
  word-break: break-word;
  word-wrap: break-word;
  opacity: 1;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 2rem;
  hyphens: auto;
  border-bottom: none;
  margin-bottom: 0.25rem !important;
  text-wrap: balance;
  scroll-margin-top: 40px;
}

h1.title,
.title.h1 {
  margin-top: -1rem;
}

h3,
.h3,
h4,
.h4 {
  hyphens: auto;
  word-break: break-word;
  word-wrap: break-word;
  opacity: 1;
  margin-top: 0.75rem;
  text-wrap: balance;
  scroll-margin-top: 40px;
}

a {
  color: #ce63ff;
  text-decoration: none;
  -webkit-text-decoration: none;
  -moz-text-decoration: none;
  -ms-text-decoration: none;
  -o-text-decoration: none;
}

p a:hover {
  color: #ce63ff !important;
  transition:
    text-decoration-color 300ms,
    text-underline-offset 300ms;
  text-decoration: underline 0.1em rgba(0, 0, 0, 1);
  text-decoration-color: #ce63ff;
  text-underline-offset: 0.3em;
}

.podcast-paragraph {
  margin-bottom: 1em;
}

.body a:hover {
  color: #ce63ff !important;
}

/* Ensure links in lists and software section have hover underline */
li a:hover,
ul a:hover,
dl a:hover,
.software a:hover {
  color: #ce63ff !important;
  transition:
    text-decoration-color 300ms,
    text-underline-offset 300ms;
  text-decoration: underline 0.1em;
  text-decoration-color: #ce63ff;
  text-underline-offset: 0.3em;
}

li,
.li {
  margin-top: 0;
}

ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.software {
  font-size: 20px;
  margin-top: 0rem;
  margin-bottom: 0.1rem !important;
}

pre {
  font-family: "IBM Plex Mono" !important;
  overflow-x: auto !important;
  white-space: pre-wrap !important;
  white-space: -moz-pre-wrap !important;
  white-space: -pre-wrap !important;
  white-space: -o-pre-wrap !important;
  word-wrap: break-word !important;
  word-break: break-word;
  hyphens: auto;
  background-color: initial;
  padding: initial;
  border: initial;
}

pre.sourceCode {
  border-left: 3px;
  border-left-style: solid;
  border-left-color: #e65100;
  padding: 0.5em;
  margin-left: 0.75em;
  border-right: 1px solid #dee2e6;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.875em;
  overflow: visible !important;
}

details>summary {
  color: #343a40;
  margin-top: -0.5em;
  margin-bottom: -0.5em;
}

.blockquote {
  font-size: inherit;
  margin-top: 0.75rem;
  padding-left: 0.5rem;
  padding-right: 1.5rem;
  color: inherit;
}

#quarto-appendix.default {
  background-color: #fff;
  padding-top: 1em;
  margin-top: 1em;
  z-index: 998;
}

h3>a,
h4>a {
  color: #343a40;
  text-decoration: none;
  font-weight: 600 !important;
}

div.callout-tip.callout {
  border-left-color: #ce63ff;
}

.callout.callout-titled {
  padding-top: 0.7em !important;
}

.callout.callout-style-simple {
  padding: 0.0em 0.75em 0.70em 0.75em;
  margin-right: 0.5em;
  width: fit-content;
  border-left: 5px solid;
  border-right: 1px solid #dee2e6;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

div.callout-note.callout {
  border-left-color: #007bff;
  margin-left: 0.2em !important;
}

.callout {
  margin-top: 1.25rem;
  margin-left: 0.25rem;
  margin-bottom: 1.25rem;
  border-radius: 0.25rem;
  overflow-wrap: break-word;
}

.table {
  border-bottom: none;
  border-top: none;
}

audio {
  width: 300px;
  height: 54px;
  margin-top: 0.5em;
}

/* }}} */

/* Forms {{{ */

.btn-info {
  margin-top: 0.5rem;
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

/* }}} */

/* Announcement {{{ */

.alert-primary {
  --bs-alert-color: var(--bs-primary-text-emphasis);
  --bs-alert-bg: var(--bs-primary-bg-subtle);
  --bs-alert-border-color: var(--bs-primary-border-subtle);
  --bs-alert-link-color: var(--bs-primary-text-emphasis);
}

.alert {
  --bs-alert-padding-x: 1rem;
  --bs-alert-padding-y: 1rem;
  --bs-alert-margin-bottom: 1rem;
  --bs-alert-color: inherit;
  --bs-alert-border-color: transparent;
  --bs-alert-border: 1px solid var(--bs-alert-border-color);
  --bs-alert-border-radius: 0.25rem;
  --bs-alert-link-color: inherit;
  position: relative;
  padding: var(--bs-alert-padding-y) var(--bs-alert-padding-x);
  margin-bottom: var(--bs-alert-margin-bottom);
  color: var(--bs-alert-color);
  background-color: var(--bs-alert-bg);
  border: var(--bs-alert-border);
  border-radius: 0rem;
}

/* }}} */

/* Navbar {{{ */

#quarto-content>* {
  padding-top: 12px;
}

@media (max-width: 991.98px) {
  #quarto-content>* {
    padding-top: 12px !important;
  }
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.882em;
  vertical-align: middle;
  background-image: var(--bs-navbar-toggler-icon-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.navbar a {
  text-decoration: none;
  font-size: 1rem;
  color: inherit;
  font-weight: 500 !important;
}

.nav-footer {
  min-height: 1em;
  padding-bottom: 0em;
  color: #757575;
}

.navbar a:hover {
  color: #fff !important;
  text-decoration: none;
}

.navbar a {
  text-decoration: none;
  font-size: 1rem;
  color: inherit;
  font-weight: 400;
}

.dropdown-text a {
  text-decoration: none;
  font-size: 0.75rem;
  color: inherit;
  font-weight: 400;
}

.navbar .dropdown-item {
  font-weight: 400 !important;
}

.navbar .dropdown-item:hover {
  color: #ce63ff !important;
}

/* Extra space between top-level navbar items (Home, Teaching, …) */
#quarto-header .navbar-nav > .nav-item > .nav-link {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 992px) {
  #quarto-header ul.navbar-nav {
    column-gap: 1.25rem;
  }
}

/* Center primary nav links on wide layouts; RSS + theme controls stay on the right.
   Quarto renders left items in ul.navbar-nav.me-auto and right items in ul.ms-auto. */
@media (min-width: 992px) {
  #quarto-header .navbar-collapse {
    position: relative;
    flex-grow: 1;
    justify-content: flex-end;
    align-items: center;
  }

  #quarto-header .navbar-collapse > ul.navbar-nav.me-auto,
  #quarto-header .navbar-collapse > ul.navbar-nav.me-lg-auto {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  /* Keep right-side icon links compact and aligned with theme toggle. */
  #quarto-header .navbar-collapse > ul.navbar-nav.ms-auto,
  #quarto-header .navbar-collapse > ul.navbar-nav.ms-lg-auto {
    column-gap: 0.25rem;
    align-items: center;
    margin-right: 0.2rem !important;
  }

  #quarto-header .navbar-collapse > ul.navbar-nav.ms-auto > .nav-item > .nav-link,
  #quarto-header .navbar-collapse > ul.navbar-nav.ms-lg-auto > .nav-item > .nav-link {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }

  #quarto-header .quarto-navbar-tools {
    display: flex;
    align-items: center;
    margin-left: 0;
  }

  #quarto-header .quarto-navbar-tools .quarto-navigation-tool {
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }
}

/* }}} */

/* Table of Contents {{{ */

.toc-actions a {
  text-decoration: none;
  font-size: 0.75em;
  color: inherit;
  font-weight: 400;
  line-height: 0.5rem;
}

/* }}} */

/* Sidebar {{{ */

.sidebar.toc-left,
.sidebar.margin-sidebar {
  top: 0px;
  padding-top: 1em !important;
}

.sidebar nav[role="doc-toc"] ul>li>a.active,
.sidebar nav[role="doc-toc"] ul>li>ul>li>a.active {
  border-left: 1px solid #ce63ff;
  color: #ce63ff !important;
}

#quarto-margin-sidebar .toc-actions .bi:before {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: #6c757d;
  vertical-align: top;
}

sidebar .quarto-alternate-notebooks h2,
.sidebar .quarto-alternate-notebooks .h2,
.sidebar .quarto-alternate-formats h2,
.sidebar .quarto-alternate-formats .h2,
.sidebar nav[role="doc-toc"]>h2,
.sidebar nav[role="doc-toc"]>.h2 {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  margin-top: 0.3rem;
  font-family: inherit;
  border-bottom: 0;
  padding-bottom: 0;
  padding-top: 0px;
}

sidebar .quarto-alternate-notebooks ul li a,
.sidebar .quarto-alternate-formats ul li a,
.sidebar nav[role="doc-toc"]>ul li a {
  line-height: 1.1rem;
  font-weight: 400;
  padding-bottom: 0.2rem;
  padding-top: 0.2rem;
  color: inherit;
}

.toc-actions a:hover {
  color: #ce63ff !important;
}

.nav-link {
  display: block;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  color: #ce63ff;
  text-decoration: none;
  -moz-text-decoration: none;
  -ms-text-decoration: none;
  -o-text-decoration: none;
  transition: none !important;
}

.nav-link a:hover {
  color: #ce63ff !important;
  transition: none !important;
}

/* }}} */

/* Footer {{{ */

.nav-footer .nav-footer-right {
  font-size: 0;
}

.nav-footer .toc-actions {
  font-size: 0;
  color: #ecf2ff;
  padding-bottom: 0;
  padding-top: 0;
}

.nav-footer a {
  color: #757575;
}

.nav-footer a:hover {
  color: #ef6c00;
}

.nav-footer a.external:after {
  display: none;
}

.nav-footer-left .footer-items .nav-link,
.nav-footer-center .footer-items .nav-link,
.nav-footer-right .footer-items .nav-link {
  padding-left: 0.3em;
  padding-right: 0.3em;
}

/* }}} */

/* Get the Gist {{{ */

.toggle-label {
  margin-right: 5px;
}

.toggle-container {
  width: 225px;
  display: flex;
  align-items: center;
  margin-top: 15px !important;
  padding-top: 5px;
  padding-bottom: 2px;
  padding-left: 9px;
  border-radius: 0.25rem;
}

/* }}} */

/* Blog {{{ */

div.quarto-post .thumbnail {
  display: none;
  flex-basis: 0%;
  flex-grow: 0;
  flex-shrink: 0;
}

.quarto-grid-item .listing-categories {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 5px;
  padding-top: 10px;
}

.quarto-grid-item .card-text {
  font-style: italic;
  font-size: 0.7em;
}

.description {
  font-style: italic;
}

.listing-description {
  font-style: italic;
}

/* }}} */

/* Papers and Presentations {{{ */

#quarto-content.page-columns #quarto-margin-sidebar,
#quarto-content.page-columns #quarto-sidebar {
  z-index: 0;
}

.quarto-title-reference-heading {
  text-transform: uppercase;
  margin-top: 1em;
  margin-bottom: -0.5em;
  font-size: 1em;
  opacity: 1;
  font-weight: 500;
}

.quarto-title-details-heading {
  text-transform: uppercase;
  margin-top: 1em;
  margin-bottom: 0.25em;
  font-size: 1em;
  opacity: 1;
  font-weight: 500;
}

#title-block-header.quarto-title-block.default .quarto-title-meta-heading {
  text-transform: uppercase;
  margin-top: 1em;
  font-size: 1em;
  opacity: 1;
  font-weight: 500;
}

#title-block-header.quarto-title-block.default .description .abstract-title,
#title-block-header.quarto-title-block.default .abstract .abstract-title {
  text-transform: uppercase;
  margin-top: 1em;
  font-size: 1em;
  opacity: 1;
  font-weight: 500;
}

#title-block-header.quarto-title-block.default .quarto-title-meta-contents {
  font-size: 1em;
}

#title-block-header.quarto-title-block.default .keywords .block-title,
#title-block-header.quarto-title-block.default .description .block-title,
#title-block-header.quarto-title-block.default .abstract .block-title {
  margin-top: 1em;
  text-transform: uppercase;
  font-size: 1em;
  opacity: 1;
  font-weight: 500;
}

.quarto-title .quarto-categories .quarto-category {
  padding: 0.25em 0.75em;
  font-size: 0.55em;
  font-weight: 500;
  text-transform: uppercase;
  border: solid 1.5px;
  border-radius: 0.25rem;
  opacity: 1;
}

.quarto-title .quarto-categories .quarto-category:hover {
  color: #ce63ff !important;
  text-decoration: none;
}

div.quarto-post .listing-categories .listing-category {
  color: #333333;
  padding: 0.25em 0.75em;
  font-size: 0.55em;
  font-weight: 500;
  text-transform: uppercase;
  border: solid 1.5px;
  border-radius: 0.25rem;
  opacity: 1;
  cursor: pointer;
  margin-top: 4px;
  margin-right: 4px;
  margin-bottom: 4px;
}

div.quarto-post .listing-categories .listing-category:hover {
  color: #ce63ff !important;
  text-decoration: none;
}

div.quarto-post {
  display: flex;
  gap: 2em;
  margin-bottom: 1em;
  border-bottom: 1px solid #dee2e6;
}

div.quarto-grid-item .listing-categories .listing-category {
  color: #333333 !important;
  padding: 0.25em 0.75em;
  font-size: 0.55em;
  font-weight: 500;
  text-transform: uppercase;
  border: solid 1.5px;
  border-radius: 0.25rem;
  opacity: 1;
  cursor: pointer;
  margin-right: 4px;
  margin-bottom: 4px;
}

div.quarto-grid-item .listing-categories .listing-category:hover {
  color: #ce63ff !important;
  text-decoration: none;
}

#quarto-margin-sidebar .quarto-listing-category-title {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

#quarto-margin-sidebar .quarto-listing-category {
  padding-top: 0;
  font-size: 0.75rem;
}



/* }}} */

/* Listing Search and Filter {{{ */

div.quarto-post .body h3.listing-title,
div.quarto-post .body .listing-title.h3 {
  margin-top: 0px;
  margin-bottom: 5px;
  border-bottom: none;
}

/* }}} */
/*want this
/* Listing Search and Filter {{{ */

.listing-actions-group {
  font-size: 0.825rem;
  display: flex;
}

input.search.form-control {
  font-size: 0.725rem !important;
}











