/* Complete AC knowledge-library controls. All article links remain in HTML. */

.tc-blog-library-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin: -16px auto 28px;
  overflow: hidden;
  border: 1px solid #e1eae3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 22, 47, .06);
}

.tc-blog-library-stats > div {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.tc-blog-library-stats > div + div {
  border-left: 1px solid #e8eee9;
}

.tc-blog-library-stats strong {
  color: #12394c;
  font-size: 30px;
  line-height: 1;
}

.tc-blog-library-stats span {
  margin-top: 8px;
  color: #697681;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tc-blog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto 25px;
  padding: 20px;
  border: 1px solid #e0e9e2;
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 15px 36px rgba(16, 22, 47, .06);
}

.tc-blog-toolbar label > span {
  display: block;
  margin: 0 0 8px 3px;
  color: #2e3b47;
  font-size: 12px;
  font-weight: 700;
}

.tc-blog-search > div {
  position: relative;
}

.tc-blog-search i {
  position: absolute;
  top: 50%;
  left: 17px;
  color: #1f9b08;
  transform: translateY(-50%);
}

.tc-blog-search input,
.tc-blog-topic-select select {
  width: 100%;
  min-height: 50px;
  color: #24313d;
  background: #f8fbf7;
  border: 1px solid #d8e4da;
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.tc-blog-search input {
  padding: 12px 16px 12px 45px;
}

.tc-blog-topic-select select {
  padding: 12px 42px 12px 15px;
}

.tc-blog-search input:focus,
.tc-blog-topic-select select:focus {
  background: #fff;
  border-color: #55b70f;
  box-shadow: 0 0 0 4px rgba(85, 183, 15, .12);
}

.tc-blog-filters button b {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  margin-left: 7px;
  padding: 0 7px;
  color: #60706a;
  background: #eef5eb;
  border-radius: 999px;
  font-size: 10px;
}

.tc-blog-filters button:hover b,
.tc-blog-filters button:focus-visible b,
.tc-blog-filters button.is-active b {
  color: #0b6421;
  background: #fff;
}

.tc-blog-results small {
  margin-left: 5px;
  color: #8a959e;
}

.tc-blog-card__focus {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -10px 0 22px;
  color: #6b7782;
  font-size: 11px;
  line-height: 1.55;
}

.tc-blog-card__focus i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #1f9b08;
}

.tc-blog-library-actions {
  margin-top: 38px;
  text-align: center;
}

.tc-blog-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 27px;
  color: #fff;
  background: linear-gradient(135deg, #55b70f, #1f9b08);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 13px 28px rgba(31, 155, 8, .22);
  font-size: 14px;
  font-weight: 700;
}

.tc-blog-load-more:hover,
.tc-blog-load-more:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(31, 155, 8, .3);
}

.tc-blog-load-more:focus-visible {
  outline: 3px solid rgba(31, 155, 8, .25);
  outline-offset: 3px;
}

.tc-blog-load-more[hidden],
.tc-blog-empty[hidden] {
  display: none;
}

.tc-blog-empty {
  max-width: 680px;
  margin: 0 auto;
  padding: 22px;
  color: #596873;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 16px;
}

@media (max-width: 767px) {
  .tc-blog-library-stats {
    margin-top: -5px;
  }

  .tc-blog-toolbar {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

@media (max-width: 575px) {
  .tc-blog-library-stats > div {
    min-height: 78px;
    padding: 12px 7px;
  }

  .tc-blog-library-stats strong {
    font-size: 24px;
  }

  .tc-blog-library-stats span {
    font-size: 9px;
  }

  .tc-blog-toolbar {
    border-radius: 17px;
  }

  .tc-blog-card__focus {
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-blog-load-more,
  .tc-blog-search input,
  .tc-blog-topic-select select {
    transition: none;
  }
}
