.tm-manual-library {
  color: #263746;
  padding-bottom: 48px;
}

.tm-manual-library [hidden] {
  display: none !important;
}

.tm-manual-library a:focus-visible,
.tm-manual-library button:focus-visible,
.tm-manual-library input:focus-visible,
.tm-manual-library select:focus-visible {
  outline: 3px solid rgba(25, 71, 123, .28);
  outline-offset: 2px;
}

.tm-manual-library .btn {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
}

.tm-manual-library .btn-primary {
  background: #19477b;
  border-color: #19477b;
  color: #fff;
}

.tm-manual-library .btn-primary:hover,
.tm-manual-library .btn-primary:focus {
  background: #10233b;
  border-color: #10233b;
  color: #fff;
}

.tm-manual-library .btn-default {
  background: #fff;
  border-color: #19477b;
  color: #19477b;
}

.tm-manual-library .btn-default:hover,
.tm-manual-library .btn-default:focus {
  background: #eef4fa;
  border-color: #10233b;
  color: #10233b;
}

.tm-manual-tools {
  align-items: end;
  background: #f5f8fb;
  border: 1px solid #d7e2ec;
  border-radius: 9px;
  display: grid;
  gap: 14px;
  grid-template-areas: "title title title" "search type clear" "results results results";
  grid-template-columns: minmax(280px, 1fr) minmax(190px, 250px) auto;
  margin-bottom: 34px;
  padding: 20px;
}

.tm-manual-tools h1 {
  color: #10233b;
  font-size: clamp(24px, 2.4vw, 32px);
  grid-area: title;
  line-height: 1.2;
  margin: 0 0 2px;
}

.tm-manual-search-wrap {
  grid-area: search;
}

.tm-manual-type-wrap {
  grid-area: type;
}

#manual-library-clear {
  grid-area: clear;
}

.tm-manual-tools label {
  color: #10233b;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.tm-manual-tools .form-control {
  border-color: #aebfd0;
  box-shadow: none;
  height: 46px;
}

#manual-library-search {
  font-size: 16px;
}

.tm-manual-tools .form-control:focus {
  border-color: #19477b;
  box-shadow: 0 0 0 2px rgba(25, 71, 123, .12);
}

.tm-manual-results {
  color: #52687a;
  font-size: 13px;
  grid-area: results;
  margin: -2px 0 0;
}

.tm-manual-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tm-manual-section {
  margin-bottom: 42px;
}

.tm-manual-section-heading {
  border-bottom: 2px solid #d7e2ec;
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.tm-manual-section-heading h2 {
  color: #10233b;
  font-size: 25px;
  margin: 0 0 4px;
}

.tm-manual-section-heading p {
  color: #66788a;
  margin: 0;
}

.tm-manual-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tm-manual-card {
  background: #fff;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  position: relative;
}

.tm-manual-card:hover {
  border-color: #9bb5ce;
  box-shadow: 0 6px 18px rgba(16, 35, 59, .08);
}

.tm-manual-card-meta,
.tm-manual-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tm-manual-card-meta {
  margin-bottom: 9px;
}

.tm-manual-card-meta span,
.tm-manual-models span {
  background: #edf3f8;
  border-radius: 4px;
  color: #31536f;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 7px;
}

.tm-manual-card h3 {
  font-size: 17px;
  line-height: 1.38;
  margin: 0 0 12px;
}

.tm-manual-card h3 a {
  color: #10233b;
}

.tm-manual-card h3 a:hover,
.tm-manual-card h3 a:focus {
  color: #19477b;
}

.tm-manual-card-primary-link::after {
  content: "";
  inset: 0;
  position: absolute;
}

.tm-manual-card-primary-link:focus-visible::after {
  border-radius: 8px;
  outline: 3px solid rgba(25, 71, 123, .28);
  outline-offset: 2px;
}

.tm-manual-models {
  margin: 0 0 16px;
}

.tm-manual-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.tm-manual-empty {
  background: #f5f8fb;
  border: 1px solid #d7e2ec;
  border-radius: 9px;
  padding: 28px;
  text-align: center;
}

.tm-manual-empty h2 {
  color: #10233b;
  margin-top: 0;
}

.tm-manual-detail-hero {
  background: #f5f8fb;
  border-left: 5px solid #19477b;
  border-radius: 8px;
  margin-bottom: 32px;
  padding: 28px 30px;
}

.tm-manual-detail-hero h1 {
  color: #10233b;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  margin: 0 0 12px;
}

.tm-manual-detail-actions,
.tm-manual-detail-products {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tm-manual-detail-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 36px;
}

.tm-manual-detail-products-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tm-manual-detail-products-many {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tm-manual-detail-products-three .tm-manual-product-card-body,
.tm-manual-detail-products-many .tm-manual-product-card-body {
  padding: 14px;
}

.tm-manual-detail-products-three .tm-manual-product-actions,
.tm-manual-detail-products-many .tm-manual-product-actions {
  margin: auto -14px -14px;
}

.tm-manual-detail-products-three .tm-manual-product-card h3,
.tm-manual-detail-products-many .tm-manual-product-card h3 {
  font-size: 15px;
}

.tm-manual-product-card {
  background: #fff;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.tm-manual-product-card:hover,
.tm-manual-product-card:focus-within {
  border-color: #9bb5ce;
  box-shadow: 0 8px 22px rgba(16, 35, 59, .12);
  transform: translateY(-3px);
}

.tm-manual-product-card > a {
  display: block;
}

.tm-manual-product-card img {
  aspect-ratio: 4 / 3;
  background: #f6f8fa;
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
  transition: transform .18s ease;
}

.tm-manual-product-card:hover img,
.tm-manual-product-card:focus-within img {
  transform: scale(1.025);
}

.tm-manual-product-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px;
}

.tm-manual-product-card h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 7px;
}

.tm-manual-product-card h3 a {
  color: #10233b;
  transition: color .14s ease;
}

.tm-manual-product-card:hover h3 a,
.tm-manual-product-card:focus-within h3 a {
  color: #19477b;
}

.tm-manual-product-card-body p {
  color: #52687a;
  flex: 1 1 auto;
}

.tm-manual-product-actions {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: auto -16px -16px;
}

.tm-manual-product-actions button {
  align-items: center;
  border: 0;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
}

.tm-manual-product-actions .tm-card-add-cart {
  background: #19477b;
}

.tm-manual-product-actions .tm-card-buy-now {
  background: #10233b;
}

.tm-manual-product-actions button:hover,
.tm-manual-product-actions button:focus-visible {
  background: #314979;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .3);
}

.tm-manual-product-actions .tm-card-buy-now:hover,
.tm-manual-product-actions .tm-card-buy-now:focus-visible {
  background: #0a1727;
}

@media (prefers-reduced-motion: reduce) {
  .tm-manual-product-card,
  .tm-manual-product-card img,
  .tm-manual-product-card h3 a {
    transition: none;
  }

  .tm-manual-product-card:hover,
  .tm-manual-product-card:focus-within,
  .tm-manual-product-card:hover img,
  .tm-manual-product-card:focus-within img {
    transform: none;
  }
}

@media (max-width: 991px) {
  .tm-manual-grid,
  .tm-manual-detail-products,
  .tm-manual-detail-products-three,
  .tm-manual-detail-products-many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-manual-tools {
    grid-template-areas: "title title" "search search" "type clear" "results results";
    grid-template-columns: minmax(260px, 1fr) minmax(190px, 240px);
  }

  .tm-manual-tools > .btn {
    justify-self: start;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .tm-manual-detail-products-many {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tm-manual-tools {
    grid-template-areas: "title title" "search search" "type clear" "results results";
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tm-manual-grid,
  .tm-manual-detail-products,
  .tm-manual-detail-products-three,
  .tm-manual-detail-products-many {
    grid-template-columns: 1fr;
  }

  .tm-manual-tools .form-control,
  .tm-manual-tools .btn,
  .tm-manual-card-actions .btn,
  .tm-manual-detail-actions .btn {
    min-height: 48px;
  }

  .tm-manual-card-actions .btn,
  .tm-manual-detail-actions .btn {
    width: 100%;
  }

  #manual-library-clear {
    align-self: end;
    padding-left: 14px;
    padding-right: 14px;
  }

  .tm-manual-detail-hero {
    padding: 24px 20px;
  }
}
