/* User Provided Stylesheet */

.myst-fm-downloads-dropdown {
  display: none !important;
}

table td,
table th {
  width: fit-content;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* table td:first-child,
table th:first-child {
  width: 20%;
  text-align: left; 
  vertical-align: top;
} */

/* First column */
#tab-funding table th:first-child,
#tab-funding table td:first-child {
    width: 15%;
    text-align: left; 
    vertical-align: top;
} 

/* Second column */
#tab-funding table th:nth-child(2),
#tab-funding table td:nth-child(2) {
    width: 85%;
}

#tab-titles table,
#tab-titles table {
    width: 150%;
}

#giscus-comments {
  max-width: 100% !important;
  padding: 0 !important;
}

.giscus,
.giscus-frame {
  width: 100% !important;
}

#featured-projects + .myst-grid .myst-card-footer,
#featured-projects + .myst-grid .myst-card-title {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  text-align: center !important;
  white-space: nowrap;
}

#featured-projects + .myst-grid .myst-card-footer > *,
#featured-projects + .myst-grid .myst-card-title > * {
  text-align: center !important;
}

#featured-projects + .myst-grid .myst-card-footer p,
#featured-projects + .myst-grid .myst-card-footer strong {
  margin: 0 auto;
}

#posts ~ .myst-grid .myst-card-header,
#posts ~ * .myst-grid .myst-card-header {
  padding: 0.5rem !important;
  border-bottom: none !important;
  background: transparent !important;
}

#posts ~ .myst-grid .myst-card-header img,
#posts ~ * .myst-grid .myst-card-header img {
  display: block;
  width: 100%;
  margin: 0 !important;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 4px;
}

.myst-navbar-end .navbar-social-link,
.myst-primary-sidebar-navbar-end .navbar-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  min-width: 2.4rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid currentColor;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.myst-primary-sidebar,
.myst-primary-sidebar .myst-primary-sidebar-pointer {
  max-width: 15rem !important;
  width: 15rem !important;
  min-width: 0rem !important;
}

/* Entire outline container */
.myst-outline-section {
  position: fixed;          /* Keeps it on the right while scrolling */
  top: 4rem;                /* Adjust vertical position */
  right: 3rem;              /* Distance from the right edge */

  width: 20rem;
  max-width: 20rem;
  min-width: 20rem;

  margin: 0;
  padding: 0;

  text-align: right;
  box-sizing: border-box;
}

/* Title */
.myst-outline-section h2,
.myst-outline-section h3,
.myst-outline-section .caption {
  text-align: right;
  margin: 0 0 0.5rem 0;
}

/* List */
.myst-outline-section ul,
.myst-outline-section ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* List items */
.myst-outline-section li {
  margin: 0.25rem 0;
  text-align: right;
}

/* Links */
.myst-outline-section a {
  display: block;
  text-align: right;
}



@media (min-width: 1024px) {
  .article-grid .col-margin-right,
  .article-grid .col-margin-right > *,
  .myst-aside.myst-aside-sidebar,
  .myst-aside.myst-aside-sidebar > * {
    max-width: 15rem !important;
    width: 15rem !important;
    min-width: 0 !important;
  }
  
  .article-grid .myst-content,
  .article-grid .article {
    max-width: none !important;
  }
}

.myst-landing-justified-subtitle,
.myst-landing-split-img-subtitle {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.myst-navbar-end .navbar-social-link:hover,
.myst-primary-sidebar-navbar-end .navbar-social-link:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
}

.navbar-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.navbar-social-link--linkedin {
  background-color: #0a66c2;
  color: #ffffff;
  border-color: transparent;
  font-weight: 700;
}

.navbar-social-link--researchgate {
  background-color: #00ccbb;
  color: white;
  border-color: transparent;
  font-weight: 700;
}
