.top-keywords-page {
  margin: 0 0 24px;
}

.top-keywords-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.top-keyword-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(56, 140, 186, 0.45);
  border-radius: 4px;
  background: rgba(79, 158, 201, 0.12);
  color: #255f7f !important;
  font: bold 12px Arial, sans-serif;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(30, 88, 120, 0.06);
}

.top-keyword-card:hover {
  border-color: rgba(56, 140, 186, 0.62);
  background: rgba(79, 158, 201, 0.22);
  color: #174f70 !important;
  text-decoration: none;
}

.top-keyword-word {
  min-width: 0;
  overflow-wrap: anywhere;
}

.top-keyword-count {
  flex: 0 0 auto;
  color: #555;
  font-weight: bold;
}

@media (max-width: 800px) {
  .top-keywords-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .top-keywords-grid {
    grid-template-columns: 1fr;
  }
}
