/* Citations and Lexicon */
.citation dl, .lexicon dl {
  display: grid;
  grid-template-columns: max-content auto;
}

.citation dt, .lexicon dt {
  grid-column-start: 1;
}

.citation dd, .lexicon dd {
  grid-column-start: 2;
  margin-bottom: 0.75rem;
}

.citation ul {
  padding: 0 0 2.25rem 0;
  margin: 0;
  list-style: none !important;
}

.citation ul li {
  text-indent: -2.25rem;
  margin: 0.33rem 0.5rem 0.5rem 2.25rem;
}

.citation ol li {
  padding-left: 0.75rem;
}

.citation :target, .lexicon :target, .lexicon :target + dd {
  text-decoration: underline gold 0.3rem;
  text-decoration-skip-ink: none;
}

/* Hide default features */
#documenter-article-toggle-button, .breadcrumb ul, a[title^="View"], a[title^="Edit source"]{
  display: none !important;
}

.docs-right {
  float: right;
}

/* Font */
:root {
  font-size: 1rem !important; /* force match user setting */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

body, button, input, optgroup, select, textarea {
  font-family: var(--font-family) !important;
}

h2 {
  border-top: .3rem solid rgb(70 156 160);
  padding-top: .5rem;
}

summary {
  cursor: pointer;
}

p a, ol a, ul a:not(.tocitem), blockquote a {
  text-decoration: underline;
}

table {
  text-align: left;
}

/* Fix the prev/next links touching at certain phone sizes */
.docs-footer-nextpage {
  padding-left: 1rem;
}

/* Hide things when printing */
@media print {
  .docs-sidebar, .docs-navbar, .docs-footer-prevpage, .docs-footer-nextpage {
    display: none !important;
  }

  :root {
    font-size: 10pt !important;
  }
}

/* Make sure images with transparent background have a consistent background color for accessibility */
img {
  background: #eee;
  border-radius: .3rem;
  max-height: 20rem;
}

figure, .content figure {
  margin-left: 0;
  margin-right: 0;
}

/* Custom Admonitions */
.admonition.is-warning > .admonition-header:empty::before {content: "\f568"}
.admonition.is-warning > .admonition-header:empty::after {content: "Under Construction -- Feedback Wanted!"}

.admonition.is-compat > .admonition-header:empty::before {content: "\f058"}
.admonition.is-compat > .admonition-header:empty::after {content: "Objectives for the Following Section"}

.admonition.is-info > .admonition-header:empty::before {content: "\f059"}
.admonition.is-info > .admonition-header:empty::after {content: "Check Your Understanding"}

.admonition.is-success > .admonition-header:empty::before {content: "\f02d"}
.admonition.is-success > .admonition-header:empty::after {content: "Put it into Practice!"}

/* Custom tables */
table{
  table-layout: fixed;
  width: 100%;
}

td, th {
  border: .1rem solid rgba(128, 128, 128, .5) !important;
}

td:empty, th:empty {
  border: 0 !important;
}

th[scope=col] {
  border: 0 !important;
  border-bottom: .3rem solid gold !important;
}

th[scope=row] {
  border: 0 !important;
  border-right: .3rem solid gold !important;
  text-align: left !important;
  writing-mode: vertical-rl;
}

tr > *:nth-last-child(2)~* {
  width: 50%;
}

tr > *:nth-last-child(3)~* {
  width: 33.3%;
}

tr > *:nth-last-child(4)~* {
  width: 25%;
}

/* Custom pull quotes */
blockquote strong em, blockquote em strong {
  color: inherit;
  background: inherit;
  font-style: normal;
  font-weight: normal;
  border-bottom: .3rem solid gold;
}

/* Logo adjustments */
img[alt^="Scientific Teaching Course"]{
  border-radius: 1000%;
  padding: .1rem;
  background: white;
}
