/* Custom styles to override MkDocs defaults and enhance theme */

/*Overall colour theme*/
[data-md-color-scheme="clear"] {
  --md-primary-fg-color:#52428C;  /*Header, sidebars... colour - red*/
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #52428C;  /* Interactive elements colour - lightgrey*/
}

/*
Unordered list symbols:
    - ul default is filled disc (bullet)
    - level 2 is hollow circle
    - level 3 is filled square
*/

/*Level 2*/
article ul ul {
    list-style-type:  circle !important;
}

/*Level 3*/
article ul ul ul {
    list-style-type:  square !important;
}

/* terminal */
.md-typeset .admonition.terminal,
.md-typeset details.terminal {
  border-color: rgb(43, 155, 70);
}
.md-typeset .terminal > .admonition-title,
.md-typeset .terminal > summary {
  background-color: rgba(43, 155, 70, 0.1);
}
.md-typeset .terminal > .admonition-title::before,
.md-typeset .terminal > summary::before {
  background-color: rgb(43, 155, 70);
  -webkit-mask-image: var(--md-admonition-icon--terminal);
  mask-image: var(--md-admonition-icon--terminal);
}

/* learning */
.md-typeset .admonition.learning,
.md-typeset details.learning {
  border-color: #e20613;
}
.md-typeset .learning > .admonition-title,
.md-typeset .learning > summary {
  background-color: #ffdede;
}
.md-typeset .learning > .admonition-title::before,
.md-typeset .learning > summary::before {
  background-color: #e20613;
  -webkit-mask-image: var(--md-admonition-icon--learning);
  mask-image: var(--md-admonition-icon--learning);
}

/* people */
.md-typeset .admonition.people,
.md-typeset details.people {
  border-color: #6e59d9;
}
.md-typeset .people > .admonition-title,
.md-typeset .people > summary {
  background-color: #6e59d910;
}
.md-typeset .people > .admonition-title::before,
.md-typeset .people > summary::before {
  background-color: #6e59d9;
  -webkit-mask-image: var(--md-admonition-icon--people);
  mask-image: var(--md-admonition-icon--people);
}

/* licensing */
.md-typeset .admonition.licensing,
.md-typeset details.licensing {
  border-color: #802387;
}
.md-typeset .licensing > .admonition-title,
.md-typeset .licensing > summary {
  background-color: #80238710;
}
.md-typeset .licensing > .admonition-title::before,
.md-typeset .licensing > summary::before {
  background-color: #802387;
  -webkit-mask-image: var(--md-admonition-icon--licensing);
  mask-image: var(--md-admonition-icon--licensing);
}

/* courses */
.md-typeset .admonition.courses,
.md-typeset details.courses {
  border-color: rgb(142, 142, 142);
}
.md-typeset .courses > .admonition-title,
.md-typeset .courses > summary {
  background-color: rgba(153, 153, 153, 0.1);
  font-weight: bold;
}
.md-typeset .courses > .admonition-title::before,
.md-typeset .courses > summary::before {
  background-color: rgb(146, 146, 146);
  -webkit-mask-image: var(--md-admonition-icon--courses);
  mask-image: var(--md-admonition-icon--courses);
}

/* catalog */
.md-typeset .admonition.catalog,
.md-typeset details.catalog {
  border-color: #0DC09D;
}
.md-typeset .catalog > .admonition-title,
.md-typeset .catalog > summary {
  background-color: rgba(13, 192, 157, 0.1);
}
.md-typeset .catalog > .admonition-title::before,
.md-typeset .catalog > summary::before {
  background-color: #0DC09D;
  -webkit-mask-image: var(--md-admonition-icon--catalog);
  mask-image: var(--md-admonition-icon--catalog);
}

/* Custom right-hand-side sidebar */
.sidebar_resources {
  margin-top: 2rem;
}
.sidebar_resources svg {
  fill: currentcolor;
  max-height: 100%;
  width: 1.125em;
  margin-right: 0.5rem;
  opacity: 0.6;
}
.sidebar_resources .md-nav__link {
  justify-content: left;
}
@media screen and (min-width: 59.9375em) {
  .md-sidebar--secondary .md-sidebar__inner > nav > .md-nav__list {
    border-left: 3px solid var(--md-default-fg-color--lightest);
  }
}
@media screen and (max-width: 59.9375em) {
  .sidebar_resources {
    display: none !important;
  }
}