html {
  font-size: 14px;
}

:root {
  /* Maximum width and height for all catalog thumbnails. */
  --thumbnail-max-size: 150px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.bg-machine-gray {
    background-color: #aaaaaa;
}

.site-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
  max-width: 48rem;
  margin: 1.5rem auto;
}

.site-logos img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.page-image-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.page-image {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 50%;
}

.thumbnail {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, var(--thumbnail-max-size));
  max-height: var(--thumbnail-max-size);
  margin: 0 auto;
}

.search-form {
  margin-bottom: 2rem;
  max-width: 48rem;
}

.search-results {
  vertical-align: middle;
}

.search-empty {
  color: var(--bs-secondary-color);
}

.sections-table th,
.sections-table td {
  text-align: center;
  white-space: nowrap;
}

.sections-table th:first-child {
  text-align: left;
}

.machine-catalog-numbers th:first-child {
  width: 24rem;
  min-width: 20rem;
  white-space: normal;
}

.machine-catalog-numbers td {
  min-width: 6rem;
  vertical-align: middle;
}

.accessory-index th,
.accessory-index td {
  vertical-align: middle;
}

.accessory-index td:nth-child(2) {
  white-space: normal;
  text-align: left;
  min-width: 16rem;
}

.accessory-index .thumbnail {
  max-height: min(100px, var(--thumbnail-max-size));
}
