.bm-tietopankki-page main,
.bm-category-page main {
  color: #403c3a;
}

.bm-tietopankki-page .page-header h1,
.bm-category-page .content-category h1 {
  margin: 0 0 12px;
  color: #2f2c2a;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.18;
}

.bm-tietopankki-intro,
.bm-category-page .category-desc {
  max-width: 640px;
  margin: 0 0 22px;
  color: #403c3a;
  font-size: 15px;
  line-height: 1.65;
}

.bm-tietopankki-intro p,
.bm-category-page .category-desc p {
  margin: 0;
}

.bm-tietopankki-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 20px 0 0;
}

.bm-tietopankki-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 150px;
  padding: 16px 16px 14px;
  color: #403c3a;
  text-decoration: none;
  background: #fff;
  border: 1px solid #d7e1e8;
  border-left: 3px solid var(--bm-link, #1897c6);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 40, 80, .08);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.bm-tietopankki-card:hover,
.bm-tietopankki-card:focus {
  color: #403c3a;
  text-decoration: none;
  border-color: #a9cce0;
  border-left-color: #006fa5;
  box-shadow: 0 4px 10px rgba(0, 50, 90, .13);
  transform: translateY(-1px);
}

.bm-tietopankki-card h3 {
  margin: 0 0 9px;
  color: var(--bm-link, #1897c6);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.22;
}

.bm-tietopankki-card p {
  margin: 0 0 14px;
  color: #403c3a;
  font-size: 14px;
  line-height: 1.5;
}

.bm-tietopankki-count {
  align-self: flex-start;
  margin-top: auto;
  padding: 4px 8px;
  color: #174a61;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  background: #eaf5fb;
  border: 1px solid #c7e2f0;
  border-radius: 4px;
}

.bm-category-page .com-content-category__articles {
  margin: 18px 0 0;
}

.bm-category-page .com-content-category__table {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
}

.bm-category-page .com-content-category__table thead {
  display: none;
}

.bm-category-page .com-content-category__table tbody {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.bm-category-page .com-content-category__table tr,
.bm-category-page .com-content-category__table th,
.bm-category-page .com-content-category__table td {
  display: block;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.bm-category-page .com-content-category__table tr {
  padding: 13px 15px;
  background: #fff;
  border: 1px solid #d7e1e8;
  border-left: 3px solid var(--bm-link, #1897c6);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 40, 80, .08);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.bm-category-page .com-content-category__table tr:hover,
.bm-category-page .com-content-category__table tr:focus-within {
  border-color: #a9cce0;
  border-left-color: #006fa5;
  box-shadow: 0 4px 10px rgba(0, 50, 90, .13);
  transform: translateY(-1px);
}

.bm-category-page .com-content-category__table .list-title {
  padding: 0;
  font-weight: 700;
  line-height: 1.28;
  background: transparent;
}

.bm-category-page .com-content-category__table .list-title a {
  color: var(--bm-link, #1897c6);
  font-size: 17px;
  text-decoration: none;
}

.bm-category-page .com-content-category__table .list-title a:hover,
.bm-category-page .com-content-category__table .list-title a:focus {
  color: #006fa5;
  text-decoration: underline;
}

.bm-category-page .com-content-category__table .list-author {
  padding: 7px 0 0;
  color: #67605c;
  font-size: 13px;
  line-height: 1.3;
  background: transparent;
}

.bm-category-page .com-content-category__table .list-author::before {
  content: "Kirjoittaja: ";
  color: #817973;
}

@media (min-width: 640px) {
  .bm-tietopankki-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .bm-tietopankki-page .page-header h1,
  .bm-category-page .content-category h1 {
    font-size: 26px;
  }

  .bm-tietopankki-card {
    min-height: 0;
  }
}
