/* Tiles: small cards in a .card-grid (licences, locations, exceptions, applications, search results). */

.tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}

.tile-link:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.tile b,
.tile strong {
  color: var(--text);
}

.tile strong {
  margin-top: var(--space-1);
}

.tile small {
  color: var(--text-faint);
  font-size: var(--text-xs);
}

.tile code {
  color: var(--text-muted);
  font-size: var(--text-xs);
  word-break: break-all;
}

.tile-label {
  color: var(--text-accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.tile-row {
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
}

.tile-row > span:last-child {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-5);
}

.tile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--space-1-5);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.tile-stats > span {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-5);
  font-size: var(--text-xs);
}

.tile-footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.object-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--text-accent);
  font-weight: var(--weight-bold);
  text-transform: none;
  letter-spacing: normal;
}

.object-icon-large {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-lg);
  font-size: var(--text-lg);
}
