.md-typeset h1 {
  font-weight: bold;
}

.procedure {
  font-size: 1.25em;
  font-weight: 400;
  letter-spacing: -.01em;
}

.numberCircle {
  width: 30px;
  line-height: 30px;
  border-radius: 50%;
  text-align: center;
  font-size: 15px;
  border: 0px;
  background: #AC0C64;
  color: #fff;
}

figcaption {
  margin-left: 0;
  margin-right: 0;
  font-size: 0.9em;
}

.md-typeset a {
  text-decoration: underline;
}

.md-typeset img {
    display: block;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
    max-width: 100%;
    max-height: 400px;
}

.stacked-images {
          display: flex;
  justify-content: space-around;
       margin-top: 16px;
}

.stacked-image {
  align-self: center;
  max-height: 400px !important;
}

img.inline-img {
  display: inline;
  height: 1em; 
  margin-top: 0; 
  margin-bottom: 0;
} 

:root {
  --md-primary-fg-color: #353554;
}

[data-md-color-scheme="terarium"] {
  --md-accent-fg-color: #1b8073;
  --md-primary-fg-color: #fff;
  --md-primary-bg-color: #000;
  --md-primary-bg-color--light: #0000008a;
  --md-typeset-a-color: #1b8073;;
  --md-icon: #000;
  --md-footer-bg-color: #f5f5f5;
  --md-footer-bg-color--dark: #d6d6d6;
  --md-footer-fg-color: #000000de;
  --md-footer-fg-color--light: #000000de;
  --md-footer-fg-color--lighter: #000000de;
  --md-footer-typeset-color: ;
}

[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #1b8073;
  --md-primary-bg-color--light: #fff;
  --md-primary-fg-color: #1b8073;
}

[data-md-color-scheme=slate][data-md-color-primary=indigo] {
  --md-typeset-a-color: #1b8073;
}

.md-header {
    color: var(--md-primary-bg-color--light);
}

.md-search__form {
  background: var(--md-primary-fg-color);
}

/*Adjust icon sizes and alignment*/

.md-typeset .emojione svg,.md-typeset .gemoji svg,.md-typeset .twemoji svg {
    font-size: .9em;
}

.md-typeset .emojione,.md-typeset .gemoji,.md-typeset .twemoji {
    height: .9em;
    vertical-align: baseline;
}

svg.feather {
  fill: none !important;
}

/*Show correct logo for current mode*/

#logo_light_mode {
    display: var(--md-footer-logo-terarium);
}

#logo_dark_mode {
    display: var(--md-footer-logo-slate);
}

[data-md-color-scheme="terarium"] {
    --md-footer-logo-slate: none;
    --md-footer-logo-terarium: block;
}

[data-md-color-scheme="slate"] {
    --md-footer-logo-slate: block;
    --md-footer-logo-terarium: none;
}

/*Admonition for procedure lists*/

.md-typeset .admonition.list,
.md-typeset details.list {
  border-top: .075rem solid #e1e3e1;
  border-bottom: .075rem solid #e1e3e1;
  border-left: none;
  border-right: none;
  border-radius: 0;
  margin-top: 0;
  margin-bottom: 0;
  font-size: inherit;
}

.md-typeset .list > .admonition-title,
.md-typeset .list > summary {
  background-color: transparent;
  font-size: inherit;
  text-decoration: none;
  padding-left: 0;
  margin-left: 0;
  font-weight: normal;
  color: var(--md-typeset-a-color);
}

.md-typeset .list > .admonition-title::before,
.md-typeset .list > summary::before {
  content: none;
  -webkit-mask-image: var(--md-admonition-icon--list);
          mask-image: var(--md-admonition-icon--list);
}

.md-typeset details.list[open] {
  box-shadow: none; /* Removes the shadow */
}

.md-typeset details.list + details.list {
  border-top: none;
}

/* Add left padding to all children except summary */
.md-typeset details.list > *:not(summary) {
  padding-left: 18px;
}

/* Ensure the grid cards inside details.list display as two columns on large screens */
details.list .grid.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    padding: 0;
}

/* Maintain responsiveness for smaller screens */
@media (max-width: 768px) {
    details.list .grid.cards {
        grid-template-columns: 1fr;
    }
}

/*Improved styling for grid buttons on home page*/

.md-typeset .md-button {
  color: #1b8073;
  text-decoration: none;
  &:hover {
    background-color: #1b8073;
    border-color: #1b8073;
  }
}

/*Transform for flipping icons horizontally*/

.hflip {
  -moz-transform: scale(-1, 1);
  -webkit-transform: scale(-1, 1);
  -o-transform: scale(-1, 1);
  -ms-transform: scale(-1, 1);
  transform: scale(-1, 1);
  }

.vflip {
  -moz-transform: scale(1, -1);
  -webkit-transform: scale(1, -1);
  -o-transform: scale(1, -1);
  -ms-transform: scale(1, -1);
  transform: scale(1, -1);
  }

/*Grid cards for home page*/

.gridcards {
  text-align: center;
}

.gridcards p {
  margin: 0;
}

.gridcards p a {
  display: block;
  margin: 10px auto;
}

div.tabbed-labels a {
    text-decoration: none;
}

img.node-icon {
  display: inline;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.85em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.col-container {
  display: flex;
  gap: 40px; /* Space between the columns */
  align-items: flex-start; /* Align columns at the top */
}

.text-col {
  flex: 0 1 auto; /* Allow the text column to take only as much space as needed */
}

.image-col {
  flex: 1; /* Allow the image column to take the remaining space */
}

.image-col img {
  max-width: 100%; /* Ensure the image fits within its column */
  height: auto; /* Maintain aspect ratio */
}

.md-typeset blockquote {
    color: var(--md-typeset-color);
}

div.highlight.wrap pre code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: hidden;
    padding-right: 32px;
}

.strata-interaction {
  color: #1971c2;
}

.strata-transition-directed {
  color: #e03131;
}

.strata-transition-undirected {
  color: #2f9e44;
}

a.headerlink{
  text-decoration: none;
}