/* Sonuç kutusu sayfa ile akar — iç scroll yok */
#out-trafik.ta-output-flush.output-box,
.ta-output-flush.output-box {
  max-height: none !important;
  overflow: visible !important;
  overflow-x: visible !important;
  white-space: normal;
}

/* —— Öncelik tablosu —— */
.ta-table-title {
  margin: 1.25rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ta-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  background: var(--card-bg, #fff);
}

.ta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.35;
}

.ta-table thead {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.03) 100%);
}

.ta-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(15, 23, 42, 0.65);
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

.ta-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  vertical-align: middle;
}

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

.ta-table tbody tr:hover td {
  background: rgba(59, 130, 246, 0.04);
}

.ta-table__kw {
  font-weight: 500;
  color: rgba(15, 23, 42, 0.92);
  max-width: 14rem;
}

.ta-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: rgba(15, 23, 42, 0.78);
}

.ta-table__score {
  font-weight: 600;
  color: rgba(37, 99, 235, 0.95);
}

/* Ücretli rekabet rozetleri */
.ta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem 0.22rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.ta-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ta-pill--low {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.28);
}
.ta-pill--low .ta-pill__dot {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.ta-pill--medium {
  background: rgba(234, 179, 8, 0.15);
  color: #a16207;
  border-color: rgba(234, 179, 8, 0.4);
}
.ta-pill--medium .ta-pill__dot {
  background: #eab308;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.28);
}

.ta-pill--high {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.32);
}
.ta-pill--high .ta-pill__dot {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.22);
}

.ta-pill--unknown {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.25);
}
.ta-pill--unknown .ta-pill__dot {
  background: #94a3b8;
}

/* —— Başlık kartları —— */
.ta-baslik-section {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ta-baslik-section__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.ta-baslik-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.65);
}

.ta-baslik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.ta-baslik-card {
  position: relative;
  padding: 1rem 1rem 0.85rem 2.75rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ta-baslik-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.ta-baslik-card__idx {
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(37, 99, 235, 0.95);
  background: rgba(37, 99, 235, 0.1);
  border-radius: 8px;
}

.ta-baslik-card__title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(15, 23, 42, 0.95);
}

.ta-baslik-card__desc {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.68);
}

.ta-baslik-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.ta-baslik-card__tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.75);
  font-weight: 500;
}

.ta-baslik-card__intent {
  font-size: 0.72rem;
  color: rgba(37, 99, 235, 0.85);
  font-weight: 500;
}

@media (max-width: 520px) {
  .ta-baslik-grid {
    grid-template-columns: 1fr;
  }
  .ta-table th,
  .ta-table td {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }
}
