/* Vector archive: styles for the classes the converter emits. */

/* APL387 Unicode (Adám Brudzewsky, public domain), the project's APL font */
@font-face {
  font-family: "APL387 Unicode";
  src: url("../fonts/APL387.ttf") format("truetype");
  font-display: swap;
}

:root {
  --md-code-font: "APL387 Unicode", "Roboto Mono", monospace;
}

.md-typeset code, .md-typeset pre, .md-typeset kbd, .md-typeset tt {
  font-family: "APL387 Unicode", var(--md-code-font-family, monospace);
  font-variant-ligatures: none;
}

/* article head */
.md-typeset .prefix { margin: 0 0 -0.6em; color: var(--md-default-fg-color--light);
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; }
.md-typeset .printed { margin-top: -0.8em; color: var(--md-default-fg-color--light); font-size: 0.8rem; }
.md-typeset .subtitle { font-size: 1.15em; font-weight: 300; margin-top: -0.5em; }
.md-typeset .byline { font-style: italic; font-size: 1.2em; }  /* under the title (#285) */
.md-typeset .abstract { font-size: 0.95em; border-left: 0.2rem solid var(--md-default-fg-color--lightest);
  padding-left: 0.8rem; }

/* editorial and mathematics */
.md-typeset .ednote { font-size: 0.9em; padding: 0.4rem 0.8rem;
  background: var(--md-code-bg-color); border-radius: 0.2rem; }
.md-typeset .math { text-align: center; }

/* floats: figures, sidebars, equation numbers */
.md-typeset figure.right, .md-typeset .panel.right, .md-typeset p.right {
  float: right; margin: 0 0 1em 1.5em; max-width: 45%; }
.md-typeset figure.left, .md-typeset .panel.left, .md-typeset p.left {
  float: left; margin: 0 1.5em 1em 0; max-width: 45%; }
.md-typeset p.right, .md-typeset p.left { max-width: none; }
.md-typeset h2, .md-typeset h3 { clear: both; }
.md-typeset .panel { font-size: 0.85em; padding: 0.4rem 0.8rem;
  border: 1px solid var(--md-default-fg-color--lightest); border-radius: 0.2rem; }
.md-typeset figure img { max-width: 100%; height: auto; }
.md-typeset .caption, .md-typeset figcaption { font-size: 0.85em; text-align: center; }

/* raw HTML tables kept from the source */
.md-typeset table:not([class]) { font-size: 0.85em; }
.md-typeset table td, .md-typeset table th { vertical-align: top; }

/* home page: the Vector logo on the navy of the favicon’s V (#68) */
.md-typeset .masthead { background: #003e6d; border-radius: 0.2rem; padding: 1.2rem 1.5rem; margin: 0 0 1rem; }
.md-typeset .masthead img { display: block; width: 100%; max-width: 22rem; height: auto; margin: 0 auto; }

/* issue thumbnails (32×45 colour covers): in the volume pages’ tab labels and the home page’s table */
.md-typeset .tabbed-labels > label img { height: 2.2em; width: auto; vertical-align: middle;
  margin-right: 0.4em; box-shadow: 0 0.05rem 0.2rem rgba(0,0,0,.3); }
.md-typeset .tabbed-labels > label { display: inline-flex; align-items: center; }
.md-typeset table img { height: 45px; width: auto; vertical-align: middle; box-shadow: 0 0.05rem 0.2rem rgba(0,0,0,.3); }
.md-typeset table a:hover img { box-shadow: 0 0.1rem 0.5rem rgba(0,0,0,.5); }

/* The quality of each article's text in the full index (#83): red to green */
.quality {
  display: inline-block;
  min-width: 4.5em;
  padding: 0 .4em;
  border-radius: .2em;
  font-size: .85em;
  text-align: center;
  white-space: nowrap;
  color: #fff;
}
.q-missing  { background: #b71c1c; }
.q-ocr      { background: #d84315; }
.q-pdf      { background: #ef6c00; }
.q-failed   { background: #6d4c41; }
.q-draft    { background: #9e9d24; }
.q-reviewed { background: #2e7d32; }
.q-text     { background: #1b5e20; }

/* The full index: the first four columns as narrow as their contents, the
   rest of the width to the article (#265) */
.md-typeset .full-index table:not([class]) { display: table; width: 100%; }
.md-typeset .full-index th:nth-child(-n+4),
.md-typeset .full-index td:nth-child(-n+4) { width: 1%; white-space: nowrap; padding-left: .4em; padding-right: .4em; }

/* Subject tags under an article's title (#95) */
.subject-tags { margin: 0 0 1em; }
.subject-tags .md-tag { margin-right: .3em; }

/* The text of articles transcribed from the printed issues is set in Palatino,
   like the journal itself (#118); free metric equivalents follow */
.md-typeset .transcribed-text {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", "TeX Gyre Pagella", P052, serif;
}

/* Mathematics typeset by MathJax (#285): wide displays scroll rather than overflow */
.md-typeset div.arithmatex { overflow-x: auto; overflow-y: hidden; }
