.tf-guide-logo {
  text-align: center;
  margin: 1.25rem 0 0;
}

.tf-guide-logo img {
  max-width: 150px;
  height: auto;
}

.tf-guide-container {
  width: 100%;
  margin-top: 1.5rem;
}

.tf-guide-search-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
}

.tf-guide-search-label {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.tf-guide-search {
  flex: 1;
  min-width: 220px;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid #cfd6de;
  border-radius: 8px;
  background: #fff;
}

.tf-guide-search:focus {
  outline: none;
  border-color: #8bb7ff;
  box-shadow: 0 0 0 3px rgba(139, 183, 255, 0.25);
}

.tf-guide-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid #cfd6de;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: tf-guide-spin 0.6s linear infinite;
}

.tf-guide-spinner.active {
  display: inline-block;
}

@keyframes tf-guide-spin {
  to { transform: rotate(360deg); }
}

.tf-guide-table-wrap {
  width: 100%;
}

.tf-guide-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #cfd6de;
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.95rem;
  background: #fff;
}

.tf-guide-table thead th {
  text-align: left;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  background: #f7f8fa;
  border-bottom: 1px solid #cfd6de;
  border-right: 1px solid #cfd6de;
}

.tf-guide-table thead th:last-child {
  border-right: none;
}

.tf-guide-table tbody td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid #d8dee6;
  border-right: 1px solid #d8dee6;
  vertical-align: middle;
}

.tf-guide-table tbody tr:last-child td {
  border-bottom: none;
}

.tf-guide-table tbody td:last-child {
  border-right: none;
}

.tf-guide-table tbody tr:nth-child(even) {
  background: #fcfcfd;
}

.tf-trim {
  font-weight: 600;
  line-height: 1.1;
}

.tf-years {
  font-size: 0.85rem;
  color: #667085;
  margin-top: 0.15rem;
}

.tf-buy-button {
  display: inline-block;
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #cfd6de;
  background: #fff;
  color: #0b62a4;
}

.tf-buy-button:hover {
  background: #f3f6fb;
}

.tf-guide-pagination {
  text-align: center;
  margin: 0.75rem 0 0;
}

.tf-guide-load-more {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid #cfd6de;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.tf-guide-load-more:hover {
  background: #f7f8fa;
}

@media (max-width: 768px) {
  .tf-guide-search-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .tf-guide-search {
    min-width: 0;
  }

  .tf-guide-table thead {
    display: none;
  }

  .tf-guide-table,
  .tf-guide-table tbody,
  .tf-guide-table tr,
  .tf-guide-table td {
    display: block;
    width: 100%;
  }

  .tf-guide-table tr {
    border-bottom: 1px solid #cfd6de;
  }

  .tf-guide-table tbody td {
    border-right: none;
    border-bottom: 1px solid #e6eaef;
    padding: 0.55rem 0.75rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }

  .tf-guide-table tbody td:last-child {
    border-bottom: none;
  }

  .tf-guide-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #344054;
    flex: 0 0 auto;
  }

  .tf-buy-button {
    width: auto;
  }
}
