/* SPDX-License-Identifier: CC0-1.0 */


/* inria-sans-300 - latin_latin-ext */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inria Sans';
  font-style: normal;
  font-weight: 300;
  width: min(100%, 26rem);
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  height: auto;
}

/* inria-sans-300italic - latin_latin-ext */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inria Sans';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/inria-sans-v14-latin_latin-ext-300italic.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inria-sans-regular - latin_latin-ext */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inria Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inria-sans-v14-latin_latin-ext-regular.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inria-sans-italic - latin_latin-ext */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inria Sans';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/inria-sans-v14-latin_latin-ext-italic.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inria-sans-700 - latin_latin-ext */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inria Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/inria-sans-v14-latin_latin-ext-700.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inria-sans-700italic - latin_latin-ext */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inria Sans';
  font-style: italic;
  font-weight: 700;
  src: url('fonts/inria-sans-v14-latin_latin-ext-700italic.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-display: swap;
  font-family: 'Euler Math';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/eulervm/EulerMath-Regular.woff2') format('woff2'),
       url('fonts/eulervm/EulerMath-Regular.otf') format('opentype');
}

.katex {
 font-size: 1.15em !important;
  font-family: 'Euler Math', serif !important;
}

.katex .mathnormal {
  font-family: 'Euler Math', serif !important;
  /* font-style: italic; */
}

.katex .texttt {
  font-family: "Inconsolata", "monospace" !important;
  font-size: 0.75em !important;
}


:root {
  --content-gap: 15px;
  --radius: 5px;
  --bg-color: #ffffff;
  --text-color: #1b1b21;
  --muted-color: #555555;
  --link-color: #174d8b;
  --link-underline: rgba(23, 77, 139, 0.35);
  --surface-color: rgba(0, 100, 100, 0.04);
  --surface-hover: rgba(0, 100, 255, 0.06);
  --code-border-color: rgba(12, 23, 64, 0.12);
  --code-shadow-color: rgba(10, 22, 60, 0.18);
  --highlight-color: rgba(255, 255, 140, .3);
  --highlight-hover: rgba(255, 255, 140, .6);
  --code-keyword: #4e2d8c;
  --code-string: #8b4100;
  --code-function: #004a7c;
  --code-number: #6b0043;
  --code-font-stack: 'Fira Code', 'FiraCode', 'JuliaMono', 'Julia Mono', 'Noto Sans Math', 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', 'SF Mono', 'Menlo', monospace;
}

body[data-theme='dark'] {
  --bg-color: #0f1117;
  --text-color: #f4f6ff;
  --muted-color: #c4cbdd;
  --link-color: #86c5ff;
  --link-underline: rgba(134, 197, 255, 0.35);
  --surface-color: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(134, 197, 255, 0.08);
  --code-border-color: rgba(134, 197, 255, 0.28);
  --code-shadow-color: rgba(0, 0, 0, 0.5);
  --highlight-color: rgba(110, 140, 255, .25);
  --highlight-hover: rgba(110, 140, 255, .45);
  --code-keyword: #c3a6ff;
  --code-string: #ffb878;
  --code-function: #6ed1ff;
  --code-number: #ff85b5;
  --code-font-stack: 'Fira Code', 'FiraCode', 'JuliaMono', 'Julia Mono', 'Noto Sans Math', 'IBM Plex Mono', 'JetBrains Mono', 'SFMono-Regular', 'SF Mono', 'Menlo', monospace;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 0;
}

h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin-top: .5em;
}

pre,
img,
section,
center {
  overflow-y: hidden;
}

.katex-display {
  overflow: visible;
}

/* Only show scrollbar when content actually overflows the container */
.katex-display > .katex {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px; /* Prevent scrollbar from clipping descenders */
}

pre {
  margin: 1.5em 0;
  border-radius: var(--radius);
  background-color: var(--surface-color);
  padding: 0.9em 1.1em;
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
  font-family: var(--code-font-stack);
  font-variant-ligatures: contextual discretionary-ligatures historical-ligatures common-ligatures;
  font-feature-settings: "calt" 1, "liga" 1, "dlig" 1, "hlig" 1;
  text-rendering: optimizeLegibility;
}

pre.code-block {
  font-family: var(--code-font-stack);
  font-size: 0.90rem;
  padding: 1.1em 1.35em;
  margin: 1.6em 0;
  line-height: 1.55;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  background-color: var(--surface-color);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--code-border-color);
  box-shadow: 0 14px 40px -32px var(--code-shadow-color);
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-break: normal;
  word-wrap: normal;
  tab-size: 2;
  scrollbar-gutter: stable both-edges;
  font-variant-ligatures: contextual discretionary-ligatures historical-ligatures common-ligatures;
  font-feature-settings: "calt" 1, "liga" 1, "dlig" 1, "hlig" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

pre.code-block code {
  display: block;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
}

pre code {
  background: transparent;
  white-space: inherit;
  padding: 0;
}

code {
  border-radius: var(--radius);
  background-color: var(--surface-color);
  padding: 0.2em;
}

img.tex-diagram {
  display: block;
  margin: 1.5rem auto;
  font-size: 0.9em;
  white-space: pre;
  font-family: var(--code-font-stack);
  font-variant-ligatures: contextual discretionary-ligatures historical-ligatures common-ligatures;
  font-feature-settings: "calt" 1, "liga" 1, "dlig" 1, "hlig" 1;
}

code.hljs {
  padding: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
}

.hljs {
  color: var(--text-color);
  background: transparent;
  font-family: inherit;
  font-size: inherit;
}

.hljs-comment,
.hljs-quote {
  color: var(--muted-color);
  font-style: italic;
}

.hljs-keyword,
.hljs-builtin-name,
.hljs-meta {
  color: var(--code-keyword);
}

.hljs-string,
.hljs-title,
.hljs-code,
.hljs-attr,
.hljs-template-tag {
  color: var(--code-string);
}

.hljs-number,
.hljs-symbol,
.hljs-literal,
.hljs-template-variable,
.hljs-variable {
  color: var(--code-number);
}

.hljs-function .hljs-title,
.hljs-class .hljs-title,
.hljs-function .hljs-params {
  color: var(--code-function);
}

.hljs-section,
.hljs-selector-id,
.hljs-link {
  color: var(--link-color);
}

a,
a:visited {
  color: var(--link-color);
}

body {
  font-family: "Inria Sans";
  font-size: 12pt;
  line-height: 1.55;
  background-color: var(--bg-color);
  color: var(--text-color);
}

math {
 font-size: 1.12em;
  font-family: 'Euler Math', serif;
}

mrow:hover {
 background-color: var(--surface-hover);
}

.logo {
  font-weight: 1000;
  font-size: 24px;
}

.logo a {
  color: var(--muted-color);
  text-decoration: none;
}

.logo a:hover {
  color: var(--text-color);
}

.block.hide-metadata>details>summary>header>.metadata {
  display: none;
}

article>section>details>summary>header>h1>.taxon {
  display: block;
  font-size: .9em;
  color: #888;
  padding-bottom: 5pt;
}

section section[data-taxon="Reference"]>details>summary>header>h1>.taxon,
section section[data-taxon="Person"]>details>summary>header>h1>.taxon {
  display: none;
}

footer>section {
  margin-bottom: 1em;
}

footer h2 {
  font-size: 14pt;
}

.metadata>address {
  display: inline;
}

@media only screen and (max-width: 1000px) {
  body {
    margin-top: 1em;
    margin-left: .5em;
    margin-right: .5em;
    transition: ease all .2s;
  }

  #grid-wrapper>nav {
    display: grid;
    transition: ease all .2s;
  }
}

@media only screen and (min-width: 1000px) {
  body {
    margin-top: 2em;
    margin-left: 2em;
    transition: ease all .2s;
  }

  #grid-wrapper {
    display: grid;
    grid-template-columns: 90ex;
  }
}

body>header {
  margin-bottom: 2em;
}

#grid-wrapper>article {
  max-width: 90ex;
  margin-right: auto;
  grid-column: 1;
}

#grid-wrapper>nav {
  grid-column: 2;
}

details>summary>header {
  display: inline;
}

a.heading-link {
  box-shadow: none;
}

details h1 {
  font-size: 13pt;
  display: inline;
}

section .block[data-taxon] details>summary>header>h1 {
  font-size: 12pt;
}

span.taxon {
  color: #444;
  font-weight: bolder;
}


.link-list>section>details>summary>header h1 {
  font-size: 12pt;
}


article>section>details>summary>header>h1 {
  font-size: 1.5em;
}

details>summary {
  list-style-type: none;
}

details>summary::marker,
details>summary::-webkit-details-marker {
  display: none;
}

article>section>details>summary>header {
  display: block;
  margin-bottom: .5em;
}

section.block>details {
  margin-bottom: 0.4em;
}


section.block>details[open] {
  margin-bottom: 1em;
}


.link-list>section.block>details {
  margin-bottom: .25em;
}

nav#toc {
  margin-left: 1em;
}

nav#toc h1 {
  margin-top: 0;
  font-size: 16pt;
}

nav#toc,
nav#toc a {
  color: var(--muted-color);
}

nav#toc .link {
 box-shadow: none;
 text-decoration: none;
}

nav#toc a.bullet {
 opacity: 0.7;
 margin-left: 0.4em;
 margin-right: 0.3em;
 padding-left: 0.2em;
 padding-right: 0.2em;
 text-decoration: none;
}

nav#toc h2 {
  font-size: 1.1em;
}

nav#toc ul {
  list-style-type: none;
}

nav#toc li > ul {
 padding-left: 1em;
}

nav#toc li {
 list-style-position: inside;
}

.block {
  border-radius: var(--radius)
}

.block:hover {
  background-color: var(--surface-hover);
}

.block.highlighted {
  border-style: solid;
  border-width: 1pt;
}

.highlighted {
  background-color: var(--highlight-color);
  border-color: #ccc;
}

.highlighted:hover {
  background-color: var(--highlight-hover);
  border-color: #aaa;
}

.slug,
.doi,
.orcid {
  color: var(--muted-color);
  font-weight: 200;
}

.edit-button {
  color: var(--muted-color);
  font-weight: 200;
}

.block {
  padding-left: 5px;
  padding-right: 10px;
  padding-bottom: 2px;
  border-radius: 5px;
}

.link.external {
  text-decoration: underline;
}

a.link.local,
.link.local a,
a.slug {
  box-shadow: none;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--link-underline);
 }

.theme-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  border: 1px solid rgba(127, 127, 127, 0.4);
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__icon {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

body[data-theme='dark'] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

ninja-keys::part(ninja-action) {
  white-space: nowrap;
}

body {
  hyphens: auto;
}

table {
  margin-bottom: 1em;
}

table.macros {
  overflow-x: visible;
  overflow-y: visible;
  font-size: 0.9em;
}

table.macros td {
  padding-left: 5pt;
  padding-right: 15pt;
  vertical-align: baseline;
}

th {
  text-align: left;
}

th,
td {
  padding: 0 15px;
  vertical-align: top;
}

td.macro-name,
td.macro-body {
  white-space: nowrap;
}

td.macro-doc {
  font-size: .9em;
}

.enclosing.macro-scope>.enclosing {
  border-radius: 2px;
}

.enclosing.macro-scope>.enclosing:hover {
  background-color: rgba(0, 100, 255, 0.1);
}

[aria-label][role~="tooltip"]::after {
  font-family: "Inria Sans";
}

.tooltip {
  position: relative;
}

.inline.tooltip {
  display: inline-block;
}

.display.tooltip {
  display: block;
}


/* The tooltip class is applied to the span element that is the tooltip */

.tooltip .tooltiptext {
  visibility: hidden;
  white-space: nowrap;
  min-width: fit-content;
  background-color: black;
  color: #fff;
  padding-left: 5px;
  padding-top: 5px;
  padding-right: 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
}


/* Show the tooltip */

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltiptext a {
  color: white
}

.macro-doc {
  font-style: italic;
}

.macro-name {
  white-space: nowrap;
}

.macro-is-private {
  color: var(--secondary);
}

blockquote {
  border-inline-start: 1px solid var(--secondary);
}

a.slug:hover,
a.bullet:hover,
.edit-button:hover,
.link:hover {
  background-color: rgba(0, 100, 255, .1);
}

.link {
 cursor: pointer;
}

a {
  color: inherit;
  text-decoration: inherit;
}

.nowrap {
  white-space: nowrap;
}

.nocite {
  display: none
}

/* Citation styling */
.citation {
  display: inline;
}

.citation a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
}

.citation a:hover {
  text-decoration: underline;
}

blockquote {
  font-style: italic;
}



address {
  display: inline;
}


.metadata ul {
  padding-left: 0;
  display: inline;
}

.metadata li::after {
  content: " · ";
}

.metadata li:last-child::after {
  content: "";
}

.metadata ul li {
  display: inline
}

img {
  object-fit: fill;
}

img {
  display: block;
  padding: 1em 1em;
  margin-right: auto;
  justify-content: center;
  background-color: transparent;
  transition: filter 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

body[data-theme='dark'] img {
  filter: invert(1) hue-rotate(180deg) brightness(1);
  opacity: 1;
  background-color: transparent;
}

figure {
  text-align: center;
}

/* Clickable quiver diagram links */
a.quiver-link {
  display: inline-block;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

a.quiver-link:hover {
  background-color: var(--surface-hover);
  box-shadow: 0 0 0 4px var(--surface-hover);
}

a.quiver-link img {
  cursor: pointer;
}

figcaption {
  font-style: italic;
  padding: 3px;
}

mark {
  background-color: rgb(255, 255, 151);
}

hr {
  margin-top: 10px;
  margin-bottom: 20px;
  background-color: gainsboro;
  border: 0 none;
  width: 100%;
  height: 2px;
}

ul,
ol {
  padding-bottom: .5em;
  color: var(--text-color);
}

/* Reduce left margin for nested lists */
li > ul,
li > ol {
  padding-left: 1.2em;
  margin-left: 0;
}

li::marker {
  color: var(--muted-color);
}

ol {
 list-style-type: decimal;
}

ol li ol {
 list-style-type: lower-alpha;
}

ol li ol li ol {
 list-style-type: lower-roman;
}

.error, .info {
  border-radius: 4pt;
  padding-left: 3pt;
  padding-right: 3pt;
  padding-top: 1pt;
  padding-bottom: 2pt;
  font-weight: bold;
}

.error {
 background-color: red;
 color: white;
}


.info {
 background-color: #bbb;
 color: white;
}
