/* trash-panda docs: a small layer on top of the Material theme. */

/* Layout: a wider page, so the header and the content use a wide screen instead of floating in the middle of it. */
.md-grid {
  max-width: 74rem;
}

/* Header and tabs: a light bar that matches the page, with a thin rule, instead of a heavy colored band. */
.md-header,
.md-tabs {
  background-color: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
}

.md-header {
  box-shadow: none;
}

.md-header--shadow {
  box-shadow: 0 1px 0 var(--md-default-fg-color--lightest);
}

.md-tabs {
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

/* The logo: round, a little larger. */
.md-header__button.md-logo img {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  object-fit: cover;
}

/* The site title. */
.md-header__title {
  font-weight: 700;
  font-size: 0.95rem;
}

/* The search box: a quiet field on the light bar. */
.md-search__form {
  background-color: var(--md-code-bg-color);
  border-radius: 0.5rem;
}

.md-search__input,
.md-search__input + .md-search__icon {
  color: var(--md-default-fg-color);
}

.md-search__input::placeholder {
  color: var(--md-default-fg-color--light);
}

/* The repository link: the name only, without the stars and forks. */
.md-source {
  color: var(--md-default-fg-color--light);
}

.md-source__facts {
  display: none;
}

/* Tabs: a bit larger, and the current one underlined in the accent color. */
.md-tabs__link {
  font-size: 0.8rem;
  opacity: 1;
  color: var(--md-default-fg-color--light);
}

.md-tabs__link:hover,
.md-tabs__item--active .md-tabs__link {
  color: var(--md-default-fg-color);
}

.md-tabs__item--active {
  box-shadow: inset 0 -2px 0 var(--md-accent-fg-color);
}

/* Headings: a rule under each h2, so the entries of the reference pages are easy to tell apart. */
.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.md-typeset h2 {
  font-weight: 600;
  margin-top: 2.2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

/* Sidebars: the section title above the page links, and "Table of contents" on the right, a little larger. */
.md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav__link,
.md-nav--secondary > .md-nav__title {
  font-size: 0.85rem;
  font-weight: 700;
}

/* Tables: full width, a tinted header, zebra rows. */
.md-typeset table:not([class]) {
  display: table;
  width: 100%;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.4rem;
  box-shadow: none;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background-color: var(--md-code-bg-color);
  font-weight: 600;
  white-space: nowrap;
}

.md-typeset table:not([class]) tbody tr:nth-child(even) {
  background-color: var(--md-code-bg-color);
}

.md-typeset table:not([class]) td:first-child code {
  white-space: nowrap;
}

/* Code: rounder blocks, and a visible accent on the generated signatures. */
.md-typeset code {
  border-radius: 0.25rem;
}

.md-typeset .highlight {
  border-radius: 0.4rem;
}

.md-typeset .doc-heading {
  color: var(--md-accent-fg-color);
}

/* Box-drawing characters in code blocks (the tables that the command line prints). The font the site loads for code
   has no glyphs for them, so the browser takes them from another font, whose characters are narrower than the letters
   and the table borders drift. These faces take the box characters from a font installed on the reader's machine and
   scale it to the width of a letter of the code font (0.6 em). The first face found wins. */
@font-face {
  font-family: "Box drawing";
  src: local("Cascadia Mono"), local("Cascadia Code");
  unicode-range: U+2500-257F;
  size-adjust: 102.4%;
}

@font-face {
  font-family: "Box drawing";
  src: local("Menlo"), local("DejaVu Sans Mono"), local("Liberation Mono");
  unicode-range: U+2500-257F;
  size-adjust: 99.7%;
}

@font-face {
  font-family: "Box drawing";
  src: local("Consolas");
  unicode-range: U+2500-257F;
  size-adjust: 109.1%;
}

.md-typeset code,
.md-typeset pre {
  font-family: "JetBrains Mono", "Box drawing", SFMono-Regular, Consolas, Menlo, monospace;
}

/* Admonitions: a little rounder. */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 0.4rem;
}

/* Landing page: the picture next to the title and the buttons. */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  margin: 1.5rem 0 2.5rem;
}

.hero img {
  width: 240px;
  height: auto;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  margin-top: 0;
  font-size: 2.6em;
}

.hero .tagline {
  font-size: 1.15rem;
  max-width: 28rem;
  margin-bottom: 1.2rem;
  color: var(--md-default-fg-color--light);
}

/* Cards: a little lift on hover. */
.md-typeset .grid.cards > ul > li {
  border-radius: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.md-typeset .grid.cards > ul > li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Diagrams: centered, with some room around them. */
.md-typeset .mermaid {
  text-align: center;
  margin: 1.2rem 0;
}
