:root {
  --md-text-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
  --md-code-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --md-primary-fg-color: #145f69;
  --md-primary-fg-color--light: #2a7b84;
  --md-primary-fg-color--dark: #104b53;
  --md-accent-fg-color: #b9473d;
  --pockit-rule: #d8dee3;
  --pockit-muted: #52616b;
  --pockit-soft: #f5f7f8;
  --pockit-code: #eef2f3;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #287d86;
  --md-primary-fg-color--light: #3f929a;
  --md-primary-fg-color--dark: #1e626a;
  --md-accent-fg-color: #ef8b76;
  --md-default-bg-color: #161a1d;
  --md-default-fg-color: #e9edef;
  --pockit-rule: #3b444a;
  --pockit-muted: #b3bec4;
  --pockit-soft: #20262a;
  --pockit-code: #242b2f;
}

html,
body,
button,
input {
  letter-spacing: 0;
}

.md-grid {
  max-width: 88rem;
}

.md-header {
  box-shadow: 0 1px 0 rgb(0 0 0 / 14%);
}

.md-header__title,
.md-tabs__link,
.md-nav__title,
.md-nav__link {
  letter-spacing: 0;
}

.md-tabs {
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.md-tabs__link {
  font-size: 0.72rem;
  font-weight: 600;
}

.md-content__inner {
  padding-bottom: 3rem;
}

.md-typeset {
  color: var(--md-default-fg-color);
  font-size: 0.82rem;
  line-height: 1.68;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  color: var(--md-default-fg-color);
  font-weight: 680;
  letter-spacing: 0;
}

.md-typeset h1 {
  margin-bottom: 0.8rem;
  font-size: 2rem;
  line-height: 1.18;
}

.md-typeset h2 {
  margin-top: 2.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--pockit-rule);
  font-size: 1.42rem;
  line-height: 1.3;
}

.md-typeset h3 {
  margin-top: 1.8rem;
  font-size: 1.08rem;
}

.md-typeset a {
  text-underline-offset: 0.14em;
}

.md-typeset code {
  border-radius: 3px;
  background: var(--pockit-code);
  box-shadow: none;
}

.md-typeset pre > code {
  border-radius: 5px;
}

.md-typeset .highlight {
  margin: 1.2rem 0;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--pockit-rule);
  border-radius: 5px;
  box-shadow: none;
}

.md-typeset table:not([class]) th {
  background: var(--pockit-soft);
  color: var(--md-default-fg-color);
  font-weight: 650;
}

.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  padding: 0.62rem 0.8rem;
  vertical-align: top;
}

.md-typeset img {
  height: auto;
  border: 1px solid var(--pockit-rule);
  border-radius: 6px;
  background: #fff;
}

.md-typeset p > img:only-child {
  display: block;
  margin: 1.5rem auto;
}

.md-typeset .admonition,
.md-typeset details {
  border-width: 1px;
  border-radius: 5px;
  box-shadow: none;
}

.md-typeset div.arithmatex {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.home-intro {
  margin: 0 0 1.8rem;
  padding: 0 0 1.6rem;
  border-bottom: 1px solid var(--pockit-rule);
}

.home-intro p {
  max-width: 54rem;
  color: var(--pockit-muted);
  font-size: 0.98rem;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.home-actions .md-button {
  min-width: 9rem;
  border-radius: 4px;
  text-align: center;
}

.example-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.example-gallery figure {
  min-width: 0;
  margin: 0;
}

.example-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.example-gallery figcaption {
  margin-top: 0.4rem;
  color: var(--pockit-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.result-table td:first-child,
.result-table th:first-child {
  width: 42%;
}

@media screen and (max-width: 76.234375em) {
  .md-typeset h1 {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 44.984375em) {
  .md-typeset {
    font-size: 0.78rem;
  }

  .md-typeset h1 {
    font-size: 1.62rem;
  }

  .md-typeset h2 {
    font-size: 1.25rem;
  }

  .home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-actions .md-button {
    width: 100%;
  }

  .example-gallery {
    grid-template-columns: 1fr;
  }

  .md-typeset table:not([class]) td,
  .md-typeset table:not([class]) th {
    padding: 0.52rem 0.65rem;
  }
}
