/* this_file: src_docs/md/css/site.css */
.md-typeset img { max-width: 100%; height: auto; }

/* Preserve book navigation and licence text above the shared FontLab footer. */
.ornotto-book-footer { padding: var(--fl-space-6) var(--fl-edge); font-family: var(--fl-font-navi); }
.ornotto-book-footer nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--fl-space-4); }
.ornotto-book-footer a { color: var(--md-typeset-a-color); overflow-wrap: anywhere; }
.ornotto-book-footer p { margin-top: var(--fl-space-6); color: var(--md-default-fg-color--light); font-size: .7rem; }

/* Benchmark tables: wide, dense, sortable, scroll sideways on narrow screens. */
/* The wrapper scrolls both ways, so the header row can stick to its top edge. */
.md-typeset .bench { overflow: auto; margin: 1em 0 1.5em; }
/* A bounded box on wider screens only: on phones an inner scroll area traps the page scroll. */
@media (min-width: 600px) { .md-typeset .bench { max-height: 75vh; } }
.md-typeset .bench table { display: table; font-size: .68rem; border-collapse: collapse; min-width: 100%; }
.md-typeset .bench caption { caption-side: top; text-align: left; font-size: .72rem; padding-bottom: .4em;
  color: var(--md-default-fg-color--light); }
.md-typeset .bench th, .md-typeset .bench td { padding: .3em .55em; white-space: nowrap;
  border-bottom: 1px solid var(--md-default-fg-color--lightest); }
.md-typeset .bench th { position: sticky; top: 0; z-index: 1; background: var(--md-default-bg-color); cursor: pointer;
  user-select: none; font-weight: 600; }
.md-typeset .bench th[aria-sort="ascending"]::after { content: " ▲"; font-size: .8em; }
.md-typeset .bench th[aria-sort="descending"]::after { content: " ▼"; font-size: .8em; }
.md-typeset .bench td.num { text-align: right; font-variant-numeric: tabular-nums; }
.md-typeset .bench td.method { font-family: var(--md-code-font); font-size: .95em; }
.md-typeset .bench td.query { white-space: normal; min-width: 18em; max-width: 34em; }
.md-typeset .bench tbody tr:hover { background: var(--md-accent-fg-color--transparent); }
.md-typeset .table-filter { width: 100%; max-width: 24rem; padding: .35em .6em; margin-bottom: .5em;
  font: inherit; font-size: .75rem; border: 1px solid var(--md-default-fg-color--lighter); border-radius: .25rem;
  background: var(--md-default-bg-color); color: var(--md-default-fg-color); }
.md-typeset .bench td.score[data-sort] { font-weight: 500; }
.md-typeset .bench th:not([aria-sort])::after { content: " ↕"; font-size: .8em; opacity: .35; }
.md-typeset .bench .table-filter { position: sticky; left: 0; }
