/** css/yourtheme.css **/

html[data-accent-color='adelm'] {
  --accent-9: #0f766e;
  --accent-11: #0a5f58;
  --color-surface-accent: rgba(15, 118, 110, 0.03);
  --accent-a2: rgba(15, 118, 110, 0.03);
  --accent-a3: rgba(15, 118, 110, 0.1);
  --accent-a9: rgba(15, 118, 110, 0.81);
  --accent-a11: rgba(15, 118, 110, 0.92);
  --accent-contrast: #ffffff;
}

:root {
  --sy-s-navbar-height: 84px;
}

.sy-head-links > ul {
  gap: 1.0rem;
}

.sy-container {
  max-width: 100rem;
}

.sy-content {
  max-width: 78rem;
}

.sy-head-brand img {
  height: 40px;
  width: auto;
}

::selection {
  background-color: var(--accent-9);
  color: #ffffff;
}

.yue :not(pre) > code,
.yue code.docutils.literal.notranslate,
.yue code.docutils.literal.notranslate .pre {
    color: var(--sy-c-link);
    border-radius: 0.2rem;
    padding: 0.06rem 0.28rem;
}


h1 {
    font-size: clamp(2rem, 2.6vw, 2.5rem);
    line-height: 1.12;
    font-weight: 740;
    letter-spacing: -0.018em;
    margin: 0 0 1.1rem;
    padding-bottom: 0.38rem;
    display: flex;
    align-items: center;
    column-gap: 0.7rem;
    row-gap: 0.25rem;
    color: var(--sy-c-heading);
}

h1::before {
    content: "";
    grid-row: 1;
    grid-column: 1;
    width: 0.5rem;
    height: 1.05em;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-9) 0%, #0a5f58 100%);
}

h2 {
    font-size: clamp(1.35rem, 1.8vw, 1.65rem);
    line-height: 1.25;
    font-weight: 650;
    margin: 2.2rem 0 0.8rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--sy-c-divider);
    /* box-shadow: inset 0 -2px 0 0 rgba(15, 118, 110, 0.1); */
    color: var(--sy-c-heading);
}

h3 {
    font-size: 1.08rem;
    line-height: 1.3;
    font-weight: 620;
    margin: 1.45rem 0 0.5rem;
    padding-left: 0.55rem;
    border-left: 3px solid var(--accent-9);
    color: var(--sy-c-heading);
}

h4,
h5,
h6 {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 1.1rem 0 0.35rem;
    color: var(--sy-c-text);
}


.landing-title {
  text-align: center;
}

.landing-title .lead {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.45;
  font-weight: 500;
}

.landing-title .buttons {
  display: flex;
  justify-content: center;
  align-items: center;
}

.centered {
  text-align: center;
}

.logo-row {
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.sponsor-logo {
  display: block;
  height: 120px;
  width: auto;
  max-width: 380px;
  margin: 0 auto;
  object-fit: contain;
}

.sponsor-logo-md {
  height: 96px;
  max-width: 300px;
}

.adelm-site-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  flex-wrap: wrap;
}

.adelm-site-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: 0 !important;
}

.adelm-site-footer-logo img {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(260px, 80vw);
  object-fit: contain;
}

.adelm-site-footer .sy-foot-copyright p {
  margin: 0;
}

.adelm-site-footer .sy-foot-copyright {
  text-align: center;
  line-height: 24px;
  font-size: 14px;
  font-weight: 500;
}

a:has(> .sponsor-logo) {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  border-bottom: 0 !important;
}

.bd-sidebar-primary {
  scrollbar-width: none;
  width: 20%;
}

.bd-sidebar-primary::-webkit-scrollbar {
  display: none;
}

.bd-main .bd-content .bd-article-container {
  max-width: 100%;  /* default is 60em */
}

figure > a {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

#fig-user-guide-model-structure img {
  margin-left: auto;
  margin-right: auto;
}

.navigation {
  display: none !important;
}

html[data-theme="light"] {
  --pst-header-height: 5.5rem;
  --pst-color-primary: #266d87;
  --pst-color-primary-highlight: #38A1C7;
  --pst-color-secondary: #268770;
  --pst-color-secondary-highlight: #38C7A6;

  --pst-color-link: #266d87;
  --pst-color-link-hover: #38A1C7;

  --pst-color-background: #ffffff;
  --pst-color-text-base: #222222; 

  --pst-color-table-row-hover-bg: #EAF4FA;
}

html {
  overflow-y: scroll;
}

.var-meta {
  color: #5f7f95;
}

html[data-theme="dark"] .var-meta {
  color: #8fb4c9;
}

.bd-main .bd-content .bd-article-container .bd-article {
    padding-left: 2rem;
    padding-top: 0rem;
}

div.expression > div.highlight > pre::before {
  content: "Expression";
  background-color: var(--pst-color-primary);
}

div.expression > div.highlight > pre {
  border: 1px solid var(--pst-color-primary);
}

div.value > div.highlight > pre::before {
  content: "Value";
  background-color: var(--pst-color-secondary);
}

div.value > div.highlight > pre {
  border: 1px solid var(--pst-color-secondary);
}

div.highlight > pre::before {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  padding: 0 0.5em;
  background-color: #b3b3b3;
  color: #fff;
  font-size: 0.8em;
  border-radius: 0 0.4em 0 0.4em;
  transition: opacity 0.2s cubic-bezier(0.64, 0.09, 0.08, 1), transform 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
}

div.highlight:hover > pre::before {
  opacity: 0;
}

div.math {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
}

div.math > span.eqno {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}

div.math > mjx-container {
  overflow: visible !important;
}

.bd-links {
  padding-bottom: 0 !important;
}

.navbar-nav li.toctree-l1 {
  margin-top: 0rem;
  margin-bottom: 0.5rem;
}

.navbar-nav li.toctree-l1 > details > summary > .toctree-toggle {
  display: none;
}

.navbar-nav li.toctree-l1 > a {
  font-weight: 600;
}

.navbar-nav li.toctree-l1 > details > ul {
  padding: 0;
}

.bd-docs-nav .bd-links__title {
  display: none;
}

html[data-theme="dark"] iframe[title="GitHub"] {
  filter: invert(0.93) hue-rotate(100deg);
}

.sd-card-hover:hover {
  border-color: var(--accent-9, #0f766e) !important;
  box-shadow: 0 0 0 2px var(--accent-9, #0f766e) !important;
  background-color: var(--accent-a3, rgba(15, 118, 110, 0.1)) !important;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.sd-card-hover:hover .sd-card-body strong {
  color: var(--accent-9, #0f766e) !important;
  transition: color 0.2s;
}

.sd-card-body > p:first-child > img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 0.75rem;
}

.sd-btn:hover {
  text-decoration: none !important;
}

#pst-back-to-top {
  text-decoration: none !important;
}

#pst-back-to-top:hover {
  background-color: var(--pst-color-secondary-highlight) !important;
}

.card-active-dev {
  background-color: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

html[data-theme="dark"] .card-active-dev {
  background-color: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}
