/* Small usability fixes for the existing Simone theme. */
html {
  color-scheme: dark;
  background-color: #111418;
}
body.side-header,
.side-header #main-wrapper {
  background-color: #111418;
}
.intro-summary {
  max-width: 660px;
}
/* Preserve the theme colors while making small text easier to read. */
.bg-dark-2 .text-white-50 {
  color: rgba(255, 255, 255, 0.6) !important;
}
.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
  color: #212529;
}
p a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1100;
  padding: 10px 16px;
  background: #fff;
  color: #212529;
}
.skip-link:focus {
  top: 12px;
}
a:focus-visible,
button:focus-visible,
.project-animation img[role="button"]:focus-visible {
  outline: 3px solid #20c997;
  outline-offset: 4px;
}
.project-animation img[role="button"] {
  cursor: pointer;
}
#resume li + li {
  margin-top: 0.5rem;
}
#resume .badge {
  white-space: normal;
  line-height: 1.5;
}
#contact a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
@media (max-width: 991.98px) {
  .side-header .logo-top-styler {
    padding: 12px 0;
  }
  .side-header .logo-top-styler > p {
    display: none;
  }
  .side-header .primary-menu > .container-fluid {
    flex-wrap: nowrap;
  }
  .side-header .primary-menu .navbar-collapse {
    background-color: #111418;
  }
  #content > section,
  #publications .featured-box[id] {
    scroll-margin-top: 100px;
  }
}
@media (max-width: 575.98px) {
  .section .text-9 {
    font-size: 1.75rem !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-bg {
    background-attachment: scroll !important;
  }
}

@media (max-width: 359.98px) {
  .side-header .primary-menu .social-icons {
    display: none !important;
  }
  .side-header .navbar-toggler {
    margin-left: auto;
  }
}
/* Touch scrolling should not expose a fixed/parallax background layer. */
@media (hover: none), (pointer: coarse), (max-width: 991.98px) {
  .hero-wrap .hero-bg {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
  }
}

/* Match the research figure frames while preserving the complete diagrams. */
.research-figure {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: #fff;
}
