body {
  font-size:        1em;
}
.header_bar {
  margin-top:       1em;
  margin-bottom:    1em;
}
.footer_bar {
  margin-top:       1em;
}
.origin {
  font-size:        0.7em;
}
.content {
  font-size:        1.1em;
  display:          block;
}
.loading {
  margin-top:       1em;
  display:          none;
}
.result {
  display:          none;
}
#error {
  display:          none;
}
kbd {
  display:          block;
  margin-left:      auto;
  margin-right:     auto;
}
pre {
  color:            #FFFFFF;
  background-color: #000000;
  text-decoration:  none;
  margin-left:      auto;
  margin-right:     auto;
  padding-left:     1%;
  padding-right:    1%;
}
.pre-scrollable {
  max-height:       480px;
  overflow-y:       scroll;
}
a {
  color:            #000000;
  text-decoration:  none;
}
a:hover {
  color:            #000000;
  text-decoration:  none;
}
.bi {
  vertical-align:   -.125em;
  fill:             currentColor;
}
.color-mode-toggle {
  z-index:          1500;
}
.color-mode-toggle .dropdown-menu .active .bi {
  display:          block !important;
}
/* Hodi: latency matrix (matrix.php). The page scrolls (no inner scroll box),
   and the destination row and the source column stay in view (sticky). */
.hodi-matrix {
  font-size:        0.8em;
}
.hodi-matrix thead th {
  position:         sticky;
  top:              0;
  z-index:          2;
  background-color: var(--bs-body-bg);
}
.hodi-matrix tbody th {
  position:         sticky;
  left:             0;
  z-index:          1;
  background-color: var(--bs-body-bg);
}
.hodi-matrix thead th:first-child {
  left:             0;
  z-index:          3;
}
.hodi-matrix td {
  min-width:        2.6em;
}
/* Sticky cells and collapsed borders do not mix (rows show through the
   header): separate borders, drawn once per cell. */
.hodi-matrix table {
  border-collapse:  separate;
  border-spacing:   0;
}
.hodi-matrix table > :not(caption) > * > * {
  border-width:     0 1px 1px 0;
}
.hodi-matrix table > :not(caption) > tr > :first-child,
.hodi-matrix table > :not(caption) > * > :first-child {
  border-left-width: 1px;
}
.hodi-matrix thead th {
  border-top-width: 1px;
}
/* Hodi: page navigation under the logo */
.nav-pills .nav-link {
  color:            var(--bs-body-color);
}
.nav-pills .nav-link.active {
  color:            #FFFFFF;
  background-color: var(--bs-secondary);
}
/* Hodi: on the matrix page the header (logo, nav) and the footer stay put and
   only the table scrolls: the page itself is exactly one screen high, so
   there is a single scroll area. */
.hodi-matrix-page {
  /* !important: the body also carries Bootstrap's h-100 (height: 100% !important). */
  height:           100vh !important;
  height:           100dvh !important;
  overflow:         hidden;
}
.hodi-matrix-page main,
.hodi-matrix-page main > .container {
  height:           100%;
}
.hodi-matrix-page main > .container {
  display:          flex;
  flex-direction:   column;
}
.hodi-matrix-page main > .container > * {
  flex:             none;
}
.hodi-matrix-page main > .container > .content {
  flex:             1 1 auto;
  min-height:       0;
  display:          flex;
  flex-direction:   column;
}
.hodi-matrix-page .content > * {
  flex:             none;
}
.hodi-matrix-page .hodi-matrix {
  flex:             1 1 auto;
  min-height:       0;
  overflow:         auto;
  margin-bottom:    1.5rem;
}
.hodi-matrix-page .hodi-matrix table {
  margin-bottom:    0 !important;
}
.hodi-matrix-page .footer_bar {
  margin-top:       0;
}
