html[data-accent-color="red"] {
  /* AIT colors */
  --ait-red: #79151d;
  --ait-grey: #7c8388;
  --ait-torquise: #31b7bc;
  --ait-violet: #470f51;
  --ait-torquise-text: #1f7f83;  /* Darker turquoise with readable contrast on white (4.75:1) */

  /* Red palette: Generated with https://www.radix-ui.com/colors/custom?accent-light=79151D&gray-light=7C8388 */
  --accent-1: #fffcfc;
  --accent-2: #fff7f6;
  --accent-3: #ffeae8;
  --accent-4: #ffd9d5;
  --accent-5: #ffcac5;
  --accent-6: #ffb9b4;
  --accent-7: #ffa39f;
  --accent-8: #f88683;
  --accent-9: #79151d;
  --accent-10: #8e2b2e;
  --accent-11: #b74c4c;
  --accent-12: #6d0413;

  --accent-a1: #ff000003;
  --accent-a2: #ff1d0009;
  --accent-a3: #ff170017;
  --accent-a4: #ff19002a;
  --accent-a5: #ff16003a;
  --accent-a6: #ff12014b;
  --accent-a7: #ff0b0060;
  --accent-a8: #f107007c;
  --accent-a9: #6d0009ea;
  --accent-a10: #770004d4;
  --accent-a11: #990000b3;
  --accent-a12: #6b000ffb;

  /* Usage-specific overwrites */
  --sy-c-link: var(--ait-red);
  --sy-c-link-hover: var(--ait-red);

  --sig-name: var(--ait-red);
  --yue-c-code-text: var(--ait-red);
  --yue-c-code-background: #EBEEF0;
  --sig-typehint: var(--ait-torquise);

  --code-block-background: var(--gray-a2);
  --code-block-caption-background: var(--gray-a3);
  --code-block-highlight: var(--gray-a3);
}

/* Sync myst-nb code blocks' color theme with shibuya theme */
:is(html, body)[data-color-mode="dark"] {
	--light: ;
	--dark: initial;
}
:is(html, body)[data-color-mode="light"] {
	--dark: ;
	--light: initial;
}

.globaltoc a:focus, .localtoc a:focus {
  /* Mimic hover behaviour */
  color: var(--sy-c-link-hover);
}

.yue a.headerlink {
  /* Fix mispositioning of heading link handle */
  display: unset;
}

figcaption:hover a.headerlink {
  /* Fix show header link indicator of figures */
  visibility: visible;
}

.yue .align-center {
  /* Fix alignment container */
  max-width: fit-content;
}

ul:not(.mufasa-node-catalog) {
  li:first-child, li:first-child > :first-child {
    margin-block-start: 0;
  }
  li:last-child, li:last-child > :last-child {
    margin-block-end: 0;
  }
}

.cell_output svg {
  margin-inline: auto;
}

.yue details.admonition {
  &:not([open]) {
    padding-bottom: 0;

    > summary { margin-bottom: 0; }
  }

  > summary {
    /* mimics p.admonition-title */
	color: var(--color-4);
    background-color: var(--color-2);
    --yue-c-code: var(--color-4);
    --yue-c-bold: var(--color-4);
    margin: -.825rem -1rem .825rem -19px;
    padding: 4px 18px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.72;
  }
}
div.cell details.hide summary {
  margin-bottom: .825rem;
}

strong, em { color: inherit; }
