/* Compact technical typography for Radixor */

:root {
  --md-text-font: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* Hide page title only on the landing page */
.visually-hidden {
  display: none;
}

/* Main article text */
.md-typeset {
  font-size: 0.78rem;
  line-height: 1.3;
}

/* Paragraph spacing */
.md-typeset p,
.md-typeset ul,
.md-typeset ol,
.md-typeset dl,
.md-typeset blockquote {
  margin-top: 0.45em;
  margin-bottom: 0.45em;
}

/* Headings */
.md-typeset h1 {
  margin: 0 0 0.7rem;
  font-size: 1.8rem;
  line-height: 1.15;
}

.md-typeset h2 {
  margin: 1.2rem 0 0.55rem;
  font-size: 1.3rem;
  line-height: 1.2;
}

.md-typeset h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  margin: 0.85rem 0 0.35rem;
  line-height: 1.25;
}

/* Lists */
.md-typeset li {
  margin-bottom: 0.15em;
}

.md-typeset ul,
.md-typeset ol {
  padding-left: 1.1rem;
}

/* Tables */
.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  padding: 0.45rem 0.7rem;
}

/* Primary quality rankings fit the content column; raw counts remain in details. */
.quality-summary {
  width: 100%;
  margin: 0.65rem 0 1rem;
  font-size: 0.72rem;
}

.quality-summary .md-typeset__table,
.quality-summary table {
  display: block;
  width: 100%;
  margin: 0;
  overflow: visible;
}

.quality-summary table {
  display: table;
  table-layout: fixed;
}

.quality-summary th,
.quality-summary td {
  padding: 0.4rem 0.45rem !important;
  line-height: 1.3;
  letter-spacing: 0;
}

.quality-summary th:nth-child(1),
.quality-summary td:nth-child(1) {
  width: 7%;
}

.quality-summary th:nth-child(2),
.quality-summary td:nth-child(2) {
  width: 39%;
  overflow-wrap: anywhere;
}

.quality-summary th:nth-child(n + 3),
.quality-summary td:nth-child(n + 3) {
  width: 18%;
}

.quality-summary td:nth-child(n + 3) {
  white-space: nowrap;
}

.quality-summary--oracle th:nth-child(1),
.quality-summary--oracle td:nth-child(1) {
  width: 46%;
  overflow-wrap: anywhere;
}

.quality-summary--oracle th:nth-child(n + 2),
.quality-summary--oracle td:nth-child(n + 2) {
  width: 27%;
}

.quality-details > summary {
  font-weight: 600;
}

@media screen and (max-width: 44.99em) {
  .quality-summary {
    font-size: 0.62rem;
  }

  .quality-summary th,
  .quality-summary td {
    padding: 0.3rem 0.2rem !important;
  }
}

@media print {
  .quality-details:not([open]) > *:not(summary) {
    display: block;
  }
}

/* Code blocks */
.md-typeset pre > code {
  font-size: 0.72rem;
  line-height: 1.4;
}

/* Inline code */
.md-typeset code {
  font-size: 0.72rem;
}

/* Navigation density */
.md-nav__item .md-nav__link {
  margin-top: 0.12rem;
  margin-bottom: 0.12rem;
}

.md-sidebar__scrollwrap {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

/* Slightly narrower content rhythm */
.md-content__inner {
  margin-top: 0.6rem;
  padding-bottom: 1.2rem;
}

/* Admonitions more compact */
.md-typeset .admonition,
.md-typeset details {
  margin: 0.8rem 0;
}

/* Optional: use a bit wider content area on large screens */
@media screen and (min-width: 76.25em) {
  .md-grid {
    max-width: 68rem;
  }
}
